diff --git a/Makefile b/Makefile index 420eafc0d..5aa3d01b2 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ setup: ## Set up the Python development environment $(VENV_BIN)/pip install -r requirements/lint-requirements.txt testenv: setup ## Set up the Python test environment - $(VENV_BIN)/pip install -e ".[simple_framework]" + $(VENV_BIN)/pip install -e ".[default]" .PHONY: fmt fmt: setup ## Format Python code diff --git a/dbgpt/app/component_configs.py b/dbgpt/app/component_configs.py index 5a466f801..77d5634a6 100644 --- a/dbgpt/app/component_configs.py +++ b/dbgpt/app/component_configs.py @@ -30,7 +30,7 @@ def initialize_components( system_app.register_instance(controller) # Register global default RAGGraphFactory - # from dbgpt.rag.graph_engine.graph_factory import DefaultRAGGraphFactory + # from dbgpt.graph.graph_factory import DefaultRAGGraphFactory # system_app.register(DefaultRAGGraphFactory) diff --git a/dbgpt/app/initialization/embedding_component.py b/dbgpt/app/initialization/embedding_component.py index 6d8aa2b6e..a20bd5220 100644 --- a/dbgpt/app/initialization/embedding_component.py +++ b/dbgpt/app/initialization/embedding_component.py @@ -3,7 +3,7 @@ import logging from typing import Any, Type, TYPE_CHECKING from dbgpt.component import ComponentType, SystemApp -from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory if TYPE_CHECKING: from langchain.embeddings.base import Embeddings diff --git a/dbgpt/app/knowledge/_cli/knowledge_client.py b/dbgpt/app/knowledge/_cli/knowledge_client.py index b5aad084f..5ab24d368 100644 --- a/dbgpt/app/knowledge/_cli/knowledge_client.py +++ b/dbgpt/app/knowledge/_cli/knowledge_client.py @@ -14,10 +14,10 @@ DocumentQueryRequest, ) -from dbgpt.rag.embedding_engine.knowledge_type import KnowledgeType from dbgpt.app.knowledge.request.request import DocumentSyncRequest from dbgpt.app.knowledge.request.request import KnowledgeSpaceRequest +from dbgpt.rag.knowledge.base import KnowledgeType HTTP_HEADERS = {"Content-Type": "application/json"} diff --git a/dbgpt/app/knowledge/api.py b/dbgpt/app/knowledge/api.py index 798de4b2c..753334c43 100644 --- a/dbgpt/app/knowledge/api.py +++ b/dbgpt/app/knowledge/api.py @@ -2,6 +2,7 @@ import shutil import tempfile import logging +from typing import List from fastapi import APIRouter, Depends, File, UploadFile, Form @@ -13,10 +14,10 @@ from dbgpt.app.openapi.api_v1.api_v1 import no_stream_generator, stream_generator from dbgpt.app.openapi.api_view_model import Result -from dbgpt.rag.embedding_engine.embedding_engine import EmbeddingEngine -from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory from dbgpt.app.knowledge.service import KnowledgeService +from dbgpt.rag.knowledge.factory import KnowledgeFactory from dbgpt.app.knowledge.request.request import ( KnowledgeQueryRequest, KnowledgeQueryResponse, @@ -27,9 +28,14 @@ SpaceArgumentRequest, EntityExtractRequest, DocumentSummaryRequest, + KnowledgeSyncRequest, ) from dbgpt.app.knowledge.request.request import KnowledgeSpaceRequest +from dbgpt.rag.knowledge.base import ChunkStrategy +from dbgpt.rag.retriever.embedding import EmbeddingRetriever +from dbgpt.storage.vector_store.base import VectorStoreConfig +from dbgpt.storage.vector_store.connector import VectorStoreConnector from dbgpt.util.tracer import root_tracer, SpanType from dbgpt.util.api_utils import _check_api_key @@ -104,6 +110,39 @@ def document_add(space_name: str, request: KnowledgeDocumentRequest): return Result.failed(code="E000X", msg=f"document add error {e}") +@router.get("/knowledge/document/chunkstrategies", dependencies=[Depends(_check_api_key)]) +def chunk_strategies(): + """Get chunk strategies""" + print(f"/document/chunkstrategies:") + try: + return Result.succ( + [ + { + "strategy": strategy.name, + "name": strategy.value[2], + "description": strategy.value[3], + "parameters": strategy.value[1], + "suffix": [ + knowledge.document_type().value + for knowledge in KnowledgeFactory.subclasses() + if strategy in knowledge.support_chunk_strategy() + and knowledge.document_type() is not None + ], + "type": set( + [ + knowledge.type().value + for knowledge in KnowledgeFactory.subclasses() + if strategy in knowledge.support_chunk_strategy() + ] + ), + } + for strategy in ChunkStrategy + ] + ) + except Exception as e: + return Result.failed(code="E000X", msg=f"chunk strategies error {e}") + + @router.post("/knowledge/{space_name}/document/list", dependencies=[Depends(_check_api_key)]) def document_list(space_name: str, query_request: DocumentQueryRequest): print(f"/document/list params: {space_name}, {query_request}") @@ -190,6 +229,18 @@ def document_sync(space_name: str, request: DocumentSyncRequest): return Result.failed(code="E000X", msg=f"document sync error {e}") +@router.post("/knowledge/{space_name}/document/sync_batch", dependencies=[Depends(_check_api_key)]) +def batch_document_sync(space_name: str, request: List[KnowledgeSyncRequest]): + logger.info(f"Received params: {space_name}, {request}") + try: + doc_ids = knowledge_space_service.batch_document_sync( + space_name=space_name, sync_requests=request + ) + return Result.succ({"tasks": doc_ids}) + except Exception as e: + return Result.failed(code="E000X", msg=f"document sync error {e}") + + @router.post("/knowledge/{space_name}/chunk/list", dependencies=[Depends(_check_api_key)]) def document_list(space_name: str, query_request: ChunkQueryRequest): print(f"/document/list params: {space_name}, {query_request}") @@ -205,15 +256,23 @@ def similar_query(space_name: str, query_request: KnowledgeQueryRequest): embedding_factory = CFG.SYSTEM_APP.get_component( "embedding_factory", EmbeddingFactory ) - client = EmbeddingEngine( - model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL], - vector_store_config={"vector_store_name": space_name}, - embedding_factory=embedding_factory, + config = VectorStoreConfig( + name=space_name, + embedding_fn=embedding_factory.create( + EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL] + ), + ) + vector_store_connector = VectorStoreConnector( + vector_store_type=CFG.VECTOR_STORE_TYPE, + vector_store_config=config, + ) + retriever = EmbeddingRetriever( + top_k=query_request.top_k, vector_store_connector=vector_store_connector ) - docs = client.similar_search(query_request.query, query_request.top_k) + chunks = retriever.retrieve(query_request.query) res = [ - KnowledgeQueryResponse(text=d.page_content, source=d.metadata["source"]) - for d in docs + KnowledgeQueryResponse(text=d.content, source=d.metadata["source"]) + for d in chunks ] return {"response": res} @@ -255,7 +314,7 @@ async def entity_extract(request: EntityExtractRequest): logger.info(f"Received params: {request}") try: from dbgpt.app.scene import ChatScene - from dbgpt._private.chat_util import llm_chat_response_nostream + from dbgpt.util.chat_util import llm_chat_response_nostream import uuid chat_param = { diff --git a/dbgpt/app/knowledge/document_db.py b/dbgpt/app/knowledge/document_db.py index 983bb001c..d101d8ee3 100644 --- a/dbgpt/app/knowledge/document_db.py +++ b/dbgpt/app/knowledge/document_db.py @@ -1,4 +1,5 @@ from datetime import datetime +from typing import List from sqlalchemy import Column, String, DateTime, Integer, Text, func @@ -51,6 +52,12 @@ def create_knowledge_document(self, document: KnowledgeDocumentEntity): return doc_id def get_knowledge_documents(self, query, page=1, page_size=20): + """Get a list of documents that match the given query. + Args: + query: A KnowledgeDocumentEntity object containing the query parameters. + page: The page number to return. + page_size: The number of documents to return per page. + """ session = self.get_raw_session() print(f"current session:{session}") knowledge_documents = session.query(KnowledgeDocumentEntity) @@ -85,6 +92,23 @@ def get_knowledge_documents(self, query, page=1, page_size=20): session.close() return result + def documents_by_ids(self, ids) -> List[KnowledgeDocumentEntity]: + """Get a list of documents by their IDs. + Args: + ids: A list of document IDs. + Returns: + A list of KnowledgeDocumentEntity objects. + """ + session = self.get_raw_session() + print(f"current session:{session}") + knowledge_documents = session.query(KnowledgeDocumentEntity) + knowledge_documents = knowledge_documents.filter( + KnowledgeDocumentEntity.id.in_(ids) + ) + result = knowledge_documents.all() + session.close() + return result + def get_documents(self, query): session = self.get_raw_session() print(f"current session:{session}") diff --git a/dbgpt/app/knowledge/request/request.py b/dbgpt/app/knowledge/request/request.py index 79b40f306..e87ca14ad 100644 --- a/dbgpt/app/knowledge/request/request.py +++ b/dbgpt/app/knowledge/request/request.py @@ -3,6 +3,8 @@ from dbgpt._private.pydantic import BaseModel from fastapi import UploadFile +from dbgpt.rag.chunk_manager import ChunkParameters + class KnowledgeQueryRequest(BaseModel): """query: knowledge query""" @@ -43,6 +45,8 @@ class DocumentQueryRequest(BaseModel): """doc_name: doc path""" doc_name: str = None + """doc_ids: doc ids""" + doc_ids: Optional[List] = None """doc_type: doc type""" doc_type: str = None """status: status""" @@ -76,6 +80,20 @@ class DocumentSyncRequest(BaseModel): chunk_overlap: Optional[int] = None +class KnowledgeSyncRequest(BaseModel): + """Sync request""" + + """doc_ids: doc ids""" + doc_id: int + + """model_name: model name""" + model_name: Optional[str] = None + + """chunk_parameters: chunk parameters + """ + chunk_parameters: ChunkParameters + + class ChunkQueryRequest(BaseModel): """id: id""" diff --git a/dbgpt/app/knowledge/service.py b/dbgpt/app/knowledge/service.py index 0f45c8d40..e32224180 100644 --- a/dbgpt/app/knowledge/service.py +++ b/dbgpt/app/knowledge/service.py @@ -1,13 +1,26 @@ import json import logging from datetime import datetime - +from typing import List + +from dbgpt.model import DefaultLLMClient +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.chunk_manager import ChunkParameters +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory +from dbgpt.rag.knowledge.base import KnowledgeType +from dbgpt.rag.knowledge.factory import KnowledgeFactory +from dbgpt.rag.text_splitter.text_splitter import ( + RecursiveCharacterTextSplitter, + SpacyTextSplitter, +) +from dbgpt.serve.rag.assembler.embedding import EmbeddingAssembler +from dbgpt.serve.rag.assembler.summary import SummaryAssembler +from dbgpt.storage.vector_store.base import VectorStoreConfig from dbgpt.storage.vector_store.connector import VectorStoreConnector from dbgpt._private.config import Config from dbgpt.configs.model_config import ( EMBEDDING_MODEL_CONFIG, - KNOWLEDGE_UPLOAD_ROOT_PATH, ) from dbgpt.component import ComponentType from dbgpt.util.executor_utils import ExecutorFactory, blocking_func_to_async @@ -32,6 +45,7 @@ SpaceArgumentRequest, DocumentSyncRequest, DocumentSummaryRequest, + KnowledgeSyncRequest, ) from enum import Enum @@ -106,7 +120,10 @@ def create_knowledge_document(self, space, request: KnowledgeDocumentRequest): content=request.content, result="", ) - return knowledge_document_dao.create_knowledge_document(document) + doc_id = knowledge_document_dao.create_knowledge_document(document) + if doc_id is None: + raise Exception(f"create document failed, {request.doc_name}") + return doc_id def get_knowledge_space(self, request: KnowledgeSpaceRequest): """get knowledge space @@ -171,36 +188,75 @@ def get_knowledge_documents(self, space, request: DocumentQueryRequest): Args: - space: Knowledge Space Name - request: DocumentQueryRequest + Returns: + - res DocumentQueryResponse """ - query = KnowledgeDocumentEntity( - doc_name=request.doc_name, - doc_type=request.doc_type, - space=space, - status=request.status, - ) res = DocumentQueryResponse() - res.data = knowledge_document_dao.get_knowledge_documents( - query, page=request.page, page_size=request.page_size - ) - res.total = knowledge_document_dao.get_knowledge_documents_count(query) - res.page = request.page + if request.doc_ids and len(request.doc_ids) > 0: + res.data = knowledge_document_dao.documents_by_ids(request.doc_ids) + else: + query = KnowledgeDocumentEntity( + doc_name=request.doc_name, + doc_type=request.doc_type, + space=space, + status=request.status, + ) + res.data = knowledge_document_dao.get_knowledge_documents( + query, page=request.page, page_size=request.page_size + ) + res.total = knowledge_document_dao.get_knowledge_documents_count(query) + res.page = request.page return res + def batch_document_sync( + self, space_name, sync_requests: List[KnowledgeSyncRequest] + ) -> List[int]: + """batch sync knowledge document chunk into vector store + Args: + - space: Knowledge Space Name + - sync_requests: List[KnowledgeSyncRequest] + Returns: + - List[int]: document ids + """ + doc_ids = [] + for sync_request in sync_requests: + docs = knowledge_document_dao.documents_by_ids([sync_request.doc_id]) + if len(docs) == 0: + raise Exception( + f"there are document called, doc_id: {sync_request.doc_id}" + ) + doc = docs[0] + if ( + doc.status == SyncStatus.RUNNING.name + or doc.status == SyncStatus.FINISHED.name + ): + raise Exception( + f" doc:{doc.doc_name} status is {doc.status}, can not sync" + ) + chunk_parameters = sync_request.chunk_parameters + if "Automatic" == chunk_parameters.chunk_strategy: + space_context = self.get_space_context(space_name) + chunk_parameters.chunk_size = ( + CFG.KNOWLEDGE_CHUNK_SIZE + if space_context is None + else int(space_context["embedding"]["chunk_size"]) + ) + chunk_parameters.chunk_overlap = ( + CFG.KNOWLEDGE_CHUNK_OVERLAP + if space_context is None + else int(space_context["embedding"]["chunk_overlap"]) + ) + self._sync_knowledge_document(space_name, doc, chunk_parameters) + doc_ids.append(doc.id) + return doc_ids + def sync_knowledge_document(self, space_name, sync_request: DocumentSyncRequest): """sync knowledge document chunk into vector store Args: - space: Knowledge Space Name - sync_request: DocumentSyncRequest """ - from dbgpt.rag.embedding_engine.embedding_engine import EmbeddingEngine - from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory - from dbgpt.rag.embedding_engine.pre_text_splitter import PreTextSplitter - from langchain.text_splitter import ( - RecursiveCharacterTextSplitter, - SpacyTextSplitter, - ) - - # import langchain is very very slow!!! + from dbgpt.rag.text_splitter.pre_text_splitter import PreTextSplitter doc_ids = sync_request.doc_ids self.model_name = sync_request.model_name or CFG.LLM_MODEL @@ -234,6 +290,11 @@ def sync_knowledge_document(self, space_name, sync_request: DocumentSyncRequest) if sync_request.chunk_overlap: chunk_overlap = sync_request.chunk_overlap separators = sync_request.separators or None + from dbgpt.rag.chunk_manager import ChunkParameters + + chunk_parameters = ChunkParameters( + chunk_size=chunk_size, chunk_overlap=chunk_overlap + ) if CFG.LANGUAGE == "en": text_splitter = RecursiveCharacterTextSplitter( separators=separators, @@ -244,7 +305,7 @@ def sync_knowledge_document(self, space_name, sync_request: DocumentSyncRequest) else: if separators and len(separators) > 1: raise ValueError( - "SpacyTextSplitter do not support multiple separators" + "SpacyTextSplitter do not support multipsle separators" ) try: separator = "\n\n" if not separators else separators[0] @@ -266,48 +327,51 @@ def sync_knowledge_document(self, space_name, sync_request: DocumentSyncRequest) pre_separator=sync_request.pre_separator, text_splitter_impl=text_splitter, ) - embedding_factory = CFG.SYSTEM_APP.get_component( - "embedding_factory", EmbeddingFactory - ) - client = EmbeddingEngine( - knowledge_source=doc.content, - knowledge_type=doc.doc_type.upper(), - model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL], - vector_store_config={ - "vector_store_name": space_name, - "vector_store_type": CFG.VECTOR_STORE_TYPE, - }, - text_splitter=text_splitter, - embedding_factory=embedding_factory, - ) - chunk_docs = client.read() - # update document status - doc.status = SyncStatus.RUNNING.name - doc.chunk_size = len(chunk_docs) - doc.gmt_modified = datetime.now() - knowledge_document_dao.update_knowledge_document(doc) - executor = CFG.SYSTEM_APP.get_component( - ComponentType.EXECUTOR_DEFAULT, ExecutorFactory - ).create() - executor.submit(self.async_doc_embedding, client, chunk_docs, doc) - logger.info(f"begin save document chunks, doc:{doc.doc_name}") - # save chunk details - chunk_entities = [ - DocumentChunkEntity( - doc_name=doc.doc_name, - doc_type=doc.doc_type, - document_id=doc.id, - content=chunk_doc.page_content, - meta_info=str(chunk_doc.metadata), - gmt_created=datetime.now(), - gmt_modified=datetime.now(), - ) - for chunk_doc in chunk_docs - ] - document_chunk_dao.create_documents_chunks(chunk_entities) - + chunk_parameters.text_splitter = text_splitter + self._sync_knowledge_document(space_name, doc, chunk_parameters) return doc.id + def _sync_knowledge_document( + self, + space_name, + doc: KnowledgeDocumentEntity, + chunk_parameters: ChunkParameters, + ) -> List[Chunk]: + """sync knowledge document chunk into vector store""" + embedding_factory = CFG.SYSTEM_APP.get_component( + "embedding_factory", EmbeddingFactory + ) + embedding_fn = embedding_factory.create( + model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL] + ) + from dbgpt.storage.vector_store.base import VectorStoreConfig + + config = VectorStoreConfig(name=space_name, embedding_fn=embedding_fn) + vector_store_connector = VectorStoreConnector( + vector_store_type=CFG.VECTOR_STORE_TYPE, + vector_store_config=config, + ) + knowledge = KnowledgeFactory.create( + datasource=doc.content, + knowledge_type=KnowledgeType.get_by_value(doc.doc_type), + ) + assembler = EmbeddingAssembler.load_from_knowledge( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + vector_store_connector=vector_store_connector, + ) + chunk_docs = assembler.get_chunks() + doc.status = SyncStatus.RUNNING.name + doc.chunk_size = len(chunk_docs) + doc.gmt_modified = datetime.now() + knowledge_document_dao.update_knowledge_document(doc) + executor = CFG.SYSTEM_APP.get_component( + ComponentType.EXECUTOR_DEFAULT, ExecutorFactory + ).create() + executor.submit(self.async_doc_embedding, assembler, chunk_docs, doc) + logger.info(f"begin save document chunks, doc:{doc.doc_name}") + return chunk_docs + async def document_summary(self, request: DocumentSummaryRequest): """get document summary Args: @@ -318,20 +382,46 @@ async def document_summary(self, request: DocumentSummaryRequest): if len(documents) != 1: raise Exception(f"can not found document for {request.doc_id}") document = documents[0] - query = DocumentChunkEntity( - document_id=request.doc_id, + from dbgpt.model.cluster import WorkerManagerFactory + + worker_manager = CFG.SYSTEM_APP.get_component( + ComponentType.WORKER_MANAGER_FACTORY, WorkerManagerFactory + ).create() + chunk_parameters = ChunkParameters( + chunk_strategy="CHUNK_BY_SIZE", + chunk_size=CFG.KNOWLEDGE_CHUNK_SIZE, + chunk_overlap=CFG.KNOWLEDGE_CHUNK_OVERLAP, + ) + chunk_entities = document_chunk_dao.get_document_chunks( + DocumentChunkEntity(document_id=document.id) ) - chunks = document_chunk_dao.get_document_chunks(query, page=1, page_size=100) - if len(chunks) == 0: + if ( + document.status not in [SyncStatus.RUNNING.name] + and len(chunk_entities) == 0 + ): + self._sync_knowledge_document( + space_name=document.space, + doc=document, + chunk_parameters=chunk_parameters, + ) + knowledge = KnowledgeFactory.create( + datasource=document.content, + knowledge_type=KnowledgeType.get_by_value(document.doc_type), + ) + assembler = SummaryAssembler( + knowledge=knowledge, + model_name=request.model_name, + llm_client=DefaultLLMClient(worker_manager=worker_manager), + language=CFG.LANGUAGE, + chunk_parameters=chunk_parameters, + ) + summary = await assembler.generate_summary() + + if len(assembler.get_chunks()) == 0: raise Exception(f"can not found chunks for {request.doc_id}") - from langchain.schema import Document - chunk_docs = [Document(page_content=chunk.content) for chunk in chunks] - return await self.async_document_summary( - model_name=request.model_name, - chunk_docs=chunk_docs, - doc=document, - conn_uid=request.conv_uid, + return await self._llm_extract_summary( + summary, request.conv_uid, request.model_name ) def update_knowledge_space( @@ -354,15 +444,13 @@ def delete_space(self, space_name: str): if len(spaces) == 0: raise Exception(f"delete error, no space name:{space_name} in database") space = spaces[0] - vector_config = {} - vector_config["vector_store_name"] = space.name - vector_config["vector_store_type"] = CFG.VECTOR_STORE_TYPE - vector_config["chroma_persist_path"] = KNOWLEDGE_UPLOAD_ROOT_PATH - vector_client = VectorStoreConnector( - vector_store_type=CFG.VECTOR_STORE_TYPE, ctx=vector_config + config = VectorStoreConfig(name=space.name) + vector_store_connector = VectorStoreConnector( + vector_store_type=CFG.VECTOR_STORE_TYPE, + vector_store_config=config, ) # delete vectors - vector_client.delete_vector_name(space.name) + vector_store_connector.delete_vector_name(space.name) document_query = KnowledgeDocumentEntity(space=space.name) # delete chunks documents = knowledge_document_dao.get_documents(document_query) @@ -385,15 +473,13 @@ def delete_document(self, space_name: str, doc_name: str): raise Exception(f"there are no or more than one document called {doc_name}") vector_ids = documents[0].vector_ids if vector_ids is not None: - vector_config = {} - vector_config["vector_store_name"] = space_name - vector_config["vector_store_type"] = CFG.VECTOR_STORE_TYPE - vector_config["chroma_persist_path"] = KNOWLEDGE_UPLOAD_ROOT_PATH - vector_client = VectorStoreConnector( - vector_store_type=CFG.VECTOR_STORE_TYPE, ctx=vector_config + config = VectorStoreConfig(name=space_name) + vector_store_connector = VectorStoreConnector( + vector_store_type=CFG.VECTOR_STORE_TYPE, + vector_store_config=config, ) # delete vector by ids - vector_client.delete_by_ids(vector_ids) + vector_store_connector.delete_by_ids(vector_ids) # delete chunks document_chunk_dao.raw_delete(documents[0].id) # delete document @@ -432,7 +518,7 @@ def async_knowledge_graph(self, chunk_docs, doc): f"async_knowledge_graph, doc:{doc.doc_name}, chunk_size:{len(chunk_docs)}, begin embedding to graph store" ) try: - from dbgpt.rag.graph_engine.graph_factory import RAGGraphFactory + from dbgpt.rag.graph.graph_factory import RAGGraphFactory rag_engine = CFG.SYSTEM_APP.get_component( ComponentType.RAG_GRAPH_DEFAULT.value, RAGGraphFactory @@ -446,54 +532,38 @@ def async_knowledge_graph(self, chunk_docs, doc): logger.error(f"document build graph failed:{doc.doc_name}, {str(e)}") return knowledge_document_dao.update_knowledge_document(doc) - async def async_document_summary(self, model_name, chunk_docs, doc, conn_uid): - """async document extract summary - Args: - - model_name: str - - chunk_docs: List[Document] - - doc: KnowledgeDocumentEntity - """ - texts = [doc.page_content for doc in chunk_docs] - from dbgpt.util.prompt_util import PromptHelper - - prompt_helper = PromptHelper() - from dbgpt.app.scene.chat_knowledge.summary.prompt import prompt - - texts = prompt_helper.repack(prompt_template=prompt.template, text_chunks=texts) - logger.info( - f"async_document_summary, doc:{doc.doc_name}, chunk_size:{len(texts)}, begin generate summary" - ) - space_context = self.get_space_context(doc.space) - if space_context and space_context.get("summary"): - summary = await self._mapreduce_extract_summary( - docs=texts, - model_name=model_name, - max_iteration=int(space_context["summary"]["max_iteration"]), - concurrency_limit=int(space_context["summary"]["concurrency_limit"]), - ) - else: - summary = await self._mapreduce_extract_summary( - docs=texts, model_name=model_name - ) - return await self._llm_extract_summary(summary, conn_uid, model_name) - - def async_doc_embedding(self, client, chunk_docs, doc): + def async_doc_embedding(self, assembler, chunk_docs, doc): """async document embedding into vector db Args: - client: EmbeddingEngine Client - chunk_docs: List[Document] - doc: KnowledgeDocumentEntity """ + logger.info( - f"async doc sync, doc:{doc.doc_name}, chunk_size:{len(chunk_docs)}, begin embedding to vector store-{CFG.VECTOR_STORE_TYPE}" + f"async doc embedding sync, doc:{doc.doc_name}, chunks length is {len(chunk_docs)}, begin embedding to vector store-{CFG.VECTOR_STORE_TYPE}" ) try: - vector_ids = client.knowledge_embedding_batch(chunk_docs) + vector_ids = assembler.persist() doc.status = SyncStatus.FINISHED.name doc.result = "document embedding success" if vector_ids is not None: doc.vector_ids = ",".join(vector_ids) logger.info(f"async document embedding, success:{doc.doc_name}") + # save chunk details + chunk_entities = [ + DocumentChunkEntity( + doc_name=doc.doc_name, + doc_type=doc.doc_type, + document_id=doc.id, + content=chunk_doc.content, + meta_info=str(chunk_doc.metadata), + gmt_created=datetime.now(), + gmt_modified=datetime.now(), + ) + for chunk_doc in chunk_docs + ] + document_chunk_dao.create_documents_chunks(chunk_entities) except Exception as e: doc.status = SyncStatus.FAILED.name doc.result = "document embedding failed" + str(e) @@ -578,65 +648,3 @@ async def _llm_extract_summary( **{"chat_param": chat_param}, ) return chat - - async def _mapreduce_extract_summary( - self, - docs, - model_name: str = None, - max_iteration: int = 5, - concurrency_limit: int = 3, - ): - """Extract summary by mapreduce mode - map -> multi async call llm to generate summary - reduce -> merge the summaries by map process - Args: - docs:List[str] - model_name:model name str - max_iteration:max iteration will call llm to summary - concurrency_limit:the max concurrency threads to call llm - Returns: - Document: refine summary context document. - """ - from dbgpt.app.scene import ChatScene - from dbgpt._private.chat_util import llm_chat_response_nostream - import uuid - - tasks = [] - if len(docs) == 1: - return docs[0] - else: - max_iteration = max_iteration if len(docs) > max_iteration else len(docs) - for doc in docs[0:max_iteration]: - chat_param = { - "chat_session_id": uuid.uuid1(), - "current_user_input": "", - "select_param": doc, - "model_name": model_name, - "model_cache_enable": True, - } - tasks.append( - llm_chat_response_nostream( - ChatScene.ExtractSummary.value(), **{"chat_param": chat_param} - ) - ) - from dbgpt._private.chat_util import run_async_tasks - - summary_iters = await run_async_tasks( - tasks=tasks, concurrency_limit=concurrency_limit - ) - summary_iters = list( - filter( - lambda content: "LLMServer Generate Error" not in content, - summary_iters, - ) - ) - from dbgpt.util.prompt_util import PromptHelper - from dbgpt.app.scene.chat_knowledge.summary.prompt import prompt - - prompt_helper = PromptHelper() - summary_iters = prompt_helper.repack( - prompt_template=prompt.template, text_chunks=summary_iters - ) - return await self._mapreduce_extract_summary( - summary_iters, model_name, max_iteration, concurrency_limit - ) diff --git a/dbgpt/app/scene/base_chat.py b/dbgpt/app/scene/base_chat.py index 1e5cf7070..a5e9fb26a 100644 --- a/dbgpt/app/scene/base_chat.py +++ b/dbgpt/app/scene/base_chat.py @@ -11,6 +11,7 @@ from dbgpt.core.interface.prompt import PromptTemplate from dbgpt.core.interface.message import ModelMessage, ModelMessageRoleType from dbgpt.core.interface.message import OnceConversation +from dbgpt.model.cluster import WorkerManagerFactory from dbgpt.util import get_or_create_event_loop from dbgpt.util.executor_utils import ExecutorFactory, blocking_func_to_async from dbgpt.util.tracer import root_tracer, trace @@ -58,6 +59,9 @@ def __init__(self, chat_param: Dict): chat_param["model_name"] if chat_param["model_name"] else CFG.LLM_MODEL ) self.llm_echo = False + self.worker_manager = CFG.SYSTEM_APP.get_component( + ComponentType.WORKER_MANAGER_FACTORY, WorkerManagerFactory + ).create() self.model_cache_enable = chat_param.get("model_cache_enable", False) ### load prompt template @@ -162,6 +166,10 @@ async def __call_base(self): "BaseChat.__call_base.prompt_template.format", metadata=metadata ): current_prompt = self.prompt_template.format(**input_values) + ### prompt context token adapt according to llm max context length + current_prompt = await self.prompt_context_token_adapt( + prompt=current_prompt + ) self.current_message.add_system_message(current_prompt) llm_messages = self.generate_llm_messages() @@ -169,6 +177,7 @@ async def __call_base(self): # Not new server mode, we convert the message format(List[ModelMessage]) to list of dict # fix the error of "Object of type ModelMessage is not JSON serializable" when passing the payload to request.post llm_messages = list(map(lambda m: m.dict(), llm_messages)) + payload = { "model": self.llm_model, "prompt": self.generate_llm_text(), @@ -431,6 +440,39 @@ def current_ai_response(self) -> str: return message.content return None + async def prompt_context_token_adapt(self, prompt) -> str: + """prompt token adapt according to llm max context length""" + model_metadata = await self.worker_manager.get_model_metadata( + {"model": self.llm_model} + ) + current_token_count = await self.worker_manager.count_token( + {"model": self.llm_model, "prompt": prompt} + ) + if current_token_count == -1: + logger.warning( + "tiktoken not installed, please `pip install tiktoken` first" + ) + template_define_token_count = 0 + if len(self.prompt_template.template_define) > 0: + template_define_token_count = await self.worker_manager.count_token( + { + "model": self.llm_model, + "prompt": self.prompt_template.template_define, + } + ) + current_token_count += template_define_token_count + if ( + current_token_count + self.prompt_template.max_new_tokens + ) > model_metadata.context_length: + prompt = prompt[ + : ( + model_metadata.context_length + - self.prompt_template.max_new_tokens + - template_define_token_count + ) + ] + return prompt + def generate(self, p) -> str: """ generate context for LLM input diff --git a/dbgpt/app/scene/chat_dashboard/chat.py b/dbgpt/app/scene/chat_dashboard/chat.py index 53d1084f5..7fe91b516 100644 --- a/dbgpt/app/scene/chat_dashboard/chat.py +++ b/dbgpt/app/scene/chat_dashboard/chat.py @@ -63,14 +63,11 @@ async def generate_input_values(self) -> Dict: try: table_infos = await blocking_func_to_async( self._executor, - client.get_similar_tables, + client.get_db_summary, self.db_name, self.current_user_input, self.top_k, ) - # table_infos = client.get_similar_tables( - # dbname=self.db_name, query=self.current_user_input, topk=self.top_k - # ) print("dashboard vector find tables:{}", table_infos) except Exception as e: print("db summary find error!" + str(e)) diff --git a/dbgpt/app/scene/chat_factory.py b/dbgpt/app/scene/chat_factory.py index 4afcaf6a9..258020fac 100644 --- a/dbgpt/app/scene/chat_factory.py +++ b/dbgpt/app/scene/chat_factory.py @@ -19,22 +19,14 @@ def get_implementation(chat_mode, **kwargs): from dbgpt.app.scene.chat_dashboard.prompt import prompt from dbgpt.app.scene.chat_knowledge.v1.chat import ChatKnowledge from dbgpt.app.scene.chat_knowledge.v1.prompt import prompt - from dbgpt.app.scene.chat_knowledge.inner_db_summary.chat import ( - InnerChatDBSummary, - ) - from dbgpt.app.scene.chat_knowledge.inner_db_summary.prompt import prompt from dbgpt.app.scene.chat_knowledge.extract_triplet.chat import ExtractTriplet from dbgpt.app.scene.chat_knowledge.extract_triplet.prompt import prompt from dbgpt.app.scene.chat_knowledge.extract_entity.chat import ExtractEntity from dbgpt.app.scene.chat_knowledge.extract_entity.prompt import prompt - from dbgpt.app.scene.chat_knowledge.summary.chat import ExtractSummary - from dbgpt.app.scene.chat_knowledge.summary.prompt import prompt from dbgpt.app.scene.chat_knowledge.refine_summary.chat import ( ExtractRefineSummary, ) from dbgpt.app.scene.chat_knowledge.refine_summary.prompt import prompt - from dbgpt.app.scene.chat_knowledge.rewrite.chat import QueryRewrite - from dbgpt.app.scene.chat_knowledge.rewrite.prompt import prompt from dbgpt.app.scene.chat_data.chat_excel.excel_analyze.chat import ChatExcel from dbgpt.app.scene.chat_data.chat_excel.excel_analyze.prompt import prompt from dbgpt.app.scene.chat_data.chat_excel.excel_learning.prompt import prompt diff --git a/dbgpt/app/scene/chat_knowledge/inner_db_summary/chat.py b/dbgpt/app/scene/chat_knowledge/inner_db_summary/chat.py deleted file mode 100644 index 637296b68..000000000 --- a/dbgpt/app/scene/chat_knowledge/inner_db_summary/chat.py +++ /dev/null @@ -1,40 +0,0 @@ -from typing import Dict -from dbgpt.app.scene import BaseChat, ChatScene - -from dbgpt.util.tracer import trace - - -class InnerChatDBSummary(BaseChat): - chat_scene: str = ChatScene.InnerChatDBSummary.value() - - """Number of results to return from the query""" - - def __init__( - self, - chat_session_id, - user_input, - db_select, - db_summary, - ): - """ """ - super().__init__( - chat_mode=ChatScene.InnerChatDBSummary, - chat_session_id=chat_session_id, - current_user_input=user_input, - select_param=db_select, - ) - - self.db_input = db_select - self.db_summary = db_summary - - @trace() - async def generate_input_values(self) -> Dict: - input_values = { - "db_input": self.db_input, - "db_profile_summary": self.db_summary, - } - return input_values - - @property - def chat_type(self) -> str: - return ChatScene.InnerChatDBSummary.value diff --git a/dbgpt/app/scene/chat_knowledge/inner_db_summary/out_parser.py b/dbgpt/app/scene/chat_knowledge/inner_db_summary/out_parser.py deleted file mode 100644 index 02501d55c..000000000 --- a/dbgpt/app/scene/chat_knowledge/inner_db_summary/out_parser.py +++ /dev/null @@ -1,17 +0,0 @@ -import logging -from dbgpt.core.interface.output_parser import BaseOutputParser - -logger = logging.getLogger(__name__) - - -class NormalChatOutputParser(BaseOutputParser): - def parse_prompt_response(self, model_out_text): - clean_str = super().parse_prompt_response(model_out_text) - print("clean prompt response:", clean_str) - return clean_str - - def parse_view_response(self, ai_text, data) -> str: - return ai_text - - def get_format_instructions(self) -> str: - pass diff --git a/dbgpt/app/scene/chat_knowledge/inner_db_summary/prompt.py b/dbgpt/app/scene/chat_knowledge/inner_db_summary/prompt.py deleted file mode 100644 index 4053956a5..000000000 --- a/dbgpt/app/scene/chat_knowledge/inner_db_summary/prompt.py +++ /dev/null @@ -1,45 +0,0 @@ -import json - -from dbgpt.core.interface.prompt import PromptTemplate -from dbgpt._private.config import Config -from dbgpt.app.scene import ChatScene - -from dbgpt.app.scene.chat_knowledge.inner_db_summary.out_parser import ( - NormalChatOutputParser, -) - - -CFG = Config() - -PROMPT_SCENE_DEFINE = """""" - -_DEFAULT_TEMPLATE = """ -Based on the following known database information?, answer which tables are involved in the user input. -Known database information:{db_profile_summary} -Input:{db_input} -You should only respond in JSON format as described below and ensure the response can be parsed by Python json.loads - - -""" -PROMPT_RESPONSE = """You must respond in JSON format as following format: -{response} -The response format must be JSON, and the key of JSON must be "table". -""" - - -RESPONSE_FORMAT = {"table": ["orders", "products"]} - - -PROMPT_NEED_STREAM_OUT = False - -prompt = PromptTemplate( - template_scene=ChatScene.InnerChatDBSummary.value(), - input_variables=["db_profile_summary", "db_input", "response"], - response_format=json.dumps(RESPONSE_FORMAT, indent=4), - template_define=PROMPT_SCENE_DEFINE, - template=_DEFAULT_TEMPLATE + PROMPT_RESPONSE, - stream_out=PROMPT_NEED_STREAM_OUT, - output_parser=NormalChatOutputParser(is_stream_out=PROMPT_NEED_STREAM_OUT), -) - -CFG.prompt_template_registry.register(prompt, is_default=True) diff --git a/dbgpt/app/scene/chat_knowledge/refine_summary/prompt.py b/dbgpt/app/scene/chat_knowledge/refine_summary/prompt.py index 5877af216..7e94168ce 100644 --- a/dbgpt/app/scene/chat_knowledge/refine_summary/prompt.py +++ b/dbgpt/app/scene/chat_knowledge/refine_summary/prompt.py @@ -19,7 +19,6 @@ _DEFAULT_TEMPLATE_EN = """ We have provided an existing summary up to a certain point: {existing_answer}\nWe have the opportunity to refine the existing summary (only if needed) with some more context below. \nBased on the previous reasoning, please summarize the final conclusion in accordance with points 1.2.and 3. - """ _DEFAULT_TEMPLATE = ( diff --git a/dbgpt/app/scene/chat_knowledge/rewrite/chat.py b/dbgpt/app/scene/chat_knowledge/rewrite/chat.py deleted file mode 100644 index 4514d7016..000000000 --- a/dbgpt/app/scene/chat_knowledge/rewrite/chat.py +++ /dev/null @@ -1,32 +0,0 @@ -from typing import Dict - -from dbgpt.app.scene import BaseChat, ChatScene - -from dbgpt.app.scene.chat_knowledge.rewrite.prompt import prompt - - -class QueryRewrite(BaseChat): - chat_scene: str = ChatScene.QueryRewrite.value() - - """query rewrite by llm""" - - def __init__(self, chat_param: Dict): - """ """ - chat_param["chat_mode"] = ChatScene.QueryRewrite - super().__init__( - chat_param=chat_param, - ) - - self.nums = chat_param["select_param"] - self.current_user_input = chat_param["current_user_input"] - - async def generate_input_values(self): - input_values = { - "nums": self.nums, - "original_query": self.current_user_input, - } - return input_values - - @property - def chat_type(self) -> str: - return ChatScene.QueryRewrite.value diff --git a/dbgpt/app/scene/chat_knowledge/rewrite/out_parser.py b/dbgpt/app/scene/chat_knowledge/rewrite/out_parser.py deleted file mode 100644 index 8e08b7d04..000000000 --- a/dbgpt/app/scene/chat_knowledge/rewrite/out_parser.py +++ /dev/null @@ -1,42 +0,0 @@ -import logging - -from dbgpt.core.interface.output_parser import BaseOutputParser - -logger = logging.getLogger(__name__) - - -class QueryRewriteParser(BaseOutputParser): - def __init__(self, is_stream_out: bool, **kwargs): - super().__init__(is_stream_out=is_stream_out, **kwargs) - - def parse_prompt_response(self, response, max_length: int = 128): - lowercase = True - try: - results = [] - response = response.strip() - - if response.startswith("queries:"): - response = response[len("queries:") :] - - queries = response.split(",") - if len(queries) == 1: - queries = response.split(",") - if len(queries) == 1: - queries = response.split("?") - if len(queries) == 1: - queries = response.split("?") - for k in queries: - rk = k - if lowercase: - rk = rk.lower() - s = rk.strip() - if s == "": - continue - results.append(s) - except Exception as e: - logger.error(f"parse query rewrite prompt_response error: {e}") - return [] - return results - - def parse_view_response(self, speak, data) -> str: - return data diff --git a/dbgpt/app/scene/chat_knowledge/rewrite/prompt.py b/dbgpt/app/scene/chat_knowledge/rewrite/prompt.py deleted file mode 100644 index 3157f6d74..000000000 --- a/dbgpt/app/scene/chat_knowledge/rewrite/prompt.py +++ /dev/null @@ -1,41 +0,0 @@ -from dbgpt.core.interface.prompt import PromptTemplate -from dbgpt._private.config import Config -from dbgpt.app.scene import ChatScene -from .out_parser import QueryRewriteParser - -CFG = Config() - - -PROMPT_SCENE_DEFINE = """You are a helpful assistant that generates multiple search queries based on a single input query.""" - -_DEFAULT_TEMPLATE_ZH = """请根据原问题优化生成{nums}个相关的搜索查询,这些查询应与原始查询相似并且是人们可能会提出的可回答的搜索问题。请勿使用任何示例中提到的内容,确保所有生成的查询均独立于示例,仅基于提供的原始查询。请按照以下逗号分隔的格式提供: 'queries:': -"original_query:{original_query}\n" -"queries:\n" -""" - -_DEFAULT_TEMPLATE_EN = """ -Generate {nums} search queries related to: {original_query}, Provide following comma-separated format: 'queries: '\n": - "original query:: {original_query}\n" - "queries:\n" -""" - -_DEFAULT_TEMPLATE = ( - _DEFAULT_TEMPLATE_EN if CFG.LANGUAGE == "en" else _DEFAULT_TEMPLATE_ZH -) - -PROMPT_RESPONSE = """""" - - -PROMPT_NEED_NEED_STREAM_OUT = True - -prompt = PromptTemplate( - template_scene=ChatScene.QueryRewrite.value(), - input_variables=["nums", "original_query"], - response_format=None, - template_define=PROMPT_SCENE_DEFINE, - template=_DEFAULT_TEMPLATE + PROMPT_RESPONSE, - stream_out=PROMPT_NEED_NEED_STREAM_OUT, - output_parser=QueryRewriteParser(is_stream_out=PROMPT_NEED_NEED_STREAM_OUT), -) - -CFG.prompt_template_registry.register(prompt, is_default=True) diff --git a/dbgpt/app/scene/chat_knowledge/summary/chat.py b/dbgpt/app/scene/chat_knowledge/summary/chat.py deleted file mode 100644 index 2dea92cf0..000000000 --- a/dbgpt/app/scene/chat_knowledge/summary/chat.py +++ /dev/null @@ -1,28 +0,0 @@ -from typing import Dict - -from dbgpt.app.scene import BaseChat, ChatScene - - -class ExtractSummary(BaseChat): - chat_scene: str = ChatScene.ExtractSummary.value() - - """get summary by llm""" - - def __init__(self, chat_param: Dict): - """ """ - chat_param["chat_mode"] = ChatScene.ExtractSummary - super().__init__( - chat_param=chat_param, - ) - - self.user_input = chat_param["select_param"] - - async def generate_input_values(self): - input_values = { - "context": self.user_input, - } - return input_values - - @property - def chat_type(self) -> str: - return ChatScene.ExtractSummary.value diff --git a/dbgpt/app/scene/chat_knowledge/summary/out_parser.py b/dbgpt/app/scene/chat_knowledge/summary/out_parser.py deleted file mode 100644 index e1f11696b..000000000 --- a/dbgpt/app/scene/chat_knowledge/summary/out_parser.py +++ /dev/null @@ -1,28 +0,0 @@ -import logging -from typing import List, Tuple - -from dbgpt.core.interface.output_parser import BaseOutputParser, ResponseTye - -logger = logging.getLogger(__name__) - - -class ExtractSummaryParser(BaseOutputParser): - def __init__(self, is_stream_out: bool, **kwargs): - super().__init__(is_stream_out=is_stream_out, **kwargs) - - def parse_prompt_response( - self, response, max_length: int = 128 - ) -> List[Tuple[str, str, str]]: - # clean_str = super().parse_prompt_response(response) - print("clean prompt response:", response) - return response - - def parse_view_response(self, speak, data) -> str: - ### tool out data to table view - return data - - def parse_model_nostream_resp(self, response: ResponseTye, sep: str) -> str: - try: - return super().parse_model_nostream_resp(response, sep) - except Exception as e: - return str(e) diff --git a/dbgpt/app/scene/chat_knowledge/summary/prompt.py b/dbgpt/app/scene/chat_knowledge/summary/prompt.py deleted file mode 100644 index 5e63e71ac..000000000 --- a/dbgpt/app/scene/chat_knowledge/summary/prompt.py +++ /dev/null @@ -1,46 +0,0 @@ -from dbgpt.core.interface.prompt import PromptTemplate -from dbgpt._private.config import Config -from dbgpt.app.scene import ChatScene - -from dbgpt.app.scene.chat_knowledge.summary.out_parser import ExtractSummaryParser - -CFG = Config() - -# PROMPT_SCENE_DEFINE = """You are an expert Q&A system that is trusted around the world.\nAlways answer the query using the provided context information, and not prior knowledge.\nSome rules to follow:\n1. Never directly reference the given context in your answer.\n2. Avoid statements like 'Based on the context, ...' or 'The context information ...' or anything along those lines.""" - -PROMPT_SCENE_DEFINE = """A chat between a curious user and an artificial intelligence assistant, who very familiar with database related knowledge. -The assistant gives helpful, detailed, professional and polite answers to the user's questions.""" - -_DEFAULT_TEMPLATE_ZH = """请根据提供的上下文信息的进行精简地总结: -{context} -答案尽量精确和简单,不要过长,长度控制在100字左右 -""" - -_DEFAULT_TEMPLATE_EN = """ -Write a quick summary of the following context: -{context} -the summary should be as concise as possible and not overly lengthy.Please keep the answer within approximately 200 characters. -""" - -_DEFAULT_TEMPLATE = ( - _DEFAULT_TEMPLATE_EN if CFG.LANGUAGE == "en" else _DEFAULT_TEMPLATE_ZH -) - -PROMPT_RESPONSE = """""" - - -RESPONSE_FORMAT = """""" - -PROMPT_NEED_NEED_STREAM_OUT = False - -prompt = PromptTemplate( - template_scene=ChatScene.ExtractSummary.value(), - input_variables=["context"], - response_format=None, - template_define=PROMPT_SCENE_DEFINE, - template=_DEFAULT_TEMPLATE + PROMPT_RESPONSE, - stream_out=PROMPT_NEED_NEED_STREAM_OUT, - output_parser=ExtractSummaryParser(is_stream_out=PROMPT_NEED_NEED_STREAM_OUT), -) - -CFG.prompt_template_registry.register(prompt, is_default=True) diff --git a/dbgpt/app/scene/chat_knowledge/v1/chat.py b/dbgpt/app/scene/chat_knowledge/v1/chat.py index 82953b8d3..496e65af4 100644 --- a/dbgpt/app/scene/chat_knowledge/v1/chat.py +++ b/dbgpt/app/scene/chat_knowledge/v1/chat.py @@ -5,6 +5,7 @@ from dbgpt.app.scene import BaseChat, ChatScene from dbgpt._private.config import Config +from dbgpt.component import ComponentType from dbgpt.configs.model_config import ( EMBEDDING_MODEL_CONFIG, @@ -19,7 +20,9 @@ # NOTE: the import is required for register the chat_knowledge scene # from dbgpt.app.scene.chat_knowledge.v1.prompt import prompt from dbgpt.app.knowledge.service import KnowledgeService -from dbgpt.util.executor_utils import blocking_func_to_async +from dbgpt.model import DefaultLLMClient +from dbgpt.model.cluster import WorkerManagerFactory +from dbgpt.rag.retriever.rewrite import QueryRewrite from dbgpt.util.tracer import trace CFG = Config() @@ -38,8 +41,7 @@ def __init__(self, chat_param: Dict): - model_name:(str) llm model name - select_param:(str) space name """ - from dbgpt.rag.embedding_engine.embedding_engine import EmbeddingEngine - from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory + from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory self.knowledge_space = chat_param["select_param"] chat_param["chat_mode"] = ChatScene.ChatKnowledge @@ -62,17 +64,37 @@ def __init__(self, chat_param: Dict): if self.space_context is None or self.space_context.get("prompt") is None else int(self.space_context["prompt"]["max_token"]) ) - vector_store_config = { - "vector_store_name": self.knowledge_space, - "vector_store_type": CFG.VECTOR_STORE_TYPE, - } embedding_factory = CFG.SYSTEM_APP.get_component( "embedding_factory", EmbeddingFactory ) - self.knowledge_embedding_client = EmbeddingEngine( - model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL], - vector_store_config=vector_store_config, - embedding_factory=embedding_factory, + from dbgpt.rag.retriever.embedding import EmbeddingRetriever + from dbgpt.storage.vector_store.connector import VectorStoreConnector + + embedding_fn = embedding_factory.create( + model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL] + ) + from dbgpt.storage.vector_store.base import VectorStoreConfig + + config = VectorStoreConfig(name=self.knowledge_space, embedding_fn=embedding_fn) + vector_store_connector = VectorStoreConnector( + vector_store_type=CFG.VECTOR_STORE_TYPE, + vector_store_config=config, + ) + query_rewrite = None + self.worker_manager = CFG.SYSTEM_APP.get_component( + ComponentType.WORKER_MANAGER_FACTORY, WorkerManagerFactory + ).create() + self.llm_client = DefaultLLMClient(worker_manager=self.worker_manager) + if CFG.KNOWLEDGE_SEARCH_REWRITE: + query_rewrite = QueryRewrite( + llm_client=self.llm_client, + model_name=self.llm_model, + language=CFG.LANGUAGE, + ) + self.embedding_retriever = EmbeddingRetriever( + top_k=self.top_k, + vector_store_connector=vector_store_connector, + query_rewrite=query_rewrite, ) self.prompt_template.template_is_strict = False self.relations = None @@ -114,51 +136,33 @@ async def generate_input_values(self) -> Dict: if self.space_context and self.space_context.get("prompt"): self.prompt_template.template_define = self.space_context["prompt"]["scene"] self.prompt_template.template = self.space_context["prompt"]["template"] - from dbgpt.rag.retriever.reinforce import QueryReinforce + from dbgpt.util.chat_util import run_async_tasks - # query reinforce, get similar queries - query_reinforce = QueryReinforce( - query=self.current_user_input, model_name=self.llm_model - ) - queries = [] - if CFG.KNOWLEDGE_SEARCH_REWRITE: - queries = await query_reinforce.rewrite() - print("rewrite queries:", queries) - queries.append(self.current_user_input) - from dbgpt._private.chat_util import run_async_tasks - - # similarity search from vector db - tasks = [self.execute_similar_search(query) for query in queries] - docs_with_scores = await run_async_tasks(tasks=tasks, concurrency_limit=1) - candidates_with_scores = reduce(lambda x, y: x + y, docs_with_scores) - # candidates document rerank - from dbgpt.rag.retriever.rerank import DefaultRanker - - ranker = DefaultRanker(self.top_k) - candidates_with_scores = ranker.rank(candidates_with_scores) + tasks = [self.execute_similar_search(self.current_user_input)] + candidates_with_scores = await run_async_tasks(tasks=tasks, concurrency_limit=1) + candidates_with_scores = reduce(lambda x, y: x + y, candidates_with_scores) self.chunks_with_score = [] if not candidates_with_scores or len(candidates_with_scores) == 0: print("no relevant docs to retrieve") context = "no relevant docs to retrieve" else: self.chunks_with_score = [] - for d, score in candidates_with_scores: + for chunk in candidates_with_scores: chucks = self.chunk_dao.get_document_chunks( - query=DocumentChunkEntity(content=d.page_content), + query=DocumentChunkEntity(content=chunk.content), document_ids=self.document_ids, ) if len(chucks) > 0: - self.chunks_with_score.append((chucks[0], score)) + self.chunks_with_score.append((chucks[0], chunk.score)) - context = [doc.page_content for doc, _ in candidates_with_scores] + context = "\n".join([doc.content for doc in candidates_with_scores]) - context = context[: self.max_token] if CFG.KNOWLEDGE_CHAT_SHOW_RELATIONS: self.relations = list( set( [ os.path.basename(str(d.metadata.get("source", ""))) - for d, _ in candidates_with_scores + for d in candidates_with_scores ] ) ) @@ -206,7 +210,8 @@ def parse_source_view(self, chunks_with_score: List): references_list = list(references_dict.values()) references_ele.set("references", json.dumps(references_list)) html = ET.tostring(references_ele, encoding="utf-8") - return html.decode("utf-8") + reference = html.decode("utf-8") + return reference.replace("\\n", "") @property def chat_type(self) -> str: @@ -218,10 +223,6 @@ def get_space_context(self, space_name): async def execute_similar_search(self, query): """execute similarity search""" - return await blocking_func_to_async( - self._executor, - self.knowledge_embedding_client.similar_search_with_scores, - query, - self.top_k, - self.recall_score, + return await self.embedding_retriever.aretrieve_with_scores( + query, self.recall_score ) diff --git a/dbgpt/app/scene/operator/_experimental.py b/dbgpt/app/scene/operator/_experimental.py index 7ebe2c4c7..c422846c0 100644 --- a/dbgpt/app/scene/operator/_experimental.py +++ b/dbgpt/app/scene/operator/_experimental.py @@ -2,16 +2,20 @@ from dataclasses import dataclass import datetime import os + +from dbgpt.configs.model_config import PILOT_PATH from dbgpt.core.awel import MapOperator from dbgpt.core.interface.prompt import PromptTemplate from dbgpt._private.config import Config from dbgpt.app.scene import ChatScene from dbgpt.core.interface.message import OnceConversation from dbgpt.core.interface.message import ModelMessage, ModelMessageRoleType - +from dbgpt.rag.retriever.embedding import EmbeddingRetriever from dbgpt.storage.chat_history.base import BaseChatHistoryMemory from dbgpt.storage.chat_history.chat_hisotry_factory import ChatHistory +from dbgpt.storage.vector_store.base import VectorStoreConfig +from dbgpt.storage.vector_store.connector import VectorStoreConnector # TODO move global config CFG = Config() @@ -184,23 +188,14 @@ def __init__(self, **kwargs): async def map(self, input_value: ChatContext) -> ChatContext: from dbgpt.configs.model_config import EMBEDDING_MODEL_CONFIG - from dbgpt.rag.embedding_engine.embedding_engine import EmbeddingEngine - from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory + from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory # TODO, decompose the current operator into some atomic operators knowledge_space = input_value.select_param - vector_store_config = { - "vector_store_name": knowledge_space, - "vector_store_type": CFG.VECTOR_STORE_TYPE, - } embedding_factory = self.system_app.get_component( "embedding_factory", EmbeddingFactory ) - knowledge_embedding_client = EmbeddingEngine( - model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL], - vector_store_config=vector_store_config, - embedding_factory=embedding_factory, - ) + space_context = await self._get_space_context(knowledge_space) top_k = ( CFG.KNOWLEDGE_SEARCH_TOP_SIZE @@ -219,16 +214,28 @@ async def map(self, input_value: ChatContext) -> ChatContext: ] input_value.prompt_template.template = space_context["prompt"]["template"] + config = VectorStoreConfig( + name=knowledge_space, + embedding_fn=embedding_factory.create( + EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL] + ), + ) + vector_store_connector = VectorStoreConnector( + vector_store_type=CFG.VECTOR_STORE_TYPE, + vector_store_config=config, + ) + embedding_retriever = EmbeddingRetriever( + top_k=top_k, vector_store_connector=vector_store_connector + ) docs = await self.blocking_func_to_async( - knowledge_embedding_client.similar_search, + embedding_retriever.retrieve, input_value.current_user_input, - top_k, ) if not docs or len(docs) == 0: print("no relevant docs to retrieve") context = "no relevant docs to retrieve" else: - context = [d.page_content for d in docs] + context = [d.content for d in docs] context = context[:max_token] relations = list( set([os.path.basename(str(d.metadata.get("source", ""))) for d in docs]) diff --git a/dbgpt/app/static/404.html b/dbgpt/app/static/404.html index 4ef1abcda..53505aaee 100644 --- a/dbgpt/app/static/404.html +++ b/dbgpt/app/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/dbgpt/app/static/404/index.html b/dbgpt/app/static/404/index.html index 4ef1abcda..53505aaee 100644 --- a/dbgpt/app/static/404/index.html +++ b/dbgpt/app/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/0.a6282ef0fa8a7551.js b/dbgpt/app/static/_next/static/chunks/0.8c4d432c0d5c66c7.js similarity index 63% rename from dbgpt/app/static/_next/static/chunks/0.a6282ef0fa8a7551.js rename to dbgpt/app/static/_next/static/chunks/0.8c4d432c0d5c66c7.js index 009867e10..33289ef43 100644 --- a/dbgpt/app/static/_next/static/chunks/0.a6282ef0fa8a7551.js +++ b/dbgpt/app/static/_next/static/chunks/0.8c4d432c0d5c66c7.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{15506:function(e,l,t){t.r(l),t.d(l,{default:function(){return ew}});var a=t(85893),s=t(67294),n=t(2093),r=t(43446),o=t(39332),i=t(99513),c=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(50228),h=t(87547),p=t(89035),v=t(33035),f=t(12767),g=t(94184),j=t.n(g),b=t(66309),y=t(81799),w=t(41468),_=t(29158),N=t(98165),Z=t(14079),k=t(38426),C=t(61607),S=t(44442),P=t(74627),R=t(36782),E=t(13135),D=t(71577),I=t(2453),M=t(57132),O=t(79166),z=t(93179),L=t(20640),A=t.n(L);function F(e){let{code:l,language:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(D.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,a.jsx)(M.Z,{}),onClick:()=>{let e=A()(l);I.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,a.jsx)(z.Z,{language:t,style:O.Z,children:l})]})}let H=["custom-view","chart-view","references","summary"],q={code(e){var l;let{inline:t,node:s,className:n,children:r,style:o,...i}=e,{context:c,matchValues:d}=function(e){let l=H.reduce((l,t)=>{let a=RegExp("<".concat(t,"[^>]*/?>"),"gi");return e=e.replace(a,e=>(l.push(e),"")),l},[]);return{context:e,matchValues:l}}(Array.isArray(r)?r.join("\n"):r),u=/language-(\w+)/.exec(n||"");return(0,a.jsxs)(a.Fragment,{children:[!t&&u?(0,a.jsx)(F,{code:c,language:null!==(l=null==u?void 0:u[1])&&void 0!==l?l:"javascript"}):(0,a.jsx)("code",{...i,style:o,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:r}),(0,a.jsx)(v.D,{components:q,rehypePlugins:[f.Z],children:d.join("\n")})]})},ul(e){let{children:l}=e;return(0,a.jsx)("ul",{className:"py-1",children:l})},ol(e){let{children:l}=e;return(0,a.jsx)("ol",{className:"py-1",children:l})},li(e){let{children:l,ordered:t}=e;return(0,a.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(t?"list-decimal":"list-disc"),children:l})},table(e){let{children:l}=e;return(0,a.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md max-w-full bg-white dark:bg-gray-900 text-sm rounded-lg overflow-hidden",children:l})},thead(e){let{children:l}=e;return(0,a.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:l})},th(e){let{children:l}=e;return(0,a.jsx)("th",{className:"!text-left p-4",children:l})},td(e){let{children:l}=e;return(0,a.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:l})},h1(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:l})},h2(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-xl font-bold my-3",children:l})},h3(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-lg font-semibold my-2",children:l})},h4(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-base font-semibold my-1",children:l})},a(e){let{children:l,href:t}=e;return(0,a.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,a.jsx)(_.Z,{className:"mr-1"}),(0,a.jsx)("a",{href:t,target:"_blank",children:l})]})},img(e){let{src:l,alt:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(k.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:l,alt:t,placeholder:(0,a.jsx)(b.Z,{icon:(0,a.jsx)(N.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:l}=e;return(0,a.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:l})},"chart-view":function(e){var l,t,s;let n,{content:r,children:o}=e;try{n=JSON.parse(r)}catch(e){console.log(e,r),n={type:"response_table",sql:"",data:[]}}let i=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l[0])?null===(t=Object.keys(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],c={key:"chart",label:"Chart",children:(0,a.jsx)(E._z,{data:null==n?void 0:n.data,chartType:(0,E.aG)(null==n?void 0:n.type)})},d={key:"sql",label:"SQL",children:(0,a.jsx)(F,{code:(0,R.WU)(null==n?void 0:n.sql,{language:"mysql"}),language:"sql"})},u={key:"data",label:"Data",children:(0,a.jsx)(C.Z,{dataSource:null==n?void 0:n.data,columns:i})},m=(null==n?void 0:n.type)==="response_table"?[u,d]:[c,d,u];return(0,a.jsxs)("div",{children:[(0,a.jsx)(S.Z,{defaultActiveKey:(null==n?void 0:n.type)==="response_table"?"data":"chart",items:m,size:"small"}),o]})},references:function(e){let l,{title:t,references:s,children:n}=e;if(n)try{t=(l=JSON.parse(n)).title,s=l.references}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}else try{s=JSON.parse(s)}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}return!s||(null==s?void 0:s.length)<1?null:(0,a.jsxs)("div",{className:"border-t-[1px] border-gray-300 mt-3 py-2",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[(0,a.jsx)(_.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:t})]}),s.map((e,l)=>{var t;return(0,a.jsxs)("div",{className:"text-sm font-normal block ml-2 h-6 leading-6 overflow-hidden",children:[(0,a.jsxs)("span",{className:"inline-block w-6",children:["[",l+1,"]"]}),(0,a.jsx)("span",{className:"mr-2 lg:mr-4 text-blue-400",children:e.name}),null==e?void 0:null===(t=e.chunks)||void 0===t?void 0:t.map((l,t)=>(0,a.jsxs)("span",{children:["object"==typeof l?(0,a.jsx)(P.Z,{content:(0,a.jsxs)("div",{className:"max-w-4xl",children:[(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Content:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.content)||"No Content"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"MetaData:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.meta_info)||"No MetaData"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Score:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.recall_score)||""})]}),title:"Chunk Information",children:(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:null==l?void 0:l.id},"chunk_content_".concat(null==l?void 0:l.id))}):(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:l},"chunk_id_".concat(l)),t<(null==e?void 0:e.chunks.length)-1&&(0,a.jsx)("span",{children:","},"chunk_comma_".concat(t))]},"chunk_".concat(t)))]},"file_".concat(l))})]})},summary:function(e){let{children:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-2",children:[(0,a.jsx)(Z.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:"Document Summary"})]}),(0,a.jsx)("div",{children:l})]})}},V={todo:{bgClass:"bg-gray-500",icon:(0,a.jsx)(c.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,a.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,a.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,a.jsx)(m.Z,{className:"ml-2"})}};function T(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"").replace(/]+)>/gi,"")}var G=(0,s.memo)(function(e){let{children:l,content:t,isChartChat:n,onLinkClick:r}=e,{scene:o}=(0,s.useContext)(w.p),{context:i,model_name:c,role:d}=t,u="view"===d,{relations:m,value:g,cachePluginContext:_}=(0,s.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePluginContext:[]};let[e,l]=i.split(" relations:"),t=l?l.split(","):[],a=[],s=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(s,"");return a.push({...n,result:T(null!==(l=n.result)&&void 0!==l?l:"")}),s++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePluginContext:a,value:n}},[i]),N=(0,s.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,s=+t.toString();if(!_[s])return t;let{name:n,status:r,err_msg:o,result:i}=_[s],{bgClass:c,icon:d}=null!==(l=V[r])&&void 0!==l?l:{};return(0,a.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,a.jsxs)("div",{className:j()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[n,d]}),i?(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,a.jsx)(v.D,{components:q,rehypePlugins:[f.Z],children:null!=i?i:""})}):(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,_]);return u||i?(0,a.jsxs)("div",{className:j()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-4 rounded-xl break-words",{"bg-slate-100 dark:bg-[#353539]":u,"lg:w-full xl:w-full pl-0":["chat_with_db_execute","chat_dashboard"].includes(o)}),children:[(0,a.jsx)("div",{className:"mr-2 flex flex-shrink-0 items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:u?(0,y.A)(c)||(0,a.jsx)(x.Z,{}):(0,a.jsx)(h.Z,{})}),(0,a.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&n&&"object"==typeof i&&(0,a.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,a.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:r,children:[(0,a.jsx)(p.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,a.jsx)(v.D,{components:{...q,...N},rehypePlugins:[f.Z],children:T(g)}),!!(null==m?void 0:m.length)&&(0,a.jsx)("div",{className:"flex flex-wrap mt-2",children:null==m?void 0:m.map((e,l)=>(0,a.jsx)(b.Z,{color:"#108ee9",children:e},e+l))})]}),l]}):(0,a.jsx)("div",{className:"h-12"})}),J=t(59301),U=t(41132),W=t(74312),$=t(3414),B=t(72868),Q=t(59562),K=t(14553),X=t(25359),Y=t(7203),ee=t(48665),el=t(26047),et=t(99056),ea=t(57814),es=t(63955),en=t(33028),er=t(40911),eo=t(66478),ei=t(83062),ec=t(50489),ed=t(67421),eu=e=>{var l;let{conv_index:t,question:n,knowledge_space:r,select_param:o}=e,{t:i}=(0,ed.$G)(),{chatId:c}=(0,s.useContext)(w.p),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(4),[h,p]=(0,s.useState)(""),v=(0,s.useRef)(null),[f,g]=I.ZP.useMessage(),j=(0,s.useCallback)((e,l)=>{l?(0,ec.Vx)((0,ec.Eb)(c,t)).then(e=>{var l,t,a,s;let n=null!==(l=e[1])&&void 0!==l?l:{};u(null!==(t=n.ques_type)&&void 0!==t?t:""),x(parseInt(null!==(a=n.score)&&void 0!==a?a:"4")),p(null!==(s=n.messages)&&void 0!==s?s:"")}).catch(e=>{console.log(e)}):(u(""),x(4),p(""))},[c,t]),b=(0,W.Z)($.Z)(e=>{let{theme:l}=e;return{backgroundColor:"dark"===l.palette.mode?"#FBFCFD":"#0E0E10",...l.typography["body-sm"],padding:l.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,a.jsxs)(B.L,{onOpenChange:j,children:[g,(0,a.jsx)(ei.Z,{title:i("Rating"),children:(0,a.jsx)(Q.Z,{slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(J.Z,{})})}),(0,a.jsxs)(X.Z,{children:[(0,a.jsx)(Y.Z,{disabled:!0,sx:{minHeight:0}}),(0,a.jsx)(ee.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let l={conv_uid:c,conv_index:t,question:n,knowledge_space:r,score:m,ques_type:d,messages:h};console.log(l),(0,ec.Vx)((0,ec.VC)({data:l})).then(e=>{f.open({type:"success",content:"save success"})}).catch(e=>{f.open({type:"error",content:"save error"})})},children:(0,a.jsxs)(el.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:i("Q_A_Category")})}),(0,a.jsx)(el.Z,{xs:10,children:(0,a.jsx)(et.Z,{action:v,value:d,placeholder:"Choose one…",onChange:(e,l)=>u(null!=l?l:""),...d&&{endDecorator:(0,a.jsx)(K.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=v.current)||void 0===e||e.focusVisible()},children:(0,a.jsx)(U.Z,{})}),indicator:null},sx:{width:"100%"},children:o&&(null===(l=Object.keys(o))||void 0===l?void 0:l.map(e=>(0,a.jsx)(ea.Z,{value:e,children:o[e]},e)))})}),(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:(0,a.jsx)(ei.Z,{title:(0,a.jsx)(ee.Z,{children:(0,a.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,a.jsx)(el.Z,{xs:10,sx:{pl:0,ml:0},children:(0,a.jsx)(es.Z,{"aria-label":"Custom",step:1,min:0,max:5,valueLabelFormat:function(e){return({0:i("Lowest"),1:i("Missed"),2:i("Lost"),3:i("Incorrect"),4:i("Verbose"),5:i("Best")})[e]},valueLabelDisplay:"on",marks:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}],sx:{width:"90%",pt:3,m:2,ml:1},onChange:e=>{var l;return x(null===(l=e.target)||void 0===l?void 0:l.value)},value:m})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(en.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,a.jsx)(er.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(eo.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},em=t(32983),ex=t(12069),eh=t(96486),ep=t(20766),ev=t(98399),ef=t(87740),eg=t(80573),ej=e=>{var l;let{messages:t,onSubmit:r}=e,{dbParam:c,currentDialogue:d,scene:u,model:m,refreshDialogList:x,chatId:h,agentList:p,docId:v}=(0,s.useContext)(w.p),{t:f}=(0,ed.$G)(),g=(0,o.useSearchParams)(),b=null!==(l=g&&g.get("spaceNameOriginal"))&&void 0!==l?l:"",[_,N]=(0,s.useState)(!1),[Z,k]=(0,s.useState)(!1),[C,S]=(0,s.useState)(t),[P,R]=(0,s.useState)(""),[E,D]=(0,s.useState)(),O=(0,s.useRef)(null),z=(0,s.useMemo)(()=>"chat_dashboard"===u,[u]),L=(0,eg.Z)(),F=(0,s.useMemo)(()=>{switch(u){case"chat_agent":return p.join(",");case"chat_excel":return null==d?void 0:d.select_param;default:return b||c}},[u,p,d,c,b]),H=async e=>{if(!_&&e.trim())try{N(!0),await r(e,{select_param:null!=F?F:""})}finally{N(!1)}},q=e=>{try{return JSON.parse(e)}catch(l){return e}},[V,T]=I.ZP.useMessage(),J=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=A()(l);t?l?V.open({type:"success",content:f("Copy_success")}):V.open({type:"warning",content:f("Copy_nothing")}):V.open({type:"error",content:f("Copry_error")})},U=async()=>{!_&&v&&(N(!0),await L(v),N(!1))};return(0,n.Z)(async()=>{let e=(0,ev.a_)();e&&e.id===h&&(await H(e.message),x(),localStorage.removeItem(ev.rU))},[h]),(0,s.useEffect)(()=>{let e=t;z&&(e=(0,eh.cloneDeep)(t).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=q(null==e?void 0:e.context)),e))),S(e.filter(e=>["view","human"].includes(e.role)))},[z,t]),(0,s.useEffect)(()=>{(0,ec.Vx)((0,ec.Lu)()).then(e=>{var l;D(null!==(l=e[1])&&void 0!==l?l:{})}).catch(e=>{console.log(e)})},[]),(0,s.useEffect)(()=>{setTimeout(()=>{var e;null===(e=O.current)||void 0===e||e.scrollTo(0,O.current.scrollHeight)},50)},[t]),(0,a.jsxs)(a.Fragment,{children:[T,(0,a.jsx)("div",{ref:O,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,a.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:C.length?C.map((e,l)=>{var t;return(0,a.jsx)(G,{content:e,isChartChat:z,onLinkClick:()=>{k(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,a.jsxs)("div",{className:"flex w-full pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4 pl-2",children:["chat_knowledge"===u&&e.retry?(0,a.jsxs)(eo.Z,{onClick:U,slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},children:[(0,a.jsx)(ef.Z,{}),"\xa0",(0,a.jsx)("span",{className:"text-sm",children:f("Retry")})]}):null,(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse",children:[(0,a.jsx)(eu,{select_param:E,conv_index:Math.ceil((l+1)/2),question:null===(t=null==C?void 0:C.filter(l=>(null==l?void 0:l.role)==="human"&&(null==l?void 0:l.order)===e.order)[0])||void 0===t?void 0:t.context,knowledge_space:b||c||""}),(0,a.jsx)(ei.Z,{title:f("Copy"),children:(0,a.jsx)(eo.Z,{onClick:()=>J(null==e?void 0:e.context),slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(M.Z,{})})})]})]})},l)}):(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:"Start a conversation"})})}),(0,a.jsx)("div",{className:j()("relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",{"cursor-not-allowed":"chat_excel"===u&&!(null==d?void 0:d.select_param)}),children:(0,a.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10 items-center",children:[m&&(0,a.jsx)("div",{className:"mr-2 flex",children:(0,y.A)(m)}),(0,a.jsx)(ep.Z,{loading:_,onSubmit:H,handleFinish:N})]})}),(0,a.jsx)(ex.default,{title:"JSON Editor",open:Z,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{k(!1)},onCancel:()=>{k(!1)},children:(0,a.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:P})})]})},eb=t(34625),ey=t(45247),ew=()=>{var e;let l=(0,o.useSearchParams)(),{scene:t,chatId:i,model:c,setModel:d,history:u,setHistory:m}=(0,s.useContext)(w.p),x=(0,r.Z)({}),h=null!==(e=l&&l.get("initMessage"))&&void 0!==e?e:"",[p,v]=(0,s.useState)(!1),[f,g]=(0,s.useState)(),b=async()=>{v(!0);let[,e]=await (0,ec.Vx)((0,ec.$i)(i));m(null!=e?e:[]),v(!1)},y=e=>{var l;let t=null===(l=e[e.length-1])||void 0===l?void 0:l.context;if(t)try{let e=JSON.parse(t);g((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){g(void 0)}};(0,n.Z)(async()=>{let e=(0,ev.a_)();e&&e.id===i||await b()},[h,i]),(0,s.useEffect)(()=>{var e,l;if(!u.length)return;let t=null===(e=null===(l=u.filter(e=>"view"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];(null==t?void 0:t.model_name)&&d(t.model_name),y(u)},[u.length]),(0,s.useEffect)(()=>()=>{m([])},[]);let _=(0,s.useCallback)((e,l)=>new Promise(a=>{let s=[...u,{role:"human",context:e,model_name:c,order:0,time_stamp:0},{role:"view",context:"",model_name:c,order:0,time_stamp:0}],n=s.length-1;m([...s]),x({data:{...l,chat_mode:t||"chat_normal",model_name:c,user_input:e},chatId:i,onMessage:e=>{s[n].context=e,m([...s])},onDone:()=>{y(s),a()},onClose:()=>{y(s),a()},onError:e=>{s[n].context=e,m([...s]),a()}})}),[u,x,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ey.Z,{visible:p}),(0,a.jsx)(eb.Z,{refreshHistory:b,modelChange:e=>{d(e)}}),(0,a.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==f?void 0:f.length)&&(0,a.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,a.jsx)(E.ZP,{chartsData:f})}),!(null==f?void 0:f.length)&&"chat_dashboard"===t&&(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"w-full xl:w-3/4 h-3/5 xl:h-full pt-0 md:pt-10"}),(0,a.jsx)("div",{className:j()("flex flex-1 flex-col overflow-hidden",{"px-0 xl:pl-4 h-2/5 xl:h-full border-t xl:border-t-0 xl:border-l":"chat_dashboard"===t,"h-full lg:px-8":"chat_dashboard"!==t}),children:(0,a.jsx)(ej,{messages:u,onSubmit:_})})]})]})}},20766:function(e,l,t){t.d(l,{Z:function(){return D}});var a=t(85893),s=t(27496),n=t(59566),r=t(71577),o=t(67294),i=t(2487),c=t(83062),d=t(2453),u=t(46735),m=t(74627),x=t(39479),h=t(51009),p=t(58299),v=t(577),f=t(30119),g=t(67421);let j=e=>{let{data:l,loading:t,submit:s,close:n}=e,{t:r}=(0,g.$G)(),o=e=>()=>{s(e),n()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(i.Z,{dataSource:null==l?void 0:l.data,loading:t,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(c.Z,{title:e.content,children:(0,a.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:l}=e,{t}=(0,g.$G)(),[s,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)("common"),{data:b,loading:y}=(0,v.Z)(()=>(0,f.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(u.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(x.Z.Item,{label:"Prompt "+t("Type"),children:(0,a.jsx)(h.default,{style:{width:150},value:r,onChange:e=>{i(e)},options:[{label:t("Public")+" Prompts",value:"common"},{label:t("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(j,{data:b,loading:y,submit:l,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{n(e)},children:(0,a.jsx)(c.Z,{title:t("Click_Select")+" Prompt",children:(0,a.jsx)(p.Z,{className:"bottom-[30%]"})})})})},y=t(41468),w=t(50489),_=t(80573),N=t(5392),Z=t(84553);function k(e){let{dbParam:l,setDocId:t}=(0,o.useContext)(y.p),{onUploadFinish:s,handleFinish:n}=e,i=(0,_.Z)(),[c,d]=(0,o.useState)(!1),u=async(e,l)=>{await (0,w.Vx)((0,w.Hx)(e,{doc_ids:[l]}))},m=async e=>{d(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let r=await (0,w.Vx)((0,w.iG)(l||"default",a));if(!r[1]){d(!1);return}t(r[1]),s(),await u(l||"default",null==r?void 0:r[1]),d(!1),null==n||n(!0),await i(r[1]),null==n||n(!1)};return(0,a.jsx)(Z.default,{customRequest:m,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:c,size:"small",shape:"circle",icon:(0,a.jsx)(N.Z,{})})})}var C=t(11163),S=t(82579);function P(){return(0,a.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6058",width:"1.5em",height:"1.5em",children:(0,a.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06","p-id":"6059"})})}function R(e){let{document:l}=e;switch(l.status){case"RUNNING":return(0,a.jsx)(S.Rp,{});case"FINISHED":default:return(0,a.jsx)(S.s2,{});case"FAILED":return(0,a.jsx)(P,{})}}function E(e){let{documents:l,dbParam:t}=e,s=(0,C.useRouter)(),n=e=>{s.push("/knowledge/chunk/?spaceName=".concat(t,"&id=").concat(e))};return(null==l?void 0:l.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:l.map(e=>{let l;switch(e.status){case"RUNNING":l="#2db7f5";break;case"FINISHED":default:l="#87d068";break;case"FAILED":l="#f50"}return(0,a.jsx)(c.Z,{title:e.result,children:(0,a.jsxs)(r.ZP,{style:{color:l},onClick:()=>{n(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(R,{document:e}),e.doc_name]})},e.id)})}):null}var D=function(e){let{children:l,loading:t,onSubmit:i,handleFinish:c,...d}=e,{dbParam:u,scene:m}=(0,o.useContext)(y.p),[x,h]=(0,o.useState)(""),p=(0,o.useMemo)(()=>"chat_knowledge"===m,[m]),[v,f]=(0,o.useState)([]),g=(0,o.useRef)(0);async function j(){if(!u)return null;let[e,l]=await (0,w.Vx)((0,w._Q)(u,{page:1,page_size:g.current}));f(null==l?void 0:l.data)}return(0,o.useEffect)(()=>{p&&j()},[u]),(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(E,{documents:v,dbParam:u}),p&&(0,a.jsx)(k,{handleFinish:c,onUploadFinish:()=>{g.current+=1,j()},className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(n.default.TextArea,{className:"flex-1 ".concat(p?"pl-10":""," pr-10"),size:"large",value:x,autoSize:{minRows:1,maxRows:4},...d,onPressEnter:e=>{if(x.trim()&&13===e.keyCode){if(e.shiftKey){h(e=>e+"\n");return}i(x),setTimeout(()=>{h("")},0)}},onChange:e=>{if("number"==typeof d.maxLength){h(e.target.value.substring(0,d.maxLength));return}h(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:t,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{i(x)}}),(0,a.jsx)(b,{submit:e=>{h(x+e)}}),l]})}},45247:function(e,l,t){var a=t(85893),s=t(50888);l.Z=function(e){let{visible:l}=e;return l?(0,a.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,a.jsx)(s.Z,{})}):null}},43446:function(e,l,t){var a=t(1375),s=t(2453),n=t(67294),r=t(58989),o=t(83454);l.Z=e=>{let{queryAgentURL:l="/api/v1/chat/completions"}=e,t=(0,n.useMemo)(()=>new AbortController,[]),i=(0,n.useCallback)(async e=>{let{data:n,chatId:i,onMessage:c,onClose:d,onDone:u,onError:m}=e;if(!(null==n?void 0:n.user_input)&&!(null==n?void 0:n.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let x={...n,conv_uid:i};if(!x.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var h;await (0,a.L)("".concat(null!==(h=o.env.API_BASE_URL)&&void 0!==h?h:"").concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x),signal:t.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){t.abort(),null==d||d()},onerror(e){throw Error(e)},onmessage:e=>{var l;let t=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n");"[DONE]"===t?null==u||u():(null==t?void 0:t.startsWith("[ERROR]"))?null==m||m(null==t?void 0:t.replace("[ERROR]","")):null==c||c(t)}})}catch(e){t.abort(),null==m||m("Sorry, We meet some error, please try agin later.",e)}},[l]);return(0,n.useEffect)(()=>()=>{t.abort()},[]),i}},80573:function(e,l,t){var a=t(41468),s=t(67294),n=t(43446),r=t(50489);l.Z=()=>{let{history:e,setHistory:l,chatId:t,model:o,docId:i}=(0,s.useContext)(a.p),c=(0,n.Z)({queryAgentURL:"/knowledge/document/summary"}),d=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(t)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],n=s.length-1;l([...s]),await c({data:{doc_id:e||i,model_name:o},chatId:t,onMessage:e=>{s[n].context=e,l([...s])}})},[e,o,i,t]);return d}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{15506:function(e,l,t){t.r(l),t.d(l,{default:function(){return ew}});var a=t(85893),s=t(67294),n=t(2093),r=t(43446),o=t(39332),i=t(99513),c=t(24019),d=t(50888),u=t(97937),m=t(63606),x=t(50228),h=t(87547),p=t(89035),f=t(33035),v=t(12767),g=t(94184),j=t.n(g),b=t(66309),y=t(81799),w=t(41468),_=t(29158),N=t(98165),Z=t(14079),k=t(38426),C=t(61607),S=t(44442),P=t(74627),R=t(36782),E=t(13135),D=t(71577),I=t(2453),O=t(57132),M=t(79166),L=t(93179),A=t(20640),F=t.n(A);function q(e){let{code:l,language:t}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(D.ZP,{className:"absolute right-3 top-2 text-gray-300 hover:!text-gray-200 bg-gray-700",type:"text",icon:(0,a.jsx)(O.Z,{}),onClick:()=>{let e=F()(l);I.ZP[e?"success":"error"](e?"Copy success":"Copy failed")}}),(0,a.jsx)(L.Z,{language:t,style:M.Z,children:l})]})}let z=["custom-view","chart-view","references","summary"],T={code(e){var l;let{inline:t,node:s,className:n,children:r,style:o,...i}=e,{context:c,matchValues:d}=function(e){let l=z.reduce((l,t)=>{let a=RegExp("<".concat(t,"[^>]*/?>"),"gi");return e=e.replace(a,e=>(l.push(e),"")),l},[]);return{context:e,matchValues:l}}(Array.isArray(r)?r.join("\n"):r),u=/language-(\w+)/.exec(n||"");return(0,a.jsxs)(a.Fragment,{children:[!t&&u?(0,a.jsx)(q,{code:c,language:null!==(l=null==u?void 0:u[1])&&void 0!==l?l:"javascript"}):(0,a.jsx)("code",{...i,style:o,className:"px-[6px] py-[2px] rounded bg-gray-700 text-gray-100 dark:bg-gray-100 dark:text-gray-800 text-sm",children:r}),(0,a.jsx)(f.D,{components:T,rehypePlugins:[v.Z],children:d.join("\n")})]})},ul(e){let{children:l}=e;return(0,a.jsx)("ul",{className:"py-1",children:l})},ol(e){let{children:l}=e;return(0,a.jsx)("ol",{className:"py-1",children:l})},li(e){let{children:l,ordered:t}=e;return(0,a.jsx)("li",{className:"text-sm leading-7 ml-5 pl-2 text-gray-600 dark:text-gray-300 ".concat(t?"list-decimal":"list-disc"),children:l})},table(e){let{children:l}=e;return(0,a.jsx)("table",{className:"my-2 rounded-tl-md rounded-tr-md max-w-full bg-white dark:bg-gray-900 text-sm rounded-lg overflow-hidden",children:l})},thead(e){let{children:l}=e;return(0,a.jsx)("thead",{className:"bg-[#fafafa] dark:bg-black font-semibold",children:l})},th(e){let{children:l}=e;return(0,a.jsx)("th",{className:"!text-left p-4",children:l})},td(e){let{children:l}=e;return(0,a.jsx)("td",{className:"p-4 border-t border-[#f0f0f0] dark:border-gray-700",children:l})},h1(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-2xl font-bold my-4 border-b border-slate-300 pb-4",children:l})},h2(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-xl font-bold my-3",children:l})},h3(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-lg font-semibold my-2",children:l})},h4(e){let{children:l}=e;return(0,a.jsx)("h3",{className:"text-base font-semibold my-1",children:l})},a(e){let{children:l,href:t}=e;return(0,a.jsxs)("div",{className:"inline-block text-blue-600 dark:text-blue-400",children:[(0,a.jsx)(_.Z,{className:"mr-1"}),(0,a.jsx)("a",{href:t,target:"_blank",children:l})]})},img(e){let{src:l,alt:t}=e;return(0,a.jsx)("div",{children:(0,a.jsx)(k.Z,{className:"min-h-[1rem] max-w-full max-h-full border rounded",src:l,alt:t,placeholder:(0,a.jsx)(b.Z,{icon:(0,a.jsx)(N.Z,{spin:!0}),color:"processing",children:"Image Loading..."}),fallback:"/images/fallback.png"})})},blockquote(e){let{children:l}=e;return(0,a.jsx)("blockquote",{className:"py-4 px-6 border-l-4 border-blue-600 rounded bg-white my-2 text-gray-500 dark:bg-slate-800 dark:text-gray-200 dark:border-white shadow-sm",children:l})},"chart-view":function(e){var l,t,s;let n,{content:r,children:o}=e;try{n=JSON.parse(r)}catch(e){console.log(e,r),n={type:"response_table",sql:"",data:[]}}let i=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l[0])?null===(t=Object.keys(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s[0]))||void 0===t?void 0:t.map(e=>({title:e,dataIndex:e,key:e})):[],c={key:"chart",label:"Chart",children:(0,a.jsx)(E._z,{data:null==n?void 0:n.data,chartType:(0,E.aG)(null==n?void 0:n.type)})},d={key:"sql",label:"SQL",children:(0,a.jsx)(q,{code:(0,R.WU)(null==n?void 0:n.sql,{language:"mysql"}),language:"sql"})},u={key:"data",label:"Data",children:(0,a.jsx)(C.Z,{dataSource:null==n?void 0:n.data,columns:i})},m=(null==n?void 0:n.type)==="response_table"?[u,d]:[c,d,u];return(0,a.jsxs)("div",{children:[(0,a.jsx)(S.Z,{defaultActiveKey:(null==n?void 0:n.type)==="response_table"?"data":"chart",items:m,size:"small"}),o]})},references:function(e){let l,{title:t,references:s,children:n}=e;if(n)try{t=(l=JSON.parse(n)).title,s=l.references}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}else try{s=JSON.parse(s)}catch(e){return console.log("parse references failed",e),(0,a.jsx)("p",{className:"text-sm text-red-500",children:"Render Reference Error!"})}return!s||(null==s?void 0:s.length)<1?null:(0,a.jsxs)("div",{className:"border-t-[1px] border-gray-300 mt-3 py-2",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2",children:[(0,a.jsx)(_.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:t})]}),s.map((e,l)=>{var t;return(0,a.jsxs)("div",{className:"text-sm font-normal block ml-2 h-6 leading-6 overflow-hidden",children:[(0,a.jsxs)("span",{className:"inline-block w-6",children:["[",l+1,"]"]}),(0,a.jsx)("span",{className:"mr-2 lg:mr-4 text-blue-400",children:e.name}),null==e?void 0:null===(t=e.chunks)||void 0===t?void 0:t.map((l,t)=>(0,a.jsxs)("span",{children:["object"==typeof l?(0,a.jsx)(P.Z,{content:(0,a.jsxs)("div",{className:"max-w-4xl",children:[(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Content:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.content)||"No Content"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"MetaData:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.meta_info)||"No MetaData"}),(0,a.jsx)("p",{className:"mt-2 font-bold mr-2 border-t border-gray-500 pt-2",children:"Score:"}),(0,a.jsx)("p",{children:(null==l?void 0:l.recall_score)||""})]}),title:"Chunk Information",children:(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:null==l?void 0:l.id},"chunk_content_".concat(null==l?void 0:l.id))}):(0,a.jsx)("span",{className:"cursor-pointer text-blue-500 ml-2",children:l},"chunk_id_".concat(l)),t<(null==e?void 0:e.chunks.length)-1&&(0,a.jsx)("span",{children:","},"chunk_comma_".concat(t))]},"chunk_".concat(t)))]},"file_".concat(l))})]})},summary:function(e){let{children:l}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-2",children:[(0,a.jsx)(Z.Z,{className:"mr-2"}),(0,a.jsx)("span",{className:"font-semibold",children:"Document Summary"})]}),(0,a.jsx)("div",{children:l})]})}},V={todo:{bgClass:"bg-gray-500",icon:(0,a.jsx)(c.Z,{className:"ml-2"})},runing:{bgClass:"bg-blue-500",icon:(0,a.jsx)(d.Z,{className:"ml-2"})},failed:{bgClass:"bg-red-500",icon:(0,a.jsx)(u.Z,{className:"ml-2"})},completed:{bgClass:"bg-green-500",icon:(0,a.jsx)(m.Z,{className:"ml-2"})}};function G(e){return e.replaceAll("\\n","\n").replace(/]+)>/gi,"
").replace(/]+)>/gi,"")}var H=(0,s.memo)(function(e){let{children:l,content:t,isChartChat:n,onLinkClick:r}=e,{scene:o}=(0,s.useContext)(w.p),{context:i,model_name:c,role:d}=t,u="view"===d,{relations:m,value:g,cachePluginContext:_}=(0,s.useMemo)(()=>{if("string"!=typeof i)return{relations:[],value:"",cachePluginContext:[]};let[e,l]=i.split(" relations:"),t=l?l.split(","):[],a=[],s=0,n=e.replace(/]*>[^<]*<\/dbgpt-view>/gi,e=>{try{var l;let t=e.replaceAll("\n","\\n").replace(/<[^>]*>|<\/[^>]*>/gm,""),n=JSON.parse(t),r="".concat(s,"");return a.push({...n,result:G(null!==(l=n.result)&&void 0!==l?l:"")}),s++,r}catch(l){return console.log(l.message,l),e}});return{relations:t,cachePluginContext:a,value:n}},[i]),N=(0,s.useMemo)(()=>({"custom-view"(e){var l;let{children:t}=e,s=+t.toString();if(!_[s])return t;let{name:n,status:r,err_msg:o,result:i}=_[s],{bgClass:c,icon:d}=null!==(l=V[r])&&void 0!==l?l:{};return(0,a.jsxs)("div",{className:"bg-white dark:bg-[#212121] rounded-lg overflow-hidden my-2 flex flex-col lg:max-w-[80%]",children:[(0,a.jsxs)("div",{className:j()("flex px-4 md:px-6 py-2 items-center text-white text-sm",c),children:[n,d]}),i?(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:(0,a.jsx)(f.D,{components:T,rehypePlugins:[v.Z],children:null!=i?i:""})}):(0,a.jsx)("div",{className:"px-4 md:px-6 py-4 text-sm",children:o})]})}}),[i,_]);return u||i?(0,a.jsxs)("div",{className:j()("relative flex flex-wrap w-full px-2 sm:px-4 py-2 sm:py-4 rounded-xl break-words",{"bg-slate-100 dark:bg-[#353539]":u,"lg:w-full xl:w-full pl-0":["chat_with_db_execute","chat_dashboard"].includes(o)}),children:[(0,a.jsx)("div",{className:"mr-2 flex flex-shrink-0 items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:u?(0,y.A)(c)||(0,a.jsx)(x.Z,{}):(0,a.jsx)(h.Z,{})}),(0,a.jsxs)("div",{className:"flex-1 overflow-hidden items-center text-md leading-8",children:[!u&&"string"==typeof i&&i,u&&n&&"object"==typeof i&&(0,a.jsxs)("div",{children:["[".concat(i.template_name,"]: "),(0,a.jsxs)("span",{className:"text-[#1677ff] cursor-pointer",onClick:r,children:[(0,a.jsx)(p.Z,{className:"mr-1"}),i.template_introduce||"More Details"]})]}),u&&"string"==typeof i&&(0,a.jsx)(f.D,{components:{...T,...N},rehypePlugins:[v.Z],children:G(g)}),!!(null==m?void 0:m.length)&&(0,a.jsx)("div",{className:"flex flex-wrap mt-2",children:null==m?void 0:m.map((e,l)=>(0,a.jsx)(b.Z,{color:"#108ee9",children:e},e+l))})]}),l]}):(0,a.jsx)("div",{className:"h-12"})}),J=t(59301),U=t(41132),W=t(74312),$=t(3414),Q=t(72868),B=t(59562),K=t(14553),X=t(25359),Y=t(7203),ee=t(48665),el=t(26047),et=t(99056),ea=t(57814),es=t(63955),en=t(33028),er=t(40911),eo=t(66478),ei=t(83062),ec=t(50489),ed=t(67421),eu=e=>{var l;let{conv_index:t,question:n,knowledge_space:r,select_param:o}=e,{t:i}=(0,ed.$G)(),{chatId:c}=(0,s.useContext)(w.p),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(4),[h,p]=(0,s.useState)(""),f=(0,s.useRef)(null),[v,g]=I.ZP.useMessage(),j=(0,s.useCallback)((e,l)=>{l?(0,ec.Vx)((0,ec.Eb)(c,t)).then(e=>{var l,t,a,s;let n=null!==(l=e[1])&&void 0!==l?l:{};u(null!==(t=n.ques_type)&&void 0!==t?t:""),x(parseInt(null!==(a=n.score)&&void 0!==a?a:"4")),p(null!==(s=n.messages)&&void 0!==s?s:"")}).catch(e=>{console.log(e)}):(u(""),x(4),p(""))},[c,t]),b=(0,W.Z)($.Z)(e=>{let{theme:l}=e;return{backgroundColor:"dark"===l.palette.mode?"#FBFCFD":"#0E0E10",...l.typography["body-sm"],padding:l.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,width:"100%",height:"100%"}});return(0,a.jsxs)(Q.L,{onOpenChange:j,children:[g,(0,a.jsx)(ei.Z,{title:i("Rating"),children:(0,a.jsx)(B.Z,{slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(J.Z,{})})}),(0,a.jsxs)(X.Z,{children:[(0,a.jsx)(Y.Z,{disabled:!0,sx:{minHeight:0}}),(0,a.jsx)(ee.Z,{sx:{width:"100%",maxWidth:350,display:"grid",gap:3,padding:1},children:(0,a.jsx)("form",{onSubmit:e=>{e.preventDefault();let l={conv_uid:c,conv_index:t,question:n,knowledge_space:r,score:m,ques_type:d,messages:h};console.log(l),(0,ec.Vx)((0,ec.VC)({data:l})).then(e=>{v.open({type:"success",content:"save success"})}).catch(e=>{v.open({type:"error",content:"save error"})})},children:(0,a.jsxs)(el.Z,{container:!0,spacing:.5,columns:13,sx:{flexGrow:1},children:[(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:i("Q_A_Category")})}),(0,a.jsx)(el.Z,{xs:10,children:(0,a.jsx)(et.Z,{action:f,value:d,placeholder:"Choose one…",onChange:(e,l)=>u(null!=l?l:""),...d&&{endDecorator:(0,a.jsx)(K.ZP,{size:"sm",variant:"plain",color:"neutral",onMouseDown:e=>{e.stopPropagation()},onClick:()=>{var e;u(""),null===(e=f.current)||void 0===e||e.focusVisible()},children:(0,a.jsx)(U.Z,{})}),indicator:null},sx:{width:"100%"},children:o&&(null===(l=Object.keys(o))||void 0===l?void 0:l.map(e=>(0,a.jsx)(ea.Z,{value:e,children:o[e]},e)))})}),(0,a.jsx)(el.Z,{xs:3,children:(0,a.jsx)(b,{children:(0,a.jsx)(ei.Z,{title:(0,a.jsx)(ee.Z,{children:(0,a.jsx)("div",{children:i("feed_back_desc")})}),variant:"solid",placement:"left",children:i("Q_A_Rating")})})}),(0,a.jsx)(el.Z,{xs:10,sx:{pl:0,ml:0},children:(0,a.jsx)(es.Z,{"aria-label":"Custom",step:1,min:0,max:5,valueLabelFormat:function(e){return({0:i("Lowest"),1:i("Missed"),2:i("Lost"),3:i("Incorrect"),4:i("Verbose"),5:i("Best")})[e]},valueLabelDisplay:"on",marks:[{value:0,label:"0"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"}],sx:{width:"90%",pt:3,m:2,ml:1},onChange:e=>{var l;return x(null===(l=e.target)||void 0===l?void 0:l.value)},value:m})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(en.Z,{placeholder:i("Please_input_the_text"),value:h,onChange:e=>p(e.target.value),minRows:2,maxRows:4,endDecorator:(0,a.jsx)(er.ZP,{level:"body-xs",sx:{ml:"auto"},children:i("input_count")+h.length+i("input_unit")}),sx:{width:"100%",fontSize:14}})}),(0,a.jsx)(el.Z,{xs:13,children:(0,a.jsx)(eo.Z,{type:"submit",variant:"outlined",sx:{width:"100%",height:"100%"},children:i("submit")})})]})})})]})]})},em=t(32983),ex=t(12069),eh=t(96486),ep=t(19409),ef=t(98399),ev=t(87740),eg=t(80573),ej=e=>{var l;let{messages:t,onSubmit:r}=e,{dbParam:c,currentDialogue:d,scene:u,model:m,refreshDialogList:x,chatId:h,agentList:p,docId:f}=(0,s.useContext)(w.p),{t:v}=(0,ed.$G)(),g=(0,o.useSearchParams)(),b=null!==(l=g&&g.get("spaceNameOriginal"))&&void 0!==l?l:"",[_,N]=(0,s.useState)(!1),[Z,k]=(0,s.useState)(!1),[C,S]=(0,s.useState)(t),[P,R]=(0,s.useState)(""),[E,D]=(0,s.useState)(),M=(0,s.useRef)(null),L=(0,s.useMemo)(()=>"chat_dashboard"===u,[u]),A=(0,eg.Z)(),q=(0,s.useMemo)(()=>{switch(u){case"chat_agent":return p.join(",");case"chat_excel":return null==d?void 0:d.select_param;default:return b||c}},[u,p,d,c,b]),z=async e=>{if(!_&&e.trim())try{N(!0),await r(e,{select_param:null!=q?q:""})}finally{N(!1)}},T=e=>{try{return JSON.parse(e)}catch(l){return e}},[V,G]=I.ZP.useMessage(),J=async e=>{let l=null==e?void 0:e.replace(/\trelations:.*/g,""),t=F()(l);t?l?V.open({type:"success",content:v("Copy_success")}):V.open({type:"warning",content:v("Copy_nothing")}):V.open({type:"error",content:v("Copry_error")})},U=async()=>{!_&&f&&(N(!0),await A(f),N(!1))};return(0,n.Z)(async()=>{let e=(0,ef.a_)();e&&e.id===h&&(await z(e.message),x(),localStorage.removeItem(ef.rU))},[h]),(0,s.useEffect)(()=>{let e=t;L&&(e=(0,eh.cloneDeep)(t).map(e=>((null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=T(null==e?void 0:e.context)),e))),S(e.filter(e=>["view","human"].includes(e.role)))},[L,t]),(0,s.useEffect)(()=>{(0,ec.Vx)((0,ec.Lu)()).then(e=>{var l;D(null!==(l=e[1])&&void 0!==l?l:{})}).catch(e=>{console.log(e)})},[]),(0,s.useEffect)(()=>{setTimeout(()=>{var e;null===(e=M.current)||void 0===e||e.scrollTo(0,M.current.scrollHeight)},50)},[t]),(0,a.jsxs)(a.Fragment,{children:[G,(0,a.jsx)("div",{ref:M,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,a.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:C.length?C.map((e,l)=>{var t;return(0,a.jsx)(H,{content:e,isChartChat:L,onLinkClick:()=>{k(!0),R(JSON.stringify(null==e?void 0:e.context,null,2))},children:"view"===e.role&&(0,a.jsxs)("div",{className:"flex w-full pt-2 md:pt-4 border-t border-gray-200 mt-2 md:mt-4 pl-2",children:["chat_knowledge"===u&&e.retry?(0,a.jsxs)(eo.Z,{onClick:U,slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},children:[(0,a.jsx)(ev.Z,{}),"\xa0",(0,a.jsx)("span",{className:"text-sm",children:v("Retry")})]}):null,(0,a.jsxs)("div",{className:"flex w-full flex-row-reverse",children:[(0,a.jsx)(eu,{select_param:E,conv_index:Math.ceil((l+1)/2),question:null===(t=null==C?void 0:C.filter(l=>(null==l?void 0:l.role)==="human"&&(null==l?void 0:l.order)===e.order)[0])||void 0===t?void 0:t.context,knowledge_space:b||c||""}),(0,a.jsx)(ei.Z,{title:v("Copy"),children:(0,a.jsx)(eo.Z,{onClick:()=>J(null==e?void 0:e.context),slots:{root:K.ZP},slotProps:{root:{variant:"plain",color:"primary"}},sx:{borderRadius:40},children:(0,a.jsx)(O.Z,{})})})]})]})},l)}):(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"flex items-center justify-center flex-col h-full w-full",description:"Start a conversation"})})}),(0,a.jsx)("div",{className:j()("relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",{"cursor-not-allowed":"chat_excel"===u&&!(null==d?void 0:d.select_param)}),children:(0,a.jsxs)("div",{className:"flex flex-wrap w-full py-2 sm:pt-6 sm:pb-10 items-center",children:[m&&(0,a.jsx)("div",{className:"mr-2 flex",children:(0,y.A)(m)}),(0,a.jsx)(ep.Z,{loading:_,onSubmit:z,handleFinish:N})]})}),(0,a.jsx)(ex.default,{title:"JSON Editor",open:Z,width:"60%",cancelButtonProps:{hidden:!0},onOk:()=>{k(!1)},onCancel:()=>{k(!1)},children:(0,a.jsx)(i.Z,{className:"w-full h-[500px]",language:"json",value:P})})]})},eb=t(34625),ey=t(45247),ew=()=>{var e;let l=(0,o.useSearchParams)(),{scene:t,chatId:i,model:c,setModel:d,history:u,setHistory:m}=(0,s.useContext)(w.p),x=(0,r.Z)({}),h=null!==(e=l&&l.get("initMessage"))&&void 0!==e?e:"",[p,f]=(0,s.useState)(!1),[v,g]=(0,s.useState)(),b=async()=>{f(!0);let[,e]=await (0,ec.Vx)((0,ec.$i)(i));m(null!=e?e:[]),f(!1)},y=e=>{var l;let t=null===(l=e[e.length-1])||void 0===l?void 0:l.context;if(t)try{let e=JSON.parse(t);g((null==e?void 0:e.template_name)==="report"?null==e?void 0:e.charts:void 0)}catch(e){g(void 0)}};(0,n.Z)(async()=>{let e=(0,ef.a_)();e&&e.id===i||await b()},[h,i]),(0,s.useEffect)(()=>{var e,l;if(!u.length)return;let t=null===(e=null===(l=u.filter(e=>"view"===e.role))||void 0===l?void 0:l.slice(-1))||void 0===e?void 0:e[0];(null==t?void 0:t.model_name)&&d(t.model_name),y(u)},[u.length]),(0,s.useEffect)(()=>()=>{m([])},[]);let _=(0,s.useCallback)((e,l)=>new Promise(a=>{let s=[...u,{role:"human",context:e,model_name:c,order:0,time_stamp:0},{role:"view",context:"",model_name:c,order:0,time_stamp:0}],n=s.length-1;m([...s]),x({data:{...l,chat_mode:t||"chat_normal",model_name:c,user_input:e},chatId:i,onMessage:e=>{s[n].context=e,m([...s])},onDone:()=>{y(s),a()},onClose:()=>{y(s),a()},onError:e=>{s[n].context=e,m([...s]),a()}})}),[u,x,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ey.Z,{visible:p}),(0,a.jsx)(eb.Z,{refreshHistory:b,modelChange:e=>{d(e)}}),(0,a.jsxs)("div",{className:"px-4 flex flex-1 flex-wrap overflow-hidden relative",children:[!!(null==v?void 0:v.length)&&(0,a.jsx)("div",{className:"w-full xl:w-3/4 h-3/5 xl:pr-4 xl:h-full overflow-y-auto",children:(0,a.jsx)(E.ZP,{chartsData:v})}),!(null==v?void 0:v.length)&&"chat_dashboard"===t&&(0,a.jsx)(em.Z,{image:"/empty.png",imageStyle:{width:320,height:320,margin:"0 auto",maxWidth:"100%",maxHeight:"100%"},className:"w-full xl:w-3/4 h-3/5 xl:h-full pt-0 md:pt-10"}),(0,a.jsx)("div",{className:j()("flex flex-1 flex-col overflow-hidden",{"px-0 xl:pl-4 h-2/5 xl:h-full border-t xl:border-t-0 xl:border-l":"chat_dashboard"===t,"h-full lg:px-8":"chat_dashboard"!==t}),children:(0,a.jsx)(ej,{messages:u,onSubmit:_})})]})]})}},19409:function(e,l,t){t.d(l,{Z:function(){return D}});var a=t(85893),s=t(27496),n=t(59566),r=t(71577),o=t(67294),i=t(2487),c=t(83062),d=t(2453),u=t(46735),m=t(74627),x=t(39479),h=t(51009),p=t(58299),f=t(577),v=t(30119),g=t(67421);let j=e=>{let{data:l,loading:t,submit:s,close:n}=e,{t:r}=(0,g.$G)(),o=e=>()=>{s(e),n()};return(0,a.jsx)("div",{style:{maxHeight:400,overflow:"auto"},children:(0,a.jsx)(i.Z,{dataSource:null==l?void 0:l.data,loading:t,rowKey:e=>e.prompt_name,renderItem:e=>(0,a.jsx)(i.Z.Item,{onClick:o(e.content),children:(0,a.jsx)(c.Z,{title:e.content,children:(0,a.jsx)(i.Z.Item.Meta,{style:{cursor:"copy"},title:e.prompt_name,description:r("Prompt_Info_Scene")+":".concat(e.chat_scene,",")+r("Prompt_Info_Sub_Scene")+":".concat(e.sub_chat_scene)})})},e.prompt_name)})})};var b=e=>{let{submit:l}=e,{t}=(0,g.$G)(),[s,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)("common"),{data:b,loading:y}=(0,f.Z)(()=>(0,v.PR)("/prompt/list",{prompt_type:r}),{refreshDeps:[r],onError:e=>{d.ZP.error(null==e?void 0:e.message)}});return(0,a.jsx)(u.ZP,{theme:{components:{Popover:{minWidth:250}}},children:(0,a.jsx)(m.Z,{title:(0,a.jsx)(x.Z.Item,{label:"Prompt "+t("Type"),children:(0,a.jsx)(h.default,{style:{width:150},value:r,onChange:e=>{i(e)},options:[{label:t("Public")+" Prompts",value:"common"},{label:t("Private")+" Prompts",value:"private"}]})}),content:(0,a.jsx)(j,{data:b,loading:y,submit:l,close:()=>{n(!1)}}),placement:"topRight",trigger:"click",open:s,onOpenChange:e=>{n(e)},children:(0,a.jsx)(c.Z,{title:t("Click_Select")+" Prompt",children:(0,a.jsx)(p.Z,{className:"bottom-[30%]"})})})})},y=t(41468),w=t(50489),_=t(80573),N=t(5392),Z=t(84553);function k(e){let{dbParam:l,setDocId:t}=(0,o.useContext)(y.p),{onUploadFinish:s,handleFinish:n}=e,i=(0,_.Z)(),[c,d]=(0,o.useState)(!1),u=async e=>{d(!0);let a=new FormData;a.append("doc_name",e.file.name),a.append("doc_file",e.file),a.append("doc_type","DOCUMENT");let r=await (0,w.Vx)((0,w.iG)(l||"default",a));if(!r[1]){d(!1);return}t(r[1]),s(),d(!1),null==n||n(!0),await i(r[1]),null==n||n(!1)};return(0,a.jsx)(Z.default,{customRequest:u,showUploadList:!1,maxCount:1,multiple:!1,className:"absolute z-10 top-2 left-2",accept:".pdf,.ppt,.pptx,.xls,.xlsx,.doc,.docx,.txt,.md",children:(0,a.jsx)(r.ZP,{loading:c,size:"small",shape:"circle",icon:(0,a.jsx)(N.Z,{})})})}var C=t(11163),S=t(5455),P=t(1051);function R(e){let{document:l}=e;switch(l.status){case"RUNNING":return(0,a.jsx)(S.Rp,{});case"FINISHED":default:return(0,a.jsx)(S.s2,{});case"FAILED":return(0,a.jsx)(P.Z,{})}}function E(e){let{documents:l,dbParam:t}=e,s=(0,C.useRouter)(),n=e=>{s.push("/knowledge/chunk/?spaceName=".concat(t,"&id=").concat(e))};return(null==l?void 0:l.length)?(0,a.jsx)("div",{className:"absolute flex overflow-scroll h-12 top-[-35px] w-full z-10",children:l.map(e=>{let l;switch(e.status){case"RUNNING":l="#2db7f5";break;case"FINISHED":default:l="#87d068";break;case"FAILED":l="#f50"}return(0,a.jsx)(c.Z,{title:e.result,children:(0,a.jsxs)(r.ZP,{style:{color:l},onClick:()=>{n(e.id)},className:"shrink flex items-center mr-3",children:[(0,a.jsx)(R,{document:e}),e.doc_name]})},e.id)})}):null}var D=function(e){let{children:l,loading:t,onSubmit:i,handleFinish:c,...d}=e,{dbParam:u,scene:m}=(0,o.useContext)(y.p),[x,h]=(0,o.useState)(""),p=(0,o.useMemo)(()=>"chat_knowledge"===m,[m]),[f,v]=(0,o.useState)([]),g=(0,o.useRef)(0);async function j(){if(!u)return null;let[e,l]=await (0,w.Vx)((0,w._Q)(u,{page:1,page_size:g.current}));v(null==l?void 0:l.data)}(0,o.useEffect)(()=>{p&&j()},[u]);let _=async()=>{g.current+=1,await j()};return(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)(E,{documents:f,dbParam:u}),p&&(0,a.jsx)(k,{handleFinish:c,onUploadFinish:_,className:"absolute z-10 top-2 left-2"}),(0,a.jsx)(n.default.TextArea,{className:"flex-1 ".concat(p?"pl-10":""," pr-10"),size:"large",value:x,autoSize:{minRows:1,maxRows:4},...d,onPressEnter:e=>{if(x.trim()&&13===e.keyCode){if(e.shiftKey){h(e=>e+"\n");return}i(x),setTimeout(()=>{h("")},0)}},onChange:e=>{if("number"==typeof d.maxLength){h(e.target.value.substring(0,d.maxLength));return}h(e.target.value)}}),(0,a.jsx)(r.ZP,{className:"ml-2 flex items-center justify-center absolute right-2 bottom-0",size:"large",type:"text",loading:t,icon:(0,a.jsx)(s.Z,{}),onClick:()=>{i(x)}}),(0,a.jsx)(b,{submit:e=>{h(x+e)}}),l]})}},45247:function(e,l,t){var a=t(85893),s=t(50888);l.Z=function(e){let{visible:l}=e;return l?(0,a.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200",children:(0,a.jsx)(s.Z,{})}):null}},43446:function(e,l,t){var a=t(1375),s=t(2453),n=t(67294),r=t(58989);l.Z=e=>{let{queryAgentURL:l="/api/v1/chat/completions"}=e,t=(0,n.useMemo)(()=>new AbortController,[]),o=(0,n.useCallback)(async e=>{let{data:n,chatId:o,onMessage:i,onClose:c,onDone:d,onError:u}=e;if(!(null==n?void 0:n.user_input)&&!(null==n?void 0:n.doc_id)){s.ZP.warning(r.Z.t("NoContextTip"));return}let m={...n,conv_uid:o};if(!m.conv_uid){s.ZP.error("conv_uid 不存在,请刷新后重试");return}try{var x;await (0,a.L)("".concat((x="http://127.0.0.1:5001",void 0!==x)?x:"").concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m),signal:t.signal,openWhenHidden:!0,async onopen(e){if(e.ok&&e.headers.get("content-type")===a.a)return},onclose(){t.abort(),null==c||c()},onerror(e){throw Error(e)},onmessage:e=>{var l;let t=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n");"[DONE]"===t?null==d||d():(null==t?void 0:t.startsWith("[ERROR]"))?null==u||u(null==t?void 0:t.replace("[ERROR]","")):null==i||i(t)}})}catch(e){t.abort(),null==u||u("Sorry, We meet some error, please try agin later.",e)}},[l]);return(0,n.useEffect)(()=>()=>{t.abort()},[]),o}},80573:function(e,l,t){var a=t(41468),s=t(67294),n=t(43446),r=t(50489);l.Z=()=>{let{history:e,setHistory:l,chatId:t,model:o,docId:i}=(0,s.useContext)(a.p),c=(0,n.Z)({queryAgentURL:"/knowledge/document/summary"}),d=(0,s.useCallback)(async e=>{let[,a]=await (0,r.Vx)((0,r.$i)(t)),s=[...a,{role:"human",context:"",model_name:o,order:0,time_stamp:0},{role:"view",context:"",model_name:o,order:0,time_stamp:0,retry:!0}],n=s.length-1;l([...s]),await c({data:{doc_id:e||i,model_name:o},chatId:t,onMessage:e=>{s[n].context=e,l([...s])}})},[e,o,i,t]);return d}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/113-15fc0b8bd2b5b9a1.js b/dbgpt/app/static/_next/static/chunks/113-15fc0b8bd2b5b9a1.js new file mode 100644 index 000000000..5d6655487 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/113-15fc0b8bd2b5b9a1.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[113],{63606:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(87462),i=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=r(84089),l=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},68795:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(87462),i=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=r(84089),l=i.forwardRef(function(e,t){return i.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},74443:function(e,t,r){r.d(t,{Z:function(){return d},c:function(){return o}});var n=r(67294),i=r(25976);let o=["xxl","xl","lg","md","sm","xs"],a=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),l=e=>{let t=[].concat(o).reverse();return t.forEach((r,n)=>{let i=r.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(e[o]<=e[a]))throw Error(`${o}<=${a} fails : !(${e[o]}<=${e[a]})`);if(n{let e=new Map,r=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let r=t[e],n=this.matchHandlers[r];null==n||n.mql.removeListener(null==n?void 0:n.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let r=t[e],i=t=>{let{matches:r}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:r}))},o=window.matchMedia(r);o.addListener(i),this.matchHandlers[r]={mql:o,listener:i},i(o)})},responsiveMap:t}},[e])}},9708:function(e,t,r){r.d(t,{F:function(){return a},Z:function(){return o}});var n=r(94184),i=r.n(n);function o(e,t,r){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let a=(e,t)=>t||e},32983:function(e,t,r){r.d(t,{Z:function(){return m}});var n=r(94184),i=r.n(n),o=r(67294),a=r(53124),l=r(10110),d=r(10274),s=r(25976),c=r(67968),u=r(45503);let p=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var g=(0,c.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:r}=e,n=(0,u.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*r,emptyImgHeightMD:r,emptyImgHeightSM:.875*r});return[p(n)]}),h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let b=o.createElement(()=>{let[,e]=(0,s.Z)(),t=new d.C(e.colorBgBase),r=t.toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),$=o.createElement(()=>{let[,e]=(0,s.Z)(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=(0,o.useMemo)(()=>({borderColor:new d.C(t).onBackground(i).toHexShortString(),shadowColor:new d.C(r).onBackground(i).toHexShortString(),contentColor:new d.C(n).onBackground(i).toHexShortString()}),[t,r,n,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),f=e=>{var{className:t,rootClassName:r,prefixCls:n,image:d=b,description:s,children:c,imageStyle:u,style:p}=e,f=h(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:m,direction:x,empty:E}=o.useContext(a.E_),S=m("empty",n),[w,v]=g(S),[y]=(0,l.Z)("Empty"),R=void 0!==s?s:null==y?void 0:y.description,H="string"==typeof R?R:"empty",z=null;return z="string"==typeof d?o.createElement("img",{alt:H,src:d}):d,w(o.createElement("div",Object.assign({className:i()(v,S,null==E?void 0:E.className,{[`${S}-normal`]:d===$,[`${S}-rtl`]:"rtl"===x},t,r),style:Object.assign(Object.assign({},null==E?void 0:E.style),p)},f),o.createElement("div",{className:`${S}-image`,style:u},z),R&&o.createElement("div",{className:`${S}-description`},R),c&&o.createElement("div",{className:`${S}-footer`},c)))};f.PRESENTED_IMAGE_DEFAULT=b,f.PRESENTED_IMAGE_SIMPLE=$;var m=f},47673:function(e,t,r){r.d(t,{M1:function(){return s},Xy:function(){return c},bi:function(){return g},e5:function(){return S},ik:function(){return h},nz:function(){return l},pU:function(){return d},s7:function(){return b},x0:function(){return p}});var n=r(14747),i=r(80110),o=r(45503),a=r(67968);let l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),s=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),c=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},d((0,o.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),u=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return{padding:`${t}px ${o}px`,fontSize:r,lineHeight:n,borderRadius:i}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),g=(e,t)=>{let{componentCls:r,colorError:n,colorWarning:i,colorErrorOutline:a,colorWarningOutline:l,colorErrorBorderHover:d,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:d},"&:focus, &-focused":Object.assign({},s((0,o.TS)(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:a}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},s((0,o.TS)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${r}-prefix, ${r}-suffix`]:{color:i}}}},h=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":Object.assign({},d(e)),"&:focus, &-focused":Object.assign({},s(e)),"&-disabled, &[disabled]":Object.assign({},c(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),b=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,n.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${r}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, + & > ${r}-select-auto-complete ${t}, + & > ${r}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${r}-select:first-child > ${r}-select-selector, + & > ${r}-select-auto-complete:first-child ${t}, + & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${r}-select:last-child > ${r}-select-selector, + & > ${r}-cascader-picker:last-child ${t}, + & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},$=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:i}=e,o=(r-2*i-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),h(e)),g(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},f=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},m=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},h(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},d(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),f(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),g(e,`${t}-affix-wrapper`))}},x=e=>{let{componentCls:t,colorError:r,colorWarning:i,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),b(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-status-warning":{[`${t}-group-addon`]:{color:i,borderColor:i}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},c(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},E=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function S(e){return(0,o.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let w=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};t.ZP=(0,a.Z)("Input",e=>{let t=S(e);return[$(t),w(t),m(t),x(t),E(t),(0,i.c)(t)]})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/161-96143606b49cf4a1.js b/dbgpt/app/static/_next/static/chunks/161-96143606b49cf4a1.js new file mode 100644 index 000000000..5528a0b93 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/161-96143606b49cf4a1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[161],{54929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});var r=(0,n(67294).createContext)({})},53014:function(e,t,n){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return g}});var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),o=l(n(94184)),i=n(75531),a=l(n(54929)),u=n(72479);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]),h=r.useRef(),O=(0,i.useComposeRef)(h,t);(0,u.warning)(!!(l||v),"Should have `component` prop or `children`."),(0,u.useInsertStyles)(h);var w=r.useContext(a.default),j=w.prefixCls,x=void 0===j?"anticon":j,S=w.rootClassName,P=(0,o.default)(S,x,n),k=(0,o.default)(c({},"".concat(x,"-spin"),!!p)),M=s(d({},u.svgBaseProps),{className:k,style:g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,viewBox:f});f||delete M.viewBox;var C=y;return void 0===C&&b&&(C=-1),r.createElement("span",s(d({role:"img"},m),{ref:O,tabIndex:C,onClick:b,className:P}),l?r.createElement(l,M,v):v?((0,u.warning)(!!f||1===r.Children.count(v)&&r.isValidElement(v)&&"use"===r.Children.only(v).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",s(d({},M),{viewBox:f}),v)):null)});p.displayName="AntdIcon";var g=p},72479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{warning:function(){return s},isIconDefinition:function(){return p},normalizeAttrs:function(){return g},generate:function(){return function e(t,n,r){return r?u.default.createElement(t.tag,d({key:n},g(t.attrs),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):u.default.createElement(t.tag,d({key:n},g(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}},getSecondaryColor:function(){return y},normalizeTwoToneColors:function(){return b},svgBaseProps:function(){return v},iconStyles:function(){return m},useInsertStyles:function(){return h}});var r=n(16397),o=n(93399),i=n(63298),a=l(n(45520)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),c=l(n(54929));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function y(e){return(0,r.generate)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},m="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",h=function(e){var t=(0,u.useContext)(c.default),n=t.csp,r=t.prefixCls,a=m;r&&(a=a.replace(/anticon/g,r)),(0,u.useEffect)(function(){var t=e.current,r=(0,i.getShadowRoot)(t);(0,o.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},38780:function(e,t){"use strict";t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let r=n[t];void 0!==r&&(e[t]=r)})}return e}},66367:function(e,t,n){"use strict";function r(e){return null!=e&&e===e.window}function o(e,t){var n,o;if("undefined"==typeof window)return 0;let i=t?"scrollTop":"scrollLeft",a=0;return r(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[i]:e instanceof HTMLElement?a=e[i]:e&&(a=e[i]),e&&!r(e)&&"number"!=typeof a&&(a=null===(o=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===o?void 0:o[i]),a}n.d(t,{F:function(){return r},Z:function(){return o}})},58375:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(75164),o=n(66367);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:i,duration:a=450}=t,u=n(),c=(0,o.Z)(u,!0),l=Date.now(),f=()=>{let t=Date.now(),n=t-l,d=function(e,t,n,r){let o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,o.F)(u)?u.scrollTo(window.pageXOffset,d):u instanceof Document||"HTMLDocument"===u.constructor.name?u.documentElement.scrollTop=d:u.scrollTop=d,n{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,c.Z)("Divider",e=>{let t=(0,l.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[f(t)]},{sizePaddingEdgeHorizontal:0}),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=e=>{let{getPrefixCls:t,direction:n,divider:r}=i.useContext(a.E_),{prefixCls:u,type:c="horizontal",orientation:l="center",orientationMargin:f,className:p,rootClassName:g,children:y,dashed:b,plain:v,style:m}=e,h=s(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),O=t("divider",u),[w,j]=d(O),x=l.length>0?`-${l}`:l,S=!!y,P="left"===l&&null!=f,k="right"===l&&null!=f,M=o()(O,null==r?void 0:r.className,j,`${O}-${c}`,{[`${O}-with-text`]:S,[`${O}-with-text${x}`]:S,[`${O}-dashed`]:!!b,[`${O}-plain`]:!!v,[`${O}-rtl`]:"rtl"===n,[`${O}-no-default-orientation-margin-left`]:P,[`${O}-no-default-orientation-margin-right`]:k},p,g),C=i.useMemo(()=>"number"==typeof f?f:/^\d+$/.test(f)?Number(f):f,[f]),_=Object.assign(Object.assign({},P&&{marginLeft:C}),k&&{marginRight:C});return w(i.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},null==r?void 0:r.style),m)},h,{role:"separator"}),y&&"vertical"!==c&&i.createElement("span",{className:`${O}-inner-text`,style:_},y)))}},19158:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}},32191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}},93399:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.clearContainerCache=function(){c.clear()},t.injectCSS=s,t.removeCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&f(t).removeChild(n)},t.updateCSS=function(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=c.get(e);if(!n||!(0,i.default)(document,n)){var r=s("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}(f(a),a);var u=p(t,a);if(u)return null!==(n=a.csp)&&void 0!==n&&n.nonce&&u.nonce!==(null===(r=a.csp)||void 0===r?void 0:r.nonce)&&(u.nonce=null===(o=a.csp)||void 0===o?void 0:o.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var d=s(e,a);return d.setAttribute(l(a),t),d};var o=r(n(19158)),i=r(n(32191)),a="data-rc-order",u="data-rc-priority",c=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,l="queue"===r?"prependQueue":r?"prepend":"append",s="prependQueue"===l,p=document.createElement("style");p.setAttribute(a,l),s&&c&&p.setAttribute(u,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var g=f(t),y=g.firstChild;if(r){if(s){var b=d(g).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&c>=Number(e.getAttribute(u)||0)});if(b.length)return g.insertBefore(p,b[b.length-1].nextSibling),p}g.insertBefore(p,y)}else g.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(f(t)).find(function(n){return n.getAttribute(l(t))===e})}},63298:function(e,t){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function r(e){return n(e) instanceof ShadowRoot}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadowRoot=function(e){return r(e)?n(e):null},t.inShadow=r},67265:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value};var o=r(n(67294))},75531:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.composeRef=l,t.fillRef=c,t.supportNodeRef=function(e){return!(!(0,i.isValidElement)(e)||(0,a.isFragment)(e))&&f(e)},t.supportRef=f,t.useComposeRef=function(){for(var e=arguments.length,t=Array(e),n=0;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let c=["xs","sm","md","lg","xl","xxl"],f=a.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=a.useContext(o.E_),{gutter:f,wrap:d,supportFlexGap:p}=a.useContext(s.Z),{prefixCls:v,span:m,order:g,offset:b,push:x,pull:y,className:h,children:w,flex:C,style:$}=e,E=u(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),Z=n("col",v),[O,j]=(0,i.c)(Z),S={};c.forEach(t=>{let n={},l=e[t];"number"==typeof l?n.span=l:"object"==typeof l&&(n=l||{}),delete E[t],S=Object.assign(Object.assign({},S),{[`${Z}-${t}-${n.span}`]:void 0!==n.span,[`${Z}-${t}-order-${n.order}`]:n.order||0===n.order,[`${Z}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${Z}-${t}-push-${n.push}`]:n.push||0===n.push,[`${Z}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${Z}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${Z}-rtl`]:"rtl"===r})});let N=l()(Z,{[`${Z}-${m}`]:void 0!==m,[`${Z}-order-${g}`]:g,[`${Z}-offset-${b}`]:b,[`${Z}-push-${x}`]:x,[`${Z}-pull-${y}`]:y},h,S,j),z={};if(f&&f[0]>0){let e=f[0]/2;z.paddingLeft=e,z.paddingRight=e}if(f&&f[1]>0&&!p){let e=f[1]/2;z.paddingTop=e,z.paddingBottom=e}return C&&(z.flex="number"==typeof C?`${C} ${C} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(C)?`0 0 ${C}`:C,!1!==d||z.minWidth||(z.minWidth=0)),O(a.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign({},z),$),className:N,ref:t}),w))});t.Z=f},92820:function(e,t,n){var r=n(94184),l=n.n(r),a=n(67294),o=n(53124),s=n(98082),i=n(74443),u=n(99134),c=n(6999),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};function d(e,t){let[n,r]=a.useState("string"==typeof e?e:""),l=()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{l()},[JSON.stringify(e),t]),n}let p=a.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:p,className:v,style:m,children:g,gutter:b=0,wrap:x}=e,y=f(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:w}=a.useContext(o.E_),[C,$]=a.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[E,Z]=a.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),O=d(p,E),j=d(r,E),S=(0,s.Z)(),N=a.useRef(b),z=(0,i.Z)();a.useEffect(()=>{let e=z.subscribe(e=>{Z(e);let t=N.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&$(e)});return()=>z.unsubscribe(e)},[]);let R=h("row",n),[A,P]=(0,c.V)(R),I=(()=>{let e=[void 0,void 0],t=Array.isArray(b)?b:[b,void 0];return t.forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?-(I[0]/2):void 0,T=null!=I[1]&&I[1]>0?-(I[1]/2):void 0;B&&(M.marginLeft=B,M.marginRight=B),S?[,M.rowGap]=I:T&&(M.marginTop=T,M.marginBottom=T);let[F,L]=I,V=a.useMemo(()=>({gutter:[F,L],wrap:x,supportFlexGap:S}),[F,L,x,S]);return A(a.createElement(u.Z.Provider,{value:V},a.createElement("div",Object.assign({},y,{className:k,style:Object.assign(Object.assign({},M),m),ref:t}),g)))});t.Z=p},6999:function(e,t,n){n.d(t,{V:function(){return c},c:function(){return f}});var r=n(67968),l=n(45503);let a=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},o=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>{let{componentCls:n,gridColumns:r}=e,l={};for(let e=r;e>=0;e--)0===e?(l[`${n}${t}-${e}`]={display:"none"},l[`${n}-push-${e}`]={insetInlineStart:"auto"},l[`${n}-pull-${e}`]={insetInlineEnd:"auto"},l[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},l[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},l[`${n}${t}-offset-${e}`]={marginInlineStart:0},l[`${n}${t}-order-${e}`]={order:0}):(l[`${n}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],l[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},l[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},l[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},l[`${n}${t}-order-${e}`]={order:e});return l},i=(e,t)=>s(e,t),u=(e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},i(e,n))}),c=(0,r.Z)("Grid",e=>[a(e)]),f=(0,r.Z)("Grid",e=>{let t=(0,l.TS)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[o(t),i(t,""),i(t,"-xs"),Object.keys(n).map(e=>u(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]})},59566:function(e,t,n){n.d(t,{default:function(){return en}});var r,l=n(94184),a=n.n(l),o=n(67294),s=n(53124),i=n(65223),u=n(47673),c=n(4340),f=n(67656),d=n(42550),p=n(9708),v=n(98866),m=n(98675),g=n(4173);function b(e,t){let n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r,l;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))==="password"&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(l=e.current)||void 0===l||l.input.removeAttribute("value"))}))};return(0,o.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let y=(0,o.forwardRef)((e,t)=>{var n;let r;let{prefixCls:l,bordered:y=!0,status:h,size:w,disabled:C,onBlur:$,onFocus:E,suffix:Z,allowClear:O,addonAfter:j,addonBefore:S,className:N,style:z,styles:R,rootClassName:A,onChange:P,classNames:I}=e,k=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:M,direction:B,input:T}=o.useContext(s.E_),F=M("input",l),L=(0,o.useRef)(null),[V,H]=(0,u.ZP)(F),{compactSize:D,compactItemClassnames:W}=(0,g.ri)(F,B),_=(0,m.Z)(e=>{var t;return null!==(t=null!=w?w:D)&&void 0!==t?t:e}),Q=o.useContext(v.Z),X=null!=C?C:Q,{status:J,hasFeedback:G,feedbackIcon:K}=(0,o.useContext)(i.aM),q=(0,p.F)(J,h),U=!!(e.prefix||e.suffix||e.allowClear)||!!G,Y=(0,o.useRef)(U);(0,o.useEffect)(()=>{U&&Y.current,Y.current=U},[U]);let ee=b(L,!0),et=(G||Z)&&o.createElement(o.Fragment,null,Z,G&&K);return"object"==typeof O&&(null==O?void 0:O.clearIcon)?r=O:O&&(r={clearIcon:o.createElement(c.Z,null)}),V(o.createElement(f.Z,Object.assign({ref:(0,d.sQ)(t,L),prefixCls:F,autoComplete:null==T?void 0:T.autoComplete},k,{disabled:X,onBlur:e=>{ee(),null==$||$(e)},onFocus:e=>{ee(),null==E||E(e)},style:Object.assign(Object.assign({},null==T?void 0:T.style),z),styles:Object.assign(Object.assign({},null==T?void 0:T.styles),R),suffix:et,allowClear:r,className:a()(N,A,W,null==T?void 0:T.className),onChange:e=>{ee(),null==P||P(e)},addonAfter:j&&o.createElement(g.BR,null,o.createElement(i.Ux,{override:!0,status:!0},j)),addonBefore:S&&o.createElement(g.BR,null,o.createElement(i.Ux,{override:!0,status:!0},S)),classNames:Object.assign(Object.assign(Object.assign({},I),null==T?void 0:T.classNames),{input:a()({[`${F}-sm`]:"small"===_,[`${F}-lg`]:"large"===_,[`${F}-rtl`]:"rtl"===B,[`${F}-borderless`]:!y},!U&&(0,p.Z)(F,q),null==I?void 0:I.input,null===(n=null==T?void 0:T.classNames)||void 0===n?void 0:n.input,H)}),classes:{affixWrapper:a()({[`${F}-affix-wrapper-sm`]:"small"===_,[`${F}-affix-wrapper-lg`]:"large"===_,[`${F}-affix-wrapper-rtl`]:"rtl"===B,[`${F}-affix-wrapper-borderless`]:!y},(0,p.Z)(`${F}-affix-wrapper`,q,G),H),wrapper:a()({[`${F}-group-rtl`]:"rtl"===B},H),group:a()({[`${F}-group-wrapper-sm`]:"small"===_,[`${F}-group-wrapper-lg`]:"large"===_,[`${F}-group-wrapper-rtl`]:"rtl"===B,[`${F}-group-wrapper-disabled`]:X},(0,p.Z)(`${F}-group-wrapper`,q,G),H)}})))});var h=n(87462),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},C=n(84089),$=o.forwardRef(function(e,t){return o.createElement(C.Z,(0,h.Z)({},e,{ref:t,icon:w}))}),E=n(99611),Z=n(98423),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let j=e=>e?o.createElement(E.Z,null):o.createElement($,null),S={click:"onClick",hover:"onMouseOver"},N=o.forwardRef((e,t)=>{let{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[l,i]=(0,o.useState)(()=>!!r&&n.visible),u=(0,o.useRef)(null);o.useEffect(()=>{r&&i(n.visible)},[r,n]);let c=b(u),f=()=>{let{disabled:t}=e;t||(l&&c(),i(e=>{var t;let r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:p,prefixCls:v,inputPrefixCls:m,size:g}=e,x=O(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=o.useContext(s.E_),w=h("input",m),C=h("input-password",v),$=n&&(t=>{let{action:n="click",iconRender:r=j}=e,a=S[n]||"",s=r(l),i={[a]:f,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(s)?s:o.createElement("span",null,s),i)})(C),E=a()(C,p,{[`${C}-${g}`]:!!g}),N=Object.assign(Object.assign({},(0,Z.Z)(x,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:E,prefixCls:w,suffix:$});return g&&(N.size=g),o.createElement(y,Object.assign({ref:(0,d.sQ)(t,u)},N))});var z=n(68795),R=n(96159),A=n(71577),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let I=o.forwardRef((e,t)=>{let n;let{prefixCls:r,inputPrefixCls:l,className:i,size:u,suffix:c,enterButton:f=!1,addonAfter:p,loading:v,disabled:b,onSearch:x,onChange:h,onCompositionStart:w,onCompositionEnd:C}=e,$=P(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:E,direction:Z}=o.useContext(s.E_),O=o.useRef(!1),j=E("input-search",r),S=E("input",l),{compactSize:N}=(0,g.ri)(j,Z),I=(0,m.Z)(e=>{var t;return null!==(t=null!=u?u:N)&&void 0!==t?t:e}),k=o.useRef(null),M=e=>{var t;document.activeElement===(null===(t=k.current)||void 0===t?void 0:t.input)&&e.preventDefault()},B=e=>{var t,n;x&&x(null===(n=null===(t=k.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},T="boolean"==typeof f?o.createElement(z.Z,null):null,F=`${j}-button`,L=f||{},V=L.type&&!0===L.type.__ANT_BUTTON;n=V||"button"===L.type?(0,R.Tm)(L,Object.assign({onMouseDown:M,onClick:e=>{var t,n;null===(n=null===(t=null==L?void 0:L.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),B(e)},key:"enterButton"},V?{className:F,size:I}:{})):o.createElement(A.ZP,{className:F,type:f?"primary":void 0,size:I,disabled:b,key:"enterButton",onMouseDown:M,onClick:B,loading:v,icon:T},f),p&&(n=[n,(0,R.Tm)(p,{key:"addonAfter"})]);let H=a()(j,{[`${j}-rtl`]:"rtl"===Z,[`${j}-${I}`]:!!I,[`${j}-with-button`]:!!f},i);return o.createElement(y,Object.assign({ref:(0,d.sQ)(k,t),onPressEnter:e=>{O.current||v||B(e)}},$,{size:I,onCompositionStart:e=>{O.current=!0,null==w||w(e)},onCompositionEnd:e=>{O.current=!1,null==C||C(e)},prefixCls:S,addonAfter:n,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&x&&x(e.target.value,e),h&&h(e)},className:H,disabled:b}))});var k=n(1413),M=n(4942),B=n(71002),T=n(97685),F=n(45987),L=n(74902),V=n(87887),H=n(21770),D=n(9220),W=n(8410),_=n(75164),Q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X={},J=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],G=o.forwardRef(function(e,t){var n=e.prefixCls,l=(e.onPressEnter,e.defaultValue),s=e.value,i=e.autoSize,u=e.onResize,c=e.className,f=e.style,d=e.disabled,p=e.onChange,v=(e.onInternalAutoSize,(0,F.Z)(e,J)),m=(0,H.Z)(l,{value:s,postState:function(e){return null!=e?e:""}}),g=(0,T.Z)(m,2),b=g[0],x=g[1],y=o.useRef();o.useImperativeHandle(t,function(){return{textArea:y.current}});var w=o.useMemo(function(){return i&&"object"===(0,B.Z)(i)?[i.minRows,i.maxRows]:[]},[i]),C=(0,T.Z)(w,2),$=C[0],E=C[1],Z=!!i,O=function(){try{if(document.activeElement===y.current){var e=y.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;y.current.setSelectionRange(t,n),y.current.scrollTop=r}}catch(e){}},j=o.useState(2),S=(0,T.Z)(j,2),N=S[0],z=S[1],R=o.useState(),A=(0,T.Z)(R,2),P=A[0],I=A[1],L=function(){z(0)};(0,W.Z)(function(){Z&&L()},[s,$,E,Z]),(0,W.Z)(function(){if(0===N)z(1);else if(1===N){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X[n])return X[n];var r=window.getComputedStyle(e),l=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:Q.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:o,boxSizing:l};return t&&n&&(X[n]=s),s}(e,n),s=o.paddingSize,i=o.borderSize,u=o.boxSizing,c=o.sizingStyle;r.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var f=void 0,d=void 0,p=r.scrollHeight;if("border-box"===u?p+=i:"content-box"===u&&(p-=s),null!==l||null!==a){r.value=" ";var v=r.scrollHeight-s;null!==l&&(f=v*l,"border-box"===u&&(f=f+s+i),p=Math.max(f,p)),null!==a&&(d=v*a,"border-box"===u&&(d=d+s+i),t=p>d?"":"hidden",p=Math.min(d,p))}var m={height:p,overflowY:t,resize:"none"};return f&&(m.minHeight=f),d&&(m.maxHeight=d),m}(y.current,!1,$,E);z(2),I(e)}else O()},[N]);var V=o.useRef(),G=function(){_.Z.cancel(V.current)};o.useEffect(function(){return G},[]);var K=Z?P:null,q=(0,k.Z)((0,k.Z)({},f),K);return(0===N||1===N)&&(q.overflowY="hidden",q.overflowX="hidden"),o.createElement(D.Z,{onResize:function(e){2===N&&(null==u||u(e),i&&(G(),V.current=(0,_.Z)(function(){L()})))},disabled:!(i||u)},o.createElement("textarea",(0,h.Z)({},v,{ref:y,style:q,className:a()(n,c,(0,M.Z)({},"".concat(n,"-disabled"),d)),disabled:d,value:b,onChange:function(e){x(e.target.value),null==p||p(e)}})))}),K=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function q(e,t){return(0,L.Z)(e||"").slice(0,t).join("")}function U(e,t,n,r){var l=n;return e?l=q(n,r):(0,L.Z)(t||"").lengthr&&(l=t),l}var Y=o.forwardRef(function(e,t){var n,r,l=e.defaultValue,s=e.value,i=e.onFocus,u=e.onBlur,c=e.onChange,d=e.allowClear,p=e.maxLength,v=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,b=e.prefixCls,x=void 0===b?"rc-textarea":b,y=e.classes,w=e.showCount,C=e.className,$=e.style,E=e.disabled,Z=e.hidden,O=e.classNames,j=e.styles,S=e.onResize,N=(0,F.Z)(e,K),z=(0,H.Z)(l,{value:s,defaultValue:l}),R=(0,T.Z)(z,2),A=R[0],P=R[1],I=(0,o.useRef)(null),D=o.useState(!1),W=(0,T.Z)(D,2),_=W[0],Q=W[1],X=o.useState(!1),J=(0,T.Z)(X,2),Y=J[0],ee=J[1],et=o.useRef(),en=o.useRef(0),er=o.useState(null),el=(0,T.Z)(er,2),ea=el[0],eo=el[1],es=function(){var e;null===(e=I.current)||void 0===e||e.textArea.focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:I.current,focus:es,blur:function(){var e;null===(e=I.current)||void 0===e||e.textArea.blur()}}}),(0,o.useEffect)(function(){Q(function(e){return!E&&e})},[E]);var ei=Number(p)>0,eu=(0,V.D7)(A);!Y&&ei&&null==s&&(eu=q(eu,p));var ec=g;if(w){var ef=(0,L.Z)(eu).length;r="object"===(0,B.Z)(w)?w.formatter({value:eu,count:ef,maxLength:p}):"".concat(ef).concat(ei?" / ".concat(p):""),ec=o.createElement(o.Fragment,null,ec,o.createElement("span",{className:a()("".concat(x,"-data-count"),null==O?void 0:O.count),style:null==j?void 0:j.count},r))}var ed=!N.autoSize&&!w&&!d;return o.createElement(f.Q,{value:eu,allowClear:d,handleReset:function(e){var t;P(""),es(),(0,V.rJ)(null===(t=I.current)||void 0===t?void 0:t.textArea,e,c)},suffix:ec,prefixCls:x,classes:{affixWrapper:a()(null==y?void 0:y.affixWrapper,(n={},(0,M.Z)(n,"".concat(x,"-show-count"),w),(0,M.Z)(n,"".concat(x,"-textarea-allow-clear"),d),n))},disabled:E,focused:_,className:C,style:(0,k.Z)((0,k.Z)({},$),ea&&!ed?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof r?r:void 0}},hidden:Z,inputElement:o.createElement(G,(0,h.Z)({},N,{onKeyDown:function(e){var t=N.onPressEnter,n=N.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){var t=e.target.value;!Y&&ei&&(t=U(e.target.selectionStart>=p+1||e.target.selectionStart===t.length||!e.target.selectionStart,A,t,p)),P(t),(0,V.rJ)(e.currentTarget,e,c,t)},onFocus:function(e){Q(!0),null==i||i(e)},onBlur:function(e){Q(!1),null==u||u(e)},onCompositionStart:function(e){ee(!0),et.current=A,en.current=e.currentTarget.selectionStart,null==v||v(e)},onCompositionEnd:function(e){ee(!1);var t,n=e.currentTarget.value;ei&&(n=U(en.current>=p+1||en.current===(null===(t=et.current)||void 0===t?void 0:t.length),et.current,n,p)),n!==A&&(P(n),(0,V.rJ)(e.currentTarget,e,c,n)),null==m||m(e)},className:null==O?void 0:O.textarea,style:(0,k.Z)((0,k.Z)({},null==j?void 0:j.textarea),{},{resize:null==$?void 0:$.resize}),disabled:E,prefixCls:x,onResize:function(e){var t;null==S||S(e),null!==(t=I.current)&&void 0!==t&&t.textArea.style.height&&eo(!0)},ref:I}))})}),ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let et=(0,o.forwardRef)((e,t)=>{let n;let{prefixCls:r,bordered:l=!0,size:f,disabled:d,status:g,allowClear:b,showCount:x,classNames:y}=e,h=ee(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:w,direction:C}=o.useContext(s.E_),$=(0,m.Z)(f),E=o.useContext(v.Z),{status:Z,hasFeedback:O,feedbackIcon:j}=o.useContext(i.aM),S=(0,p.F)(Z,g),N=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}});let z=w("input",r);"object"==typeof b&&(null==b?void 0:b.clearIcon)?n=b:b&&(n={clearIcon:o.createElement(c.Z,null)});let[R,A]=(0,u.ZP)(z);return R(o.createElement(Y,Object.assign({},h,{disabled:null!=d?d:E,allowClear:n,classes:{affixWrapper:a()(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:"rtl"===C,[`${z}-affix-wrapper-borderless`]:!l,[`${z}-affix-wrapper-sm`]:"small"===$,[`${z}-affix-wrapper-lg`]:"large"===$,[`${z}-textarea-show-count`]:x},(0,p.Z)(`${z}-affix-wrapper`,S),A)},classNames:Object.assign(Object.assign({},y),{textarea:a()({[`${z}-borderless`]:!l,[`${z}-sm`]:"small"===$,[`${z}-lg`]:"large"===$},(0,p.Z)(z,S),A,null==y?void 0:y.textarea)}),prefixCls:z,suffix:O&&o.createElement("span",{className:`${z}-textarea-suffix`},j),showCount:x,ref:N})))});y.Group=e=>{let{getPrefixCls:t,direction:n}=(0,o.useContext)(s.E_),{prefixCls:r,className:l}=e,c=t("input-group",r),f=t("input"),[d,p]=(0,u.ZP)(f),v=a()(c,{[`${c}-lg`]:"large"===e.size,[`${c}-sm`]:"small"===e.size,[`${c}-compact`]:e.compact,[`${c}-rtl`]:"rtl"===n},p,l),m=(0,o.useContext)(i.aM),g=(0,o.useMemo)(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return d(o.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(i.aM.Provider,{value:g},e.children)))},y.Search=I,y.TextArea=et,y.Password=N;var en=y},67656:function(e,t,n){n.d(t,{Q:function(){return f},Z:function(){return x}});var r=n(87462),l=n(1413),a=n(4942),o=n(71002),s=n(94184),i=n.n(s),u=n(67294),c=n(87887),f=function(e){var t=e.inputElement,n=e.prefixCls,s=e.prefix,f=e.suffix,d=e.addonBefore,p=e.addonAfter,v=e.className,m=e.style,g=e.disabled,b=e.readOnly,x=e.focused,y=e.triggerFocus,h=e.allowClear,w=e.value,C=e.handleReset,$=e.hidden,E=e.classes,Z=e.classNames,O=e.dataAttrs,j=e.styles,S=e.components,N=(null==S?void 0:S.affixWrapper)||"span",z=(null==S?void 0:S.groupWrapper)||"span",R=(null==S?void 0:S.wrapper)||"span",A=(null==S?void 0:S.groupAddon)||"span",P=(0,u.useRef)(null),I=(0,u.cloneElement)(t,{value:w,hidden:$,className:i()(null===(k=t.props)||void 0===k?void 0:k.className,!(0,c.X3)(e)&&!(0,c.He)(e)&&v)||null,style:(0,l.Z)((0,l.Z)({},null===(M=t.props)||void 0===M?void 0:M.style),(0,c.X3)(e)||(0,c.He)(e)?{}:m)});if((0,c.X3)(e)){var k,M,B,T="".concat(n,"-affix-wrapper"),F=i()(T,(B={},(0,a.Z)(B,"".concat(T,"-disabled"),g),(0,a.Z)(B,"".concat(T,"-focused"),x),(0,a.Z)(B,"".concat(T,"-readonly"),b),(0,a.Z)(B,"".concat(T,"-input-with-clear-btn"),f&&h&&w),B),!(0,c.He)(e)&&v,null==E?void 0:E.affixWrapper,null==Z?void 0:Z.affixWrapper),L=(f||h)&&u.createElement("span",{className:i()("".concat(n,"-suffix"),null==Z?void 0:Z.suffix),style:null==j?void 0:j.suffix},function(){if(!h)return null;var e,t=!g&&!b&&w,r="".concat(n,"-clear-icon"),l="object"===(0,o.Z)(h)&&null!=h&&h.clearIcon?h.clearIcon:"✖";return u.createElement("span",{onClick:C,onMouseDown:function(e){return e.preventDefault()},className:i()(r,(e={},(0,a.Z)(e,"".concat(r,"-hidden"),!t),(0,a.Z)(e,"".concat(r,"-has-suffix"),!!f),e)),role:"button",tabIndex:-1},l)}(),f);I=u.createElement(N,(0,r.Z)({className:F,style:(0,l.Z)((0,l.Z)({},(0,c.He)(e)?void 0:m),null==j?void 0:j.affixWrapper),hidden:!(0,c.He)(e)&&$,onClick:function(e){var t;null!==(t=P.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:P}),s&&u.createElement("span",{className:i()("".concat(n,"-prefix"),null==Z?void 0:Z.prefix),style:null==j?void 0:j.prefix},s),(0,u.cloneElement)(t,{value:w,hidden:null}),L)}if((0,c.He)(e)){var V="".concat(n,"-group"),H="".concat(V,"-addon"),D=i()("".concat(n,"-wrapper"),V,null==E?void 0:E.wrapper),W=i()("".concat(n,"-group-wrapper"),v,null==E?void 0:E.group);return u.createElement(z,{className:W,style:m,hidden:$},u.createElement(R,{className:D},d&&u.createElement(A,{className:H},d),(0,u.cloneElement)(I,{hidden:null}),p&&u.createElement(A,{className:H},p)))}return I},d=n(74902),p=n(97685),v=n(45987),m=n(21770),g=n(98423),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],x=(0,u.forwardRef)(function(e,t){var n,s=e.autoComplete,x=e.onChange,y=e.onFocus,h=e.onBlur,w=e.onPressEnter,C=e.onKeyDown,$=e.prefixCls,E=void 0===$?"rc-input":$,Z=e.disabled,O=e.htmlSize,j=e.className,S=e.maxLength,N=e.suffix,z=e.showCount,R=e.type,A=e.classes,P=e.classNames,I=e.styles,k=(0,v.Z)(e,b),M=(0,m.Z)(e.defaultValue,{value:e.value}),B=(0,p.Z)(M,2),T=B[0],F=B[1],L=(0,u.useState)(!1),V=(0,p.Z)(L,2),H=V[0],D=V[1],W=(0,u.useRef)(null),_=function(e){W.current&&(0,c.nH)(W.current,e)};return(0,u.useImperativeHandle)(t,function(){return{focus:_,blur:function(){var e;null===(e=W.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=W.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=W.current)||void 0===e||e.select()},input:W.current}}),(0,u.useEffect)(function(){D(function(e){return(!e||!Z)&&e})},[Z]),u.createElement(f,(0,r.Z)({},k,{prefixCls:E,className:j,inputElement:(n=(0,g.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),u.createElement("input",(0,r.Z)({autoComplete:s},n,{onChange:function(t){void 0===e.value&&F(t.target.value),W.current&&(0,c.rJ)(W.current,t,x)},onFocus:function(e){D(!0),null==y||y(e)},onBlur:function(e){D(!1),null==h||h(e)},onKeyDown:function(e){w&&"Enter"===e.key&&w(e),null==C||C(e)},className:i()(E,(0,a.Z)({},"".concat(E,"-disabled"),Z),null==P?void 0:P.input),style:null==I?void 0:I.input,ref:W,size:O,type:void 0===R?"text":R}))),handleReset:function(e){F(""),_(),W.current&&(0,c.rJ)(W.current,e,x)},value:(0,c.D7)(T),focused:H,triggerFocus:_,suffix:function(){var e=Number(S)>0;if(N||z){var t=(0,c.D7)(T),n=(0,d.Z)(t).length,r="object"===(0,o.Z)(z)?z.formatter({value:t,count:n,maxLength:S}):"".concat(n).concat(e?" / ".concat(S):"");return u.createElement(u.Fragment,null,!!z&&u.createElement("span",{className:i()("".concat(E,"-show-count-suffix"),(0,a.Z)({},"".concat(E,"-show-count-has-suffix"),!!N),null==P?void 0:P.count),style:(0,l.Z)({},null==I?void 0:I.count)},r),N)}return null}(),disabled:Z,classes:A,classNames:P,styles:I}))})},87887:function(e,t,n){function r(e){return!!(e.addonBefore||e.addonAfter)}function l(e){return!!(e.prefix||e.suffix||e.allowClear)}function a(e,t,n,r){if(n){var l=t;if("click"===t.type){var a=e.cloneNode(!0);l=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",n(l);return}if(void 0!==r){l=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,n(l);return}n(l)}}function o(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}function s(e){return null==e?"":String(e)}n.d(t,{D7:function(){return s},He:function(){return r},X3:function(){return l},nH:function(){return o},rJ:function(){return a}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/234-42f62dc360b2d9e4.js b/dbgpt/app/static/_next/static/chunks/234-42f62dc360b2d9e4.js new file mode 100644 index 000000000..3aed3421d --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/234-42f62dc360b2d9e4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[234],{74627:function(e,r,t){t.d(r,{Z:function(){return w}});var o=t(94184),n=t.n(o),l=t(67294);let a=e=>e?"function"==typeof e?e():e:null;var i=t(33603),c=t(53124),s=t(83062),p=t(92419),d=t(14747),u=t(50438),g=t(77786),b=t(8796),m=t(67968),f=t(45503);let y=e=>{let{componentCls:r,popoverColor:t,minWidth:o,fontWeightStrong:n,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:i,borderRadiusLG:c,zIndexPopup:s,marginXS:p,colorBgElevated:u,popoverBg:b}=e;return[{[r]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${r}-content`]:{position:"relative"},[`${r}-inner`]:{backgroundColor:b,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:l},[`${r}-title`]:{minWidth:o,marginBottom:p,color:i,fontWeight:n},[`${r}-inner-content`]:{color:t}})},(0,g.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${r}-content`]:{display:"inline-block"}}}]},v=e=>{let{componentCls:r}=e;return{[r]:b.i.map(t=>{let o=e[`${t}6`];return{[`&${r}-${t}`]:{"--antd-arrow-background-color":o,[`${r}-inner`]:{backgroundColor:o},[`${r}-arrow`]:{background:"transparent"}}}})}},$=e=>{let{componentCls:r,lineWidth:t,lineType:o,colorSplit:n,paddingSM:l,controlHeight:a,fontSize:i,lineHeight:c,padding:s}=e,p=a-Math.round(i*c);return{[r]:{[`${r}-inner`]:{padding:0},[`${r}-title`]:{margin:0,padding:`${p/2}px ${s}px ${p/2-t}px`,borderBottom:`${t}px ${o} ${n}`},[`${r}-inner-content`]:{padding:`${l}px ${s}px`}}}};var C=(0,m.Z)("Popover",e=>{let{colorBgElevated:r,colorText:t,wireframe:o}=e,n=(0,f.TS)(e,{popoverPadding:12,popoverBg:r,popoverColor:t});return[y(n),v(n),o&&$(n),(0,u._y)(n,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),h=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t};let x=(e,r,t)=>{if(r||t)return l.createElement(l.Fragment,null,r&&l.createElement("div",{className:`${e}-title`},a(r)),l.createElement("div",{className:`${e}-inner-content`},a(t)))},O=e=>{let{hashId:r,prefixCls:t,className:o,style:a,placement:i="top",title:c,content:s,children:d}=e;return l.createElement("div",{className:n()(r,t,`${t}-pure`,`${t}-placement-${i}`,o),style:a},l.createElement("div",{className:`${t}-arrow`}),l.createElement(p.G,Object.assign({},e,{className:r,prefixCls:t}),d||x(t,c,s)))};var k=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t};let E=e=>{let{title:r,content:t,prefixCls:o}=e;return l.createElement(l.Fragment,null,r&&l.createElement("div",{className:`${o}-title`},a(r)),l.createElement("div",{className:`${o}-inner-content`},a(t)))},S=l.forwardRef((e,r)=>{let{prefixCls:t,title:o,content:a,overlayClassName:p,placement:d="top",trigger:u="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:b=.1,overlayStyle:m={}}=e,f=k(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=l.useContext(c.E_),v=y("popover",t),[$,h]=C(v),x=y(),O=n()(p,h);return $(l.createElement(s.Z,Object.assign({placement:d,trigger:u,mouseEnterDelay:g,mouseLeaveDelay:b,overlayStyle:m},f,{prefixCls:v,overlayClassName:O,ref:r,overlay:o||a?l.createElement(E,{prefixCls:v,title:o,content:a}):null,transitionName:(0,i.m)(x,"zoom-big",f.transitionName),"data-popover-inject":!0})))});S._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:r}=e,t=h(e,["prefixCls"]),{getPrefixCls:o}=l.useContext(c.E_),n=o("popover",r),[a,i]=C(n);return a(l.createElement(O,Object.assign({},t,{prefixCls:n,hashId:i})))};var w=S},66309:function(e,r,t){t.d(r,{Z:function(){return S}});var o=t(67294),n=t(97937),l=t(94184),a=t.n(l),i=t(98787),c=t(69760),s=t(45353),p=t(53124),d=t(14747),u=t(45503),g=t(67968);let b=e=>{let{paddingXXS:r,lineWidth:t,tagPaddingHorizontal:o,componentCls:n}=e,l=o-t;return{[n]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:r-t,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},m=e=>{let{lineWidth:r,fontSizeIcon:t}=e,o=e.fontSizeSM,n=`${e.lineHeightSM*o}px`,l=(0,u.TS)(e,{tagFontSize:o,tagLineHeight:n,tagIconSize:t-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return l},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var y=(0,g.Z)("Tag",e=>{let r=m(e);return b(r)},f),v=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t},$=t(98719);let C=e=>(0,$.Z)(e,(r,t)=>{let{textColor:o,lightBorderColor:n,lightColor:l,darkColor:a}=t;return{[`${e.componentCls}-${r}`]:{color:o,background:l,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var h=(0,g.b)(["Tag","preset"],e=>{let r=m(e);return C(r)},f);let x=(e,r,t)=>{let o=function(e){if("string"!=typeof e)return e;let r=e.charAt(0).toUpperCase()+e.slice(1);return r}(t);return{[`${e.componentCls}-${r}`]:{color:e[`color${t}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var O=(0,g.b)(["Tag","status"],e=>{let r=m(e);return[x(r,"success","Success"),x(r,"processing","Info"),x(r,"error","Error"),x(r,"warning","Warning")]},f),k=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>r.indexOf(o)&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nr.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t};let E=o.forwardRef((e,r)=>{let{prefixCls:t,className:l,rootClassName:d,style:u,children:g,icon:b,color:m,onClose:f,closeIcon:v,closable:$,bordered:C=!0}=e,x=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:E,direction:S,tag:w}=o.useContext(p.E_),[j,P]=o.useState(!0);o.useEffect(()=>{"visible"in x&&P(x.visible)},[x.visible]);let N=(0,i.o2)(m),T=(0,i.yT)(m),I=N||T,B=Object.assign(Object.assign({backgroundColor:m&&!I?m:void 0},null==w?void 0:w.style),u),z=E("tag",t),[_,W]=y(z),Z=a()(z,null==w?void 0:w.className,{[`${z}-${m}`]:I,[`${z}-has-color`]:m&&!I,[`${z}-hidden`]:!j,[`${z}-rtl`]:"rtl"===S,[`${z}-borderless`]:!C},l,d,W),D=e=>{e.stopPropagation(),null==f||f(e),e.defaultPrevented||P(!1)},[,F]=(0,c.Z)($,v,e=>null===e?o.createElement(n.Z,{className:`${z}-close-icon`,onClick:D}):o.createElement("span",{className:`${z}-close-icon`,onClick:D},e),null,!1),L="function"==typeof x.onClick||g&&"a"===g.type,H=b||null,M=H?o.createElement(o.Fragment,null,H,g&&o.createElement("span",null,g)):g,A=o.createElement("span",Object.assign({},x,{ref:r,className:Z,style:B}),M,F,N&&o.createElement(h,{key:"preset",prefixCls:z}),T&&o.createElement(O,{key:"status",prefixCls:z}));return _(L?o.createElement(s.Z,{component:"Tag"},A):A)});E.CheckableTag=e=>{let{prefixCls:r,className:t,checked:n,onChange:l,onClick:i}=e,c=v(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:s}=o.useContext(p.E_),d=s("tag",r),[u,g]=y(d),b=a()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:n},t,g);return u(o.createElement("span",Object.assign({},c,{className:b,onClick:e=>{null==l||l(!n),null==i||i(e)}})))};var S=E}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/270-2f094a936d056513.js b/dbgpt/app/static/_next/static/chunks/270-2f094a936d056513.js deleted file mode 100644 index 448d44730..000000000 --- a/dbgpt/app/static/_next/static/chunks/270-2f094a936d056513.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[270],{6171:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))})},38780:function(e,t){t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let i=n[t];void 0!==i&&(e[t]=i)})}return e}},66367:function(e,t,n){function i(e){return null!=e&&e===e.window}function r(e,t){var n,r;if("undefined"==typeof window)return 0;let o=t?"scrollTop":"scrollLeft",a=0;return i(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!i(e)&&"number"!=typeof a&&(a=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),a}n.d(t,{F:function(){return i},Z:function(){return r}})},58375:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(75164),r=n(66367);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:o,duration:a=450}=t,l=n(),c=(0,r.Z)(l,!0),s=Date.now(),u=()=>{let t=Date.now(),n=t-s,p=function(e,t,n,i){let r=n-t;return(e/=i/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,r.F)(l)?l.scrollTo(window.pageXOffset,p):l instanceof Document||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=p:l.scrollTop=p,n0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,o.Z)(),l=(0,a.Z)();return(0,r.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},81647:function(e,t,n){n.d(t,{Z:function(){return F}});var i=n(87462),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(84089),l=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))}),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},s=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:c}))}),u=n(6171),p=n(18073),m=n(94184),d=n.n(m),g=n(4942),h=n(1413),v=n(15671),b=n(43144),f=n(32531),x=n(73568),C=n(64217),S={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=function(e){(0,f.Z)(n,e);var t=(0,x.Z)(n);function n(){var e;(0,v.Z)(this,n);for(var i=arguments.length,r=Array(i),o=0;o=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||r(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===S.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,b.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,o=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,p=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(o,"-options"),h=null,v=null,b=null;if(!a&&!l)return null;var f=this.getPageSizeOptions();if(a&&s){var x=f.map(function(t,n){return r.createElement(s.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});h=r.createElement(s,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},x)}return l&&(c&&(b="boolean"==typeof c?r.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):r.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=r.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,r.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,b)),r.createElement("li",{className:"".concat(g)},h,v)}}]),n}(r.Component);$.defaultProps={pageSizeOptions:["10","20","50","100"]};var k=function(e){var t,n=e.rootPrefixCls,i=e.page,o=e.active,a=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,p="".concat(n,"-item"),m=d()(p,"".concat(p,"-").concat(i),(t={},(0,g.Z)(t,"".concat(p,"-active"),o),(0,g.Z)(t,"".concat(p,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=u(i,"page",r.createElement("a",{rel:"nofollow"},i));return h?r.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){c(i)},onKeyPress:function(e){s(e,c,i)},tabIndex:0},h):null};function y(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var I=function(e){(0,f.Z)(n,e);var t=(0,x.Z)(n);function n(e){(0,v.Z)(this,n),(i=t.call(this,e)).paginationNode=r.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(N(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,o=e||r.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=r.createElement(e,(0,h.Z)({},i.props))),o},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){(e.keyCode===S.ARROW_UP||e.keyCode===S.ARROW_DOWN)&&e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===S.ENTER?i.handleChange(t):e.keyCode===S.ARROW_UP?i.handleChange(t-1):e.keyCode===S.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=N(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"!=typeof e||("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,r=t.onChange,o=i.state,a=o.pageSize,l=o.current,c=o.currentInputValue;if(i.isValid(e)&&!n){var s=N(void 0,i.state,i.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in i.props||i.setState({current:u}),u!==c&&i.setState({currentInputValue:u}),r(u,a),u}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),r=2;r=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,o=e.style,a=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,p=e.showLessItems,m=e.showTitle,h=e.showTotal,v=e.simple,b=e.itemRender,f=e.showPrevNextJumpers,x=e.jumpPrevIcon,S=e.jumpNextIcon,y=e.selectComponentClass,E=e.selectPrefixCls,I=e.pageSizeOptions,P=this.state,z=P.current,O=P.pageSize,w=P.currentInputValue;if(!0===l&&c<=O)return null;var T=N(void 0,this.state,this.props),j=[],B=null,M=null,Z=null,D=null,_=null,A=u&&u.goButton,R=p?1:2,H=z-1>0?z-1:0,V=z+1c?c:z*O]));if(v){A&&(_="boolean"==typeof A?r.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):r.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},A),_=r.createElement("li",{title:m?"".concat(s.jump_to).concat(z,"/").concat(T):null,className:"".concat(t,"-simple-pager")},_));var W=this.renderPrev(H);return r.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:o,ref:this.paginationNode},K),L,W?r.createElement("li",{title:m?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,r.createElement("li",{title:m?"".concat(z,"/").concat(T):null,className:"".concat(t,"-simple-pager")},r.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),r.createElement("span",{className:"".concat(t,"-slash")},"/"),T),r.createElement("li",{title:m?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(V)),_)}if(T<=3+2*R){var J={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:b};T||j.push(r.createElement(k,(0,i.Z)({},J,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var X=1;X<=T;X+=1){var U=z===X;j.push(r.createElement(k,(0,i.Z)({},J,{key:X,page:X,active:U})))}}else{var G=p?s.prev_3:s.prev_5,F=p?s.next_3:s.next_5,q=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(x,"prev page")),Q=b(this.getJumpNextPage(),"jump-next",this.getItemIcon(S,"next page"));f&&(B=q?r.createElement("li",{title:m?G:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!x))},q):null,M=Q?r.createElement("li",{title:m?F:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!S))},Q):null),D=r.createElement(k,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:m,itemRender:b}),Z=r.createElement(k,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:b});var Y=Math.max(1,z-R),ee=Math.min(z+R,T);z-1<=R&&(ee=1+2*R),T-z<=R&&(Y=T-2*R);for(var et=Y;et<=ee;et+=1){var en=z===et;j.push(r.createElement(k,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:et,page:et,active:en,showTitle:m,itemRender:b}))}z-1>=2*R&&3!==z&&(j[0]=(0,r.cloneElement)(j[0],{className:"".concat(t,"-item-after-jump-prev")}),j.unshift(B)),T-z>=2*R&&z!==T-2&&(j[j.length-1]=(0,r.cloneElement)(j[j.length-1],{className:"".concat(t,"-item-before-jump-next")}),j.push(M)),1!==Y&&j.unshift(Z),ee!==T&&j.push(D)}var ei=!this.hasPrev()||!T,er=!this.hasNext()||!T,eo=this.renderPrev(H),ea=this.renderNext(V);return r.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:o,ref:this.paginationNode},K),L,eo?r.createElement("li",{title:m?s.prev_page:null,onClick:this.prev,tabIndex:ei?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ei)),"aria-disabled":ei},eo):null,j,ea?r.createElement("li",{title:m?s.next_page:null,onClick:this.next,tabIndex:er?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),er)),"aria-disabled":er},ea):null,r.createElement($,{disabled:a,locale:s,rootPrefixCls:t,selectComponentClass:y,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:z,pageSize:O,pageSizeOptions:I,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:A}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,r=N(e.pageSize,t,e);i=i>r?r:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(r.Component);I.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:y,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:y,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var P=n(62906),z=n(53124),O=n(98675),w=n(25378),T=n(10110),j=n(51009);let B=e=>r.createElement(j.default,Object.assign({},e,{showSearch:!0,size:"small"})),M=e=>r.createElement(j.default,Object.assign({},e,{showSearch:!0,size:"middle"}));B.Option=j.default.Option,M.Option=j.default.Option;var Z=n(47673),D=n(14747),_=n(67968),A=n(45503);let R=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},H=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Z.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},V=e=>{let{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},K=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Z.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},L=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},W=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),L(e)),K(e)),V(e)),H(e)),R(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},J=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},X=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,D.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,D.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,D.oN)(e))}}}};var U=(0,_.Z)("Pagination",e=>{let t=(0,A.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Z.e5)(e));return[W(t),X(t),e.wireframe&&J(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},F=e=>{let{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:o,style:a,size:c,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:v}=e,b=G(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,w.Z)(h),{getPrefixCls:x,direction:C,pagination:S={}}=r.useContext(z.E_),$=x("pagination",t),[k,y]=U($),E=null!=v?v:S.showSizeChanger,N=r.useMemo(()=>{let e=r.createElement("span",{className:`${$}-item-ellipsis`},"•••"),t=r.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===C?r.createElement(p.Z,null):r.createElement(u.Z,null)),n=r.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},"rtl"===C?r.createElement(u.Z,null):r.createElement(p.Z,null)),i=r.createElement("a",{className:`${$}-item-link`},r.createElement("div",{className:`${$}-item-container`},"rtl"===C?r.createElement(s,{className:`${$}-item-link-icon`}):r.createElement(l,{className:`${$}-item-link-icon`}),e)),o=r.createElement("a",{className:`${$}-item-link`},r.createElement("div",{className:`${$}-item-container`},"rtl"===C?r.createElement(l,{className:`${$}-item-link-icon`}):r.createElement(s,{className:`${$}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:o}},[C,$]),[j]=(0,T.Z)("Pagination",P.Z),Z=Object.assign(Object.assign({},j),m),D=(0,O.Z)(c),_="small"===D||!!(f&&!D&&h),A=x("select",n),R=d()({[`${$}-mini`]:_,[`${$}-rtl`]:"rtl"===C},null==S?void 0:S.className,i,o,y),H=Object.assign(Object.assign({},null==S?void 0:S.style),a);return k(r.createElement(I,Object.assign({},N,b,{style:H,prefixCls:$,selectPrefixCls:A,className:R,selectComponentClass:g||(_?B:M),locale:Z,showSizeChanger:E})))}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/346-b0aea1c99abd6f1e.js b/dbgpt/app/static/_next/static/chunks/346-b0aea1c99abd6f1e.js new file mode 100644 index 000000000..41560abbf --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/346-b0aea1c99abd6f1e.js @@ -0,0 +1,4 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[346],{57346:function(e,t,n){n.d(t,{Z:function(){return e$}});var o,r,a=n(87462),i=n(4942),d=n(71002),l=n(1413),c=n(74902),s=n(15671),u=n(43144),p=n(97326),f=n(32531),h=n(73568),v=n(67294),g=n(15105),y=n(80334),k=n(64217),m=n(94184),b=n.n(m),K=n(27822),x=n(10225),N=n(1089);function E(e){if(null==e)throw TypeError("Cannot destructure "+e)}var S=n(97685),C=n(45987),w=n(8410),D=n(85344),Z=n(82225),O=n(86128),P=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],L=function(e,t){var n,o,r,i,d,l=e.className,c=e.style,s=e.motion,u=e.motionNodes,p=e.motionType,f=e.onMotionStart,h=e.onMotionEnd,g=e.active,y=e.treeNodeRequiredProps,k=(0,C.Z)(e,P),m=v.useState(!0),x=(0,S.Z)(m,2),D=x[0],L=x[1],T=v.useContext(K.k).prefixCls,$=u&&"hide"!==p;(0,w.Z)(function(){u&&$!==D&&L($)},[u]);var M=v.useRef(!1),I=function(){u&&!M.current&&(M.current=!0,h())};return(n=function(){u&&f()},o=v.useState(!1),i=(r=(0,S.Z)(o,2))[0],d=r[1],v.useLayoutEffect(function(){if(i)return n(),function(){I()}},[i]),v.useLayoutEffect(function(){return d(!0),function(){d(!1)}},[]),u)?v.createElement(Z.ZP,(0,a.Z)({ref:t,visible:D},s,{motionAppear:"show"===p,onVisibleChanged:function(e){$===e&&I()}}),function(e,t){var n=e.className,o=e.style;return v.createElement("div",{ref:t,className:b()("".concat(T,"-treenode-motion"),n),style:o},u.map(function(e){var t=(0,a.Z)({},(E(e.data),e.data)),n=e.title,o=e.key,r=e.isStart,i=e.isEnd;delete t.children;var d=(0,N.H8)(o,y);return v.createElement(O.Z,(0,a.Z)({},t,d,{title:n,active:g,data:e.data,key:o,isStart:r,isEnd:i}))}))}):v.createElement(O.Z,(0,a.Z)({domRef:t,className:l,style:c},k,{active:g}))};L.displayName="MotionTreeNode";var T=v.forwardRef(L);function $(e,t,n){var o=e.findIndex(function(e){return e.key===n}),r=e[o+1],a=t.findIndex(function(e){return e.key===n});if(r){var i=t.findIndex(function(e){return e.key===r.key});return t.slice(a+1,i)}return t.slice(a+1)}var M=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],I={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},A=function(){},H="RC_TREE_MOTION_".concat(Math.random()),R={key:H},j={key:H,level:0,index:0,pos:"0",node:R,nodes:[R]},F={parent:null,children:[],pos:j.pos,data:R,title:null,key:H,isStart:[],isEnd:[]};function B(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function z(e){var t=e.key,n=e.pos;return(0,N.km)(t,n)}var _=v.forwardRef(function(e,t){var n=e.prefixCls,o=e.data,r=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,d=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,s=e.halfCheckedKeys,u=e.keyEntities,p=e.disabled,f=e.dragging,h=e.dragOverNodeKey,g=e.dropPosition,y=e.motion,k=e.height,m=e.itemHeight,b=e.virtual,K=e.focusable,x=e.activeItem,Z=e.focused,O=e.tabIndex,P=e.onKeyDown,L=e.onFocus,R=e.onBlur,j=e.onActiveChange,_=e.onListChangeStart,U=e.onListChangeEnd,V=(0,C.Z)(e,M),G=v.useRef(null),W=v.useRef(null);v.useImperativeHandle(t,function(){return{scrollTo:function(e){G.current.scrollTo(e)},getIndentWidth:function(){return W.current.offsetWidth}}});var q=v.useState(r),X=(0,S.Z)(q,2),Y=X[0],J=X[1],Q=v.useState(o),ee=(0,S.Z)(Q,2),et=ee[0],en=ee[1],eo=v.useState(o),er=(0,S.Z)(eo,2),ea=er[0],ei=er[1],ed=v.useState([]),el=(0,S.Z)(ed,2),ec=el[0],es=el[1],eu=v.useState(null),ep=(0,S.Z)(eu,2),ef=ep[0],eh=ep[1],ev=v.useRef(o);function eg(){var e=ev.current;en(e),ei(e),es([]),eh(null),U()}ev.current=o,(0,w.Z)(function(){J(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var o=t.filter(function(e){return!n.has(e)});return 1===o.length?o[0]:null}return n ").concat(t);return t}(x)),v.createElement("div",null,v.createElement("input",{style:I,disabled:!1===K||p,tabIndex:!1!==K?O:null,onKeyDown:P,onFocus:L,onBlur:R,value:"",onChange:A,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:"".concat(n,"-indent")},v.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),v.createElement(D.Z,(0,a.Z)({},V,{data:ey,itemKey:z,height:k,fullHeight:!1,virtual:b,itemHeight:m,prefixCls:"".concat(n,"-list"),ref:G,onVisibleChange:function(e,t){var n=new Set(e);t.filter(function(e){return!n.has(e)}).some(function(e){return z(e)===H})&&eg()}}),function(e){var t=e.pos,n=(0,a.Z)({},(E(e.data),e.data)),o=e.title,r=e.key,i=e.isStart,d=e.isEnd,l=(0,N.km)(r,t);delete n.key,delete n.children;var c=(0,N.H8)(l,ek);return v.createElement(T,(0,a.Z)({},n,c,{title:o,active:!!x&&r===x.key,pos:t,data:e.data,isStart:i,isEnd:d,motion:y,motionNodes:r===H?ec:null,motionType:ef,onMotionStart:_,onMotionEnd:eg,treeNodeRequiredProps:ek,onMouseMove:function(){j(null)}}))}))});_.displayName="NodeList";var U=n(17341),V=function(e){(0,f.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var o=arguments.length,r=Array(o),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,d=a.dropPosition,c=a.dropTargetKey,s=a.dropTargetPos;if(a.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,l.Z)((0,l.Z)({},(0,N.H8)(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:e.state.keyEntities[c].node}),f=-1!==i.indexOf(c);(0,y.ZP)(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=(0,x.yx)(s),v={event:t,node:(0,N.F)(p),dragNode:e.dragNode?(0,N.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==d,dropPosition:d+Number(h[h.length-1])};r||null==u||u(v),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var o=e.state,r=o.expandedKeys,a=o.flattenNodes,i=n.expanded,d=n.key;if(!n.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var c=a.filter(function(e){return e.key===d})[0],s=(0,N.F)((0,l.Z)((0,l.Z)({},(0,N.H8)(d,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(i?(0,x._5)(r,d):(0,x.L0)(r,d)),e.onNodeExpand(t,s)}},e.onNodeClick=function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeDoubleClick=function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeSelect=function(t,n){var o=e.state.selectedKeys,r=e.state,a=r.keyEntities,i=r.fieldNames,d=e.props,l=d.onSelect,c=d.multiple,s=n.selected,u=n[i.key],p=!s,f=(o=p?c?(0,x.L0)(o,u):[u]:(0,x._5)(o,u)).map(function(e){var t=a[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:o}),null==l||l(o,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,o){var r,a=e.state,i=a.keyEntities,d=a.checkedKeys,l=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,p=s.onCheck,f=n.key,h={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var v=o?(0,x.L0)(d,f):(0,x._5)(d,f);r={checked:v,halfChecked:(0,x._5)(l,f)},h.checkedNodes=v.map(function(e){return i[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:v})}else{var g=(0,U.S)([].concat((0,c.Z)(d),[f]),!0,i),y=g.checkedKeys,k=g.halfCheckedKeys;if(!o){var m=new Set(y);m.delete(f);var b=(0,U.S)(Array.from(m),{checked:!1,halfCheckedKeys:k},i);y=b.checkedKeys,k=b.halfCheckedKeys}r=y,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=k,y.forEach(function(e){var t=i[e];if(t){var n=t.node,o=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:o})}}),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:k})}null==p||p(r,h)},e.onNodeLoad=function(t){var n=t.key,o=new Promise(function(o,r){e.setState(function(a){var i=a.loadedKeys,d=a.loadingKeys,l=void 0===d?[]:d,c=e.props,s=c.loadData,u=c.onLoad;return s&&-1===(void 0===i?[]:i).indexOf(n)&&-1===l.indexOf(n)?(s(t).then(function(){var r=e.state.loadedKeys,a=(0,x.L0)(r,n);null==u||u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState(function(e){return{loadingKeys:(0,x._5)(e.loadingKeys,n)}}),o()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:(0,x._5)(e.loadingKeys,n)}}),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,x.L0)(a,n)}),o()}r(t)}),{loadingKeys:(0,x.L0)(l,n)}):null})});return o.catch(function(){}),o},e.onNodeMouseEnter=function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})},e.onNodeContextMenu=function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,a=!0,i={};Object.keys(t).forEach(function(n){if(n in e.props){a=!1;return}r=!0,i[n]=t[n]}),r&&(!n||a)&&e.setState((0,l.Z)((0,l.Z)({},i),o))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,o=n.focused,r=n.flattenNodes,l=n.keyEntities,c=n.draggingNodeKey,s=n.activeKey,u=n.dropLevelOffset,p=n.dropContainerKey,f=n.dropTargetKey,h=n.dropPosition,g=n.dragOverNodeKey,y=n.indent,m=this.props,x=m.prefixCls,N=m.className,E=m.style,S=m.showLine,C=m.focusable,w=m.tabIndex,D=m.selectable,Z=m.showIcon,O=m.icon,P=m.switcherIcon,L=m.draggable,T=m.checkable,$=m.checkStrictly,M=m.disabled,I=m.motion,A=m.loadData,H=m.filterTreeNode,R=m.height,j=m.itemHeight,F=m.virtual,B=m.titleRender,z=m.dropIndicatorRender,U=m.onContextMenu,V=m.onScroll,G=m.direction,W=m.rootClassName,q=m.rootStyle,X=(0,k.Z)(this.props,{aria:!0,data:!0});return L&&(t="object"===(0,d.Z)(L)?L:"function"==typeof L?{nodeDraggable:L}:{}),v.createElement(K.k.Provider,{value:{prefixCls:x,selectable:D,showIcon:Z,icon:O,switcherIcon:P,draggable:t,draggingNodeKey:c,checkable:T,checkStrictly:$,disabled:M,keyEntities:l,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:f,dropPosition:h,dragOverNodeKey:g,indent:y,direction:G,dropIndicatorRender:z,loadData:A,filterTreeNode:H,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{role:"tree",className:b()(x,N,W,(e={},(0,i.Z)(e,"".concat(x,"-show-line"),S),(0,i.Z)(e,"".concat(x,"-focused"),o),(0,i.Z)(e,"".concat(x,"-active-focused"),null!==s),e)),style:q},v.createElement(_,(0,a.Z)({ref:this.listRef,prefixCls:x,style:E,data:r,disabled:M,selectable:D,checkable:!!T,motion:I,dragging:null!==c,height:R,itemHeight:j,virtual:F,focusable:C,focused:o,tabIndex:void 0===w?0:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:V},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r=t.prevProps,a={prevProps:e};function d(t){return!r&&t in e||r&&r[t]!==e[t]}var c=t.fieldNames;if(d("fieldNames")&&(c=(0,N.w$)(e.fieldNames),a.fieldNames=c),d("treeData")?n=e.treeData:d("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,N.zn)(e.children)),n){a.treeData=n;var s=(0,N.I8)(n,{fieldNames:c});a.keyEntities=(0,l.Z)((0,i.Z)({},H,j),s.keyEntities)}var u=a.keyEntities||t.keyEntities;if(d("expandedKeys")||r&&d("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,x.r7)(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var p=(0,l.Z)({},u);delete p[H],a.expandedKeys=Object.keys(p).map(function(e){return p[e].key})}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,x.r7)(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,n||a.expandedKeys){var f=(0,N.oH)(n||t.treeData,a.expandedKeys||t.expandedKeys,c);a.flattenNodes=f}if(e.selectable&&(d("selectedKeys")?a.selectedKeys=(0,x.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=(0,x.BT)(e.defaultSelectedKeys,e))),e.checkable&&(d("checkedKeys")?o=(0,x.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?o=(0,x.E6)(e.defaultCheckedKeys)||{}:n&&(o=(0,x.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o)){var h=o,v=h.checkedKeys,g=void 0===v?[]:v,k=h.halfCheckedKeys,m=void 0===k?[]:k;if(!e.checkStrictly){var b=(0,U.S)(g,!0,u);g=b.checkedKeys,m=b.halfCheckedKeys}a.checkedKeys=g,a.halfCheckedKeys=m}return d("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),n}(v.Component);V.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return v.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},V.TreeNode=O.Z;var G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},W=n(84089),q=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:G}))}),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Y=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:X}))}),J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Q=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:J}))}),ee=n(53124),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},en=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:et}))}),eo=n(33603),er=n(23183),ea=n(63185),ei=n(14747),ed=n(33507),el=n(45503),ec=n(67968);let es=new er.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),eu=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ep=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ef=(e,t)=>{let{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:a}=t,i=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,ei.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,ei.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:es,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,ei.oN)(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},eu(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${a}px`,userSelect:"none"},ep(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},eh=e=>{let{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{[` + &:hover::before, + &::before + `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},ev=(e,t)=>{let n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,a=t.controlHeightSM,i=(0,el.TS)(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:a});return[ef(e,i),eh(i)]};var eg=(0,ec.Z)("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,ea.C2)(`${n}-checkbox`,e)},ev(n,e),(0,ed.Z)(e)]});function ey(e){let{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:a="ltr"}=e,i="ltr"===a?"left":"right",d={[i]:-n*r+4,["ltr"===a?"right":"left"]:0};switch(t){case -1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[i]=r+4}return v.createElement("div",{style:d,className:`${o}-drop-indicator`})}var ek={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},em=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:ek}))}),eb=n(50888),eK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ex=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:eK}))}),eN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},eE=v.forwardRef(function(e,t){return v.createElement(W.Z,(0,a.Z)({},e,{ref:t,icon:eN}))}),eS=n(96159),eC=e=>{let t;let{prefixCls:n,switcherIcon:o,treeNodeProps:r,showLine:a}=e,{isLeaf:i,expanded:d,loading:l}=r;if(l)return v.createElement(eb.Z,{className:`${n}-switcher-loading-icon`});if(a&&"object"==typeof a&&(t=a.showLeafIcon),i){if(!a)return null;if("boolean"!=typeof t&&t){let e="function"==typeof t?t(r):t,o=`${n}-switcher-line-custom-icon`;return(0,eS.l$)(e)?(0,eS.Tm)(e,{className:b()(e.props.className||"",o)}):e}return t?v.createElement(q,{className:`${n}-switcher-line-icon`}):v.createElement("span",{className:`${n}-switcher-leaf-line`})}let c=`${n}-switcher-icon`,s="function"==typeof o?o(r):o;return(0,eS.l$)(s)?(0,eS.Tm)(s,{className:b()(s.props.className||"",c)}):void 0!==s?s:a?d?v.createElement(ex,{className:`${n}-switcher-line-icon`}):v.createElement(eE,{className:`${n}-switcher-line-icon`}):v.createElement(em,{className:c})};let ew=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o,virtual:r,tree:a}=v.useContext(ee.E_),{prefixCls:i,className:d,showIcon:l=!1,showLine:c,switcherIcon:s,blockNode:u=!1,children:p,checkable:f=!1,selectable:h=!0,draggable:g,motion:y,style:k}=e,m=n("tree",i),K=n(),x=null!=y?y:Object.assign(Object.assign({},(0,eo.Z)(K)),{motionAppear:!1}),N=Object.assign(Object.assign({},e),{checkable:f,selectable:h,showIcon:l,motion:x,blockNode:u,showLine:!!c,dropIndicatorRender:ey}),[E,S]=eg(m),C=v.useMemo(()=>{if(!g)return!1;let e={};switch(typeof g){case"function":e.nodeDraggable=g;break;case"object":e=Object.assign({},g)}return!1!==e.icon&&(e.icon=e.icon||v.createElement(en,null)),e},[g]);return E(v.createElement(V,Object.assign({itemHeight:20,ref:t,virtual:r},N,{style:Object.assign(Object.assign({},null==a?void 0:a.style),k),prefixCls:m,className:b()({[`${m}-icon-hide`]:!l,[`${m}-block-node`]:u,[`${m}-unselectable`]:!h,[`${m}-rtl`]:"rtl"===o},null==a?void 0:a.className,d,S),direction:o,checkable:f?v.createElement("span",{className:`${m}-checkbox-inner`}):f,selectable:h,switcherIcon:e=>v.createElement(eC,{prefixCls:m,switcherIcon:s,treeNodeProps:e,showLine:c}),draggable:C}),p))});function eD(e,t){e.forEach(function(e){let{key:n,children:o}=e;!1!==t(n,e)&&eD(o||[],t)})}function eZ(e,t){let n=(0,c.Z)(t),o=[];return eD(e,(e,t)=>{let r=n.indexOf(e);return -1!==r&&(o.push(t),n.splice(r,1)),!!n.length}),o}(o=r||(r={}))[o.None=0]="None",o[o.Start=1]="Start",o[o.End=2]="End";var eO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};function eP(e){let{isLeaf:t,expanded:n}=e;return t?v.createElement(q,null):n?v.createElement(Y,null):v.createElement(Q,null)}function eL(e){let{treeData:t,children:n}=e;return t||(0,N.zn)(n)}let eT=v.forwardRef((e,t)=>{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:a}=e,i=eO(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);let d=v.useRef(),l=v.useRef(),s=()=>{let{keyEntities:e}=(0,N.I8)(eL(i));return n?Object.keys(e):o?(0,x.r7)(i.expandedKeys||a||[],e):i.expandedKeys||a},[u,p]=v.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,h]=v.useState(()=>s());v.useEffect(()=>{"selectedKeys"in i&&p(i.selectedKeys)},[i.selectedKeys]),v.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);let{getPrefixCls:g,direction:y}=v.useContext(ee.E_),{prefixCls:k,className:m,showIcon:K=!0,expandAction:E="click"}=i,S=eO(i,["prefixCls","className","showIcon","expandAction"]),C=g("tree",k),w=b()(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===y},m);return v.createElement(ew,Object.assign({icon:eP,ref:t,blockNode:!0},S,{showIcon:K,expandAction:E,prefixCls:C,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;let o;let{multiple:a}=i,{node:s,nativeEvent:u}=t,{key:h=""}=s,v=eL(i),g=Object.assign(Object.assign({},t),{selected:!0}),y=(null==u?void 0:u.ctrlKey)||(null==u?void 0:u.metaKey),k=null==u?void 0:u.shiftKey;a&&y?(o=e,d.current=h,l.current=o,g.selectedNodes=eZ(v,o)):a&&k?(o=Array.from(new Set([].concat((0,c.Z)(l.current||[]),(0,c.Z)(function(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:a}=e,i=[],d=r.None;return o&&o===a?[o]:o&&a?(eD(t,e=>{if(d===r.End)return!1;if(e===o||e===a){if(i.push(e),d===r.None)d=r.Start;else if(d===r.Start)return d=r.End,!1}else d===r.Start&&i.push(e);return n.includes(e)}),i):[]}({treeData:v,expandedKeys:f,startKey:h,endKey:d.current}))))),g.selectedNodes=eZ(v,o)):(o=[h],d.current=h,l.current=o,g.selectedNodes=eZ(v,o)),null===(n=i.onSelect)||void 0===n||n.call(i,o,g),"selectedKeys"in i||p(o)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||h(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))});ew.DirectoryTree=eT,ew.TreeNode=O.Z;var e$=ew},86128:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(87462),r=n(4942),a=n(45987),i=n(1413),d=n(15671),l=n(43144),c=n(97326),s=n(32531),u=n(73568),p=n(94184),f=n.n(p),h=n(64217),v=n(67294),g=n(27822),y=v.memo(function(e){for(var t,n=e.prefixCls,o=e.level,a=e.isStart,i=e.isEnd,d="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(o,1),n}function d(e,t){var n=(e||[]).slice();return -1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function c(e,t){var n=[];return!function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var o=t.key,r=t.children;n.push(o),e(r)})}(t[e].children),n}function s(e,t,n,o,r,a,i,d,c,s){var u,p,f=e.clientX,h=e.clientY,v=e.target.getBoundingClientRect(),g=v.top,y=v.height,k=(("rtl"===s?-1:1)*(((null==r?void 0:r.x)||0)-f)-12)/o,m=d[n.props.eventKey];if(h-1.5?a({dragNode:w,dropNode:D,dropPosition:1})?E=1:Z=!1:a({dragNode:w,dropNode:D,dropPosition:0})?E=0:a({dragNode:w,dropNode:D,dropPosition:1})?E=1:Z=!1:a({dragNode:w,dropNode:D,dropPosition:1})?E=1:Z=!1,{dropPosition:E,dropLevelOffset:S,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:N,dropContainerKey:0===E?null:(null===(p=m.parent)||void 0===p?void 0:p.key)||null,dropAllowed:Z}}function u(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function f(e,t){var n=new Set;return(e||[]).forEach(function(e){!function e(o){if(!n.has(o)){var r=t[o];if(r){n.add(o);var a=r.parent;!r.node.disabled&&a&&e(a.key)}}}(e)}),(0,o.Z)(n)}n(86128),n(1089)},17341:function(e,t,n){n.d(t,{S:function(){return i}});var o=n(80334);function r(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function a(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!!(n||o)||!1===r}function i(e,t,n,i){var d,l=[];d=i||a;var c=new Set(e.filter(function(e){var t=!!n[e];return t||l.push(e),t})),s=new Map,u=0;return Object.keys(n).forEach(function(e){var t=n[e],o=t.level,r=s.get(o);r||(r=new Set,s.set(o,r)),r.add(t),u=Math.max(u,o)}),(0,o.ZP)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,n,o){for(var a=new Set(e),i=new Set,d=0;d<=n;d+=1)(t.get(d)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)&&!o(n)&&i.filter(function(e){return!o(e.node)}).forEach(function(e){a.add(e.key)})});for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(function(e){var t=e.parent;if(!(o(e.node)||!e.parent||l.has(e.parent.key))){if(o(e.parent.node)){l.add(t.key);return}var n=!0,r=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,o=a.has(t);n&&!o&&(n=!1),!r&&(o||i.has(t))&&(r=!0)}),n&&a.add(t.key),r&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(r(i,a))}}(c,s,u,d):function(e,t,n,o,a){for(var i=new Set(e),d=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,o=e.children,r=void 0===o?[]:o;i.has(t)||d.has(t)||a(n)||r.filter(function(e){return!a(e.node)}).forEach(function(e){i.delete(e.key)})});d=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent;if(!(a(e.node)||!e.parent||c.has(e.parent.key))){if(a(e.parent.node)){c.add(t.key);return}var n=!0,o=!1;(t.children||[]).filter(function(e){return!a(e.node)}).forEach(function(e){var t=e.key,r=i.has(t);n&&!r&&(n=!1),!o&&(r||d.has(t))&&(o=!0)}),n||i.delete(t.key),o&&d.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(r(d,i))}}(c,t.halfCheckedKeys,s,u,d)}},1089:function(e,t,n){n.d(t,{F:function(){return k},H8:function(){return y},I8:function(){return g},km:function(){return p},oH:function(){return v},w$:function(){return f},zn:function(){return h}});var o=n(71002),r=n(74902),a=n(1413),i=n(45987),d=n(50344),l=n(98423),c=n(80334),s=["children"];function u(e,t){return"".concat(e,"-").concat(t)}function p(e,t){return null!=e?e:t}function f(e){var t=e||{},n=t.title,o=t._title,r=t.key,a=t.children,i=n||"title";return{title:i,_title:o||[i],key:r||"key",children:a||"children"}}function h(e){return function e(t){return(0,d.Z)(t).map(function(t){if(!(t&&t.type&&t.type.isTreeNode))return(0,c.ZP)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,d=(0,i.Z)(o,s),l=(0,a.Z)({key:n},d),u=e(r);return u.length&&(l.children=u),l}).filter(function(e){return e})}(e)}function v(e,t,n){var o=f(n),i=o._title,d=o.key,c=o.children,s=new Set(!0===t?[]:t),h=[];return!function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(f,v){for(var g,y=u(o?o.pos:"0",v),k=p(f[d],y),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},y=g.initWrapper,k=g.processEntity,m=g.onProcessFinished,b=g.externalGetKey,K=g.childrenPropName,x=g.fieldNames,N=arguments.length>2?arguments[2]:void 0,E={},S={},C={posEntities:E,keyEntities:S};return y&&(C=y(C)||C),t=function(e){var t=e.node,n=e.index,o=e.pos,r=e.key,a=e.parentPos,i=e.level,d={node:t,nodes:e.nodes,index:n,key:r,pos:o,level:i},l=p(r,o);E[o]=d,S[l]=d,d.parent=E[a],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),k&&k(d,C)},n={externalGetKey:b||N,childrenPropName:K,fieldNames:x},d=(i=("object"===(0,o.Z)(n)?n:{externalGetKey:n})||{}).childrenPropName,l=i.externalGetKey,s=(c=f(i.fieldNames)).key,h=c.children,v=d||h,l?"string"==typeof l?a=function(e){return e[l]}:"function"==typeof l&&(a=function(e){return l(e)}):a=function(e,t){return p(e[s],t)},function n(o,i,d,l){var c=o?o[v]:e,s=o?u(d.pos,i):"0",p=o?[].concat((0,r.Z)(l),[o]):[];if(o){var f=a(o,s);t({node:o,index:i,pos:s,key:f,parentPos:d.node?d.pos:null,level:d.level+1,nodes:p})}c&&c.forEach(function(e,t){n(e,t,{node:o,pos:s,level:d?d.level+1:-1},p)})}(null),m&&m(C),C}function y(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,d=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,s=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==d.indexOf(e),pos:String(s?s.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function k(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,d=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,p=e.dragOverGapBottom,f=e.pos,h=e.active,v=e.eventKey,g=(0,a.Z)((0,a.Z)({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:d,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:p,pos:f,active:h,key:v});return"props"in g||Object.defineProperty(g,"props",{get:function(){return(0,c.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/411-d9eba2657c72f766.js b/dbgpt/app/static/_next/static/chunks/411-b5d3e7f64bee2335.js similarity index 100% rename from dbgpt/app/static/_next/static/chunks/411-d9eba2657c72f766.js rename to dbgpt/app/static/_next/static/chunks/411-b5d3e7f64bee2335.js diff --git a/dbgpt/app/static/_next/static/chunks/412-b911d4a677c64b70.js b/dbgpt/app/static/_next/static/chunks/412-b911d4a677c64b70.js deleted file mode 100644 index 3353a4beb..000000000 --- a/dbgpt/app/static/_next/static/chunks/412-b911d4a677c64b70.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{27496:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},i=n(84089),l=o.forwardRef(function(e,t){return o.createElement(i.Z,(0,r.Z)({},e,{ref:t,icon:a}))})},1375:function(e,t,n){async function r(e,t){let n;let r=e.getReader();for(;!(n=await r.read()).done;)t(n.value)}function o(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{a:function(){return i},L:function(){return c}});var a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let i="text/event-stream",l="last-event-id";function c(e,t){var{signal:n,headers:c,onopen:d,onmessage:m,onclose:u,onerror:p,openWhenHidden:g,fetch:f}=t,$=a(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,a)=>{let b;let h=Object.assign({},c);function y(){b.abort(),document.hidden||w()}h.accept||(h.accept=i),g||document.addEventListener("visibilitychange",y);let v=1e3,x=0;function E(){document.removeEventListener("visibilitychange",y),window.clearTimeout(x),b.abort()}null==n||n.addEventListener("abort",()=>{E(),t()});let O=null!=f?f:window.fetch,S=null!=d?d:s;async function w(){var n,i;b=new AbortController;try{let n,a,c,s;let d=await O(e,Object.assign(Object.assign({},$),{headers:h,signal:b.signal}));await S(d),await r(d.body,(i=function(e,t,n){let r=o(),a=new TextDecoder;return function(i,l){if(0===i.length)null==n||n(r),r=o();else if(l>0){let n=a.decode(i.subarray(0,l)),o=l+(32===i[l+1]?2:1),c=a.decode(i.subarray(o));switch(n){case"data":r.data=r.data?r.data+"\n"+c:c;break;case"event":r.event=c;break;case"id":e(r.id=c);break;case"retry":let s=parseInt(c,10);isNaN(s)||t(r.retry=s)}}}}(e=>{e?h[l]=e:delete h[l]},e=>{v=e},m),s=!1,function(e){void 0===n?(n=e,a=0,c=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,r=0;for(;a{let{icon:t,description:n,prefixCls:r,className:a}=e,i=o.createElement("div",{className:`${r}-icon`},o.createElement($,null));return o.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:s()(a,`${r}-content`)},t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-icon`},t),n&&o.createElement("div",{className:`${r}-description`},n)):i)});let h=o.createContext(void 0),{Provider:y}=h;var v=n(23183),x=n(14747),E=n(16932),O=n(93590),S=n(67968),w=n(45503),k=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);let C=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,a=`${t}-group`,i=new v.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new v.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${a}-wrap`]:Object.assign({},(0,O.R)(`${a}-wrap`,i,l,r,!0))},{[`${a}-wrap`]:{[` - &${a}-wrap-enter, - &${a}-wrap-appear - `]:{opacity:0,animationTimingFunction:o},[`&${a}-wrap-leave`]:{animationTimingFunction:o}}}]},j=e=>{let{antCls:t,componentCls:n,floatButtonSize:r,margin:o,borderRadiusLG:a,borderRadiusSM:i,badgeOffset:l,floatButtonBodyPadding:c}=e,s=`${n}-group`;return{[s]:Object.assign(Object.assign({},(0,x.Wf)(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:a,[`${s}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:o},[`&${s}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${s}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${s}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(c+l),insetInlineEnd:-(c+l)}}},[`${s}-wrap`]:{display:"block",borderRadius:a,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:c,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${s}-circle-shadow`]:{boxShadow:"none"},[`${s}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},B=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:o,floatButtonSize:a,borderRadiusLG:i,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s}=e;return{[n]:Object.assign(Object.assign({},(0,x.Wf)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,width:a,height:a,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-l,insetInlineEnd:-l}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:a,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${r/2}px ${r}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:o,fontSize:o,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:a,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:a,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var N=(0,S.Z)("FloatButton",e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:a,fontSize:i,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,borderRadiusLG:d}=e,m=(0,w.TS)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:i,floatButtonIconSize:1.5*l,floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:a,floatButtonBodySize:r-2*s,floatButtonBodyPadding:s,badgeOffset:1.5*s,dotOffsetInCircle:k(r/2),dotOffsetInSquare:k(d)});return[j(m),B(m),(0,E.J$)(e),C(m)]}),z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I="float-btn",P=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:a,type:i="default",shape:l="circle",icon:c,description:d,tooltip:f,badge:$={}}=e,y=z(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:v,direction:x}=(0,o.useContext)(p.E_),E=(0,o.useContext)(h),O=v(I,n),[S,w]=N(O),k=s()(w,O,r,a,`${O}-${i}`,`${O}-${E||l}`,{[`${O}-rtl`]:"rtl"===x}),C=(0,o.useMemo)(()=>(0,m.Z)($,["title","children","status","text"]),[$]),j=(0,o.useMemo)(()=>({prefixCls:O,description:d,icon:c,type:i}),[O,d,c,i]),B=o.createElement("div",{className:`${O}-body`},o.createElement(b,Object.assign({},j)));return"badge"in e&&(B=o.createElement(u.Z,Object.assign({},C),B)),"tooltip"in e&&(B=o.createElement(g.Z,{title:f,placement:"rtl"===x?"right":"left"},B)),S(e.href?o.createElement("a",Object.assign({ref:t},y,{className:k}),B):o.createElement("button",Object.assign({ref:t},y,{className:k,type:"button"}),B))});var M=n(66367),Z=n(58375),L=n(74902),H=n(75164),R=function(e){let t;let n=n=>()=>{t=null,e.apply(void 0,(0,L.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,r=Array(e),o=0;o{H.Z.cancel(t),t=null},r},T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},W=(0,o.memo)(e=>{let{prefixCls:t,className:n,type:r="default",shape:a="circle",visibilityHeight:i=400,icon:c=o.createElement(l,null),target:m,onClick:u,duration:g=450}=e,f=T(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[$,b]=(0,o.useState)(0===i),y=(0,o.useRef)(null),v=()=>y.current&&y.current.ownerDocument?y.current.ownerDocument:window,x=R(e=>{let t=(0,M.Z)(e.target,!0);b(t>=i)});(0,o.useEffect)(()=>{let e=m||v,t=e();return x({target:t}),null==t||t.addEventListener("scroll",x),()=>{x.cancel(),null==t||t.removeEventListener("scroll",x)}},[m]);let E=e=>{(0,Z.Z)(0,{getContainer:m||v,duration:g}),null==u||u(e)},{getPrefixCls:O}=(0,o.useContext)(p.E_),S=O(I,t),w=O(),[k]=N(S),C=(0,o.useContext)(h),j=Object.assign({prefixCls:S,icon:c,type:r,shape:C||a},f);return k(o.createElement(d.ZP,{visible:$,motionName:`${w}-fade`},e=>{let{className:t}=e;return o.createElement(P,Object.assign({ref:y},j,{onClick:E,className:s()(n,t)}))}))}),_=n(97937),D=n(21770),F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},A=(0,o.memo)(e=>{let{prefixCls:t,className:n,style:r,shape:a="circle",type:i="default",icon:l=o.createElement($,null),closeIcon:c=o.createElement(_.Z,null),description:m,trigger:u,children:g,onOpenChange:f,open:b}=e,h=F(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:v,getPrefixCls:x}=(0,o.useContext)(p.E_),E=x(I,t),[O,S]=N(E),w=`${E}-group`,k=s()(w,S,n,{[`${w}-rtl`]:"rtl"===v,[`${w}-${a}`]:a,[`${w}-${a}-shadow`]:!u}),C=s()(S,`${w}-wrap`),[j,B]=(0,D.Z)(!1,{value:b}),z=(0,o.useRef)(null),M=(0,o.useRef)(null),Z=(0,o.useMemo)(()=>"hover"===u?{onMouseEnter(){B(!0),null==f||f(!0)},onMouseLeave(){B(!1),null==f||f(!1)}}:{},[u]),L=()=>{B(e=>(null==f||f(!e),!e))},H=(0,o.useCallback)(e=>{var t,n;if(null===(t=z.current)||void 0===t?void 0:t.contains(e.target)){(null===(n=M.current)||void 0===n?void 0:n.contains(e.target))&&L();return}B(!1),null==f||f(!1)},[u]);return(0,o.useEffect)(()=>{if("click"===u)return document.addEventListener("click",H),()=>{document.removeEventListener("click",H)}},[u]),O(o.createElement(y,{value:a},o.createElement("div",Object.assign({ref:z,className:k,style:r},Z),u&&["click","hover"].includes(u)?o.createElement(o.Fragment,null,o.createElement(d.ZP,{visible:j,motionName:`${w}-wrap`},e=>{let{className:t}=e;return o.createElement("div",{className:s()(t,C)},g)}),o.createElement(P,Object.assign({ref:M,type:i,shape:a,icon:j?c:l,description:m,"aria-label":e["aria-label"]},h))):g)))}),G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let q=e=>{var{backTop:t}=e,n=G(e,["backTop"]);return t?o.createElement(W,Object.assign({},n,{visibilityHeight:0})):o.createElement(P,Object.assign({},n))};P.BackTop=W,P.Group=A,P._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,r=G(e,["className","items"]);let{prefixCls:a}=r,{getPrefixCls:i}=o.useContext(p.E_),l=i(I,a),c=`${l}-pure`;return n?o.createElement(A,Object.assign({className:s()(t,c)},r),n.map((e,t)=>o.createElement(q,Object.assign({key:t},e)))):o.createElement(q,Object.assign({className:s()(t,c)},r))};var V=P},2487:function(e,t,n){n.d(t,{Z:function(){return B}});var r=n(74902),o=n(94184),a=n.n(o),i=n(67294),l=n(38780),c=n(74443),s=n(53124),d=n(88258),m=n(92820),u=n(25378),p=n(81647),g=n(75081),f=n(96159),$=n(21584);let b=i.createContext({});b.Consumer;var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let y=(0,i.forwardRef)((e,t)=>{let n;var{prefixCls:r,children:o,actions:l,extra:c,className:d,colStyle:m}=e,u=h(e,["prefixCls","children","actions","extra","className","colStyle"]);let{grid:p,itemLayout:g}=(0,i.useContext)(b),{getPrefixCls:y}=(0,i.useContext)(s.E_),v=y("list",r),x=l&&l.length>0&&i.createElement("ul",{className:`${v}-item-action`,key:"actions"},l.map((e,t)=>i.createElement("li",{key:`${v}-item-action-${t}`},e,t!==l.length-1&&i.createElement("em",{className:`${v}-item-action-split`})))),E=p?"div":"li",O=i.createElement(E,Object.assign({},u,p?{}:{ref:t},{className:a()(`${v}-item`,{[`${v}-item-no-flex`]:!("vertical"===g?!!c:(i.Children.forEach(o,e=>{"string"==typeof e&&(n=!0)}),!(n&&i.Children.count(o)>1)))},d)}),"vertical"===g&&c?[i.createElement("div",{className:`${v}-item-main`,key:"content"},o,x),i.createElement("div",{className:`${v}-item-extra`,key:"extra"},c)]:[o,x,(0,f.Tm)(c,{key:"extra"})]);return p?i.createElement($.Z,{ref:t,flex:1,style:m},O):O});y.Meta=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,c=h(e,["prefixCls","className","avatar","title","description"]);let{getPrefixCls:d}=(0,i.useContext)(s.E_),m=d("list",t),u=a()(`${m}-item-meta`,n),p=i.createElement("div",{className:`${m}-item-meta-content`},o&&i.createElement("h4",{className:`${m}-item-meta-title`},o),l&&i.createElement("div",{className:`${m}-item-meta-description`},l));return i.createElement("div",Object.assign({},c,{className:u}),r&&i.createElement("div",{className:`${m}-item-meta-avatar`},r),(o||l)&&p)};var v=n(14747),x=n(67968),E=n(45503);let O=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:a,itemPaddingLG:i,marginLG:l,borderRadiusLG:c}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}}}},S=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},w=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:d,itemPaddingLG:m,paddingXS:u,margin:p,colorText:g,colorTextDescription:f,motionDurationSlow:$,lineWidth:b,headerBg:h,footerBg:y,emptyTextPadding:x,metaMarginBottom:E,avatarMarginRight:O,titleMarginBottom:S,descriptionFontSize:w}=e,k={};return["start","center","end"].forEach(e=>{k[`&-align-${e}`]={textAlign:e}}),{[`${t}`]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:h},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:i},k),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:O},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${$}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:f,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${u}px`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:f,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:E,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:S,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var k=(0,x.Z)("List",e=>{let t=(0,E.TS)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[w(t),O(t),S(t)]},e=>({contentWidth:220,itemPadding:`${e.paddingContentVertical}px 0`,itemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,itemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j(e){var t,{pagination:n=!1,prefixCls:o,bordered:f=!1,split:$=!0,className:h,rootClassName:y,style:v,children:x,itemLayout:E,loadMore:O,grid:S,dataSource:w=[],size:j,header:B,footer:N,loading:z=!1,rowKey:I,renderItem:P,locale:M}=e,Z=C(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);let L=n&&"object"==typeof n?n:{},[H,R]=i.useState(L.defaultCurrent||1),[T,W]=i.useState(L.defaultPageSize||10),{getPrefixCls:_,renderEmpty:D,direction:F,list:A}=i.useContext(s.E_),G=e=>(t,r)=>{var o;R(t),W(r),n&&n[e]&&(null===(o=null==n?void 0:n[e])||void 0===o||o.call(n,t,r))},q=G("onChange"),V=G("onShowSizeChange"),X=(e,t)=>{let n;return P?((n="function"==typeof I?I(e):I?e[I]:e.key)||(n=`list-item-${t}`),i.createElement(i.Fragment,{key:n},P(e,t))):null},U=_("list",o),[Y,J]=k(U),K=z;"boolean"==typeof K&&(K={spinning:K});let Q=K&&K.spinning,ee="";switch(j){case"large":ee="lg";break;case"small":ee="sm"}let et=a()(U,{[`${U}-vertical`]:"vertical"===E,[`${U}-${ee}`]:ee,[`${U}-split`]:$,[`${U}-bordered`]:f,[`${U}-loading`]:Q,[`${U}-grid`]:!!S,[`${U}-something-after-last-item`]:!!(O||n||N),[`${U}-rtl`]:"rtl"===F},null==A?void 0:A.className,h,y,J),en=(0,l.Z)({current:1,total:0},{total:w.length,current:H,pageSize:T},n||{}),er=Math.ceil(en.total/en.pageSize);en.current>er&&(en.current=er);let eo=n?i.createElement("div",{className:a()(`${U}-pagination`,`${U}-pagination-align-${null!==(t=null==en?void 0:en.align)&&void 0!==t?t:"end"}`)},i.createElement(p.Z,Object.assign({},en,{onChange:q,onShowSizeChange:V}))):null,ea=(0,r.Z)(w);n&&w.length>(en.current-1)*en.pageSize&&(ea=(0,r.Z)(w).splice((en.current-1)*en.pageSize,en.pageSize));let ei=Object.keys(S||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),el=(0,u.Z)(ei),ec=i.useMemo(()=>{for(let e=0;e{if(!S)return;let e=ec&&S[ec]?S[ec]:S.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[null==S?void 0:S.column,ec]),ed=Q&&i.createElement("div",{style:{minHeight:53}});if(ea.length>0){let e=ea.map((e,t)=>X(e,t));ed=S?i.createElement(m.Z,{gutter:S.gutter},i.Children.map(e,e=>i.createElement("div",{key:null==e?void 0:e.key,style:es},e))):i.createElement("ul",{className:`${U}-items`},e)}else x||Q||(ed=i.createElement("div",{className:`${U}-empty-text`},M&&M.emptyText||(null==D?void 0:D("List"))||i.createElement(d.Z,{componentName:"List"})));let em=en.position||"bottom",eu=i.useMemo(()=>({grid:S,itemLayout:E}),[JSON.stringify(S),E]);return Y(i.createElement(b.Provider,{value:eu},i.createElement("div",Object.assign({style:Object.assign(Object.assign({},null==A?void 0:A.style),v),className:et},Z),("top"===em||"both"===em)&&eo,B&&i.createElement("div",{className:`${U}-header`},B),i.createElement(g.Z,Object.assign({},K),ed,x),N&&i.createElement("div",{className:`${U}-footer`},N),O||("bottom"===em||"both"===em)&&eo)))}j.Item=y;var B=j},74627:function(e,t,n){n.d(t,{Z:function(){return C}});var r=n(94184),o=n.n(r),a=n(67294);let i=e=>e?"function"==typeof e?e():e:null;var l=n(33603),c=n(53124),s=n(83062),d=n(92419),m=n(14747),u=n(50438),p=n(77786),g=n(8796),f=n(67968),$=n(45503);let b=e=>{let{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:d,colorBgElevated:u,popoverBg:g}=e;return[{[t]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":u,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,p.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},h=e=>{let{componentCls:t}=e;return{[t]:g.i.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},y=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:l,lineHeight:c,padding:s}=e,d=i-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${s}px`}}}};var v=(0,f.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:r}=e,o=(0,$.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[b(o),h(o),r&&y(o),(0,u._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let E=(e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},i(t)),a.createElement("div",{className:`${e}-inner-content`},i(n)))},O=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:l="top",title:c,content:s,children:m}=e;return a.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,r),style:i},a.createElement("div",{className:`${n}-arrow`}),a.createElement(d.G,Object.assign({},e,{className:t,prefixCls:n}),m||E(n,c,s)))};var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let w=e=>{let{title:t,content:n,prefixCls:r}=e;return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${r}-title`},i(t)),a.createElement("div",{className:`${r}-inner-content`},i(n)))},k=a.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:d,placement:m="top",trigger:u="hover",mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,overlayStyle:f={}}=e,$=S(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:b}=a.useContext(c.E_),h=b("popover",n),[y,x]=v(h),E=b(),O=o()(d,x);return y(a.createElement(s.Z,Object.assign({placement:m,trigger:u,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:f},$,{prefixCls:h,overlayClassName:O,ref:t,overlay:r||i?a.createElement(w,{prefixCls:h,title:r,content:i}):null,transitionName:(0,l.m)(E,"zoom-big",$.transitionName),"data-popover-inject":!0})))});k._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t}=e,n=x(e,["prefixCls"]),{getPrefixCls:r}=a.useContext(c.E_),o=r("popover",t),[i,l]=v(o);return i(a.createElement(O,Object.assign({},n,{prefixCls:o,hashId:l})))};var C=k}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/45-9ff739c09925ea35.js b/dbgpt/app/static/_next/static/chunks/45-9ff739c09925ea35.js new file mode 100644 index 000000000..cefd89fd6 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/45-9ff739c09925ea35.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[45],{78045:function(e,r,o){o.d(r,{ZP:function(){return P}});var t=o(94184),n=o.n(t),l=o(21770),i=o(64217),a=o(67294),d=o(53124),s=o(98675);let c=a.createContext(null),b=c.Provider,u=a.createContext(null),p=u.Provider;var g=o(50132),h=o(42550),f=o(98866),$=o(65223),v=o(14747),k=o(67968),C=o(45503);let y=e=>{let{componentCls:r,antCls:o}=e,t=`${r}-group`;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{display:"inline-block",fontSize:0,[`&${t}-rtl`]:{direction:"rtl"},[`${o}-badge ${o}-badge-count`]:{zIndex:1},[`> ${o}-badge:not(:first-child) > ${o}-button-wrapper`]:{borderInlineStart:"none"}})}},S=e=>{let{componentCls:r,wrapperMarginInlineEnd:o,colorPrimary:t,radioSize:n,motionDurationSlow:l,motionDurationMid:i,motionEaseInOutCirc:a,colorBgContainer:d,colorBorder:s,lineWidth:c,dotSize:b,colorBgContainerDisabled:u,colorTextDisabled:p,paddingXS:g,dotColorDisabled:h,lineType:f,radioDotDisabledSize:$,wireframe:k,colorWhite:C}=e,y=`${r}-inner`;return{[`${r}-wrapper`]:Object.assign(Object.assign({},(0,v.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:o,cursor:"pointer",[`&${r}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${r}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${c}px ${f} ${t}`,borderRadius:"50%",visibility:"hidden",content:'""'},[r]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${r}-wrapper:hover &, + &:hover ${y}`]:{borderColor:t},[`${r}-input:focus-visible + ${y}`]:Object.assign({},(0,v.oN)(e)),[`${r}:hover::after, ${r}-wrapper:hover &::after`]:{visibility:"visible"},[`${r}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:n,height:n,marginBlockStart:-(n/2),marginInlineStart:-(n/2),backgroundColor:k?t:C,borderBlockStart:0,borderInlineStart:0,borderRadius:n,transform:"scale(0)",opacity:0,transition:`all ${l} ${a}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:n,height:n,backgroundColor:d,borderColor:s,borderStyle:"solid",borderWidth:c,borderRadius:"50%",transition:`all ${i}`},[`${r}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${r}-checked`]:{[y]:{borderColor:t,backgroundColor:k?d:t,"&::after":{transform:`scale(${b/n})`,opacity:1,transition:`all ${l} ${a}`}}},[`${r}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${r}-input`]:{cursor:"not-allowed"},[`${r}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${r}-checked`]:{[y]:{"&::after":{transform:`scale(${$/n})`}}}},[`span${r} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},m=e=>{let{buttonColor:r,controlHeight:o,componentCls:t,lineWidth:n,lineType:l,colorBorder:i,motionDurationSlow:a,motionDurationMid:d,buttonPaddingInline:s,fontSize:c,buttonBg:b,fontSizeLG:u,controlHeightLG:p,controlHeightSM:g,paddingXS:h,borderRadius:f,borderRadiusSM:$,borderRadiusLG:k,buttonCheckedBg:C,buttonSolidCheckedColor:y,colorTextDisabled:S,colorBgContainerDisabled:m,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:w,colorPrimary:E,colorPrimaryHover:O,colorPrimaryActive:I}=e;return{[`${t}-button-wrapper`]:{position:"relative",display:"inline-block",height:o,margin:0,paddingInline:s,paddingBlock:0,color:r,fontSize:c,lineHeight:`${o-2*n}px`,background:b,border:`${n}px ${l} ${i}`,borderBlockStartWidth:n+.02,borderInlineStartWidth:0,borderInlineEndWidth:n,cursor:"pointer",transition:`color ${d},background ${d},box-shadow ${d}`,a:{color:r},[`> ${t}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-n,insetInlineStart:-n,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:n,paddingInline:0,backgroundColor:i,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${n}px ${l} ${i}`,borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f},"&:first-child:last-child":{borderRadius:f},[`${t}-group-large &`]:{height:p,fontSize:u,lineHeight:`${p-2*n}px`,"&:first-child":{borderStartStartRadius:k,borderEndStartRadius:k},"&:last-child":{borderStartEndRadius:k,borderEndEndRadius:k}},[`${t}-group-small &`]:{height:g,paddingInline:h-n,paddingBlock:0,lineHeight:`${g-2*n}px`,"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":Object.assign({},(0,v.oN)(e)),[`${t}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${t}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:C,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]:{color:y,background:E,borderColor:E,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:I,borderColor:I}},"&-disabled":{color:S,backgroundColor:m,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:m,borderColor:i}},[`&-disabled${t}-button-wrapper-checked`]:{color:w,backgroundColor:x,borderColor:i,boxShadow:"none"}}}},x=e=>e-8;var w=(0,k.Z)("Radio",e=>{let{controlOutline:r,controlOutlineWidth:o,radioSize:t}=e,n=`0 0 0 ${o}px ${r}`,l=x(t),i=(0,C.TS)(e,{radioDotDisabledSize:l,radioFocusShadow:n,radioButtonFocusShadow:n});return[y(i),S(i),m(i)]},e=>{let{wireframe:r,padding:o,marginXS:t,lineWidth:n,fontSizeLG:l,colorText:i,colorBgContainer:a,colorTextDisabled:d,controlItemBgActiveDisabled:s,colorTextLightSolid:c}=e,b=r?x(l):l-(4+n)*2;return{radioSize:l,dotSize:b,dotColorDisabled:d,buttonSolidCheckedColor:c,buttonBg:a,buttonCheckedBg:a,buttonColor:i,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:d,buttonPaddingInline:o-n,wrapperMarginInlineEnd:t}}),E=o(45353),O=o(17415),I=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>r.indexOf(t)&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,t=Object.getOwnPropertySymbols(e);nr.indexOf(t[n])&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]]);return o};let R=a.forwardRef((e,r)=>{var o,t;let l=a.useContext(c),i=a.useContext(u),{getPrefixCls:s,direction:b,radio:p}=a.useContext(d.E_),v=a.useRef(null),k=(0,h.sQ)(r,v),{isFormItemInput:C}=a.useContext($.aM),{prefixCls:y,className:S,rootClassName:m,children:x,style:R}=e,j=I(e,["prefixCls","className","rootClassName","children","style"]),B=s("radio",y),z="button"===((null==l?void 0:l.optionType)||i),N=z?`${B}-button`:B,[P,_]=w(B),M=Object.assign({},j),Z=a.useContext(f.Z);l&&(M.name=l.name,M.onChange=r=>{var o,t;null===(o=e.onChange)||void 0===o||o.call(e,r),null===(t=null==l?void 0:l.onChange)||void 0===t||t.call(l,r)},M.checked=e.value===l.value,M.disabled=null!==(o=M.disabled)&&void 0!==o?o:l.disabled),M.disabled=null!==(t=M.disabled)&&void 0!==t?t:Z;let W=n()(`${N}-wrapper`,{[`${N}-wrapper-checked`]:M.checked,[`${N}-wrapper-disabled`]:M.disabled,[`${N}-wrapper-rtl`]:"rtl"===b,[`${N}-wrapper-in-form-item`]:C},null==p?void 0:p.className,S,m,_);return P(a.createElement(E.Z,{component:"Radio",disabled:M.disabled},a.createElement("label",{className:W,style:Object.assign(Object.assign({},null==p?void 0:p.style),R),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},a.createElement(g.Z,Object.assign({},M,{className:n()(M.className,!z&&O.A),type:"radio",prefixCls:N,ref:k})),void 0!==x?a.createElement("span",null,x):null)))}),j=a.forwardRef((e,r)=>{let{getPrefixCls:o,direction:t}=a.useContext(d.E_),[c,u]=(0,l.Z)(e.defaultValue,{value:e.value}),{prefixCls:p,className:g,rootClassName:h,options:f,buttonStyle:$="outline",disabled:v,children:k,size:C,style:y,id:S,onMouseEnter:m,onMouseLeave:x,onFocus:E,onBlur:O}=e,I=o("radio",p),j=`${I}-group`,[B,z]=w(I),N=k;f&&f.length>0&&(N=f.map(e=>"string"==typeof e||"number"==typeof e?a.createElement(R,{key:e.toString(),prefixCls:I,disabled:v,value:e,checked:c===e},e):a.createElement(R,{key:`radio-group-value-options-${e.value}`,prefixCls:I,disabled:e.disabled||v,value:e.value,checked:c===e.value,title:e.title,style:e.style},e.label)));let P=(0,s.Z)(C),_=n()(j,`${j}-${$}`,{[`${j}-${P}`]:P,[`${j}-rtl`]:"rtl"===t},g,h,z);return B(a.createElement("div",Object.assign({},(0,i.Z)(e,{aria:!0,data:!0}),{className:_,style:y,onMouseEnter:m,onMouseLeave:x,onFocus:E,onBlur:O,id:S,ref:r}),a.createElement(b,{value:{onChange:r=>{let o=r.target.value;"value"in e||u(o);let{onChange:t}=e;t&&o!==c&&t(r)},value:c,disabled:e.disabled,name:e.name,optionType:e.optionType}},N)))});var B=a.memo(j),z=function(e,r){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>r.indexOf(t)&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,t=Object.getOwnPropertySymbols(e);nr.indexOf(t[n])&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(o[t[n]]=e[t[n]]);return o},N=a.forwardRef((e,r)=>{let{getPrefixCls:o}=a.useContext(d.E_),{prefixCls:t}=e,n=z(e,["prefixCls"]),l=o("radio",t);return a.createElement(p,{value:"button"},a.createElement(R,Object.assign({prefixCls:l},n,{type:"radio",ref:r})))});R.Button=N,R.Group=B,R.__ANT_RADIO=!0;var P=R}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/450-bd680f0e37e9b4b9.js b/dbgpt/app/static/_next/static/chunks/450-bd680f0e37e9b4b9.js new file mode 100644 index 000000000..912053005 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/450-bd680f0e37e9b4b9.js @@ -0,0 +1,11 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[450],{6321:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},90389:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27704:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31484:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M292.7 840h438.6l24.2-512h-487z",fill:t}},{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z",fill:e}}]}},name:"delete",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},80882:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31326:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},31545:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27595:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},27329:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:e}}]}},name:"file-word",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},68346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},64082:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},88008:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},78346:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:e}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"message",theme:"twotone"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},18754:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},28058:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},38925:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(89739),o=n(4340),r=n(97937),a=n(21640),l=n(78860),c=n(94184),s=n.n(c),d=n(82225),p=n(64217),m=n(67294),g=n(96159),u=n(53124),h=n(14747),f=n(67968),$=n(45503);let v=(e,t,n,i,o)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${t}`,[`${o}-icon`]:{color:n}}),b=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:i,marginSM:o,fontSize:r,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,alertIconSizeLG:d,colorText:p,paddingContentVerticalSM:m,alertPaddingHorizontal:g,paddingMD:u,paddingContentHorizontalLG:f,colorTextHeading:$}=e;return{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${m}px ${g}px`,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s}, + padding-top ${n} ${s}, padding-bottom ${n} ${s}, + margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:f,paddingBlock:u,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:i,color:$,fontSize:a},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},S=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:i,colorSuccessBg:o,colorWarning:r,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:d,colorInfo:p,colorInfoBorder:m,colorInfoBg:g}=e;return{[t]:{"&-success":v(o,i,n,e,t),"&-info":v(g,m,p,e,t),"&-warning":v(l,a,r,e,t),"&-error":Object.assign(Object.assign({},v(d,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},x=e=>{let{componentCls:t,iconCls:n,motionDurationMid:i,marginXS:o,fontSizeIcon:r,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:r,lineHeight:`${r}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${i}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${i}`,"&:hover":{color:l}}}}},y=e=>[b(e),S(e),x(e)];var C=(0,f.Z)("Alert",e=>{let{fontSizeHeading3:t}=e,n=(0,$.TS)(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[y(n)]}),w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let z={success:i.Z,info:l.Z,error:o.Z,warning:a.Z},I=e=>{let{icon:t,prefixCls:n,type:i}=e,o=z[i]||null;return t?(0,g.wm)(t,m.createElement("span",{className:`${n}-icon`},t),()=>({className:s()(`${n}-icon`,{[t.props.className]:t.props.className})})):m.createElement(o,{className:`${n}-icon`})},E=e=>{let{isClosable:t,prefixCls:n,closeIcon:i,handleClose:o}=e,a=!0===i||void 0===i?m.createElement(r.Z,null):i;return t?m.createElement("button",{type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},a):null};var Z=e=>{let{description:t,prefixCls:n,message:i,banner:o,className:r,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:g,onClick:h,afterClose:f,showIcon:$,closable:v,closeText:b,closeIcon:S,action:x}=e,y=w(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[z,Z]=m.useState(!1),k=m.useRef(null),{getPrefixCls:N,direction:O,alert:M}=m.useContext(u.E_),H=N("alert",n),[j,T]=C(H),B=t=>{var n;Z(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},D=m.useMemo(()=>void 0!==e.type?e.type:o?"warning":"info",[e.type,o]),P=m.useMemo(()=>!!b||("boolean"==typeof v?v:!1!==S&&null!=S),[b,S,v]),X=!!o&&void 0===$||$,R=s()(H,`${H}-${D}`,{[`${H}-with-description`]:!!t,[`${H}-no-icon`]:!X,[`${H}-banner`]:!!o,[`${H}-rtl`]:"rtl"===O},null==M?void 0:M.className,r,a,T),W=(0,p.Z)(y,{aria:!0,data:!0});return j(m.createElement(d.ZP,{visible:!z,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:f},n=>{let{className:o,style:r}=n;return m.createElement("div",Object.assign({ref:k,"data-show":!z,className:s()(R,o),style:Object.assign(Object.assign(Object.assign({},null==M?void 0:M.style),l),r),onMouseEnter:c,onMouseLeave:g,onClick:h,role:"alert"},W),X?m.createElement(I,{description:t,icon:e.icon,prefixCls:H,type:D}):null,m.createElement("div",{className:`${H}-content`},i?m.createElement("div",{className:`${H}-message`},i):null,t?m.createElement("div",{className:`${H}-description`},t):null),x?m.createElement("div",{className:`${H}-action`},x):null,m.createElement(E,{isClosable:P,prefixCls:H,closeIcon:b||S,handleClose:B}))}))},k=n(15671),N=n(43144),O=n(32531),M=n(73568);let H=function(e){(0,O.Z)(n,e);var t=(0,M.Z)(n);function n(){var e;return(0,k.Z)(this,n),e=t.apply(this,arguments),e.state={error:void 0,info:{componentStack:""}},e}return(0,N.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){let{message:e,description:t,children:n}=this.props,{error:i,info:o}=this.state,r=o&&o.componentStack?o.componentStack:null,a=void 0===e?(i||"").toString():e;return i?m.createElement(Z,{type:"error",message:a,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},void 0===t?r:t)}):n}}]),n}(m.Component);Z.ErrorBoundary=H;var j=Z},15746:function(e,t,n){var i=n(21584);t.Z=i.Z},47221:function(e,t,n){n.d(t,{Z:function(){return L}});var i=n(18073),o=n(94184),r=n.n(o),a=n(97685),l=n(74902),c=n(71002),s=n(21770),d=n(80334),p=n(67294),m=n(87462),g=n(45987),u=n(50344),h=n(4942),f=n(82225),$=n(15105),v=p.forwardRef(function(e,t){var n,i=e.prefixCls,o=e.forceRender,l=e.className,c=e.style,s=e.children,d=e.isActive,m=e.role,g=p.useState(d||o),u=(0,a.Z)(g,2),f=u[0],$=u[1];return(p.useEffect(function(){(o||d)&&$(!0)},[o,d]),f)?p.createElement("div",{ref:t,className:r()("".concat(i,"-content"),(n={},(0,h.Z)(n,"".concat(i,"-content-active"),d),(0,h.Z)(n,"".concat(i,"-content-inactive"),!d),n),l),style:c,role:m},p.createElement("div",{className:"".concat(i,"-content-box")},s)):null});v.displayName="PanelContent";var b=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],S=p.forwardRef(function(e,t){var n,i,o=e.showArrow,a=void 0===o||o,l=e.headerClass,c=e.isActive,s=e.onItemClick,d=e.forceRender,u=e.className,S=e.prefixCls,x=e.collapsible,y=e.accordion,C=e.panelKey,w=e.extra,z=e.header,I=e.expandIcon,E=e.openMotion,Z=e.destroyInactivePanel,k=e.children,N=(0,g.Z)(e,b),O="disabled"===x,M="header"===x,H="icon"===x,j=null!=w&&"boolean"!=typeof w,T=function(){null==s||s(C)},B="function"==typeof I?I(e):p.createElement("i",{className:"arrow"});B&&(B=p.createElement("div",{className:"".concat(S,"-expand-icon"),onClick:["header","icon"].includes(x)?T:void 0},B));var D=r()((n={},(0,h.Z)(n,"".concat(S,"-item"),!0),(0,h.Z)(n,"".concat(S,"-item-active"),c),(0,h.Z)(n,"".concat(S,"-item-disabled"),O),n),u),P={className:r()(l,(i={},(0,h.Z)(i,"".concat(S,"-header"),!0),(0,h.Z)(i,"".concat(S,"-header-collapsible-only"),M),(0,h.Z)(i,"".concat(S,"-icon-collapsible-only"),H),i)),"aria-expanded":c,"aria-disabled":O,onKeyDown:function(e){("Enter"===e.key||e.keyCode===$.Z.ENTER||e.which===$.Z.ENTER)&&T()}};return M||H||(P.onClick=T,P.role=y?"tab":"button",P.tabIndex=O?-1:0),p.createElement("div",(0,m.Z)({},N,{ref:t,className:D}),p.createElement("div",P,a&&B,p.createElement("span",{className:"".concat(S,"-header-text"),onClick:"header"===x?T:void 0},z),j&&p.createElement("div",{className:"".concat(S,"-extra")},w)),p.createElement(f.ZP,(0,m.Z)({visible:c,leavedClassName:"".concat(S,"-content-hidden")},E,{forceRender:d,removeOnLeave:Z}),function(e,t){var n=e.className,i=e.style;return p.createElement(v,{ref:t,prefixCls:S,className:n,style:i,isActive:c,forceRender:d,role:y?"tabpanel":void 0},k)}))}),x=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],y=function(e,t){var n=t.prefixCls,i=t.accordion,o=t.collapsible,r=t.destroyInactivePanel,a=t.onItemClick,l=t.activeKey,c=t.openMotion,s=t.expandIcon;return e.map(function(e,t){var d=e.children,u=e.label,h=e.key,f=e.collapsible,$=e.onItemClick,v=e.destroyInactivePanel,b=(0,g.Z)(e,x),y=String(null!=h?h:t),C=null!=f?f:o,w=!1;return w=i?l[0]===y:l.indexOf(y)>-1,p.createElement(S,(0,m.Z)({},b,{prefixCls:n,key:y,panelKey:y,isActive:w,accordion:i,openMotion:c,expandIcon:s,header:u,collapsible:C,onItemClick:function(e){"disabled"!==C&&(a(e),null==$||$(e))},destroyInactivePanel:null!=v?v:r}),d)})},C=function(e,t,n){if(!e)return null;var i=n.prefixCls,o=n.accordion,r=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,s=n.openMotion,d=n.expandIcon,m=e.key||String(t),g=e.props,u=g.header,h=g.headerClass,f=g.destroyInactivePanel,$=g.collapsible,v=g.onItemClick,b=!1;b=o?c[0]===m:c.indexOf(m)>-1;var S=null!=$?$:r,x={key:m,panelKey:m,header:u,headerClass:h,isActive:b,prefixCls:i,destroyInactivePanel:null!=f?f:a,openMotion:s,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==S&&(l(e),null==v||v(e))},expandIcon:d,collapsible:S};return"string"==typeof e.type?e:(Object.keys(x).forEach(function(e){void 0===x[e]&&delete x[e]}),p.cloneElement(e,x))};function w(e){var t=e;if(!Array.isArray(t)){var n=(0,c.Z)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var z=Object.assign(p.forwardRef(function(e,t){var n,i=e.prefixCls,o=void 0===i?"rc-collapse":i,c=e.destroyInactivePanel,m=e.style,g=e.accordion,h=e.className,f=e.children,$=e.collapsible,v=e.openMotion,b=e.expandIcon,S=e.activeKey,x=e.defaultActiveKey,z=e.onChange,I=e.items,E=r()(o,h),Z=(0,s.Z)([],{value:S,onChange:function(e){return null==z?void 0:z(e)},defaultValue:x,postState:w}),k=(0,a.Z)(Z,2),N=k[0],O=k[1];(0,d.ZP)(!f,"`children` will be removed in next major version. Please use `items` instead.");var M=(n={prefixCls:o,accordion:g,openMotion:v,expandIcon:b,collapsible:$,destroyInactivePanel:void 0!==c&&c,onItemClick:function(e){return O(function(){return g?N[0]===e?[]:[e]:N.indexOf(e)>-1?N.filter(function(t){return t!==e}):[].concat((0,l.Z)(N),[e])})},activeKey:N},Array.isArray(I)?y(I,n):(0,u.Z)(f).map(function(e,t){return C(e,t,n)}));return p.createElement("div",{ref:t,className:E,style:m,role:g?"tablist":void 0},M)}),{Panel:S});z.Panel;var I=n(98423),E=n(33603),Z=n(96159),k=n(53124),N=n(98675);let O=p.forwardRef((e,t)=>{let{getPrefixCls:n}=p.useContext(k.E_),{prefixCls:i,className:o,showArrow:a=!0}=e,l=n("collapse",i),c=r()({[`${l}-no-arrow`]:!a},o);return p.createElement(z.Panel,Object.assign({ref:t},e,{prefixCls:l,className:c}))});var M=n(14747),H=n(33507),j=n(67968),T=n(45503);let B=e=>{let{componentCls:t,collapseContentBg:n,padding:i,collapseContentPaddingHorizontal:o,collapseHeaderBg:r,collapseHeaderPadding:a,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:s,lineWidth:d,lineType:p,colorBorder:m,colorText:g,colorTextHeading:u,colorTextDisabled:h,fontSize:f,fontSizeLG:$,lineHeight:v,marginSM:b,paddingSM:S,paddingLG:x,paddingXS:y,motionDurationSlow:C,fontSizeIcon:w}=e,z=`${d}px ${p} ${m}`;return{[t]:Object.assign(Object.assign({},(0,M.Wf)(e)),{backgroundColor:r,border:z,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:z,"&:last-child":{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,paddingInlineStart:S,color:u,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:f*v,display:"flex",alignItems:"center",paddingInlineEnd:b,marginInlineStart:i-S},[`${t}-arrow`]:Object.assign(Object.assign({},(0,M.Ro)()),{fontSize:w,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:g,backgroundColor:n,borderTop:z,[`& > ${t}-content-box`]:{padding:`${i}px ${o}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:l,paddingInlineStart:y,[`> ${t}-expand-icon`]:{marginInlineStart:S-y}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:$,[`> ${t}-header`]:{padding:c,paddingInlineStart:i,[`> ${t}-expand-icon`]:{height:$*v,marginInlineStart:x-i}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` + &, + & > .arrow + `]:{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},D=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},P=e=>{let{componentCls:t,collapseHeaderBg:n,paddingXXS:i,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` + > ${t}-item:last-child, + > ${t}-item:last-child ${t}-header + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:i}}}},X=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var R=(0,j.Z)("Collapse",e=>{let t=(0,T.TS)(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[B(t),P(t),X(t),D(t),(0,H.Z)(t)]});let W=p.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o,collapse:a}=p.useContext(k.E_),{prefixCls:l,className:c,rootClassName:s,style:d,bordered:m=!0,ghost:g,size:h,expandIconPosition:f="start",children:$,expandIcon:v}=e,b=(0,N.Z)(e=>{var t;return null!==(t=null!=h?h:e)&&void 0!==t?t:"middle"}),S=n("collapse",l),x=n(),[y,C]=R(S),w=p.useMemo(()=>"left"===f?"start":"right"===f?"end":f,[f]),O=r()(`${S}-icon-position-${w}`,{[`${S}-borderless`]:!m,[`${S}-rtl`]:"rtl"===o,[`${S}-ghost`]:!!g,[`${S}-${b}`]:"middle"!==b},null==a?void 0:a.className,c,s,C),M=Object.assign(Object.assign({},(0,E.Z)(x)),{motionAppear:!1,leavedClassName:`${S}-content-hidden`}),H=p.useMemo(()=>$?(0,u.Z)($).map((e,t)=>{var n,i;if(null===(n=e.props)||void 0===n?void 0:n.disabled){let n=null!==(i=e.key)&&void 0!==i?i:String(t),{disabled:o,collapsible:r}=e.props,a=Object.assign(Object.assign({},(0,I.Z)(e.props,["disabled"])),{key:n,collapsible:null!=r?r:o?"disabled":void 0});return(0,Z.Tm)(e,a)}return e}):null,[$]);return y(p.createElement(z,Object.assign({ref:t,openMotion:M},(0,I.Z)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=v?v(e):p.createElement(i.Z,{rotate:e.isActive?90:void 0});return(0,Z.Tm)(t,()=>({className:r()(t.props.className,`${S}-arrow`)}))},prefixCls:S,className:O,style:Object.assign(Object.assign({},null==a?void 0:a.style),d)}),H))});var L=Object.assign(W,{Panel:O})},96074:function(e,t,n){n.d(t,{Z:function(){return g}});var i=n(94184),o=n.n(i),r=n(67294),a=n(53124),l=n(14747),c=n(67968),s=n(45503);let d=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${o}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var p=(0,c.Z)("Divider",e=>{let t=(0,s.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[d(t)]},{sizePaddingEdgeHorizontal:0}),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},g=e=>{let{getPrefixCls:t,direction:n,divider:i}=r.useContext(a.E_),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:d,className:g,rootClassName:u,children:h,dashed:f,plain:$,style:v}=e,b=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),S=t("divider",l),[x,y]=p(S),C=s.length>0?`-${s}`:s,w=!!h,z="left"===s&&null!=d,I="right"===s&&null!=d,E=o()(S,null==i?void 0:i.className,y,`${S}-${c}`,{[`${S}-with-text`]:w,[`${S}-with-text${C}`]:w,[`${S}-dashed`]:!!f,[`${S}-plain`]:!!$,[`${S}-rtl`]:"rtl"===n,[`${S}-no-default-orientation-margin-left`]:z,[`${S}-no-default-orientation-margin-right`]:I},g,u),Z=r.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),k=Object.assign(Object.assign({},z&&{marginLeft:Z}),I&&{marginRight:Z});return x(r.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==i?void 0:i.style),v)},b,{role:"separator"}),h&&"vertical"!==c&&r.createElement("span",{className:`${S}-inner-text`,style:k},h)))}},25378:function(e,t,n){var i=n(67294),o=n(8410),r=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},71230:function(e,t,n){var i=n(92820);t.Z=i.Z},75081:function(e,t,n){n.d(t,{Z:function(){return x}});var i=n(94184),o=n.n(i),r=n(98423),a=n(67294),l=n(96159),c=n(53124),s=n(23183),d=n(14747),p=n(67968),m=n(45503);let g=new s.E4("antSpinMove",{to:{opacity:1}}),u=new s.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:g,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:u,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var f=(0,p.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),$=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let v=null,b=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:i=0,className:s,rootClassName:d,size:p="default",tip:m,wrapperClassName:g,style:u,children:h,hashId:f}=e,b=$(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[S,x]=a.useState(()=>n&&(!n||!i||!!isNaN(Number(i))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var i,o=n||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,d=void 0===s?void 0:s,p=!1,m=0;function g(){i&&clearTimeout(i)}function u(){for(var n=arguments.length,o=Array(n),r=0;re?c?(m=Date.now(),a||(i=setTimeout(d?h:u,e))):u():!0!==a&&(i=setTimeout(d?h:u,void 0===d?e-s:e)))}return u.cancel=function(e){var t=(e||{}).upcomingOnly;g(),p=!(void 0!==t&&t)},u}(i,()=>{x(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}x(!1)},[i,n]);let y=a.useMemo(()=>void 0!==h,[h]),{direction:C,spin:w}=a.useContext(c.E_),z=o()(t,null==w?void 0:w.className,{[`${t}-sm`]:"small"===p,[`${t}-lg`]:"large"===p,[`${t}-spinning`]:S,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===C},s,d,f),I=o()(`${t}-container`,{[`${t}-blur`]:S}),E=(0,r.Z)(b,["indicator","prefixCls"]),Z=Object.assign(Object.assign({},null==w?void 0:w.style),u),k=a.createElement("div",Object.assign({},E,{style:Z,className:z,"aria-live":"polite","aria-busy":S}),function(e,t){let{indicator:n}=t,i=`${e}-dot`;return null===n?null:(0,l.l$)(n)?(0,l.Tm)(n,{className:o()(n.props.className,i)}):(0,l.l$)(v)?(0,l.Tm)(v,{className:o()(v.props.className,i)}):a.createElement("span",{className:o()(i,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&y?a.createElement("div",{className:`${t}-text`},m):null);return y?a.createElement("div",Object.assign({},E,{className:o()(`${t}-nested-loading`,g,f)}),S&&a.createElement("div",{key:"loading"},k),a.createElement("div",{className:I,key:"container"},h)):k},S=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(c.E_),i=n("spin",t),[o,r]=f(i),l=Object.assign(Object.assign({},e),{spinPrefixCls:i,hashId:r});return o(a.createElement(b,Object.assign({},l)))};S.setDefaultIndicator=e=>{v=e};var x=S},3363:function(e,t,n){n.d(t,{Z:function(){return V}});var i,o,r=n(63606),a=n(97937),l=n(94184),c=n.n(l),s=n(87462),d=n(1413),p=n(4942),m=n(45987),g=n(67294),u=n(15105),h=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function f(e){return"string"==typeof e}var $=function(e){var t,n,i,o,r,a=e.className,l=e.prefixCls,$=e.style,v=e.active,b=e.status,S=e.iconPrefix,x=e.icon,y=(e.wrapperStyle,e.stepNumber),C=e.disabled,w=e.description,z=e.title,I=e.subTitle,E=e.progressDot,Z=e.stepIcon,k=e.tailContent,N=e.icons,O=e.stepIndex,M=e.onStepClick,H=e.onClick,j=e.render,T=(0,m.Z)(e,h),B={};M&&!C&&(B.role="button",B.tabIndex=0,B.onClick=function(e){null==H||H(e),M(O)},B.onKeyDown=function(e){var t=e.which;(t===u.Z.ENTER||t===u.Z.SPACE)&&M(O)});var D=b||"wait",P=c()("".concat(l,"-item"),"".concat(l,"-item-").concat(D),a,(r={},(0,p.Z)(r,"".concat(l,"-item-custom"),x),(0,p.Z)(r,"".concat(l,"-item-active"),v),(0,p.Z)(r,"".concat(l,"-item-disabled"),!0===C),r)),X=(0,d.Z)({},$),R=g.createElement("div",(0,s.Z)({},T,{className:P,style:X}),g.createElement("div",(0,s.Z)({onClick:H},B,{className:"".concat(l,"-item-container")}),g.createElement("div",{className:"".concat(l,"-item-tail")},k),g.createElement("div",{className:"".concat(l,"-item-icon")},(i=c()("".concat(l,"-icon"),"".concat(S,"icon"),(t={},(0,p.Z)(t,"".concat(S,"icon-").concat(x),x&&f(x)),(0,p.Z)(t,"".concat(S,"icon-check"),!x&&"finish"===b&&(N&&!N.finish||!N)),(0,p.Z)(t,"".concat(S,"icon-cross"),!x&&"error"===b&&(N&&!N.error||!N)),t)),o=g.createElement("span",{className:"".concat(l,"-icon-dot")}),n=E?"function"==typeof E?g.createElement("span",{className:"".concat(l,"-icon")},E(o,{index:y-1,status:b,title:z,description:w})):g.createElement("span",{className:"".concat(l,"-icon")},o):x&&!f(x)?g.createElement("span",{className:"".concat(l,"-icon")},x):N&&N.finish&&"finish"===b?g.createElement("span",{className:"".concat(l,"-icon")},N.finish):N&&N.error&&"error"===b?g.createElement("span",{className:"".concat(l,"-icon")},N.error):x||"finish"===b||"error"===b?g.createElement("span",{className:i}):g.createElement("span",{className:"".concat(l,"-icon")},y),Z&&(n=Z({index:y-1,status:b,title:z,description:w,node:n})),n)),g.createElement("div",{className:"".concat(l,"-item-content")},g.createElement("div",{className:"".concat(l,"-item-title")},z,I&&g.createElement("div",{title:"string"==typeof I?I:void 0,className:"".concat(l,"-item-subtitle")},I)),w&&g.createElement("div",{className:"".concat(l,"-item-description")},w))));return j&&(R=j(R)||null),R},v=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function b(e){var t,n=e.prefixCls,i=void 0===n?"rc-steps":n,o=e.style,r=void 0===o?{}:o,a=e.className,l=(e.children,e.direction),u=e.type,h=void 0===u?"default":u,f=e.labelPlacement,b=e.iconPrefix,S=void 0===b?"rc":b,x=e.status,y=void 0===x?"process":x,C=e.size,w=e.current,z=void 0===w?0:w,I=e.progressDot,E=e.stepIcon,Z=e.initial,k=void 0===Z?0:Z,N=e.icons,O=e.onChange,M=e.itemRender,H=e.items,j=(0,m.Z)(e,v),T="inline"===h,B=T||void 0!==I&&I,D=T?"horizontal":void 0===l?"horizontal":l,P=T?void 0:C,X=B?"vertical":void 0===f?"horizontal":f,R=c()(i,"".concat(i,"-").concat(D),a,(t={},(0,p.Z)(t,"".concat(i,"-").concat(P),P),(0,p.Z)(t,"".concat(i,"-label-").concat(X),"horizontal"===D),(0,p.Z)(t,"".concat(i,"-dot"),!!B),(0,p.Z)(t,"".concat(i,"-navigation"),"navigation"===h),(0,p.Z)(t,"".concat(i,"-inline"),T),t)),W=function(e){O&&z!==e&&O(e)};return g.createElement("div",(0,s.Z)({className:R,style:r},j),(void 0===H?[]:H).filter(function(e){return e}).map(function(e,t){var n=(0,d.Z)({},e),o=k+t;return"error"===y&&t===z-1&&(n.className="".concat(i,"-next-error")),n.status||(o===z?n.status=y:o{let{componentCls:t,customIconTop:n,customIconSize:i,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:i,height:i,fontSize:o,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},k=e=>{let{componentCls:t,inlineDotSize:n,inlineTitleColor:i,inlineTailColor:o}=e,r=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:i}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${r}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:i,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:r+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:i}}}}}},N=e=>{let{componentCls:t,iconSize:n,lineHeight:i,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:i}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},O=e=>{let{componentCls:t,navContentMaxWidth:n,navArrowColor:i,stepsNavActiveColor:o,motionDurationSlow:r}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},z.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${i}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${i}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*e.lineWidth,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*e.controlHeight,height:.25*e.controlHeight,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},M=e=>{let{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.iconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.iconSizeSM/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2,insetInlineStart:(e.iconSize-e.stepsProgressSize-2*e.lineWidth)/2}}}}},H=e=>{let{componentCls:t,descriptionMaxWidth:n,lineHeight:i,dotCurrentSize:o,dotSize:r,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:i},"&-tail":{top:Math.floor((e.dotSize-3*e.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*e.marginSM}px)`,height:3*e.lineWidth,marginInlineStart:e.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:(e.descriptionMaxWidth-r)/2,paddingInlineEnd:0,lineHeight:`${r}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(r-1.5*e.controlHeightLG)/2,width:1.5*e.controlHeightLG,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(r-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionMaxWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(r-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-r)/2,insetInlineStart:0,margin:0,padding:`${r+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(r-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-r)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},j=e=>{let{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},T=e=>{let{componentCls:t,iconSizeSM:n,fontSizeSM:i,fontSize:o,colorTextDescription:r}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:i,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:r,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},B=e=>{let{componentCls:t,iconSizeSM:n,iconSize:i}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:1.5*e.controlHeight,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${i}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${i+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-e.lineWidth,padding:`${n+1.5*e.marginXXS}px 0 ${1.5*e.marginXXS}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}};(i=o||(o={})).wait="wait",i.process="process",i.finish="finish",i.error="error";let D=(e,t)=>{let n=`${t.componentCls}-item`,i=`${e}IconColor`,o=`${e}TitleColor`,r=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[i],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[r]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},P=e=>{let{componentCls:t,motionDurationSlow:n}=e,i=`${t}-item`,r=`${i}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[i]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${i}-container > ${i}-tail, > ${i}-container > ${i}-content > ${i}-title::after`]:{display:"none"}}},[`${i}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},(0,z.oN)(e))}},[`${r}, ${i}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.iconSize}px`,textAlign:"center",borderRadius:e.iconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${i}-tail`]:{position:"absolute",top:e.iconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${i}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.titleLineHeight}px`,"&::after":{position:"absolute",top:e.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${i}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${i}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},D(o.wait,e)),D(o.process,e)),{[`${i}-process > ${i}-container > ${i}-title`]:{fontWeight:e.fontWeightStrong}}),D(o.finish,e)),D(o.error,e)),{[`${i}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${i}-disabled`]:{cursor:"not-allowed"}})},X=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},R=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),P(e)),X(e)),Z(e)),T(e)),B(e)),N(e)),H(e)),O(e)),j(e)),M(e)),k(e))}};var W=(0,I.Z)("Steps",e=>{let{wireframe:t,colorTextDisabled:n,controlHeightLG:i,colorTextLightSolid:o,colorText:r,colorPrimary:a,colorTextLabel:l,colorTextDescription:c,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:p,colorError:m,colorBgContainer:g,colorBorderSecondary:u,colorSplit:h}=e,f=(0,E.TS)(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:h,waitIconColor:t?n:l,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:h,waitIconBgColor:t?g:d,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:a,finishTitleColor:r,finishDescriptionColor:c,finishTailColor:a,finishIconBgColor:t?g:p,finishIconBorderColor:t?a:p,finishDotColor:a,errorIconColor:o,errorTitleColor:m,errorDescriptionColor:m,errorTailColor:h,errorIconBgColor:m,errorIconBorderColor:m,errorDotColor:m,stepsNavActiveColor:a,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:u});return[R(f)]},e=>{let{colorTextDisabled:t,fontSize:n,controlHeightSM:i,controlHeight:o,controlHeightLG:r,fontSizeHeading3:a}=e;return{titleLineHeight:o,customIconSize:o,customIconTop:0,customIconFontSize:i,iconSize:o,iconTop:-.5,iconFontSize:n,iconSizeSM:a,dotSize:o/4,dotCurrentSize:r/4,navArrowColor:t,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),L=n(50344),A=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let G=e=>{let{percent:t,size:n,className:i,rootClassName:o,direction:l,items:s,responsive:d=!0,current:p=0,children:m,style:u}=e,h=A(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:f}=(0,y.Z)(d),{getPrefixCls:$,direction:v,steps:z}=g.useContext(S.E_),I=g.useMemo(()=>d&&f?"vertical":l,[f,l]),E=(0,x.Z)(n),Z=$("steps",e.prefixCls),[k,N]=W(Z),O="inline"===e.type,M=$("",e.iconPrefix),H=function(e,t){if(e)return e;let n=(0,L.Z)(t).map(e=>{if(g.isValidElement(e)){let{props:t}=e,n=Object.assign({},t);return n}return null});return n.filter(e=>e)}(s,m),j=O?void 0:t,T=Object.assign(Object.assign({},null==z?void 0:z.style),u),B=c()(null==z?void 0:z.className,{[`${Z}-rtl`]:"rtl"===v,[`${Z}-with-progress`]:void 0!==j},i,o,N),D={finish:g.createElement(r.Z,{className:`${Z}-finish-icon`}),error:g.createElement(a.Z,{className:`${Z}-error-icon`})};return k(g.createElement(b,Object.assign({icons:D},h,{style:T,current:p,size:E,items:H,itemRender:O?(e,t)=>e.description?g.createElement(w.Z,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;return"process"===n&&void 0!==j?g.createElement("div",{className:`${Z}-progress-icon`},g.createElement(C.Z,{type:"circle",percent:j,size:"small"===E?32:40,strokeWidth:4,format:()=>null}),t):t},direction:I,prefixCls:Z,iconPrefix:M,className:B})))};G.Step=b.Step;var V=G},50132:function(e,t,n){var i=n(87462),o=n(1413),r=n(4942),a=n(97685),l=n(45987),c=n(94184),s=n.n(c),d=n(21770),p=n(67294),m=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],g=(0,p.forwardRef)(function(e,t){var n,c=e.prefixCls,g=void 0===c?"rc-checkbox":c,u=e.className,h=e.style,f=e.checked,$=e.disabled,v=e.defaultChecked,b=e.type,S=void 0===b?"checkbox":b,x=e.title,y=e.onChange,C=(0,l.Z)(e,m),w=(0,p.useRef)(null),z=(0,d.Z)(void 0!==v&&v,{value:f}),I=(0,a.Z)(z,2),E=I[0],Z=I[1];(0,p.useImperativeHandle)(t,function(){return{focus:function(){var e;null===(e=w.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current}});var k=s()(g,u,(n={},(0,r.Z)(n,"".concat(g,"-checked"),E),(0,r.Z)(n,"".concat(g,"-disabled"),$),n));return p.createElement("span",{className:k,title:x,style:h},p.createElement("input",(0,i.Z)({},C,{className:"".concat(g,"-input"),ref:w,onChange:function(t){$||("checked"in e||Z(t.target.checked),null==y||y({target:(0,o.Z)((0,o.Z)({},e),{},{type:S,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:$,checked:!!E,type:S})),p.createElement("span",{className:"".concat(g,"-inner")}))});t.Z=g}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/479-b20198841f9a6a1e.js b/dbgpt/app/static/_next/static/chunks/479-33b3ebe9be79a971.js similarity index 100% rename from dbgpt/app/static/_next/static/chunks/479-b20198841f9a6a1e.js rename to dbgpt/app/static/_next/static/chunks/479-33b3ebe9be79a971.js diff --git a/dbgpt/app/static/_next/static/chunks/551-266086fbfa0925ec.js b/dbgpt/app/static/_next/static/chunks/551-266086fbfa0925ec.js deleted file mode 100644 index 96e76b8c8..000000000 --- a/dbgpt/app/static/_next/static/chunks/551-266086fbfa0925ec.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[551],{6321:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},90389:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},27704:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},31484:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M292.7 840h438.6l24.2-512h-487z",fill:e}},{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z",fill:t}}]}},name:"delete",theme:"twotone"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},31326:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M396 512a112 112 0 10224 0 112 112 0 10-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z"}}]},name:"eye",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},31545:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 000-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"file-search",theme:"outlined"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},27595:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},27329:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:t}}]}},name:"file-word",theme:"twotone"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},68346:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},64082:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},88008:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z"}}]},name:"interaction",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},78346:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M775.3 248.9a369.62 369.62 0 00-119-80A370.2 370.2 0 00512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 00-80-119zM312 560a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96zm200 0a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:e}},{tag:"path",attrs:{d:"M664 512a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}},{tag:"path",attrs:{d:"M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z",fill:t}},{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"message",theme:"twotone"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},18754:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},28058:function(t,e,i){i.d(e,{Z:function(){return c}});var n=i(87462),r=i(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},a=i(84089),c=r.forwardRef(function(t,e){return r.createElement(a.Z,(0,n.Z)({},t,{ref:e,icon:o}))})},15746:function(t,e,i){var n=i(21584);e.Z=n.Z},96074:function(t,e,i){i.d(e,{Z:function(){return m}});var n=i(94184),r=i.n(n),o=i(67294),a=i(53124),c=i(14747),l=i(67968),s=i(45503);let d=t=>{let{componentCls:e,sizePaddingEdgeHorizontal:i,colorSplit:n,lineWidth:r}=t;return{[e]:Object.assign(Object.assign({},(0,c.Wf)(t)),{borderBlockStart:`${r}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:i}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:i}}})}};var h=(0,l.Z)("Divider",t=>{let e=(0,s.TS)(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[d(e)]},{sizePaddingEdgeHorizontal:0}),g=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);re.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i},m=t=>{let{getPrefixCls:e,direction:i,divider:n}=o.useContext(a.E_),{prefixCls:c,type:l="horizontal",orientation:s="center",orientationMargin:d,className:m,rootClassName:p,children:u,dashed:$,plain:f,style:b}=t,v=g(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),S=e("divider",c),[w,x]=h(S),I=s.length>0?`-${s}`:s,y=!!u,z="left"===s&&null!=d,C="right"===s&&null!=d,M=r()(S,null==n?void 0:n.className,x,`${S}-${l}`,{[`${S}-with-text`]:y,[`${S}-with-text${I}`]:y,[`${S}-dashed`]:!!$,[`${S}-plain`]:!!f,[`${S}-rtl`]:"rtl"===i,[`${S}-no-default-orientation-margin-left`]:z,[`${S}-no-default-orientation-margin-right`]:C},m,p),k=o.useMemo(()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d,[d]),E=Object.assign(Object.assign({},z&&{marginLeft:k}),C&&{marginRight:k});return w(o.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},null==n?void 0:n.style),b)},v,{role:"separator"}),u&&"vertical"!==l&&o.createElement("span",{className:`${S}-inner-text`,style:E},u)))}},25378:function(t,e,i){var n=i(67294),r=i(8410),o=i(57838),a=i(74443);e.Z=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useRef)({}),i=(0,o.Z)(),c=(0,a.Z)();return(0,r.Z)(()=>{let n=c.subscribe(n=>{e.current=n,t&&i()});return()=>c.unsubscribe(n)},[]),e.current}},74627:function(t,e,i){i.d(e,{Z:function(){return M}});var n=i(94184),r=i.n(n),o=i(67294);let a=t=>t?"function"==typeof t?t():t:null;var c=i(33603),l=i(53124),s=i(83062),d=i(92419),h=i(14747),g=i(50438),m=i(77786),p=i(8796),u=i(67968),$=i(45503);let f=t=>{let{componentCls:e,popoverColor:i,minWidth:n,fontWeightStrong:r,popoverPadding:o,boxShadowSecondary:a,colorTextHeading:c,borderRadiusLG:l,zIndexPopup:s,marginXS:d,colorBgElevated:g,popoverBg:p}=t;return[{[e]:Object.assign(Object.assign({},(0,h.Wf)(t)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":g,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${e}-title`]:{minWidth:n,marginBottom:d,color:c,fontWeight:r},[`${e}-inner-content`]:{color:i}})},(0,m.ZP)(t,{colorBg:"var(--antd-arrow-background-color)"}),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},b=t=>{let{componentCls:e}=t;return{[e]:p.i.map(i=>{let n=t[`${i}6`];return{[`&${e}-${i}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}})}},v=t=>{let{componentCls:e,lineWidth:i,lineType:n,colorSplit:r,paddingSM:o,controlHeight:a,fontSize:c,lineHeight:l,padding:s}=t,d=a-Math.round(c*l);return{[e]:{[`${e}-inner`]:{padding:0},[`${e}-title`]:{margin:0,padding:`${d/2}px ${s}px ${d/2-i}px`,borderBottom:`${i}px ${n} ${r}`},[`${e}-inner-content`]:{padding:`${o}px ${s}px`}}}};var S=(0,u.Z)("Popover",t=>{let{colorBgElevated:e,colorText:i,wireframe:n}=t,r=(0,$.TS)(t,{popoverPadding:12,popoverBg:e,popoverColor:i});return[f(r),b(r),n&&v(r),(0,g._y)(r,"zoom-big")]},t=>({width:177,minWidth:177,zIndexPopup:t.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),w=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);re.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let x=(t,e,i)=>{if(e||i)return o.createElement(o.Fragment,null,e&&o.createElement("div",{className:`${t}-title`},a(e)),o.createElement("div",{className:`${t}-inner-content`},a(i)))},I=t=>{let{hashId:e,prefixCls:i,className:n,style:a,placement:c="top",title:l,content:s,children:h}=t;return o.createElement("div",{className:r()(e,i,`${i}-pure`,`${i}-placement-${c}`,n),style:a},o.createElement("div",{className:`${i}-arrow`}),o.createElement(d.G,Object.assign({},t,{className:e,prefixCls:i}),h||x(i,l,s)))};var y=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);re.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let z=t=>{let{title:e,content:i,prefixCls:n}=t;return o.createElement(o.Fragment,null,e&&o.createElement("div",{className:`${n}-title`},a(e)),o.createElement("div",{className:`${n}-inner-content`},a(i)))},C=o.forwardRef((t,e)=>{let{prefixCls:i,title:n,content:a,overlayClassName:d,placement:h="top",trigger:g="hover",mouseEnterDelay:m=.1,mouseLeaveDelay:p=.1,overlayStyle:u={}}=t,$=y(t,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:f}=o.useContext(l.E_),b=f("popover",i),[v,w]=S(b),x=f(),I=r()(d,w);return v(o.createElement(s.Z,Object.assign({placement:h,trigger:g,mouseEnterDelay:m,mouseLeaveDelay:p,overlayStyle:u},$,{prefixCls:b,overlayClassName:I,ref:e,overlay:n||a?o.createElement(z,{prefixCls:b,title:n,content:a}):null,transitionName:(0,c.m)(x,"zoom-big",$.transitionName),"data-popover-inject":!0})))});C._InternalPanelDoNotUseOrYouWillBeFired=t=>{let{prefixCls:e}=t,i=w(t,["prefixCls"]),{getPrefixCls:n}=o.useContext(l.E_),r=n("popover",e),[a,c]=S(r);return a(o.createElement(I,Object.assign({},i,{prefixCls:r,hashId:c})))};var M=C},71230:function(t,e,i){var n=i(92820);e.Z=n.Z},3363:function(t,e,i){i.d(e,{Z:function(){return G}});var n,r,o=i(63606),a=i(97937),c=i(94184),l=i.n(c),s=i(87462),d=i(1413),h=i(4942),g=i(45987),m=i(67294),p=i(15105),u=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function $(t){return"string"==typeof t}var f=function(t){var e,i,n,r,o,a=t.className,c=t.prefixCls,f=t.style,b=t.active,v=t.status,S=t.iconPrefix,w=t.icon,x=(t.wrapperStyle,t.stepNumber),I=t.disabled,y=t.description,z=t.title,C=t.subTitle,M=t.progressDot,k=t.stepIcon,E=t.tailContent,Z=t.icons,H=t.stepIndex,O=t.onStepClick,P=t.onClick,j=t.render,N=(0,g.Z)(t,u),W={};O&&!I&&(W.role="button",W.tabIndex=0,W.onClick=function(t){null==P||P(t),O(H)},W.onKeyDown=function(t){var e=t.which;(e===p.Z.ENTER||e===p.Z.SPACE)&&O(H)});var T=v||"wait",X=l()("".concat(c,"-item"),"".concat(c,"-item-").concat(T),a,(o={},(0,h.Z)(o,"".concat(c,"-item-custom"),w),(0,h.Z)(o,"".concat(c,"-item-active"),b),(0,h.Z)(o,"".concat(c,"-item-disabled"),!0===I),o)),B=(0,d.Z)({},f),D=m.createElement("div",(0,s.Z)({},N,{className:X,style:B}),m.createElement("div",(0,s.Z)({onClick:P},W,{className:"".concat(c,"-item-container")}),m.createElement("div",{className:"".concat(c,"-item-tail")},E),m.createElement("div",{className:"".concat(c,"-item-icon")},(n=l()("".concat(c,"-icon"),"".concat(S,"icon"),(e={},(0,h.Z)(e,"".concat(S,"icon-").concat(w),w&&$(w)),(0,h.Z)(e,"".concat(S,"icon-check"),!w&&"finish"===v&&(Z&&!Z.finish||!Z)),(0,h.Z)(e,"".concat(S,"icon-cross"),!w&&"error"===v&&(Z&&!Z.error||!Z)),e)),r=m.createElement("span",{className:"".concat(c,"-icon-dot")}),i=M?"function"==typeof M?m.createElement("span",{className:"".concat(c,"-icon")},M(r,{index:x-1,status:v,title:z,description:y})):m.createElement("span",{className:"".concat(c,"-icon")},r):w&&!$(w)?m.createElement("span",{className:"".concat(c,"-icon")},w):Z&&Z.finish&&"finish"===v?m.createElement("span",{className:"".concat(c,"-icon")},Z.finish):Z&&Z.error&&"error"===v?m.createElement("span",{className:"".concat(c,"-icon")},Z.error):w||"finish"===v||"error"===v?m.createElement("span",{className:n}):m.createElement("span",{className:"".concat(c,"-icon")},x),k&&(i=k({index:x-1,status:v,title:z,description:y,node:i})),i)),m.createElement("div",{className:"".concat(c,"-item-content")},m.createElement("div",{className:"".concat(c,"-item-title")},z,C&&m.createElement("div",{title:"string"==typeof C?C:void 0,className:"".concat(c,"-item-subtitle")},C)),y&&m.createElement("div",{className:"".concat(c,"-item-description")},y))));return j&&(D=j(D)||null),D},b=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function v(t){var e,i=t.prefixCls,n=void 0===i?"rc-steps":i,r=t.style,o=void 0===r?{}:r,a=t.className,c=(t.children,t.direction),p=t.type,u=void 0===p?"default":p,$=t.labelPlacement,v=t.iconPrefix,S=void 0===v?"rc":v,w=t.status,x=void 0===w?"process":w,I=t.size,y=t.current,z=void 0===y?0:y,C=t.progressDot,M=t.stepIcon,k=t.initial,E=void 0===k?0:k,Z=t.icons,H=t.onChange,O=t.itemRender,P=t.items,j=(0,g.Z)(t,b),N="inline"===u,W=N||void 0!==C&&C,T=N?"horizontal":void 0===c?"horizontal":c,X=N?void 0:I,B=W?"vertical":void 0===$?"horizontal":$,D=l()(n,"".concat(n,"-").concat(T),a,(e={},(0,h.Z)(e,"".concat(n,"-").concat(X),X),(0,h.Z)(e,"".concat(n,"-label-").concat(B),"horizontal"===T),(0,h.Z)(e,"".concat(n,"-dot"),!!W),(0,h.Z)(e,"".concat(n,"-navigation"),"navigation"===u),(0,h.Z)(e,"".concat(n,"-inline"),N),e)),R=function(t){H&&z!==t&&H(t)};return m.createElement("div",(0,s.Z)({className:D,style:o},j),(void 0===P?[]:P).filter(function(t){return t}).map(function(t,e){var i=(0,d.Z)({},t),r=E+e;return"error"===x&&e===z-1&&(i.className="".concat(n,"-next-error")),i.status||(r===z?i.status=x:r{let{componentCls:e,customIconTop:i,customIconSize:n,customIconFontSize:r}=t;return{[`${e}-item-custom`]:{[`> ${e}-item-container > ${e}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${e}-icon`]:{top:i,width:n,height:n,fontSize:r,lineHeight:`${r}px`}}},[`&:not(${e}-vertical)`]:{[`${e}-item-custom`]:{[`${e}-item-icon`]:{width:"auto",background:"none"}}}}},E=t=>{let{componentCls:e,inlineDotSize:i,inlineTitleColor:n,inlineTailColor:r}=t,o=t.paddingXS+t.lineWidth,a={[`${e}-item-container ${e}-item-content ${e}-item-title`]:{color:n}};return{[`&${e}-inline`]:{width:"auto",display:"inline-flex",[`${e}-item`]:{flex:"none","&-container":{padding:`${o}px ${t.paddingXXS}px 0`,margin:`0 ${t.marginXXS/2}px`,borderRadius:t.borderRadiusSM,cursor:"pointer",transition:`background-color ${t.motionDurationMid}`,"&:hover":{background:t.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:i,height:i,marginInlineStart:`calc(50% - ${i/2}px)`,[`> ${e}-icon`]:{top:0},[`${e}-icon-dot`]:{borderRadius:t.fontSizeSM/4}},"&-content":{width:"auto",marginTop:t.marginXS-t.lineWidth},"&-title":{color:n,fontSize:t.fontSizeSM,lineHeight:t.lineHeightSM,fontWeight:"normal",marginBottom:t.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:o+i/2,transform:"translateY(-50%)","&:after":{width:"100%",height:t.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${e}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${e}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:t.colorBorderBg,border:`${t.lineWidth}px ${t.lineType} ${r}`}},a),"&-finish":Object.assign({[`${e}-item-tail::after`]:{backgroundColor:r},[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:r,border:`${t.lineWidth}px ${t.lineType} ${r}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${e}-item-icon`]:{width:i,height:i,marginInlineStart:`calc(50% - ${i/2}px)`,top:0}},a),[`&:not(${e}-item-active) > ${e}-item-container[role='button']:hover`]:{[`${e}-item-title`]:{color:n}}}}}},Z=t=>{let{componentCls:e,iconSize:i,lineHeight:n,iconSizeSM:r}=t;return{[`&${e}-label-vertical`]:{[`${e}-item`]:{overflow:"visible","&-tail":{marginInlineStart:i/2+t.controlHeightLG,padding:`${t.paddingXXS}px ${t.paddingLG}px`},"&-content":{display:"block",width:(i/2+t.controlHeightLG)*2,marginTop:t.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:t.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:t.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${e}-small:not(${e}-dot)`]:{[`${e}-item`]:{"&-icon":{marginInlineStart:t.controlHeightLG+(i-r)/2}}}}}},H=t=>{let{componentCls:e,navContentMaxWidth:i,navArrowColor:n,stepsNavActiveColor:r,motionDurationSlow:o}=t;return{[`&${e}-navigation`]:{paddingTop:t.paddingSM,[`&${e}-small`]:{[`${e}-item`]:{"&-container":{marginInlineStart:-t.marginSM}}},[`${e}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-t.margin,paddingBottom:t.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${e}-item-content`]:{maxWidth:i},[`${e}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},z.vS),{"&::after":{display:"none"}})},[`&:not(${e}-item-active)`]:{[`${e}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${t.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,borderTop:`${t.lineWidth}px ${t.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${t.lineWidth}px ${t.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:t.lineWidthBold,backgroundColor:r,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${e}-item${e}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${e}-navigation${e}-vertical`]:{[`> ${e}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${e}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:3*t.lineWidth,height:`calc(100% - ${t.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:.25*t.controlHeight,height:.25*t.controlHeight,marginBottom:t.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}},[`&${e}-navigation${e}-horizontal`]:{[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}}},O=t=>{let{antCls:e,componentCls:i}=t;return{[`&${i}-with-progress`]:{[`${i}-item`]:{paddingTop:t.paddingXXS,[`&-process ${i}-item-container ${i}-item-icon ${i}-icon`]:{color:t.processIconColor}},[`&${i}-vertical > ${i}-item `]:{paddingInlineStart:t.paddingXXS,[`> ${i}-item-container > ${i}-item-tail`]:{top:t.marginXXS,insetInlineStart:t.iconSize/2-t.lineWidth+t.paddingXXS}},[`&, &${i}-small`]:{[`&${i}-horizontal ${i}-item:first-child`]:{paddingBottom:t.paddingXXS,paddingInlineStart:t.paddingXXS}},[`&${i}-small${i}-vertical > ${i}-item > ${i}-item-container > ${i}-item-tail`]:{insetInlineStart:t.iconSizeSM/2-t.lineWidth+t.paddingXXS},[`&${i}-label-vertical`]:{[`${i}-item ${i}-item-tail`]:{top:t.margin-2*t.lineWidth}},[`${i}-item-icon`]:{position:"relative",[`${e}-progress`]:{position:"absolute",insetBlockStart:(t.iconSize-t.stepsProgressSize-2*t.lineWidth)/2,insetInlineStart:(t.iconSize-t.stepsProgressSize-2*t.lineWidth)/2}}}}},P=t=>{let{componentCls:e,descriptionMaxWidth:i,lineHeight:n,dotCurrentSize:r,dotSize:o,motionDurationSlow:a}=t;return{[`&${e}-dot, &${e}-dot${e}-small`]:{[`${e}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:Math.floor((t.dotSize-3*t.lineWidth)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${i/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${2*t.marginSM}px)`,height:3*t.lineWidth,marginInlineStart:t.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:(t.descriptionMaxWidth-o)/2,paddingInlineEnd:0,lineHeight:`${o}px`,background:"transparent",border:0,[`${e}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:-t.marginSM,insetInlineStart:(o-1.5*t.controlHeightLG)/2,width:1.5*t.controlHeightLG,height:t.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:i},[`&-process ${e}-item-icon`]:{position:"relative",top:(o-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(t.descriptionMaxWidth-r)/2},[`&-process ${e}-icon`]:{[`&:first-child ${e}-icon-dot`]:{insetInlineStart:0}}}},[`&${e}-vertical${e}-dot`]:{[`${e}-item-icon`]:{marginTop:(t.controlHeight-o)/2,marginInlineStart:0,background:"none"},[`${e}-item-process ${e}-item-icon`]:{marginTop:(t.controlHeight-r)/2,top:0,insetInlineStart:(o-r)/2,marginInlineStart:0},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:(t.controlHeight-o)/2,insetInlineStart:0,margin:0,padding:`${o+t.paddingXS}px 0 ${t.paddingXS}px`,"&::after":{marginInlineStart:(o-t.lineWidth)/2}},[`&${e}-small`]:{[`${e}-item-icon`]:{marginTop:(t.controlHeightSM-o)/2},[`${e}-item-process ${e}-item-icon`]:{marginTop:(t.controlHeightSM-r)/2},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:(t.controlHeightSM-o)/2}},[`${e}-item:first-child ${e}-icon-dot`]:{insetInlineStart:0},[`${e}-item-content`]:{width:"inherit"}}}},j=t=>{let{componentCls:e}=t;return{[`&${e}-rtl`]:{direction:"rtl",[`${e}-item`]:{"&-subtitle":{float:"left"}},[`&${e}-navigation`]:{[`${e}-item::after`]:{transform:"rotate(-45deg)"}},[`&${e}-vertical`]:{[`> ${e}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${e}-item-icon`]:{float:"right"}}},[`&${e}-dot`]:{[`${e}-item-icon ${e}-icon-dot, &${e}-small ${e}-item-icon ${e}-icon-dot`]:{float:"right"}}}}},N=t=>{let{componentCls:e,iconSizeSM:i,fontSizeSM:n,fontSize:r,colorTextDescription:o}=t;return{[`&${e}-small`]:{[`&${e}-horizontal:not(${e}-label-vertical) ${e}-item`]:{paddingInlineStart:t.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${e}-item-icon`]:{width:i,height:i,marginTop:0,marginBottom:0,marginInline:`0 ${t.marginXS}px`,fontSize:n,lineHeight:`${i}px`,textAlign:"center",borderRadius:i},[`${e}-item-title`]:{paddingInlineEnd:t.paddingSM,fontSize:r,lineHeight:`${i}px`,"&::after":{top:i/2}},[`${e}-item-description`]:{color:o,fontSize:r},[`${e}-item-tail`]:{top:i/2-t.paddingXXS},[`${e}-item-custom ${e}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${e}-icon`]:{fontSize:i,lineHeight:`${i}px`,transform:"none"}}}}},W=t=>{let{componentCls:e,iconSizeSM:i,iconSize:n}=t;return{[`&${e}-vertical`]:{display:"flex",flexDirection:"column",[`> ${e}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${e}-item-icon`]:{float:"left",marginInlineEnd:t.margin},[`${e}-item-content`]:{display:"block",minHeight:1.5*t.controlHeight,overflow:"hidden"},[`${e}-item-title`]:{lineHeight:`${n}px`},[`${e}-item-description`]:{paddingBottom:t.paddingSM}},[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:n/2-t.lineWidth,width:t.lineWidth,height:"100%",padding:`${n+1.5*t.marginXXS}px 0 ${1.5*t.marginXXS}px`,"&::after":{width:t.lineWidth,height:"100%"}},[`> ${e}-item:not(:last-child) > ${e}-item-container > ${e}-item-tail`]:{display:"block"},[` > ${e}-item > ${e}-item-container > ${e}-item-content > ${e}-item-title`]:{"&::after":{display:"none"}},[`&${e}-small ${e}-item-container`]:{[`${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i/2-t.lineWidth,padding:`${i+1.5*t.marginXXS}px 0 ${1.5*t.marginXXS}px`},[`${e}-item-title`]:{lineHeight:`${i}px`}}}}};(n=r||(r={})).wait="wait",n.process="process",n.finish="finish",n.error="error";let T=(t,e)=>{let i=`${e.componentCls}-item`,n=`${t}IconColor`,r=`${t}TitleColor`,o=`${t}DescriptionColor`,a=`${t}TailColor`,c=`${t}IconBgColor`,l=`${t}IconBorderColor`,s=`${t}DotColor`;return{[`${i}-${t} ${i}-icon`]:{backgroundColor:e[c],borderColor:e[l],[`> ${e.componentCls}-icon`]:{color:e[n],[`${e.componentCls}-icon-dot`]:{background:e[s]}}},[`${i}-${t}${i}-custom ${i}-icon`]:{[`> ${e.componentCls}-icon`]:{color:e[s]}},[`${i}-${t} > ${i}-container > ${i}-content > ${i}-title`]:{color:e[r],"&::after":{backgroundColor:e[a]}},[`${i}-${t} > ${i}-container > ${i}-content > ${i}-description`]:{color:e[o]},[`${i}-${t} > ${i}-container > ${i}-tail::after`]:{backgroundColor:e[a]}}},X=t=>{let{componentCls:e,motionDurationSlow:i}=t,n=`${e}-item`,o=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},(0,z.oN)(t))}},[`${o}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:t.iconSize,height:t.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:t.marginXS,fontSize:t.iconFontSize,fontFamily:t.fontFamily,lineHeight:`${t.iconSize}px`,textAlign:"center",borderRadius:t.iconSize,border:`${t.lineWidth}px ${t.lineType} transparent`,transition:`background-color ${i}, border-color ${i}`,[`${e}-icon`]:{position:"relative",top:t.iconTop,color:t.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:t.iconSize/2-t.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:t.lineWidth,background:t.colorSplit,borderRadius:t.lineWidth,transition:`background ${i}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:t.padding,color:t.colorText,fontSize:t.fontSizeLG,lineHeight:`${t.titleLineHeight}px`,"&::after":{position:"absolute",top:t.titleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:t.lineWidth,background:t.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:t.marginXS,color:t.colorTextDescription,fontWeight:"normal",fontSize:t.fontSize},[`${n}-description`]:{color:t.colorTextDescription,fontSize:t.fontSize}},T(r.wait,t)),T(r.process,t)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:t.fontWeightStrong}}),T(r.finish,t)),T(r.error,t)),{[`${n}${e}-next-error > ${e}-item-title::after`]:{background:t.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},B=t=>{let{componentCls:e,motionDurationSlow:i}=t;return{[`& ${e}-item`]:{[`&:not(${e}-item-active)`]:{[`& > ${e}-item-container[role='button']`]:{cursor:"pointer",[`${e}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${e}-icon`]:{transition:`color ${i}`}},"&:hover":{[`${e}-item`]:{"&-title, &-subtitle, &-description":{color:t.colorPrimary}}}},[`&:not(${e}-item-process)`]:{[`& > ${e}-item-container[role='button']:hover`]:{[`${e}-item`]:{"&-icon":{borderColor:t.colorPrimary,[`${e}-icon`]:{color:t.colorPrimary}}}}}}},[`&${e}-horizontal:not(${e}-label-vertical)`]:{[`${e}-item`]:{paddingInlineStart:t.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${e}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:t.descriptionMaxWidth,whiteSpace:"normal"}}}}},D=t=>{let{componentCls:e}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(t)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),X(t)),B(t)),k(t)),N(t)),W(t)),Z(t)),P(t)),H(t)),j(t)),O(t)),E(t))}};var R=(0,C.Z)("Steps",t=>{let{wireframe:e,colorTextDisabled:i,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:a,colorTextLabel:c,colorTextDescription:l,colorTextQuaternary:s,colorFillContent:d,controlItemBgActive:h,colorError:g,colorBgContainer:m,colorBorderSecondary:p,colorSplit:u}=t,$=(0,M.TS)(t,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:u,waitIconColor:e?i:c,waitTitleColor:l,waitDescriptionColor:l,waitTailColor:u,waitIconBgColor:e?m:d,waitIconBorderColor:e?i:"transparent",waitDotColor:i,finishIconColor:a,finishTitleColor:o,finishDescriptionColor:l,finishTailColor:a,finishIconBgColor:e?m:h,finishIconBorderColor:e?a:h,finishDotColor:a,errorIconColor:r,errorTitleColor:g,errorDescriptionColor:g,errorTailColor:u,errorIconBgColor:g,errorIconBorderColor:g,errorDotColor:g,stepsNavActiveColor:a,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:p});return[D($)]},t=>{let{colorTextDisabled:e,fontSize:i,controlHeightSM:n,controlHeight:r,controlHeightLG:o,fontSizeHeading3:a}=t;return{titleLineHeight:r,customIconSize:r,customIconTop:0,customIconFontSize:n,iconSize:r,iconTop:-.5,iconFontSize:i,iconSizeSM:a,dotSize:r/4,dotCurrentSize:o/4,navArrowColor:e,navContentMaxWidth:"auto",descriptionMaxWidth:140}}),L=i(50344),V=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);re.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let A=t=>{let{percent:e,size:i,className:n,rootClassName:r,direction:c,items:s,responsive:d=!0,current:h=0,children:g,style:p}=t,u=V(t,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:$}=(0,x.Z)(d),{getPrefixCls:f,direction:b,steps:z}=m.useContext(S.E_),C=m.useMemo(()=>d&&$?"vertical":c,[$,c]),M=(0,w.Z)(i),k=f("steps",t.prefixCls),[E,Z]=R(k),H="inline"===t.type,O=f("",t.iconPrefix),P=function(t,e){if(t)return t;let i=(0,L.Z)(e).map(t=>{if(m.isValidElement(t)){let{props:e}=t,i=Object.assign({},e);return i}return null});return i.filter(t=>t)}(s,g),j=H?void 0:e,N=Object.assign(Object.assign({},null==z?void 0:z.style),p),W=l()(null==z?void 0:z.className,{[`${k}-rtl`]:"rtl"===b,[`${k}-with-progress`]:void 0!==j},n,r,Z),T={finish:m.createElement(o.Z,{className:`${k}-finish-icon`}),error:m.createElement(a.Z,{className:`${k}-error-icon`})};return E(m.createElement(v,Object.assign({icons:T},u,{style:N,current:h,size:M,items:P,itemRender:H?(t,e)=>t.description?m.createElement(y.Z,{title:t.description},e):e:void 0,stepIcon:t=>{let{node:e,status:i}=t;return"process"===i&&void 0!==j?m.createElement("div",{className:`${k}-progress-icon`},m.createElement(I.Z,{type:"circle",percent:j,size:"small"===M?32:40,strokeWidth:4,format:()=>null}),e):e},direction:C,prefixCls:k,iconPrefix:O,className:W})))};A.Step=v.Step;var G=A},72269:function(t,e,i){i.d(e,{Z:function(){return H}});var n=i(50888),r=i(94184),o=i.n(r),a=i(87462),c=i(4942),l=i(97685),s=i(45987),d=i(67294),h=i(21770),g=i(15105),m=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],p=d.forwardRef(function(t,e){var i,n=t.prefixCls,r=void 0===n?"rc-switch":n,p=t.className,u=t.checked,$=t.defaultChecked,f=t.disabled,b=t.loadingIcon,v=t.checkedChildren,S=t.unCheckedChildren,w=t.onClick,x=t.onChange,I=t.onKeyDown,y=(0,s.Z)(t,m),z=(0,h.Z)(!1,{value:u,defaultValue:$}),C=(0,l.Z)(z,2),M=C[0],k=C[1];function E(t,e){var i=M;return f||(k(i=t),null==x||x(i,e)),i}var Z=o()(r,p,(i={},(0,c.Z)(i,"".concat(r,"-checked"),M),(0,c.Z)(i,"".concat(r,"-disabled"),f),i));return d.createElement("button",(0,a.Z)({},y,{type:"button",role:"switch","aria-checked":M,disabled:f,className:Z,ref:e,onKeyDown:function(t){t.which===g.Z.LEFT?E(!1,t):t.which===g.Z.RIGHT&&E(!0,t),null==I||I(t)},onClick:function(t){var e=E(!M,t);null==w||w(e,t)}}),b,d.createElement("span",{className:"".concat(r,"-inner")},d.createElement("span",{className:"".concat(r,"-inner-checked")},v),d.createElement("span",{className:"".concat(r,"-inner-unchecked")},S)))});p.displayName="Switch";var u=i(45353),$=i(53124),f=i(98866),b=i(98675),v=i(10274),S=i(14747),w=i(67968),x=i(45503);let I=t=>{let{componentCls:e}=t,i=`${e}-inner`;return{[e]:{[`&${e}-small`]:{minWidth:t.switchMinWidthSM,height:t.switchHeightSM,lineHeight:`${t.switchHeightSM}px`,[`${e}-inner`]:{paddingInlineStart:t.switchInnerMarginMaxSM,paddingInlineEnd:t.switchInnerMarginMinSM,[`${i}-checked`]:{marginInlineStart:`calc(-100% + ${t.switchPinSizeSM+2*t.switchPadding}px - ${2*t.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(100% - ${t.switchPinSizeSM+2*t.switchPadding}px + ${2*t.switchInnerMarginMaxSM}px)`},[`${i}-unchecked`]:{marginTop:-t.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${e}-handle`]:{width:t.switchPinSizeSM,height:t.switchPinSizeSM},[`${e}-loading-icon`]:{top:(t.switchPinSizeSM-t.switchLoadingIconSize)/2,fontSize:t.switchLoadingIconSize},[`&${e}-checked`]:{[`${e}-inner`]:{paddingInlineStart:t.switchInnerMarginMinSM,paddingInlineEnd:t.switchInnerMarginMaxSM,[`${i}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${i}-unchecked`]:{marginInlineStart:`calc(100% - ${t.switchPinSizeSM+2*t.switchPadding}px + ${2*t.switchInnerMarginMaxSM}px)`,marginInlineEnd:`calc(-100% + ${t.switchPinSizeSM+2*t.switchPadding}px - ${2*t.switchInnerMarginMaxSM}px)`}},[`${e}-handle`]:{insetInlineStart:`calc(100% - ${t.switchPinSizeSM+t.switchPadding}px)`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${i}`]:{[`${i}-unchecked`]:{marginInlineStart:t.marginXXS/2,marginInlineEnd:-t.marginXXS/2}},[`&${e}-checked ${i}`]:{[`${i}-checked`]:{marginInlineStart:-t.marginXXS/2,marginInlineEnd:t.marginXXS/2}}}}}}},y=t=>{let{componentCls:e}=t;return{[e]:{[`${e}-loading-icon${t.iconCls}`]:{position:"relative",top:(t.switchPinSize-t.fontSize)/2,color:t.switchLoadingIconColor,verticalAlign:"top"},[`&${e}-checked ${e}-loading-icon`]:{color:t.switchColor}}}},z=t=>{let{componentCls:e,motion:i}=t,n=`${e}-handle`;return{[e]:{[n]:{position:"absolute",top:t.switchPadding,insetInlineStart:t.switchPadding,width:t.switchPinSize,height:t.switchPinSize,transition:`all ${t.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:t.colorWhite,borderRadius:t.switchPinSize/2,boxShadow:t.switchHandleShadow,transition:`all ${t.switchDuration} ease-in-out`,content:'""'}},[`&${e}-checked ${n}`]:{insetInlineStart:`calc(100% - ${t.switchPinSize+t.switchPadding}px)`},[`&:not(${e}-disabled):active`]:i?{[`${n}::before`]:{insetInlineEnd:t.switchHandleActiveInset,insetInlineStart:0},[`&${e}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:t.switchHandleActiveInset}}:{}}}},C=t=>{let{componentCls:e}=t,i=`${e}-inner`;return{[e]:{[i]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:t.switchInnerMarginMax,paddingInlineEnd:t.switchInnerMarginMin,transition:`padding-inline-start ${t.switchDuration} ease-in-out, padding-inline-end ${t.switchDuration} ease-in-out`,[`${i}-checked, ${i}-unchecked`]:{display:"block",color:t.colorTextLightSolid,fontSize:t.fontSizeSM,transition:`margin-inline-start ${t.switchDuration} ease-in-out, margin-inline-end ${t.switchDuration} ease-in-out`,pointerEvents:"none"},[`${i}-checked`]:{marginInlineStart:`calc(-100% + ${t.switchPinSize+2*t.switchPadding}px - ${2*t.switchInnerMarginMax}px)`,marginInlineEnd:`calc(100% - ${t.switchPinSize+2*t.switchPadding}px + ${2*t.switchInnerMarginMax}px)`},[`${i}-unchecked`]:{marginTop:-t.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${e}-checked ${i}`]:{paddingInlineStart:t.switchInnerMarginMin,paddingInlineEnd:t.switchInnerMarginMax,[`${i}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${i}-unchecked`]:{marginInlineStart:`calc(100% - ${t.switchPinSize+2*t.switchPadding}px + ${2*t.switchInnerMarginMax}px)`,marginInlineEnd:`calc(-100% + ${t.switchPinSize+2*t.switchPadding}px - ${2*t.switchInnerMarginMax}px)`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${i}`]:{[`${i}-unchecked`]:{marginInlineStart:2*t.switchPadding,marginInlineEnd:-(2*t.switchPadding)}},[`&${e}-checked ${i}`]:{[`${i}-checked`]:{marginInlineStart:-(2*t.switchPadding),marginInlineEnd:2*t.switchPadding}}}}}},M=t=>{let{componentCls:e}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.Wf)(t)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:t.switchMinWidth,height:t.switchHeight,lineHeight:`${t.switchHeight}px`,verticalAlign:"middle",background:t.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${t.motionDurationMid}`,userSelect:"none",[`&:hover:not(${e}-disabled)`]:{background:t.colorTextTertiary}}),(0,S.Qy)(t)),{[`&${e}-checked`]:{background:t.switchColor,[`&:hover:not(${e}-disabled)`]:{background:t.colorPrimaryHover}},[`&${e}-loading, &${e}-disabled`]:{cursor:"not-allowed",opacity:t.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${e}-rtl`]:{direction:"rtl"}})}};var k=(0,w.Z)("Switch",t=>{let e=t.fontSize*t.lineHeight,i=t.controlHeight/2,n=e-4,r=i-4,o=(0,x.TS)(t,{switchMinWidth:2*n+8,switchHeight:e,switchDuration:t.motionDurationMid,switchColor:t.colorPrimary,switchDisabledOpacity:t.opacityLoading,switchInnerMarginMin:n/2,switchInnerMarginMax:n+2+4,switchPadding:2,switchPinSize:n,switchBg:t.colorBgContainer,switchMinWidthSM:2*r+4,switchHeightSM:i,switchInnerMarginMinSM:r/2,switchInnerMarginMaxSM:r+2+4,switchPinSizeSM:r,switchHandleShadow:`0 2px 4px 0 ${new v.C("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:.75*t.fontSizeIcon,switchLoadingIconColor:`rgba(0, 0, 0, ${t.opacityLoading})`,switchHandleActiveInset:"-30%"});return[M(o),C(o),z(o),y(o),I(o)]}),E=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);re.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i};let Z=d.forwardRef((t,e)=>{let{prefixCls:i,size:r,disabled:a,loading:c,className:l,rootClassName:s,style:h}=t,g=E(t,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:m,direction:v,switch:S}=d.useContext($.E_),w=d.useContext(f.Z),x=(null!=a?a:w)||c,I=m("switch",i),y=d.createElement("div",{className:`${I}-handle`},c&&d.createElement(n.Z,{className:`${I}-loading-icon`})),[z,C]=k(I),M=(0,b.Z)(r),Z=o()(null==S?void 0:S.className,{[`${I}-small`]:"small"===M,[`${I}-loading`]:c,[`${I}-rtl`]:"rtl"===v},l,s,C),H=Object.assign(Object.assign({},null==S?void 0:S.style),h);return z(d.createElement(u.Z,{component:"Switch"},d.createElement(p,Object.assign({},g,{prefixCls:I,className:Z,style:H,disabled:x,ref:e,loadingIcon:y}))))});Z.__ANT_SWITCH=!0;var H=Z}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/553-df5701294eedae07.js b/dbgpt/app/static/_next/static/chunks/553-a89ad624ca0f1ffa.js similarity index 100% rename from dbgpt/app/static/_next/static/chunks/553-df5701294eedae07.js rename to dbgpt/app/static/_next/static/chunks/553-a89ad624ca0f1ffa.js diff --git a/dbgpt/app/static/_next/static/chunks/607-2dedaf19149304c0.js b/dbgpt/app/static/_next/static/chunks/607-2dedaf19149304c0.js new file mode 100644 index 000000000..ec16e1460 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/607-2dedaf19149304c0.js @@ -0,0 +1,78 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{38780:function(e,t){t.Z=function(){let e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let r=n[t];void 0!==r&&(e[t]=r)})}return e}},66367:function(e,t,n){function r(e){return null!=e&&e===e.window}function l(e,t){var n,l;if("undefined"==typeof window)return 0;let o=t?"scrollTop":"scrollLeft",a=0;return r(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!r(e)&&"number"!=typeof a&&(a=null===(l=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===l?void 0:l[o]),a}n.d(t,{F:function(){return r},Z:function(){return l}})},58375:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(75164),l=n(66367);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{getContainer:n=()=>window,callback:o,duration:a=450}=t,i=n(),c=(0,l.Z)(i,!0),s=Date.now(),u=()=>{let t=Date.now(),n=t-s,d=function(e,t,n,r){let l=n-t;return(e/=r/2)<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}(n>a?a:n,c,e,a);(0,l.F)(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=d:i.scrollTop=d,nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let T=S("checkbox",r),[P,z]=(0,d.ZP)(T),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${T}-wrapper`,{[`${T}-rtl`]:"rtl"===k,[`${T}-wrapper-checked`]:M.checked,[`${T}-wrapper-disabled`]:I,[`${T}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,z),L=l()({[`${T}-indeterminate`]:b},p.A,z);return P(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:T,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,T={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},P=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:P,style:p},I,{ref:t}),a.createElement(u.Provider,{value:T},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,T=e.record,P=e.render,z=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,D=e.fixLeft,F=e.fixRight,W=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==z||""===z?[]:Array.isArray(z)?z:[z],n=(0,k.Z)(T,e),r=n,l=void 0;if(P){var o=P(n,T,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,T,x,z,P,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof D&&ee,ec="number"==typeof F&ⅇei&&(ea.position="sticky",ea.left=D),ec&&(ea.position="sticky",ea.right=F);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),W&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;T&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;T&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),T=n(45987),P=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,T.Z)(e,P);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},D=n(74204),F=n(64217),W=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,T=S.onTriggerExpand,P=S.rowClassName,z=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),D=_[0],F=_[1],W=m&&m.has(s);u.useEffect(function(){W&&F(!0)},[W]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(T);Y.current=T;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof P?t=P:"function"==typeof P&&(t=P(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,T.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,T.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),P=o[o.length-1],z={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,W.Z)(l),[z]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,W.Z)(o),[z]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,W.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,W.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,W.Z)(e),(0,W.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,W.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,T.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,D.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,D.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,P=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(P,e)||t},[P]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tz=u.useState(-1),tH=(tM=(0,a.Z)(tz,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tD=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tD(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tW=n.expandable,tK=(0,T.Z)(n,q),!1===(tF="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tW):tK).showExpandColumn&&(tF.expandIconColumnIndex=-1),tV=tF.expandIcon,tX=tF.expandedRowKeys,tU=tF.defaultExpandedRowKeys,tG=tF.defaultExpandAllRows,tY=tF.expandedRowRender,tJ=tF.onExpand,tq=tF.onExpandedRowsChange,tQ=tF.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t8=(t2=(0,a.Z)(t1,2))[0],t3=t2[1],t4=u.useMemo(function(){return new Set(tX||t8||[])},[tX,t8]),t5=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,W.Z)(t4)):t=[].concat((0,W.Z)(t4),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tF,t0,t4,tV||ep,tQ,t5]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),eT=(0,a.Z)(ej,2),eP=eT[0],ez=eT[1],eM=u.useMemo(function(){return{columns:eP,flattenColumns:ez}},[eP,ez]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eD=u.useState(!1),eF=(0,a.Z)(eD,2),eW=eF[0],eK=eF[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(ez).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t6=ez.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function ez(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eD=n(71577),eF=n(84567),eW=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,W.Z)(t),(0,W.Z)(e2(r))))}),t}function e8(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[T,P]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),z=e=>{let{selectedKeys:t}=e;P(t)};u.useEffect(()=>{Z&&z({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},D=()=>{R(!1),_(T())},F=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?P(($||[]).map(e=>String(e))):P([])},W=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:T(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(T())},clearFilters:F,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=T()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eF.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));P(e)}else P([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?z({selectedKeys:e}):z({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e8(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:W,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eF.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e8(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:T(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eD.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>F()},x.filterReset),u.createElement(eD.ZP,{type:"primary",size:"small",onClick:D},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eW.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&P(j||[]),R(e),e||i.filterDropdown||D()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:ez(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:ez(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,W.Z)(r),(0,W.Z)(e4(e.children,t,a))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e6(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e7=e=>e.flatMap(e=>"children"in e?[e].concat((0,W.Z)(e7(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e7(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>ez(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e5(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e5(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=ez(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,W.Z)(n),(0,W.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),T=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{T(R)},[R]);let{keyEntities:P}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,W.Z)(e),(0,W.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),z=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[z,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,P,H);return[e||[],t]},[R,v,P,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[D,F]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;T(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,W.Z)(e),a=new Set(A),i=z.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eW.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=z.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===z.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eF.Z,{checked:n?l:!!z.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),F(null)},disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eF.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([D,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,W.Z)(L),[o]),!0,P,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},P,H).checkedKeys}V(o,!c,l,t)}c?F(null):F(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,W.Z)(t))}else o=[tc].concat((0,W.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,z,t,L,A,_,p,X,k,D,M,f,V,H]);return[U,A]},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:ez(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,W.Z)(r),(0,W.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:ez(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{[` + > thead > tr > th, + > thead > tr > td, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},tT=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},tO.vS),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tP=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:e.colorBgContainer}}}}};let tz=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var tM=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:l,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:x,paddingXXS:b}=e,v=r/2-o,y=2*v+3*o,w=`${o}px ${i} ${c}`,C=b-o;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},tz(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:`${y}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/y})`,transition:`all ${l}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${l} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*m-3*o)/2-Math.ceil((1.4*p-3*o)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:x}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},tH=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:i,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:x,colorPrimary:b,tableHeaderFilterActiveBg:v,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:E,boxShadowSecondary:S}=e,k=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:x,background:v},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{minWidth:l,backgroundColor:w,borderRadius:h,boxShadow:S,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${i}px 0`,color:y,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:$},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${Z}-search`]:{padding:i,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:y}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-s}px ${i}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tL=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:i}=e;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:o,background:a},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${r}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${r}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}}}}},tB=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tA=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},t_=e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},tD=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4+2*a}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}}}}},tF=e=>{let{componentCls:t}=e,n=(n,r,l,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},tW=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:l,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},tK=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:i}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:i,display:"flex",alignItems:"center",background:a,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,l=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};let tX=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,lineWidth:o,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:x,tableFooterTextColor:b,tableFooterBg:v,paddingContentVerticalLG:y}=e,w=`${o}px ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,tO.dF)()),{[t]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${y}px ${l}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${l}px`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:w,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`},[` + &${t}-row:hover > th, + &${t}-row:hover > td, + > th${t}-cell-row-hover, + > td${t}-cell-row-hover + `]:{background:h},[`&${t}-row-selected`]:{"> th, > td":{background:g},"&:hover > th, &:hover > td":{background:x}}}},[`${t}-footer`]:{padding:`${r}px ${l}px`,color:b,background:v}})}};var tU=(0,tR.Z)("Table",e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:l,colorSplit:o,colorBorderSecondary:a,fontSize:i,padding:c,paddingXS:s,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:x,colorFillContent:b,colorFillSecondary:v,controlInteractiveSize:y}=e,w=new tN.C(p),C=new tN.C(m),$=new tN.C(v).onBackground(g).toHexShortString(),E=new tN.C(b).onBackground(g).toHexShortString(),S=new tN.C(f).onBackground(g).toHexShortString(),k=(0,tI.TS)(e,{tableFontSize:i,tableBg:g,tableRadius:x,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:s,tablePaddingVerticalSmall:s,tablePaddingHorizontalSmall:s,tableBorderColor:a,tableHeaderTextColor:l,tableHeaderBg:S,tableFooterTextColor:l,tableFooterBg:S,tableHeaderCellSplitColor:a,tableHeaderSortBg:$,tableHeaderSortHoverBg:E,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableBodySortBg:S,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:g,tableRowHoverBg:S,tableSelectedRowBg:t,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollBg:o});return[tX(k),tB(k),tV(k),tW(k),tH(k),tj(k),tA(k),tM(k),tV(k),tP(k),tD(k),tL(k),tK(k),tT(k),tF(k),t_(k)]});let tG=[];var tY=u.forwardRef((e,t)=>{let n,r,l;let{prefixCls:a,className:i,rootClassName:c,style:s,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:g,rowKey:x="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:$,loading:S,expandIcon:k,expandable:Z,expandedRowRender:N,expandIconColumnIndex:O,indentSize:R,scroll:I,sortDirections:j,locale:T,showSorterTooltip:P=!0}=e,z=u.useMemo(()=>v||eu(y),[v,y]),M=u.useMemo(()=>z.some(e=>e.responsive),[z]),H=(0,eR.Z)(M),L=u.useMemo(()=>{let e=new Set(Object.keys(H).filter(e=>H[e]));return z.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[z,H]),B=(0,eS.Z)(e,["className","style","columns"]),{locale:A=eI.Z,direction:_,table:D,renderEmpty:F,getPrefixCls:K,getPopupContainer:V}=u.useContext(eZ.E_),X=(0,eO.Z)(d),U=Object.assign(Object.assign({},A.Table),T),G=m||tG,Y=K("table",a),J=K("dropdown",p),q=Object.assign({childrenColumnName:w,expandIconColumnIndex:O},Z),{childrenColumnName:Q="children"}=q,ee=u.useMemo(()=>G.some(e=>null==e?void 0:e[Q])?"nest":N||Z&&Z.expandedRowRender?"row":null,[G]),et={body:u.useRef()},en=u.useMemo(()=>"function"==typeof x?x:e=>null==e?void 0:e[x],[x]),[er]=function(e,t,n){let r=u.useRef({});return[function(l){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=new Map;!function e(r){r.forEach((r,o)=>{let a=n(r,o);l.set(a,r),r&&"object"==typeof r&&t in r&&e(r[t]||[])})}(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(l)}]}(G,Q,en),el={},eo=function(e,t){var n,r,l;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object.assign(Object.assign({},el),e);o&&(null===(n=el.resetPagination)||void 0===n||n.call(el),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),h&&h.onChange&&h.onChange(1,null===(l=a.pagination)||void 0===l?void 0:l.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&et.body.current&&(0,ek.Z)(0,{getContainer:()=>et.body.current}),null==C||C(a.pagination,a.filters,a.sorter,{currentDataSource:e6(tZ(G,a.sorterStates,Q),a.filterStates),action:t})},[ea,ei,ec,es]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:l,tableLocale:o,showSorterTooltip:a}=e,[i,c]=u.useState(tE(n,!0)),s=u.useMemo(()=>{let e=!0,t=tE(n,!1);if(!t.length)return i;let r=[];function l(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach(t=>{null===o?(l(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),l(t))}),r},[n,i]),d=u.useMemo(()=>{let e=s.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[s]);function f(e){let t;c(t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat((0,W.Z)(s.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e]),r(tk(t),t)}return[e=>(function e(t,n,r,l,o,a,i,c){return(n||[]).map((n,s)=>{let d=eM(s,c),f=n;if(f.sorter){let e;let c=f.sortDirections||o,s=void 0===f.showSorterTooltip?i:f.showSorterTooltip,p=ez(f,d),m=r.find(e=>{let{key:t}=e;return t===p}),h=m?m.sortOrder:null,g=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)e=n.sortIcon({sortOrder:h});else{let n=c.includes(ty)&&u.createElement(tb,{className:E()(`${t}-column-sorter-up`,{active:h===ty})}),r=c.includes(tw)&&u.createElement(tg,{className:E()(`${t}-column-sorter-down`,{active:h===tw})});e=u.createElement("span",{className:E()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(n&&r)})},u.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:x,triggerAsc:b,triggerDesc:v}=a||{},y=x;g===tw?y=v:g===ty&&(y=b);let w="object"==typeof s?s:{title:y};f=Object.assign(Object.assign({},f),{className:E()(f.className,{[`${t}-column-sort`]:h}),title:r=>{let l=u.createElement("div",{className:`${t}-column-sorters`},u.createElement("span",{className:`${t}-column-title`},eH(n.title,r)),e);return s?u.createElement(tv.Z,Object.assign({},w),l):l},onHeaderCell:e=>{let r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick,a=r.onKeyDown;r.onClick=e=>{l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==o||o(e)},r.onKeyDown=e=>{e.keyCode===eQ.Z.ENTER&&(l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==a||a(e))};let i=function(e,t){let n=eH(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null==i?void 0:i.toString();return h?r["aria-sort"]="ascend"===h?"ascending":"descending":r["aria-label"]=c||"",r.className=E()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,n.ellipsis&&(r.title=(null!=i?i:"").toString()),r}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:e(t,f.children,r,l,o,a,i,d)})),f})})(t,e,s,f,l,o,a),s,d,()=>tk(s)]}({prefixCls:Y,mergedColumns:L,onSorterChange:(e,t)=>{eo({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:U,showSorterTooltip:P}),ed=u.useMemo(()=>tZ(G,ei,Q),[G,ei]);el.sorter=es(),el.sorterStates=ei;let[ef,ep,em]=e9({prefixCls:Y,locale:U,dropdownPrefixCls:J,mergedColumns:L,onFilterChange:(e,t)=>{eo({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V}),eh=e6(ed,ep);el.filters=em,el.filterStates=ep;let eg=u.useMemo(()=>{let e={};return Object.keys(em).forEach(t=>{null!==em[t]&&(e[t]=em[t])}),Object.assign(Object.assign({},ec),{filters:e})},[ec,em]),[ex]=function(e){let t=u.useCallback(t=>(function e(t,n){return t.map(t=>{let r=Object.assign({},t);return r.title=eH(t.title,n),"children"in r&&(r.children=e(r.children,n)),r})})(t,e),[e]);return[t]}(eg),[eb,ev]=tn(eh.length,(e,t)=>{eo({pagination:Object.assign(Object.assign({},el.pagination),{current:e,pageSize:t})},"paginate")},h);el.pagination=!1===h?{}:function(e,t){let n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{let r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(eb,h),el.resetPagination=ev;let ey=u.useMemo(()=>{if(!1===h||!eb.pageSize)return eh;let{current:e=1,total:t,pageSize:n=10}=eb;return eh.lengthn?eh.slice((e-1)*n,e*n):eh:eh.slice((e-1)*n,e*n)},[!!h,eh,eb&&eb.current,eb&&eb.pageSize,eb&&eb.total]),[ew,eC]=tm({prefixCls:Y,data:eh,pageData:ey,getRowKey:en,getRecordByKey:er,expandType:ee,childrenColumnName:Q,locale:U,getPopupContainer:$||V},g);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||k||function(e){let{prefixCls:t,onExpand:n,record:r,expanded:l,expandable:o}=e,a=`${t}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(a,{[`${a}-spaced`]:!o,[`${a}-expanded`]:o&&l,[`${a}-collapsed`]:o&&!l}),"aria-label":l?U.collapse:U.expand,"aria-expanded":l})},"nest"===ee&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=g?1:0:q.expandIconColumnIndex>0&&g&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof R?R:15);let e$=u.useCallback(e=>ex(ew(ef(ea(e)))),[ea,ef,ew]);if(!1!==h&&(null==eb?void 0:eb.total)){let e;e=eb.size?eb.size:"small"===X||"middle"===X?"small":void 0;let t=t=>u.createElement(ej.Z,Object.assign({},eb,{className:E()(`${Y}-pagination ${Y}-pagination-${t}`,eb.className),size:e})),l="rtl"===_?"left":"right",{position:o}=eb;if(null!==o&&Array.isArray(o)){let e=o.find(e=>e.includes("top")),a=o.find(e=>e.includes("bottom")),i=o.every(e=>"none"==`${e}`);e||a||i||(r=t(l)),e&&(n=t(e.toLowerCase().replace("top",""))),a&&(r=t(a.toLowerCase().replace("bottom","")))}else r=t(l)}"boolean"==typeof S?l={spinning:S}:"object"==typeof S&&(l=Object.assign({spinning:!0},S));let[eE,eL]=tU(Y),eB=E()(`${Y}-wrapper`,null==D?void 0:D.className,{[`${Y}-wrapper-rtl`]:"rtl"===_},i,c,eL),eA=Object.assign(Object.assign({},null==D?void 0:D.style),s),e_=T&&T.emptyText||(null==F?void 0:F("Table"))||u.createElement(eN.Z,{componentName:"Table"});return eE(u.createElement("div",{ref:t,className:eB,style:eA},u.createElement(eT.Z,Object.assign({spinning:!1},l),n,u.createElement(eP,Object.assign({},B,{columns:L,direction:_,expandable:q,prefixCls:Y,className:E()({[`${Y}-middle`]:"middle"===X,[`${Y}-small`]:"small"===X,[`${Y}-bordered`]:f,[`${Y}-empty`]:0===G.length}),data:ey,rowKey:en,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${Y}-row-selected`]:eC.has(en(e,t))},r)},emptyText:e_,internalHooks:o,internalRefs:et,transformColumns:e$})),r)))});let tJ=u.forwardRef((e,t)=>{let n=u.useRef(0);return n.current+=1,u.createElement(tY,Object.assign({},e,{ref:t,_renderTimes:n.current}))});tJ.SELECTION_COLUMN=tc,tJ.EXPAND_COLUMN=l,tJ.SELECTION_ALL=ts,tJ.SELECTION_INVERT=tu,tJ.SELECTION_NONE=td,tJ.Column=function(e){return null},tJ.ColumnGroup=function(e){return null},tJ.Summary=z;var tq=tJ},64019:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(73935);function l(e,t,n,l){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,l),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,l)}}}},27678:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function l(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return l}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/607-b224c640f6907e4b.js b/dbgpt/app/static/_next/static/chunks/607-b224c640f6907e4b.js deleted file mode 100644 index 4a5c42434..000000000 --- a/dbgpt/app/static/_next/static/chunks/607-b224c640f6907e4b.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[607],{84567:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(94184),l=n.n(r),o=n(50132),a=n(67294),i=n(53124),c=n(98866),s=n(65223);let u=a.createContext(null);var d=n(63185),f=n(45353),p=n(17415),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let h=a.forwardRef((e,t)=>{var n;let{prefixCls:r,className:h,rootClassName:g,children:x,indeterminate:b=!1,style:v,onMouseEnter:y,onMouseLeave:w,skipGroup:C=!1,disabled:$}=e,E=m(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:S,direction:k,checkbox:Z}=a.useContext(i.E_),N=a.useContext(u),{isFormItemInput:O}=a.useContext(s.aM),R=a.useContext(c.Z),I=null!==(n=(null==N?void 0:N.disabled)||$)&&void 0!==n?n:R,j=a.useRef(E.value);a.useEffect(()=>{null==N||N.registerValue(E.value)},[]),a.useEffect(()=>{if(!C)return E.value!==j.current&&(null==N||N.cancelValue(j.current),null==N||N.registerValue(E.value),j.current=E.value),()=>null==N?void 0:N.cancelValue(E.value)},[E.value]);let P=S("checkbox",r),[T,z]=(0,d.ZP)(P),M=Object.assign({},E);N&&!C&&(M.onChange=function(){E.onChange&&E.onChange.apply(E,arguments),N.toggleOption&&N.toggleOption({label:x,value:E.value})},M.name=N.name,M.checked=N.value.includes(E.value));let H=l()(`${P}-wrapper`,{[`${P}-rtl`]:"rtl"===k,[`${P}-wrapper-checked`]:M.checked,[`${P}-wrapper-disabled`]:I,[`${P}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,g,z),L=l()({[`${P}-indeterminate`]:b},p.A,z);return T(a.createElement(f.Z,{component:"Checkbox",disabled:I},a.createElement("label",{className:H,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),v),onMouseEnter:y,onMouseLeave:w},a.createElement(o.Z,Object.assign({"aria-checked":b?"mixed":void 0},M,{prefixCls:P,className:L,disabled:I,ref:t})),void 0!==x&&a.createElement("span",null,x))))});var g=n(74902),x=n(98423),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n};let v=a.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:p,onChange:m}=e,v=b(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:w}=a.useContext(i.E_),[C,$]=a.useState(v.value||n||[]),[E,S]=a.useState([]);a.useEffect(()=>{"value"in v&&$(v.value||[])},[v.value]);let k=a.useMemo(()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[o]),Z=y("checkbox",c),N=`${Z}-group`,[O,R]=(0,d.ZP)(Z),I=(0,x.Z)(v,["value","disabled"]),j=o.length?k.map(e=>a.createElement(h,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:C.includes(e.value),onChange:e.onChange,className:`${N}-item`,style:e.style,title:e.title},e.label)):r,P={toggleOption:e=>{let t=C.indexOf(e.value),n=(0,g.Z)(C);-1===t?n.push(e.value):n.splice(t,1),"value"in v||$(n),null==m||m(n.filter(e=>E.includes(e)).sort((e,t)=>{let n=k.findIndex(t=>t.value===e),r=k.findIndex(e=>e.value===t);return n-r}))},value:C,disabled:v.disabled,name:v.name,registerValue:e=>{S(t=>[].concat((0,g.Z)(t),[e]))},cancelValue:e=>{S(t=>t.filter(t=>t!==e))}},T=l()(N,{[`${N}-rtl`]:"rtl"===w},s,f,R);return O(a.createElement("div",Object.assign({className:T,style:p},I,{ref:t}),a.createElement(u.Provider,{value:P},j)))});var y=a.memo(v);h.Group=y,h.__ANT_CHECKBOX=!0;var w=h},61607:function(e,t,n){n.d(t,{Z:function(){return tq}});var r,l={},o="rc-table-internal-hook",a=n(97685),i=n(66680),c=n(8410),s=n(91881),u=n(67294),d=n(73935);function f(e,t){var n=(0,i.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),l=r||{},o=l.listeners,d=l.getValue,f=u.useRef();f.current=n(r?d():null==e?void 0:e.defaultValue);var p=u.useState({}),m=(0,a.Z)(p,2)[1];return(0,c.Z)(function(){if(r)return o.add(e),function(){o.delete(e)};function e(e){var t=n(e);(0,s.Z)(f.current,t,!0)||m({})}},[r]),f.current}var p=n(87462),m=n(42550),h=function(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var l=(0,m.Yr)(n),o=function(o,a){var i=l?{ref:a}:{},c=u.useRef(0),s=u.useRef(o);return null!==t()?u.createElement(n,(0,p.Z)({},o,i)):((!r||r(s.current,o))&&(c.current+=1),s.current=o,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,p.Z)({},o,i))))};return l?u.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,m.Yr)(e),l=function(n,l){var o=r?{ref:l}:{};return t(),u.createElement(e,(0,p.Z)({},n,o))};return r?u.memo(u.forwardRef(l),n):u.memo(l,n)},useImmutableMark:t}}(),g=h.makeImmutable,x=h.responseImmutable,b=h.useImmutableMark,v={Context:r=u.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,l=u.useRef(t);l.current=t;var o=u.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),i=(0,a.Z)(o,1)[0];return(0,c.Z)(function(){(0,d.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(t)})})},[t]),u.createElement(r.Provider,{value:i},n)},defaultValue:void 0};u.memo(function(){var e,t,n,r,l,o,a=(n=u.useRef(0),n.current+=1,r=u.useRef(e),l=[],Object.keys(e||{}).map(function(t){var n;(null==e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&l.push(t)}),r.current=e,o=u.useRef([]),l.length&&(o.current=l),u.useDebugValue(n.current),u.useDebugValue(o.current.join(", ")),t&&console.log("".concat(t,":"),n.current,o.current),n.current);return u.createElement("h1",null,"Render Times: ",a)}).displayName="RenderBlock";var y=n(71002),w=n(1413),C=n(4942),$=n(94184),E=n.n($),S=n(56982),k=n(88306);n(80334);var Z=u.createContext({renderWithProps:!1});function N(e){var t=[],n={};return e.forEach(function(e){for(var r=e||{},l=r.key,o=r.dataIndex,a=l||(null==o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)}),t}var O=function(e){var t,n=e.ellipsis,r=e.rowType,l=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof l||"number"==typeof l?t=l.toString():u.isValidElement(l)&&"string"==typeof l.props.children&&(t=l.props.children)),t},R=u.memo(function(e){var t,n,r,l,o,i,c,d,m,h,g=e.component,x=e.children,$=e.ellipsis,N=e.scope,R=e.prefixCls,I=e.className,j=e.align,P=e.record,T=e.render,z=e.dataIndex,M=e.renderIndex,H=e.shouldCellUpdate,L=e.index,B=e.rowType,A=e.colSpan,_=e.rowSpan,F=e.fixLeft,W=e.fixRight,D=e.firstFixLeft,K=e.lastFixLeft,V=e.firstFixRight,X=e.lastFixRight,U=e.appendNode,G=e.additionalProps,Y=void 0===G?{}:G,J=e.isSticky,q="".concat(R,"-cell"),Q=f(v,["supportSticky","allColumnsFixedLeft"]),ee=Q.supportSticky,et=Q.allColumnsFixedLeft,en=(t=u.useContext(Z),n=b(),(0,S.Z)(function(){if(null!=x)return[x];var e=null==z||""===z?[]:Array.isArray(z)?z:[z],n=(0,k.Z)(P,e),r=n,l=void 0;if(T){var o=T(n,P,M);!o||"object"!==(0,y.Z)(o)||Array.isArray(o)||u.isValidElement(o)?r=o:(r=o.children,l=o.props,t.renderWithProps=!0)}return[r,l]},[n,P,x,z,T,M],function(e,n){if(H){var r=(0,a.Z)(e,2)[1];return H((0,a.Z)(n,2)[1],r)}return!!t.renderWithProps||!(0,s.Z)(e,n,!0)})),er=(0,a.Z)(en,2),el=er[0],eo=er[1],ea={},ei="number"==typeof F&&ee,ec="number"==typeof W&ⅇei&&(ea.position="sticky",ea.left=F),ec&&(ea.position="sticky",ea.right=W);var es=null!==(r=null!==(l=null!==(o=null==eo?void 0:eo.colSpan)&&void 0!==o?o:Y.colSpan)&&void 0!==l?l:A)&&void 0!==r?r:1,eu=null!==(i=null!==(c=null!==(d=null==eo?void 0:eo.rowSpan)&&void 0!==d?d:Y.rowSpan)&&void 0!==c?c:_)&&void 0!==i?i:1,ed=f(v,function(e){var t,n;return[(t=eu||1,n=e.hoverStartRow,L<=e.hoverEndRow&&L+t-1>=n),e.onHover]}),ef=(0,a.Z)(ed,2),ep=ef[0],em=ef[1];if(0===es||0===eu)return null;var eh=null!==(m=Y.title)&&void 0!==m?m:O({rowType:B,ellipsis:$,children:el}),eg=E()(q,I,(h={},(0,C.Z)(h,"".concat(q,"-fix-left"),ei&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-first"),D&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-last"),K&&ee),(0,C.Z)(h,"".concat(q,"-fix-left-all"),K&&et&&ee),(0,C.Z)(h,"".concat(q,"-fix-right"),ec&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-first"),V&&ee),(0,C.Z)(h,"".concat(q,"-fix-right-last"),X&&ee),(0,C.Z)(h,"".concat(q,"-ellipsis"),$),(0,C.Z)(h,"".concat(q,"-with-append"),U),(0,C.Z)(h,"".concat(q,"-fix-sticky"),(ei||ec)&&J&&ee),(0,C.Z)(h,"".concat(q,"-row-hover"),!eo&&ep),h),Y.className,null==eo?void 0:eo.className),ex={};j&&(ex.textAlign=j);var eb=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},Y.style),ex),ea),null==eo?void 0:eo.style),ev=el;return"object"!==(0,y.Z)(ev)||Array.isArray(ev)||u.isValidElement(ev)||(ev=null),$&&(K||V)&&(ev=u.createElement("span",{className:"".concat(q,"-content")},ev)),u.createElement(g,(0,p.Z)({},eo,Y,{className:eg,style:eb,title:eh,scope:N,onMouseEnter:function(e){var t;P&&em(L,L+eu-1),null==Y||null===(t=Y.onMouseEnter)||void 0===t||t.call(Y,e)},onMouseLeave:function(e){var t;P&&em(-1,-1),null==Y||null===(t=Y.onMouseLeave)||void 0===t||t.call(Y,e)},colSpan:1!==es?es:null,rowSpan:1!==eu?eu:null}),U,ev)});function I(e,t,n,r,l,o){var a,i,c=n[e]||{},s=n[t]||{};"left"===c.fixed?a=r.left["rtl"===l?t:e]:"right"===s.fixed&&(i=r.right["rtl"===l?e:t]);var u=!1,d=!1,f=!1,p=!1,m=n[t+1],h=n[e-1],g=!(null!=o&&o.children);return"rtl"===l?void 0!==a?p=!(h&&"left"===h.fixed)&&g:void 0!==i&&(f=!(m&&"right"===m.fixed)&&g):void 0!==a?u=!(m&&"left"===m.fixed)&&g:void 0!==i&&(d=!(h&&"right"===h.fixed)&&g),{fixLeft:a,fixRight:i,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var j=u.createContext({}),P=n(45987),T=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,P.Z)(e,T);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,o=void 0===l?1:l,a=e.rowSpan,i=e.align,c=f(v,["prefixCls","direction"]),s=c.prefixCls,d=c.direction,m=u.useContext(j),h=m.scrollColumnIndex,g=m.stickyOffsets,x=m.flattenColumns,b=m.columns,y=n+o-1+1===h?o+1:o,w=I(n,n+y-1,x,g,d,null==b?void 0:b[n]);return u.createElement(R,(0,p.Z)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:i,colSpan:y,rowSpan:a,render:function(){return r}},w))};var M=x(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,o=f(v,"prefixCls"),a=r.length-1,i=r[a],c=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null,columns:l}},[i,r,a,n,l]);return u.createElement(j.Provider,{value:c},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))}),H=n(9220),L=n(5110),B=n(98924),A=function(e){if((0,B.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1},_=function(e,t){if(!A(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r},F=n(74204),W=n(64217),D=n(74902),K=function(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,o=e.className,a=e.expanded,i=e.colSpan,c=e.isEmpty,s=f(v,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=s.scrollbarSize,p=s.fixHeader,m=s.fixColumn,h=s.componentWidth,g=s.horizonScroll,x=n;return(c?g:m)&&(x=u.createElement("div",{style:{width:h-(p?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},0!==h&&x)),u.createElement(r,{className:o,style:{display:a?null:"none"}},u.createElement(R,{component:l,prefixCls:t,colSpan:i},x))};function V(e){var t,n,r=e.className,l=e.style,o=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,d=e.rowExpandable,m=e.expandedKeys,h=e.onRow,g=e.indent,x=void 0===g?0:g,b=e.rowComponent,y=e.cellComponent,C=e.scopeCellComponent,$=e.childrenColumnName,S=f(v,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex"]),k=S.prefixCls,Z=S.fixedInfoList,O=S.flattenColumns,I=S.expandableType,j=S.expandRowByClick,P=S.onTriggerExpand,T=S.rowClassName,z=S.expandedRowClassName,M=S.indentSize,H=S.expandIcon,L=S.expandedRowRender,B=S.expandIconColumnIndex,A=u.useState(!1),_=(0,a.Z)(A,2),F=_[0],W=_[1],D=m&&m.has(s);u.useEffect(function(){D&&W(!0)},[D]);var V="row"===I&&(!d||d(o)),X="nest"===I,U=$&&o&&o[$],G=V||X,Y=u.useRef(P);Y.current=P;var J=function(){Y.current.apply(Y,arguments)},q=null==h?void 0:h(o,i);"string"==typeof T?t=T:"function"==typeof T&&(t=T(o,i,x));var Q=N(O),ee=u.createElement(b,(0,p.Z)({},q,{"data-row-key":s,className:E()(r,"".concat(k,"-row"),"".concat(k,"-row-level-").concat(x),t,q&&q.className),style:(0,w.Z)((0,w.Z)({},l),q?q.style:null),onClick:function(e){var t;j&&G&&J(o,e);for(var n=arguments.length,r=Array(n>1?n-1:0),l=1;l=0;i-=1){var c=t[i],s=n&&n[i],d=s&&s[Q];if(c||d||a){var f=d||{},m=(f.columnType,(0,P.Z)(f,ee));l.unshift(u.createElement("col",(0,p.Z)({key:i,style:{width:c}},m))),a=!0}}return u.createElement("colgroup",null,l)},en=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],er=u.forwardRef(function(e,t){var n=e.className,r=e.noData,l=e.columns,o=e.flattenColumns,a=e.colWidths,i=e.columCount,c=e.stickyOffsets,s=e.direction,d=e.fixHeader,p=e.stickyTopOffset,h=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,b=e.maxContentScroll,y=e.children,$=(0,P.Z)(e,en),S=f(v,["prefixCls","scrollbarSize","isSticky"]),k=S.prefixCls,Z=S.scrollbarSize,N=S.isSticky,O=N&&!d?0:Z,R=u.useRef(null),I=u.useCallback(function(e){(0,m.mH)(t,e),(0,m.mH)(R,e)},[]);u.useEffect(function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(x({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var j=u.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),T=o[o.length-1],z={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(k,"-cell-scrollbar")}}},M=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(l),[z]):l},[O,l]),H=(0,u.useMemo)(function(){return O?[].concat((0,D.Z)(o),[z]):o},[O,o]),L=(0,u.useMemo)(function(){var e=c.right,t=c.left;return(0,w.Z)((0,w.Z)({},c),{},{left:"rtl"===s?[].concat((0,D.Z)(t.map(function(e){return e+O})),[0]):t,right:"rtl"===s?e:[].concat((0,D.Z)(e.map(function(e){return e+O})),[0]),isSticky:N})},[O,c,N]),B=(0,u.useMemo)(function(){for(var e=[],t=0;t1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:i,prefixCls:m,key:g[t]},c,{additionalProps:n,rowType:"header"}))}))}eo.displayName="HeaderRow";var ea=x(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,l=e.onHeaderRow,o=f(v,["prefixCls","getComponent"]),a=o.prefixCls,i=o.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[l]=t[l]||[];var o=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,i=n.children;return i&&i.length>0&&(a=e(i,o,l+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[l].push(r),o+=a,a})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){("rowSpan"in t)||t.hasSubColumns||(t.rowSpan=n-e)})},l=0;l0?[].concat((0,D.Z)(e),(0,D.Z)(ed(l).map(function(e){return(0,w.Z)({fixed:r},e)}))):[].concat((0,D.Z)(e),[(0,w.Z)((0,w.Z)({},t),{},{fixed:r})])},[])}var ef=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,p=e.rowExpandable,m=e.expandIconColumnIndex,h=e.direction,g=e.expandRowByClick,x=e.columnWidth,b=e.fixed,v=u.useMemo(function(){return r||eu(o)},[r,o]),y=u.useMemo(function(){if(a){var e,t,r=v.slice();if(!r.includes(l)){var o=m||0;o>=0&&r.splice(o,0,l)}var h=r.indexOf(l);r=r.filter(function(e,t){return e!==l||t===h});var y=v[h];t=("left"===b||b)&&!m?"left":("right"===b||b)&&m===v.length?"right":y?y.fixed:null;var w=(e={},(0,C.Z)(e,Q,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,C.Z)(e,"title",c),(0,C.Z)(e,"fixed",t),(0,C.Z)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,C.Z)(e,"width",x),(0,C.Z)(e,"render",function(e,t,r){var l=s(t,r),o=f({prefixCls:n,expanded:i.has(l),expandable:!p||p(t),record:t,onExpand:d});return g?u.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}),e);return r.map(function(e){return e===l?w:e})}return v.filter(function(e){return e!==l})},[a,v,s,i,f,h]),$=u.useMemo(function(){var e=y;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,y,h]),E=u.useMemo(function(){return"rtl"===h?ed($).map(function(e){var t=e.fixed,n=(0,P.Z)(e,es),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,w.Z)({fixed:r},n)}):ed($)},[$,h]);return[$,E]};function ep(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,o=e.expanded,a=e.expandable,i="".concat(n,"-row-expand-icon");return a?u.createElement("span",{className:E()(i,(t={},(0,C.Z)(t,"".concat(n,"-row-expanded"),o),(0,C.Z)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){l(r,e),e.stopPropagation()}}):u.createElement("span",{className:E()(i,"".concat(n,"-row-spaced"))})}function em(e){var t=(0,u.useRef)(e),n=(0,u.useState)({}),r=(0,a.Z)(n,2)[1],l=(0,u.useRef)(null),o=(0,u.useRef)([]);return(0,u.useEffect)(function(){return function(){l.current=null}},[]),[t.current,function(e){o.current.push(e);var n=Promise.resolve();l.current=n,n.then(function(){if(l.current===n){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),l.current=null,a!==t.current&&r({})}})}]}var eh=(0,B.Z)()?window:null,eg=function(e){var t=e.className,n=e.children;return u.createElement("div",{className:t},n)},ex=n(64019),eb=n(27678),ev=u.forwardRef(function(e,t){var n,r,l=e.scrollBodyRef,o=e.onScroll,i=e.offsetScroll,c=e.container,s=f(v,"prefixCls"),d=(null===(n=l.current)||void 0===n?void 0:n.scrollWidth)||0,p=(null===(r=l.current)||void 0===r?void 0:r.clientWidth)||0,m=d&&p*(p/d),h=u.useRef(),g=em({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,a.Z)(g,2),b=x[0],y=x[1],$=u.useRef({delta:0,x:0}),S=u.useState(!1),k=(0,a.Z)(S,2),Z=k[0],N=k[1],O=function(){N(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(!Z||0===n){Z&&N(!1);return}var r=$.current.x+e.pageX-$.current.x-$.current.delta;r<=0&&(r=0),r+m>=p&&(r=p-m),o({scrollLeft:r/p*(d+2)}),$.current.x=e.pageX},I=function(){if(l.current){var e=(0,eb.os)(l.current).top,t=e+l.current.offsetHeight,n=c===window?document.documentElement.scrollTop+window.innerHeight:(0,eb.os)(c).top+c.clientHeight;t-(0,F.Z)()<=n||e>=n-i?y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})})}},j=function(e){y(function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/d*p||0})})};return(u.useImperativeHandle(t,function(){return{setScrollLeft:j}}),u.useEffect(function(){var e=(0,ex.Z)(document.body,"mouseup",O,!1),t=(0,ex.Z)(document.body,"mousemove",R,!1);return I(),function(){e.remove(),t.remove()}},[m,Z]),u.useEffect(function(){var e=(0,ex.Z)(c,"scroll",I,!1),t=(0,ex.Z)(window,"resize",I,!1);return function(){e.remove(),t.remove()}},[c]),u.useEffect(function(){b.isHiddenScrollBar||y(function(e){var t=l.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[b.isHiddenScrollBar]),d<=p||!m||b.isHiddenScrollBar)?null:u.createElement("div",{style:{height:(0,F.Z)(),width:p,bottom:i},className:"".concat(s,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-b.scrollLeft,$.current.x=0,N(!0),e.preventDefault()},ref:h,className:E()("".concat(s,"-sticky-scroll-bar"),(0,C.Z)({},"".concat(s,"-sticky-scroll-bar-active"),Z)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))}),ey=[],ew={};function eC(){return"No Data"}function e$(e){var t,n=(0,w.Z)({rowKey:"key",prefixCls:"rc-table",emptyText:eC},e),r=n.prefixCls,l=n.className,c=n.rowClassName,d=n.style,f=n.data,m=n.rowKey,h=n.scroll,g=n.tableLayout,x=n.direction,b=n.title,$=n.footer,Z=n.summary,O=n.caption,R=n.id,j=n.showHeader,T=n.components,B=n.emptyText,K=n.onRow,V=n.onHeaderRow,X=n.internalHooks,U=n.transformColumns,G=n.internalRefs,Y=n.sticky,Q=f||ey,ee=!!Q.length,en=u.useCallback(function(e,t){return(0,k.Z)(T,e)||t},[T]),er=u.useMemo(function(){return"function"==typeof m?m:function(e){return e&&e[m]}},[m]),eo=(tz=u.useState(-1),tH=(tM=(0,a.Z)(tz,2))[0],tL=tM[1],tB=u.useState(-1),t_=(tA=(0,a.Z)(tB,2))[0],tF=tA[1],[tH,t_,u.useCallback(function(e,t){tL(e),tF(t)},[])]),ei=(0,a.Z)(eo,3),ec=ei[0],es=ei[1],eu=ei[2],ed=(tD=n.expandable,tK=(0,P.Z)(n,q),!1===(tW="expandable"in n?(0,w.Z)((0,w.Z)({},tK),tD):tK).showExpandColumn&&(tW.expandIconColumnIndex=-1),tV=tW.expandIcon,tX=tW.expandedRowKeys,tU=tW.defaultExpandedRowKeys,tG=tW.defaultExpandAllRows,tY=tW.expandedRowRender,tJ=tW.onExpand,tq=tW.onExpandedRowsChange,tQ=tW.childrenColumnName||"children",t0=u.useMemo(function(){return tY?"row":!!(n.expandable&&n.internalHooks===o&&n.expandable.__PARENT_RENDER_ICON__||Q.some(function(e){return e&&"object"===(0,y.Z)(e)&&e[tQ]}))&&"nest"},[!!tY,Q]),t1=u.useState(function(){if(tU)return tU;if(tG){var e;return e=[],function t(n){(n||[]).forEach(function(n,r){e.push(er(n,r)),t(n[tQ])})}(Q),e}return[]}),t8=(t2=(0,a.Z)(t1,2))[0],t3=t2[1],t4=u.useMemo(function(){return new Set(tX||t8||[])},[tX,t8]),t5=u.useCallback(function(e){var t,n=er(e,Q.indexOf(e)),r=t4.has(n);r?(t4.delete(n),t=(0,D.Z)(t4)):t=[].concat((0,D.Z)(t4),[n]),t3(t),tJ&&tJ(!r,e),tq&&tq(t)},[er,t4,Q,tJ,tq]),[tW,t0,t4,tV||ep,tQ,t5]),ex=(0,a.Z)(ed,6),eb=ex[0],e$=ex[1],eE=ex[2],eS=ex[3],ek=ex[4],eZ=ex[5],eN=u.useState(0),eO=(0,a.Z)(eN,2),eR=eO[0],eI=eO[1],ej=ef((0,w.Z)((0,w.Z)((0,w.Z)({},n),eb),{},{expandable:!!eb.expandedRowRender,columnTitle:eb.columnTitle,expandedKeys:eE,getRowKey:er,onTriggerExpand:eZ,expandIcon:eS,expandIconColumnIndex:eb.expandIconColumnIndex,direction:x}),X===o?U:null),eP=(0,a.Z)(ej,2),eT=eP[0],ez=eP[1],eM=u.useMemo(function(){return{columns:eT,flattenColumns:ez}},[eT,ez]),eH=u.useRef(),eL=u.useRef(),eB=u.useRef(),eA=u.useRef(),e_=u.useRef(),eF=u.useState(!1),eW=(0,a.Z)(eF,2),eD=eW[0],eK=eW[1],eV=u.useState(!1),eX=(0,a.Z)(eV,2),eU=eX[0],eG=eX[1],eY=em(new Map),eJ=(0,a.Z)(eY,2),eq=eJ[0],eQ=eJ[1],e0=N(ez).map(function(e){return eq.get(e)}),e1=u.useMemo(function(){return e0},[e0.join("_")]),e2=(t7=ez.length,(0,u.useMemo)(function(){for(var e=[],t=[],n=0,r=0,l=0;l0)):(eK(o>0),eG(o{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r});function ez(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function eM(e,t){return t?`${t}-${e}`:`${e}`}function eH(e,t){return"function"==typeof e?e(t):e}var eL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},eB=n(84089),eA=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:eL}))}),e_=n(57838),eF=n(71577),eW=n(84567),eD=n(85418),eK=n(32983),eV=n(82610),eX=n(76529),eU=n(78045),eG=n(57346),eY=n(68795),eJ=n(59566),eq=function(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:o}=e;return r?u.createElement("div",{className:`${l}-filter-dropdown-search`},u.createElement(eJ.default,{prefix:u.createElement(eY.Z,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null},eQ=n(15105);let e0=e=>{let{keyCode:t}=e;t===eQ.Z.ENTER&&e.stopPropagation()},e1=u.forwardRef((e,t)=>u.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:e0,ref:t},e.children));function e2(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat((0,D.Z)(t),(0,D.Z)(e2(r))))}),t}function e8(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}var e3=function(e){var t,n;let r,l;let{tablePrefixCls:o,prefixCls:a,column:i,dropdownPrefixCls:c,columnKey:d,filterMultiple:f,filterMode:p="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:x,children:b,getPopupContainer:v}=e,{filterDropdownOpen:y,onFilterDropdownOpenChange:w,filterResetToDefaultFilteredValue:C,defaultFilteredValue:$,filterDropdownVisible:S,onFilterDropdownVisibleChange:k}=i,[Z,N]=u.useState(!1),O=!!(h&&((null===(t=h.filteredKeys)||void 0===t?void 0:t.length)||h.forceFiltered)),R=e=>{N(e),null==w||w(e),null==k||k(e)},I=null!==(n=null!=y?y:S)&&void 0!==n?n:Z,j=null==h?void 0:h.filteredKeys,[P,T]=function(e){let t=u.useRef(e),n=(0,e_.Z)();return[()=>t.current,e=>{t.current=e,n()}]}(j||[]),z=e=>{let{selectedKeys:t}=e;T(t)};u.useEffect(()=>{Z&&z({selectedKeys:j||[]})},[j]);let[M,H]=u.useState([]),[L,B]=u.useState(""),A=e=>{let{value:t}=e.target;B(t)};u.useEffect(()=>{Z||B("")},[Z]);let _=e=>{let t=e&&e.length?e:null;if(null===t&&(!h||!h.filteredKeys)||(0,s.Z)(t,null==h?void 0:h.filteredKeys,!0))return null;g({column:i,key:d,filteredKeys:t})},F=()=>{R(!1),_(P())},W=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&R(!1),B(""),C?T(($||[]).map(e=>String(e))):T([])},D=E()({[`${c}-menu-without-submenu`]:!(i.filters||[]).some(e=>{let{children:t}=e;return t})}),K=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=K({filters:e.children})),r})},V=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>V(e)))||[]})};if("function"==typeof i.filterDropdown)r=i.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>z({selectedKeys:e}),selectedKeys:P(),confirm:function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&R(!1),_(P())},clearFilters:W,filters:i.filters,visible:I,close:()=>{R(!1)}});else if(i.filterDropdown)r=i.filterDropdown;else{let e=P()||[];r=u.createElement(u.Fragment,null,0===(i.filters||[]).length?u.createElement(eK.Z,{image:eK.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===p?u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement("div",{className:`${o}-filter-dropdown-tree`},f?u.createElement(eW.Z,{checked:e.length===e2(i.filters).length,indeterminate:e.length>0&&e.length{if(e.target.checked){let e=e2(null==i?void 0:i.filters).map(e=>String(e));T(e)}else T([])}},x.filterCheckall):null,u.createElement(eG.Z,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:(e,t)=>{let{node:n,checked:r}=t;f?z({selectedKeys:e}):z({selectedKeys:r&&n.key?[n.key]:[]})},checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:K({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:L.trim()?e=>"function"==typeof m?m(L,V(e)):e8(L,e.title):void 0}))):u.createElement(u.Fragment,null,u.createElement(eq,{filterSearch:m,value:L,onChange:A,tablePrefixCls:o,locale:x}),u.createElement(eV.Z,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:D,onSelect:z,onDeselect:z,selectedKeys:e,getPopupContainer:v,openKeys:M,onOpenChange:e=>{H(e)},items:function e(t){let{filters:n,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i}=t;return n.map((t,n)=>{let c=String(t.value);if(t.children)return{key:c||n,label:t.text,popupClassName:`${r}-dropdown-submenu`,children:e({filters:t.children,prefixCls:r,filteredKeys:l,filterMultiple:o,searchValue:a,filterSearch:i})};let s=o?eW.Z:eU.ZP,d={key:void 0!==t.value?c:n,label:u.createElement(u.Fragment,null,u.createElement(s,{checked:l.includes(c)}),u.createElement("span",null,t.text))};return a.trim()?"function"==typeof i?i(a,t)?d:null:e8(a,t.text)?d:null:d})}({filters:i.filters||[],filterSearch:m,prefixCls:a,filteredKeys:P(),filterMultiple:f,searchValue:L})})),u.createElement("div",{className:`${a}-dropdown-btns`},u.createElement(eF.ZP,{type:"link",size:"small",disabled:C?(0,s.Z)(($||[]).map(e=>String(e)),e,!0):0===e.length,onClick:()=>W()},x.filterReset),u.createElement(eF.ZP,{type:"primary",size:"small",onClick:F},x.filterConfirm)))}i.filterDropdown&&(r=u.createElement(eX.J,{selectable:void 0},r)),l="function"==typeof i.filterIcon?i.filterIcon(O):i.filterIcon?i.filterIcon:u.createElement(eA,null);let{direction:X}=u.useContext(eZ.E_);return u.createElement("div",{className:`${a}-column`},u.createElement("span",{className:`${o}-column-title`},b),u.createElement(eD.Z,{dropdownRender:()=>u.createElement(e1,{className:`${a}-dropdown`},r),trigger:["click"],open:I,onOpenChange:e=>{e&&void 0!==j&&T(j||[]),R(e),e||i.filterDropdown||F()},getPopupContainer:v,placement:"rtl"===X?"bottomLeft":"bottomRight"},u.createElement("span",{role:"button",tabIndex:-1,className:E()(`${a}-trigger`,{active:O}),onClick:e=>{e.stopPropagation()}},l)))};function e4(e,t,n){let r=[];return(e||[]).forEach((e,l)=>{var o;let a=eM(l,n);if(e.filters||"filterDropdown"in e||"onFilter"in e){if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(o=null==t?void 0:t.map(String))&&void 0!==o?o:t),r.push({column:e,key:ez(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:ez(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}"children"in e&&(r=[].concat((0,D.Z)(r),(0,D.Z)(e4(e.children,t,a))))}),r}function e5(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:l}=e,{filters:o,filterDropdown:a}=l;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=e2(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function e7(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:l}=t;return n&&l&&l.length?e.filter(e=>l.some(t=>{let l=e2(r),o=l.findIndex(e=>String(e)===String(t)),a=-1!==o?l[o]:t;return n(a,e)})):e},e)}let e6=e=>e.flatMap(e=>"children"in e?[e].concat((0,D.Z)(e6(e.children||[]))):[e]);var e9=function(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:o,locale:a}=e,i=u.useMemo(()=>e6(r||[]),[r]),[c,s]=u.useState(()=>e4(i,!0)),d=u.useMemo(()=>{let e=e4(i,!1);if(0===e.length)return e;let t=!0;if(e.forEach(e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)}),t){let e=(i||[]).map((e,t)=>ez(e,eM(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=i[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[i,c]),f=u.useMemo(()=>e5(d),[d]),p=e=>{let t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),s(t),l(e5(t),t)};return[e=>(function e(t,n,r,l,o,a,i,c){return r.map((r,s)=>{let d=eM(s,c),{filterMultiple:f=!0,filterMode:p,filterSearch:m}=r,h=r;if(h.filters||h.filterDropdown){let e=ez(h,d),c=l.find(t=>{let{key:n}=t;return e===n});h=Object.assign(Object.assign({},h),{title:l=>u.createElement(e3,{tablePrefixCls:t,prefixCls:`${t}-filter`,dropdownPrefixCls:n,column:h,columnKey:e,filterState:c,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:o,getPopupContainer:i},eH(r.title,l))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:e(t,n,h.children,l,o,a,i,d)})),h})})(t,n,e,d,a,p,o),d,f]},te=n(38780),tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,r=Object.getOwnPropertySymbols(e);lt.indexOf(r[l])&&Object.prototype.propertyIsEnumerable.call(e,r[l])&&(n[r[l]]=e[r[l]]);return n},tn=function(e,t,n){let r=n&&"object"==typeof n?n:{},{total:l=0}=r,o=tt(r,["total"]),[a,i]=(0,u.useState)(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:10})),c=(0,te.Z)(a,o,{total:l>0?l:e}),s=Math.ceil((l||e)/c.pageSize);c.current>s&&(c.current=s||1);let d=(e,t)=>{i({current:null!=e?e:1,pageSize:t||c.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:(e,r)=>{var l;n&&(null===(l=n.onChange)||void 0===l||l.call(n,e,r)),d(e,r),t(e,r||(null==c?void 0:c.pageSize))}}),d]},tr=n(80882),tl=n(10225),to=n(17341),ta=n(1089),ti=n(21770);let tc={},ts="SELECT_ALL",tu="SELECT_INVERT",td="SELECT_NONE",tf=[],tp=(e,t)=>{let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat((0,D.Z)(n),(0,D.Z)(tp(e,t[e]))))}),n};var tm=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:o,onChange:a,onSelect:i,onSelectAll:c,onSelectInvert:s,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:x,hideSelectAll:b,checkStrictly:v=!0}=t||{},{prefixCls:y,data:w,pageData:C,getRecordByKey:$,getRowKey:S,expandType:k,childrenColumnName:Z,locale:N,getPopupContainer:O}=e,[R,I]=(0,ti.Z)(r||l||tf,{value:r}),j=u.useRef(new Map),P=(0,u.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=$(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)}),j.current=t}},[$,n]);u.useEffect(()=>{P(R)},[R]);let{keyEntities:T}=(0,u.useMemo)(()=>{if(v)return{keyEntities:null};let e=w;if(n){let t=new Set(w.map((e,t)=>S(e,t))),n=Array.from(j.current).reduce((e,n)=>{let[r,l]=n;return t.has(r)?e:e.concat(l)},[]);e=[].concat((0,D.Z)(e),(0,D.Z)(n))}return(0,ta.I8)(e,{externalGetKey:S,childrenPropName:Z})},[w,S,v,Z,n]),z=(0,u.useMemo)(()=>tp(Z,C),[Z,C]),M=(0,u.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=S(t,n),l=(o?o(t):null)||{};e.set(r,l)}),e},[z,S,o]),H=(0,u.useCallback)(e=>{var t;return!!(null===(t=M.get(S(e)))||void 0===t?void 0:t.disabled)},[M,S]),[L,B]=(0,u.useMemo)(()=>{if(v)return[R||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=(0,to.S)(R,!0,T,H);return[e||[],t]},[R,v,T,H]),A=(0,u.useMemo)(()=>{let e="radio"===m?L.slice(0,1):L;return new Set(e)},[L,m]),_=(0,u.useMemo)(()=>"radio"===m?new Set:new Set(B),[B,m]),[F,W]=(0,u.useState)(null);u.useEffect(()=>{t||I(tf)},[!!t]);let K=(0,u.useCallback)((e,t)=>{let r,l;P(e),n?(r=e,l=e.map(e=>j.current.get(e))):(r=[],l=[],e.forEach(e=>{let t=$(e);void 0!==t&&(r.push(e),l.push(t))})),I(r),null==a||a(r,l,{type:t})},[I,$,a,n]),V=(0,u.useCallback)((e,t,n,r)=>{if(i){let l=n.map(e=>$(e));i($(e),t,l,r)}K(n,"single")},[i,$,K]),X=(0,u.useMemo)(()=>{if(!h||b)return null;let e=!0===h?[ts,tu,td]:h;return e.map(e=>e===ts?{key:"all",text:N.selectionAll,onSelect(){K(w.map((e,t)=>S(e,t)).filter(e=>{let t=M.get(e);return!(null==t?void 0:t.disabled)||A.has(e)}),"all")}}:e===tu?{key:"invert",text:N.selectInvert,onSelect(){let e=new Set(A);C.forEach((t,n)=>{let r=S(t,n),l=M.get(r);(null==l?void 0:l.disabled)||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);s&&s(t),K(t,"invert")}}:e===td?{key:"none",text:N.selectNone,onSelect(){null==d||d(),K(Array.from(A).filter(e=>{let t=M.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n=arguments.length,r=Array(n),l=0;l{var n;let r,l;if(!t)return e.filter(e=>e!==tc);let o=(0,D.Z)(e),a=new Set(A),i=z.map(S).filter(e=>!M.get(e).disabled),s=i.every(e=>a.has(e)),d=i.some(e=>a.has(e));if("radio"!==m){let e;if(X){let t={getPopupContainer:O,items:X.map((e,t)=>{let{key:n,text:r,onSelect:l}=e;return{key:null!=n?n:t,onClick:()=>{null==l||l(i)},label:r}})};e=u.createElement("div",{className:`${y}-selection-extra`},u.createElement(eD.Z,{menu:t,getPopupContainer:O},u.createElement("span",null,u.createElement(tr.Z,null))))}let t=z.map((e,t)=>{let n=S(e,t),r=M.get(n)||{};return Object.assign({checked:a.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===z.length,l=n&&t.every(e=>{let{checked:t}=e;return t}),o=n&&t.some(e=>{let{checked:t}=e;return t});r=!b&&u.createElement("div",{className:`${y}-selection`},u.createElement(eW.Z,{checked:n?l:!!z.length&&s,indeterminate:n?!l&&o:!s&&d,onChange:()=>{let e=[];s?i.forEach(t=>{a.delete(t),e.push(t)}):i.forEach(t=>{a.has(t)||(a.add(t),e.push(t))});let t=Array.from(a);null==c||c(!s,t.map(e=>$(e)),e.map(e=>$(e))),K(t,"all"),W(null)},disabled:0===z.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),e)}if(l="radio"===m?(e,t,n)=>{let r=S(t,n),l=a.has(r);return{node:u.createElement(eU.ZP,Object.assign({},M.get(r),{checked:l,onClick:e=>e.stopPropagation(),onChange:e=>{a.has(r)||V(r,!0,[r],e.nativeEvent)}})),checked:l}}:(e,t,n)=>{var r;let l;let o=S(t,n),c=a.has(o),s=_.has(o),d=M.get(o);return l="nest"===k?s:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:s,{node:u.createElement(eW.Z,Object.assign({},d,{indeterminate:l,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,r=-1,l=-1;if(n&&v){let e=new Set([F,o]);i.some((t,n)=>{if(e.has(t)){if(-1!==r)return l=n,!0;r=n}return!1})}if(-1!==l&&r!==l&&v){let e=i.slice(r,l+1),t=[];c?e.forEach(e=>{a.has(e)&&(t.push(e),a.delete(e))}):e.forEach(e=>{a.has(e)||(t.push(e),a.add(e))});let n=Array.from(a);null==f||f(!c,n.map(e=>$(e)),t.map(e=>$(e))),K(n,"multiple")}else if(v){let e=c?(0,tl._5)(L,o):(0,tl.L0)(L,o);V(o,!c,e,t)}else{let e=(0,to.S)([].concat((0,D.Z)(L),[o]),!0,T,H),{checkedKeys:n,halfCheckedKeys:r}=e,l=n;if(c){let e=new Set(n);e.delete(o),l=(0,to.S)(Array.from(e),{checked:!1,halfCheckedKeys:r},T,H).checkedKeys}V(o,!c,l,t)}c?W(null):W(o)}})),checked:c}},!o.includes(tc)){if(0===o.findIndex(e=>{var t;return(null===(t=e[Q])||void 0===t?void 0:t.columnType)==="EXPAND_COLUMN"})){let[e,...t]=o;o=[e,tc].concat((0,D.Z)(t))}else o=[tc].concat((0,D.Z)(o))}let w=o.indexOf(tc);o=o.filter((e,t)=>e!==tc||t===w);let C=o[w-1],Z=o[w+1],N=g;void 0===N&&((null==Z?void 0:Z.fixed)!==void 0?N=Z.fixed:(null==C?void 0:C.fixed)!==void 0&&(N=C.fixed)),N&&C&&(null===(n=C[Q])||void 0===n?void 0:n.columnType)==="EXPAND_COLUMN"&&void 0===C.fixed&&(C.fixed=N);let R=E()(`${y}-selection-col`,{[`${y}-selection-col-with-dropdown`]:h&&"checkbox"===m}),I={fixed:N,width:p,className:`${y}-selection-column`,title:t.columnTitle||r,render:(e,t,n)=>{let{node:r,checked:o}=l(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,[Q]:{className:R}};return o.map(e=>e===tc?I:e)},[S,z,t,L,A,_,p,X,k,F,M,f,V,H]);return[U,A]},th={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},tg=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:th}))}),tx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},tb=u.forwardRef(function(e,t){return u.createElement(eB.Z,(0,p.Z)({},e,{ref:t,icon:tx}))}),tv=n(83062);let ty="ascend",tw="descend";function tC(e){return"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function t$(e){return"function"==typeof e?e:!!e&&"object"==typeof e&&!!e.compare&&e.compare}function tE(e,t,n){let r=[];function l(e,t){r.push({column:e,key:ez(e,t),multiplePriority:tC(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{let a=eM(o,n);e.children?("sortOrder"in e&&l(e,a),r=[].concat((0,D.Z)(r),(0,D.Z)(tE(e.children,t,a)))):e.sorter&&("sortOrder"in e?l(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:ez(e,a),multiplePriority:tC(e),sortOrder:e.defaultSortOrder}))}),r}function tS(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function tk(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(tS);return 0===t.length&&e.length?Object.assign(Object.assign({},tS(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tZ(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),l=e.slice(),o=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return t$(t)&&n});return o.length?l.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?Object.assign(Object.assign({},e),{[n]:tZ(r,t,n)}):e}):l}var tN=n(10274),tO=n(14747),tR=n(67968),tI=n(45503),tj=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,l)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` - > table > tbody > tr > th, - > table > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,borderTop:n,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{[` - > thead > tr > th, - > thead > tr > td, - > tbody > tr > th, - > tbody > tr > td, - > tfoot > tr > th, - > tfoot > tr > td - `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},[` - > tbody > tr > th, - > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:n}}}},tP=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},tO.vS),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tT=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` - &:hover > th, - &:hover > td, - `]:{background:e.colorBgContainer}}}}};let tz=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var tM=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:l,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:c,tableExpandIconBg:s,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:x,paddingXXS:b}=e,v=r/2-o,y=2*v+3*o,w=`${o}px ${i} ${c}`,C=b-o;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},tz(e)),{position:"relative",float:"left",boxSizing:"border-box",width:y,height:y,padding:0,color:"inherit",lineHeight:`${y}px`,background:s,border:w,borderRadius:d,transform:`scale(${r/y})`,transition:`all ${l}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${l} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*m-3*o)/2-Math.ceil((1.4*p-3*o)/2),marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:x}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},tH=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:i,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:x,colorPrimary:b,tableHeaderFilterActiveBg:v,colorTextDisabled:y,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:$,controlItemBgActive:E,boxShadowSecondary:S}=e,k=`${n}-dropdown`,Z=`${t}-filter-dropdown`,N=`${n}-tree`,O=`${s}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-a,marginInline:`${a}px ${-m/2}px`,padding:`0 ${a}px`,color:f,fontSize:p,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:x,background:v},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[Z]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{minWidth:l,backgroundColor:w,borderRadius:h,boxShadow:S,overflow:"hidden",[`${k}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset","&:empty::after":{display:"block",padding:`${i}px 0`,color:y,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${Z}-tree`]:{paddingBlock:`${i}px 0`,paddingInline:i,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:$},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:E}}},[`${Z}-search`]:{padding:i,borderBottom:O,"&-input":{input:{minWidth:o},[r]:{color:y}}},[`${Z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${Z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${i-s}px ${i}px`,overflow:"hidden",borderTop:O}})}},{[`${n}-dropdown ${Z}, ${Z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:i,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},tL=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:i}=e;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:o,background:a},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i+1,width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${r}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${r}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${r}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${r}`}}}}},tB=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},tA=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},t_=e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},tF=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:c,tableSelectionColumnWidth:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4}},[`${t}-bordered ${t}-selection-col`]:{width:s+2*a,[`&${t}-selection-col-with-dropdown`]:{width:s+l+o/4+2*a}},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}}}}},tW=e=>{let{componentCls:t}=e,n=(n,r,l,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},tD=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:l,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},tK=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:i}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:i,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:i,display:"flex",alignItems:"center",background:a,borderTop:c,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},tV=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,l=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:l}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};let tX=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,lineWidth:o,lineType:a,tableBorderColor:i,tableFontSize:c,tableBg:s,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:x,tableFooterTextColor:b,tableFooterBg:v,paddingContentVerticalLG:y}=e,w=`${o}px ${a} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,tO.dF)()),{[t]:Object.assign(Object.assign({},(0,tO.Wf)(e)),{fontSize:c,background:s,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${y}px ${l}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${l}px`},[`${t}-thead`]:{[` - > tr > th, - > tr > td - `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:w,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${f} ease`},[` - &${t}-row:hover > th, - &${t}-row:hover > td, - > th${t}-cell-row-hover, - > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> th, > td":{background:g},"&:hover > th, &:hover > td":{background:x}}}},[`${t}-footer`]:{padding:`${r}px ${l}px`,color:b,background:v}})}};var tU=(0,tR.Z)("Table",e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:l,colorSplit:o,colorBorderSecondary:a,fontSize:i,padding:c,paddingXS:s,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:x,colorFillContent:b,colorFillSecondary:v,controlInteractiveSize:y}=e,w=new tN.C(p),C=new tN.C(m),$=new tN.C(v).onBackground(g).toHexShortString(),E=new tN.C(b).onBackground(g).toHexShortString(),S=new tN.C(f).onBackground(g).toHexShortString(),k=(0,tI.TS)(e,{tableFontSize:i,tableBg:g,tableRadius:x,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:s,tablePaddingVerticalSmall:s,tablePaddingHorizontalSmall:s,tableBorderColor:a,tableHeaderTextColor:l,tableHeaderBg:S,tableFooterTextColor:l,tableFooterBg:S,tableHeaderCellSplitColor:a,tableHeaderSortBg:$,tableHeaderSortHoverBg:E,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableBodySortBg:S,tableFixedHeaderSortActiveBg:$,tableHeaderFilterActiveBg:b,tableFilterDropdownBg:g,tableRowHoverBg:S,tableSelectedRowBg:t,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:i,tableFontSizeSmall:i,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollBg:o});return[tX(k),tB(k),tV(k),tD(k),tH(k),tj(k),tA(k),tM(k),tV(k),tT(k),tF(k),tL(k),tK(k),tP(k),tW(k),t_(k)]});let tG=[];var tY=u.forwardRef((e,t)=>{let n,r,l;let{prefixCls:a,className:i,rootClassName:c,style:s,size:d,bordered:f,dropdownPrefixCls:p,dataSource:m,pagination:h,rowSelection:g,rowKey:x="key",rowClassName:b,columns:v,children:y,childrenColumnName:w,onChange:C,getPopupContainer:$,loading:S,expandIcon:k,expandable:Z,expandedRowRender:N,expandIconColumnIndex:O,indentSize:R,scroll:I,sortDirections:j,locale:P,showSorterTooltip:T=!0}=e,z=u.useMemo(()=>v||eu(y),[v,y]),M=u.useMemo(()=>z.some(e=>e.responsive),[z]),H=(0,eR.Z)(M),L=u.useMemo(()=>{let e=new Set(Object.keys(H).filter(e=>H[e]));return z.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[z,H]),B=(0,eS.Z)(e,["className","style","columns"]),{locale:A=eI.Z,direction:_,table:F,renderEmpty:W,getPrefixCls:K,getPopupContainer:V}=u.useContext(eZ.E_),X=(0,eO.Z)(d),U=Object.assign(Object.assign({},A.Table),P),G=m||tG,Y=K("table",a),J=K("dropdown",p),q=Object.assign({childrenColumnName:w,expandIconColumnIndex:O},Z),{childrenColumnName:Q="children"}=q,ee=u.useMemo(()=>G.some(e=>null==e?void 0:e[Q])?"nest":N||Z&&Z.expandedRowRender?"row":null,[G]),et={body:u.useRef()},en=u.useMemo(()=>"function"==typeof x?x:e=>null==e?void 0:e[x],[x]),[er]=function(e,t,n){let r=u.useRef({});return[function(l){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=new Map;!function e(r){r.forEach((r,o)=>{let a=n(r,o);l.set(a,r),r&&"object"==typeof r&&t in r&&e(r[t]||[])})}(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return r.current.kvMap.get(l)}]}(G,Q,en),el={},eo=function(e,t){var n,r,l;let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=Object.assign(Object.assign({},el),e);o&&(null===(n=el.resetPagination)||void 0===n||n.call(el),(null===(r=a.pagination)||void 0===r?void 0:r.current)&&(a.pagination.current=1),h&&h.onChange&&h.onChange(1,null===(l=a.pagination)||void 0===l?void 0:l.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&et.body.current&&(0,ek.Z)(0,{getContainer:()=>et.body.current}),null==C||C(a.pagination,a.filters,a.sorter,{currentDataSource:e7(tZ(G,a.sorterStates,Q),a.filterStates),action:t})},[ea,ei,ec,es]=function(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:l,tableLocale:o,showSorterTooltip:a}=e,[i,c]=u.useState(tE(n,!0)),s=u.useMemo(()=>{let e=!0,t=tE(n,!1);if(!t.length)return i;let r=[];function l(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let o=null;return t.forEach(t=>{null===o?(l(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),l(t))}),r},[n,i]),d=u.useMemo(()=>{let e=s.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[s]);function f(e){let t;c(t=!1!==e.multiplePriority&&s.length&&!1!==s[0].multiplePriority?[].concat((0,D.Z)(s.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e]),r(tk(t),t)}return[e=>(function e(t,n,r,l,o,a,i,c){return(n||[]).map((n,s)=>{let d=eM(s,c),f=n;if(f.sorter){let e;let c=f.sortDirections||o,s=void 0===f.showSorterTooltip?i:f.showSorterTooltip,p=ez(f,d),m=r.find(e=>{let{key:t}=e;return t===p}),h=m?m.sortOrder:null,g=h?c[c.indexOf(h)+1]:c[0];if(n.sortIcon)e=n.sortIcon({sortOrder:h});else{let n=c.includes(ty)&&u.createElement(tb,{className:E()(`${t}-column-sorter-up`,{active:h===ty})}),r=c.includes(tw)&&u.createElement(tg,{className:E()(`${t}-column-sorter-down`,{active:h===tw})});e=u.createElement("span",{className:E()(`${t}-column-sorter`,{[`${t}-column-sorter-full`]:!!(n&&r)})},u.createElement("span",{className:`${t}-column-sorter-inner`,"aria-hidden":"true"},n,r))}let{cancelSort:x,triggerAsc:b,triggerDesc:v}=a||{},y=x;g===tw?y=v:g===ty&&(y=b);let w="object"==typeof s?s:{title:y};f=Object.assign(Object.assign({},f),{className:E()(f.className,{[`${t}-column-sort`]:h}),title:r=>{let l=u.createElement("div",{className:`${t}-column-sorters`},u.createElement("span",{className:`${t}-column-title`},eH(n.title,r)),e);return s?u.createElement(tv.Z,Object.assign({},w),l):l},onHeaderCell:e=>{let r=n.onHeaderCell&&n.onHeaderCell(e)||{},o=r.onClick,a=r.onKeyDown;r.onClick=e=>{l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==o||o(e)},r.onKeyDown=e=>{e.keyCode===eQ.Z.ENTER&&(l({column:n,key:p,sortOrder:g,multiplePriority:tC(n)}),null==a||a(e))};let i=function(e,t){let n=eH(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(n.title,{}),c=null==i?void 0:i.toString();return h?r["aria-sort"]="ascend"===h?"ascending":"descending":r["aria-label"]=c||"",r.className=E()(r.className,`${t}-column-has-sorters`),r.tabIndex=0,n.ellipsis&&(r.title=(null!=i?i:"").toString()),r}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:e(t,f.children,r,l,o,a,i,d)})),f})})(t,e,s,f,l,o,a),s,d,()=>tk(s)]}({prefixCls:Y,mergedColumns:L,onSorterChange:(e,t)=>{eo({sorter:e,sorterStates:t},"sort",!1)},sortDirections:j||["ascend","descend"],tableLocale:U,showSorterTooltip:T}),ed=u.useMemo(()=>tZ(G,ei,Q),[G,ei]);el.sorter=es(),el.sorterStates=ei;let[ef,ep,em]=e9({prefixCls:Y,locale:U,dropdownPrefixCls:J,mergedColumns:L,onFilterChange:(e,t)=>{eo({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||V}),eh=e7(ed,ep);el.filters=em,el.filterStates=ep;let eg=u.useMemo(()=>{let e={};return Object.keys(em).forEach(t=>{null!==em[t]&&(e[t]=em[t])}),Object.assign(Object.assign({},ec),{filters:e})},[ec,em]),[ex]=function(e){let t=u.useCallback(t=>(function e(t,n){return t.map(t=>{let r=Object.assign({},t);return r.title=eH(t.title,n),"children"in r&&(r.children=e(r.children,n)),r})})(t,e),[e]);return[t]}(eg),[eb,ev]=tn(eh.length,(e,t)=>{eo({pagination:Object.assign(Object.assign({},el.pagination),{current:e,pageSize:t})},"paginate")},h);el.pagination=!1===h?{}:function(e,t){let n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{let r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(eb,h),el.resetPagination=ev;let ey=u.useMemo(()=>{if(!1===h||!eb.pageSize)return eh;let{current:e=1,total:t,pageSize:n=10}=eb;return eh.lengthn?eh.slice((e-1)*n,e*n):eh:eh.slice((e-1)*n,e*n)},[!!h,eh,eb&&eb.current,eb&&eb.pageSize,eb&&eb.total]),[ew,eC]=tm({prefixCls:Y,data:eh,pageData:ey,getRowKey:en,getRecordByKey:er,expandType:ee,childrenColumnName:Q,locale:U,getPopupContainer:$||V},g);q.__PARENT_RENDER_ICON__=q.expandIcon,q.expandIcon=q.expandIcon||k||function(e){let{prefixCls:t,onExpand:n,record:r,expanded:l,expandable:o}=e,a=`${t}-row-expand-icon`;return u.createElement("button",{type:"button",onClick:e=>{n(r,e),e.stopPropagation()},className:E()(a,{[`${a}-spaced`]:!o,[`${a}-expanded`]:o&&l,[`${a}-collapsed`]:o&&!l}),"aria-label":l?U.collapse:U.expand,"aria-expanded":l})},"nest"===ee&&void 0===q.expandIconColumnIndex?q.expandIconColumnIndex=g?1:0:q.expandIconColumnIndex>0&&g&&(q.expandIconColumnIndex-=1),"number"!=typeof q.indentSize&&(q.indentSize="number"==typeof R?R:15);let e$=u.useCallback(e=>ex(ew(ef(ea(e)))),[ea,ef,ew]);if(!1!==h&&(null==eb?void 0:eb.total)){let e;e=eb.size?eb.size:"small"===X||"middle"===X?"small":void 0;let t=t=>u.createElement(ej.Z,Object.assign({},eb,{className:E()(`${Y}-pagination ${Y}-pagination-${t}`,eb.className),size:e})),l="rtl"===_?"left":"right",{position:o}=eb;if(null!==o&&Array.isArray(o)){let e=o.find(e=>e.includes("top")),a=o.find(e=>e.includes("bottom")),i=o.every(e=>"none"==`${e}`);e||a||i||(r=t(l)),e&&(n=t(e.toLowerCase().replace("top",""))),a&&(r=t(a.toLowerCase().replace("bottom","")))}else r=t(l)}"boolean"==typeof S?l={spinning:S}:"object"==typeof S&&(l=Object.assign({spinning:!0},S));let[eE,eL]=tU(Y),eB=E()(`${Y}-wrapper`,null==F?void 0:F.className,{[`${Y}-wrapper-rtl`]:"rtl"===_},i,c,eL),eA=Object.assign(Object.assign({},null==F?void 0:F.style),s),e_=P&&P.emptyText||(null==W?void 0:W("Table"))||u.createElement(eN.Z,{componentName:"Table"});return eE(u.createElement("div",{ref:t,className:eB,style:eA},u.createElement(eP.Z,Object.assign({spinning:!1},l),n,u.createElement(eT,Object.assign({},B,{columns:L,direction:_,expandable:q,prefixCls:Y,className:E()({[`${Y}-middle`]:"middle"===X,[`${Y}-small`]:"small"===X,[`${Y}-bordered`]:f,[`${Y}-empty`]:0===G.length}),data:ey,rowKey:en,rowClassName:(e,t,n)=>{let r;return r="function"==typeof b?E()(b(e,t,n)):E()(b),E()({[`${Y}-row-selected`]:eC.has(en(e,t))},r)},emptyText:e_,internalHooks:o,internalRefs:et,transformColumns:e$})),r)))});let tJ=u.forwardRef((e,t)=>{let n=u.useRef(0);return n.current+=1,u.createElement(tY,Object.assign({},e,{ref:t,_renderTimes:n.current}))});tJ.SELECTION_COLUMN=tc,tJ.EXPAND_COLUMN=l,tJ.SELECTION_ALL=ts,tJ.SELECTION_INVERT=tu,tJ.SELECTION_NONE=td,tJ.Column=function(e){return null},tJ.ColumnGroup=function(e){return null},tJ.Summary=z;var tq=tJ},64019:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(73935);function l(e,t,n,l){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,l),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,l)}}}},27678:function(e,t,n){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function l(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}n.d(t,{g1:function(){return r},os:function(){return l}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/64-91b49d45b9846775.js b/dbgpt/app/static/_next/static/chunks/64-91b49d45b9846775.js deleted file mode 100644 index 65b2267b2..000000000 --- a/dbgpt/app/static/_next/static/chunks/64-91b49d45b9846775.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64],{63606:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(87462),o=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},l=r(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},99611:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(87462),o=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},l=r(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},68795:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(87462),o=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},l=r(84089),i=o.forwardRef(function(e,t){return o.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:a}))})},74443:function(e,t,r){r.d(t,{Z:function(){return s},c:function(){return a}});var n=r(67294),o=r(25976);let a=["xxl","xl","lg","md","sm","xs"],l=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),i=e=>{let t=[].concat(a).reverse();return t.forEach((r,n)=>{let o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(e[a]<=e[l]))throw Error(`${a}<=${l} fails : !(${e[a]}<=${e[l]})`);if(n{let e=new Map,r=-1,n={};return{matchHandlers:{},dispatch:t=>(n=t,e.forEach(e=>e(n)),e.size>=1),subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let r=t[e],n=this.matchHandlers[r];null==n||n.mql.removeListener(null==n?void 0:n.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let r=t[e],o=t=>{let{matches:r}=t;this.dispatch(Object.assign(Object.assign({},n),{[e]:r}))},a=window.matchMedia(r);a.addListener(o),this.matchHandlers[r]={mql:a,listener:o},o(a)})},responsiveMap:t}},[e])}},9708:function(e,t,r){r.d(t,{F:function(){return l},Z:function(){return a}});var n=r(94184),o=r.n(n);function a(e,t,r){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:r})}let l=(e,t)=>t||e},32983:function(e,t,r){r.d(t,{Z:function(){return v}});var n=r(94184),o=r.n(n),a=r(67294),l=r(53124),i=r(10110),s=r(10274),c=r(25976),d=r(67968),u=r(45503);let p=e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:o,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var f=(0,d.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:r}=e,n=(0,u.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*r,emptyImgHeightMD:r,emptyImgHeightSM:.875*r});return[p(n)]}),g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let m=a.createElement(()=>{let[,e]=(0,c.Z)(),t=new s.C(e.colorBgBase),r=t.toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),b=a.createElement(()=>{let[,e]=(0,c.Z)(),{colorFill:t,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:o}=e,{borderColor:l,shadowColor:i,contentColor:d}=(0,a.useMemo)(()=>({borderColor:new s.C(t).onBackground(o).toHexShortString(),shadowColor:new s.C(r).onBackground(o).toHexShortString(),contentColor:new s.C(n).onBackground(o).toHexShortString()}),[t,r,n,o]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:l},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},null),h=e=>{var{className:t,rootClassName:r,prefixCls:n,image:s=m,description:c,children:d,imageStyle:u,style:p}=e,h=g(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);let{getPrefixCls:v,direction:x,empty:$}=a.useContext(l.E_),y=v("empty",n),[w,E]=f(y),[S]=(0,i.Z)("Empty"),C=void 0!==c?c:null==S?void 0:S.description,O="string"==typeof C?C:"empty",z=null;return z="string"==typeof s?a.createElement("img",{alt:O,src:s}):s,w(a.createElement("div",Object.assign({className:o()(E,y,null==$?void 0:$.className,{[`${y}-normal`]:s===b,[`${y}-rtl`]:"rtl"===x},t,r),style:Object.assign(Object.assign({},null==$?void 0:$.style),p)},h),a.createElement("div",{className:`${y}-image`,style:u},z),C&&a.createElement("div",{className:`${y}-description`},C),d&&a.createElement("div",{className:`${y}-footer`},d)))};h.PRESENTED_IMAGE_DEFAULT=m,h.PRESENTED_IMAGE_SIMPLE=b;var v=h},99134:function(e,t,r){var n=r(67294);let o=(0,n.createContext)({});t.Z=o},21584:function(e,t,r){var n=r(94184),o=r.n(n),a=r(67294),l=r(53124),i=r(99134),s=r(6999),c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let d=["xs","sm","md","lg","xl","xxl"],u=a.forwardRef((e,t)=>{let{getPrefixCls:r,direction:n}=a.useContext(l.E_),{gutter:u,wrap:p,supportFlexGap:f}=a.useContext(i.Z),{prefixCls:g,span:m,order:b,offset:h,push:v,pull:x,className:$,children:y,flex:w,style:E}=e,S=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=r("col",g),[O,z]=(0,s.c)(C),R={};d.forEach(t=>{let r={},o=e[t];"number"==typeof o?r.span=o:"object"==typeof o&&(r=o||{}),delete S[t],R=Object.assign(Object.assign({},R),{[`${C}-${t}-${r.span}`]:void 0!==r.span,[`${C}-${t}-order-${r.order}`]:r.order||0===r.order,[`${C}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${C}-${t}-push-${r.push}`]:r.push||0===r.push,[`${C}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${C}-${t}-flex-${r.flex}`]:r.flex||"auto"===r.flex,[`${C}-rtl`]:"rtl"===n})});let j=o()(C,{[`${C}-${m}`]:void 0!==m,[`${C}-order-${b}`]:b,[`${C}-offset-${h}`]:h,[`${C}-push-${v}`]:v,[`${C}-pull-${x}`]:x},$,R,z),Z={};if(u&&u[0]>0){let e=u[0]/2;Z.paddingLeft=e,Z.paddingRight=e}if(u&&u[1]>0&&!f){let e=u[1]/2;Z.paddingTop=e,Z.paddingBottom=e}return w&&(Z.flex="number"==typeof w?`${w} ${w} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(w)?`0 0 ${w}`:w,!1!==p||Z.minWidth||(Z.minWidth=0)),O(a.createElement("div",Object.assign({},S,{style:Object.assign(Object.assign({},Z),E),className:j,ref:t}),y))});t.Z=u},92820:function(e,t,r){var n=r(94184),o=r.n(n),a=r(67294),l=r(53124),i=r(98082),s=r(74443),c=r(99134),d=r(6999),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function p(e,t){let[r,n]=a.useState("string"==typeof e?e:""),o=()=>{if("string"==typeof e&&n(e),"object"==typeof e)for(let r=0;r{o()},[JSON.stringify(e),t]),r}let f=a.forwardRef((e,t)=>{let{prefixCls:r,justify:n,align:f,className:g,style:m,children:b,gutter:h=0,wrap:v}=e,x=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:$,direction:y}=a.useContext(l.E_),[w,E]=a.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[S,C]=a.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),O=p(f,S),z=p(n,S),R=(0,i.Z)(),j=a.useRef(h),Z=(0,s.Z)();a.useEffect(()=>{let e=Z.subscribe(e=>{C(e);let t=j.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&E(e)});return()=>Z.unsubscribe(e)},[]);let I=$("row",r),[H,M]=(0,d.V)(I),P=(()=>{let e=[void 0,void 0],t=Array.isArray(h)?h:[h,void 0];return t.forEach((t,r)=>{if("object"==typeof t)for(let n=0;n0?-(P[0]/2):void 0,B=null!=P[1]&&P[1]>0?-(P[1]/2):void 0;A&&(k.marginLeft=A,k.marginRight=A),R?[,k.rowGap]=P:B&&(k.marginTop=B,k.marginBottom=B);let[T,W]=P,L=a.useMemo(()=>({gutter:[T,W],wrap:v,supportFlexGap:R}),[T,W,v,R]);return H(a.createElement(c.Z.Provider,{value:L},a.createElement("div",Object.assign({},x,{className:N,style:Object.assign(Object.assign({},k),m),ref:t}),b)))});t.Z=f},6999:function(e,t,r){r.d(t,{V:function(){return d},c:function(){return u}});var n=r(67968),o=r(45503);let a=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},l=e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},i=(e,t)=>{let{componentCls:r,gridColumns:n}=e,o={};for(let e=n;e>=0;e--)0===e?(o[`${r}${t}-${e}`]={display:"none"},o[`${r}-push-${e}`]={insetInlineStart:"auto"},o[`${r}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${e}`]={marginInlineStart:0},o[`${r}${t}-order-${e}`]={order:0}):(o[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/n*100}%`,maxWidth:`${e/n*100}%`}],o[`${r}${t}-push-${e}`]={insetInlineStart:`${e/n*100}%`},o[`${r}${t}-pull-${e}`]={insetInlineEnd:`${e/n*100}%`},o[`${r}${t}-offset-${e}`]={marginInlineStart:`${e/n*100}%`},o[`${r}${t}-order-${e}`]={order:e});return o},s=(e,t)=>i(e,t),c=(e,t,r)=>({[`@media (min-width: ${t}px)`]:Object.assign({},s(e,r))}),d=(0,n.Z)("Grid",e=>[a(e)]),u=(0,n.Z)("Grid",e=>{let t=(0,o.TS)(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[l(t),s(t,""),s(t,"-xs"),Object.keys(r).map(e=>c(t,r[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]})},59566:function(e,t,r){r.d(t,{default:function(){return er}});var n,o=r(94184),a=r.n(o),l=r(67294),i=r(53124),s=r(65223),c=r(47673),d=r(4340),u=r(67656),p=r(42550),f=r(9708),g=r(98866),m=r(98675),b=r(4173);function h(e,t){let r=(0,l.useRef)([]),n=()=>{r.current.push(setTimeout(()=>{var t,r,n,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(r=e.current)||void 0===r?void 0:r.input.getAttribute("type"))==="password"&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,l.useEffect)(()=>(t&&n(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),n}var v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let x=(0,l.forwardRef)((e,t)=>{var r;let n;let{prefixCls:o,bordered:x=!0,status:$,size:y,disabled:w,onBlur:E,onFocus:S,suffix:C,allowClear:O,addonAfter:z,addonBefore:R,className:j,style:Z,styles:I,rootClassName:H,onChange:M,classNames:P}=e,N=v(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:k,direction:A,input:B}=l.useContext(i.E_),T=k("input",o),W=(0,l.useRef)(null),[L,D]=(0,c.ZP)(T),{compactSize:F,compactItemClassnames:V}=(0,b.ri)(T,A),X=(0,m.Z)(e=>{var t;return null!==(t=null!=y?y:F)&&void 0!==t?t:e}),G=l.useContext(g.Z),_=null!=w?w:G,{status:Q,hasFeedback:U,feedbackIcon:J}=(0,l.useContext)(s.aM),q=(0,f.F)(Q,$),K=!!(e.prefix||e.suffix||e.allowClear)||!!U,Y=(0,l.useRef)(K);(0,l.useEffect)(()=>{K&&Y.current,Y.current=K},[K]);let ee=h(W,!0),et=(U||C)&&l.createElement(l.Fragment,null,C,U&&J);return"object"==typeof O&&(null==O?void 0:O.clearIcon)?n=O:O&&(n={clearIcon:l.createElement(d.Z,null)}),L(l.createElement(u.Z,Object.assign({ref:(0,p.sQ)(t,W),prefixCls:T,autoComplete:null==B?void 0:B.autoComplete},N,{disabled:_,onBlur:e=>{ee(),null==E||E(e)},onFocus:e=>{ee(),null==S||S(e)},style:Object.assign(Object.assign({},null==B?void 0:B.style),Z),styles:Object.assign(Object.assign({},null==B?void 0:B.styles),I),suffix:et,allowClear:n,className:a()(j,H,V,null==B?void 0:B.className),onChange:e=>{ee(),null==M||M(e)},addonAfter:z&&l.createElement(b.BR,null,l.createElement(s.Ux,{override:!0,status:!0},z)),addonBefore:R&&l.createElement(b.BR,null,l.createElement(s.Ux,{override:!0,status:!0},R)),classNames:Object.assign(Object.assign(Object.assign({},P),null==B?void 0:B.classNames),{input:a()({[`${T}-sm`]:"small"===X,[`${T}-lg`]:"large"===X,[`${T}-rtl`]:"rtl"===A,[`${T}-borderless`]:!x},!K&&(0,f.Z)(T,q),null==P?void 0:P.input,null===(r=null==B?void 0:B.classNames)||void 0===r?void 0:r.input,D)}),classes:{affixWrapper:a()({[`${T}-affix-wrapper-sm`]:"small"===X,[`${T}-affix-wrapper-lg`]:"large"===X,[`${T}-affix-wrapper-rtl`]:"rtl"===A,[`${T}-affix-wrapper-borderless`]:!x},(0,f.Z)(`${T}-affix-wrapper`,q,U),D),wrapper:a()({[`${T}-group-rtl`]:"rtl"===A},D),group:a()({[`${T}-group-wrapper-sm`]:"small"===X,[`${T}-group-wrapper-lg`]:"large"===X,[`${T}-group-wrapper-rtl`]:"rtl"===A,[`${T}-group-wrapper-disabled`]:_},(0,f.Z)(`${T}-group-wrapper`,q,U),D)}})))});var $=r(87462),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},w=r(84089),E=l.forwardRef(function(e,t){return l.createElement(w.Z,(0,$.Z)({},e,{ref:t,icon:y}))}),S=r(99611),C=r(98423),O=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let z=e=>e?l.createElement(S.Z,null):l.createElement(E,null),R={click:"onClick",hover:"onMouseOver"},j=l.forwardRef((e,t)=>{let{visibilityToggle:r=!0}=e,n="object"==typeof r&&void 0!==r.visible,[o,s]=(0,l.useState)(()=>!!n&&r.visible),c=(0,l.useRef)(null);l.useEffect(()=>{n&&s(r.visible)},[n,r]);let d=h(c),u=()=>{let{disabled:t}=e;t||(o&&d(),s(e=>{var t;let n=!e;return"object"==typeof r&&(null===(t=r.onVisibleChange)||void 0===t||t.call(r,n)),n}))},{className:f,prefixCls:g,inputPrefixCls:m,size:b}=e,v=O(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=l.useContext(i.E_),y=$("input",m),w=$("input-password",g),E=r&&(t=>{let{action:r="click",iconRender:n=z}=e,a=R[r]||"",i=n(o),s={[a]:u,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return l.cloneElement(l.isValidElement(i)?i:l.createElement("span",null,i),s)})(w),S=a()(w,f,{[`${w}-${b}`]:!!b}),j=Object.assign(Object.assign({},(0,C.Z)(v,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:S,prefixCls:y,suffix:E});return b&&(j.size=b),l.createElement(x,Object.assign({ref:(0,p.sQ)(t,c)},j))});var Z=r(68795),I=r(96159),H=r(71577),M=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let P=l.forwardRef((e,t)=>{let r;let{prefixCls:n,inputPrefixCls:o,className:s,size:c,suffix:d,enterButton:u=!1,addonAfter:f,loading:g,disabled:h,onSearch:v,onChange:$,onCompositionStart:y,onCompositionEnd:w}=e,E=M(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:S,direction:C}=l.useContext(i.E_),O=l.useRef(!1),z=S("input-search",n),R=S("input",o),{compactSize:j}=(0,b.ri)(z,C),P=(0,m.Z)(e=>{var t;return null!==(t=null!=c?c:j)&&void 0!==t?t:e}),N=l.useRef(null),k=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},A=e=>{var t,r;v&&v(null===(r=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===r?void 0:r.value,e)},B="boolean"==typeof u?l.createElement(Z.Z,null):null,T=`${z}-button`,W=u||{},L=W.type&&!0===W.type.__ANT_BUTTON;r=L||"button"===W.type?(0,I.Tm)(W,Object.assign({onMouseDown:k,onClick:e=>{var t,r;null===(r=null===(t=null==W?void 0:W.props)||void 0===t?void 0:t.onClick)||void 0===r||r.call(t,e),A(e)},key:"enterButton"},L?{className:T,size:P}:{})):l.createElement(H.ZP,{className:T,type:u?"primary":void 0,size:P,disabled:h,key:"enterButton",onMouseDown:k,onClick:A,loading:g,icon:B},u),f&&(r=[r,(0,I.Tm)(f,{key:"addonAfter"})]);let D=a()(z,{[`${z}-rtl`]:"rtl"===C,[`${z}-${P}`]:!!P,[`${z}-with-button`]:!!u},s);return l.createElement(x,Object.assign({ref:(0,p.sQ)(N,t),onPressEnter:e=>{O.current||g||A(e)}},E,{size:P,onCompositionStart:e=>{O.current=!0,null==y||y(e)},onCompositionEnd:e=>{O.current=!1,null==w||w(e)},prefixCls:R,addonAfter:r,suffix:d,onChange:e=>{e&&e.target&&"click"===e.type&&v&&v(e.target.value,e),$&&$(e)},className:D,disabled:h}))});var N=r(1413),k=r(4942),A=r(71002),B=r(97685),T=r(45987),W=r(74902),L=r(87887),D=r(21770),F=r(9220),V=r(8410),X=r(75164),G=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],_={},Q=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],U=l.forwardRef(function(e,t){var r=e.prefixCls,o=(e.onPressEnter,e.defaultValue),i=e.value,s=e.autoSize,c=e.onResize,d=e.className,u=e.style,p=e.disabled,f=e.onChange,g=(e.onInternalAutoSize,(0,T.Z)(e,Q)),m=(0,D.Z)(o,{value:i,postState:function(e){return null!=e?e:""}}),b=(0,B.Z)(m,2),h=b[0],v=b[1],x=l.useRef();l.useImperativeHandle(t,function(){return{textArea:x.current}});var y=l.useMemo(function(){return s&&"object"===(0,A.Z)(s)?[s.minRows,s.maxRows]:[]},[s]),w=(0,B.Z)(y,2),E=w[0],S=w[1],C=!!s,O=function(){try{if(document.activeElement===x.current){var e=x.current,t=e.selectionStart,r=e.selectionEnd,n=e.scrollTop;x.current.setSelectionRange(t,r),x.current.scrollTop=n}}catch(e){}},z=l.useState(2),R=(0,B.Z)(z,2),j=R[0],Z=R[1],I=l.useState(),H=(0,B.Z)(I,2),M=H[0],P=H[1],W=function(){Z(0)};(0,V.Z)(function(){C&&W()},[i,E,S,C]),(0,V.Z)(function(){if(0===j)Z(1);else if(1===j){var e=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_[r])return _[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),l=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),i={sizingStyle:G.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:l,boxSizing:o};return t&&r&&(_[r]=i),i}(e,r),i=l.paddingSize,s=l.borderSize,c=l.boxSizing,d=l.sizingStyle;n.setAttribute("style","".concat(d,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),n.value=e.value||e.placeholder||"";var u=void 0,p=void 0,f=n.scrollHeight;if("border-box"===c?f+=s:"content-box"===c&&(f-=i),null!==o||null!==a){n.value=" ";var g=n.scrollHeight-i;null!==o&&(u=g*o,"border-box"===c&&(u=u+i+s),f=Math.max(u,f)),null!==a&&(p=g*a,"border-box"===c&&(p=p+i+s),t=f>p?"":"hidden",f=Math.min(p,f))}var m={height:f,overflowY:t,resize:"none"};return u&&(m.minHeight=u),p&&(m.maxHeight=p),m}(x.current,!1,E,S);Z(2),P(e)}else O()},[j]);var L=l.useRef(),U=function(){X.Z.cancel(L.current)};l.useEffect(function(){return U},[]);var J=C?M:null,q=(0,N.Z)((0,N.Z)({},u),J);return(0===j||1===j)&&(q.overflowY="hidden",q.overflowX="hidden"),l.createElement(F.Z,{onResize:function(e){2===j&&(null==c||c(e),s&&(U(),L.current=(0,X.Z)(function(){W()})))},disabled:!(s||c)},l.createElement("textarea",(0,$.Z)({},g,{ref:x,style:q,className:a()(r,d,(0,k.Z)({},"".concat(r,"-disabled"),p)),disabled:p,value:h,onChange:function(e){v(e.target.value),null==f||f(e)}})))}),J=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function q(e,t){return(0,W.Z)(e||"").slice(0,t).join("")}function K(e,t,r,n){var o=r;return e?o=q(r,n):(0,W.Z)(t||"").lengthn&&(o=t),o}var Y=l.forwardRef(function(e,t){var r,n,o=e.defaultValue,i=e.value,s=e.onFocus,c=e.onBlur,d=e.onChange,p=e.allowClear,f=e.maxLength,g=e.onCompositionStart,m=e.onCompositionEnd,b=e.suffix,h=e.prefixCls,v=void 0===h?"rc-textarea":h,x=e.classes,y=e.showCount,w=e.className,E=e.style,S=e.disabled,C=e.hidden,O=e.classNames,z=e.styles,R=e.onResize,j=(0,T.Z)(e,J),Z=(0,D.Z)(o,{value:i,defaultValue:o}),I=(0,B.Z)(Z,2),H=I[0],M=I[1],P=(0,l.useRef)(null),F=l.useState(!1),V=(0,B.Z)(F,2),X=V[0],G=V[1],_=l.useState(!1),Q=(0,B.Z)(_,2),Y=Q[0],ee=Q[1],et=l.useRef(),er=l.useRef(0),en=l.useState(null),eo=(0,B.Z)(en,2),ea=eo[0],el=eo[1],ei=function(){var e;null===(e=P.current)||void 0===e||e.textArea.focus()};(0,l.useImperativeHandle)(t,function(){return{resizableTextArea:P.current,focus:ei,blur:function(){var e;null===(e=P.current)||void 0===e||e.textArea.blur()}}}),(0,l.useEffect)(function(){G(function(e){return!S&&e})},[S]);var es=Number(f)>0,ec=(0,L.D7)(H);!Y&&es&&null==i&&(ec=q(ec,f));var ed=b;if(y){var eu=(0,W.Z)(ec).length;n="object"===(0,A.Z)(y)?y.formatter({value:ec,count:eu,maxLength:f}):"".concat(eu).concat(es?" / ".concat(f):""),ed=l.createElement(l.Fragment,null,ed,l.createElement("span",{className:a()("".concat(v,"-data-count"),null==O?void 0:O.count),style:null==z?void 0:z.count},n))}var ep=!j.autoSize&&!y&&!p;return l.createElement(u.Q,{value:ec,allowClear:p,handleReset:function(e){var t;M(""),ei(),(0,L.rJ)(null===(t=P.current)||void 0===t?void 0:t.textArea,e,d)},suffix:ed,prefixCls:v,classes:{affixWrapper:a()(null==x?void 0:x.affixWrapper,(r={},(0,k.Z)(r,"".concat(v,"-show-count"),y),(0,k.Z)(r,"".concat(v,"-textarea-allow-clear"),p),r))},disabled:S,focused:X,className:w,style:(0,N.Z)((0,N.Z)({},E),ea&&!ep?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof n?n:void 0}},hidden:C,inputElement:l.createElement(U,(0,$.Z)({},j,{onKeyDown:function(e){var t=j.onPressEnter,r=j.onKeyDown;"Enter"===e.key&&t&&t(e),null==r||r(e)},onChange:function(e){var t=e.target.value;!Y&&es&&(t=K(e.target.selectionStart>=f+1||e.target.selectionStart===t.length||!e.target.selectionStart,H,t,f)),M(t),(0,L.rJ)(e.currentTarget,e,d,t)},onFocus:function(e){G(!0),null==s||s(e)},onBlur:function(e){G(!1),null==c||c(e)},onCompositionStart:function(e){ee(!0),et.current=H,er.current=e.currentTarget.selectionStart,null==g||g(e)},onCompositionEnd:function(e){ee(!1);var t,r=e.currentTarget.value;es&&(r=K(er.current>=f+1||er.current===(null===(t=et.current)||void 0===t?void 0:t.length),et.current,r,f)),r!==H&&(M(r),(0,L.rJ)(e.currentTarget,e,d,r)),null==m||m(e)},className:null==O?void 0:O.textarea,style:(0,N.Z)((0,N.Z)({},null==z?void 0:z.textarea),{},{resize:null==E?void 0:E.resize}),disabled:S,prefixCls:v,onResize:function(e){var t;null==R||R(e),null!==(t=P.current)&&void 0!==t&&t.textArea.style.height&&el(!0)},ref:P}))})}),ee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let et=(0,l.forwardRef)((e,t)=>{let r;let{prefixCls:n,bordered:o=!0,size:u,disabled:p,status:b,allowClear:h,showCount:v,classNames:x}=e,$=ee(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:y,direction:w}=l.useContext(i.E_),E=(0,m.Z)(u),S=l.useContext(g.Z),{status:C,hasFeedback:O,feedbackIcon:z}=l.useContext(s.aM),R=(0,f.F)(C,b),j=l.useRef(null);l.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=j.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,r;!function(e,t){if(!e)return;e.focus(t);let{cursor:r}=t||{};if(r){let t=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(r=null===(t=j.current)||void 0===t?void 0:t.resizableTextArea)||void 0===r?void 0:r.textArea,e)},blur:()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.blur()}}});let Z=y("input",n);"object"==typeof h&&(null==h?void 0:h.clearIcon)?r=h:h&&(r={clearIcon:l.createElement(d.Z,null)});let[I,H]=(0,c.ZP)(Z);return I(l.createElement(Y,Object.assign({},$,{disabled:null!=p?p:S,allowClear:r,classes:{affixWrapper:a()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:"rtl"===w,[`${Z}-affix-wrapper-borderless`]:!o,[`${Z}-affix-wrapper-sm`]:"small"===E,[`${Z}-affix-wrapper-lg`]:"large"===E,[`${Z}-textarea-show-count`]:v},(0,f.Z)(`${Z}-affix-wrapper`,R),H)},classNames:Object.assign(Object.assign({},x),{textarea:a()({[`${Z}-borderless`]:!o,[`${Z}-sm`]:"small"===E,[`${Z}-lg`]:"large"===E},(0,f.Z)(Z,R),H,null==x?void 0:x.textarea)}),prefixCls:Z,suffix:O&&l.createElement("span",{className:`${Z}-textarea-suffix`},z),showCount:v,ref:j})))});x.Group=e=>{let{getPrefixCls:t,direction:r}=(0,l.useContext)(i.E_),{prefixCls:n,className:o}=e,d=t("input-group",n),u=t("input"),[p,f]=(0,c.ZP)(u),g=a()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===r},f,o),m=(0,l.useContext)(s.aM),b=(0,l.useMemo)(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return p(l.createElement("span",{className:g,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(s.aM.Provider,{value:b},e.children)))},x.Search=P,x.TextArea=et,x.Password=j;var er=x},47673:function(e,t,r){r.d(t,{M1:function(){return c},Xy:function(){return d},bi:function(){return f},e5:function(){return y},ik:function(){return g},nz:function(){return i},pU:function(){return s},s7:function(){return m},x0:function(){return p}});var n=r(14747),o=r(80110),a=r(45503),l=r(67968);let i=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),s=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),c=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),d=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},s((0,a.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),u=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:r,lineHeight:n,borderRadius:o}},p=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{let{componentCls:r,colorError:n,colorWarning:o,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:s,colorWarningBorderHover:d}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:s},"&:focus, &-focused":Object.assign({},c((0,a.TS)(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:l}))),[`${r}-prefix, ${r}-suffix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:d},"&:focus, &-focused":Object.assign({},c((0,a.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${r}-prefix, ${r}-suffix`]:{color:o}}}},g=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},i(e.colorTextPlaceholder)),{"&:hover":Object.assign({},s(e)),"&:focus, &-focused":Object.assign({},c(e)),"&-disabled, &[disabled]":Object.assign({},d(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},p(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{let{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},p(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,n.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${r}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, - & > ${r}-select-auto-complete ${t}, - & > ${r}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${r}-select:first-child > ${r}-select-selector, - & > ${r}-select-auto-complete:first-child ${t}, - & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${r}-select:last-child > ${r}-select-selector, - & > ${r}-cascader-picker:last-child ${t}, - & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},b=e=>{let{componentCls:t,controlHeightSM:r,lineWidth:o}=e,a=(r-2*o-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),g(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},h=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},v=e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:l,iconCls:i}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},g(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},s(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),h(e)),{[`${i}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}}),f(e,`${t}-affix-wrapper`))}},x=e=>{let{componentCls:t,colorError:r,colorWarning:o,borderRadiusLG:a,borderRadiusSM:l}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:a,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-status-warning":{[`${t}-group-addon`]:{color:o,borderColor:o}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},d(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},$=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function y(e){return(0,a.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let w=e=>{let{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${n}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};t.ZP=(0,l.Z)("Input",e=>{let t=y(e);return[b(t),w(t),v(t),x(t),$(t),(0,o.c)(t)]})},67656:function(e,t,r){r.d(t,{Q:function(){return u},Z:function(){return v}});var n=r(87462),o=r(1413),a=r(4942),l=r(71002),i=r(94184),s=r.n(i),c=r(67294),d=r(87887),u=function(e){var t=e.inputElement,r=e.prefixCls,i=e.prefix,u=e.suffix,p=e.addonBefore,f=e.addonAfter,g=e.className,m=e.style,b=e.disabled,h=e.readOnly,v=e.focused,x=e.triggerFocus,$=e.allowClear,y=e.value,w=e.handleReset,E=e.hidden,S=e.classes,C=e.classNames,O=e.dataAttrs,z=e.styles,R=e.components,j=(null==R?void 0:R.affixWrapper)||"span",Z=(null==R?void 0:R.groupWrapper)||"span",I=(null==R?void 0:R.wrapper)||"span",H=(null==R?void 0:R.groupAddon)||"span",M=(0,c.useRef)(null),P=(0,c.cloneElement)(t,{value:y,hidden:E,className:s()(null===(N=t.props)||void 0===N?void 0:N.className,!(0,d.X3)(e)&&!(0,d.He)(e)&&g)||null,style:(0,o.Z)((0,o.Z)({},null===(k=t.props)||void 0===k?void 0:k.style),(0,d.X3)(e)||(0,d.He)(e)?{}:m)});if((0,d.X3)(e)){var N,k,A,B="".concat(r,"-affix-wrapper"),T=s()(B,(A={},(0,a.Z)(A,"".concat(B,"-disabled"),b),(0,a.Z)(A,"".concat(B,"-focused"),v),(0,a.Z)(A,"".concat(B,"-readonly"),h),(0,a.Z)(A,"".concat(B,"-input-with-clear-btn"),u&&$&&y),A),!(0,d.He)(e)&&g,null==S?void 0:S.affixWrapper,null==C?void 0:C.affixWrapper),W=(u||$)&&c.createElement("span",{className:s()("".concat(r,"-suffix"),null==C?void 0:C.suffix),style:null==z?void 0:z.suffix},function(){if(!$)return null;var e,t=!b&&!h&&y,n="".concat(r,"-clear-icon"),o="object"===(0,l.Z)($)&&null!=$&&$.clearIcon?$.clearIcon:"✖";return c.createElement("span",{onClick:w,onMouseDown:function(e){return e.preventDefault()},className:s()(n,(e={},(0,a.Z)(e,"".concat(n,"-hidden"),!t),(0,a.Z)(e,"".concat(n,"-has-suffix"),!!u),e)),role:"button",tabIndex:-1},o)}(),u);P=c.createElement(j,(0,n.Z)({className:T,style:(0,o.Z)((0,o.Z)({},(0,d.He)(e)?void 0:m),null==z?void 0:z.affixWrapper),hidden:!(0,d.He)(e)&&E,onClick:function(e){var t;null!==(t=M.current)&&void 0!==t&&t.contains(e.target)&&(null==x||x())}},null==O?void 0:O.affixWrapper,{ref:M}),i&&c.createElement("span",{className:s()("".concat(r,"-prefix"),null==C?void 0:C.prefix),style:null==z?void 0:z.prefix},i),(0,c.cloneElement)(t,{value:y,hidden:null}),W)}if((0,d.He)(e)){var L="".concat(r,"-group"),D="".concat(L,"-addon"),F=s()("".concat(r,"-wrapper"),L,null==S?void 0:S.wrapper),V=s()("".concat(r,"-group-wrapper"),g,null==S?void 0:S.group);return c.createElement(Z,{className:V,style:m,hidden:E},c.createElement(I,{className:F},p&&c.createElement(H,{className:D},p),(0,c.cloneElement)(P,{hidden:null}),f&&c.createElement(H,{className:D},f)))}return P},p=r(74902),f=r(97685),g=r(45987),m=r(21770),b=r(98423),h=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],v=(0,c.forwardRef)(function(e,t){var r,i=e.autoComplete,v=e.onChange,x=e.onFocus,$=e.onBlur,y=e.onPressEnter,w=e.onKeyDown,E=e.prefixCls,S=void 0===E?"rc-input":E,C=e.disabled,O=e.htmlSize,z=e.className,R=e.maxLength,j=e.suffix,Z=e.showCount,I=e.type,H=e.classes,M=e.classNames,P=e.styles,N=(0,g.Z)(e,h),k=(0,m.Z)(e.defaultValue,{value:e.value}),A=(0,f.Z)(k,2),B=A[0],T=A[1],W=(0,c.useState)(!1),L=(0,f.Z)(W,2),D=L[0],F=L[1],V=(0,c.useRef)(null),X=function(e){V.current&&(0,d.nH)(V.current,e)};return(0,c.useImperativeHandle)(t,function(){return{focus:X,blur:function(){var e;null===(e=V.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,r){var n;null===(n=V.current)||void 0===n||n.setSelectionRange(e,t,r)},select:function(){var e;null===(e=V.current)||void 0===e||e.select()},input:V.current}}),(0,c.useEffect)(function(){F(function(e){return(!e||!C)&&e})},[C]),c.createElement(u,(0,n.Z)({},N,{prefixCls:S,className:z,inputElement:(r=(0,b.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),c.createElement("input",(0,n.Z)({autoComplete:i},r,{onChange:function(t){void 0===e.value&&T(t.target.value),V.current&&(0,d.rJ)(V.current,t,v)},onFocus:function(e){F(!0),null==x||x(e)},onBlur:function(e){F(!1),null==$||$(e)},onKeyDown:function(e){y&&"Enter"===e.key&&y(e),null==w||w(e)},className:s()(S,(0,a.Z)({},"".concat(S,"-disabled"),C),null==M?void 0:M.input),style:null==P?void 0:P.input,ref:V,size:O,type:void 0===I?"text":I}))),handleReset:function(e){T(""),X(),V.current&&(0,d.rJ)(V.current,e,v)},value:(0,d.D7)(B),focused:D,triggerFocus:X,suffix:function(){var e=Number(R)>0;if(j||Z){var t=(0,d.D7)(B),r=(0,p.Z)(t).length,n="object"===(0,l.Z)(Z)?Z.formatter({value:t,count:r,maxLength:R}):"".concat(r).concat(e?" / ".concat(R):"");return c.createElement(c.Fragment,null,!!Z&&c.createElement("span",{className:s()("".concat(S,"-show-count-suffix"),(0,a.Z)({},"".concat(S,"-show-count-has-suffix"),!!j),null==M?void 0:M.count),style:(0,o.Z)({},null==P?void 0:P.count)},n),j)}return null}(),disabled:C,classes:H,classNames:M,styles:P}))})},87887:function(e,t,r){function n(e){return!!(e.addonBefore||e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function a(e,t,r,n){if(r){var o=t;if("click"===t.type){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",r(o);return}if(void 0!==n){o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,r(o);return}r(o)}}function l(e,t){if(e){e.focus(t);var r=(t||{}).cursor;if(r){var n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}function i(e){return null==e?"":String(e)}r.d(t,{D7:function(){return i},He:function(){return n},X3:function(){return o},nH:function(){return l},rJ:function(){return a}})}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/810-84757da754c6f3fc.js b/dbgpt/app/static/_next/static/chunks/810-84757da754c6f3fc.js new file mode 100644 index 000000000..a35c6bc33 --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/810-84757da754c6f3fc.js @@ -0,0 +1,16 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[810],{6171:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))})},25378:function(e,t,n){var i=n(67294),o=n(8410),r=n(57838),a=n(74443);t.Z=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)({}),n=(0,r.Z)(),l=(0,a.Z)();return(0,o.Z)(()=>{let i=l.subscribe(i=>{t.current=i,e&&n()});return()=>l.unsubscribe(i)},[]),t.current}},81647:function(e,t,n){n.d(t,{Z:function(){return F}});var i=n(87462),o=n(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))}),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},c=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:s}))}),p=n(6171),u=n(18073),m=n(94184),d=n.n(m),g=n(4942),h=n(1413),v=n(15671),b=n(43144),f=n(32531),S=n(73568),C=n(64217),$={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},x=function(e){(0,f.Z)(n,e);var t=(0,S.Z)(n);function n(){var e;(0,v.Z)(this,n);for(var i=arguments.length,o=Array(i),r=0;r=0||t.relatedTarget.className.indexOf("".concat(r,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===$.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,b.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,i=t.locale,r=t.rootPrefixCls,a=t.changeSize,l=t.quickGo,s=t.goButton,c=t.selectComponentClass,p=t.buildOptionText,u=t.selectPrefixCls,m=t.disabled,d=this.state.goInputText,g="".concat(r,"-options"),h=null,v=null,b=null;if(!a&&!l)return null;var f=this.getPageSizeOptions();if(a&&c){var S=f.map(function(t,n){return o.createElement(c.Option,{key:n,value:t.toString()},(p||e.buildOptionText)(t))});h=o.createElement(c,{disabled:m,prefixCls:u,showSearch:!1,className:"".concat(g,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||f[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},S)}return l&&(s&&(b="boolean"==typeof s?o.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:m,className:"".concat(g,"-quick-jumper-button")},i.jump_to_confirm):o.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),v=o.createElement("div",{className:"".concat(g,"-quick-jumper")},i.jump_to,o.createElement("input",{disabled:m,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,b)),o.createElement("li",{className:"".concat(g)},h,v)}}]),n}(o.Component);x.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=function(e){var t,n=e.rootPrefixCls,i=e.page,r=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,p=e.itemRender,u="".concat(n,"-item"),m=d()(u,"".concat(u,"-").concat(i),(t={},(0,g.Z)(t,"".concat(u,"-active"),r),(0,g.Z)(t,"".concat(u,"-disabled"),!i),(0,g.Z)(t,e.className,a),t)),h=p(i,"page",o.createElement("a",{rel:"nofollow"},i));return h?o.createElement("li",{title:l?i.toString():null,className:m,onClick:function(){s(i)},onKeyPress:function(e){c(e,s,i)},tabIndex:0},h):null};function k(){}function E(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function N(e,t,n){var i=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/i)+1}var z=function(e){(0,f.Z)(n,e);var t=(0,S.Z)(n);function n(e){(0,v.Z)(this,n),(i=t.call(this,e)).paginationNode=o.createRef(),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(N(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(e,t){var n=i.props.prefixCls,r=e||o.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(r=o.createElement(e,(0,h.Z)({},i.props))),r},i.isValid=function(e){var t=i.props.total;return E(e)&&e!==i.state.current&&E(t)&&t>0},i.shouldDisplayQuickJumper=function(){var e=i.props,t=e.showQuickJumper;return!(e.total<=i.state.pageSize)&&t},i.handleKeyDown=function(e){(e.keyCode===$.ARROW_UP||e.keyCode===$.ARROW_DOWN)&&e.preventDefault()},i.handleKeyUp=function(e){var t=i.getValidValue(e);t!==i.state.currentInputValue&&i.setState({currentInputValue:t}),e.keyCode===$.ENTER?i.handleChange(t):e.keyCode===$.ARROW_UP?i.handleChange(t-1):e.keyCode===$.ARROW_DOWN&&i.handleChange(t+1)},i.handleBlur=function(e){var t=i.getValidValue(e);i.handleChange(t)},i.changePageSize=function(e){var t=i.state.current,n=N(e,i.state,i.props);t=t>n?n:t,0===n&&(t=i.state.current),"number"!=typeof e||("pageSize"in i.props||i.setState({pageSize:e}),"current"in i.props||i.setState({current:t,currentInputValue:t})),i.props.onShowSizeChange(t,e),"onChange"in i.props&&i.props.onChange&&i.props.onChange(t,e)},i.handleChange=function(e){var t=i.props,n=t.disabled,o=t.onChange,r=i.state,a=r.pageSize,l=r.current,s=r.currentInputValue;if(i.isValid(e)&&!n){var c=N(void 0,i.state,i.props),p=e;return e>c?p=c:e<1&&(p=1),"current"in i.props||i.setState({current:p}),p!==s&&i.setState({currentInputValue:p}),o(p,a),p}return l},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,i=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,a=e.disabled,l=e.hideOnSinglePage,s=e.total,c=e.locale,p=e.showQuickJumper,u=e.showLessItems,m=e.showTitle,h=e.showTotal,v=e.simple,b=e.itemRender,f=e.showPrevNextJumpers,S=e.jumpPrevIcon,$=e.jumpNextIcon,k=e.selectComponentClass,E=e.selectPrefixCls,z=e.pageSizeOptions,I=this.state,P=I.current,O=I.pageSize,w=I.currentInputValue;if(!0===l&&s<=O)return null;var D=N(void 0,this.state,this.props),T=[],j=null,M=null,B=null,Z=null,A=null,_=p&&p.goButton,R=u?1:2,H=P-1>0?P-1:0,L=P+1s?s:P*O]));if(v){_&&(A="boolean"==typeof _?o.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):o.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_),A=o.createElement("li",{title:m?"".concat(c.jump_to).concat(P,"/").concat(D):null,className:"".concat(t,"-simple-pager")},A));var W=this.renderPrev(H);return o.createElement("ul",(0,i.Z)({className:d()(t,"".concat(t,"-simple"),(0,g.Z)({},"".concat(t,"-disabled"),a),n),style:r,ref:this.paginationNode},V),X,W?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},W):null,o.createElement("li",{title:m?"".concat(P,"/").concat(D):null,className:"".concat(t,"-simple-pager")},o.createElement("input",{type:"text",value:w,disabled:a,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),o.createElement("span",{className:"".concat(t,"-slash")},"/"),D),o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(L)),A)}if(D<=3+2*R){var K={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:m,itemRender:b};D||T.push(o.createElement(y,(0,i.Z)({},K,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var G=1;G<=D;G+=1){var J=P===G;T.push(o.createElement(y,(0,i.Z)({},K,{key:G,page:G,active:J})))}}else{var U=u?c.prev_3:c.prev_5,F=u?c.next_3:c.next_5,q=b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page")),Q=b(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page"));f&&(j=q?o.createElement("li",{title:m?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:d()("".concat(t,"-jump-prev"),(0,g.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!S))},q):null,M=Q?o.createElement("li",{title:m?F:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:d()("".concat(t,"-jump-next"),(0,g.Z)({},"".concat(t,"-jump-next-custom-icon"),!!$))},Q):null),Z=o.createElement(y,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:D,page:D,active:!1,showTitle:m,itemRender:b}),B=o.createElement(y,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:m,itemRender:b});var Y=Math.max(1,P-R),ee=Math.min(P+R,D);P-1<=R&&(ee=1+2*R),D-P<=R&&(Y=D-2*R);for(var et=Y;et<=ee;et+=1){var en=P===et;T.push(o.createElement(y,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:et,page:et,active:en,showTitle:m,itemRender:b}))}P-1>=2*R&&3!==P&&(T[0]=(0,o.cloneElement)(T[0],{className:"".concat(t,"-item-after-jump-prev")}),T.unshift(j)),D-P>=2*R&&P!==D-2&&(T[T.length-1]=(0,o.cloneElement)(T[T.length-1],{className:"".concat(t,"-item-before-jump-next")}),T.push(M)),1!==Y&&T.unshift(B),ee!==D&&T.push(Z)}var ei=!this.hasPrev()||!D,eo=!this.hasNext()||!D,er=this.renderPrev(H),ea=this.renderNext(L);return o.createElement("ul",(0,i.Z)({className:d()(t,n,(0,g.Z)({},"".concat(t,"-disabled"),a)),style:r,ref:this.paginationNode},V),X,er?o.createElement("li",{title:m?c.prev_page:null,onClick:this.prev,tabIndex:ei?null:0,onKeyPress:this.runIfEnterPrev,className:d()("".concat(t,"-prev"),(0,g.Z)({},"".concat(t,"-disabled"),ei)),"aria-disabled":ei},er):null,T,ea?o.createElement("li",{title:m?c.next_page:null,onClick:this.next,tabIndex:eo?null:0,onKeyPress:this.runIfEnterNext,className:d()("".concat(t,"-next"),(0,g.Z)({},"".concat(t,"-disabled"),eo)),"aria-disabled":eo},ea):null,o.createElement(x,{disabled:a,locale:c,rootPrefixCls:t,selectComponentClass:k,selectPrefixCls:E,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:P,pageSize:O,pageSizeOptions:z,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var i=t.current,o=N(e.pageSize,t,e);i=i>o?o:i,"current"in e||(n.current=i,n.currentInputValue=i),n.pageSize=e.pageSize}return n}}]),n}(o.Component);z.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:k,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:k,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var I=n(62906),P=n(53124),O=n(98675),w=n(25378),D=n(10110),T=n(51009);let j=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"small"})),M=e=>o.createElement(T.default,Object.assign({},e,{showSearch:!0,size:"middle"}));j.Option=T.default.Option,M.Option=T.default.Option;var B=n(47673),Z=n(14747),A=n(67968),_=n(45503);let R=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},H=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,B.x0)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},L=e=>{let{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},V=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,B.ik)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},X=e=>{let{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},W=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Z.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),X(e)),V(e)),L(e)),H(e)),R(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},K=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},G=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Z.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Z.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Z.oN)(e))}}}};var J=(0,A.Z)("Pagination",e=>{let t=(0,_.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,B.e5)(e));return[W(t),G(t),e.wireframe&&K(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),U=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n},F=e=>{let{prefixCls:t,selectPrefixCls:n,className:i,rootClassName:r,style:a,size:s,locale:m,selectComponentClass:g,responsive:h,showSizeChanger:v}=e,b=U(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:f}=(0,w.Z)(h),{getPrefixCls:S,direction:C,pagination:$={}}=o.useContext(P.E_),x=S("pagination",t),[y,k]=J(x),E=null!=v?v:$.showSizeChanger,N=o.useMemo(()=>{let e=o.createElement("span",{className:`${x}-item-ellipsis`},"•••"),t=o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(u.Z,null):o.createElement(p.Z,null)),n=o.createElement("button",{className:`${x}-item-link`,type:"button",tabIndex:-1},"rtl"===C?o.createElement(p.Z,null):o.createElement(u.Z,null)),i=o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===C?o.createElement(c,{className:`${x}-item-link-icon`}):o.createElement(l,{className:`${x}-item-link-icon`}),e)),r=o.createElement("a",{className:`${x}-item-link`},o.createElement("div",{className:`${x}-item-container`},"rtl"===C?o.createElement(l,{className:`${x}-item-link-icon`}):o.createElement(c,{className:`${x}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:i,jumpNextIcon:r}},[C,x]),[T]=(0,D.Z)("Pagination",I.Z),B=Object.assign(Object.assign({},T),m),Z=(0,O.Z)(s),A="small"===Z||!!(f&&!Z&&h),_=S("select",n),R=d()({[`${x}-mini`]:A,[`${x}-rtl`]:"rtl"===C},null==$?void 0:$.className,i,r,k),H=Object.assign(Object.assign({},null==$?void 0:$.style),a);return y(o.createElement(z,Object.assign({},N,b,{style:H,prefixCls:x,selectPrefixCls:_,className:R,selectComponentClass:g||(A?j:M),locale:B,showSizeChanger:E})))}},75081:function(e,t,n){n.d(t,{Z:function(){return $}});var i=n(94184),o=n.n(i),r=n(98423),a=n(67294),l=n(96159),s=n(53124),c=n(23183),p=n(14747),u=n(67968),m=n(45503);let d=new c.E4("antSpinMove",{to:{opacity:1}}),g=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),h=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:d,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:g,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var v=(0,u.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[h(t)]},{contentHeight:400}),b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,i=Object.getOwnPropertySymbols(e);ot.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};let f=null,S=e=>{let{spinPrefixCls:t,spinning:n=!0,delay:i=0,className:c,rootClassName:p,size:u="default",tip:m,wrapperClassName:d,style:g,children:h,hashId:v}=e,S=b(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[C,$]=a.useState(()=>n&&(!n||!i||!!isNaN(Number(i))));a.useEffect(()=>{if(n){var e;let t=function(e,t,n){var i,o=n||{},r=o.noTrailing,a=void 0!==r&&r,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,p=void 0===c?void 0:c,u=!1,m=0;function d(){i&&clearTimeout(i)}function g(){for(var n=arguments.length,o=Array(n),r=0;re?s?(m=Date.now(),a||(i=setTimeout(p?h:g,e))):g():!0!==a&&(i=setTimeout(p?h:g,void 0===p?e-c:e)))}return g.cancel=function(e){var t=(e||{}).upcomingOnly;d(),u=!(void 0!==t&&t)},g}(i,()=>{$(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}$(!1)},[i,n]);let x=a.useMemo(()=>void 0!==h,[h]),{direction:y,spin:k}=a.useContext(s.E_),E=o()(t,null==k?void 0:k.className,{[`${t}-sm`]:"small"===u,[`${t}-lg`]:"large"===u,[`${t}-spinning`]:C,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===y},c,p,v),N=o()(`${t}-container`,{[`${t}-blur`]:C}),z=(0,r.Z)(S,["indicator","prefixCls"]),I=Object.assign(Object.assign({},null==k?void 0:k.style),g),P=a.createElement("div",Object.assign({},z,{style:I,className:E,"aria-live":"polite","aria-busy":C}),function(e,t){let{indicator:n}=t,i=`${e}-dot`;return null===n?null:(0,l.l$)(n)?(0,l.Tm)(n,{className:o()(n.props.className,i)}):(0,l.l$)(f)?(0,l.Tm)(f,{className:o()(f.props.className,i)}):a.createElement("span",{className:o()(i,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`,key:1}),a.createElement("i",{className:`${e}-dot-item`,key:2}),a.createElement("i",{className:`${e}-dot-item`,key:3}),a.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&x?a.createElement("div",{className:`${t}-text`},m):null);return x?a.createElement("div",Object.assign({},z,{className:o()(`${t}-nested-loading`,d,v)}),C&&a.createElement("div",{key:"loading"},P),a.createElement("div",{className:N,key:"container"},h)):P},C=e=>{let{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(s.E_),i=n("spin",t),[o,r]=v(i),l=Object.assign(Object.assign({},e),{spinPrefixCls:i,hashId:r});return o(a.createElement(S,Object.assign({},l)))};C.setDefaultIndicator=e=>{f=e};var $=C}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/837-e6d4d1eb9e057050.js b/dbgpt/app/static/_next/static/chunks/837-e6d4d1eb9e057050.js deleted file mode 100644 index 1038c05f8..000000000 --- a/dbgpt/app/static/_next/static/chunks/837-e6d4d1eb9e057050.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[837],{78045:function(e,t,n){n.d(t,{ZP:function(){return L}});var o=n(94184),r=n.n(o),a=n(21770),i=n(64217),d=n(67294),l=n(53124),c=n(98675);let s=d.createContext(null),u=s.Provider,p=d.createContext(null),f=p.Provider;var h=n(50132),g=n(42550),v=n(98866),y=n(65223),b=n(14747),k=n(67968),m=n(45503);let x=e=>{let{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},(0,b.Wf)(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},E=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:d,colorBgContainer:l,colorBorder:c,lineWidth:s,dotSize:u,colorBgContainerDisabled:p,colorTextDisabled:f,paddingXS:h,dotColorDisabled:g,lineType:v,radioDotDisabledSize:y,wireframe:k,colorWhite:m}=e,x=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,b.Wf)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${s}px ${v} ${o}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${x}`]:{borderColor:o},[`${t}-input:focus-visible + ${x}`]:Object.assign({},(0,b.oN)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:-(r/2),marginInlineStart:-(r/2),backgroundColor:k?o:m,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${a} ${d}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:s,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:o,backgroundColor:k?l:o,"&::after":{transform:`scale(${u/r})`,opacity:1,transition:`all ${a} ${d}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:p,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${y/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},K=e=>{let{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:a,colorBorder:i,motionDurationSlow:d,motionDurationMid:l,buttonPaddingInline:c,fontSize:s,buttonBg:u,fontSizeLG:p,controlHeightLG:f,controlHeightSM:h,paddingXS:g,borderRadius:v,borderRadiusSM:y,borderRadiusLG:k,buttonCheckedBg:m,buttonSolidCheckedColor:x,colorTextDisabled:E,colorBgContainerDisabled:K,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:C,colorPrimary:S,colorPrimaryHover:w,colorPrimaryActive:D}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:s,lineHeight:`${n-2*r}px`,background:u,border:`${r}px ${a} ${i}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:`color ${l},background ${l},box-shadow ${l}`,a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:i,transition:`background-color ${d}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${a} ${i}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${o}-group-large &`]:{height:f,fontSize:p,lineHeight:`${f-2*r}px`,"&:first-child":{borderStartStartRadius:k,borderEndStartRadius:k},"&:last-child":{borderStartEndRadius:k,borderEndEndRadius:k}},[`${o}-group-small &`]:{height:h,paddingInline:g-r,paddingBlock:0,lineHeight:`${h-2*r}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":Object.assign({},(0,b.oN)(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:S,background:m,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:w,borderColor:w,"&::before":{backgroundColor:w}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:x,background:S,borderColor:S,"&:hover":{color:x,background:w,borderColor:w},"&:active":{color:x,background:D,borderColor:D}},"&-disabled":{color:E,backgroundColor:K,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:K,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:C,backgroundColor:N,borderColor:i,boxShadow:"none"}}}},N=e=>e-8;var C=(0,k.Z)("Radio",e=>{let{controlOutline:t,controlOutlineWidth:n,radioSize:o}=e,r=`0 0 0 ${n}px ${t}`,a=N(o),i=(0,m.TS)(e,{radioDotDisabledSize:a,radioFocusShadow:r,radioButtonFocusShadow:r});return[x(i),E(i),K(i)]},e=>{let{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:a,colorText:i,colorBgContainer:d,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:s}=e,u=t?N(a):a-(4+r)*2;return{radioSize:a,dotSize:u,dotColorDisabled:l,buttonSolidCheckedColor:s,buttonBg:d,buttonCheckedBg:d,buttonColor:i,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o}}),S=n(45353),w=n(17415),D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let $=d.forwardRef((e,t)=>{var n,o;let a=d.useContext(s),i=d.useContext(p),{getPrefixCls:c,direction:u,radio:f}=d.useContext(l.E_),b=d.useRef(null),k=(0,g.sQ)(t,b),{isFormItemInput:m}=d.useContext(y.aM),{prefixCls:x,className:E,rootClassName:K,children:N,style:$}=e,O=D(e,["prefixCls","className","rootClassName","children","style"]),Z=c("radio",x),P="button"===((null==a?void 0:a.optionType)||i),I=P?`${Z}-button`:Z,[L,T]=C(Z),M=Object.assign({},O),R=d.useContext(v.Z);a&&(M.name=a.name,M.onChange=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null==a?void 0:a.onChange)||void 0===o||o.call(a,t)},M.checked=e.value===a.value,M.disabled=null!==(n=M.disabled)&&void 0!==n?n:a.disabled),M.disabled=null!==(o=M.disabled)&&void 0!==o?o:R;let A=r()(`${I}-wrapper`,{[`${I}-wrapper-checked`]:M.checked,[`${I}-wrapper-disabled`]:M.disabled,[`${I}-wrapper-rtl`]:"rtl"===u,[`${I}-wrapper-in-form-item`]:m},null==f?void 0:f.className,E,K,T);return L(d.createElement(S.Z,{component:"Radio",disabled:M.disabled},d.createElement("label",{className:A,style:Object.assign(Object.assign({},null==f?void 0:f.style),$),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},d.createElement(h.Z,Object.assign({},M,{className:r()(M.className,!P&&w.A),type:"radio",prefixCls:I,ref:k})),void 0!==N?d.createElement("span",null,N):null)))}),O=d.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o}=d.useContext(l.E_),[s,p]=(0,a.Z)(e.defaultValue,{value:e.value}),{prefixCls:f,className:h,rootClassName:g,options:v,buttonStyle:y="outline",disabled:b,children:k,size:m,style:x,id:E,onMouseEnter:K,onMouseLeave:N,onFocus:S,onBlur:w}=e,D=n("radio",f),O=`${D}-group`,[Z,P]=C(D),I=k;v&&v.length>0&&(I=v.map(e=>"string"==typeof e||"number"==typeof e?d.createElement($,{key:e.toString(),prefixCls:D,disabled:b,value:e,checked:s===e},e):d.createElement($,{key:`radio-group-value-options-${e.value}`,prefixCls:D,disabled:e.disabled||b,value:e.value,checked:s===e.value,title:e.title,style:e.style},e.label)));let L=(0,c.Z)(m),T=r()(O,`${O}-${y}`,{[`${O}-${L}`]:L,[`${O}-rtl`]:"rtl"===o},h,g,P);return Z(d.createElement("div",Object.assign({},(0,i.Z)(e,{aria:!0,data:!0}),{className:T,style:x,onMouseEnter:K,onMouseLeave:N,onFocus:S,onBlur:w,id:E,ref:t}),d.createElement(u,{value:{onChange:t=>{let n=t.target.value;"value"in e||p(n);let{onChange:o}=e;o&&n!==s&&o(t)},value:s,disabled:e.disabled,name:e.name,optionType:e.optionType}},I)))});var Z=d.memo(O),P=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},I=d.forwardRef((e,t)=>{let{getPrefixCls:n}=d.useContext(l.E_),{prefixCls:o}=e,r=P(e,["prefixCls"]),a=n("radio",o);return d.createElement(f,{value:"button"},d.createElement($,Object.assign({prefixCls:a},r,{type:"radio",ref:t})))});$.Button=I,$.Group=Z,$.__ANT_RADIO=!0;var L=$},57346:function(e,t,n){n.d(t,{Z:function(){return eL}});var o,r,a=n(87462),i=n(4942),d=n(71002),l=n(1413),c=n(74902),s=n(15671),u=n(43144),p=n(97326),f=n(32531),h=n(73568),g=n(67294),v=n(15105),y=n(80334),b=n(64217),k=n(94184),m=n.n(k),x=n(27822),E=n(10225),K=n(1089);function N(e){if(null==e)throw TypeError("Cannot destructure "+e)}var C=n(97685),S=n(45987),w=n(8410),D=n(85344),$=n(82225),O=n(86128),Z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],P=function(e,t){var n,o,r,i,d,l=e.className,c=e.style,s=e.motion,u=e.motionNodes,p=e.motionType,f=e.onMotionStart,h=e.onMotionEnd,v=e.active,y=e.treeNodeRequiredProps,b=(0,S.Z)(e,Z),k=g.useState(!0),E=(0,C.Z)(k,2),D=E[0],P=E[1],I=g.useContext(x.k).prefixCls,L=u&&"hide"!==p;(0,w.Z)(function(){u&&L!==D&&P(L)},[u]);var T=g.useRef(!1),M=function(){u&&!T.current&&(T.current=!0,h())};return(n=function(){u&&f()},o=g.useState(!1),i=(r=(0,C.Z)(o,2))[0],d=r[1],g.useLayoutEffect(function(){if(i)return n(),function(){M()}},[i]),g.useLayoutEffect(function(){return d(!0),function(){d(!1)}},[]),u)?g.createElement($.ZP,(0,a.Z)({ref:t,visible:D},s,{motionAppear:"show"===p,onVisibleChanged:function(e){L===e&&M()}}),function(e,t){var n=e.className,o=e.style;return g.createElement("div",{ref:t,className:m()("".concat(I,"-treenode-motion"),n),style:o},u.map(function(e){var t=(0,a.Z)({},(N(e.data),e.data)),n=e.title,o=e.key,r=e.isStart,i=e.isEnd;delete t.children;var d=(0,K.H8)(o,y);return g.createElement(O.Z,(0,a.Z)({},t,d,{title:n,active:v,data:e.data,key:o,isStart:r,isEnd:i}))}))}):g.createElement(O.Z,(0,a.Z)({domRef:t,className:l,style:c},b,{active:v}))};P.displayName="MotionTreeNode";var I=g.forwardRef(P);function L(e,t,n){var o=e.findIndex(function(e){return e.key===n}),r=e[o+1],a=t.findIndex(function(e){return e.key===n});if(r){var i=t.findIndex(function(e){return e.key===r.key});return t.slice(a+1,i)}return t.slice(a+1)}var T=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],M={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},A="RC_TREE_MOTION_".concat(Math.random()),H={key:A},j={key:A,level:0,index:0,pos:"0",node:H,nodes:[H]},B={parent:null,children:[],pos:j.pos,data:H,title:null,key:A,isStart:[],isEnd:[]};function z(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function _(e){var t=e.key,n=e.pos;return(0,K.km)(t,n)}var F=g.forwardRef(function(e,t){var n=e.prefixCls,o=e.data,r=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,d=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,s=e.halfCheckedKeys,u=e.keyEntities,p=e.disabled,f=e.dragging,h=e.dragOverNodeKey,v=e.dropPosition,y=e.motion,b=e.height,k=e.itemHeight,m=e.virtual,x=e.focusable,E=e.activeItem,$=e.focused,O=e.tabIndex,Z=e.onKeyDown,P=e.onFocus,H=e.onBlur,j=e.onActiveChange,F=e.onListChangeStart,W=e.onListChangeEnd,V=(0,S.Z)(e,T),G=g.useRef(null),U=g.useRef(null);g.useImperativeHandle(t,function(){return{scrollTo:function(e){G.current.scrollTo(e)},getIndentWidth:function(){return U.current.offsetWidth}}});var q=g.useState(r),X=(0,C.Z)(q,2),Y=X[0],Q=X[1],J=g.useState(o),ee=(0,C.Z)(J,2),et=ee[0],en=ee[1],eo=g.useState(o),er=(0,C.Z)(eo,2),ea=er[0],ei=er[1],ed=g.useState([]),el=(0,C.Z)(ed,2),ec=el[0],es=el[1],eu=g.useState(null),ep=(0,C.Z)(eu,2),ef=ep[0],eh=ep[1],eg=g.useRef(o);function ev(){var e=eg.current;en(e),ei(e),es([]),eh(null),W()}eg.current=o,(0,w.Z)(function(){Q(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var o=t.filter(function(e){return!n.has(e)});return 1===o.length?o[0]:null}return n ").concat(t);return t}(E)),g.createElement("div",null,g.createElement("input",{style:M,disabled:!1===x||p,tabIndex:!1!==x?O:null,onKeyDown:Z,onFocus:P,onBlur:H,value:"",onChange:R,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(n,"-indent")},g.createElement("div",{ref:U,className:"".concat(n,"-indent-unit")}))),g.createElement(D.Z,(0,a.Z)({},V,{data:ey,itemKey:_,height:b,fullHeight:!1,virtual:m,itemHeight:k,prefixCls:"".concat(n,"-list"),ref:G,onVisibleChange:function(e,t){var n=new Set(e);t.filter(function(e){return!n.has(e)}).some(function(e){return _(e)===A})&&ev()}}),function(e){var t=e.pos,n=(0,a.Z)({},(N(e.data),e.data)),o=e.title,r=e.key,i=e.isStart,d=e.isEnd,l=(0,K.km)(r,t);delete n.key,delete n.children;var c=(0,K.H8)(l,eb);return g.createElement(I,(0,a.Z)({},n,c,{title:o,active:!!E&&r===E.key,pos:t,data:e.data,isStart:i,isEnd:d,motion:y,motionNodes:r===A?ec:null,motionType:ef,onMotionStart:F,onMotionEnd:ev,treeNodeRequiredProps:eb,onMouseMove:function(){j(null)}}))}))});F.displayName="NodeList";var W=n(17341),V=function(e){(0,f.Z)(n,e);var t=(0,h.Z)(n);function n(){var e;(0,s.Z)(this,n);for(var o=arguments.length,r=Array(o),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,d=a.dropPosition,c=a.dropTargetKey,s=a.dropTargetPos;if(a.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var p=(0,l.Z)((0,l.Z)({},(0,K.H8)(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:e.state.keyEntities[c].node}),f=-1!==i.indexOf(c);(0,y.ZP)(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=(0,E.yx)(s),g={event:t,node:(0,K.F)(p),dragNode:e.dragNode?(0,K.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==d,dropPosition:d+Number(h[h.length-1])};r||null==u||u(g),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var o=e.state,r=o.expandedKeys,a=o.flattenNodes,i=n.expanded,d=n.key;if(!n.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var c=a.filter(function(e){return e.key===d})[0],s=(0,K.F)((0,l.Z)((0,l.Z)({},(0,K.H8)(d,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(i?(0,E._5)(r,d):(0,E.L0)(r,d)),e.onNodeExpand(t,s)}},e.onNodeClick=function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeDoubleClick=function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)},e.onNodeSelect=function(t,n){var o=e.state.selectedKeys,r=e.state,a=r.keyEntities,i=r.fieldNames,d=e.props,l=d.onSelect,c=d.multiple,s=n.selected,u=n[i.key],p=!s,f=(o=p?c?(0,E.L0)(o,u):[u]:(0,E._5)(o,u)).map(function(e){var t=a[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:o}),null==l||l(o,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,o){var r,a=e.state,i=a.keyEntities,d=a.checkedKeys,l=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,p=s.onCheck,f=n.key,h={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var g=o?(0,E.L0)(d,f):(0,E._5)(d,f);r={checked:g,halfChecked:(0,E._5)(l,f)},h.checkedNodes=g.map(function(e){return i[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:g})}else{var v=(0,W.S)([].concat((0,c.Z)(d),[f]),!0,i),y=v.checkedKeys,b=v.halfCheckedKeys;if(!o){var k=new Set(y);k.delete(f);var m=(0,W.S)(Array.from(k),{checked:!1,halfCheckedKeys:b},i);y=m.checkedKeys,b=m.halfCheckedKeys}r=y,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=b,y.forEach(function(e){var t=i[e];if(t){var n=t.node,o=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:o})}}),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:b})}null==p||p(r,h)},e.onNodeLoad=function(t){var n=t.key,o=new Promise(function(o,r){e.setState(function(a){var i=a.loadedKeys,d=a.loadingKeys,l=void 0===d?[]:d,c=e.props,s=c.loadData,u=c.onLoad;return s&&-1===(void 0===i?[]:i).indexOf(n)&&-1===l.indexOf(n)?(s(t).then(function(){var r=e.state.loadedKeys,a=(0,E.L0)(r,n);null==u||u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState(function(e){return{loadingKeys:(0,E._5)(e.loadingKeys,n)}}),o()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:(0,E._5)(e.loadingKeys,n)}}),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,E.L0)(a,n)}),o()}r(t)}),{loadingKeys:(0,E.L0)(l,n)}):null})});return o.catch(function(){}),o},e.onNodeMouseEnter=function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})},e.onNodeContextMenu=function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,a=!0,i={};Object.keys(t).forEach(function(n){if(n in e.props){a=!1;return}r=!0,i[n]=t[n]}),r&&(!n||a)&&e.setState((0,l.Z)((0,l.Z)({},i),o))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,o=n.focused,r=n.flattenNodes,l=n.keyEntities,c=n.draggingNodeKey,s=n.activeKey,u=n.dropLevelOffset,p=n.dropContainerKey,f=n.dropTargetKey,h=n.dropPosition,v=n.dragOverNodeKey,y=n.indent,k=this.props,E=k.prefixCls,K=k.className,N=k.style,C=k.showLine,S=k.focusable,w=k.tabIndex,D=k.selectable,$=k.showIcon,O=k.icon,Z=k.switcherIcon,P=k.draggable,I=k.checkable,L=k.checkStrictly,T=k.disabled,M=k.motion,R=k.loadData,A=k.filterTreeNode,H=k.height,j=k.itemHeight,B=k.virtual,z=k.titleRender,_=k.dropIndicatorRender,W=k.onContextMenu,V=k.onScroll,G=k.direction,U=k.rootClassName,q=k.rootStyle,X=(0,b.Z)(this.props,{aria:!0,data:!0});return P&&(t="object"===(0,d.Z)(P)?P:"function"==typeof P?{nodeDraggable:P}:{}),g.createElement(x.k.Provider,{value:{prefixCls:E,selectable:D,showIcon:$,icon:O,switcherIcon:Z,draggable:t,draggingNodeKey:c,checkable:I,checkStrictly:L,disabled:T,keyEntities:l,dropLevelOffset:u,dropContainerKey:p,dropTargetKey:f,dropPosition:h,dragOverNodeKey:v,indent:y,direction:G,dropIndicatorRender:_,loadData:R,filterTreeNode:A,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},g.createElement("div",{role:"tree",className:m()(E,K,U,(e={},(0,i.Z)(e,"".concat(E,"-show-line"),C),(0,i.Z)(e,"".concat(E,"-focused"),o),(0,i.Z)(e,"".concat(E,"-active-focused"),null!==s),e)),style:q},g.createElement(F,(0,a.Z)({ref:this.listRef,prefixCls:E,style:N,data:r,disabled:T,selectable:D,checkable:!!I,motion:M,dragging:null!==c,height:H,itemHeight:j,virtual:B,focusable:S,focused:o,tabIndex:void 0===w?0:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:V},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r=t.prevProps,a={prevProps:e};function d(t){return!r&&t in e||r&&r[t]!==e[t]}var c=t.fieldNames;if(d("fieldNames")&&(c=(0,K.w$)(e.fieldNames),a.fieldNames=c),d("treeData")?n=e.treeData:d("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,K.zn)(e.children)),n){a.treeData=n;var s=(0,K.I8)(n,{fieldNames:c});a.keyEntities=(0,l.Z)((0,i.Z)({},A,j),s.keyEntities)}var u=a.keyEntities||t.keyEntities;if(d("expandedKeys")||r&&d("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,E.r7)(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var p=(0,l.Z)({},u);delete p[A],a.expandedKeys=Object.keys(p).map(function(e){return p[e].key})}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,E.r7)(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,n||a.expandedKeys){var f=(0,K.oH)(n||t.treeData,a.expandedKeys||t.expandedKeys,c);a.flattenNodes=f}if(e.selectable&&(d("selectedKeys")?a.selectedKeys=(0,E.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=(0,E.BT)(e.defaultSelectedKeys,e))),e.checkable&&(d("checkedKeys")?o=(0,E.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?o=(0,E.E6)(e.defaultCheckedKeys)||{}:n&&(o=(0,E.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o)){var h=o,g=h.checkedKeys,v=void 0===g?[]:g,b=h.halfCheckedKeys,k=void 0===b?[]:b;if(!e.checkStrictly){var m=(0,W.S)(v,!0,u);v=m.checkedKeys,k=m.halfCheckedKeys}a.checkedKeys=v,a.halfCheckedKeys=k}return d("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),n}(g.Component);V.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return g.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},V.TreeNode=O.Z;var G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},U=n(84089),q=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:G}))}),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Y=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:X}))}),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},J=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:Q}))}),ee=n(53124),et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},en=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:et}))}),eo=n(33603),er=n(23183),ea=n(63185),ei=n(14747),ed=n(33507),el=n(45503),ec=n(67968);let es=new er.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),eu=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),ep=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ef=(e,t)=>{let{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:a}=t,i=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,ei.Wf)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,ei.oN)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:es,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,ei.oN)(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},eu(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${a}px`,userSelect:"none"},ep(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},eh=e=>{let{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{[` - &:hover::before, - &::before - `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},eg=(e,t)=>{let n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,a=t.controlHeightSM,i=(0,el.TS)(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:a});return[ef(e,i),eh(i)]};var ev=(0,ec.Z)("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,ea.C2)(`${n}-checkbox`,e)},eg(n,e),(0,ed.Z)(e)]});function ey(e){let{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:a="ltr"}=e,i="ltr"===a?"left":"right",d={[i]:-n*r+4,["ltr"===a?"right":"left"]:0};switch(t){case -1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[i]=r+4}return g.createElement("div",{style:d,className:`${o}-drop-indicator`})}var eb={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ek=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:eb}))}),em=n(50888),ex={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},eE=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:ex}))}),eK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},eN=g.forwardRef(function(e,t){return g.createElement(U.Z,(0,a.Z)({},e,{ref:t,icon:eK}))}),eC=n(96159),eS=e=>{let t;let{prefixCls:n,switcherIcon:o,treeNodeProps:r,showLine:a}=e,{isLeaf:i,expanded:d,loading:l}=r;if(l)return g.createElement(em.Z,{className:`${n}-switcher-loading-icon`});if(a&&"object"==typeof a&&(t=a.showLeafIcon),i){if(!a)return null;if("boolean"!=typeof t&&t){let e="function"==typeof t?t(r):t,o=`${n}-switcher-line-custom-icon`;return(0,eC.l$)(e)?(0,eC.Tm)(e,{className:m()(e.props.className||"",o)}):e}return t?g.createElement(q,{className:`${n}-switcher-line-icon`}):g.createElement("span",{className:`${n}-switcher-leaf-line`})}let c=`${n}-switcher-icon`,s="function"==typeof o?o(r):o;return(0,eC.l$)(s)?(0,eC.Tm)(s,{className:m()(s.props.className||"",c)}):void 0!==s?s:a?d?g.createElement(eE,{className:`${n}-switcher-line-icon`}):g.createElement(eN,{className:`${n}-switcher-line-icon`}):g.createElement(ek,{className:c})};let ew=g.forwardRef((e,t)=>{let{getPrefixCls:n,direction:o,virtual:r,tree:a}=g.useContext(ee.E_),{prefixCls:i,className:d,showIcon:l=!1,showLine:c,switcherIcon:s,blockNode:u=!1,children:p,checkable:f=!1,selectable:h=!0,draggable:v,motion:y,style:b}=e,k=n("tree",i),x=n(),E=null!=y?y:Object.assign(Object.assign({},(0,eo.Z)(x)),{motionAppear:!1}),K=Object.assign(Object.assign({},e),{checkable:f,selectable:h,showIcon:l,motion:E,blockNode:u,showLine:!!c,dropIndicatorRender:ey}),[N,C]=ev(k),S=g.useMemo(()=>{if(!v)return!1;let e={};switch(typeof v){case"function":e.nodeDraggable=v;break;case"object":e=Object.assign({},v)}return!1!==e.icon&&(e.icon=e.icon||g.createElement(en,null)),e},[v]);return N(g.createElement(V,Object.assign({itemHeight:20,ref:t,virtual:r},K,{style:Object.assign(Object.assign({},null==a?void 0:a.style),b),prefixCls:k,className:m()({[`${k}-icon-hide`]:!l,[`${k}-block-node`]:u,[`${k}-unselectable`]:!h,[`${k}-rtl`]:"rtl"===o},null==a?void 0:a.className,d,C),direction:o,checkable:f?g.createElement("span",{className:`${k}-checkbox-inner`}):f,selectable:h,switcherIcon:e=>g.createElement(eS,{prefixCls:k,switcherIcon:s,treeNodeProps:e,showLine:c}),draggable:S}),p))});function eD(e,t){e.forEach(function(e){let{key:n,children:o}=e;!1!==t(n,e)&&eD(o||[],t)})}function e$(e,t){let n=(0,c.Z)(t),o=[];return eD(e,(e,t)=>{let r=n.indexOf(e);return -1!==r&&(o.push(t),n.splice(r,1)),!!n.length}),o}(o=r||(r={}))[o.None=0]="None",o[o.Start=1]="Start",o[o.End=2]="End";var eO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};function eZ(e){let{isLeaf:t,expanded:n}=e;return t?g.createElement(q,null):n?g.createElement(Y,null):g.createElement(J,null)}function eP(e){let{treeData:t,children:n}=e;return t||(0,K.zn)(n)}let eI=g.forwardRef((e,t)=>{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:a}=e,i=eO(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);let d=g.useRef(),l=g.useRef(),s=()=>{let{keyEntities:e}=(0,K.I8)(eP(i));return n?Object.keys(e):o?(0,E.r7)(i.expandedKeys||a||[],e):i.expandedKeys||a},[u,p]=g.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,h]=g.useState(()=>s());g.useEffect(()=>{"selectedKeys"in i&&p(i.selectedKeys)},[i.selectedKeys]),g.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);let{getPrefixCls:v,direction:y}=g.useContext(ee.E_),{prefixCls:b,className:k,showIcon:x=!0,expandAction:N="click"}=i,C=eO(i,["prefixCls","className","showIcon","expandAction"]),S=v("tree",b),w=m()(`${S}-directory`,{[`${S}-directory-rtl`]:"rtl"===y},k);return g.createElement(ew,Object.assign({icon:eZ,ref:t,blockNode:!0},C,{showIcon:x,expandAction:N,prefixCls:S,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;let o;let{multiple:a}=i,{node:s,nativeEvent:u}=t,{key:h=""}=s,g=eP(i),v=Object.assign(Object.assign({},t),{selected:!0}),y=(null==u?void 0:u.ctrlKey)||(null==u?void 0:u.metaKey),b=null==u?void 0:u.shiftKey;a&&y?(o=e,d.current=h,l.current=o,v.selectedNodes=e$(g,o)):a&&b?(o=Array.from(new Set([].concat((0,c.Z)(l.current||[]),(0,c.Z)(function(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:a}=e,i=[],d=r.None;return o&&o===a?[o]:o&&a?(eD(t,e=>{if(d===r.End)return!1;if(e===o||e===a){if(i.push(e),d===r.None)d=r.Start;else if(d===r.Start)return d=r.End,!1}else d===r.Start&&i.push(e);return n.includes(e)}),i):[]}({treeData:g,expandedKeys:f,startKey:h,endKey:d.current}))))),v.selectedNodes=e$(g,o)):(o=[h],d.current=h,l.current=o,v.selectedNodes=e$(g,o)),null===(n=i.onSelect)||void 0===n||n.call(i,o,v),"selectedKeys"in i||p(o)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||h(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))});ew.DirectoryTree=eI,ew.TreeNode=O.Z;var eL=ew},86128:function(e,t,n){n.d(t,{Z:function(){return N}});var o=n(87462),r=n(4942),a=n(45987),i=n(1413),d=n(15671),l=n(43144),c=n(97326),s=n(32531),u=n(73568),p=n(94184),f=n.n(p),h=n(64217),g=n(67294),v=n(27822),y=g.memo(function(e){for(var t,n=e.prefixCls,o=e.level,a=e.isStart,i=e.isEnd,d="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(o,1),n}function d(e,t){var n=(e||[]).slice();return -1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function c(e,t){var n=[];return!function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var o=t.key,r=t.children;n.push(o),e(r)})}(t[e].children),n}function s(e,t,n,o,r,a,i,d,c,s){var u,p,f=e.clientX,h=e.clientY,g=e.target.getBoundingClientRect(),v=g.top,y=g.height,b=(("rtl"===s?-1:1)*(((null==r?void 0:r.x)||0)-f)-12)/o,k=d[n.props.eventKey];if(h-1.5?a({dragNode:w,dropNode:D,dropPosition:1})?N=1:$=!1:a({dragNode:w,dropNode:D,dropPosition:0})?N=0:a({dragNode:w,dropNode:D,dropPosition:1})?N=1:$=!1:a({dragNode:w,dropNode:D,dropPosition:1})?N=1:$=!1,{dropPosition:N,dropLevelOffset:C,dropTargetKey:k.key,dropTargetPos:k.pos,dragOverNodeKey:K,dropContainerKey:0===N?null:(null===(p=k.parent)||void 0===p?void 0:p.key)||null,dropAllowed:$}}function u(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function f(e,t){var n=new Set;return(e||[]).forEach(function(e){!function e(o){if(!n.has(o)){var r=t[o];if(r){n.add(o);var a=r.parent;!r.node.disabled&&a&&e(a.key)}}}(e)}),(0,o.Z)(n)}n(86128),n(1089)},17341:function(e,t,n){n.d(t,{S:function(){return i}});var o=n(80334);function r(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function a(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!!(n||o)||!1===r}function i(e,t,n,i){var d,l=[];d=i||a;var c=new Set(e.filter(function(e){var t=!!n[e];return t||l.push(e),t})),s=new Map,u=0;return Object.keys(n).forEach(function(e){var t=n[e],o=t.level,r=s.get(o);r||(r=new Set,s.set(o,r)),r.add(t),u=Math.max(u,o)}),(0,o.ZP)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,n,o){for(var a=new Set(e),i=new Set,d=0;d<=n;d+=1)(t.get(d)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,i=void 0===r?[]:r;a.has(t)&&!o(n)&&i.filter(function(e){return!o(e.node)}).forEach(function(e){a.add(e.key)})});for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(function(e){var t=e.parent;if(!(o(e.node)||!e.parent||l.has(e.parent.key))){if(o(e.parent.node)){l.add(t.key);return}var n=!0,r=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,o=a.has(t);n&&!o&&(n=!1),!r&&(o||i.has(t))&&(r=!0)}),n&&a.add(t.key),r&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(r(i,a))}}(c,s,u,d):function(e,t,n,o,a){for(var i=new Set(e),d=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,o=e.children,r=void 0===o?[]:o;i.has(t)||d.has(t)||a(n)||r.filter(function(e){return!a(e.node)}).forEach(function(e){i.delete(e.key)})});d=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent;if(!(a(e.node)||!e.parent||c.has(e.parent.key))){if(a(e.parent.node)){c.add(t.key);return}var n=!0,o=!1;(t.children||[]).filter(function(e){return!a(e.node)}).forEach(function(e){var t=e.key,r=i.has(t);n&&!r&&(n=!1),!o&&(r||d.has(t))&&(o=!0)}),n||i.delete(t.key),o&&d.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(r(d,i))}}(c,t.halfCheckedKeys,s,u,d)}},1089:function(e,t,n){n.d(t,{F:function(){return b},H8:function(){return y},I8:function(){return v},km:function(){return p},oH:function(){return g},w$:function(){return f},zn:function(){return h}});var o=n(71002),r=n(74902),a=n(1413),i=n(45987),d=n(50344),l=n(98423),c=n(80334),s=["children"];function u(e,t){return"".concat(e,"-").concat(t)}function p(e,t){return null!=e?e:t}function f(e){var t=e||{},n=t.title,o=t._title,r=t.key,a=t.children,i=n||"title";return{title:i,_title:o||[i],key:r||"key",children:a||"children"}}function h(e){return function e(t){return(0,d.Z)(t).map(function(t){if(!(t&&t.type&&t.type.isTreeNode))return(0,c.ZP)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,d=(0,i.Z)(o,s),l=(0,a.Z)({key:n},d),u=e(r);return u.length&&(l.children=u),l}).filter(function(e){return e})}(e)}function g(e,t,n){var o=f(n),i=o._title,d=o.key,c=o.children,s=new Set(!0===t?[]:t),h=[];return!function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(f,g){for(var v,y=u(o?o.pos:"0",g),b=p(f[d],y),k=0;k1&&void 0!==arguments[1]?arguments[1]:{},y=v.initWrapper,b=v.processEntity,k=v.onProcessFinished,m=v.externalGetKey,x=v.childrenPropName,E=v.fieldNames,K=arguments.length>2?arguments[2]:void 0,N={},C={},S={posEntities:N,keyEntities:C};return y&&(S=y(S)||S),t=function(e){var t=e.node,n=e.index,o=e.pos,r=e.key,a=e.parentPos,i=e.level,d={node:t,nodes:e.nodes,index:n,key:r,pos:o,level:i},l=p(r,o);N[o]=d,C[l]=d,d.parent=N[a],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),b&&b(d,S)},n={externalGetKey:m||K,childrenPropName:x,fieldNames:E},d=(i=("object"===(0,o.Z)(n)?n:{externalGetKey:n})||{}).childrenPropName,l=i.externalGetKey,s=(c=f(i.fieldNames)).key,h=c.children,g=d||h,l?"string"==typeof l?a=function(e){return e[l]}:"function"==typeof l&&(a=function(e){return l(e)}):a=function(e,t){return p(e[s],t)},function n(o,i,d,l){var c=o?o[g]:e,s=o?u(d.pos,i):"0",p=o?[].concat((0,r.Z)(l),[o]):[];if(o){var f=a(o,s);t({node:o,index:i,pos:s,key:f,parentPos:d.node?d.pos:null,level:d.level+1,nodes:p})}c&&c.forEach(function(e,t){n(e,t,{node:o,pos:s,level:d?d.level+1:-1},p)})}(null),k&&k(S),S}function y(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,d=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,s=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==d.indexOf(e),pos:String(s?s.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function b(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,d=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,p=e.dragOverGapBottom,f=e.pos,h=e.active,g=e.eventKey,v=(0,a.Z)((0,a.Z)({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:d,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:p,pos:f,active:h,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return(0,c.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/861-78929b4f98dbbfd6.js b/dbgpt/app/static/_next/static/chunks/861-78929b4f98dbbfd6.js new file mode 100644 index 000000000..a7011d0ce --- /dev/null +++ b/dbgpt/app/static/_next/static/chunks/861-78929b4f98dbbfd6.js @@ -0,0 +1,4 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[861],{27496:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(87462),r=n(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"},o=n(84089),l=r.forwardRef(function(e,t){return r.createElement(o.Z,(0,i.Z)({},e,{ref:t,icon:a}))})},1375:function(e,t,n){async function i(e,t){let n;let i=e.getReader();for(;!(n=await i.read()).done;)t(n.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{a:function(){return o},L:function(){return c}});var a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let o="text/event-stream",l="last-event-id";function c(e,t){var{signal:n,headers:c,onopen:d,onmessage:m,onclose:u,onerror:p,openWhenHidden:g,fetch:f}=t,$=a(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,a)=>{let b;let h=Object.assign({},c);function y(){b.abort(),document.hidden||w()}h.accept||(h.accept=o),g||document.addEventListener("visibilitychange",y);let v=1e3,x=0;function E(){document.removeEventListener("visibilitychange",y),window.clearTimeout(x),b.abort()}null==n||n.addEventListener("abort",()=>{E(),t()});let S=null!=f?f:window.fetch,O=null!=d?d:s;async function w(){var n,o;b=new AbortController;try{let n,a,c,s;let d=await S(e,Object.assign(Object.assign({},$),{headers:h,signal:b.signal}));await O(d),await i(d.body,(o=function(e,t,n){let i=r(),a=new TextDecoder;return function(o,l){if(0===o.length)null==n||n(i),i=r();else if(l>0){let n=a.decode(o.subarray(0,l)),r=l+(32===o[l+1]?2:1),c=a.decode(o.subarray(r));switch(n){case"data":i.data=i.data?i.data+"\n"+c:c;break;case"event":i.event=c;break;case"id":e(i.id=c);break;case"retry":let s=parseInt(c,10);isNaN(s)||t(i.retry=s)}}}}(e=>{e?h[l]=e:delete h[l]},e=>{v=e},m),s=!1,function(e){void 0===n?(n=e,a=0,c=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,i=0;for(;a{let{icon:t,description:n,prefixCls:i,className:a}=e,o=r.createElement("div",{className:`${i}-icon`},r.createElement($,null));return r.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:s()(a,`${i}-content`)},t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${i}-icon`},t),n&&r.createElement("div",{className:`${i}-description`},n)):o)});let h=r.createContext(void 0),{Provider:y}=h;var v=n(23183),x=n(14747),E=n(16932),S=n(93590),O=n(67968),w=n(45503),k=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);let C=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:i,motionEaseInOutCirc:r}=e,a=`${t}-group`,o=new v.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new v.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${a}-wrap`]:Object.assign({},(0,S.R)(`${a}-wrap`,o,l,i,!0))},{[`${a}-wrap`]:{[` + &${a}-wrap-enter, + &${a}-wrap-appear + `]:{opacity:0,animationTimingFunction:r},[`&${a}-wrap-leave`]:{animationTimingFunction:r}}}]},B=e=>{let{antCls:t,componentCls:n,floatButtonSize:i,margin:r,borderRadiusLG:a,borderRadiusSM:o,badgeOffset:l,floatButtonBodyPadding:c}=e,s=`${n}-group`;return{[s]:Object.assign(Object.assign({},(0,x.Wf)(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:i,height:"auto",boxShadow:"none",minHeight:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:a,[`${s}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${s}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${s}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:i,height:i,borderRadius:"50%"}}},[`${s}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(c+l),insetInlineEnd:-(c+l)}}},[`${s}-wrap`]:{display:"block",borderRadius:a,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:c,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${s}-circle-shadow`]:{boxShadow:"none"},[`${s}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:o}}}}},j=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:i,floatButtonIconSize:r,floatButtonSize:a,borderRadiusLG:o,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s}=e;return{[n]:Object.assign(Object.assign({},(0,x.Wf)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,width:a,height:a,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-l,insetInlineEnd:-l}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:a,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${i/2}px ${i}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:a,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:a,borderRadius:o,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:o}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var z=(0,O.Z)("FloatButton",e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:i,marginXXL:r,marginLG:a,fontSize:o,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,borderRadiusLG:d}=e,m=(0,w.TS)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:o,floatButtonIconSize:1.5*l,floatButtonSize:i,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:a,floatButtonBodySize:i-2*s,floatButtonBodyPadding:s,badgeOffset:1.5*s,dotOffsetInCircle:k(i/2),dotOffsetInSquare:k(d)});return[B(m),j(m),(0,E.J$)(e),C(m)]}),I=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let N="float-btn",M=r.forwardRef((e,t)=>{let{prefixCls:n,className:i,rootClassName:a,type:o="default",shape:l="circle",icon:c,description:d,tooltip:f,badge:$={}}=e,y=I(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:v,direction:x}=(0,r.useContext)(p.E_),E=(0,r.useContext)(h),S=v(N,n),[O,w]=z(S),k=s()(w,S,i,a,`${S}-${o}`,`${S}-${E||l}`,{[`${S}-rtl`]:"rtl"===x}),C=(0,r.useMemo)(()=>(0,m.Z)($,["title","children","status","text"]),[$]),B=(0,r.useMemo)(()=>({prefixCls:S,description:d,icon:c,type:o}),[S,d,c,o]),j=r.createElement("div",{className:`${S}-body`},r.createElement(b,Object.assign({},B)));return"badge"in e&&(j=r.createElement(u.Z,Object.assign({},C),j)),"tooltip"in e&&(j=r.createElement(g.Z,{title:f,placement:"rtl"===x?"right":"left"},j)),O(e.href?r.createElement("a",Object.assign({ref:t},y,{className:k}),j):r.createElement("button",Object.assign({ref:t},y,{className:k,type:"button"}),j))});var P=n(66367),H=n(58375),L=n(74902),Z=n(75164),R=function(e){let t;let n=n=>()=>{t=null,e.apply(void 0,(0,L.Z)(n))},i=function(){if(null==t){for(var e=arguments.length,i=Array(e),r=0;r{Z.Z.cancel(t),t=null},i},T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},W=(0,r.memo)(e=>{let{prefixCls:t,className:n,type:i="default",shape:a="circle",visibilityHeight:o=400,icon:c=r.createElement(l,null),target:m,onClick:u,duration:g=450}=e,f=T(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[$,b]=(0,r.useState)(0===o),y=(0,r.useRef)(null),v=()=>y.current&&y.current.ownerDocument?y.current.ownerDocument:window,x=R(e=>{let t=(0,P.Z)(e.target,!0);b(t>=o)});(0,r.useEffect)(()=>{let e=m||v,t=e();return x({target:t}),null==t||t.addEventListener("scroll",x),()=>{x.cancel(),null==t||t.removeEventListener("scroll",x)}},[m]);let E=e=>{(0,H.Z)(0,{getContainer:m||v,duration:g}),null==u||u(e)},{getPrefixCls:S}=(0,r.useContext)(p.E_),O=S(N,t),w=S(),[k]=z(O),C=(0,r.useContext)(h),B=Object.assign({prefixCls:O,icon:c,type:i,shape:C||a},f);return k(r.createElement(d.ZP,{visible:$,motionName:`${w}-fade`},e=>{let{className:t}=e;return r.createElement(M,Object.assign({ref:y},B,{onClick:E,className:s()(n,t)}))}))}),F=n(97937),A=n(21770),D=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},_=(0,r.memo)(e=>{let{prefixCls:t,className:n,style:i,shape:a="circle",type:o="default",icon:l=r.createElement($,null),closeIcon:c=r.createElement(F.Z,null),description:m,trigger:u,children:g,onOpenChange:f,open:b}=e,h=D(e,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:v,getPrefixCls:x}=(0,r.useContext)(p.E_),E=x(N,t),[S,O]=z(E),w=`${E}-group`,k=s()(w,O,n,{[`${w}-rtl`]:"rtl"===v,[`${w}-${a}`]:a,[`${w}-${a}-shadow`]:!u}),C=s()(O,`${w}-wrap`),[B,j]=(0,A.Z)(!1,{value:b}),I=(0,r.useRef)(null),P=(0,r.useRef)(null),H=(0,r.useMemo)(()=>"hover"===u?{onMouseEnter(){j(!0),null==f||f(!0)},onMouseLeave(){j(!1),null==f||f(!1)}}:{},[u]),L=()=>{j(e=>(null==f||f(!e),!e))},Z=(0,r.useCallback)(e=>{var t,n;if(null===(t=I.current)||void 0===t?void 0:t.contains(e.target)){(null===(n=P.current)||void 0===n?void 0:n.contains(e.target))&&L();return}j(!1),null==f||f(!1)},[u]);return(0,r.useEffect)(()=>{if("click"===u)return document.addEventListener("click",Z),()=>{document.removeEventListener("click",Z)}},[u]),S(r.createElement(y,{value:a},r.createElement("div",Object.assign({ref:I,className:k,style:i},H),u&&["click","hover"].includes(u)?r.createElement(r.Fragment,null,r.createElement(d.ZP,{visible:B,motionName:`${w}-wrap`},e=>{let{className:t}=e;return r.createElement("div",{className:s()(t,C)},g)}),r.createElement(M,Object.assign({ref:P,type:o,shape:a,icon:B?c:l,description:m,"aria-label":e["aria-label"]},h))):g)))}),G=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let q=e=>{var{backTop:t}=e,n=G(e,["backTop"]);return t?r.createElement(W,Object.assign({},n,{visibilityHeight:0})):r.createElement(M,Object.assign({},n))};M.BackTop=W,M.Group=_,M._InternalPanelDoNotUseOrYouWillBeFired=e=>{var{className:t,items:n}=e,i=G(e,["className","items"]);let{prefixCls:a}=i,{getPrefixCls:o}=r.useContext(p.E_),l=o(N,a),c=`${l}-pure`;return n?r.createElement(_,Object.assign({className:s()(t,c)},i),n.map((e,t)=>r.createElement(q,Object.assign({key:t},e)))):r.createElement(q,Object.assign({className:s()(t,c)},i))};var V=M},2487:function(e,t,n){n.d(t,{Z:function(){return j}});var i=n(74902),r=n(94184),a=n.n(r),o=n(67294),l=n(38780),c=n(74443),s=n(53124),d=n(88258),m=n(92820),u=n(25378),p=n(81647),g=n(75081),f=n(96159),$=n(21584);let b=o.createContext({});b.Consumer;var h=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};let y=(0,o.forwardRef)((e,t)=>{let n;var{prefixCls:i,children:r,actions:l,extra:c,className:d,colStyle:m}=e,u=h(e,["prefixCls","children","actions","extra","className","colStyle"]);let{grid:p,itemLayout:g}=(0,o.useContext)(b),{getPrefixCls:y}=(0,o.useContext)(s.E_),v=y("list",i),x=l&&l.length>0&&o.createElement("ul",{className:`${v}-item-action`,key:"actions"},l.map((e,t)=>o.createElement("li",{key:`${v}-item-action-${t}`},e,t!==l.length-1&&o.createElement("em",{className:`${v}-item-action-split`})))),E=p?"div":"li",S=o.createElement(E,Object.assign({},u,p?{}:{ref:t},{className:a()(`${v}-item`,{[`${v}-item-no-flex`]:!("vertical"===g?!!c:(o.Children.forEach(r,e=>{"string"==typeof e&&(n=!0)}),!(n&&o.Children.count(r)>1)))},d)}),"vertical"===g&&c?[o.createElement("div",{className:`${v}-item-main`,key:"content"},r,x),o.createElement("div",{className:`${v}-item-extra`,key:"extra"},c)]:[r,x,(0,f.Tm)(c,{key:"extra"})]);return p?o.createElement($.Z,{ref:t,flex:1,style:m},S):S});y.Meta=e=>{var{prefixCls:t,className:n,avatar:i,title:r,description:l}=e,c=h(e,["prefixCls","className","avatar","title","description"]);let{getPrefixCls:d}=(0,o.useContext)(s.E_),m=d("list",t),u=a()(`${m}-item-meta`,n),p=o.createElement("div",{className:`${m}-item-meta-content`},r&&o.createElement("h4",{className:`${m}-item-meta-title`},r),l&&o.createElement("div",{className:`${m}-item-meta-description`},l));return o.createElement("div",Object.assign({},c,{className:u}),i&&o.createElement("div",{className:`${m}-item-meta-avatar`},i),(r||l)&&p)};var v=n(14747),x=n(67968),E=n(45503);let S=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:i,margin:r,itemPaddingSM:a,itemPaddingLG:o,marginLG:l,borderRadiusLG:c}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:i},[`${n}-pagination`]:{margin:`${r}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},O=e=>{let{componentCls:t,screenSM:n,screenMD:i,marginLG:r,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${i})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${o}px`}}}}}},w=e=>{let{componentCls:t,antCls:n,controlHeight:i,minHeight:r,paddingSM:a,marginLG:o,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:d,itemPaddingLG:m,paddingXS:u,margin:p,colorText:g,colorTextDescription:f,motionDurationSlow:$,lineWidth:b,headerBg:h,footerBg:y,emptyTextPadding:x,metaMarginBottom:E,avatarMarginRight:S,titleMarginBottom:O,descriptionFontSize:w}=e,k={};return["start","center","end"].forEach(e=>{k[`&-align-${e}`]={textAlign:e}}),{[`${t}`]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:h},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:o},k),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${$}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:f,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${u}px`,color:f,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:b,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:f,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:E,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:i},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var k=(0,x.Z)("List",e=>{let t=(0,E.TS)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[w(t),S(t),O(t)]},e=>({contentWidth:220,itemPadding:`${e.paddingContentVertical}px 0`,itemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,itemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize})),C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n};function B(e){var t,{pagination:n=!1,prefixCls:r,bordered:f=!1,split:$=!0,className:h,rootClassName:y,style:v,children:x,itemLayout:E,loadMore:S,grid:O,dataSource:w=[],size:B,header:j,footer:z,loading:I=!1,rowKey:N,renderItem:M,locale:P}=e,H=C(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);let L=n&&"object"==typeof n?n:{},[Z,R]=o.useState(L.defaultCurrent||1),[T,W]=o.useState(L.defaultPageSize||10),{getPrefixCls:F,renderEmpty:A,direction:D,list:_}=o.useContext(s.E_),G=e=>(t,i)=>{var r;R(t),W(i),n&&n[e]&&(null===(r=null==n?void 0:n[e])||void 0===r||r.call(n,t,i))},q=G("onChange"),V=G("onShowSizeChange"),X=(e,t)=>{let n;return M?((n="function"==typeof N?N(e):N?e[N]:e.key)||(n=`list-item-${t}`),o.createElement(o.Fragment,{key:n},M(e,t))):null},J=F("list",r),[U,Y]=k(J),K=I;"boolean"==typeof K&&(K={spinning:K});let Q=K&&K.spinning,ee="";switch(B){case"large":ee="lg";break;case"small":ee="sm"}let et=a()(J,{[`${J}-vertical`]:"vertical"===E,[`${J}-${ee}`]:ee,[`${J}-split`]:$,[`${J}-bordered`]:f,[`${J}-loading`]:Q,[`${J}-grid`]:!!O,[`${J}-something-after-last-item`]:!!(S||n||z),[`${J}-rtl`]:"rtl"===D},null==_?void 0:_.className,h,y,Y),en=(0,l.Z)({current:1,total:0},{total:w.length,current:Z,pageSize:T},n||{}),ei=Math.ceil(en.total/en.pageSize);en.current>ei&&(en.current=ei);let er=n?o.createElement("div",{className:a()(`${J}-pagination`,`${J}-pagination-align-${null!==(t=null==en?void 0:en.align)&&void 0!==t?t:"end"}`)},o.createElement(p.Z,Object.assign({},en,{onChange:q,onShowSizeChange:V}))):null,ea=(0,i.Z)(w);n&&w.length>(en.current-1)*en.pageSize&&(ea=(0,i.Z)(w).splice((en.current-1)*en.pageSize,en.pageSize));let eo=Object.keys(O||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),el=(0,u.Z)(eo),ec=o.useMemo(()=>{for(let e=0;e{if(!O)return;let e=ec&&O[ec]?O[ec]:O.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[null==O?void 0:O.column,ec]),ed=Q&&o.createElement("div",{style:{minHeight:53}});if(ea.length>0){let e=ea.map((e,t)=>X(e,t));ed=O?o.createElement(m.Z,{gutter:O.gutter},o.Children.map(e,e=>o.createElement("div",{key:null==e?void 0:e.key,style:es},e))):o.createElement("ul",{className:`${J}-items`},e)}else x||Q||(ed=o.createElement("div",{className:`${J}-empty-text`},P&&P.emptyText||(null==A?void 0:A("List"))||o.createElement(d.Z,{componentName:"List"})));let em=en.position||"bottom",eu=o.useMemo(()=>({grid:O,itemLayout:E}),[JSON.stringify(O),E]);return U(o.createElement(b.Provider,{value:eu},o.createElement("div",Object.assign({style:Object.assign(Object.assign({},null==_?void 0:_.style),v),className:et},H),("top"===em||"both"===em)&&er,j&&o.createElement("div",{className:`${J}-header`},j),o.createElement(g.Z,Object.assign({},K),ed,x),z&&o.createElement("div",{className:`${J}-footer`},z),S||("bottom"===em||"both"===em)&&er)))}B.Item=y;var j=B}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/924-ba8e16df4d61ff5c.js b/dbgpt/app/static/_next/static/chunks/924-ba8e16df4d61ff5c.js deleted file mode 100644 index 4f3bb5501..000000000 --- a/dbgpt/app/static/_next/static/chunks/924-ba8e16df4d61ff5c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[924],{75081:function(e,t,o){o.d(t,{Z:function(){return $}});var n=o(94184),i=o.n(n),r=o(98423),l=o(67294),a=o(96159),s=o(53124),c=o(23183),p=o(14747),d=o(67968),m=o(45503);let u=new c.E4("antSpinMove",{to:{opacity:1}}),g=new c.E4("antRotate",{to:{transform:"rotate(405deg)"}}),b=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`,fontSize:e.fontSize},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:u,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:g,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var f=(0,d.Z)("Spin",e=>{let t=(0,m.TS)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[b(t)]},{contentHeight:400}),h=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};let S=null,y=e=>{let{spinPrefixCls:t,spinning:o=!0,delay:n=0,className:c,rootClassName:p,size:d="default",tip:m,wrapperClassName:u,style:g,children:b,hashId:f}=e,y=h(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[C,$]=l.useState(()=>o&&(!o||!n||!!isNaN(Number(n))));l.useEffect(()=>{if(o){var e;let t=function(e,t,o){var n,i=o||{},r=i.noTrailing,l=void 0!==r&&r,a=i.noLeading,s=void 0!==a&&a,c=i.debounceMode,p=void 0===c?void 0:c,d=!1,m=0;function u(){n&&clearTimeout(n)}function g(){for(var o=arguments.length,i=Array(o),r=0;re?s?(m=Date.now(),l||(n=setTimeout(p?b:g,e))):g():!0!==l&&(n=setTimeout(p?b:g,void 0===p?e-c:e)))}return g.cancel=function(e){var t=(e||{}).upcomingOnly;u(),d=!(void 0!==t&&t)},g}(n,()=>{$(!0)},{debounceMode:!1!==(void 0!==(e=({}).atBegin)&&e)});return t(),()=>{var e;null===(e=null==t?void 0:t.cancel)||void 0===e||e.call(t)}}$(!1)},[n,o]);let v=l.useMemo(()=>void 0!==b,[b]),{direction:x,spin:k}=l.useContext(s.E_),O=i()(t,null==k?void 0:k.className,{[`${t}-sm`]:"small"===d,[`${t}-lg`]:"large"===d,[`${t}-spinning`]:C,[`${t}-show-text`]:!!m,[`${t}-rtl`]:"rtl"===x},c,p,f),D=i()(`${t}-container`,{[`${t}-blur`]:C}),E=(0,r.Z)(y,["indicator","prefixCls"]),z=Object.assign(Object.assign({},null==k?void 0:k.style),g),w=l.createElement("div",Object.assign({},E,{style:z,className:O,"aria-live":"polite","aria-busy":C}),function(e,t){let{indicator:o}=t,n=`${e}-dot`;return null===o?null:(0,a.l$)(o)?(0,a.Tm)(o,{className:i()(o.props.className,n)}):(0,a.l$)(S)?(0,a.Tm)(S,{className:i()(S.props.className,n)}):l.createElement("span",{className:i()(n,`${e}-dot-spin`)},l.createElement("i",{className:`${e}-dot-item`,key:1}),l.createElement("i",{className:`${e}-dot-item`,key:2}),l.createElement("i",{className:`${e}-dot-item`,key:3}),l.createElement("i",{className:`${e}-dot-item`,key:4}))}(t,e),m&&v?l.createElement("div",{className:`${t}-text`},m):null);return v?l.createElement("div",Object.assign({},E,{className:i()(`${t}-nested-loading`,u,f)}),C&&l.createElement("div",{key:"loading"},w),l.createElement("div",{className:D,key:"container"},b)):w},C=e=>{let{prefixCls:t}=e,{getPrefixCls:o}=l.useContext(s.E_),n=o("spin",t),[i,r]=f(n),a=Object.assign(Object.assign({},e),{spinPrefixCls:n,hashId:r});return i(l.createElement(y,Object.assign({},a)))};C.setDefaultIndicator=e=>{S=e};var $=C},66309:function(e,t,o){o.d(t,{Z:function(){return D}});var n=o(67294),i=o(97937),r=o(94184),l=o.n(r),a=o(98787),s=o(69760),c=o(45353),p=o(53124),d=o(14747),m=o(45503),u=o(67968);let g=e=>{let{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:n,componentCls:i}=e,r=n-o;return{[i]:Object.assign(Object.assign({},(0,d.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:r,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:t-o,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:r}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},b=e=>{let{lineWidth:t,fontSizeIcon:o}=e,n=e.fontSizeSM,i=`${e.lineHeightSM*n}px`,r=(0,m.TS)(e,{tagFontSize:n,tagLineHeight:i,tagIconSize:o-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return r},f=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var h=(0,u.Z)("Tag",e=>{let t=b(e);return g(t)},f),S=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o},y=o(98719);let C=e=>(0,y.Z)(e,(t,o)=>{let{textColor:n,lightBorderColor:i,lightColor:r,darkColor:l}=o;return{[`${e.componentCls}-${t}`]:{color:n,background:r,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var $=(0,u.b)(["Tag","preset"],e=>{let t=b(e);return C(t)},f);let v=(e,t,o)=>{let n=function(e){if("string"!=typeof e)return e;let t=e.charAt(0).toUpperCase()+e.slice(1);return t}(o);return{[`${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var x=(0,u.b)(["Tag","status"],e=>{let t=b(e);return[v(t,"success","Success"),v(t,"processing","Info"),v(t,"error","Error"),v(t,"warning","Warning")]},f),k=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]]);return o};let O=n.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:d,style:m,children:u,icon:g,color:b,onClose:f,closeIcon:S,closable:y,bordered:C=!0}=e,v=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:O,direction:D,tag:E}=n.useContext(p.E_),[z,w]=n.useState(!0);n.useEffect(()=>{"visible"in v&&w(v.visible)},[v.visible]);let N=(0,a.o2)(b),T=(0,a.yT)(b),j=N||T,I=Object.assign(Object.assign({backgroundColor:b&&!j?b:void 0},null==E?void 0:E.style),m),P=O("tag",o),[M,L]=h(P),X=l()(P,null==E?void 0:E.className,{[`${P}-${b}`]:j,[`${P}-has-color`]:b&&!j,[`${P}-hidden`]:!z,[`${P}-rtl`]:"rtl"===D,[`${P}-borderless`]:!C},r,d,L),B=e=>{e.stopPropagation(),null==f||f(e),e.defaultPrevented||w(!1)},[,H]=(0,s.Z)(y,S,e=>null===e?n.createElement(i.Z,{className:`${P}-close-icon`,onClick:B}):n.createElement("span",{className:`${P}-close-icon`,onClick:B},e),null,!1),G="function"==typeof v.onClick||u&&"a"===u.type,Z=g||null,_=Z?n.createElement(n.Fragment,null,Z,u&&n.createElement("span",null,u)):u,F=n.createElement("span",Object.assign({},v,{ref:t,className:X,style:I}),_,H,N&&n.createElement($,{key:"preset",prefixCls:P}),T&&n.createElement(x,{key:"status",prefixCls:P}));return M(G?n.createElement(c.Z,{component:"Tag"},F):F)});O.CheckableTag=e=>{let{prefixCls:t,className:o,checked:i,onChange:r,onClick:a}=e,s=S(e,["prefixCls","className","checked","onChange","onClick"]),{getPrefixCls:c}=n.useContext(p.E_),d=c("tag",t),[m,u]=h(d),g=l()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},o,u);return m(n.createElement("span",Object.assign({},s,{className:g,onClick:e=>{null==r||r(!i),null==a||a(e)}})))};var D=O}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/955.1d3493029bdff0ca.js b/dbgpt/app/static/_next/static/chunks/955.941a272837abcd86.js similarity index 72% rename from dbgpt/app/static/_next/static/chunks/955.1d3493029bdff0ca.js rename to dbgpt/app/static/_next/static/chunks/955.941a272837abcd86.js index c80a678ce..82d0ef565 100644 --- a/dbgpt/app/static/_next/static/chunks/955.1d3493029bdff0ca.js +++ b/dbgpt/app/static/_next/static/chunks/955.941a272837abcd86.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955],{13135:function(e,t,n){"use strict";n.d(t,{_z:function(){return S},ZP:function(){return O},aG:function(){return P}});var l=n(85893),a=n(41118),r=n(30208),i=n(40911),s=n(48605);function c(e){let{chart:t}=e;return(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(a.Z,{className:"h-full",sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"h-full",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,l.jsx)(i.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(s.k,{style:{height:"100%"},options:{autoFit:!0,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})})}function o(e){let{chart:t}=e;return(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(a.Z,{className:"h-full",sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"h-full",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,l.jsx)(i.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(s.k,{style:{height:"100%"},options:{autoFit:!0,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})})}var d=n(61685),u=n(96486);function h(e){var t,n;let{chart:s}=e,c=(0,u.groupBy)(s.values,"type");return(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(a.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"h-full",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:s.chart_name}),(0,l.jsx)(i.ZP,{gutterBottom:!0,level:"body3",children:s.chart_desc}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsxs)(d.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:Object.keys(c).map(e=>(0,l.jsx)("th",{children:e},e))})}),(0,l.jsx)("tbody",{children:null===(t=Object.values(c))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.map((e,t)=>{var n;return(0,l.jsx)("tr",{children:null===(n=Object.keys(c))||void 0===n?void 0:n.map(e=>{var n;return(0,l.jsx)("td",{children:(null==c?void 0:null===(n=c[e])||void 0===n?void 0:n[t].value)||""},e)})},t)})})]})})]})})})}var m=n(67294),x=n(51009),p=n(71230),f=n(15746),v=n(83062),y=n(32983),j=n(80882),g=n(58989),_=n(5165);let b=e=>{let{charts:t,scopeOfCharts:n,ruleConfig:l}=e,a={};if(null==t||t.forEach(e=>{if(e.chartKnowledge.toSpec){let t=e.chartKnowledge.toSpec;e.chartKnowledge.toSpec=(e,n)=>({...t(e,n),dataProps:n})}else e.chartKnowledge.toSpec=(e,t)=>({dataProps:t});a[e.chartType]=e.chartKnowledge}),(null==n?void 0:n.exclude)&&n.exclude.forEach(e=>{Object.keys(a).includes(e)&&delete a[e]}),null==n?void 0:n.include){let e=n.include;Object.keys(a).forEach(t=>{e.includes(t)||delete a[t]})}let r={...n,custom:a},i={...l},s=new _.w({ckbCfg:r,ruleCfg:i});return s},w=e=>{var t;let{data:n,dataMetaMap:l,myChartAdvisor:a}=e,r=l?Object.keys(l).map(e=>({name:e,...l[e]})):null,i=null==a?void 0:a.adviseWithLog({data:n,dataProps:r});return null!==(t=null==i?void 0:i.advices)&&void 0!==t?t:[]};function Z(e,t){return t.every(t=>e.includes(t))}function N(e,t){let n=t.find(t=>t.name===e);return(null==n?void 0:n.recommendation)==="date"?t=>new Date(t[e]):e}let C=[{chartType:"multi_line_chart",chartKnowledge:{id:"multi_line_chart",name:"multi_line_chart",alias:["multi_line_chart"],family:["LineCharts"],def:"multi_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{let n=t.find(e=>{var t;return t=e.levelOfMeasurements,["Time","Ordinal"].some(e=>t.includes(e))}),l=t.filter(e=>Z(e.levelOfMeasurements,["Interval"])),a=t.find(e=>Z(e.levelOfMeasurements,["Nominal"]));if(!n||!l)return null;let r={type:"view",autoFit:!0,data:e,children:[]};return l.forEach(e=>{let l={type:"line",encode:{x:N(n.name,t),y:e.name}};a&&(l.encode.color=a.name),r.children.push(l)}),r}},chineseName:"折线图"},{chartType:"multi_measure_column_chart",chartKnowledge:{id:"multi_measure_column_chart",name:"multi_measure_column_chart",alias:["multi_measure_column_chart"],family:["ColumnCharts"],def:"multi_measure_column_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let n=null==t?void 0:t.filter(e=>Z(e.levelOfMeasurements,["Interval"])),l=null==t?void 0:t.find(e=>Z(e.levelOfMeasurements,["Nominal"]));if(!l||!n)return null;let a={type:"view",data:e,children:[]};return null==n||n.forEach(e=>{let t={type:"interval",encode:{x:l.name,y:e.name,color:()=>e.name,series:()=>e.name}};a.children.push(t)}),a}catch(e){return console.log(e),null}}},chineseName:"折线图"},{chartType:"multi_measure_line_chart",chartKnowledge:{id:"multi_measure_line_chart",name:"multi_measure_line_chart",alias:["multi_measure_line_chart"],family:["LineCharts"],def:"multi_measure_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let n=null==t?void 0:t.filter(e=>Z(e.levelOfMeasurements,["Interval"])),l=null==t?void 0:t.find(e=>Z(e.levelOfMeasurements,["Nominal"]));if(!l||!n)return null;let a={type:"view",data:e,children:[]};return null==n||n.forEach(e=>{let n={type:"line",encode:{x:N(l.name,t),y:e.name,color:()=>e.name,series:()=>e.name}};a.children.push(n)}),a}catch(e){return console.log(e),null}}},chineseName:"折线图"}],P=e=>"response_line_chart"===e?["multi_line_chart","multi_measure_line_chart"]:"response_bar_chart"===e?["multi_measure_column_chart"]:"response_pie_chart"===e?["pie_chart"]:"response_scatter_chart"===e?["scatter_plot"]:"response_area_chart"===e?["area_chart"]:"response_heatmap_chart"===e?["heatmap"]:[],{Option:k}=x.default,S=e=>{let{data:t,chartType:n,scopeOfCharts:a,ruleConfig:r}=e,[i,c]=(0,m.useState)(),[o,d]=(0,m.useState)([]),[u,h]=(0,m.useState)();(0,m.useEffect)(()=>{c(b({charts:C,scopeOfCharts:void 0,ruleConfig:r}))},[r,a]),(0,m.useEffect)(()=>{if(t&&i){var e;let l=w({data:t,myChartAdvisor:i}),a=function(e){let{advices:t}=e;return t}({advices:l});a.sort((e,t)=>n.indexOf(t.type)-(null==n?void 0:n.indexOf(e.type))),d(a),h(null===(e=a[0])||void 0===e?void 0:e.type)}},[t,i,n]);let _=(0,m.useMemo)(()=>{if((null==o?void 0:o.length)>0){var e,t;let n=null!=u?u:o[0].type,a=null!==(t=null===(e=null==o?void 0:o.find(e=>e.type===n))||void 0===e?void 0:e.spec)&&void 0!==t?t:void 0;if(a)return(0,l.jsx)(s.k,{options:a},n)}},[o,u]);return u?(0,l.jsxs)("div",{children:[(0,l.jsxs)(p.Z,{justify:"start",children:[(0,l.jsx)(f.Z,{children:g.Z.t("Advices")}),(0,l.jsx)(f.Z,{style:{marginLeft:24},children:(0,l.jsx)(x.default,{value:u,placeholder:"Chart Switcher",style:{width:"180px"},onChange:e=>h(e),size:"small",children:null==o?void 0:o.map(e=>{let t=g.Z.t(e.type);return(0,l.jsx)(k,{value:e.type,children:(0,l.jsx)(v.Z,{title:t,placement:"right",children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,l.jsx)(j.Z,{}),(0,l.jsx)("div",{style:{marginLeft:"2px"},children:t})]})})},e.type)})})})]}),(0,l.jsx)("div",{className:"auto-chart-content",children:_})]}):(0,l.jsx)(y.Z,{image:y.Z.PRESENTED_IMAGE_SIMPLE,description:"暂无合适的可视化视图"})};var O=function(e){let{chartsData:t}=e,n=(0,m.useMemo)(()=>{if(t){let e=[],n=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);n.length>0&&e.push({charts:n,type:"IndicatorValue"});let l=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),a=l.length,r=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][a].forEach(t=>{if(t>0){let n=l.slice(r,r+t);r+=t,e.push({charts:n})}}),e}},[t]);return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:null==n?void 0:n.map((e,t)=>(0,l.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,l.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(a.Z,{sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"justify-around",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,l.jsx)(i.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,l.jsx)(o,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,l.jsx)(c,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,l.jsx)(h,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},34625:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var l=n(85893),a=n(67294),r=n(2453),i=n(83062),s=n(84553),c=n(71577),o=n(49591),d=n(88484),u=n(29158),h=n(50489),m=n(41468),x=function(e){var t;let{convUid:n,chatMode:x,onComplete:p,...f}=e,[v,y]=(0,a.useState)(!1),[j,g]=r.ZP.useMessage(),[_,b]=(0,a.useState)([]),[w,Z]=(0,a.useState)(),{model:N}=(0,a.useContext)(m.p),C=async e=>{var t;if(!e){r.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(t=e.file.name)&&void 0!==t?t:"")){r.ZP.error("File type must be csv, xlsx or xls");return}b([e.file])},P=async()=>{y(!0);try{let e=new FormData;e.append("doc_file",_[0]),j.open({content:"Uploading ".concat(_[0].name),type:"loading",duration:0});let[t]=await (0,h.Vx)((0,h.qn)({convUid:n,chatMode:x,data:e,model:N,config:{timeout:36e5,onUploadProgress:e=>{let t=Math.ceil(e.loaded/(e.total||0)*100);Z(t)}}}));if(t)return;r.ZP.success("success"),null==p||p()}catch(e){r.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{y(!1),j.destroy()}};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex items-start gap-2",children:[g,(0,l.jsx)(i.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,l.jsx)(s.default,{disabled:v,className:"mr-1",beforeUpload:()=>!1,fileList:_,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:C,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,l.jsx)(l.Fragment,{}),...f,children:(0,l.jsx)(c.ZP,{className:"flex justify-center items-center",type:"primary",disabled:v,icon:(0,l.jsx)(o.Z,{}),children:"Select File"})})}),(0,l.jsx)(c.ZP,{type:"primary",loading:v,className:"flex justify-center items-center",disabled:!_.length,icon:(0,l.jsx)(d.Z,{}),onClick:P,children:v?100===w?"Analysis":"Uploading":"Upload"}),!!_.length&&(0,l.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,l.jsx)(u.Z,{className:"mr-2"}),(0,l.jsx)("span",{children:null===(t=_[0])||void 0===t?void 0:t.name})]})]})})},p=function(e){let{onComplete:t}=e,{currentDialogue:n,scene:r,chatId:i}=(0,a.useContext)(m.p);return"chat_excel"!==r?null:(0,l.jsx)("div",{className:"max-w-md h-full relative",children:n?(0,l.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,l.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,l.jsx)(u.Z,{className:"text-white"})}),(0,l.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:n.select_param})]}):(0,l.jsx)(x,{convUid:i,chatMode:r,onComplete:t})})};n(23293);var f=n(78045),v=n(16165),y=n(96991),j=n(82579);function g(){let{isContract:e,setIsContract:t,scene:n}=(0,a.useContext)(m.p),r=n&&["chat_with_db_execute","chat_dashboard"].includes(n);return r?(0,l.jsxs)(f.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{t(!e)},children:[(0,l.jsxs)(f.ZP.Button,{value:!1,children:[(0,l.jsx)(v.Z,{component:j.ig,className:"mr-1"}),"Preview"]}),(0,l.jsxs)(f.ZP.Button,{value:!0,children:[(0,l.jsx)(y.Z,{className:"mr-1"}),"Editor"]})]}):null}var _=n(81799),b=n(98399),w=n(2093),Z=n(51009),N=n(98978),C=function(){let{scene:e,dbParam:t,setDbParam:n}=(0,a.useContext)(m.p),[r,i]=(0,a.useState)([]);(0,w.Z)(async()=>{let[,t]=await (0,h.Vx)((0,h.vD)(e));i(null!=t?t:[])},[e]);let s=(0,a.useMemo)(()=>{var e;return null===(e=r.map)||void 0===e?void 0:e.call(r,e=>({name:e.param,...b.S$[e.type]}))},[r]);return((0,a.useEffect)(()=>{(null==s?void 0:s.length)&&!t&&n(s[0].name)},[s,n,t]),null==s?void 0:s.length)?(0,l.jsx)(Z.default,{value:t,className:"w-36",onChange:e=>{n(e)},children:s.map(e=>(0,l.jsxs)(Z.default.Option,{children:[(0,l.jsx)(N.Z,{width:24,height:24,src:e.icon,label:e.label,className:"w-[1.5em] h-[1.5em] mr-1 inline-block mt-[-4px]"}),e.name]},e.name))}):null},P=n(577),k=n(11163),S=n(67421),O=function(){let{push:e}=(0,k.useRouter)(),{t}=(0,S.$G)(),{agentList:n,setAgentList:r}=(0,a.useContext)(m.p),{data:i=[]}=(0,P.Z)(async()=>{let[,e]=await (0,h.Vx)((0,h.N6)());return e&&e.length&&(null==r||r([e[0].name])),null!=e?e:[]});return i.length?(0,l.jsx)(Z.default,{className:"w-60",value:n,mode:"multiple",maxTagCount:1,maxTagTextLength:12,placeholder:t("Select_Plugins"),options:i.map(e=>({label:e.name,value:e.name})),allowClear:!0,onChange:e=>{null==r||r(e)}}):(0,l.jsx)(c.ZP,{type:"primary",onClick:()=>{e("/agent")},children:t("To_Plugin_Market")})},E=function(e){let{refreshHistory:t,modelChange:n}=e,{scene:r,refreshDialogList:i}=(0,a.useContext)(m.p);return(0,l.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center border-b border-gray-100 gap-1 md:gap-4",children:[(0,l.jsx)(_.Z,{onChange:n}),(0,l.jsx)(C,{}),"chat_excel"===r&&(0,l.jsx)(p,{onComplete:()=>{null==i||i(),null==t||t()}}),"chat_agent"===r&&(0,l.jsx)(O,{}),(0,l.jsx)(g,{})]})}},81799:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var l=n(85893),a=n(41468),r=n(51009),i=n(19284),s=n(25675),c=n.n(s),o=n(67294),d=n(67421);function u(e,t){var n;let{width:a,height:r}=t||{};return e?(0,l.jsx)(c(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:a||24,height:r||24,src:(null===(n=i.Hf[e])||void 0===n?void 0:n.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:n}=(0,d.$G)(),{modelList:s,model:c}=(0,o.useContext)(a.p);return!s||s.length<=0?null:(0,l.jsx)(r.default,{value:c,placeholder:n("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:s.map(e=>{var t;return(0,l.jsx)(r.default.Option,{children:(0,l.jsxs)("div",{className:"flex items-center",children:[u(e),(0,l.jsx)("span",{className:"ml-2",children:(null===(t=i.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},99513:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var l=n(85893),a=n(77119),r=n(63764),i=n(94184),s=n.n(i),c=n(67294),o=n(36782);function d(e){let{className:t,value:n,language:a="mysql",onChange:i,thoughts:d}=e,u=(0,c.useMemo)(()=>"mysql"!==a?n:d&&d.length>0?(0,o.WU)("-- ".concat(d," \n").concat(n)):(0,o.WU)(n),[n,d]);return(0,l.jsx)(r.ZP,{className:s()(t),value:u,language:a,onChange:i,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}r._m.config({monaco:a})},98978:function(e,t,n){"use strict";var l=n(85893),a=n(25675),r=n.n(a);t.Z=function(e){let{src:t,label:n,width:a,height:i,className:s}=e;return(0,l.jsx)(r(),{className:"w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ".concat(s),width:a||44,height:i||44,src:t,alt:n||"db-icon"})}},30119:function(e,t,n){"use strict";n.d(t,{Tk:function(){return c},PR:function(){return o}});var l=n(2453),a=n(6154),r=n(83454);let i=a.Z.create({baseURL:r.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),n(96486);let s={"content-type":"application/json"},c=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return i.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{l.ZP.error(e),Promise.reject(e)})},o=(e,t)=>i.post(e,t,{headers:s}).then(e=>e).catch(e=>{l.ZP.error(e),Promise.reject(e)})},23293:function(){}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[955],{13135:function(e,t,n){"use strict";n.d(t,{_z:function(){return S},ZP:function(){return O},aG:function(){return P}});var l=n(85893),a=n(41118),r=n(30208),i=n(40911),s=n(48605);function c(e){let{chart:t}=e;return(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(a.Z,{className:"h-full",sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"h-full",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,l.jsx)(i.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(s.k,{style:{height:"100%"},options:{autoFit:!0,type:"interval",data:t.values,encode:{x:"name",y:"value",color:"type"},axis:{x:{labelAutoRotate:!1}}}})})]})})})}function o(e){let{chart:t}=e;return(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(a.Z,{className:"h-full",sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"h-full",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:t.chart_name}),(0,l.jsx)(i.ZP,{gutterBottom:!0,level:"body3",children:t.chart_desc}),(0,l.jsx)("div",{className:"h-[300px]",children:(0,l.jsx)(s.k,{style:{height:"100%"},options:{autoFit:!0,type:"view",data:t.values,children:[{type:"line",encode:{x:"name",y:"value",color:"type",shape:"smooth"}},{type:"area",encode:{x:"name",y:"value",color:"type",shape:"smooth"},legend:!1,style:{fillOpacity:.15}}],axis:{x:{labelAutoRotate:!1}}}})})]})})})}var d=n(61685),u=n(96486);function h(e){var t,n;let{chart:s}=e,c=(0,u.groupBy)(s.values,"type");return(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(a.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"h-full",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:s.chart_name}),(0,l.jsx)(i.ZP,{gutterBottom:!0,level:"body3",children:s.chart_desc}),(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsxs)(d.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:Object.keys(c).map(e=>(0,l.jsx)("th",{children:e},e))})}),(0,l.jsx)("tbody",{children:null===(t=Object.values(c))||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.map((e,t)=>{var n;return(0,l.jsx)("tr",{children:null===(n=Object.keys(c))||void 0===n?void 0:n.map(e=>{var n;return(0,l.jsx)("td",{children:(null==c?void 0:null===(n=c[e])||void 0===n?void 0:n[t].value)||""},e)})},t)})})]})})]})})})}var m=n(67294),x=n(51009),p=n(71230),f=n(15746),v=n(83062),y=n(32983),j=n(80882),g=n(58989),_=n(5165);let b=e=>{let{charts:t,scopeOfCharts:n,ruleConfig:l}=e,a={};if(null==t||t.forEach(e=>{if(e.chartKnowledge.toSpec){let t=e.chartKnowledge.toSpec;e.chartKnowledge.toSpec=(e,n)=>({...t(e,n),dataProps:n})}else e.chartKnowledge.toSpec=(e,t)=>({dataProps:t});a[e.chartType]=e.chartKnowledge}),(null==n?void 0:n.exclude)&&n.exclude.forEach(e=>{Object.keys(a).includes(e)&&delete a[e]}),null==n?void 0:n.include){let e=n.include;Object.keys(a).forEach(t=>{e.includes(t)||delete a[t]})}let r={...n,custom:a},i={...l},s=new _.w({ckbCfg:r,ruleCfg:i});return s},w=e=>{var t;let{data:n,dataMetaMap:l,myChartAdvisor:a}=e,r=l?Object.keys(l).map(e=>({name:e,...l[e]})):null,i=null==a?void 0:a.adviseWithLog({data:n,dataProps:r});return null!==(t=null==i?void 0:i.advices)&&void 0!==t?t:[]};function Z(e,t){return t.every(t=>e.includes(t))}function N(e,t){let n=t.find(t=>t.name===e);return(null==n?void 0:n.recommendation)==="date"?t=>new Date(t[e]):e}let C=[{chartType:"multi_line_chart",chartKnowledge:{id:"multi_line_chart",name:"multi_line_chart",alias:["multi_line_chart"],family:["LineCharts"],def:"multi_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Trend"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:1,fieldConditions:["Time","Ordinal"]},{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:0,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{let n=t.find(e=>{var t;return t=e.levelOfMeasurements,["Time","Ordinal"].some(e=>t.includes(e))}),l=t.filter(e=>Z(e.levelOfMeasurements,["Interval"])),a=t.find(e=>Z(e.levelOfMeasurements,["Nominal"]));if(!n||!l)return null;let r={type:"view",autoFit:!0,data:e,children:[]};return l.forEach(e=>{let l={type:"line",encode:{x:N(n.name,t),y:e.name}};a&&(l.encode.color=a.name),r.children.push(l)}),r}},chineseName:"折线图"},{chartType:"multi_measure_column_chart",chartKnowledge:{id:"multi_measure_column_chart",name:"multi_measure_column_chart",alias:["multi_measure_column_chart"],family:["ColumnCharts"],def:"multi_measure_column_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let n=null==t?void 0:t.filter(e=>Z(e.levelOfMeasurements,["Interval"])),l=null==t?void 0:t.find(e=>Z(e.levelOfMeasurements,["Nominal"]));if(!l||!n)return null;let a={type:"view",data:e,children:[]};return null==n||n.forEach(e=>{let t={type:"interval",encode:{x:l.name,y:e.name,color:()=>e.name,series:()=>e.name}};a.children.push(t)}),a}catch(e){return console.log(e),null}}},chineseName:"折线图"},{chartType:"multi_measure_line_chart",chartKnowledge:{id:"multi_measure_line_chart",name:"multi_measure_line_chart",alias:["multi_measure_line_chart"],family:["LineCharts"],def:"multi_measure_line_chart uses lines with segments to show changes in data in a ordinal dimension",purpose:["Comparison","Distribution"],coord:["Cartesian2D"],category:["Statistic"],shape:["Lines"],dataPres:[{minQty:1,maxQty:"*",fieldConditions:["Interval"]},{minQty:1,maxQty:1,fieldConditions:["Nominal"]}],channel:["Color","Direction","Position"],recRate:"Recommended",toSpec:(e,t)=>{try{let n=null==t?void 0:t.filter(e=>Z(e.levelOfMeasurements,["Interval"])),l=null==t?void 0:t.find(e=>Z(e.levelOfMeasurements,["Nominal"]));if(!l||!n)return null;let a={type:"view",data:e,children:[]};return null==n||n.forEach(e=>{let n={type:"line",encode:{x:N(l.name,t),y:e.name,color:()=>e.name,series:()=>e.name}};a.children.push(n)}),a}catch(e){return console.log(e),null}}},chineseName:"折线图"}],P=e=>"response_line_chart"===e?["multi_line_chart","multi_measure_line_chart"]:"response_bar_chart"===e?["multi_measure_column_chart"]:"response_pie_chart"===e?["pie_chart"]:"response_scatter_chart"===e?["scatter_plot"]:"response_area_chart"===e?["area_chart"]:"response_heatmap_chart"===e?["heatmap"]:[],{Option:k}=x.default,S=e=>{let{data:t,chartType:n,scopeOfCharts:a,ruleConfig:r}=e,[i,c]=(0,m.useState)(),[o,d]=(0,m.useState)([]),[u,h]=(0,m.useState)();(0,m.useEffect)(()=>{c(b({charts:C,scopeOfCharts:void 0,ruleConfig:r}))},[r,a]),(0,m.useEffect)(()=>{if(t&&i){var e;let l=w({data:t,myChartAdvisor:i}),a=function(e){let{advices:t}=e;return t}({advices:l});a.sort((e,t)=>n.indexOf(t.type)-(null==n?void 0:n.indexOf(e.type))),d(a),h(null===(e=a[0])||void 0===e?void 0:e.type)}},[t,i,n]);let _=(0,m.useMemo)(()=>{if((null==o?void 0:o.length)>0){var e,t;let n=null!=u?u:o[0].type,a=null!==(t=null===(e=null==o?void 0:o.find(e=>e.type===n))||void 0===e?void 0:e.spec)&&void 0!==t?t:void 0;if(a)return(0,l.jsx)(s.k,{options:a},n)}},[o,u]);return u?(0,l.jsxs)("div",{children:[(0,l.jsxs)(p.Z,{justify:"start",children:[(0,l.jsx)(f.Z,{children:g.Z.t("Advices")}),(0,l.jsx)(f.Z,{style:{marginLeft:24},children:(0,l.jsx)(x.default,{value:u,placeholder:"Chart Switcher",style:{width:"180px"},onChange:e=>h(e),size:"small",children:null==o?void 0:o.map(e=>{let t=g.Z.t(e.type);return(0,l.jsx)(k,{value:e.type,children:(0,l.jsx)(v.Z,{title:t,placement:"right",children:(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,l.jsx)(j.Z,{}),(0,l.jsx)("div",{style:{marginLeft:"2px"},children:t})]})})},e.type)})})})]}),(0,l.jsx)("div",{className:"auto-chart-content",children:_})]}):(0,l.jsx)(y.Z,{image:y.Z.PRESENTED_IMAGE_SIMPLE,description:"暂无合适的可视化视图"})};var O=function(e){let{chartsData:t}=e,n=(0,m.useMemo)(()=>{if(t){let e=[],n=null==t?void 0:t.filter(e=>"IndicatorValue"===e.chart_type);n.length>0&&e.push({charts:n,type:"IndicatorValue"});let l=null==t?void 0:t.filter(e=>"IndicatorValue"!==e.chart_type),a=l.length,r=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][a].forEach(t=>{if(t>0){let n=l.slice(r,r+t);r+=t,e.push({charts:n})}}),e}},[t]);return(0,l.jsx)("div",{className:"flex flex-col gap-3",children:null==n?void 0:n.map((e,t)=>(0,l.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,l.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(a.Z,{sx:{background:"transparent"},children:(0,l.jsxs)(r.Z,{className:"justify-around",children:[(0,l.jsx)(i.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,l.jsx)(i.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,l.jsx)(o,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,l.jsx)(c,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,l.jsx)(h,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(t)))})}},34625:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var l=n(85893),a=n(67294),r=n(2453),i=n(83062),s=n(84553),c=n(71577),o=n(49591),d=n(88484),u=n(29158),h=n(50489),m=n(41468),x=function(e){var t;let{convUid:n,chatMode:x,onComplete:p,...f}=e,[v,y]=(0,a.useState)(!1),[j,g]=r.ZP.useMessage(),[_,b]=(0,a.useState)([]),[w,Z]=(0,a.useState)(),{model:N}=(0,a.useContext)(m.p),C=async e=>{var t;if(!e){r.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(t=e.file.name)&&void 0!==t?t:"")){r.ZP.error("File type must be csv, xlsx or xls");return}b([e.file])},P=async()=>{y(!0);try{let e=new FormData;e.append("doc_file",_[0]),j.open({content:"Uploading ".concat(_[0].name),type:"loading",duration:0});let[t]=await (0,h.Vx)((0,h.qn)({convUid:n,chatMode:x,data:e,model:N,config:{timeout:36e5,onUploadProgress:e=>{let t=Math.ceil(e.loaded/(e.total||0)*100);Z(t)}}}));if(t)return;r.ZP.success("success"),null==p||p()}catch(e){r.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{y(!1),j.destroy()}};return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex items-start gap-2",children:[g,(0,l.jsx)(i.Z,{placement:"bottom",title:"File cannot be changed after upload",children:(0,l.jsx)(s.default,{disabled:v,className:"mr-1",beforeUpload:()=>!1,fileList:_,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:C,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,l.jsx)(l.Fragment,{}),...f,children:(0,l.jsx)(c.ZP,{className:"flex justify-center items-center",type:"primary",disabled:v,icon:(0,l.jsx)(o.Z,{}),children:"Select File"})})}),(0,l.jsx)(c.ZP,{type:"primary",loading:v,className:"flex justify-center items-center",disabled:!_.length,icon:(0,l.jsx)(d.Z,{}),onClick:P,children:v?100===w?"Analysis":"Uploading":"Upload"}),!!_.length&&(0,l.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,l.jsx)(u.Z,{className:"mr-2"}),(0,l.jsx)("span",{children:null===(t=_[0])||void 0===t?void 0:t.name})]})]})})},p=function(e){let{onComplete:t}=e,{currentDialogue:n,scene:r,chatId:i}=(0,a.useContext)(m.p);return"chat_excel"!==r?null:(0,l.jsx)("div",{className:"max-w-md h-full relative",children:n?(0,l.jsxs)("div",{className:"flex h-8 overflow-hidden rounded",children:[(0,l.jsx)("div",{className:"flex items-center justify-center px-2 bg-gray-600 text-lg",children:(0,l.jsx)(u.Z,{className:"text-white"})}),(0,l.jsx)("div",{className:"flex items-center justify-center px-3 bg-gray-100 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:n.select_param})]}):(0,l.jsx)(x,{convUid:i,chatMode:r,onComplete:t})})};n(23293);var f=n(78045),v=n(16165),y=n(96991),j=n(5455);function g(){let{isContract:e,setIsContract:t,scene:n}=(0,a.useContext)(m.p),r=n&&["chat_with_db_execute","chat_dashboard"].includes(n);return r?(0,l.jsxs)(f.ZP.Group,{value:e,defaultValue:!0,buttonStyle:"solid",onChange:()=>{t(!e)},children:[(0,l.jsxs)(f.ZP.Button,{value:!1,children:[(0,l.jsx)(v.Z,{component:j.ig,className:"mr-1"}),"Preview"]}),(0,l.jsxs)(f.ZP.Button,{value:!0,children:[(0,l.jsx)(y.Z,{className:"mr-1"}),"Editor"]})]}):null}var _=n(81799),b=n(98399),w=n(2093),Z=n(51009),N=n(98978),C=function(){let{scene:e,dbParam:t,setDbParam:n}=(0,a.useContext)(m.p),[r,i]=(0,a.useState)([]);(0,w.Z)(async()=>{let[,t]=await (0,h.Vx)((0,h.vD)(e));i(null!=t?t:[])},[e]);let s=(0,a.useMemo)(()=>{var e;return null===(e=r.map)||void 0===e?void 0:e.call(r,e=>({name:e.param,...b.S$[e.type]}))},[r]);return((0,a.useEffect)(()=>{(null==s?void 0:s.length)&&!t&&n(s[0].name)},[s,n,t]),null==s?void 0:s.length)?(0,l.jsx)(Z.default,{value:t,className:"w-36",onChange:e=>{n(e)},children:s.map(e=>(0,l.jsxs)(Z.default.Option,{children:[(0,l.jsx)(N.Z,{width:24,height:24,src:e.icon,label:e.label,className:"w-[1.5em] h-[1.5em] mr-1 inline-block mt-[-4px]"}),e.name]},e.name))}):null},P=n(577),k=n(11163),S=n(67421),O=function(){let{push:e}=(0,k.useRouter)(),{t}=(0,S.$G)(),{agentList:n,setAgentList:r}=(0,a.useContext)(m.p),{data:i=[]}=(0,P.Z)(async()=>{let[,e]=await (0,h.Vx)((0,h.N6)());return e&&e.length&&(null==r||r([e[0].name])),null!=e?e:[]});return i.length?(0,l.jsx)(Z.default,{className:"w-60",value:n,mode:"multiple",maxTagCount:1,maxTagTextLength:12,placeholder:t("Select_Plugins"),options:i.map(e=>({label:e.name,value:e.name})),allowClear:!0,onChange:e=>{null==r||r(e)}}):(0,l.jsx)(c.ZP,{type:"primary",onClick:()=>{e("/agent")},children:t("To_Plugin_Market")})},E=function(e){let{refreshHistory:t,modelChange:n}=e,{scene:r,refreshDialogList:i}=(0,a.useContext)(m.p);return(0,l.jsxs)("div",{className:"w-full py-2 px-4 md:px-4 flex flex-wrap items-center justify-center border-b border-gray-100 gap-1 md:gap-4",children:[(0,l.jsx)(_.Z,{onChange:n}),(0,l.jsx)(C,{}),"chat_excel"===r&&(0,l.jsx)(p,{onComplete:()=>{null==i||i(),null==t||t()}}),"chat_agent"===r&&(0,l.jsx)(O,{}),(0,l.jsx)(g,{})]})}},81799:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var l=n(85893),a=n(41468),r=n(51009),i=n(19284),s=n(25675),c=n.n(s),o=n(67294),d=n(67421);function u(e,t){var n;let{width:a,height:r}=t||{};return e?(0,l.jsx)(c(),{className:"rounded-full border border-gray-200 object-contain bg-white inline-block",width:a||24,height:r||24,src:(null===(n=i.Hf[e])||void 0===n?void 0:n.icon)||"/models/huggingface.svg",alt:"llm"}):null}t.Z=function(e){let{onChange:t}=e,{t:n}=(0,d.$G)(),{modelList:s,model:c}=(0,o.useContext)(a.p);return!s||s.length<=0?null:(0,l.jsx)(r.default,{value:c,placeholder:n("choose_model"),className:"w-52",onChange:e=>{null==t||t(e)},children:s.map(e=>{var t;return(0,l.jsx)(r.default.Option,{children:(0,l.jsxs)("div",{className:"flex items-center",children:[u(e),(0,l.jsx)("span",{className:"ml-2",children:(null===(t=i.Hf[e])||void 0===t?void 0:t.label)||e})]})},e)})})}},99513:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var l=n(85893),a=n(77119),r=n(63764),i=n(94184),s=n.n(i),c=n(67294),o=n(36782);function d(e){let{className:t,value:n,language:a="mysql",onChange:i,thoughts:d}=e,u=(0,c.useMemo)(()=>"mysql"!==a?n:d&&d.length>0?(0,o.WU)("-- ".concat(d," \n").concat(n)):(0,o.WU)(n),[n,d]);return(0,l.jsx)(r.ZP,{className:s()(t),value:u,language:a,onChange:i,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}r._m.config({monaco:a})},98978:function(e,t,n){"use strict";var l=n(85893),a=n(25675),r=n.n(a);t.Z=function(e){let{src:t,label:n,width:a,height:i,className:s}=e;return(0,l.jsx)(r(),{className:"w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ".concat(s),width:a||44,height:i||44,src:t,alt:n||"db-icon"})}},30119:function(e,t,n){"use strict";n.d(t,{Tk:function(){return s},PR:function(){return c}});var l=n(2453),a=n(6154);let r=a.Z.create({baseURL:"http://127.0.0.1:5001"});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e)),n(96486);let i={"content-type":"application/json"},s=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return r.get("/api"+e,{headers:i}).then(e=>e).catch(e=>{l.ZP.error(e),Promise.reject(e)})},c=(e,t)=>r.post(e,t,{headers:i}).then(e=>e).catch(e=>{l.ZP.error(e),Promise.reject(e)})},23293:function(){}}]); \ No newline at end of file diff --git a/dbgpt/app/static/_next/static/chunks/981-ff77d5cc3ab95298.js b/dbgpt/app/static/_next/static/chunks/981-ff77d5cc3ab95298.js deleted file mode 100644 index d271faa2d..000000000 --- a/dbgpt/app/static/_next/static/chunks/981-ff77d5cc3ab95298.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[981],{54929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}});var r=(0,n(67294).createContext)({})},53014:function(e,t,n){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return y}});var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),o=l(n(94184)),i=n(75531),a=l(n(54929)),u=n(72479);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","component","viewBox","spin","rotate","tabIndex","onClick","children"]),m=r.useRef(),O=(0,i.useComposeRef)(m,t);(0,u.warning)(!!(l||v),"Should have `component` prop or `children`."),(0,u.useInsertStyles)(m);var w=r.useContext(a.default),j=w.prefixCls,x=void 0===j?"anticon":j,S=w.rootClassName,P=(0,o.default)(S,x,n),k=(0,o.default)(c({},"".concat(x,"-spin"),!!p)),M=s(d({},u.svgBaseProps),{className:k,style:y?{msTransform:"rotate(".concat(y,"deg)"),transform:"rotate(".concat(y,"deg)")}:void 0,viewBox:f});f||delete M.viewBox;var C=b;return void 0===C&&g&&(C=-1),r.createElement("span",s(d({role:"img"},h),{ref:O,tabIndex:C,onClick:g,className:P}),l?r.createElement(l,M,v):v?((0,u.warning)(!!f||1===r.Children.count(v)&&r.isValidElement(v)&&"use"===r.Children.only(v).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",s(d({},M),{viewBox:f}),v)):null)});p.displayName="AntdIcon";var y=p},72479:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{warning:function(){return s},isIconDefinition:function(){return p},normalizeAttrs:function(){return y},generate:function(){return function e(t,n,r){return r?u.default.createElement(t.tag,d({key:n},y(t.attrs),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):u.default.createElement(t.tag,d({key:n},y(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}},getSecondaryColor:function(){return b},normalizeTwoToneColors:function(){return g},svgBaseProps:function(){return v},iconStyles:function(){return h},useInsertStyles:function(){return m}});var r=n(16397),o=n(93399),i=n(63298),a=l(n(45520)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(67294)),c=l(n(54929));function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function d(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function b(e){return(0,r.generate)(e)[0]}function g(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},h="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",m=function(e){var t=(0,u.useContext)(c.default),n=t.csp,r=t.prefixCls,a=h;r&&(a=a.replace(/anticon/g,r)),(0,u.useEffect)(function(){var t=e.current,r=(0,i.getShadowRoot)(t);(0,o.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},96074:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(94184),o=n.n(r),i=n(67294),a=n(53124),u=n(14747),c=n(67968),l=n(45503);let f=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,c.Z)("Divider",e=>{let t=(0,l.TS)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[f(t)]},{sizePaddingEdgeHorizontal:0}),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},p=e=>{let{getPrefixCls:t,direction:n,divider:r}=i.useContext(a.E_),{prefixCls:u,type:c="horizontal",orientation:l="center",orientationMargin:f,className:p,rootClassName:y,children:b,dashed:g,plain:v,style:h}=e,m=s(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),O=t("divider",u),[w,j]=d(O),x=l.length>0?`-${l}`:l,S=!!b,P="left"===l&&null!=f,k="right"===l&&null!=f,M=o()(O,null==r?void 0:r.className,j,`${O}-${c}`,{[`${O}-with-text`]:S,[`${O}-with-text${x}`]:S,[`${O}-dashed`]:!!g,[`${O}-plain`]:!!v,[`${O}-rtl`]:"rtl"===n,[`${O}-no-default-orientation-margin-left`]:P,[`${O}-no-default-orientation-margin-right`]:k},p,y),C=i.useMemo(()=>"number"==typeof f?f:/^\d+$/.test(f)?Number(f):f,[f]),_=Object.assign(Object.assign({},P&&{marginLeft:C}),k&&{marginRight:C});return w(i.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},null==r?void 0:r.style),h)},m,{role:"separator"}),b&&"vertical"!==c&&i.createElement("span",{className:`${O}-inner-text`,style:_},b)))}},19158:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}},32191:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}},93399:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.clearContainerCache=function(){c.clear()},t.injectCSS=s,t.removeCSS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&f(t).removeChild(n)},t.updateCSS=function(e,t){var n,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=c.get(e);if(!n||!(0,i.default)(document,n)){var r=s("",t),o=r.parentNode;c.set(e,o),e.removeChild(r)}}(f(a),a);var u=p(t,a);if(u)return null!==(n=a.csp)&&void 0!==n&&n.nonce&&u.nonce!==(null===(r=a.csp)||void 0===r?void 0:r.nonce)&&(u.nonce=null===(o=a.csp)||void 0===o?void 0:o.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var d=s(e,a);return d.setAttribute(l(a),t),d};var o=r(n(19158)),i=r(n(32191)),a="data-rc-order",u="data-rc-priority",c=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function f(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((c.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,l="queue"===r?"prependQueue":r?"prepend":"append",s="prependQueue"===l,p=document.createElement("style");p.setAttribute(a,l),s&&c&&p.setAttribute(u,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var y=f(t),b=y.firstChild;if(r){if(s){var g=d(y).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&c>=Number(e.getAttribute(u)||0)});if(g.length)return y.insertBefore(p,g[g.length-1].nextSibling),p}y.insertBefore(p,b)}else y.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(f(t)).find(function(n){return n.getAttribute(l(t))===e})}},63298:function(e,t){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function r(e){return n(e) instanceof ShadowRoot}Object.defineProperty(t,"__esModule",{value:!0}),t.getShadowRoot=function(e){return r(e)?n(e):null},t.inShadow=r},67265:function(e,t,n){"use strict";var r=n(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value};var o=r(n(67294))},75531:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.composeRef=l,t.fillRef=c,t.supportNodeRef=function(e){return!(!(0,i.isValidElement)(e)||(0,a.isFragment)(e))&&f(e)},t.supportRef=f,t.useComposeRef=function(){for(var e=arguments.length,t=Array(e),n=0;n=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(r),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));n.push(p)}n.push(l(r));for(var h=1;h<=4;h+=1){var m=a(r),g=l((0,o.uA)({h:s(m,h),s:c(m,h),v:u(m,h)}));n.push(g)}return"dark"===t.theme?i.map(function(e){var r,i,a,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(n[s]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))}):n}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]});var m=p.red,g=p.volcano,v=p.gold,y=p.orange,b=p.yellow,x=p.lime,w=p.green,C=p.cyan,S=p.blue,E=p.geekblue,$=p.purple,O=p.magenta,k=p.grey,j=p.grey},23183:function(e,t,n){"use strict";n.d(t,{E4:function(){return ee},jG:function(){return O},t2:function(){return L},fp:function(){return B},xy:function(){return Q}});var r,o=n(74902),i=n(1413),a=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},l=n(67294),s=n.t(l,2);n(56982),n(91881);var c=n(15671),u=n(43144),f=n(4942),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),p="data-token-hash",h="data-css-hash",m="__cssinjs_instance__",g=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[m]=t[m]||e,t[m]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var n,o=t.getAttribute(h);r[o]?t[m]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new d(e)}(),defaultCache:!0}),v=n(71002),y=n(98924),b=n(44958),x=n(97685),w=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,n;o=null===(t=o)||void 0===t?void 0:null===(n=t.map)||void 0===n?void 0:n.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,x.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),$=new w;function O(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new E(t)),$.get(t)}var k=new WeakMap;function j(e){var t=k.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof E?t+=r.id:r&&"object"===(0,v.Z)(r)?t+=j(r):t+=r}),k.set(e,t)),t}var P="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Z="_bAmBoO_",_=void 0,A=n(8410),R=(0,i.Z)({},s).useInsertionEffect,M=R?function(e,t,n){return R(function(){return e(),t()},n)}:function(e,t,n){l.useMemo(e,n),(0,A.Z)(function(){return t(!0)},n)},N=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function T(e,t,n,r,i){var a=l.useContext(g).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=N([c]),f=function(e){a.update(s,function(t){var r=(0,x.Z)(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return M(function(){null==i||i(d)},function(e){return f(function(t){var n=(0,x.Z)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(d)),[r+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(u(function(){return null==r?void 0:r(i,!1)}),null):[o-1,i]})}},[c]),d}var F={},I=new Map,L=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return r&&(a=r(a)),a};function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,l.useContext)(g).cache.instanceId,i=n.salt,s=void 0===i?"":i,c=n.override,u=void 0===c?F:c,f=n.formatToken,d=n.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return j(h)},[h]),y=l.useMemo(function(){return j(u)},[u]);return T("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):L(h,u,e,f),n=a("".concat(s,"_").concat(j(t)));t._tokenKey=n,I.set(n,(I.get(n)||0)+1);var r="".concat("css","-").concat(a(n));return t._hashId=r,[t,r]},function(e){var t,n,o;t=e[0]._tokenKey,I.set(t,(I.get(t)||0)-1),o=(n=Array.from(I.keys())).filter(function(e){return 0>=(I.get(e)||0)}),n.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[m]===r){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),I.delete(e)})})}var z=n(87462),D={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},H=n(20211),V=n(92190),U="data-ant-cssinjs-cache-path",W="_FILE_STYLE__",q=!0,K=(0,y.Z)(),G="_multi_value_";function X(e){return(0,H.q)((0,V.MY)(e),H.P).replace(/\{%%%\:[^;];}/g,";")}var Y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,l=r.injectHash,s=r.parentSelectors,c=n.hashId,u=n.layer,f=(n.path,n.hashPriority),d=n.transformers,p=void 0===d?[]:d;n.linters;var h="",m={};function g(t){var r=t.getName(c);if(!m[r]){var o=e(t.style,n,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];m[r]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||a?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)g(r);else{var u=p.reduce(function(e,t){var n;return(null==t?void 0:null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,v.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,v.Z)(r)&&r&&("_skip_check_"in r||G in r)){function d(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;D[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(c)),h+="".concat(n,":").concat(r,";")}var p,y=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,v.Z)(r)&&null!=r&&r[G]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,w=t.trim(),C=!1;(a||l)&&c?w.startsWith("@")?b=!0:w=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.Z)(n.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===w||""===w)&&(w="",C=!0);var S=e(r,n,{root:C,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[w])}),E=(0,x.Z)(S,2),$=E[0],O=E[1];m=(0,i.Z)((0,i.Z)({},m),O),h+="".concat(w).concat($)}})}}),a){if(u&&(void 0===_&&(_=function(e,t,n){if((0,y.Z)()){(0,b.hq)(e,P);var r,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(Z);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)(P),a}return!1}("@layer ".concat(P," { .").concat(P,' { content: "').concat(Z,'"!important; } }'),function(e){e.className=P})),_)){var w=u.split(","),C=w[w.length-1].trim();h="@layer ".concat(C," {").concat(h,"}"),w.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,m]};function J(){return null}function Q(e,t){var n=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,w=void 0===v?0:v,C=l.useContext(g),S=C.autoClear,E=(C.mock,C.defaultCache),$=C.hashPriority,O=C.container,k=C.ssrInline,j=C.transformers,P=C.linters,Z=C.cache,_=n._tokenKey,A=[_].concat((0,o.Z)(i)),R=T("style",A,function(){var e=A.join("|");if(!function(){if(!r&&(r={},(0,y.Z)())){var e,t=document.createElement("div");t.className=U,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,x.Z)(t,2),o=n[0],i=n[1];r[o]=i});var o=document.querySelector("style[".concat(U,"]"));o&&(q=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,y.Z)()){if(q)n=W;else{var o=document.querySelector("style[".concat(h,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),o=(0,x.Z)(n,2),l=o[0],u=o[1];if(l)return[l,_,u,{},d,w]}var f=Y(t(),{hashId:s,hashPriority:$,layer:c,path:i.join("-"),transformers:j,linters:P}),p=(0,x.Z)(f,2),m=p[0],g=p[1],v=X(m),b=a("".concat(A.join("%")).concat(v));return[v,_,b,g,d,w]},function(e,t){var n=(0,x.Z)(e,3)[2];(t||S)&&K&&(0,b.jL)(n,{mark:h})},function(e){var t=(0,x.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(K&&n!==W){var i={mark:h,prepend:"queue",attachTo:O,priority:w},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(n,r,i);l[m]=Z.instanceId,l.setAttribute(p,_),Object.keys(o).forEach(function(e){(0,b.hq)(X(o[e]),"_effect-".concat(e),i)})}}),M=(0,x.Z)(R,3),N=M[0],F=M[1],I=M[2];return function(e){var t,n;return t=k&&!K&&E?l.createElement("style",(0,z.Z)({},(n={},(0,f.Z)(n,p,F),(0,f.Z)(n,h,I),n),{dangerouslySetInnerHTML:{__html:N}})):l.createElement(J,null),l.createElement(l.Fragment,null,t,e)}}var ee=function(){function e(t,n){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function et(e){return e.notSplit=!0,e}et(["borderTop","borderBottom"]),et(["borderTop"]),et(["borderBottom"]),et(["borderLeft","borderRight"]),et(["borderLeft"]),et(["borderRight"])},84089:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(87462),o=n(97685),i=n(4942),a=n(45987),l=n(67294),s=n(94184),c=n.n(s),u=n(16397),f=n(63017),d=n(1413),p=n(41755),h=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},g=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,s=e.secondaryColor,c=(0,a.Z)(e,h),u=l.useRef(),f=m;if(i&&(f={primaryColor:i,secondaryColor:s||(0,p.pw)(i)}),(0,p.C3)(u),(0,p.Kp)((0,p.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.r)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,p.R_)(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:n,onClick:r,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};function v(e){var t=(0,p.H9)(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return g.setTwoToneColors({primaryColor:r,secondaryColor:i})}g.displayName="IconReact",g.getTwoToneColors=function(){return(0,d.Z)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,p.pw)(t),m.calculated=!!n};var y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];v(u.blue.primary);var b=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,d=e.spin,h=e.rotate,m=e.tabIndex,v=e.onClick,b=e.twoToneColor,x=(0,a.Z)(e,y),w=l.useContext(f.Z),C=w.prefixCls,S=void 0===C?"anticon":C,E=w.rootClassName,$=c()(E,S,(n={},(0,i.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,i.Z)(n,"".concat(S,"-spin"),!!d||"loading"===u.name),n),s),O=m;void 0===O&&v&&(O=-1);var k=(0,p.H9)(b),j=(0,o.Z)(k,2),P=j[0],Z=j[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},x,{ref:t,tabIndex:O,onClick:v,className:$}),l.createElement(g,{icon:u,primaryColor:P,secondaryColor:Z,style:h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0}))});b.displayName="AntdIcon",b.getTwoToneColor=function(){var e=g.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},b.setTwoToneColor=v;var x=b},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},16165:function(e,t,n){"use strict";var r=n(87462),o=n(1413),i=n(4942),a=n(45987),l=n(67294),s=n(94184),c=n.n(s),u=n(42550),f=n(63017),d=n(41755),p=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],h=l.forwardRef(function(e,t){var n=e.className,s=e.component,h=e.viewBox,m=e.spin,g=e.rotate,v=e.tabIndex,y=e.onClick,b=e.children,x=(0,a.Z)(e,p),w=l.useRef(),C=(0,u.x1)(w,t);(0,d.Kp)(!!(s||b),"Should have `component` prop or `children`."),(0,d.C3)(w);var S=l.useContext(f.Z),E=S.prefixCls,$=void 0===E?"anticon":E,O=S.rootClassName,k=c()(O,$,n),j=c()((0,i.Z)({},"".concat($,"-spin"),!!m)),P=(0,o.Z)((0,o.Z)({},d.vD),{},{className:j,style:g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,viewBox:h});h||delete P.viewBox;var Z=v;return void 0===Z&&y&&(Z=-1),l.createElement("span",(0,r.Z)({role:"img"},x,{ref:C,tabIndex:Z,onClick:y,className:k}),s?l.createElement(s,P,b):b?((0,d.Kp)(!!h||1===l.Children.count(b)&&l.isValidElement(b)&&"use"===l.Children.only(b).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),l.createElement("svg",(0,r.Z)({},P,{viewBox:h}),b)):null)});h.displayName="AntdIcon",t.Z=h},89739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},4340:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},97937:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},89705:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},21640:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},78860:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},24969:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},18073:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},41755:function(e,t,n){"use strict";n.d(t,{C3:function(){return v},H9:function(){return m},Kp:function(){return f},R_:function(){return function e(t,n,o){return o?c.createElement(t.tag,(0,r.Z)((0,r.Z)({key:n},p(t.attrs)),o),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):c.createElement(t.tag,(0,r.Z)({key:n},p(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}},pw:function(){return h},r:function(){return d},vD:function(){return g}});var r=n(1413),o=n(71002),i=n(16397),a=n(44958),l=n(27571),s=n(80334),c=n(67294),u=n(63017);function f(e,t){(0,s.ZP)(e,"[@ant-design/icons] ".concat(t))}function d(e){return"object"===(0,o.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.Z)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function h(e){return(0,i.generate)(e)[0]}function m(e){return e?Array.isArray(e)?e:[e]:[]}var g={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},v=function(e){var t=(0,c.useContext)(u.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,c.useEffect)(function(){var t=e.current,r=(0,l.A)(t);(0,a.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},86500:function(e,t,n){"use strict";n.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var r=n(90279);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6)?e+(t-e)*(6*n):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,l=n,o=n;else{var o,i,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(86500),o=n(48701),i=n(90279);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,r.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,r.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},10274:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(86500),o=n(48701),i=n(1350),a=n(90279),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(255*(t/100))))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(255*(t/100))))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(255*(t/100))))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return r}})},9463:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,n){switch((0,i.vp)(t,n)){case 5103:return a.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-n>6)switch((0,i.uO)(t,n+1)){case 109:if(45!==(0,i.uO)(t,n+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==(0,i.uO)(t,n+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,n+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],r);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],r);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""})}}],m=function(e){var t,n,o,a,c,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var m=e.stylisPlugins||h,g={},v=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+c,styles:a,next:r}}},27278:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return l}});var r,o=n(67294),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},70444:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},26821:function(e,t,n){"use strict";n.d(t,{d6:function(){return i},sI:function(){return a}});var r=n(34867),o=n(1588);let i=(e,t)=>(0,r.Z)(e,t,"Mui"),a=(e,t)=>(0,o.Z)(e,t,"Mui")},9818:function(e,t){"use strict";t.Z={grey:{50:"#F5F7FA",100:"#EAEEF6",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#23272B",900:"#121416"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}}},38629:function(e,t,n){"use strict";n.d(t,{F:function(){return c},Z:function(){return u}}),n(67294);var r=n(96682),o=n(71927),i=n(1812),a=n(59077),l=n(2548),s=n(85893);let c=()=>{let e=(0,r.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let n=i.Z;return t&&(n=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:n,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},1812:function(e,t,n){"use strict";var r=n(59077);let o=(0,r.Z)();t.Z=o},59077:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),o=n(63366),i=n(59766),a=n(50159),l=n(41796),s=n(41512),c=n(98373);let u=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})},f=(e,t,n)=>{!function e(r,o=[],i=[]){Object.entries(r).forEach(([r,a])=>{n&&(!n||n([...o,r]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,r],Array.isArray(a)?[...i,r]:i):t([...o,r],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let n=e[e.length-1];return n.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:d(e,t)}),u(i,e,`var(${r})`,l),u(a,e,`var(${r}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],m=["light"];var g=function(e,t){let{colorSchemes:n={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=n,g=(0,o.Z)(n,m);if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:o,varsWithDefaults:a}=p(n,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:r}}),d){let{css:e,vars:n,varsWithDefaults:r}=p(d,t);u=(0,i.Z)(u,r),f.light={css:e,vars:n}}return{vars:u,generateCssVars:e=>e?{css:(0,r.Z)({},f[e].css),vars:f[e].vars}:{css:(0,r.Z)({},s),vars:l}}},v=n(86523),y=n(44920);let b=(0,r.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=n(9818);function w(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var C=n(26821),S=n(13951);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],O=(e="joy")=>(0,a.Z)(e);function k(e){var t,n,a,u,f,d,p,h,m,y;let k=e||{},{cssVarPrefix:j="joy",breakpoints:P,spacing:Z,components:_,variants:A,colorInversion:R,shouldSkipGeneratingVar:M=w}=k,N=(0,o.Z)(k,E),T=O(j),F={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FCFCFD",black:"#09090B"}},I=e=>{var t;let n=e.split("-"),r=n[1],o=n[2];return T(e,null==(t=F[r])?void 0:t[o])},L=e=>({plainColor:I(`palette-${e}-500`),plainHoverBg:I(`palette-${e}-50`),plainActiveBg:I(`palette-${e}-100`),plainDisabledColor:I("palette-neutral-400"),outlinedColor:I(`palette-${e}-500`),outlinedBorder:I(`palette-${e}-300`),outlinedHoverBg:I(`palette-${e}-100`),outlinedActiveBg:I(`palette-${e}-200`),outlinedDisabledColor:I("palette-neutral-400"),outlinedDisabledBorder:I("palette-neutral-200"),softColor:I(`palette-${e}-700`),softBg:I(`palette-${e}-100`),softHoverBg:I(`palette-${e}-200`),softActiveColor:I(`palette-${e}-800`),softActiveBg:I(`palette-${e}-300`),softDisabledColor:I("palette-neutral-400"),softDisabledBg:I(`palette-${e}-50`),solidColor:I("palette-common-white"),solidBg:I(`palette-${e}-500`),solidHoverBg:I(`palette-${e}-600`),solidActiveBg:I(`palette-${e}-700`),solidDisabledColor:I("palette-neutral-400"),solidDisabledBg:I(`palette-${e}-100`)}),B=e=>({plainColor:I(`palette-${e}-300`),plainHoverBg:I(`palette-${e}-800`),plainActiveBg:I(`palette-${e}-700`),plainDisabledColor:I("palette-neutral-500"),outlinedColor:I(`palette-${e}-200`),outlinedBorder:I(`palette-${e}-700`),outlinedHoverBg:I(`palette-${e}-800`),outlinedActiveBg:I(`palette-${e}-700`),outlinedDisabledColor:I("palette-neutral-500"),outlinedDisabledBorder:I("palette-neutral-800"),softColor:I(`palette-${e}-200`),softBg:I(`palette-${e}-800`),softHoverBg:I(`palette-${e}-700`),softActiveColor:I(`palette-${e}-100`),softActiveBg:I(`palette-${e}-600`),softDisabledColor:I("palette-neutral-500"),softDisabledBg:I(`palette-${e}-900`),solidColor:I("palette-common-white"),solidBg:I(`palette-${e}-500`),solidHoverBg:I(`palette-${e}-600`),solidActiveBg:I(`palette-${e}-700`),solidDisabledColor:I("palette-neutral-500"),solidDisabledBg:I(`palette-${e}-800`)}),z={palette:{mode:"light",primary:(0,r.Z)({},F.primary,L("primary")),neutral:(0,r.Z)({},F.neutral,L("neutral"),{plainColor:I("palette-neutral-700"),outlinedColor:I("palette-neutral-700")}),danger:(0,r.Z)({},F.danger,L("danger")),success:(0,r.Z)({},F.success,L("success")),warning:(0,r.Z)({},F.warning,L("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:I("palette-neutral-800"),secondary:I("palette-neutral-700"),tertiary:I("palette-neutral-600"),icon:I("palette-neutral-500")},background:{body:I("palette-neutral-50"),surface:I("palette-common-white"),popup:I("palette-common-white"),level1:I("palette-neutral-100"),level2:I("palette-neutral-200"),level3:I("palette-neutral-300"),tooltip:I("palette-neutral-500"),backdrop:`rgba(${T("palette-neutral-darkChannel",(0,l.n8)(F.neutral[900]))} / 0.25)`},divider:`rgba(${T("palette-neutral-mainChannel",(0,l.n8)(F.neutral[500]))} / 0.3)`,focusVisible:I("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},D={palette:{mode:"dark",primary:(0,r.Z)({},F.primary,B("primary")),neutral:(0,r.Z)({},F.neutral,B("neutral")),danger:(0,r.Z)({},F.danger,B("danger")),success:(0,r.Z)({},F.success,B("success")),warning:(0,r.Z)({},F.warning,B("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:I("palette-neutral-100"),secondary:I("palette-neutral-300"),tertiary:I("palette-neutral-400"),icon:I("palette-neutral-400")},background:{body:I("palette-common-black"),surface:I("palette-neutral-900"),popup:I("palette-common-black"),level1:I("palette-neutral-800"),level2:I("palette-neutral-700"),level3:I("palette-neutral-600"),tooltip:I("palette-neutral-600"),backdrop:`rgba(${T("palette-neutral-darkChannel",(0,l.n8)(F.neutral[50]))} / 0.25)`},divider:`rgba(${T("palette-neutral-mainChannel",(0,l.n8)(F.neutral[500]))} / 0.16)`,focusVisible:I("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},H='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',V=(0,r.Z)({body:`"Inter", ${T(`fontFamily-fallback, ${H}`)}`,display:`"Inter", ${T(`fontFamily-fallback, ${H}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:H},N.fontFamily),U=(0,r.Z)({sm:300,md:500,lg:600,xl:700},N.fontWeight),W=(0,r.Z)({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},N.fontSize),q=(0,r.Z)({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},N.lineHeight),K=null!=(t=null==(n=N.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:z.shadowRing,G=null!=(a=null==(u=N.colorSchemes)||null==(u=u.light)?void 0:u.shadowChannel)?a:z.shadowChannel,X=null!=(f=null==(d=N.colorSchemes)||null==(d=d.light)?void 0:d.shadowOpacity)?f:z.shadowOpacity,Y={colorSchemes:{light:z,dark:D},fontSize:W,fontFamily:V,fontWeight:U,focus:{thickness:"2px",selector:`&.${(0,C.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${T("focus-thickness",null!=(p=null==(h=N.focus)?void 0:h.thickness)?p:"2px")})`,outline:`${T("focus-thickness",null!=(m=null==(y=N.focus)?void 0:y.thickness)?m:"2px")} solid ${T("palette-focusVisible",F.primary[500])}`}},lineHeight:q,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${T("shadowRing",K)}, 0px 1px 2px 0px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,sm:`${T("shadowRing",K)}, 0px 1px 2px 0px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 2px 4px 0px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,md:`${T("shadowRing",K)}, 0px 2px 8px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 6px 12px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,lg:`${T("shadowRing",K)}, 0px 2px 8px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 12px 16px -4px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,xl:`${T("shadowRing",K)}, 0px 2px 8px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 20px 24px -4px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{h1:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-xl, ${U.xl}`),fontSize:T(`fontSize-xl4, ${W.xl4}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},h2:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-xl, ${U.xl}`),fontSize:T(`fontSize-xl3, ${W.xl3}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},h3:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-lg, ${U.lg}`),fontSize:T(`fontSize-xl2, ${W.xl2}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},h4:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-lg, ${U.lg}`),fontSize:T(`fontSize-xl, ${W.xl}`),lineHeight:T(`lineHeight-md, ${q.md}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},"title-lg":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-lg, ${U.lg}`),fontSize:T(`fontSize-lg, ${W.lg}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),color:T(`palette-text-primary, ${z.palette.text.primary}`)},"title-md":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-md, ${U.md}`),fontSize:T(`fontSize-md, ${W.md}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-primary, ${z.palette.text.primary}`)},"title-sm":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-md, ${U.md}`),fontSize:T(`fontSize-sm, ${W.sm}`),lineHeight:T(`lineHeight-sm, ${q.sm}`),color:T(`palette-text-primary, ${z.palette.text.primary}`)},"body-lg":{fontFamily:T(`fontFamily-body, ${V.body}`),fontSize:T(`fontSize-lg, ${W.lg}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-md":{fontFamily:T(`fontFamily-body, ${V.body}`),fontSize:T(`fontSize-md, ${W.md}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-sm":{fontFamily:T(`fontFamily-body, ${V.body}`),fontSize:T(`fontSize-sm, ${W.sm}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-tertiary, ${z.palette.text.tertiary}`)},"body-xs":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-md, ${U.md}`),fontSize:T(`fontSize-xs, ${W.xs}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-tertiary, ${z.palette.text.tertiary}`)}}},J=N?(0,i.Z)(Y,N):Y,{colorSchemes:Q}=J,ee=(0,o.Z)(J,$),et=(0,r.Z)({colorSchemes:Q},ee,{breakpoints:(0,s.Z)(null!=P?P:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;let o=e.instanceFontSize;return(0,r.Z)({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&(0,r.Z)({color:`var(--Icon-color, ${et.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary}),o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},_),cssVarPrefix:j,getCssVar:T,spacing:(0,c.Z)(Z),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(et.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(n=>{let r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=(0,l.n8)(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=(0,l.n8)(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=(0,l.n8)(t[n][r.dark]))})}(e,t.palette)});let{vars:en,generateCssVars:er}=g((0,r.Z)({colorSchemes:Q},ee),{prefix:j,shouldSkipGeneratingVar:M});et.vars=en,et.generateCssVars=er,et.unstable_sxConfig=(0,r.Z)({},b,null==e?void 0:e.unstable_sxConfig),et.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},et.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eo={getCssVar:T,palette:et.colorSchemes.light.palette};return et.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eo),plainHover:(0,S.Zm)("plainHover",eo),plainActive:(0,S.Zm)("plainActive",eo),plainDisabled:(0,S.Zm)("plainDisabled",eo),outlined:(0,S.Zm)("outlined",eo),outlinedHover:(0,S.Zm)("outlinedHover",eo),outlinedActive:(0,S.Zm)("outlinedActive",eo),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eo),soft:(0,S.Zm)("soft",eo),softHover:(0,S.Zm)("softHover",eo),softActive:(0,S.Zm)("softActive",eo),softDisabled:(0,S.Zm)("softDisabled",eo),solid:(0,S.Zm)("solid",eo),solidHover:(0,S.Zm)("solidHover",eo),solidActive:(0,S.Zm)("solidActive",eo),solidDisabled:(0,S.Zm)("solidDisabled",eo)},A),et.palette=(0,r.Z)({},et.colorSchemes.light.palette,{colorScheme:"light"}),et.shouldSkipGeneratingVar=M,et.colorInversion="function"==typeof R?R:(0,i.Z)({soft:(0,S.pP)(et,!0),solid:(0,S.Lo)(et,!0)},R||{},{clone:!1}),et}},2548:function(e,t){"use strict";t.Z="$$joy"},13951:function(e,t,n){"use strict";n.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var r=n(87462),o=n(50159);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l=(e,t,n)=>{let r={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),a(r,t,e)}}),r},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let n={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(n=(0,r.Z)({},n,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return n.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},u=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{var r;let o=t.split("-"),i=o[1],a=o[2];return n(t,null==(r=e.palette)||null==(r=r[i])?void 0:r[a])}:n;return Object.entries(e.palette).forEach(t=>{let[n,o]=t;i(o)&&(a[n]={"--Badge-ringColor":l(`palette-${n}-softBg`),[e.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:l(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-text-icon")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${n}-200`),"--variant-softBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:l(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:l(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-text-icon")]:l(`palette-${n}-500`),[r("--palette-divider")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${n}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${n}-600`),"--variant-outlinedHoverBorder":l(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${n}-600`),"--variant-softBg":`rgba(${l(`palette-${n}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":l(`palette-${n}-700`),"--variant-softHoverBg":l(`palette-${n}-200`),"--variant-softActiveBg":l(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${n}-${"neutral"===n?"700":"500"}`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{let r=t.split("-"),o=r[1],i=r[2];return n(t,e.palette[o][i])}:n;return Object.entries(e.palette).forEach(e=>{let[t,n]=e;i(n)&&(a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--palette-focusVisible")]:l(`palette-${t}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:l(`palette-${t}-700`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l("palette-common-white"),[r("--palette-text-secondary")]:l(`palette-${t}-200`),[r("--palette-text-tertiary")]:l(`palette-${t}-300`),[r("--palette-text-icon")]:l(`palette-${t}-200`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-100`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},44819:function(e,t,n){"use strict";var r=n(67294);let o=r.createContext(null);t.Z=o},56760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(44819);function i(){let e=r.useContext(o.Z);return e}},71927:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),o=n(67294),i=n(56760),a=n(44819);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=n(85893),u=function(e){let{children:t,theme:n}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?n:function(e,t){if("function"==typeof t){let n=t(e);return n}return(0,r.Z)({},e,t)}(l,n);return null!=e&&(e[s]=null!==l),e},[n,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=n(75260),d=n(34168);let p={};function h(e,t,n,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),l=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var m=function(e){let{children:t,theme:n,themeId:r}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(r,o,n),s=h(r,a,n,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},95408:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},VO:function(){return r},W8:function(){return a},k9:function(){return i}});let r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function i(e,t,n){let i=e.theme||{};if(Array.isArray(t)){let e=i.breakpoints||o;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){let e=i.breakpoints||o;return Object.keys(t).reduce((o,i)=>{if(-1!==Object.keys(e.values||r).indexOf(i)){let r=e.up(i);o[r]=n(t[i],i)}else o[i]=t[i];return o},{})}let a=n(t);return a}function a(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function l(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}},41796:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var r=n(71387);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,r.Z)(9,e));let a=e.substring(n+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},41512:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63366),o=n(87462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=e,s=(0,r.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-l/100}${n})`}function p(e,r){let o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-l/100}${n})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},88647:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),o=n(63366),i=n(59766),a=n(41512),l={borderRadius:4},s=n(98373),c=n(86523),u=n(44920);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:n={},palette:d={},spacing:p,shape:h={}}=e,m=(0,o.Z)(e,f),g=(0,a.Z)(n),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:v,shape:(0,r.Z)({},l,h)},m);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},50159:function(e,t,n){"use strict";function r(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}n.d(t,{Z:function(){return r}})},47730:function(e,t,n){"use strict";var r=n(59766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},98700:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return m},e6:function(){return v},o3:function(){return y}});var r=n(95408),o=n(54844),i=n(47730);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,n]=e.split(""),r=a[t],o=l[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,n,r){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=h(e.theme);return Object.keys(e).map(o=>(function(e,t,n,o){if(-1===t.indexOf(n))return null;let i=c(n),a=e[n];return(0,r.k9)(e,a,e=>i.reduce((t,n)=>(t[n]=m(o,e),t),{}))})(e,t,o,n)).reduce(i.Z,{})}function v(e){return g(e,u)}function y(e){return g(e,f)}function b(e){return g(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(e,t,n){"use strict";n.d(t,{DW:function(){return i},Jq:function(){return a}});var r=n(14142),o=n(95408);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?o:{[n]:o}})};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(98700),o=n(54844),i=n(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},l=n(95408);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,m,g,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let S=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),$=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),k=(0,o.ZP)({prop:"gridAutoRows"}),j=(0,o.ZP)({prop:"gridTemplateColumns"}),P=(0,o.ZP)({prop:"gridTemplateRows"}),Z=(0,o.ZP)({prop:"gridTemplateAreas"}),_=(0,o.ZP)({prop:"gridArea"});function A(e,t){return"grey"===t?t:e}a(x,w,C,S,E,$,O,k,j,P,Z,_);let R=(0,o.ZP)({prop:"color",themeKey:"palette",transform:A}),M=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),N=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:A});function T(e){return e<=1&&0!==e?`${100*e}%`:e}a(R,M,N);let F=(0,o.ZP)({prop:"width",transform:T}),I=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var n,r;let o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||l.VO[t];return o?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:T(t)}}):null;I.filterProps=["maxWidth"];let L=(0,o.ZP)({prop:"minWidth",transform:T}),B=(0,o.ZP)({prop:"height",transform:T}),z=(0,o.ZP)({prop:"maxHeight",transform:T}),D=(0,o.ZP)({prop:"minHeight",transform:T});(0,o.ZP)({prop:"size",cssProperty:"width",transform:T}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:T});let H=(0,o.ZP)({prop:"boxSizing"});a(F,I,L,B,z,D,H);let V={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:I},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var U=V},86523:function(e,t,n){"use strict";var r=n(14142),o=n(47730),i=n(54844),a=n(95408),l=n(44920);let s=function(){function e(e,t,n,o){let l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(n,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let n=(0,i.Jq)(p,f,t);return(t===n&&"string"==typeof t&&(n=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c)?n:{[c]:n}})}return function t(n){var r;let{sx:i,theme:s={}}=n||{};if(!i)return null;let c=null!=(r=s.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(r).forEach(n=>{var i;let l="function"==typeof(i=r[n])?i(s):i;if(null!=l){if("object"==typeof l){if(c[n])u=(0,o.Z)(u,e(n,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,l)?u[n]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(n,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},96682:function(e,t,n){"use strict";var r=n(88647),o=n(34168);let i=(0,r.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},34168:function(e,t,n){"use strict";var r=n(67294),o=n(75260);t.Z=function(e=null){let t=r.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},37078:function(e,t){"use strict";let n;let r=e=>e,o=(n=r,{configure(e){n=e},generate:e=>n(e),reset(){n=r}});t.Z=o},14142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71387);function o(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},59766:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return function e(t,n,i={clone:!0}){let a=i.clone?(0,r.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(o(n[r])&&r in t&&o(t[r])?a[r]=e(t[r],n[r],i):i.clone?a[r]=o(n[r])?function e(t){if(!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:a[r]=n[r])}),a}}});var r=n(87462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,r.Z)(e,t,n)}),o}},2788:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(97685),o=n(67294),i=n(73935),a=n(98924);n(80334);var l=n(42550),s=o.createContext(null),c=n(74902),u=n(8410),f=[],d=n(44958),p=n(74204),h="rc-util-locker-".concat(Date.now()),m=0,g=!1,v=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=o.forwardRef(function(e,t){var n,y,b,x,w=e.open,C=e.autoLock,S=e.getContainer,E=(e.debug,e.autoDestroy),$=void 0===E||E,O=e.children,k=o.useState(w),j=(0,r.Z)(k,2),P=j[0],Z=j[1],_=P||w;o.useEffect(function(){($||w)&&Z(w)},[w,$]);var A=o.useState(function(){return v(S)}),R=(0,r.Z)(A,2),M=R[0],N=R[1];o.useEffect(function(){var e=v(S);N(null!=e?e:null)});var T=function(e,t){var n=o.useState(function(){return(0,a.Z)()?document.createElement("div"):null}),i=(0,r.Z)(n,1)[0],l=o.useRef(!1),d=o.useContext(s),p=o.useState(f),h=(0,r.Z)(p,2),m=h[0],g=h[1],v=d||(l.current?void 0:function(e){g(function(t){return[e].concat((0,c.Z)(t))})});function y(){i.parentElement||document.body.appendChild(i),l.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.Z)(function(){return e?d?d(y):y():b(),b},[e]),(0,u.Z)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[i,v]}(_&&!M,0),F=(0,r.Z)(T,2),I=F[0],L=F[1],B=null!=M?M:I;n=!!(C&&w&&(0,a.Z)()&&(B===I||B===document.body)),y=o.useState(function(){return m+=1,"".concat(h,"_").concat(m)}),b=(0,r.Z)(y,1)[0],(0,u.Z)(function(){if(n){var e=(0,p.o)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else(0,d.jL)(b);return function(){(0,d.jL)(b)}},[n,b]);var z=null;O&&(0,l.Yr)(O)&&t&&(z=O.ref);var D=(0,l.x1)(z,t);if(!_||!(0,a.Z)()||void 0===M)return null;var H=!1===B||("boolean"==typeof x&&(g=x),g),V=O;return t&&(V=o.cloneElement(O,{ref:D})),o.createElement(s.Provider,{value:L},H?V:(0,i.createPortal)(V,B))})},40228:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(1413),o=n(97685),i=n(45987),a=n(2788),l=n(94184),s=n.n(l),c=n(9220),u=n(34203),f=n(27571),d=n(66680),p=n(7028),h=n(8410),m=n(31131),g=n(67294),v=n(73935),y=g.createContext(null);function b(e){return e?Array.isArray(e)?e:[e]:[]}var x=n(5110);function w(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function C(e){return e.ownerDocument.defaultView}function S(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=C(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function $(e){return E(parseFloat(e),0)}function O(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=C(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=$(i),m=$(a),g=$(l),v=$(s),y=E(Math.round(c.width/d*1e3)/1e3),b=E(Math.round(c.height/u*1e3)/1e3),x=h*b,w=g*y,S=0,O=0;if("clip"===r){var k=$(o);S=k*y,O=k*b}var j=c.x+w-S,P=c.y+x-O,Z=j+c.width+2*S-w-v*y-(d-p-g-v)*y,_=P+c.height+2*O-x-m*b-(u-f-h-m)*b;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,Z),n.bottom=Math.min(n.bottom,_)}}),n}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function j(e,t){var n=(0,o.Z)(t||[],2),r=n[0],i=n[1];return[k(e.width,r),k(e.height,i)]}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Z(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function _(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var A=n(74902);n(56790);var R=n(75164),M=n(87462),N=n(82225),T=n(42550);function F(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=o.y,f=g.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],h=n.points[1],m=p[0],v=p[1],y=h[0],b=h[1];m!==y&&["t","b"].includes(m)?"t"===m?d.top=0:d.bottom=0:d.top=void 0===u?0:u,v!==b&&["l","r"].includes(v)?"l"===v?d.left=0:d.right=0:d.left=void 0===c?0:c}return g.createElement("div",{ref:f,className:s()("".concat(t,"-arrow"),a),style:d},l)}function I(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(N.ZP,(0,M.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var L=g.memo(function(e){return e.children},function(e,t){return t.cache}),B=g.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,m=e.onClick,v=e.mask,y=e.arrow,b=e.arrowPos,x=e.align,w=e.motion,C=e.maskMotion,S=e.forceRender,E=e.getPopupContainer,$=e.autoDestroy,O=e.portal,k=e.zIndex,j=e.onMouseEnter,P=e.onMouseLeave,Z=e.onPointerEnter,_=e.ready,A=e.offsetX,R=e.offsetY,B=e.offsetR,z=e.offsetB,D=e.onAlign,H=e.onPrepare,V=e.stretch,U=e.targetWidth,W=e.targetHeight,q="function"==typeof n?n():n,K=(null==E?void 0:E.length)>0,G=g.useState(!E||!K),X=(0,o.Z)(G,2),Y=X[0],J=X[1];if((0,h.Z)(function(){!Y&&K&&u&&J(!0)},[Y,K,u]),!Y)return null;var Q="auto",ee={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(_||!d){var et=x.points,en=x._experimental,er=null==en?void 0:en.dynamicInset,eo=er&&"r"===et[0][1],ei=er&&"b"===et[0][0];eo?(ee.right=B,ee.left=Q):(ee.left=A,ee.right=Q),ei?(ee.bottom=z,ee.top=Q):(ee.top=R,ee.bottom=Q)}var ea={};return V&&(V.includes("height")&&W?ea.height=W:V.includes("minHeight")&&W&&(ea.minHeight=W),V.includes("width")&&U?ea.width=U:V.includes("minWidth")&&U&&(ea.minWidth=U)),d||(ea.pointerEvents="none"),g.createElement(O,{open:S||d||p,getContainer:E&&function(){return E(u)},autoDestroy:$},g.createElement(I,{prefixCls:a,open:d,zIndex:k,mask:v,motion:C}),g.createElement(c.Z,{onResize:D,disabled:!d},function(e){return g.createElement(N.ZP,(0,M.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(a,"-hidden")},w,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null==w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),f(e)}}),function(n,o){var c=n.className,u=n.style,f=s()(a,c,i);return g.createElement("div",{ref:(0,T.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ee),ea),u),{},{boxSizing:"border-box",zIndex:k},l),onMouseEnter:j,onMouseLeave:P,onPointerEnter:Z,onClick:m},y&&g.createElement(F,{prefixCls:a,arrow:y,arrowPos:b,align:x}),g.createElement(L,{cache:!d},q))})}))}),z=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,T.Yr)(n),i=g.useCallback(function(e){(0,T.mH)(t,r?r(e):e)},[r]),a=(0,T.x1)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n}),D=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return g.forwardRef(function(t,n){var a,l,$,k,M,N,T,F,I,L,H,V,U,W,q,K,G,X=t.prefixCls,Y=void 0===X?"rc-trigger-popup":X,J=t.children,Q=t.action,ee=t.showAction,et=t.hideAction,en=t.popupVisible,er=t.defaultPopupVisible,eo=t.onPopupVisibleChange,ei=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,el=t.mouseLeaveDelay,es=void 0===el?.1:el,ec=t.focusDelay,eu=t.blurDelay,ef=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,eh=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,ev=t.popup,ey=t.popupClassName,eb=t.popupStyle,ex=t.popupPlacement,ew=t.builtinPlacements,eC=void 0===ew?{}:ew,eS=t.popupAlign,eE=t.zIndex,e$=t.stretch,eO=t.getPopupClassNameFromAlign,ek=t.alignPoint,ej=t.onPopupClick,eP=t.onPopupAlign,eZ=t.arrow,e_=t.popupMotion,eA=t.maskMotion,eR=t.popupTransitionName,eM=t.popupAnimation,eN=t.maskTransitionName,eT=t.maskAnimation,eF=t.className,eI=t.getTriggerDOMNode,eL=(0,i.Z)(t,D),eB=g.useState(!1),ez=(0,o.Z)(eB,2),eD=ez[0],eH=ez[1];(0,h.Z)(function(){eH((0,m.Z)())},[]);var eV=g.useRef({}),eU=g.useContext(y),eW=g.useMemo(function(){return{registerSubPopup:function(e,t){eV.current[e]=t,null==eU||eU.registerSubPopup(e,t)}}},[eU]),eq=(0,p.Z)(),eK=g.useState(null),eG=(0,o.Z)(eK,2),eX=eG[0],eY=eG[1],eJ=(0,d.Z)(function(e){(0,u.S)(e)&&eX!==e&&eY(e),null==eU||eU.registerSubPopup(eq,e)}),eQ=g.useState(null),e0=(0,o.Z)(eQ,2),e1=e0[0],e2=e0[1],e6=(0,d.Z)(function(e){(0,u.S)(e)&&e1!==e&&e2(e)}),e4=g.Children.only(J),e3=(null==e4?void 0:e4.props)||{},e5={},e8=(0,d.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,f.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eX?void 0:eX.contains(e))||(null===(n=(0,f.A)(eX))||void 0===n?void 0:n.host)===e||e===eX||Object.values(eV.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=w(Y,e_,eM,eR),e9=w(Y,eA,eT,eN),te=g.useState(er||!1),tt=(0,o.Z)(te,2),tn=tt[0],tr=tt[1],to=null!=en?en:tn,ti=(0,d.Z)(function(e){void 0===en&&tr(e)});(0,h.Z)(function(){tr(en||!1)},[en]);var ta=g.useRef(to);ta.current=to;var tl=(0,d.Z)(function(e){(0,v.flushSync)(function(){to!==e&&(ti(e),null==eo||eo(e))})}),ts=g.useRef(),tc=function(){clearTimeout(ts.current)},tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tc(),0===t?tl(e):ts.current=setTimeout(function(){tl(e)},1e3*t)};g.useEffect(function(){return tc},[]);var tf=g.useState(!1),td=(0,o.Z)(tf,2),tp=td[0],th=td[1];(0,h.Z)(function(e){(!e||to)&&th(!0)},[to]);var tm=g.useState(null),tg=(0,o.Z)(tm,2),tv=tg[0],ty=tg[1],tb=g.useState([0,0]),tx=(0,o.Z)(tb,2),tw=tx[0],tC=tx[1],tS=function(e){tC([e.clientX,e.clientY])},tE=(a=ek?tw:e1,l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eC[ex]||{}}),k=($=(0,o.Z)(l,2))[0],M=$[1],N=g.useRef(0),T=g.useMemo(function(){return eX?S(eX):[]},[eX]),F=g.useRef({}),to||(F.current={}),I=(0,d.Z)(function(){if(eX&&a&&to){var e,t,n,i,l,s,c,f=eX.ownerDocument,d=C(eX).getComputedStyle(eX),p=d.width,h=d.height,m=d.position,g=eX.style.left,v=eX.style.top,y=eX.style.right,b=eX.style.bottom,w=(0,r.Z)((0,r.Z)({},eC[ex]),eS),S=f.createElement("div");if(null===(e=eX.parentElement)||void 0===e||e.appendChild(S),S.style.left="".concat(eX.offsetLeft,"px"),S.style.top="".concat(eX.offsetTop,"px"),S.style.position=m,S.style.height="".concat(eX.offsetHeight,"px"),S.style.width="".concat(eX.offsetWidth,"px"),eX.style.left="0",eX.style.top="0",eX.style.right="auto",eX.style.bottom="auto",Array.isArray(a))n={x:a[0],y:a[1],width:0,height:0};else{var $=a.getBoundingClientRect();n={x:$.x,y:$.y,width:$.width,height:$.height}}var k=eX.getBoundingClientRect(),A=f.documentElement,R=A.clientWidth,N=A.clientHeight,I=A.scrollWidth,L=A.scrollHeight,B=A.scrollTop,z=A.scrollLeft,D=k.height,H=k.width,V=n.height,U=n.width,W=w.htmlRegion,q="visible",K="visibleFirst";"scroll"!==W&&W!==K&&(W=q);var G=W===K,X=O({left:-z,top:-B,right:I-z,bottom:L-B},T),Y=O({left:0,top:0,right:R,bottom:N},T),J=W===q?Y:X,Q=G?Y:J;eX.style.left="auto",eX.style.top="auto",eX.style.right="0",eX.style.bottom="0";var ee=eX.getBoundingClientRect();eX.style.left=g,eX.style.top=v,eX.style.right=y,eX.style.bottom=b,null===(t=eX.parentElement)||void 0===t||t.removeChild(S);var et=E(Math.round(H/parseFloat(p)*1e3)/1e3),en=E(Math.round(D/parseFloat(h)*1e3)/1e3);if(!(0===et||0===en||(0,u.S)(a)&&!(0,x.Z)(a))){var er=w.offset,eo=w.targetOffset,ei=j(k,er),ea=(0,o.Z)(ei,2),el=ea[0],es=ea[1],ec=j(n,eo),eu=(0,o.Z)(ec,2),ef=eu[0],ed=eu[1];n.x-=ef,n.y-=ed;var ep=w.points||[],eh=(0,o.Z)(ep,2),em=eh[0],eg=P(eh[1]),ev=P(em),ey=Z(n,eg),eb=Z(k,ev),ew=(0,r.Z)({},w),eE=ey.x-eb.x+el,e$=ey.y-eb.y+es,eO=te(eE,e$),ek=te(eE,e$,Y),ej=Z(n,["t","l"]),eZ=Z(k,["t","l"]),e_=Z(n,["b","r"]),eA=Z(k,["b","r"]),eR=w.overflow||{},eM=eR.adjustX,eN=eR.adjustY,eT=eR.shiftX,eF=eR.shiftY,eI=function(e){return"boolean"==typeof e?e:e>=0};tt();var eL=eI(eN),eB=ev[0]===eg[0];if(eL&&"t"===ev[0]&&(l>Q.bottom||F.current.bt)){var ez=e$;eB?ez-=D-V:ez=ej.y-eA.y-es;var eD=te(eE,ez),eH=te(eE,ez,Y);eD>eO||eD===eO&&(!G||eH>=ek)?(F.current.bt=!0,e$=ez,es=-es,ew.points=[_(ev,0),_(eg,0)]):F.current.bt=!1}if(eL&&"b"===ev[0]&&(ieO||eU===eO&&(!G||eW>=ek)?(F.current.tb=!0,e$=eV,es=-es,ew.points=[_(ev,0),_(eg,0)]):F.current.tb=!1}var eq=eI(eM),eK=ev[1]===eg[1];if(eq&&"l"===ev[1]&&(c>Q.right||F.current.rl)){var eG=eE;eK?eG-=H-U:eG=ej.x-eA.x-el;var eY=te(eG,e$),eJ=te(eG,e$,Y);eY>eO||eY===eO&&(!G||eJ>=ek)?(F.current.rl=!0,eE=eG,el=-el,ew.points=[_(ev,1),_(eg,1)]):F.current.rl=!1}if(eq&&"r"===ev[1]&&(seO||e0===eO&&(!G||e1>=ek)?(F.current.lr=!0,eE=eQ,el=-el,ew.points=[_(ev,1),_(eg,1)]):F.current.lr=!1}tt();var e2=!0===eT?0:eT;"number"==typeof e2&&(sY.right&&(eE-=c-Y.right-el,n.x>Y.right-e2&&(eE+=n.x-Y.right+e2)));var e6=!0===eF?0:eF;"number"==typeof e6&&(iY.bottom&&(e$-=l-Y.bottom-es,n.y>Y.bottom-e6&&(e$+=n.y-Y.bottom+e6)));var e4=k.x+eE,e3=k.y+e$,e5=n.x,e8=n.y;null==eP||eP(eX,ew);var e7=ee.right-k.x-(eE+k.width),e9=ee.bottom-k.y-(e$+k.height);M({ready:!0,offsetX:eE/et,offsetY:e$/en,offsetR:e7/et,offsetB:e9/en,arrowX:((Math.max(e4,e5)+Math.min(e4+H,e5+U))/2-e4)/et,arrowY:((Math.max(e3,e8)+Math.min(e3+D,e8+V))/2-e3)/en,scaleX:et,scaleY:en,align:ew})}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=k.x+e,o=k.y+t,i=Math.max(r,n.left),a=Math.max(o,n.top);return Math.max(0,(Math.min(r+H,n.right)-i)*(Math.min(o+D,n.bottom)-a))}function tt(){l=(i=k.y+e$)+D,c=(s=k.x+eE)+H}}}),L=function(){M(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,h.Z)(L,[ex]),(0,h.Z)(function(){to||L()},[to]),[k.ready,k.offsetX,k.offsetY,k.offsetR,k.offsetB,k.arrowX,k.arrowY,k.scaleX,k.scaleY,k.align,function(){N.current+=1;var e=N.current;Promise.resolve().then(function(){N.current===e&&I()})}]),t$=(0,o.Z)(tE,11),tO=t$[0],tk=t$[1],tj=t$[2],tP=t$[3],tZ=t$[4],t_=t$[5],tA=t$[6],tR=t$[7],tM=t$[8],tN=t$[9],tT=t$[10],tF=(H=void 0===Q?"hover":Q,g.useMemo(function(){var e=b(null!=ee?ee:H),t=b(null!=et?et:H),n=new Set(e),r=new Set(t);return eD&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[eD,H,ee,et])),tI=(0,o.Z)(tF,2),tL=tI[0],tB=tI[1],tz=tL.has("click"),tD=tB.has("click")||tB.has("contextMenu"),tH=(0,d.Z)(function(){tp||tT()});V=function(){ta.current&&ek&&tD&&tu(!1)},(0,h.Z)(function(){if(to&&e1&&eX){var e=S(e1),t=S(eX),n=C(eX),r=new Set([n].concat((0,A.Z)(e),(0,A.Z)(t)));function o(){tH(),V()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tH(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[to,e1,eX]),(0,h.Z)(function(){tH()},[tw,ex]),(0,h.Z)(function(){to&&!(null!=eC&&eC[ex])&&tH()},[JSON.stringify(eS)]);var tV=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eC,Y,tN,ek);return s()(e,null==eO?void 0:eO(tN))},[tN,eO,eC,Y,ek]);g.useImperativeHandle(n,function(){return{forceAlign:tH}});var tU=g.useState(0),tW=(0,o.Z)(tU,2),tq=tW[0],tK=tW[1],tG=g.useState(0),tX=(0,o.Z)(tG,2),tY=tX[0],tJ=tX[1],tQ=function(){if(e$&&e1){var e=e1.getBoundingClientRect();tK(e.width),tJ(e.height)}};function t0(e,t,n,r){e5[e]=function(o){var i;null==r||r(o),tu(t,n);for(var a=arguments.length,l=Array(a>1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o-1&&(i=setTimeout(function(){d.delete(e)},t)),d.set(e,(0,o.pi)((0,o.pi)({},n),{timer:i}))},h=new Map,m=function(e,t){h.set(e,t),t.then(function(t){return h.delete(e),t}).catch(function(){h.delete(e)})},g={},v=function(e,t){g[e]&&g[e].forEach(function(e){return e(t)})},y=function(e,t){return g[e]||(g[e]=[]),g[e].push(t),function(){var n=g[e].indexOf(t);g[e].splice(n,1)}},b=function(e,t){var n=t.cacheKey,r=t.cacheTime,a=void 0===r?3e5:r,l=t.staleTime,c=void 0===l?0:l,u=t.setCache,g=t.getCache,b=(0,i.useRef)(),x=(0,i.useRef)(),w=function(e,t){u?u(t):p(e,a,t),v(e,t.data)},C=function(e,t){return(void 0===t&&(t=[]),g)?g(t):d.get(e)};return(s(function(){if(n){var t=C(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||new Date().getTime()-t.time<=c)&&(e.state.loading=!1)),b.current=y(n,function(t){e.setState({data:t})})}},[]),f(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),n)?{onBefore:function(e){var t=C(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||new Date().getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=h.get(n);return r&&r!==x.current||(r=e.apply(void 0,(0,o.ev)([],(0,o.CR)(t),!1)),x.current=r,m(n,r)),{servicePromise:r}},onSuccess:function(t,r){var o;n&&(null===(o=b.current)||void 0===o||o.call(b),w(n,{data:t,params:r,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&(null===(r=b.current)||void 0===r||r.call(b),w(n,{data:t,params:e.state.params,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))}}:{}},x=n(23279),w=n.n(x),C=function(e,t){var n=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,s=(0,i.useRef)(),c=(0,i.useMemo)(function(){var e={};return void 0!==r&&(e.leading=r),void 0!==a&&(e.trailing=a),void 0!==l&&(e.maxWait=l),e},[r,a,l]);return((0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return s.current=w()(function(e){e()},n,c),e.runAsync=function(){for(var e=[],n=0;n-1&&j.splice(e,1)})}return function(){s()}},[n,a]),f(function(){s()}),{}},_=function(e,t){var n=t.retryInterval,r=t.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),l=(0,i.useRef)(!1);return r?{onBefore:function(){l.current||(a.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===r||a.current<=r){var t=null!=n?n:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){l.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},A=n(23493),R=n.n(A),M=function(e,t){var n=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,l=(0,i.useRef)(),s={};return(void 0!==r&&(s.leading=r),void 0!==a&&(s.trailing=a),(0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return l.current=R()(function(e){e()},n,s),e.runAsync=function(){for(var e=[],n=0;n{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(y)}`:`.${y}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>u.current});return i&&(b=i(b)),o.createElement("div",{ref:u,style:{paddingBottom:f,position:"relative",minWidth:p}},o.createElement(e,Object.assign({},b)))})}},98787:function(e,t,n){"use strict";n.d(t,{o2:function(){return l},yT:function(){return s}});var r=n(74902),o=n(8796);let i=o.i.map(e=>`${e}-inverse`),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function s(e){return a.includes(e)}},69760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(97937),o=n(67294);function i(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(r.Z,null),a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l="boolean"==typeof e?e:void 0===t?!!a:!1!==t&&null!==t;if(!l)return[!1,null];let s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}},98082:function(e,t,n){"use strict";var r=n(67294),o=n(31808);t.Z=()=>{let[e,t]=r.useState(!1);return r.useEffect(()=>{t((0,o.fk)())},[]),e}},33603:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${e}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},80636:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(77786);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,f=t/2,d={};return Object.keys(o).forEach(e=>{let p=l&&i[e]||o[e],h=Object.assign(Object.assign({},p),{offset:[0,0]});switch(d[e]=h,a.has(e)&&(h.autoArrow=!1),e){case"top":case"topLeft":case"topRight":h.offset[1]=-f-s;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=f+s;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-f-s;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=f+s}let m=(0,r.fS)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":h.offset[0]=-m.dropdownArrowOffset-f;break;case"topRight":case"bottomRight":h.offset[0]=m.dropdownArrowOffset+f;break;case"leftTop":case"rightTop":h.offset[1]=-m.dropdownArrowOffset-f;break;case"leftBottom":case"rightBottom":h.offset[1]=m.dropdownArrowOffset+f}h.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(h.htmlRegion="visibleFirst")}),d}},96159:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var r,o=n(67294);let{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t){return i(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},31808:function(e,t,n){"use strict";let r;n.d(t,{fk:function(){return a},jD:function(){return i}});var o=n(98924);let i=()=>(0,o.Z)()&&window.document.documentElement,a=()=>{if(!i())return!1;if(void 0!==r)return r;let e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));let t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),r=1===e.scrollHeight,document.body.removeChild(t),r}},45353:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(94184),o=n.n(r),i=n(42550),a=n(5110),l=n(67294),s=n(53124),c=n(96159),u=n(67968);let f=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow 0.3s ${e.motionEaseInOut},opacity 0.35s ${e.motionEaseInOut}`}}}}};var d=(0,u.Z)("Wave",e=>[f(e)]),p=n(66680),h=n(75164),m=n(82225),g=n(38135);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}var y=n(17415);function b(e){return Number.isNaN(e)?0:e}let x=e=>{let{className:t,target:n,component:r}=e,i=l.useRef(null),[a,s]=l.useState(null),[c,u]=l.useState([]),[f,d]=l.useState(0),[p,x]=l.useState(0),[w,C]=l.useState(0),[S,E]=l.useState(0),[$,O]=l.useState(!1),k={left:f,top:p,width:w,height:S,borderRadius:c.map(e=>`${e}px`).join(" ")};function j(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:b(-parseFloat(r))),x(t?n.offsetTop:b(-parseFloat(o))),C(n.offsetWidth),E(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>b(parseFloat(e))))}if(a&&(k["--wave-color"]=a),l.useEffect(()=>{if(n){let e;let t=(0,h.Z)(()=>{j(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(j)).observe(n),()=>{h.Z.cancel(t),null==e||e.disconnect()}}},[]),!$)return null;let P=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(y.A));return l.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,g.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return l.createElement("div",{ref:i,className:o()(t,{"wave-quick":P},n),style:k})})};var w=(e,t)=>{var n;let{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,g.s)(l.createElement(x,Object.assign({},t,{target:e})),o)},C=n(25976),S=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:u}=(0,l.useContext)(s.E_),f=(0,l.useRef)(null),m=u("wave"),[,g]=d(m),v=function(e,t,n){let{wave:r}=l.useContext(s.E_),[,o,i]=(0,C.Z)(),a=(0,p.Z)(a=>{let l=e.current;if((null==r?void 0:r.disabled)||!l)return;let s=l.querySelector(`.${y.A}`)||l,{showEffect:c}=r||{};(c||w)(s,{className:t,token:o,component:n,event:a,hashId:i})}),c=l.useRef();return e=>{h.Z.cancel(c.current),c.current=(0,h.Z)(()=>{a(e)})}}(f,o()(m,g),r);if(l.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!l.isValidElement(t))return null!=t?t:null;let b=(0,i.Yr)(t)?(0,i.sQ)(t.ref,f):f;return(0,c.Tm)(t,{ref:b})}},17415:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r="ant-wave-target"},4026:function(e,t,n){"use strict";n.d(t,{n:function(){return eo},Z:function(){return ea}});var r=n(67294),o=n(94184),i=n.n(o),a=n(98423),l=n(42550),s=n(45353),c=n(53124),u=n(98866),f=n(98675),d=n(4173),p=n(25976),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m=r.createContext(void 0);var g=n(96159);let v=/^[\u4e00-\u9fa5]{2}$/,y=v.test.bind(v);function b(e){return"string"==typeof e}function x(e){return"text"===e||"link"===e}let w=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:s,style:o},a)});var C=n(50888),S=n(82225);let E=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:l}=e,s=i()(`${n}-loading-icon`,o);return r.createElement(w,{prefixCls:n,className:s,style:a,ref:t},r.createElement(C.Z,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),O=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var k=e=>{let{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e;return o?r.createElement(E,{prefixCls:t,className:i,style:a}):r.createElement(S.ZP,{visible:!!n,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:$,onAppearActive:O,onEnterStart:$,onEnterActive:O,onLeaveStart:O,onLeaveActive:$},(e,n)=>{let{className:o,style:l}=e;return r.createElement(E,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})})},j=n(14747),P=n(45503),Z=n(67968);let _=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var A=e=>{let{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{16397:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return S},cyan:function(){return C},geekblue:function(){return E},generate:function(){return f},gold:function(){return v},gray:function(){return j},green:function(){return w},grey:function(){return k},lime:function(){return x},magenta:function(){return O},orange:function(){return y},presetDarkPalettes:function(){return h},presetPalettes:function(){return p},presetPrimaryColors:function(){return d},purple:function(){return $},red:function(){return m},volcano:function(){return g},yellow:function(){return b}});var r=n(86500),o=n(1350),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)))}function u(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(r),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));n.push(p)}n.push(l(r));for(var h=1;h<=4;h+=1){var m=a(r),g=l((0,o.uA)({h:s(m,h),s:c(m,h),v:u(m,h)}));n.push(g)}return"dark"===t.theme?i.map(function(e){var r,i,a,s=e.index,c=e.opacity;return l((r=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(n[s]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))}):n}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]});var m=p.red,g=p.volcano,v=p.gold,y=p.orange,b=p.yellow,x=p.lime,w=p.green,C=p.cyan,S=p.blue,E=p.geekblue,$=p.purple,O=p.magenta,k=p.grey,j=p.grey},23183:function(e,t,n){"use strict";n.d(t,{E4:function(){return ee},jG:function(){return O},t2:function(){return L},fp:function(){return B},xy:function(){return Q}});var r,o=n(74902),i=n(1413),a=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)},l=n(67294),s=n.t(l,2);n(56982),n(91881);var c=n(15671),u=n(43144),f=n(4942),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var n=e.join("%"),r=t(this.cache.get(n));null===r?this.cache.delete(n):this.cache.set(n,r)}}]),e}(),p="data-token-hash",h="data-css-hash",m="__cssinjs_instance__",g=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[m]=t[m]||e,t[m]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var n,o=t.getAttribute(h);r[o]?t[m]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new d(e)}(),defaultCache:!0}),v=n(71002),y=n(98924),b=n(44958),x=n(97685),w=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,n;o=null===(t=o)||void 0===t?void 0:null===(n=t.map)||void 0===n?void 0:n.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,x.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),$=new w;function O(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new E(t)),$.get(t)}var k=new WeakMap;function j(e){var t=k.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof E?t+=r.id:r&&"object"===(0,v.Z)(r)?t+=j(r):t+=r}),k.set(e,t)),t}var P="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Z="_bAmBoO_",_=void 0,M=n(8410),A=(0,i.Z)({},s).useInsertionEffect,R=A?function(e,t,n){return A(function(){return e(),t()},n)}:function(e,t,n){l.useMemo(e,n),(0,M.Z)(function(){return t(!0)},n)},N=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],n=!1;return l.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function T(e,t,n,r,i){var a=l.useContext(g).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=N([c]),f=function(e){a.update(s,function(t){var r=(0,x.Z)(t||[],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return R(function(){null==i||i(d)},function(e){return f(function(t){var n=(0,x.Z)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(d)),[r+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),n=t[0],o=void 0===n?0:n,i=t[1];return 0==o-1?(u(function(){return null==r?void 0:r(i,!1)}),null):[o-1,i]})}},[c]),d}var F={},I=new Map,L=function(e,t,n,r){var o=n.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return r&&(a=r(a)),a};function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,l.useContext)(g).cache.instanceId,i=n.salt,s=void 0===i?"":i,c=n.override,u=void 0===c?F:c,f=n.formatToken,d=n.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return j(h)},[h]),y=l.useMemo(function(){return j(u)},[u]);return T("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):L(h,u,e,f),n=a("".concat(s,"_").concat(j(t)));t._tokenKey=n,I.set(n,(I.get(n)||0)+1);var r="".concat("css","-").concat(a(n));return t._hashId=r,[t,r]},function(e){var t,n,o;t=e[0]._tokenKey,I.set(t,(I.get(t)||0)-1),o=(n=Array.from(I.keys())).filter(function(e){return 0>=(I.get(e)||0)}),n.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[m]===r){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),I.delete(e)})})}var z=n(87462),D={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},H=n(20211),V=n(92190),U="data-ant-cssinjs-cache-path",W="_FILE_STYLE__",q=!0,K=(0,y.Z)(),G="_multi_value_";function X(e){return(0,H.q)((0,V.MY)(e),H.P).replace(/\{%%%\:[^;];}/g,";")}var Y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,l=r.injectHash,s=r.parentSelectors,c=n.hashId,u=n.layer,f=(n.path,n.hashPriority),d=n.transformers,p=void 0===d?[]:d;n.linters;var h="",m={};function g(t){var r=t.getName(c);if(!m[r]){var o=e(t.style,n,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];m[r]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||a?t:{};if("string"==typeof r)h+="".concat(r,"\n");else if(r._keyframe)g(r);else{var u=p.reduce(function(e,t){var n;return(null==t?void 0:null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,v.Z)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,v.Z)(r)&&r&&("_skip_check_"in r||G in r)){function d(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;D[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(c)),h+="".concat(n,":").concat(r,";")}var p,y=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,v.Z)(r)&&null!=r&&r[G]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,w=t.trim(),C=!1;(a||l)&&c?w.startsWith("@")?b=!0:w=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.Z)(n.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===w||""===w)&&(w="",C=!0);var S=e(r,n,{root:C,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[w])}),E=(0,x.Z)(S,2),$=E[0],O=E[1];m=(0,i.Z)((0,i.Z)({},m),O),h+="".concat(w).concat($)}})}}),a){if(u&&(void 0===_&&(_=function(e,t,n){if((0,y.Z)()){(0,b.hq)(e,P);var r,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(Z);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)(P),a}return!1}("@layer ".concat(P," { .").concat(P,' { content: "').concat(Z,'"!important; } }'),function(e){e.className=P})),_)){var w=u.split(","),C=w[w.length-1].trim();h="@layer ".concat(C," {").concat(h,"}"),w.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,m]};function J(){return null}function Q(e,t){var n=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,w=void 0===v?0:v,C=l.useContext(g),S=C.autoClear,E=(C.mock,C.defaultCache),$=C.hashPriority,O=C.container,k=C.ssrInline,j=C.transformers,P=C.linters,Z=C.cache,_=n._tokenKey,M=[_].concat((0,o.Z)(i)),A=T("style",M,function(){var e=M.join("|");if(!function(){if(!r&&(r={},(0,y.Z)())){var e,t=document.createElement("div");t.className=U,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var n=getComputedStyle(t).content||"";(n=n.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,x.Z)(t,2),o=n[0],i=n[1];r[o]=i});var o=document.querySelector("style[".concat(U,"]"));o&&(q=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),r[e]){var n=function(e){var t=r[e],n=null;if(t&&(0,y.Z)()){if(q)n=W;else{var o=document.querySelector("style[".concat(h,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}}return[n,t]}(e),o=(0,x.Z)(n,2),l=o[0],u=o[1];if(l)return[l,_,u,{},d,w]}var f=Y(t(),{hashId:s,hashPriority:$,layer:c,path:i.join("-"),transformers:j,linters:P}),p=(0,x.Z)(f,2),m=p[0],g=p[1],v=X(m),b=a("".concat(M.join("%")).concat(v));return[v,_,b,g,d,w]},function(e,t){var n=(0,x.Z)(e,3)[2];(t||S)&&K&&(0,b.jL)(n,{mark:h})},function(e){var t=(0,x.Z)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(K&&n!==W){var i={mark:h,prepend:"queue",attachTo:O,priority:w},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(n,r,i);l[m]=Z.instanceId,l.setAttribute(p,_),Object.keys(o).forEach(function(e){(0,b.hq)(X(o[e]),"_effect-".concat(e),i)})}}),R=(0,x.Z)(A,3),N=R[0],F=R[1],I=R[2];return function(e){var t,n;return t=k&&!K&&E?l.createElement("style",(0,z.Z)({},(n={},(0,f.Z)(n,p,F),(0,f.Z)(n,h,I),n),{dangerouslySetInnerHTML:{__html:N}})):l.createElement(J,null),l.createElement(l.Fragment,null,t,e)}}var ee=function(){function e(t,n){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function et(e){return e.notSplit=!0,e}et(["borderTop","borderBottom"]),et(["borderTop"]),et(["borderBottom"]),et(["borderLeft","borderRight"]),et(["borderLeft"]),et(["borderRight"])},84089:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(87462),o=n(97685),i=n(4942),a=n(45987),l=n(67294),s=n(94184),c=n.n(s),u=n(16397),f=n(63017),d=n(1413),p=n(41755),h=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},g=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,s=e.secondaryColor,c=(0,a.Z)(e,h),u=l.useRef(),f=m;if(i&&(f={primaryColor:i,secondaryColor:s||(0,p.pw)(i)}),(0,p.C3)(u),(0,p.Kp)((0,p.r)(t),"icon should be icon definiton, but got ".concat(t)),!(0,p.r)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(f.primaryColor,f.secondaryColor)})),(0,p.R_)(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:n,onClick:r,style:o,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};function v(e){var t=(0,p.H9)(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return g.setTwoToneColors({primaryColor:r,secondaryColor:i})}g.displayName="IconReact",g.getTwoToneColors=function(){return(0,d.Z)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,p.pw)(t),m.calculated=!!n};var y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];v(u.blue.primary);var b=l.forwardRef(function(e,t){var n,s=e.className,u=e.icon,d=e.spin,h=e.rotate,m=e.tabIndex,v=e.onClick,b=e.twoToneColor,x=(0,a.Z)(e,y),w=l.useContext(f.Z),C=w.prefixCls,S=void 0===C?"anticon":C,E=w.rootClassName,$=c()(E,S,(n={},(0,i.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,i.Z)(n,"".concat(S,"-spin"),!!d||"loading"===u.name),n),s),O=m;void 0===O&&v&&(O=-1);var k=(0,p.H9)(b),j=(0,o.Z)(k,2),P=j[0],Z=j[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},x,{ref:t,tabIndex:O,onClick:v,className:$}),l.createElement(g,{icon:u,primaryColor:P,secondaryColor:Z,style:h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0}))});b.displayName="AntdIcon",b.getTwoToneColor=function(){var e=g.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},b.setTwoToneColor=v;var x=b},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},16165:function(e,t,n){"use strict";var r=n(87462),o=n(1413),i=n(4942),a=n(45987),l=n(67294),s=n(94184),c=n.n(s),u=n(42550),f=n(63017),d=n(41755),p=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],h=l.forwardRef(function(e,t){var n=e.className,s=e.component,h=e.viewBox,m=e.spin,g=e.rotate,v=e.tabIndex,y=e.onClick,b=e.children,x=(0,a.Z)(e,p),w=l.useRef(),C=(0,u.x1)(w,t);(0,d.Kp)(!!(s||b),"Should have `component` prop or `children`."),(0,d.C3)(w);var S=l.useContext(f.Z),E=S.prefixCls,$=void 0===E?"anticon":E,O=S.rootClassName,k=c()(O,$,n),j=c()((0,i.Z)({},"".concat($,"-spin"),!!m)),P=(0,o.Z)((0,o.Z)({},d.vD),{},{className:j,style:g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,viewBox:h});h||delete P.viewBox;var Z=v;return void 0===Z&&y&&(Z=-1),l.createElement("span",(0,r.Z)({role:"img"},x,{ref:C,tabIndex:Z,onClick:y,className:k}),s?l.createElement(s,P,b):b?((0,d.Kp)(!!h||1===l.Children.count(b)&&l.isValidElement(b)&&"use"===l.Children.only(b).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),l.createElement("svg",(0,r.Z)({},P,{viewBox:h}),b)):null)});h.displayName="AntdIcon",t.Z=h},89739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},4340:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},97937:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},89705:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},21640:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},78860:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},24969:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},18073:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(87462),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(84089),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},41755:function(e,t,n){"use strict";n.d(t,{C3:function(){return v},H9:function(){return m},Kp:function(){return f},R_:function(){return function e(t,n,o){return o?c.createElement(t.tag,(0,r.Z)((0,r.Z)({key:n},p(t.attrs)),o),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):c.createElement(t.tag,(0,r.Z)({key:n},p(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}},pw:function(){return h},r:function(){return d},vD:function(){return g}});var r=n(1413),o=n(71002),i=n(16397),a=n(44958),l=n(27571),s=n(80334),c=n(67294),u=n(63017);function f(e,t){(0,s.ZP)(e,"[@ant-design/icons] ".concat(t))}function d(e){return"object"===(0,o.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,o.Z)(e.icon)||"function"==typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function h(e){return(0,i.generate)(e)[0]}function m(e){return e?Array.isArray(e)?e:[e]:[]}var g={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},v=function(e){var t=(0,c.useContext)(u.Z),n=t.csp,r=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),(0,c.useEffect)(function(){var t=e.current,r=(0,l.A)(t);(0,a.hq)(o,"@ant-design-icons",{prepend:!0,csp:n,attachTo:r})},[])}},86500:function(e,t,n){"use strict";n.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var r=n(90279);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6)?e+(t-e)*(6*n):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,l=n,o=n;else{var o,i,l,s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,n){var o=Math.max(e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255)),i=Math.min(e,t,n),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,n){"use strict";n.d(t,{uA:function(){return a}});var r=n(86500),o=n(48701),i=n(90279);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=u.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=u.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=u.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=u.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=u.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=u.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=u.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=u.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=u.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,r.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,r.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},10274:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(86500),o=n(48701),i=n(1350),a=n(90279),l=function(){function e(t,n){if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return!t&&r&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-(255*(t/100))))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-(255*(t/100))))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-(255*(t/100))))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return r}})},9463:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,n){switch((0,i.vp)(t,n)){case 5103:return a.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-n>6)switch((0,i.uO)(t,n+1)){case 109:if(45!==(0,i.uO)(t,n+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,n+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==(0,i.uO)(t,n+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,n+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],r);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],r);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""})}}],m=function(e){var t,n,o,a,c,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var m=e.stylisPlugins||h,g={},v=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+c,styles:a,next:r}}},27278:function(e,t,n){"use strict";n.d(t,{L:function(){return a},j:function(){return l}});var r,o=n(67294),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},70444:function(e,t,n){"use strict";function r(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},26821:function(e,t,n){"use strict";n.d(t,{d6:function(){return i},sI:function(){return a}});var r=n(34867),o=n(1588);let i=(e,t)=>(0,r.Z)(e,t,"Mui"),a=(e,t)=>(0,o.Z)(e,t,"Mui")},9818:function(e,t){"use strict";t.Z={grey:{50:"#F5F7FA",100:"#EAEEF6",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#23272B",900:"#121416"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}}},38629:function(e,t,n){"use strict";n.d(t,{F:function(){return c},Z:function(){return u}}),n(67294);var r=n(96682),o=n(71927),i=n(1812),a=n(59077),l=n(2548),s=n(85893);let c=()=>{let e=(0,r.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let n=i.Z;return t&&(n=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:n,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},1812:function(e,t,n){"use strict";var r=n(59077);let o=(0,r.Z)();t.Z=o},59077:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(87462),o=n(63366),i=n(59766),a=n(50159),l=n(41796),s=n(41512),c=n(98373);let u=(e,t,n,r=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"==typeof o&&(o[e]=n):o&&"object"==typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])})},f=(e,t,n)=>{!function e(r,o=[],i=[]){Object.entries(r).forEach(([r,a])=>{n&&(!n||n([...o,r]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,r],Array.isArray(a)?[...i,r]:i):t([...o,r],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let n=e[e.length-1];return n.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:""}${e.join("-")}`;Object.assign(o,{[r]:d(e,t)}),u(i,e,`var(${r})`,l),u(a,e,`var(${r}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],m=["light"];var g=function(e,t){let{colorSchemes:n={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=n,g=(0,o.Z)(n,m);if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:o,varsWithDefaults:a}=p(n,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:r}}),d){let{css:e,vars:n,varsWithDefaults:r}=p(d,t);u=(0,i.Z)(u,r),f.light={css:e,vars:n}}return{vars:u,generateCssVars:e=>e?{css:(0,r.Z)({},f[e].css),vars:f[e].vars}:{css:(0,r.Z)({},s),vars:l}}},v=n(86523),y=n(44920);let b=(0,r.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=n(9818);function w(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var C=n(26821),S=n(13951);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],O=(e="joy")=>(0,a.Z)(e);function k(e){var t,n,a,u,f,d,p,h,m,y;let k=e||{},{cssVarPrefix:j="joy",breakpoints:P,spacing:Z,components:_,variants:M,colorInversion:A,shouldSkipGeneratingVar:R=w}=k,N=(0,o.Z)(k,E),T=O(j),F={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FCFCFD",black:"#09090B"}},I=e=>{var t;let n=e.split("-"),r=n[1],o=n[2];return T(e,null==(t=F[r])?void 0:t[o])},L=e=>({plainColor:I(`palette-${e}-500`),plainHoverBg:I(`palette-${e}-50`),plainActiveBg:I(`palette-${e}-100`),plainDisabledColor:I("palette-neutral-400"),outlinedColor:I(`palette-${e}-500`),outlinedBorder:I(`palette-${e}-300`),outlinedHoverBg:I(`palette-${e}-100`),outlinedActiveBg:I(`palette-${e}-200`),outlinedDisabledColor:I("palette-neutral-400"),outlinedDisabledBorder:I("palette-neutral-200"),softColor:I(`palette-${e}-700`),softBg:I(`palette-${e}-100`),softHoverBg:I(`palette-${e}-200`),softActiveColor:I(`palette-${e}-800`),softActiveBg:I(`palette-${e}-300`),softDisabledColor:I("palette-neutral-400"),softDisabledBg:I(`palette-${e}-50`),solidColor:I("palette-common-white"),solidBg:I(`palette-${e}-500`),solidHoverBg:I(`palette-${e}-600`),solidActiveBg:I(`palette-${e}-700`),solidDisabledColor:I("palette-neutral-400"),solidDisabledBg:I(`palette-${e}-100`)}),B=e=>({plainColor:I(`palette-${e}-300`),plainHoverBg:I(`palette-${e}-800`),plainActiveBg:I(`palette-${e}-700`),plainDisabledColor:I("palette-neutral-500"),outlinedColor:I(`palette-${e}-200`),outlinedBorder:I(`palette-${e}-700`),outlinedHoverBg:I(`palette-${e}-800`),outlinedActiveBg:I(`palette-${e}-700`),outlinedDisabledColor:I("palette-neutral-500"),outlinedDisabledBorder:I("palette-neutral-800"),softColor:I(`palette-${e}-200`),softBg:I(`palette-${e}-800`),softHoverBg:I(`palette-${e}-700`),softActiveColor:I(`palette-${e}-100`),softActiveBg:I(`palette-${e}-600`),softDisabledColor:I("palette-neutral-500"),softDisabledBg:I(`palette-${e}-900`),solidColor:I("palette-common-white"),solidBg:I(`palette-${e}-500`),solidHoverBg:I(`palette-${e}-600`),solidActiveBg:I(`palette-${e}-700`),solidDisabledColor:I("palette-neutral-500"),solidDisabledBg:I(`palette-${e}-800`)}),z={palette:{mode:"light",primary:(0,r.Z)({},F.primary,L("primary")),neutral:(0,r.Z)({},F.neutral,L("neutral"),{plainColor:I("palette-neutral-700"),outlinedColor:I("palette-neutral-700")}),danger:(0,r.Z)({},F.danger,L("danger")),success:(0,r.Z)({},F.success,L("success")),warning:(0,r.Z)({},F.warning,L("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:I("palette-neutral-800"),secondary:I("palette-neutral-700"),tertiary:I("palette-neutral-600"),icon:I("palette-neutral-500")},background:{body:I("palette-neutral-50"),surface:I("palette-common-white"),popup:I("palette-common-white"),level1:I("palette-neutral-100"),level2:I("palette-neutral-200"),level3:I("palette-neutral-300"),tooltip:I("palette-neutral-500"),backdrop:`rgba(${T("palette-neutral-darkChannel",(0,l.n8)(F.neutral[900]))} / 0.25)`},divider:`rgba(${T("palette-neutral-mainChannel",(0,l.n8)(F.neutral[500]))} / 0.3)`,focusVisible:I("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},D={palette:{mode:"dark",primary:(0,r.Z)({},F.primary,B("primary")),neutral:(0,r.Z)({},F.neutral,B("neutral")),danger:(0,r.Z)({},F.danger,B("danger")),success:(0,r.Z)({},F.success,B("success")),warning:(0,r.Z)({},F.warning,B("warning")),common:{white:"#FBFCFD",black:"#0E0E10"},text:{primary:I("palette-neutral-100"),secondary:I("palette-neutral-300"),tertiary:I("palette-neutral-400"),icon:I("palette-neutral-400")},background:{body:I("palette-common-black"),surface:I("palette-neutral-900"),popup:I("palette-common-black"),level1:I("palette-neutral-800"),level2:I("palette-neutral-700"),level3:I("palette-neutral-600"),tooltip:I("palette-neutral-600"),backdrop:`rgba(${T("palette-neutral-darkChannel",(0,l.n8)(F.neutral[50]))} / 0.25)`},divider:`rgba(${T("palette-neutral-mainChannel",(0,l.n8)(F.neutral[500]))} / 0.16)`,focusVisible:I("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},H='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',V=(0,r.Z)({body:`"Inter", ${T(`fontFamily-fallback, ${H}`)}`,display:`"Inter", ${T(`fontFamily-fallback, ${H}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:H},N.fontFamily),U=(0,r.Z)({sm:300,md:500,lg:600,xl:700},N.fontWeight),W=(0,r.Z)({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},N.fontSize),q=(0,r.Z)({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},N.lineHeight),K=null!=(t=null==(n=N.colorSchemes)||null==(n=n.light)?void 0:n.shadowRing)?t:z.shadowRing,G=null!=(a=null==(u=N.colorSchemes)||null==(u=u.light)?void 0:u.shadowChannel)?a:z.shadowChannel,X=null!=(f=null==(d=N.colorSchemes)||null==(d=d.light)?void 0:d.shadowOpacity)?f:z.shadowOpacity,Y={colorSchemes:{light:z,dark:D},fontSize:W,fontFamily:V,fontWeight:U,focus:{thickness:"2px",selector:`&.${(0,C.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${T("focus-thickness",null!=(p=null==(h=N.focus)?void 0:h.thickness)?p:"2px")})`,outline:`${T("focus-thickness",null!=(m=null==(y=N.focus)?void 0:y.thickness)?m:"2px")} solid ${T("palette-focusVisible",F.primary[500])}`}},lineHeight:q,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${T("shadowRing",K)}, 0px 1px 2px 0px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,sm:`${T("shadowRing",K)}, 0px 1px 2px 0px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 2px 4px 0px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,md:`${T("shadowRing",K)}, 0px 2px 8px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 6px 12px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,lg:`${T("shadowRing",K)}, 0px 2px 8px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 12px 16px -4px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`,xl:`${T("shadowRing",K)}, 0px 2px 8px -2px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)}), 0px 20px 24px -4px rgba(${T("shadowChannel",G)} / ${T("shadowOpacity",X)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{h1:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-xl, ${U.xl}`),fontSize:T(`fontSize-xl4, ${W.xl4}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},h2:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-xl, ${U.xl}`),fontSize:T(`fontSize-xl3, ${W.xl3}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},h3:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-lg, ${U.lg}`),fontSize:T(`fontSize-xl2, ${W.xl2}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},h4:{fontFamily:T(`fontFamily-display, ${V.display}`),fontWeight:T(`fontWeight-lg, ${U.lg}`),fontSize:T(`fontSize-xl, ${W.xl}`),lineHeight:T(`lineHeight-md, ${q.md}`),letterSpacing:"-0.025em",color:T(`palette-text-primary, ${z.palette.text.primary}`)},"title-lg":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-lg, ${U.lg}`),fontSize:T(`fontSize-lg, ${W.lg}`),lineHeight:T(`lineHeight-xs, ${q.xs}`),color:T(`palette-text-primary, ${z.palette.text.primary}`)},"title-md":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-md, ${U.md}`),fontSize:T(`fontSize-md, ${W.md}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-primary, ${z.palette.text.primary}`)},"title-sm":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-md, ${U.md}`),fontSize:T(`fontSize-sm, ${W.sm}`),lineHeight:T(`lineHeight-sm, ${q.sm}`),color:T(`palette-text-primary, ${z.palette.text.primary}`)},"body-lg":{fontFamily:T(`fontFamily-body, ${V.body}`),fontSize:T(`fontSize-lg, ${W.lg}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-md":{fontFamily:T(`fontFamily-body, ${V.body}`),fontSize:T(`fontSize-md, ${W.md}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-sm":{fontFamily:T(`fontFamily-body, ${V.body}`),fontSize:T(`fontSize-sm, ${W.sm}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-tertiary, ${z.palette.text.tertiary}`)},"body-xs":{fontFamily:T(`fontFamily-body, ${V.body}`),fontWeight:T(`fontWeight-md, ${U.md}`),fontSize:T(`fontSize-xs, ${W.xs}`),lineHeight:T(`lineHeight-md, ${q.md}`),color:T(`palette-text-tertiary, ${z.palette.text.tertiary}`)}}},J=N?(0,i.Z)(Y,N):Y,{colorSchemes:Q}=J,ee=(0,o.Z)(J,$),et=(0,r.Z)({colorSchemes:Q},ee,{breakpoints:(0,s.Z)(null!=P?P:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:e,theme:t})=>{var n;let o=e.instanceFontSize;return(0,r.Z)({margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},!e.htmlColor&&(0,r.Z)({color:`var(--Icon-color, ${et.vars.palette.text.icon})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(n=t.vars.palette[e.color])?void 0:n.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary}),o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},_),cssVarPrefix:j,getCssVar:T,spacing:(0,c.Z)(Z),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(et.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(n=>{let r={main:"500",light:"200",dark:"700"};"dark"===e&&(r.main=400),!t[n].mainChannel&&t[n][r.main]&&(t[n].mainChannel=(0,l.n8)(t[n][r.main])),!t[n].lightChannel&&t[n][r.light]&&(t[n].lightChannel=(0,l.n8)(t[n][r.light])),!t[n].darkChannel&&t[n][r.dark]&&(t[n].darkChannel=(0,l.n8)(t[n][r.dark]))})}(e,t.palette)});let{vars:en,generateCssVars:er}=g((0,r.Z)({colorSchemes:Q},ee),{prefix:j,shouldSkipGeneratingVar:R});et.vars=en,et.generateCssVars=er,et.unstable_sxConfig=(0,r.Z)({},b,null==e?void 0:e.unstable_sxConfig),et.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},et.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eo={getCssVar:T,palette:et.colorSchemes.light.palette};return et.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eo),plainHover:(0,S.Zm)("plainHover",eo),plainActive:(0,S.Zm)("plainActive",eo),plainDisabled:(0,S.Zm)("plainDisabled",eo),outlined:(0,S.Zm)("outlined",eo),outlinedHover:(0,S.Zm)("outlinedHover",eo),outlinedActive:(0,S.Zm)("outlinedActive",eo),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eo),soft:(0,S.Zm)("soft",eo),softHover:(0,S.Zm)("softHover",eo),softActive:(0,S.Zm)("softActive",eo),softDisabled:(0,S.Zm)("softDisabled",eo),solid:(0,S.Zm)("solid",eo),solidHover:(0,S.Zm)("solidHover",eo),solidActive:(0,S.Zm)("solidActive",eo),solidDisabled:(0,S.Zm)("solidDisabled",eo)},M),et.palette=(0,r.Z)({},et.colorSchemes.light.palette,{colorScheme:"light"}),et.shouldSkipGeneratingVar=R,et.colorInversion="function"==typeof A?A:(0,i.Z)({soft:(0,S.pP)(et,!0),solid:(0,S.Lo)(et,!0)},A||{},{clone:!1}),et}},2548:function(e,t){"use strict";t.Z="$$joy"},13951:function(e,t,n){"use strict";n.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var r=n(87462),o=n(50159);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},l=(e,t,n)=>{let r={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=n?n(t):o;t.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),t.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),t.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),a(r,t,e)}}),r},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let n={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(n=(0,r.Z)({},n,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return n.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),n},u=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{var r;let o=t.split("-"),i=o[1],a=o[2];return n(t,null==(r=e.palette)||null==(r=r[i])?void 0:r[a])}:n;return Object.entries(e.palette).forEach(t=>{let[n,o]=t;i(o)&&(a[n]={"--Badge-ringColor":l(`palette-${n}-softBg`),[e.getColorSchemeSelector("dark")]:{[r("--palette-focusVisible")]:l(`palette-${n}-300`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,[r("--palette-text-primary")]:l(`palette-${n}-100`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.72)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-text-icon")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.6)`,[r("--palette-divider")]:`rgba(${l(`palette-${n}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${n}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${n}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${n}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${n}-200`),"--variant-softBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${n}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[r("--palette-focusVisible")]:l(`palette-${n}-500`),[r("--palette-background-body")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.1)`,[r("--palette-background-surface")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,[r("--palette-background-level1")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.48)`,[r("--palette-text-primary")]:l(`palette-${n}-700`),[r("--palette-text-secondary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,[r("--palette-text-tertiary")]:`rgba(${l(`palette-${n}-darkChannel`)} / 0.68)`,[r("--palette-text-icon")]:l(`palette-${n}-500`),[r("--palette-divider")]:`rgba(${l(`palette-${n}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${n}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${n}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${n}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${n}-600`),"--variant-outlinedHoverBorder":l(`palette-${n}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${n}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${n}-600`),"--variant-softBg":`rgba(${l(`palette-${n}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":l(`palette-${n}-700`),"--variant-softHoverBg":l(`palette-${n}-200`),"--variant-softActiveBg":l(`palette-${n}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${n}-${"neutral"===n?"700":"500"}`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${n}-600`),"--variant-solidActiveBg":l(`palette-${n}-600`),"--variant-solidDisabledColor":`rgba(${l(`palette-${n}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${n}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let n=(0,o.Z)(e.cssVarPrefix),r=s(e.cssVarPrefix),a={},l=t?t=>{let r=t.split("-"),o=r[1],i=r[2];return n(t,e.palette[o][i])}:n;return Object.entries(e.palette).forEach(e=>{let[t,n]=e;i(n)&&(a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[r("--palette-focusVisible")]:l(`palette-${t}-200`),[r("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[r("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[r("--palette-background-popup")]:l(`palette-${t}-700`),[r("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[r("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[r("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[r("--palette-text-primary")]:l("palette-common-white"),[r("--palette-text-secondary")]:l(`palette-${t}-200`),[r("--palette-text-tertiary")]:l(`palette-${t}-300`),[r("--palette-text-icon")]:l(`palette-${t}-200`),[r("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-100`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},44819:function(e,t,n){"use strict";var r=n(67294);let o=r.createContext(null);t.Z=o},56760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(44819);function i(){let e=r.useContext(o.Z);return e}},71927:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(87462),o=n(67294),i=n(56760),a=n(44819);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=n(85893),u=function(e){let{children:t,theme:n}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?n:function(e,t){if("function"==typeof t){let n=t(e);return n}return(0,r.Z)({},e,t)}(l,n);return null!=e&&(e[s]=null!==l),e},[n,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=n(75260),d=n(34168);let p={};function h(e,t,n,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof n){let a=n(o),l=e?(0,r.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,r.Z)({},t,{[e]:n}):(0,r.Z)({},t,n)},[e,t,n,i])}var m=function(e){let{children:t,theme:n,themeId:r}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(r,o,n),s=h(r,a,n,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},95408:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},VO:function(){return r},W8:function(){return a},k9:function(){return i}});let r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function i(e,t,n){let i=e.theme||{};if(Array.isArray(t)){let e=i.breakpoints||o;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){let e=i.breakpoints||o;return Object.keys(t).reduce((o,i)=>{if(-1!==Object.keys(e.values||r).indexOf(i)){let r=e.up(i);o[r]=n(t[i],i)}else o[i]=t[i];return o},{})}let a=n(t);return a}function a(e={}){var t;let n=null==(t=e.keys)?void 0:t.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{});return n||{}}function l(e,t){return e.reduce((e,t)=>{let n=e[t],r=!n||0===Object.keys(n).length;return r&&delete e[t],e},t)}},41796:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var r=n(71387);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let n=e.indexOf("("),o=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,r.Z)(9,e));let a=e.substring(n+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,r.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:n}=e,{values:r}=e;return -1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),`${t}(${r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return l(e)}},41512:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(63366),o=n(87462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:l=5}=e,s=(0,r.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let r="number"==typeof t[e]?t[e]:e;return`@media (min-width:${r}${n})`}function d(e){let r="number"==typeof t[e]?t[e]:e;return`@media (max-width:${r-l/100}${n})`}function p(e,r){let o=u.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:r)-l/100}${n})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let n=0===e.length?[1]:e;return n.map(e=>{let n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ")};return n.mui=!0,n}},88647:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),o=n(63366),i=n(59766),a=n(41512),l={borderRadius:4},s=n(98373),c=n(86523),u=n(44920);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:n={},palette:d={},spacing:p,shape:h={}}=e,m=(0,o.Z)(e,f),g=(0,a.Z)(n),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},d),spacing:v,shape:(0,r.Z)({},l,h)},m);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},50159:function(e,t,n){"use strict";function r(e=""){return(t,...n)=>`var(--${e?`${e}-`:""}${t}${function t(...n){if(!n.length)return"";let r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}(...n)})`}n.d(t,{Z:function(){return r}})},47730:function(e,t,n){"use strict";var r=n(59766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},98700:function(e,t,n){"use strict";n.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return m},e6:function(){return v},o3:function(){return y}});var r=n(95408),o=n(54844),i=n(47730);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,n]=e.split(""),r=a[t],o=l[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,n,r){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function m(e,t){if("string"==typeof t||null==t)return t;let n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){let n=h(e.theme);return Object.keys(e).map(o=>(function(e,t,n,o){if(-1===t.indexOf(n))return null;let i=c(n),a=e[n];return(0,r.k9)(e,a,e=>i.reduce((t,n)=>(t[n]=m(o,e),t),{}))})(e,t,o,n)).reduce(i.Z,{})}function v(e){return g(e,u)}function y(e){return g(e,f)}function b(e){return g(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(e,t,n){"use strict";n.d(t,{DW:function(){return i},Jq:function(){return a}});var r=n(14142),o=n(95408);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}t.ZP=function(e){let{prop:t,cssProperty:n=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n)?o:{[n]:o}})};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(98700),o=n(54844),i=n(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n},l=n(95408);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,r.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,m,g,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,r.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,r.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,r.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let S=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),$=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),k=(0,o.ZP)({prop:"gridAutoRows"}),j=(0,o.ZP)({prop:"gridTemplateColumns"}),P=(0,o.ZP)({prop:"gridTemplateRows"}),Z=(0,o.ZP)({prop:"gridTemplateAreas"}),_=(0,o.ZP)({prop:"gridArea"});function M(e,t){return"grey"===t?t:e}a(x,w,C,S,E,$,O,k,j,P,Z,_);let A=(0,o.ZP)({prop:"color",themeKey:"palette",transform:M}),R=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),N=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:M});function T(e){return e<=1&&0!==e?`${100*e}%`:e}a(A,R,N);let F=(0,o.ZP)({prop:"width",transform:T}),I=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var n,r;let o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||l.VO[t];return o?(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:T(t)}}):null;I.filterProps=["maxWidth"];let L=(0,o.ZP)({prop:"minWidth",transform:T}),B=(0,o.ZP)({prop:"height",transform:T}),z=(0,o.ZP)({prop:"maxHeight",transform:T}),D=(0,o.ZP)({prop:"minHeight",transform:T});(0,o.ZP)({prop:"size",cssProperty:"width",transform:T}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:T});let H=(0,o.ZP)({prop:"boxSizing"});a(F,I,L,B,z,D,H);let V={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:T},maxWidth:{style:I},minWidth:{transform:T},height:{transform:T},maxHeight:{transform:T},minHeight:{transform:T},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var U=V},86523:function(e,t,n){"use strict";var r=n(14142),o=n(47730),i=n(54844),a=n(95408),l=n(44920);let s=function(){function e(e,t,n,o){let l={[e]:t,theme:n},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(n,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let n=(0,i.Jq)(p,f,t);return(t===n&&"string"==typeof t&&(n=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c)?n:{[c]:n}})}return function t(n){var r;let{sx:i,theme:s={}}=n||{};if(!i)return null;let c=null!=(r=s.unstable_sxConfig)?r:l.Z;function u(n){let r=n;if("function"==typeof n)r=n(s);else if("object"!=typeof n)return n;if(!r)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(r).forEach(n=>{var i;let l="function"==typeof(i=r[n])?i(s):i;if(null!=l){if("object"==typeof l){if(c[n])u=(0,o.Z)(u,e(n,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[n]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)})(e,l)?u[n]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(n,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},96682:function(e,t,n){"use strict";var r=n(88647),o=n(34168);let i=(0,r.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},34168:function(e,t,n){"use strict";var r=n(67294),o=n(75260);t.Z=function(e=null){let t=r.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},37078:function(e,t){"use strict";let n;let r=e=>e,o=(n=r,{configure(e){n=e},generate:e=>n(e),reset(){n=r}});t.Z=o},14142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71387);function o(e){if("string"!=typeof e)throw Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},59766:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return function e(t,n,i={clone:!0}){let a=i.clone?(0,r.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach(r=>{"__proto__"!==r&&(o(n[r])&&r in t&&o(t[r])?a[r]=e(t[r],n[r],i):i.clone?a[r]=o(n[r])?function e(t){if(!o(t))return t;let n={};return Object.keys(t).forEach(r=>{n[r]=e(t[r])}),n}(n[r]):n[r]:a[r]=n[r])}),a}}});var r=n(87462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,r.Z)(e,t,n)}),o}},2788:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(97685),o=n(67294),i=n(73935),a=n(98924);n(80334);var l=n(42550),s=o.createContext(null),c=n(74902),u=n(8410),f=[],d=n(44958),p=n(74204),h="rc-util-locker-".concat(Date.now()),m=0,g=!1,v=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},y=o.forwardRef(function(e,t){var n,y,b,x,w=e.open,C=e.autoLock,S=e.getContainer,E=(e.debug,e.autoDestroy),$=void 0===E||E,O=e.children,k=o.useState(w),j=(0,r.Z)(k,2),P=j[0],Z=j[1],_=P||w;o.useEffect(function(){($||w)&&Z(w)},[w,$]);var M=o.useState(function(){return v(S)}),A=(0,r.Z)(M,2),R=A[0],N=A[1];o.useEffect(function(){var e=v(S);N(null!=e?e:null)});var T=function(e,t){var n=o.useState(function(){return(0,a.Z)()?document.createElement("div"):null}),i=(0,r.Z)(n,1)[0],l=o.useRef(!1),d=o.useContext(s),p=o.useState(f),h=(0,r.Z)(p,2),m=h[0],g=h[1],v=d||(l.current?void 0:function(e){g(function(t){return[e].concat((0,c.Z)(t))})});function y(){i.parentElement||document.body.appendChild(i),l.current=!0}function b(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.Z)(function(){return e?d?d(y):y():b(),b},[e]),(0,u.Z)(function(){m.length&&(m.forEach(function(e){return e()}),g(f))},[m]),[i,v]}(_&&!R,0),F=(0,r.Z)(T,2),I=F[0],L=F[1],B=null!=R?R:I;n=!!(C&&w&&(0,a.Z)()&&(B===I||B===document.body)),y=o.useState(function(){return m+=1,"".concat(h,"_").concat(m)}),b=(0,r.Z)(y,1)[0],(0,u.Z)(function(){if(n){var e=(0,p.o)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else(0,d.jL)(b);return function(){(0,d.jL)(b)}},[n,b]);var z=null;O&&(0,l.Yr)(O)&&t&&(z=O.ref);var D=(0,l.x1)(z,t);if(!_||!(0,a.Z)()||void 0===R)return null;var H=!1===B||("boolean"==typeof x&&(g=x),g),V=O;return t&&(V=o.cloneElement(O,{ref:D})),o.createElement(s.Provider,{value:L},H?V:(0,i.createPortal)(V,B))})},40228:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(1413),o=n(97685),i=n(45987),a=n(2788),l=n(94184),s=n.n(l),c=n(9220),u=n(34203),f=n(27571),d=n(66680),p=n(7028),h=n(8410),m=n(31131),g=n(67294),v=n(73935),y=g.createContext(null);function b(e){return e?Array.isArray(e)?e:[e]:[]}var x=n(5110);function w(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function C(e){return e.ownerDocument.defaultView}function S(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=C(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function $(e){return E(parseFloat(e),0)}function O(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=C(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=$(i),m=$(a),g=$(l),v=$(s),y=E(Math.round(c.width/d*1e3)/1e3),b=E(Math.round(c.height/u*1e3)/1e3),x=h*b,w=g*y,S=0,O=0;if("clip"===r){var k=$(o);S=k*y,O=k*b}var j=c.x+w-S,P=c.y+x-O,Z=j+c.width+2*S-w-v*y-(d-p-g-v)*y,_=P+c.height+2*O-x-m*b-(u-f-h-m)*b;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,Z),n.bottom=Math.min(n.bottom,_)}}),n}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function j(e,t){var n=(0,o.Z)(t||[],2),r=n[0],i=n[1];return[k(e.width,r),k(e.height,i)]}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Z(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function _(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var M=n(74902);n(56790);var A=n(75164),R=n(87462),N=n(82225),T=n(42550);function F(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=o.y,f=g.useRef();if(!n||!n.points)return null;var d={position:"absolute"};if(!1!==n.autoArrow){var p=n.points[0],h=n.points[1],m=p[0],v=p[1],y=h[0],b=h[1];m!==y&&["t","b"].includes(m)?"t"===m?d.top=0:d.bottom=0:d.top=void 0===u?0:u,v!==b&&["l","r"].includes(v)?"l"===v?d.left=0:d.right=0:d.left=void 0===c?0:c}return g.createElement("div",{ref:f,className:s()("".concat(t,"-arrow"),a),style:d},l)}function I(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(N.ZP,(0,R.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})}):null}var L=g.memo(function(e){return e.children},function(e,t){return t.cache}),B=g.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,m=e.onClick,v=e.mask,y=e.arrow,b=e.arrowPos,x=e.align,w=e.motion,C=e.maskMotion,S=e.forceRender,E=e.getPopupContainer,$=e.autoDestroy,O=e.portal,k=e.zIndex,j=e.onMouseEnter,P=e.onMouseLeave,Z=e.onPointerEnter,_=e.ready,M=e.offsetX,A=e.offsetY,B=e.offsetR,z=e.offsetB,D=e.onAlign,H=e.onPrepare,V=e.stretch,U=e.targetWidth,W=e.targetHeight,q="function"==typeof n?n():n,K=(null==E?void 0:E.length)>0,G=g.useState(!E||!K),X=(0,o.Z)(G,2),Y=X[0],J=X[1];if((0,h.Z)(function(){!Y&&K&&u&&J(!0)},[Y,K,u]),!Y)return null;var Q="auto",ee={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(_||!d){var et=x.points,en=x._experimental,er=null==en?void 0:en.dynamicInset,eo=er&&"r"===et[0][1],ei=er&&"b"===et[0][0];eo?(ee.right=B,ee.left=Q):(ee.left=M,ee.right=Q),ei?(ee.bottom=z,ee.top=Q):(ee.top=A,ee.bottom=Q)}var ea={};return V&&(V.includes("height")&&W?ea.height=W:V.includes("minHeight")&&W&&(ea.minHeight=W),V.includes("width")&&U?ea.width=U:V.includes("minWidth")&&U&&(ea.minWidth=U)),d||(ea.pointerEvents="none"),g.createElement(O,{open:S||d||p,getContainer:E&&function(){return E(u)},autoDestroy:$},g.createElement(I,{prefixCls:a,open:d,zIndex:k,mask:v,motion:C}),g.createElement(c.Z,{onResize:D,disabled:!d},function(e){return g.createElement(N.ZP,(0,R.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(a,"-hidden")},w,{onAppearPrepare:H,onEnterPrepare:H,visible:d,onVisibleChanged:function(e){var t;null==w||null===(t=w.onVisibleChanged)||void 0===t||t.call(w,e),f(e)}}),function(n,o){var c=n.className,u=n.style,f=s()(a,c,i);return g.createElement("div",{ref:(0,T.sQ)(e,t,o),className:f,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ee),ea),u),{},{boxSizing:"border-box",zIndex:k},l),onMouseEnter:j,onMouseLeave:P,onPointerEnter:Z,onClick:m},y&&g.createElement(F,{prefixCls:a,arrow:y,arrowPos:b,align:x}),g.createElement(L,{cache:!d},q))})}))}),z=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,T.Yr)(n),i=g.useCallback(function(e){(0,T.mH)(t,r?r(e):e)},[r]),a=(0,T.x1)(i,n.ref);return o?g.cloneElement(n,{ref:a}):n}),D=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return g.forwardRef(function(t,n){var a,l,$,k,R,N,T,F,I,L,H,V,U,W,q,K,G,X=t.prefixCls,Y=void 0===X?"rc-trigger-popup":X,J=t.children,Q=t.action,ee=t.showAction,et=t.hideAction,en=t.popupVisible,er=t.defaultPopupVisible,eo=t.onPopupVisibleChange,ei=t.afterPopupVisibleChange,ea=t.mouseEnterDelay,el=t.mouseLeaveDelay,es=void 0===el?.1:el,ec=t.focusDelay,eu=t.blurDelay,ef=t.mask,ed=t.maskClosable,ep=t.getPopupContainer,eh=t.forceRender,em=t.autoDestroy,eg=t.destroyPopupOnHide,ev=t.popup,ey=t.popupClassName,eb=t.popupStyle,ex=t.popupPlacement,ew=t.builtinPlacements,eC=void 0===ew?{}:ew,eS=t.popupAlign,eE=t.zIndex,e$=t.stretch,eO=t.getPopupClassNameFromAlign,ek=t.alignPoint,ej=t.onPopupClick,eP=t.onPopupAlign,eZ=t.arrow,e_=t.popupMotion,eM=t.maskMotion,eA=t.popupTransitionName,eR=t.popupAnimation,eN=t.maskTransitionName,eT=t.maskAnimation,eF=t.className,eI=t.getTriggerDOMNode,eL=(0,i.Z)(t,D),eB=g.useState(!1),ez=(0,o.Z)(eB,2),eD=ez[0],eH=ez[1];(0,h.Z)(function(){eH((0,m.Z)())},[]);var eV=g.useRef({}),eU=g.useContext(y),eW=g.useMemo(function(){return{registerSubPopup:function(e,t){eV.current[e]=t,null==eU||eU.registerSubPopup(e,t)}}},[eU]),eq=(0,p.Z)(),eK=g.useState(null),eG=(0,o.Z)(eK,2),eX=eG[0],eY=eG[1],eJ=(0,d.Z)(function(e){(0,u.S)(e)&&eX!==e&&eY(e),null==eU||eU.registerSubPopup(eq,e)}),eQ=g.useState(null),e0=(0,o.Z)(eQ,2),e1=e0[0],e2=e0[1],e6=(0,d.Z)(function(e){(0,u.S)(e)&&e1!==e&&e2(e)}),e4=g.Children.only(J),e3=(null==e4?void 0:e4.props)||{},e5={},e8=(0,d.Z)(function(e){var t,n;return(null==e1?void 0:e1.contains(e))||(null===(t=(0,f.A)(e1))||void 0===t?void 0:t.host)===e||e===e1||(null==eX?void 0:eX.contains(e))||(null===(n=(0,f.A)(eX))||void 0===n?void 0:n.host)===e||e===eX||Object.values(eV.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e7=w(Y,e_,eR,eA),e9=w(Y,eM,eT,eN),te=g.useState(er||!1),tt=(0,o.Z)(te,2),tn=tt[0],tr=tt[1],to=null!=en?en:tn,ti=(0,d.Z)(function(e){void 0===en&&tr(e)});(0,h.Z)(function(){tr(en||!1)},[en]);var ta=g.useRef(to);ta.current=to;var tl=(0,d.Z)(function(e){(0,v.flushSync)(function(){to!==e&&(ti(e),null==eo||eo(e))})}),ts=g.useRef(),tc=function(){clearTimeout(ts.current)},tu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tc(),0===t?tl(e):ts.current=setTimeout(function(){tl(e)},1e3*t)};g.useEffect(function(){return tc},[]);var tf=g.useState(!1),td=(0,o.Z)(tf,2),tp=td[0],th=td[1];(0,h.Z)(function(e){(!e||to)&&th(!0)},[to]);var tm=g.useState(null),tg=(0,o.Z)(tm,2),tv=tg[0],ty=tg[1],tb=g.useState([0,0]),tx=(0,o.Z)(tb,2),tw=tx[0],tC=tx[1],tS=function(e){tC([e.clientX,e.clientY])},tE=(a=ek?tw:e1,l=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:eC[ex]||{}}),k=($=(0,o.Z)(l,2))[0],R=$[1],N=g.useRef(0),T=g.useMemo(function(){return eX?S(eX):[]},[eX]),F=g.useRef({}),to||(F.current={}),I=(0,d.Z)(function(){if(eX&&a&&to){var e,t,n,i,l,s,c,f=eX.ownerDocument,d=C(eX).getComputedStyle(eX),p=d.width,h=d.height,m=d.position,g=eX.style.left,v=eX.style.top,y=eX.style.right,b=eX.style.bottom,w=(0,r.Z)((0,r.Z)({},eC[ex]),eS),S=f.createElement("div");if(null===(e=eX.parentElement)||void 0===e||e.appendChild(S),S.style.left="".concat(eX.offsetLeft,"px"),S.style.top="".concat(eX.offsetTop,"px"),S.style.position=m,S.style.height="".concat(eX.offsetHeight,"px"),S.style.width="".concat(eX.offsetWidth,"px"),eX.style.left="0",eX.style.top="0",eX.style.right="auto",eX.style.bottom="auto",Array.isArray(a))n={x:a[0],y:a[1],width:0,height:0};else{var $=a.getBoundingClientRect();n={x:$.x,y:$.y,width:$.width,height:$.height}}var k=eX.getBoundingClientRect(),M=f.documentElement,A=M.clientWidth,N=M.clientHeight,I=M.scrollWidth,L=M.scrollHeight,B=M.scrollTop,z=M.scrollLeft,D=k.height,H=k.width,V=n.height,U=n.width,W=w.htmlRegion,q="visible",K="visibleFirst";"scroll"!==W&&W!==K&&(W=q);var G=W===K,X=O({left:-z,top:-B,right:I-z,bottom:L-B},T),Y=O({left:0,top:0,right:A,bottom:N},T),J=W===q?Y:X,Q=G?Y:J;eX.style.left="auto",eX.style.top="auto",eX.style.right="0",eX.style.bottom="0";var ee=eX.getBoundingClientRect();eX.style.left=g,eX.style.top=v,eX.style.right=y,eX.style.bottom=b,null===(t=eX.parentElement)||void 0===t||t.removeChild(S);var et=E(Math.round(H/parseFloat(p)*1e3)/1e3),en=E(Math.round(D/parseFloat(h)*1e3)/1e3);if(!(0===et||0===en||(0,u.S)(a)&&!(0,x.Z)(a))){var er=w.offset,eo=w.targetOffset,ei=j(k,er),ea=(0,o.Z)(ei,2),el=ea[0],es=ea[1],ec=j(n,eo),eu=(0,o.Z)(ec,2),ef=eu[0],ed=eu[1];n.x-=ef,n.y-=ed;var ep=w.points||[],eh=(0,o.Z)(ep,2),em=eh[0],eg=P(eh[1]),ev=P(em),ey=Z(n,eg),eb=Z(k,ev),ew=(0,r.Z)({},w),eE=ey.x-eb.x+el,e$=ey.y-eb.y+es,eO=te(eE,e$),ek=te(eE,e$,Y),ej=Z(n,["t","l"]),eZ=Z(k,["t","l"]),e_=Z(n,["b","r"]),eM=Z(k,["b","r"]),eA=w.overflow||{},eR=eA.adjustX,eN=eA.adjustY,eT=eA.shiftX,eF=eA.shiftY,eI=function(e){return"boolean"==typeof e?e:e>=0};tt();var eL=eI(eN),eB=ev[0]===eg[0];if(eL&&"t"===ev[0]&&(l>Q.bottom||F.current.bt)){var ez=e$;eB?ez-=D-V:ez=ej.y-eM.y-es;var eD=te(eE,ez),eH=te(eE,ez,Y);eD>eO||eD===eO&&(!G||eH>=ek)?(F.current.bt=!0,e$=ez,es=-es,ew.points=[_(ev,0),_(eg,0)]):F.current.bt=!1}if(eL&&"b"===ev[0]&&(ieO||eU===eO&&(!G||eW>=ek)?(F.current.tb=!0,e$=eV,es=-es,ew.points=[_(ev,0),_(eg,0)]):F.current.tb=!1}var eq=eI(eR),eK=ev[1]===eg[1];if(eq&&"l"===ev[1]&&(c>Q.right||F.current.rl)){var eG=eE;eK?eG-=H-U:eG=ej.x-eM.x-el;var eY=te(eG,e$),eJ=te(eG,e$,Y);eY>eO||eY===eO&&(!G||eJ>=ek)?(F.current.rl=!0,eE=eG,el=-el,ew.points=[_(ev,1),_(eg,1)]):F.current.rl=!1}if(eq&&"r"===ev[1]&&(seO||e0===eO&&(!G||e1>=ek)?(F.current.lr=!0,eE=eQ,el=-el,ew.points=[_(ev,1),_(eg,1)]):F.current.lr=!1}tt();var e2=!0===eT?0:eT;"number"==typeof e2&&(sY.right&&(eE-=c-Y.right-el,n.x>Y.right-e2&&(eE+=n.x-Y.right+e2)));var e6=!0===eF?0:eF;"number"==typeof e6&&(iY.bottom&&(e$-=l-Y.bottom-es,n.y>Y.bottom-e6&&(e$+=n.y-Y.bottom+e6)));var e4=k.x+eE,e3=k.y+e$,e5=n.x,e8=n.y;null==eP||eP(eX,ew);var e7=ee.right-k.x-(eE+k.width),e9=ee.bottom-k.y-(e$+k.height);R({ready:!0,offsetX:eE/et,offsetY:e$/en,offsetR:e7/et,offsetB:e9/en,arrowX:((Math.max(e4,e5)+Math.min(e4+H,e5+U))/2-e4)/et,arrowY:((Math.max(e3,e8)+Math.min(e3+D,e8+V))/2-e3)/en,scaleX:et,scaleY:en,align:ew})}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=k.x+e,o=k.y+t,i=Math.max(r,n.left),a=Math.max(o,n.top);return Math.max(0,(Math.min(r+H,n.right)-i)*(Math.min(o+D,n.bottom)-a))}function tt(){l=(i=k.y+e$)+D,c=(s=k.x+eE)+H}}}),L=function(){R(function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})})},(0,h.Z)(L,[ex]),(0,h.Z)(function(){to||L()},[to]),[k.ready,k.offsetX,k.offsetY,k.offsetR,k.offsetB,k.arrowX,k.arrowY,k.scaleX,k.scaleY,k.align,function(){N.current+=1;var e=N.current;Promise.resolve().then(function(){N.current===e&&I()})}]),t$=(0,o.Z)(tE,11),tO=t$[0],tk=t$[1],tj=t$[2],tP=t$[3],tZ=t$[4],t_=t$[5],tM=t$[6],tA=t$[7],tR=t$[8],tN=t$[9],tT=t$[10],tF=(H=void 0===Q?"hover":Q,g.useMemo(function(){var e=b(null!=ee?ee:H),t=b(null!=et?et:H),n=new Set(e),r=new Set(t);return eD&&(n.has("hover")&&(n.delete("hover"),n.add("click")),r.has("hover")&&(r.delete("hover"),r.add("click"))),[n,r]},[eD,H,ee,et])),tI=(0,o.Z)(tF,2),tL=tI[0],tB=tI[1],tz=tL.has("click"),tD=tB.has("click")||tB.has("contextMenu"),tH=(0,d.Z)(function(){tp||tT()});V=function(){ta.current&&ek&&tD&&tu(!1)},(0,h.Z)(function(){if(to&&e1&&eX){var e=S(e1),t=S(eX),n=C(eX),r=new Set([n].concat((0,M.Z)(e),(0,M.Z)(t)));function o(){tH(),V()}return r.forEach(function(e){e.addEventListener("scroll",o,{passive:!0})}),n.addEventListener("resize",o,{passive:!0}),tH(),function(){r.forEach(function(e){e.removeEventListener("scroll",o),n.removeEventListener("resize",o)})}}},[to,e1,eX]),(0,h.Z)(function(){tH()},[tw,ex]),(0,h.Z)(function(){to&&!(null!=eC&&eC[ex])&&tH()},[JSON.stringify(eS)]);var tV=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(eC,Y,tN,ek);return s()(e,null==eO?void 0:eO(tN))},[tN,eO,eC,Y,ek]);g.useImperativeHandle(n,function(){return{forceAlign:tH}});var tU=g.useState(0),tW=(0,o.Z)(tU,2),tq=tW[0],tK=tW[1],tG=g.useState(0),tX=(0,o.Z)(tG,2),tY=tX[0],tJ=tX[1],tQ=function(){if(e$&&e1){var e=e1.getBoundingClientRect();tK(e.width),tJ(e.height)}};function t0(e,t,n,r){e5[e]=function(o){var i;null==r||r(o),tu(t,n);for(var a=arguments.length,l=Array(a>1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o-1&&(i=setTimeout(function(){d.delete(e)},t)),d.set(e,(0,o.pi)((0,o.pi)({},n),{timer:i}))},h=new Map,m=function(e,t){h.set(e,t),t.then(function(t){return h.delete(e),t}).catch(function(){h.delete(e)})},g={},v=function(e,t){g[e]&&g[e].forEach(function(e){return e(t)})},y=function(e,t){return g[e]||(g[e]=[]),g[e].push(t),function(){var n=g[e].indexOf(t);g[e].splice(n,1)}},b=function(e,t){var n=t.cacheKey,r=t.cacheTime,a=void 0===r?3e5:r,l=t.staleTime,c=void 0===l?0:l,u=t.setCache,g=t.getCache,b=(0,i.useRef)(),x=(0,i.useRef)(),w=function(e,t){u?u(t):p(e,a,t),v(e,t.data)},C=function(e,t){return(void 0===t&&(t=[]),g)?g(t):d.get(e)};return(s(function(){if(n){var t=C(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||new Date().getTime()-t.time<=c)&&(e.state.loading=!1)),b.current=y(n,function(t){e.setState({data:t})})}},[]),f(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),n)?{onBefore:function(e){var t=C(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||new Date().getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=h.get(n);return r&&r!==x.current||(r=e.apply(void 0,(0,o.ev)([],(0,o.CR)(t),!1)),x.current=r,m(n,r)),{servicePromise:r}},onSuccess:function(t,r){var o;n&&(null===(o=b.current)||void 0===o||o.call(b),w(n,{data:t,params:r,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&(null===(r=b.current)||void 0===r||r.call(b),w(n,{data:t,params:e.state.params,time:new Date().getTime()}),b.current=y(n,function(t){e.setState({data:t})}))}}:{}},x=n(23279),w=n.n(x),C=function(e,t){var n=t.debounceWait,r=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,s=(0,i.useRef)(),c=(0,i.useMemo)(function(){var e={};return void 0!==r&&(e.leading=r),void 0!==a&&(e.trailing=a),void 0!==l&&(e.maxWait=l),e},[r,a,l]);return((0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return s.current=w()(function(e){e()},n,c),e.runAsync=function(){for(var e=[],n=0;n-1&&j.splice(e,1)})}return function(){s()}},[n,a]),f(function(){s()}),{}},_=function(e,t){var n=t.retryInterval,r=t.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),l=(0,i.useRef)(!1);return r?{onBefore:function(){l.current||(a.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===r||a.current<=r){var t=null!=n?n:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){l.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},M=n(23493),A=n.n(M),R=function(e,t){var n=t.throttleWait,r=t.throttleLeading,a=t.throttleTrailing,l=(0,i.useRef)(),s={};return(void 0!==r&&(s.leading=r),void 0!==a&&(s.trailing=a),(0,i.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return l.current=A()(function(e){e()},n,s),e.runAsync=function(){for(var e=[],n=0;n{if(g(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var r;let o=n?`.${n(y)}`:`.${y}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>u.current});return i&&(b=i(b)),o.createElement("div",{ref:u,style:{paddingBottom:f,position:"relative",minWidth:p}},o.createElement(e,Object.assign({},b)))})}},98787:function(e,t,n){"use strict";n.d(t,{o2:function(){return l},yT:function(){return s}});var r=n(74902),o=n(8796);let i=o.i.map(e=>`${e}-inverse`),a=["success","processing","error","default","warning"];function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,r.Z)(i),(0,r.Z)(o.i)).includes(e):o.i.includes(e)}function s(e){return a.includes(e)}},69760:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(97937),o=n(67294);function i(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(r.Z,null),a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l="boolean"==typeof e?e:void 0===t?!!a:!1!==t&&null!==t;if(!l)return[!1,null];let s="boolean"==typeof t||null==t?i:t;return[!0,n?n(s):s]}},98082:function(e,t,n){"use strict";var r=n(67294),o=n(31808);t.Z=()=>{let[e,t]=r.useState(!1);return r.useEffect(()=>{t((0,o.fk)())},[]),e}},33603:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});let r=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${e}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},80636:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(77786);let o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function l(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:l,offset:s,borderRadius:c,visibleFirst:u}=e,f=t/2,d={};return Object.keys(o).forEach(e=>{let p=l&&i[e]||o[e],h=Object.assign(Object.assign({},p),{offset:[0,0]});switch(d[e]=h,a.has(e)&&(h.autoArrow=!1),e){case"top":case"topLeft":case"topRight":h.offset[1]=-f-s;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=f+s;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-f-s;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=f+s}let m=(0,r.fS)({contentRadius:c,limitVerticalRadius:!0});if(l)switch(e){case"topLeft":case"bottomLeft":h.offset[0]=-m.dropdownArrowOffset-f;break;case"topRight":case"bottomRight":h.offset[0]=m.dropdownArrowOffset+f;break;case"leftTop":case"rightTop":h.offset[1]=-m.dropdownArrowOffset-f;break;case"leftBottom":case"rightBottom":h.offset[1]=m.dropdownArrowOffset+f}h.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};let o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}let a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),u&&(h.htmlRegion="visibleFirst")}),d}},96159:function(e,t,n){"use strict";n.d(t,{M2:function(){return a},Tm:function(){return s},l$:function(){return i},wm:function(){return l}});var r,o=n(67294);let{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function s(e,t){return l(e,e,t)}},31808:function(e,t,n){"use strict";let r;n.d(t,{fk:function(){return a},jD:function(){return i}});var o=n(98924);let i=()=>(0,o.Z)()&&window.document.documentElement,a=()=>{if(!i())return!1;if(void 0!==r)return r;let e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));let t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),r=1===e.scrollHeight,document.body.removeChild(t),r}},45353:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(94184),o=n.n(r),i=n(42550),a=n(5110),l=n(67294),s=n(53124),c=n(96159),u=n(67968);let f=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow 0.3s ${e.motionEaseInOut},opacity 0.35s ${e.motionEaseInOut}`}}}}};var d=(0,u.Z)("Wave",e=>[f(e)]),p=n(66680),h=n(75164),m=n(82225),g=n(38135);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}var y=n(17415);function b(e){return Number.isNaN(e)?0:e}let x=e=>{let{className:t,target:n,component:r}=e,i=l.useRef(null),[a,s]=l.useState(null),[c,u]=l.useState([]),[f,d]=l.useState(0),[p,x]=l.useState(0),[w,C]=l.useState(0),[S,E]=l.useState(0),[$,O]=l.useState(!1),k={left:f,top:p,width:w,height:S,borderRadius:c.map(e=>`${e}px`).join(" ")};function j(){let e=getComputedStyle(n);s(function(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return v(t)?t:v(n)?n:v(r)?r:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;d(t?n.offsetLeft:b(-parseFloat(r))),x(t?n.offsetTop:b(-parseFloat(o))),C(n.offsetWidth),E(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>b(parseFloat(e))))}if(a&&(k["--wave-color"]=a),l.useEffect(()=>{if(n){let e;let t=(0,h.Z)(()=>{j(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(j)).observe(n),()=>{h.Z.cancel(t),null==e||e.disconnect()}}},[]),!$)return null;let P=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(y.A));return l.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){let e=null===(n=i.current)||void 0===n?void 0:n.parentElement;(0,g.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return l.createElement("div",{ref:i,className:o()(t,{"wave-quick":P},n),style:k})})};var w=(e,t)=>{var n;let{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;let o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),(0,g.s)(l.createElement(x,Object.assign({},t,{target:e})),o)},C=n(25976),S=e=>{let{children:t,disabled:n,component:r}=e,{getPrefixCls:u}=(0,l.useContext)(s.E_),f=(0,l.useRef)(null),m=u("wave"),[,g]=d(m),v=function(e,t,n){let{wave:r}=l.useContext(s.E_),[,o,i]=(0,C.Z)(),a=(0,p.Z)(a=>{let l=e.current;if((null==r?void 0:r.disabled)||!l)return;let s=l.querySelector(`.${y.A}`)||l,{showEffect:c}=r||{};(c||w)(s,{className:t,token:o,component:n,event:a,hashId:i})}),c=l.useRef();return e=>{h.Z.cancel(c.current),c.current=(0,h.Z)(()=>{a(e)})}}(f,o()(m,g),r);if(l.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||n)return;let t=t=>{!(0,a.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!l.isValidElement(t))return null!=t?t:null;let b=(0,i.Yr)(t)?(0,i.sQ)(t.ref,f):f;return(0,c.Tm)(t,{ref:b})}},17415:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});let r="ant-wave-target"},4026:function(e,t,n){"use strict";n.d(t,{n:function(){return eo},Z:function(){return ea}});var r=n(67294),o=n(94184),i=n.n(o),a=n(98423),l=n(42550),s=n(45353),c=n(53124),u=n(98866),f=n(98675),d=n(4173),p=n(25976),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m=r.createContext(void 0);var g=n(96159);let v=/^[\u4e00-\u9fa5]{2}$/,y=v.test.bind(v);function b(e){return"string"==typeof e}function x(e){return"text"===e||"link"===e}let w=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:s,style:o},a)});var C=n(50888),S=n(82225);let E=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:l}=e,s=i()(`${n}-loading-icon`,o);return r.createElement(w,{prefixCls:n,className:s,style:a,ref:t},r.createElement(C.Z,{className:l}))}),$=()=>({width:0,opacity:0,transform:"scale(0)"}),O=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var k=e=>{let{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e;return o?r.createElement(E,{prefixCls:t,className:i,style:a}):r.createElement(S.ZP,{visible:!!n,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:$,onAppearActive:O,onEnterStart:$,onEnterActive:O,onLeaveStart:O,onLeaveActive:$},(e,n)=>{let{className:o,style:l}=e;return r.createElement(E,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})})},j=n(14747),P=n(45503),Z=n(67968);let _=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var M=e=>{let{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},_(`${t}-primary`,o),_(`${t}-danger`,i)]}};let R=e=>{let{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,j.Qy)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},M=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),N=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),T=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),F=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),I=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},M(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),L=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},F(e))}),B=e=>Object.assign({},L(e)),z=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),D=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),M(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),I(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},M(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),I(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),L(e))}),H=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),M(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),I(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},M(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),I(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),L(e))}),V=e=>Object.assign(Object.assign({},D(e)),{borderStyle:"dashed"}),U=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},M(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),z(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},M(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),z(e))}),W=e=>Object.assign(Object.assign(Object.assign({},M(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),z(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},z(e)),M(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),q=e=>{let{componentCls:t}=e;return{[`${t}-default`]:D(e),[`${t}-primary`]:H(e),[`${t}-dashed`]:V(e),[`${t}-link`]:U(e),[`${t}-text`]:W(e),[`${t}-ghost`]:I(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*i)/2-a)}px ${s-a}px`,borderRadius:l,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:N(e)},{[`${n}${n}-round${t}`]:T(e)}]},G=e=>K(e),X=e=>{let t=(0,P.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return K(t,`${e.componentCls}-sm`)},Y=e=>{let t=(0,P.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return K(t,`${e.componentCls}-lg`)},J=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q=e=>{let{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=(0,P.TS)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return r};var ee=(0,Z.Z)("Button",e=>{let t=Q(e);return[R(t),X(t),G(t),Y(t),J(t),q(t),A(t)]}),et=n(80110),en=(0,Z.b)(["Button","compact"],e=>{let t=Q(e);return[(0,et.c)(t),function(e){var t;let n=`${e.componentCls}-compact-vertical`;return{[n]:Object.assign(Object.assign({},{[`&-item:not(${n}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t)]}),er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eo(e){return"danger"===e?{danger:!0}:{type:e}}let ei=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:p=!1,prefixCls:h,type:v="default",danger:C,shape:S="default",size:E,styles:$,disabled:O,className:j,rootClassName:P,children:Z,icon:_,ghost:A=!1,block:R=!1,htmlType:M="button",classNames:N,style:T={}}=e,F=er(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:I,autoInsertSpaceInButton:L,direction:B,button:z}=(0,r.useContext)(c.E_),D=I("btn",h),[H,V]=ee(D),U=(0,r.useContext)(u.Z),W=null!=O?O:U,q=(0,r.useContext)(m),K=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay,n=!Number.isNaN(t)&&"number"==typeof t;return{loading:!1,delay:n?t:0}}return{loading:!!e,delay:0}})(p),[p]),[G,X]=(0,r.useState)(K.loading),[Y,J]=(0,r.useState)(!1),Q=(0,r.createRef)(),et=(0,l.sQ)(t,Q),eo=1===r.Children.count(Z)&&!_&&!x(v);(0,r.useEffect)(()=>{let e=null;return K.delay>0?e=setTimeout(()=>{e=null,X(!0)},K.delay):X(K.loading),function(){e&&(clearTimeout(e),e=null)}},[K]),(0,r.useEffect)(()=>{if(!et||!et.current||!1===L)return;let e=et.current.textContent;eo&&y(e)?Y||J(!0):Y&&J(!1)},[et]);let ei=t=>{let{onClick:n}=e;if(G||W){t.preventDefault();return}null==n||n(t)},ea=!1!==L,{compactSize:el,compactItemClassnames:es}=(0,d.ri)(D,B),ec=(0,f.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=E?E:el)&&void 0!==t?t:q)&&void 0!==n?n:e}),eu=ec&&({large:"lg",small:"sm",middle:void 0})[ec]||"",ef=G?"loading":_,ed=(0,a.Z)(F,["navigate"]),ep=i()(D,V,{[`${D}-${S}`]:"default"!==S&&S,[`${D}-${v}`]:v,[`${D}-${eu}`]:eu,[`${D}-icon-only`]:!Z&&0!==Z&&!!ef,[`${D}-background-ghost`]:A&&!x(v),[`${D}-loading`]:G,[`${D}-two-chinese-chars`]:Y&&ea&&!G,[`${D}-block`]:R,[`${D}-dangerous`]:!!C,[`${D}-rtl`]:"rtl"===B},es,j,P,null==z?void 0:z.className),eh=Object.assign(Object.assign({},null==z?void 0:z.style),T),em=i()(null==N?void 0:N.icon,null===(n=null==z?void 0:z.classNames)||void 0===n?void 0:n.icon),eg=Object.assign(Object.assign({},(null==$?void 0:$.icon)||{}),(null===(o=null==z?void 0:z.styles)||void 0===o?void 0:o.icon)||{}),ev=_&&!G?r.createElement(w,{prefixCls:D,className:em,style:eg},_):r.createElement(k,{existIcon:!!_,prefixCls:D,loading:!!G}),ey=Z||0===Z?function(e,t){let n=!1,o=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r}),r.Children.map(o,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&b(e.type)&&y(e.props.children)?(0,g.Tm)(e,{children:e.props.children.split("").join(n)}):b(e)?y(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,g.M2)(e)?r.createElement("span",null,e):e})(e,t))}(Z,eo&&ea):null;if(void 0!==ed.href)return H(r.createElement("a",Object.assign({},ed,{className:i()(ep,{[`${D}-disabled`]:W}),style:eh,onClick:ei,ref:et}),ev,ey));let eb=r.createElement("button",Object.assign({},F,{type:M,className:ep,style:eh,onClick:ei,disabled:W,ref:et}),ev,ey,es&&r.createElement(en,{key:"compact",prefixCls:D}));return x(v)||(eb=r.createElement(s.Z,{component:"Button",disabled:!!G},eb)),H(eb)});ei.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:a,className:l}=e,s=h(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,f]=(0,p.Z)(),d="";switch(a){case"large":d="lg";break;case"small":d="sm"}let g=i()(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:"rtl"===n},l,f);return r.createElement(m.Provider,{value:a},r.createElement("div",Object.assign({},s,{className:g})))},ei.__ANT_BUTTON=!0;var ea=ei},71577:function(e,t,n){"use strict";var r=n(4026);t.ZP=r.Z},98866:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(67294);let o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)};t.Z=o},97647:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(67294);let o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)};t.Z=o},53124:function(e,t,n){"use strict";n.d(t,{E_:function(){return i},oR:function(){return o}});var r=n(67294);let o="anticon",i=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},98675:function(e,t,n){"use strict";var r=n(67294),o=n(97647);t.Z=e=>{let t=r.useContext(o.Z),n=r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return n}},46735:function(e,t,n){"use strict";let r,o,i;n.d(t,{ZP:function(){return I},w6:function(){return N}});var a=n(23183),l=n(63017),s=n(56982),c=n(8880),u=n(67294),f=n(37920),d=n(83008),p=n(76745),h=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>{let e=(0,d.f)(t&&t.Modal);return e},[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},n)},m=n(88526),g=n(33083),v=n(2790),y=n(53124),b=n(16397),x=n(10274),w=n(98924),C=n(44958);let S=`-ant-${Date.now()}-${Math.random()}`;var E=n(98866),$=n(97647),O=n(91881),k=n(82225),j=n(25976);function P(e){let{children:t}=e,[,n]=(0,j.Z)(),{motion:r}=n,o=u.useRef(!1);return(o.current=o.current||!1===r,o.current)?u.createElement(k.zt,{motion:r},t):t}var Z=n(53269),_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let A=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function R(){return r||"ant"}function M(){return o||y.oR}let N=()=>({getPrefixCls:(e,t)=>t||(e?`${R()}-${e}`:R()),getIconPrefixCls:M,getRootPrefixCls:()=>r||R(),getTheme:()=>i}),T=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:d,locale:p,componentSize:b,direction:x,space:w,virtual:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:k,popupOverflow:j,legacyLocale:R,parentContext:M,iconPrefixCls:N,theme:T,componentDisabled:F,segmented:I,statistic:L,spin:B,calendar:z,carousel:D,cascader:H,collapse:V,typography:U,checkbox:W,descriptions:q,divider:K,drawer:G,skeleton:X,steps:Y,image:J,layout:Q,list:ee,mentions:et,modal:en,progress:er,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,input:ec,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:em,avatar:eg,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:e$,tree:eO,colorPicker:ek,datePicker:ej,wave:eP}=e,eZ=u.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||M.getPrefixCls("");return t?`${o}-${t}`:o},[M.getPrefixCls,e.prefixCls]),e_=N||M.iconPrefixCls||y.oR,eA=e_!==M.iconPrefixCls,eR=n||M.csp,eM=(0,Z.Z)(e_,eR),eN=function(e,t){let n=e||{},r=!1!==n.inherit&&t?t:g.u_;return(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,O.Z)(e,r,!0)}))}(T,M.theme),eT={csp:eR,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:p||R,direction:x,space:w,virtual:C,popupMatchSelectWidth:null!=k?k:S,popupOverflow:j,getPrefixCls:eZ,iconPrefixCls:e_,theme:eN,segmented:I,statistic:L,spin:B,calendar:z,carousel:D,cascader:H,collapse:V,typography:U,checkbox:W,descriptions:q,divider:K,drawer:G,skeleton:X,steps:Y,image:J,input:ec,layout:Q,list:ee,mentions:et,modal:en,progress:er,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:em,avatar:eg,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:e$,tree:eO,colorPicker:ek,datePicker:ej,wave:eP},eF=Object.assign({},M);Object.keys(eT).forEach(e=>{void 0!==eT[e]&&(eF[e]=eT[e])}),A.forEach(t=>{let n=e[t];n&&(eF[t]=n)});let eI=(0,s.Z)(()=>eF,eF,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eL=u.useMemo(()=>({prefixCls:e_,csp:eR}),[e_,eR]),eB=eA?eM(t):t,ez=u.useMemo(()=>{var e,t,n,r;return(0,c.T)((null===(e=m.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eI.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eI.form)||void 0===r?void 0:r.validateMessages)||{},(null==d?void 0:d.validateMessages)||{})},[eI,null==d?void 0:d.validateMessages]);Object.keys(ez).length>0&&(eB=u.createElement(f.Z.Provider,{value:ez},t)),p&&(eB=u.createElement(h,{locale:p,_ANT_MARK__:"internalMark"},eB)),(e_||eR)&&(eB=u.createElement(l.Z.Provider,{value:eL},eB)),b&&(eB=u.createElement($.q,{size:b},eB)),eB=u.createElement(P,null,eB);let eD=u.useMemo(()=>{let e=eN||{},{algorithm:t,token:n,components:r}=e,o=_(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):g.uH,l={};return Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,a.jG)(r.algorithm)),delete r.algorithm),l[t]=r}),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},v.Z),n),components:l})},[eN]);return T&&(eB=u.createElement(g.Mj.Provider,{value:eD},eB)),void 0!==F&&(eB=u.createElement(E.n,{disabled:F},eB)),u.createElement(y.E_.Provider,{value:eI},eB)},F=e=>{let t=u.useContext(y.E_),n=u.useContext(p.Z);return u.createElement(T,Object.assign({parentContext:t,legacyLocale:n},e))};F.ConfigContext=y.E_,F.SizeContext=$.Z,F.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:a}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.generate)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.generate)(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},_(`${t}-primary`,o),_(`${t}-danger`,i)]}};let A=e=>{let{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,j.Qy)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},R=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),N=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),T=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),F=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),I=(e,t,n,r,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},R(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),L=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},F(e))}),B=e=>Object.assign({},L(e)),z=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),D=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),R(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),I(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},R(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),I(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),L(e))}),H=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),R(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),I(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},R(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),I(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),L(e))}),V=e=>Object.assign(Object.assign({},D(e)),{borderStyle:"dashed"}),U=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},R(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),z(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},R(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),z(e))}),W=e=>Object.assign(Object.assign(Object.assign({},R(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),z(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},z(e)),R(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),q=e=>{let{componentCls:t}=e;return{[`${t}-default`]:D(e),[`${t}-primary`]:H(e),[`${t}-dashed`]:V(e),[`${t}-link`]:U(e),[`${t}-text`]:W(e),[`${t}-ghost`]:I(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,u=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:r,padding:`${Math.max(0,(r-o*i)/2-a)}px ${s-a}px`,borderRadius:l,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:N(e)},{[`${n}${n}-round${t}`]:T(e)}]},G=e=>K(e),X=e=>{let t=(0,P.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return K(t,`${e.componentCls}-sm`)},Y=e=>{let t=(0,P.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return K(t,`${e.componentCls}-lg`)},J=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Q=e=>{let{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=(0,P.TS)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return r};var ee=(0,Z.Z)("Button",e=>{let t=Q(e);return[A(t),X(t),G(t),Y(t),J(t),q(t),M(t)]}),et=n(80110),en=(0,Z.b)(["Button","compact"],e=>{let t=Q(e);return[(0,et.c)(t),function(e){var t;let n=`${e.componentCls}-compact-vertical`;return{[n]:Object.assign(Object.assign({},{[`&-item:not(${n}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t)]}),er=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function eo(e){return"danger"===e?{danger:!0}:{type:e}}let ei=(0,r.forwardRef)((e,t)=>{var n,o;let{loading:p=!1,prefixCls:h,type:v="default",danger:C,shape:S="default",size:E,styles:$,disabled:O,className:j,rootClassName:P,children:Z,icon:_,ghost:M=!1,block:A=!1,htmlType:R="button",classNames:N,style:T={}}=e,F=er(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:I,autoInsertSpaceInButton:L,direction:B,button:z}=(0,r.useContext)(c.E_),D=I("btn",h),[H,V]=ee(D),U=(0,r.useContext)(u.Z),W=null!=O?O:U,q=(0,r.useContext)(m),K=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay,n=!Number.isNaN(t)&&"number"==typeof t;return{loading:!1,delay:n?t:0}}return{loading:!!e,delay:0}})(p),[p]),[G,X]=(0,r.useState)(K.loading),[Y,J]=(0,r.useState)(!1),Q=(0,r.createRef)(),et=(0,l.sQ)(t,Q),eo=1===r.Children.count(Z)&&!_&&!x(v);(0,r.useEffect)(()=>{let e=null;return K.delay>0?e=setTimeout(()=>{e=null,X(!0)},K.delay):X(K.loading),function(){e&&(clearTimeout(e),e=null)}},[K]),(0,r.useEffect)(()=>{if(!et||!et.current||!1===L)return;let e=et.current.textContent;eo&&y(e)?Y||J(!0):Y&&J(!1)},[et]);let ei=t=>{let{onClick:n}=e;if(G||W){t.preventDefault();return}null==n||n(t)},ea=!1!==L,{compactSize:el,compactItemClassnames:es}=(0,d.ri)(D,B),ec=(0,f.Z)(e=>{var t,n;return null!==(n=null!==(t=null!=E?E:el)&&void 0!==t?t:q)&&void 0!==n?n:e}),eu=ec&&({large:"lg",small:"sm",middle:void 0})[ec]||"",ef=G?"loading":_,ed=(0,a.Z)(F,["navigate"]),ep=i()(D,V,{[`${D}-${S}`]:"default"!==S&&S,[`${D}-${v}`]:v,[`${D}-${eu}`]:eu,[`${D}-icon-only`]:!Z&&0!==Z&&!!ef,[`${D}-background-ghost`]:M&&!x(v),[`${D}-loading`]:G,[`${D}-two-chinese-chars`]:Y&&ea&&!G,[`${D}-block`]:A,[`${D}-dangerous`]:!!C,[`${D}-rtl`]:"rtl"===B},es,j,P,null==z?void 0:z.className),eh=Object.assign(Object.assign({},null==z?void 0:z.style),T),em=i()(null==N?void 0:N.icon,null===(n=null==z?void 0:z.classNames)||void 0===n?void 0:n.icon),eg=Object.assign(Object.assign({},(null==$?void 0:$.icon)||{}),(null===(o=null==z?void 0:z.styles)||void 0===o?void 0:o.icon)||{}),ev=_&&!G?r.createElement(w,{prefixCls:D,className:em,style:eg},_):r.createElement(k,{existIcon:!!_,prefixCls:D,loading:!!G}),ey=Z||0===Z?function(e,t){let n=!1,o=[];return r.Children.forEach(e,e=>{let t=typeof e,r="string"===t||"number"===t;if(n&&r){let t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r}),r.Children.map(o,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&b(e.type)&&y(e.props.children)?(0,g.Tm)(e,{children:e.props.children.split("").join(n)}):b(e)?y(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,g.M2)(e)?r.createElement("span",null,e):e})(e,t))}(Z,eo&&ea):null;if(void 0!==ed.href)return H(r.createElement("a",Object.assign({},ed,{className:i()(ep,{[`${D}-disabled`]:W}),style:eh,onClick:ei,ref:et}),ev,ey));let eb=r.createElement("button",Object.assign({},F,{type:R,className:ep,style:eh,onClick:ei,disabled:W,ref:et}),ev,ey,es&&r.createElement(en,{key:"compact",prefixCls:D}));return x(v)||(eb=r.createElement(s.Z,{component:"Button",disabled:!!G},eb)),H(eb)});ei.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:a,className:l}=e,s=h(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,f]=(0,p.Z)(),d="";switch(a){case"large":d="lg";break;case"small":d="sm"}let g=i()(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:"rtl"===n},l,f);return r.createElement(m.Provider,{value:a},r.createElement("div",Object.assign({},s,{className:g})))},ei.__ANT_BUTTON=!0;var ea=ei},71577:function(e,t,n){"use strict";var r=n(4026);t.ZP=r.Z},98866:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(67294);let o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)};t.Z=o},97647:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(67294);let o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)};t.Z=o},53124:function(e,t,n){"use strict";n.d(t,{E_:function(){return i},oR:function(){return o}});var r=n(67294);let o="anticon",i=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},98675:function(e,t,n){"use strict";var r=n(67294),o=n(97647);t.Z=e=>{let t=r.useContext(o.Z),n=r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return n}},46735:function(e,t,n){"use strict";let r,o,i;n.d(t,{ZP:function(){return I},w6:function(){return N}});var a=n(23183),l=n(63017),s=n(56982),c=n(8880),u=n(67294),f=n(37920),d=n(83008),p=n(76745),h=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>{let e=(0,d.f)(t&&t.Modal);return e},[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},n)},m=n(88526),g=n(33083),v=n(2790),y=n(53124),b=n(16397),x=n(10274),w=n(98924),C=n(44958);let S=`-ant-${Date.now()}-${Math.random()}`;var E=n(98866),$=n(97647),O=n(91881),k=n(82225),j=n(25976);function P(e){let{children:t}=e,[,n]=(0,j.Z)(),{motion:r}=n,o=u.useRef(!1);return(o.current=o.current||!1===r,o.current)?u.createElement(k.zt,{motion:r},t):t}var Z=n(53269),_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let M=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function A(){return r||"ant"}function R(){return o||y.oR}let N=()=>({getPrefixCls:(e,t)=>t||(e?`${A()}-${e}`:A()),getIconPrefixCls:R,getRootPrefixCls:()=>r||A(),getTheme:()=>i}),T=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:d,locale:p,componentSize:b,direction:x,space:w,virtual:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:k,popupOverflow:j,legacyLocale:A,parentContext:R,iconPrefixCls:N,theme:T,componentDisabled:F,segmented:I,statistic:L,spin:B,calendar:z,carousel:D,cascader:H,collapse:V,typography:U,checkbox:W,descriptions:q,divider:K,drawer:G,skeleton:X,steps:Y,image:J,layout:Q,list:ee,mentions:et,modal:en,progress:er,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,input:ec,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:em,avatar:eg,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:e$,tree:eO,colorPicker:ek,datePicker:ej,wave:eP}=e,eZ=u.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||R.getPrefixCls("");return t?`${o}-${t}`:o},[R.getPrefixCls,e.prefixCls]),e_=N||R.iconPrefixCls||y.oR,eM=e_!==R.iconPrefixCls,eA=n||R.csp,eR=(0,Z.Z)(e_,eA),eN=function(e,t){let n=e||{},r=!1!==n.inherit&&t?t:g.u_;return(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,O.Z)(e,r,!0)}))}(T,R.theme),eT={csp:eA,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:p||A,direction:x,space:w,virtual:C,popupMatchSelectWidth:null!=k?k:S,popupOverflow:j,getPrefixCls:eZ,iconPrefixCls:e_,theme:eN,segmented:I,statistic:L,spin:B,calendar:z,carousel:D,cascader:H,collapse:V,typography:U,checkbox:W,descriptions:q,divider:K,drawer:G,skeleton:X,steps:Y,image:J,input:ec,layout:Q,list:ee,mentions:et,modal:en,progress:er,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:em,avatar:eg,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:e$,tree:eO,colorPicker:ek,datePicker:ej,wave:eP},eF=Object.assign({},R);Object.keys(eT).forEach(e=>{void 0!==eT[e]&&(eF[e]=eT[e])}),M.forEach(t=>{let n=e[t];n&&(eF[t]=n)});let eI=(0,s.Z)(()=>eF,eF,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),eL=u.useMemo(()=>({prefixCls:e_,csp:eA}),[e_,eA]),eB=eM?eR(t):t,ez=u.useMemo(()=>{var e,t,n,r;return(0,c.T)((null===(e=m.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=eI.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=eI.form)||void 0===r?void 0:r.validateMessages)||{},(null==d?void 0:d.validateMessages)||{})},[eI,null==d?void 0:d.validateMessages]);Object.keys(ez).length>0&&(eB=u.createElement(f.Z.Provider,{value:ez},t)),p&&(eB=u.createElement(h,{locale:p,_ANT_MARK__:"internalMark"},eB)),(e_||eA)&&(eB=u.createElement(l.Z.Provider,{value:eL},eB)),b&&(eB=u.createElement($.q,{size:b},eB)),eB=u.createElement(P,null,eB);let eD=u.useMemo(()=>{let e=eN||{},{algorithm:t,token:n,components:r}=e,o=_(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):g.uH,l={};return Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=i:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,a.jG)(r.algorithm)),delete r.algorithm),l[t]=r}),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},v.Z),n),components:l})},[eN]);return T&&(eB=u.createElement(g.Mj.Provider,{value:eD},eB)),void 0!==F&&(eB=u.createElement(E.n,{disabled:F},eB)),u.createElement(y.E_.Provider,{value:eI},eB)},F=e=>{let t=u.useContext(y.E_),n=u.useContext(p.Z);return u.createElement(T,Object.assign({parentContext:t,legacyLocale:n},e))};F.ConfigContext=y.E_,F.SizeContext=$.Z,F.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:a}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.generate)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.generate)(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return` :root { ${i.join("\n")} } - `.trim()}(e,t);(0,w.Z)()&&(0,C.hq)(n,`${S}-dynamic-theme`)}(R(),a):i=a)},F.useConfig=function(){let e=(0,u.useContext)(E.Z),t=(0,u.useContext)($.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty(F,"SizeContext",{get:()=>$.Z});var I=F},1142:function(e,t,n){"use strict";var r=n(18073),o=n(94184),i=n.n(o),a=n(29171),l=n(66680),s=n(21770),c=n(98423),u=n(67294),f=n(8745),d=n(80636),p=n(96159),h=n(53124),m=n(82610),g=n(76529),v=n(9361),y=n(66748);let b=e=>{let t;let{menu:n,arrow:o,prefixCls:f,children:b,trigger:x,disabled:w,dropdownRender:C,getPopupContainer:S,overlayClassName:E,rootClassName:$,open:O,onOpenChange:k,visible:j,onVisibleChange:P,mouseEnterDelay:Z=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:A=!0,placement:R="",overlay:M,transitionName:N}=e,{getPopupContainer:T,getPrefixCls:F,direction:I}=u.useContext(h.E_),L=u.useMemo(()=>{let e=F();return void 0!==N?N:R.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[F,R,N]),B=u.useMemo(()=>{if(!R)return"rtl"===I?"bottomRight":"bottomLeft";if(R.includes("Center")){let e=R.slice(0,R.indexOf("Center"));return e}return R},[R,I]),z=F("dropdown",f),[D,H]=(0,y.Z)(z),{token:V}=v.default.useToken(),U=u.Children.only(b),W=(0,p.Tm)(U,{className:i()(`${z}-trigger`,{[`${z}-rtl`]:"rtl"===I},U.props.className),disabled:w}),q=w?[]:x;q&&q.includes("contextMenu")&&(t=!0);let[K,G]=(0,s.Z)(!1,{value:null!=O?O:j}),X=(0,l.Z)(e=>{null==k||k(e),null==P||P(e),G(e)}),Y=i()(E,$,H,{[`${z}-rtl`]:"rtl"===I}),J=(0,d.Z)({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:A,offset:V.marginXXS,arrowWidth:o?V.sizePopupArrow:0,borderRadius:V.borderRadius}),Q=u.useCallback(()=>{G(!1)},[]);return D(u.createElement(a.Z,Object.assign({alignPoint:t},(0,c.Z)(e,["rootClassName"]),{mouseEnterDelay:Z,mouseLeaveDelay:_,visible:K,builtinPlacements:J,arrow:!!o,overlayClassName:Y,prefixCls:z,getPopupContainer:S||T,transitionName:L,trigger:q,overlay:()=>{let e;return e=(null==n?void 0:n.items)?u.createElement(m.Z,Object.assign({},n)):"function"==typeof M?M():M,C&&(e=C(e)),e=u.Children.only("string"==typeof e?u.createElement("span",null,e):e),u.createElement(g.J,{prefixCls:`${z}-menu`,expandIcon:u.createElement("span",{className:`${z}-menu-submenu-arrow`},u.createElement(r.Z,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:e=>{let{mode:t}=e}},e)},placement:B,onVisibleChange:X}),W))},x=(0,f.Z)(b,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});b._InternalPanelDoNotUseOrYouWillBeFired=e=>u.createElement(x,Object.assign({},e),u.createElement("span",null)),t.Z=b},85418:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(1142),o=n(94184),i=n.n(o),a=n(67294),l=n(89705),s=n(71577),c=n(53124),u=n(42075),f=n(4173),d=n(66748),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:o}=a.useContext(c.E_),{prefixCls:h,type:m="default",danger:g,disabled:v,loading:y,onClick:b,htmlType:x,children:w,className:C,menu:S,arrow:E,autoFocus:$,overlay:O,trigger:k,align:j,open:P,onOpenChange:Z,placement:_,getPopupContainer:A,href:R,icon:M=a.createElement(l.Z,null),title:N,buttonsRender:T=e=>e,mouseEnterDelay:F,mouseLeaveDelay:I,overlayClassName:L,overlayStyle:B,destroyPopupOnHide:z,dropdownRender:D}=e,H=p(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),V=n("dropdown",h),U=`${V}-button`,[W,q]=(0,d.Z)(V),K={menu:S,arrow:E,autoFocus:$,align:j,disabled:v,trigger:v?[]:k,onOpenChange:Z,getPopupContainer:A||t,mouseEnterDelay:F,mouseLeaveDelay:I,overlayClassName:L,overlayStyle:B,destroyPopupOnHide:z,dropdownRender:D},{compactSize:G,compactItemClassnames:X}=(0,f.ri)(V,o),Y=i()(U,X,C,q);"overlay"in e&&(K.overlay=O),"open"in e&&(K.open=P),"placement"in e?K.placement=_:K.placement="rtl"===o?"bottomLeft":"bottomRight";let J=a.createElement(s.ZP,{type:m,danger:g,disabled:v,loading:y,onClick:b,htmlType:x,href:R,title:N},w),Q=a.createElement(s.ZP,{type:m,danger:g,icon:M}),[ee,et]=T([J,Q]);return W(a.createElement(u.Z.Compact,Object.assign({className:Y,size:G,block:!0},H),ee,a.createElement(r.Z,Object.assign({},K),et)))};h.__ANT_BUTTON=!0;let m=r.Z;m.Button=h;var g=m},66748:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(14747),o=n(67771),i=n(33297),a=n(50438),l=n(77786),s=n(67968),c=n(45503),u=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}};let f=e=>{let{componentCls:t,menuCls:n,zIndexPopup:s,dropdownArrowDistance:c,sizePopupArrow:u,antCls:f,iconCls:d,motionDurationMid:p,dropdownPaddingVertical:h,fontSize:m,dropdownEdgeChildPadding:g,colorTextDisabled:v,fontSizeIcon:y,controlPaddingHorizontal:b,colorBgElevated:x}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:s,display:"block","&::before":{position:"absolute",insetBlock:-c+u/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${f}-btn`]:{[`& > ${d}-down, & > ${f}-btn-icon > ${d}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${f}-btn > ${d}-down`]:{fontSize:y},[`${d}-down::before`]:{transition:`transform ${p}`}},[`${t}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}(e,t);(0,w.Z)()&&(0,C.hq)(n,`${S}-dynamic-theme`)}(A(),a):i=a)},F.useConfig=function(){let e=(0,u.useContext)(E.Z),t=(0,u.useContext)($.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty(F,"SizeContext",{get:()=>$.Z});var I=F},1142:function(e,t,n){"use strict";var r=n(18073),o=n(94184),i=n.n(o),a=n(29171),l=n(66680),s=n(21770),c=n(98423),u=n(67294),f=n(8745),d=n(80636),p=n(96159),h=n(53124),m=n(82610),g=n(76529),v=n(9361),y=n(66748);let b=e=>{let t;let{menu:n,arrow:o,prefixCls:f,children:b,trigger:x,disabled:w,dropdownRender:C,getPopupContainer:S,overlayClassName:E,rootClassName:$,open:O,onOpenChange:k,visible:j,onVisibleChange:P,mouseEnterDelay:Z=.15,mouseLeaveDelay:_=.1,autoAdjustOverflow:M=!0,placement:A="",overlay:R,transitionName:N}=e,{getPopupContainer:T,getPrefixCls:F,direction:I}=u.useContext(h.E_),L=u.useMemo(()=>{let e=F();return void 0!==N?N:A.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[F,A,N]),B=u.useMemo(()=>{if(!A)return"rtl"===I?"bottomRight":"bottomLeft";if(A.includes("Center")){let e=A.slice(0,A.indexOf("Center"));return e}return A},[A,I]),z=F("dropdown",f),[D,H]=(0,y.Z)(z),{token:V}=v.default.useToken(),U=u.Children.only(b),W=(0,p.Tm)(U,{className:i()(`${z}-trigger`,{[`${z}-rtl`]:"rtl"===I},U.props.className),disabled:w}),q=w?[]:x;q&&q.includes("contextMenu")&&(t=!0);let[K,G]=(0,s.Z)(!1,{value:null!=O?O:j}),X=(0,l.Z)(e=>{null==k||k(e),null==P||P(e),G(e)}),Y=i()(E,$,H,{[`${z}-rtl`]:"rtl"===I}),J=(0,d.Z)({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:M,offset:V.marginXXS,arrowWidth:o?V.sizePopupArrow:0,borderRadius:V.borderRadius}),Q=u.useCallback(()=>{G(!1)},[]);return D(u.createElement(a.Z,Object.assign({alignPoint:t},(0,c.Z)(e,["rootClassName"]),{mouseEnterDelay:Z,mouseLeaveDelay:_,visible:K,builtinPlacements:J,arrow:!!o,overlayClassName:Y,prefixCls:z,getPopupContainer:S||T,transitionName:L,trigger:q,overlay:()=>{let e;return e=(null==n?void 0:n.items)?u.createElement(m.Z,Object.assign({},n)):"function"==typeof R?R():R,C&&(e=C(e)),e=u.Children.only("string"==typeof e?u.createElement("span",null,e):e),u.createElement(g.J,{prefixCls:`${z}-menu`,expandIcon:u.createElement("span",{className:`${z}-menu-submenu-arrow`},u.createElement(r.Z,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:e=>{let{mode:t}=e}},e)},placement:B,onVisibleChange:X}),W))},x=(0,f.Z)(b,"dropdown",e=>e,function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})});b._InternalPanelDoNotUseOrYouWillBeFired=e=>u.createElement(x,Object.assign({},e),u.createElement("span",null)),t.Z=b},85418:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(1142),o=n(94184),i=n.n(o),a=n(67294),l=n(89705),s=n(71577),c=n(53124),u=n(42075),f=n(4173),d=n(66748),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let h=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:o}=a.useContext(c.E_),{prefixCls:h,type:m="default",danger:g,disabled:v,loading:y,onClick:b,htmlType:x,children:w,className:C,menu:S,arrow:E,autoFocus:$,overlay:O,trigger:k,align:j,open:P,onOpenChange:Z,placement:_,getPopupContainer:M,href:A,icon:R=a.createElement(l.Z,null),title:N,buttonsRender:T=e=>e,mouseEnterDelay:F,mouseLeaveDelay:I,overlayClassName:L,overlayStyle:B,destroyPopupOnHide:z,dropdownRender:D}=e,H=p(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),V=n("dropdown",h),U=`${V}-button`,[W,q]=(0,d.Z)(V),K={menu:S,arrow:E,autoFocus:$,align:j,disabled:v,trigger:v?[]:k,onOpenChange:Z,getPopupContainer:M||t,mouseEnterDelay:F,mouseLeaveDelay:I,overlayClassName:L,overlayStyle:B,destroyPopupOnHide:z,dropdownRender:D},{compactSize:G,compactItemClassnames:X}=(0,f.ri)(V,o),Y=i()(U,X,C,q);"overlay"in e&&(K.overlay=O),"open"in e&&(K.open=P),"placement"in e?K.placement=_:K.placement="rtl"===o?"bottomLeft":"bottomRight";let J=a.createElement(s.ZP,{type:m,danger:g,disabled:v,loading:y,onClick:b,htmlType:x,href:A,title:N},w),Q=a.createElement(s.ZP,{type:m,danger:g,icon:R}),[ee,et]=T([J,Q]);return W(a.createElement(u.Z.Compact,Object.assign({className:Y,size:G,block:!0},H),ee,a.createElement(r.Z,Object.assign({},K),et)))};h.__ANT_BUTTON=!0;let m=r.Z;m.Button=h;var g=m},66748:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(14747),o=n(67771),i=n(33297),a=n(50438),l=n(77786),s=n(67968),c=n(45503),u=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}};let f=e=>{let{componentCls:t,menuCls:n,zIndexPopup:s,dropdownArrowDistance:c,sizePopupArrow:u,antCls:f,iconCls:d,motionDurationMid:p,dropdownPaddingVertical:h,fontSize:m,dropdownEdgeChildPadding:g,colorTextDisabled:v,fontSizeIcon:y,controlPaddingHorizontal:b,colorBgElevated:x}=e;return[{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:s,display:"block","&::before":{position:"absolute",insetBlock:-c+u/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${f}-btn`]:{[`& > ${d}-down, & > ${f}-btn-icon > ${d}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${f}-btn > ${d}-down`]:{fontSize:y},[`${d}-down::before`]:{transition:`transform ${p}`}},[`${t}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden @@ -25,9 +25,9 @@ &${f}-slide-up-leave${f}-slide-up-leave-active${t}-placement-topRight`]:{animationName:o.ly}})},(0,l.ZP)(e,{colorBg:x,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:s,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,r.Qy)(e)),{[`${n}-item-group-title`]:{padding:`${h}px ${b}px`,color:e.colorTextDescription,transition:`all ${p}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${p}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${h}px ${b}px`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${p}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,r.Qy)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:b+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[(0,o.oN)(e,"slide-up"),(0,o.oN)(e,"slide-down"),(0,i.Fm)(e,"move-up"),(0,i.Fm)(e,"move-down"),(0,a._y)(e,"zoom-big")]]};var d=(0,s.Z)("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t,{marginXXS:r,sizePopupArrow:o,controlHeight:i,fontSize:a,lineHeight:s,paddingXXS:d,componentCls:p,borderRadiusLG:h}=e,{dropdownArrowOffset:m}=(0,l.fS)({contentRadius:h}),g=(0,c.TS)(e,{menuCls:`${p}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:m,dropdownPaddingVertical:(i-a*s)/2,dropdownEdgeChildPadding:d});return[f(g),u(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50}))},65223:function(e,t,n){"use strict";n.d(t,{RV:function(){return s},Rk:function(){return c},Ux:function(){return f},aM:function(){return u},q3:function(){return a},qI:function(){return l}});var r=n(43589),o=n(98423),i=n(67294);let a=i.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l=i.createContext(null),s=e=>{let t=(0,o.Z)(e,["prefixCls"]);return i.createElement(r.RV,Object.assign({},t))},c=i.createContext({prefixCls:""}),u=i.createContext({}),f=e=>{let{children:t,status:n,override:r}=e,o=(0,i.useContext)(u),a=(0,i.useMemo)(()=>{let e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,o]);return i.createElement(u.Provider,{value:a},t)}},37920:function(e,t,n){"use strict";var r=n(67294);t.Z=(0,r.createContext)(void 0)},76745:function(e,t,n){"use strict";var r=n(67294);let o=(0,r.createContext)(void 0);t.Z=o},88526:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(62906),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let i={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},o)},a="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:i,TimePicker:o,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var s=l},10110:function(e,t,n){"use strict";var r=n(67294),o=n(76745),i=n(88526);t.Z=(e,t)=>{let n=r.useContext(o.Z),a=r.useMemo(()=>{var r;let o=t||i.Z[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})},[e,t,n]),l=r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.Z.locale:e},[n]);return[a,l]}},76529:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(67294),o=n(4173),i=n(56790),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let l=r.createContext(null),s=r.forwardRef((e,t)=>{let{children:n}=e,s=a(e,["children"]),c=r.useContext(l),u=r.useMemo(()=>Object.assign(Object.assign({},c),s),[c,s.prefixCls,s.mode,s.selectable]);return r.createElement(l.Provider,{value:u},r.createElement(o.BR,null,(0,i.t4)(n)?r.cloneElement(n,{ref:t}):n))});t.Z=l},82610:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(72512),o=n(67294),i=n(94184),a=n.n(i);let l=o.createContext({});var s=n(53124),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},u=e=>{let{prefixCls:t,className:n,dashed:i}=e,l=c(e,["prefixCls","className","dashed"]),{getPrefixCls:u}=o.useContext(s.E_),f=u("menu",t),d=a()({[`${f}-item-divider-dashed`]:!!i},n);return o.createElement(r.iz,Object.assign({className:d},l))},f=n(50344),d=n(98423),p=n(83062),h=n(96159);let m=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var g=e=>{var t;let{className:n,children:i,icon:s,title:c,danger:u}=e,{prefixCls:g,firstLevel:v,direction:y,disableMenuItemTitleTooltip:b,inlineCollapsed:x}=o.useContext(m),{siderCollapsed:w}=o.useContext(l),C=c;void 0===c?C=v?i:"":!1===c&&(C="");let S={title:C};w||x||(S.title=null,S.open=!1);let E=(0,f.Z)(i).length,$=o.createElement(r.ck,Object.assign({},(0,d.Z)(e,["title","icon","danger"]),{className:a()({[`${g}-item-danger`]:u,[`${g}-item-only-child`]:(s?E+1:E)===1},n),title:"string"==typeof c?c:void 0}),(0,h.Tm)(s,{className:a()((0,h.l$)(s)?null===(t=s.props)||void 0===t?void 0:t.className:"",`${g}-item-icon`)}),(e=>{let t=o.createElement("span",{className:`${g}-title-content`},i);return(!s||(0,h.l$)(i)&&"span"===i.type)&&i&&e&&v&&"string"==typeof i?o.createElement("div",{className:`${g}-inline-collapsed-noicon`},i.charAt(0)):t})(x));return b||($=o.createElement(p.Z,Object.assign({},S,{placement:"rtl"===y?"left":"right",overlayClassName:`${g}-inline-collapsed-tooltip`}),$)),$},v=e=>{var t;let n;let{popupClassName:i,icon:l,title:s,theme:c}=e,u=o.useContext(m),{prefixCls:f,inlineCollapsed:p,theme:g}=u,v=(0,r.Xl)();if(l){let e=(0,h.l$)(s)&&"span"===s.type;n=o.createElement(o.Fragment,null,(0,h.Tm)(l,{className:a()((0,h.l$)(l)?null===(t=l.props)||void 0===t?void 0:t.className:"",`${f}-item-icon`)}),e?s:o.createElement("span",{className:`${f}-title-content`},s))}else n=p&&!v.length&&s&&"string"==typeof s?o.createElement("div",{className:`${f}-inline-collapsed-noicon`},s.charAt(0)):o.createElement("span",{className:`${f}-title-content`},s);let y=o.useMemo(()=>Object.assign(Object.assign({},u),{firstLevel:!1}),[u]);return o.createElement(m.Provider,{value:y},o.createElement(r.Wd,Object.assign({},(0,d.Z)(e,["icon"]),{title:n,popupClassName:a()(f,i,`${f}-${c||g}`)})))},y=n(89705),b=n(66680),x=n(33603),w=n(76529),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},S=n(10274),E=n(14747),$=n(33507),O=n(67771),k=n(50438),j=n(67968),P=n(45503),Z=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:`border-color ${n},background ${n}`},[`${t}-submenu-arrow`]:{display:"none"}}}},_=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};let A=e=>Object.assign({},(0,E.oN)(e));var R=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:f,motionDurationSlow:d,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:$,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:j,horizontalItemSelectedColor:P,horizontalItemSelectedBg:Z,horizontalItemBorderRadius:_,horizontalItemHoverBg:R,popupBg:M}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},A(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:$}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},A(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${d} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:Z,"&:hover":{backgroundColor:Z},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:f&&u?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${g} ${h},opacity ${g} ${h}`,content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${g} ${p},opacity ${g} ${p}`}}}}}};let M=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${2*r}px)`},[`> ${t}-item, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};let M=e=>Object.assign({},(0,E.oN)(e));var A=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:f,motionDurationSlow:d,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:$,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:j,horizontalItemSelectedColor:P,horizontalItemSelectedBg:Z,horizontalItemBorderRadius:_,horizontalItemHoverBg:A,popupBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},M(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:$}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},M(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:R},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${d} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:c,borderBottomColor:P}},"&-selected":{color:P,backgroundColor:Z,"&:hover":{backgroundColor:Z},"&::after":{borderBottomWidth:c,borderBottomColor:P}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:f&&u?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:`transform ${g} ${h},opacity ${g} ${h}`,content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:`transform ${g} ${p},opacity ${g} ${p}`}}}}}};let R=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l}=e;return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${2*r}px)`},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}};var N=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:f,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},M(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},M(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:`border-color ${d},background ${d},padding ${l} ${s}`,[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:o+i+a}}};var N=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:f,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},R(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},R(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${2.5*a}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:`border-color ${d},background ${d},padding ${l} ${s}`,[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${f/2}px - ${u}px)`,textOverflow:"clip",[` @@ -58,17 +58,17 @@ &-placement-bottomRight, &-placement-bottomLeft `]:{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:d},T(e)),F(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),F(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var L=(e,t)=>{let n=(0,j.Z)("Menu",e=>{if(!1===t)return[];let{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:l,darkDangerItemColor:s,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:f,darkItemSelectedBg:d,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:v,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:b,darkDangerItemActiveBg:x}=e,w=a/7*5,C=(0,P.TS)(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:`${.25*w}px`,menuPanelMaskInset:-7,menuSubMenuBg:n}),S=(0,P.TS)(C,{itemColor:l,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:f,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:v,dangerItemColor:s,dangerItemHoverColor:y,dangerItemSelectedColor:b,dangerItemActiveBg:x,dangerItemSelectedBg:p,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[I(C),Z(C),N(C),R(C,"light"),R(S,"dark"),_(C),(0,$.Z)(C),(0,O.oN)(C,"slide-up"),(0,O.oN)(C,"slide-down"),(0,k._y)(C,"zoom-big")]},e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:f,controlItemBgActive:d,colorBgTextHover:p,controlHeightLG:h,lineHeight:m,colorBgElevated:g,marginXXS:v,padding:y,fontSize:b,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:E}=e,$=new S.C(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:d,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:m,collapsedWidth:2*h,popupBg:g,itemMarginBlock:v,itemPaddingInline:y,horizontalLineHeight:`${1.15*h}px`,iconSize:b,iconMarginInlineEnd:x-b,collapsedIconSize:w,groupTitleFontSize:b,darkItemDisabledColor:new S.C(C).setAlpha(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:C,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]});return n(e)},B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=(0,o.forwardRef)((e,t)=>{var n,i;let l;let c=o.useContext(w.Z),f=c||{},{getPrefixCls:p,getPopupContainer:S,direction:E,menu:$}=o.useContext(s.E_),O=p(),{prefixCls:k,className:j,style:P,theme:Z="light",expandIcon:_,_internalDisableMenuItemTitleTooltip:A,inlineCollapsed:R,siderCollapsed:M,items:N,children:T,rootClassName:F,mode:I,selectable:z,onClick:D,overflowedIndicatorPopupClassName:H}=e,V=B(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),U=(0,d.Z)(V,["collapsedWidth"]),W=o.useMemo(()=>N?function e(t){return(t||[]).map((t,n)=>{if(t&&"object"==typeof t){let{label:i,children:a,key:l,type:s}=t,c=C(t,["label","children","key","type"]),f=null!=l?l:`tmp-${n}`;return a||"group"===s?"group"===s?o.createElement(r.BW,Object.assign({key:f},c,{title:i}),e(a)):o.createElement(v,Object.assign({key:f},c,{title:i}),e(a)):"divider"===s?o.createElement(u,Object.assign({key:f},c)):o.createElement(g,Object.assign({key:f},c),i)}return null}).filter(e=>e)}(N):N,[N])||T;null===(n=f.validator)||void 0===n||n.call(f,{mode:I});let q=(0,b.Z)(function(){var e;null==D||D.apply(void 0,arguments),null===(e=f.onClick)||void 0===e||e.call(f)}),K=f.mode||I,G=null!=z?z:f.selectable,X=o.useMemo(()=>void 0!==M?M:R,[R,M]),Y={horizontal:{motionName:`${O}-slide-up`},inline:(0,x.Z)(O),other:{motionName:`${O}-zoom-big`}},J=p("menu",k||f.prefixCls),[Q,ee]=L(J,!c),et=a()(`${J}-${Z}`,null==$?void 0:$.className,j);if("function"==typeof _)l=_;else{let e=_||f.expandIcon;l=(0,h.Tm)(e,{className:a()(`${J}-submenu-expand-icon`,(0,h.l$)(e)?null===(i=e.props)||void 0===i?void 0:i.className:"")})}let en=o.useMemo(()=>({prefixCls:J,inlineCollapsed:X||!1,direction:E,firstLevel:!0,theme:Z,mode:K,disableMenuItemTitleTooltip:A}),[J,X,E,A,Z]);return Q(o.createElement(w.Z.Provider,{value:null},o.createElement(m.Provider,{value:en},o.createElement(r.ZP,Object.assign({getPopupContainer:S,overflowedIndicator:o.createElement(y.Z,null),overflowedIndicatorPopupClassName:a()(J,`${J}-${Z}`,H),mode:K,selectable:G,onClick:q},U,{inlineCollapsed:X,style:Object.assign(Object.assign({},null==$?void 0:$.style),P),className:et,prefixCls:J,direction:E,defaultMotions:Y,expandIcon:l,ref:t,rootClassName:a()(F,ee)}),W))))}),D=(0,o.forwardRef)((e,t)=>{let n=(0,o.useRef)(null),r=o.useContext(l);return(0,o.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),o.createElement(z,Object.assign({ref:n},e,r))});D.Item=g,D.SubMenu=v,D.Divider=u,D.ItemGroup=r.BW;var H=D},2453:function(e,t,n){"use strict";n.d(t,{ZP:function(){return z}});var r=n(74902),o=n(67294),i=n(38135),a=n(46735),l=n(89739),s=n(4340),c=n(21640),u=n(78860),f=n(50888),d=n(94184),p=n.n(d),h=n(86621),m=n(53124),g=n(23183),v=n(14747),y=n(67968),b=n(45503);let x=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:y,contentBg:b}=e,x=`${t}-notice`,w=new g.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),C=new g.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${x}-content`]:{display:"inline-block",padding:y,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*h}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var L=(e,t)=>{let n=(0,j.Z)("Menu",e=>{if(!1===t)return[];let{colorBgElevated:n,colorPrimary:r,colorTextLightSolid:o,controlHeightLG:i,fontSize:a,darkItemColor:l,darkDangerItemColor:s,darkItemBg:c,darkSubMenuItemBg:u,darkItemSelectedColor:f,darkItemSelectedBg:d,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:m,darkItemHoverColor:g,darkItemDisabledColor:v,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:b,darkDangerItemActiveBg:x}=e,w=a/7*5,C=(0,P.TS)(e,{menuArrowSize:w,menuHorizontalHeight:1.15*i,menuArrowOffset:`${.25*w}px`,menuPanelMaskInset:-7,menuSubMenuBg:n}),S=(0,P.TS)(C,{itemColor:l,itemHoverColor:g,groupTitleColor:m,itemSelectedColor:f,itemBg:c,popupBg:c,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:d,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:v,dangerItemColor:s,dangerItemHoverColor:y,dangerItemSelectedColor:b,dangerItemActiveBg:x,dangerItemSelectedBg:p,menuSubMenuBg:u,horizontalItemSelectedColor:o,horizontalItemSelectedBg:r});return[I(C),Z(C),N(C),A(C,"light"),A(S,"dark"),_(C),(0,$.Z)(C),(0,O.oN)(C,"slide-up"),(0,O.oN)(C,"slide-down"),(0,k._y)(C,"zoom-big")]},e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:f,controlItemBgActive:d,colorBgTextHover:p,controlHeightLG:h,lineHeight:m,colorBgElevated:g,marginXXS:v,padding:y,fontSize:b,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:E}=e,$=new S.C(C).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:d,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:u,activeBarBorderWidth:u,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:e.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:m,collapsedWidth:2*h,popupBg:g,itemMarginBlock:v,itemPaddingInline:y,horizontalLineHeight:`${1.15*h}px`,iconSize:b,iconMarginInlineEnd:x-b,collapsedIconSize:w,groupTitleFontSize:b,darkItemDisabledColor:new S.C(C).setAlpha(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:n,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:C,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]});return n(e)},B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=(0,o.forwardRef)((e,t)=>{var n,i;let l;let c=o.useContext(w.Z),f=c||{},{getPrefixCls:p,getPopupContainer:S,direction:E,menu:$}=o.useContext(s.E_),O=p(),{prefixCls:k,className:j,style:P,theme:Z="light",expandIcon:_,_internalDisableMenuItemTitleTooltip:M,inlineCollapsed:A,siderCollapsed:R,items:N,children:T,rootClassName:F,mode:I,selectable:z,onClick:D,overflowedIndicatorPopupClassName:H}=e,V=B(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),U=(0,d.Z)(V,["collapsedWidth"]),W=o.useMemo(()=>N?function e(t){return(t||[]).map((t,n)=>{if(t&&"object"==typeof t){let{label:i,children:a,key:l,type:s}=t,c=C(t,["label","children","key","type"]),f=null!=l?l:`tmp-${n}`;return a||"group"===s?"group"===s?o.createElement(r.BW,Object.assign({key:f},c,{title:i}),e(a)):o.createElement(v,Object.assign({key:f},c,{title:i}),e(a)):"divider"===s?o.createElement(u,Object.assign({key:f},c)):o.createElement(g,Object.assign({key:f},c),i)}return null}).filter(e=>e)}(N):N,[N])||T;null===(n=f.validator)||void 0===n||n.call(f,{mode:I});let q=(0,b.Z)(function(){var e;null==D||D.apply(void 0,arguments),null===(e=f.onClick)||void 0===e||e.call(f)}),K=f.mode||I,G=null!=z?z:f.selectable,X=o.useMemo(()=>void 0!==R?R:A,[A,R]),Y={horizontal:{motionName:`${O}-slide-up`},inline:(0,x.Z)(O),other:{motionName:`${O}-zoom-big`}},J=p("menu",k||f.prefixCls),[Q,ee]=L(J,!c),et=a()(`${J}-${Z}`,null==$?void 0:$.className,j);if("function"==typeof _)l=_;else{let e=_||f.expandIcon;l=(0,h.Tm)(e,{className:a()(`${J}-submenu-expand-icon`,(0,h.l$)(e)?null===(i=e.props)||void 0===i?void 0:i.className:"")})}let en=o.useMemo(()=>({prefixCls:J,inlineCollapsed:X||!1,direction:E,firstLevel:!0,theme:Z,mode:K,disableMenuItemTitleTooltip:M}),[J,X,E,M,Z]);return Q(o.createElement(w.Z.Provider,{value:null},o.createElement(m.Provider,{value:en},o.createElement(r.ZP,Object.assign({getPopupContainer:S,overflowedIndicator:o.createElement(y.Z,null),overflowedIndicatorPopupClassName:a()(J,`${J}-${Z}`,H),mode:K,selectable:G,onClick:q},U,{inlineCollapsed:X,style:Object.assign(Object.assign({},null==$?void 0:$.style),P),className:et,prefixCls:J,direction:E,defaultMotions:Y,expandIcon:l,ref:t,rootClassName:a()(F,ee)}),W))))}),D=(0,o.forwardRef)((e,t)=>{let n=(0,o.useRef)(null),r=o.useContext(l);return(0,o.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),o.createElement(z,Object.assign({ref:n},e,r))});D.Item=g,D.SubMenu=v,D.Divider=u,D.ItemGroup=r.BW;var H=D},2453:function(e,t,n){"use strict";n.d(t,{ZP:function(){return z}});var r=n(74902),o=n(67294),i=n(38135),a=n(46735),l=n(89739),s=n(4340),c=n(21640),u=n(78860),f=n(50888),d=n(94184),p=n.n(d),h=n(86621),m=n(53124),g=n(23183),v=n(14747),y=n(67968),b=n(45503);let x=e=>{let{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:y,contentBg:b}=e,x=`${t}-notice`,w=new g.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),C=new g.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${x}-content`]:{display:"inline-block",padding:y,background:b,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[x]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var w=(0,y.Z)("Message",e=>{let t=(0,b.TS)(e,{height:150});return[x(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let S={info:o.createElement(u.Z,null),success:o.createElement(l.Z,null),error:o.createElement(s.Z,null),warning:o.createElement(c.Z,null),loading:o.createElement(f.Z,null)},E=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:p()(`${t}-custom-content`,`${t}-${n}`)},r||S[n],o.createElement("span",null,i))};var $=n(97937);function O(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let j=e=>{let{children:t,prefixCls:n}=e,[,r]=w(n);return o.createElement(h.JB,{classNames:{list:r,notice:r}},t)},P=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(j,{prefixCls:n,key:r},e)},Z=o.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:l=3,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:f,getPopupContainer:d,message:g}=o.useContext(m.E_),v=r||f("message"),y=o.createElement("span",{className:`${v}-close-x`},o.createElement($.Z,{className:`${v}-close-icon`})),[b,x]=(0,h.lm)({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>p()({[`${v}-rtl`]:s}),motion:()=>({motionName:null!=c?c:`${v}-move-up`}),closable:!1,closeIcon:y,duration:l,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:P});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:v,message:g})),x}),_=0;function A(e){let t=o.useRef(null),n=o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:i,message:a}=t.current,l=`${i}-notice`,{content:s,icon:c,type:u,key:f,className:d,style:h,onClose:m}=n,g=k(n,["content","icon","type","key","className","style","onClose"]),v=f;return null==v&&(_+=1,v=`antd-message-${_}`),O(t=>(r(Object.assign(Object.assign({},g),{key:v,content:o.createElement(E,{prefixCls:i,type:u,icon:c},s),placement:"top",className:p()(u&&`${l}-${u}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),onClose:()=>{null==m||m(),t()}})),()=>{e(v)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);let s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}}),r},[]);return[n,o.createElement(Z,Object.assign({key:"message-holder"},e,{ref:t}))]}let R=null,M=e=>e(),N=[],T={};function F(){let{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=T,l=null!=e?e:(0,a.w6)().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:i}}let I=o.forwardRef((e,t)=>{let[n,r]=o.useState(F),[i,l]=A(n),s=(0,a.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(F)};return o.useEffect(d,[]),o.useImperativeHandle(t,()=>{let e=Object.assign({},i);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}}),{instance:e,sync:d}}),o.createElement(a.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},l)});function L(){if(!R){let e=document.createDocumentFragment(),t={fragment:e};R=t,M(()=>{(0,i.s)(o.createElement(I,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,L())})}}),e)});return}R.instance&&(N.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":M(()=>{let t=R.instance.open(Object.assign(Object.assign({},T),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":M(()=>{null==R||R.instance.destroy(e.key)});break;default:M(()=>{var n;let o=(n=R.instance)[t].apply(n,(0,r.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),N=[])}let B={open:function(e){let t=O(t=>{let n;let r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return N.push(r),()=>{n?M(()=>{n()}):r.skipped=!0}});return L(),t},destroy:function(e){N.push({type:"destroy",key:e}),L()},config:function(e){T=Object.assign(Object.assign({},T),e),M(()=>{var e;null===(e=null==R?void 0:R.sync)||void 0===e||e.call(R)})},useMessage:function(e){return A(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:r,icon:i,content:a}=e,l=C(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=o.useContext(m.E_),c=t||s("message"),[,u]=w(c);return o.createElement(h.qX,Object.assign({},l,{prefixCls:c,className:p()(n,u,`${c}-notice-pure-panel`),eventKey:"pure",duration:null,content:o.createElement(E,{prefixCls:c,type:r,icon:i},a)}))}};["success","info","warning","error","loading"].forEach(e=>{B[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r;let o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return N.push(o),()=>{r?M(()=>{r()}):o.skipped=!0}});return L(),n}(e,n)}});var z=B},12069:function(e,t,n){"use strict";let r;n.d(t,{default:function(){return ee}});var o=n(74902),i=n(38135),a=n(67294),l=n(46735),s=n(89739),c=n(4340),u=n(21640),f=n(78860),d=n(94184),p=n.n(d),h=n(30470),m=n(71577),g=n(4026),v=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:f}=e,d=a.useRef(!1),p=a.useRef(null),[v,y]=(0,h.Z)(!1),b=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let x=e=>{e&&e.then&&(y(!0),e.then(function(){y(!1,!0),b.apply(void 0,arguments),d.current=!1},e=>{if(y(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!f){b();return}if(s){var n;if(t=f(e),u&&!((n=t)&&n.then)){d.current=!1,b(e);return}}else if(f.length)t=f(i),d.current=!1;else if(!(t=f())){b();return}x(t)}},loading:v,prefixCls:r},o,{ref:p}),n)},y=n(33603),b=n(10110),x=n(97937),w=n(13328),C=n(69760),S=n(31808),E=n(53124),$=n(65223),O=n(4173),k=n(98866),j=n(83008);function P(e,t){return a.createElement("span",{className:`${e}-close-x`},t||a.createElement(x.Z,{className:`${e}-close-icon`}))}let Z=e=>{let{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:l,okButtonProps:s,cancelButtonProps:c}=e,[u]=(0,b.Z)("Modal",(0,j.A)());return a.createElement(k.n,{disabled:!1},a.createElement(m.ZP,Object.assign({onClick:l},c),r||(null==u?void 0:u.cancelText)),a.createElement(m.ZP,Object.assign({},(0,g.n)(n),{loading:o,onClick:i},s),t||(null==u?void 0:u.okText)))};var _=n(71194),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,S.jD)()&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var R=e=>{var t;let{getPopupContainer:n,getPrefixCls:o,direction:i,modal:l}=a.useContext(E.E_),s=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:c,className:u,rootClassName:f,open:d,wrapClassName:h,centered:m,getContainer:g,closeIcon:v,closable:b,focusTriggerAfterClose:S=!0,style:k,visible:j,width:R=520,footer:M}=e,N=A(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),T=o("modal",c),F=o(),[I,L]=(0,_.Z)(T),B=p()(h,{[`${T}-centered`]:!!m,[`${T}-wrap-rtl`]:"rtl"===i}),z=void 0===M?a.createElement(Z,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:s})):M,[D,H]=(0,C.Z)(b,v,e=>P(T,e),a.createElement(x.Z,{className:`${T}-close-icon`}),!0);return I(a.createElement(O.BR,null,a.createElement($.Ux,{status:!0,override:!0},a.createElement(w.Z,Object.assign({width:R},N,{getContainer:void 0===g?n:g,prefixCls:T,rootClassName:p()(L,f),wrapClassName:B,footer:z,visible:null!=d?d:j,mousePosition:null!==(t=N.mousePosition)&&void 0!==t?t:r,onClose:s,closable:D,closeIcon:H,focusTriggerAfterClose:S,transitionName:(0,y.m)(F,"zoom",e.transitionName),maskTransitionName:(0,y.m)(F,"fade",e.maskTransitionName),className:p()(L,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),k)})))))};function M(e){let{icon:t,onCancel:n,onOk:r,close:o,onConfirm:i,isSilent:l,okText:d,okButtonProps:p,cancelText:h,cancelButtonProps:m,confirmPrefixCls:g,rootPrefixCls:y,type:x,okCancel:w,footer:C,locale:S}=e,E=t;if(!t&&null!==t)switch(x){case"info":E=a.createElement(f.Z,null);break;case"success":E=a.createElement(s.Z,null);break;case"error":E=a.createElement(c.Z,null);break;default:E=a.createElement(u.Z,null)}let $=e.okType||"primary",O=null!=w?w:"confirm"===x,k=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[j]=(0,b.Z)("Modal"),P=S||j,Z=O&&a.createElement(v,{isSilent:l,actionFn:n,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!1)},autoFocus:"cancel"===k,buttonProps:m,prefixCls:`${y}-btn`},h||(null==P?void 0:P.cancelText));return a.createElement("div",{className:`${g}-body-wrapper`},a.createElement("div",{className:`${g}-body`},E,void 0===e.title?null:a.createElement("span",{className:`${g}-title`},e.title),a.createElement("div",{className:`${g}-content`},e.content)),void 0===C?a.createElement("div",{className:`${g}-btns`},Z,a.createElement(v,{isSilent:l,type:$,actionFn:r,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!0)},autoFocus:"ok"===k,buttonProps:p,prefixCls:`${y}-btn`},d||(O?null==P?void 0:P.okText:null==P?void 0:P.justOkText))):C)}var N=e=>{let{close:t,zIndex:n,afterClose:r,visible:o,open:i,keyboard:s,centered:c,getContainer:u,maskStyle:f,direction:d,prefixCls:h,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:x,closable:w=!1,closeIcon:C,modalRender:S,focusTriggerAfterClose:E}=e,$=`${h}-confirm`,O=e.width||416,k=e.style||{},j=void 0===e.mask||e.mask,P=void 0!==e.maskClosable&&e.maskClosable,Z=p()($,`${$}-${e.type}`,{[`${$}-rtl`]:"rtl"===d},e.className);return a.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:d,theme:b},a.createElement(R,{prefixCls:h,className:Z,wrapClassName:p()({[`${$}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:(0,y.m)(g,"zoom",e.transitionName),maskTransitionName:(0,y.m)(g,"fade",e.maskTransitionName),mask:j,maskClosable:P,maskStyle:f,style:k,bodyStyle:x,width:O,zIndex:n,afterClose:r,keyboard:s,centered:c,getContainer:u,closable:w,closeIcon:C,modalRender:S,focusTriggerAfterClose:E},a.createElement(M,Object.assign({},e,{confirmPrefixCls:$}))))},T=[],F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I="";function L(e){let t;let n=document.createDocumentFragment(),r=Object.assign(Object.assign({},e),{close:u,open:!0});function s(){for(var t=arguments.length,r=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(r.slice(1))));for(let e=0;e{let e=(0,j.A)(),{getPrefixCls:t,getIconPrefixCls:f,getTheme:d}=(0,l.w6)(),p=t(void 0,I),h=s||`${p}-modal`,m=f(),g=d(),v=c;!1===v&&(v=void 0),(0,i.s)(a.createElement(N,Object.assign({},u,{getContainer:v,prefixCls:h,rootPrefixCls:p,iconPrefixCls:m,okText:r,locale:e,theme:g,cancelText:o||e.cancelText})),n)})}function u(){for(var t=arguments.length,n=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,n)}})).visible&&delete r.visible,c(r)}return c(r),T.push(u),{destroy:u,update:function(e){c(r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e))}}}function B(e){return Object.assign(Object.assign({},e),{type:"warning"})}function z(e){return Object.assign(Object.assign({},e),{type:"info"})}function D(e){return Object.assign(Object.assign({},e),{type:"success"})}function H(e){return Object.assign(Object.assign({},e),{type:"error"})}function V(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var U=n(8745),W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},q=(0,U.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:l,children:s}=e,c=W(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:u}=a.useContext(E.E_),f=u(),d=t||u("modal"),[,h]=(0,_.Z)(d),m=`${d}-confirm`,g={};return g=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(M,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:f,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?a.createElement(Z,Object.assign({},e)):e.footer,children:s},a.createElement(w.s,Object.assign({prefixCls:d,className:p()(h,`${d}-pure-panel`,i&&m,i&&`${m}-${i}`,n)},c,{closeIcon:P(d,r),closable:o},g))}),K=n(88526),G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},X=a.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,l=G(e,["afterClose","config"]);let[s,c]=a.useState(!0),[u,f]=a.useState(i),{direction:d,getPrefixCls:p}=a.useContext(E.E_),h=p("modal"),m=p(),g=function(){c(!1);for(var e=arguments.length,t=Array(e),n=0;ne&&e.triggerCancel);u.onCancel&&r&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:g,update:e=>{f(t=>Object.assign(Object.assign({},t),e))}}));let v=null!==(n=u.okCancel)&&void 0!==n?n:"confirm"===u.type,[y]=(0,b.Z)("Modal",K.Z.Modal);return a.createElement(N,Object.assign({prefixCls:h,rootPrefixCls:m},u,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},l))});let Y=0,J=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]),n=a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,n]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function Q(e){return L(B(e))}R.useModal=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),n([])}},[t]);let r=a.useCallback(t=>function(r){var i;let l,s;Y+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),f=!1,d=a.createElement(X,{key:`modal-${Y}`,config:t(r),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>f,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d))&&T.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(f=!0,u.then(e))}},[]),i=a.useMemo(()=>({info:r(z),success:r(D),error:r(H),warning:r(B),confirm:r(V)}),[]);return[i,a.createElement(J,{key:"modal-holder",ref:e})]},R.info=function(e){return L(z(e))},R.success=function(e){return L(D(e))},R.error=function(e){return L(H(e))},R.warning=Q,R.warn=Q,R.confirm=function(e){return L(V(e))},R.destroyAll=function(){for(;T.length;){let e=T.pop();e&&e()}},R.config=function(e){let{rootPrefixCls:t}=e;I=t},R._InternalPanelDoNotUseOrYouWillBeFired=q;var ee=R},83008:function(e,t,n){"use strict";n.d(t,{A:function(){return s},f:function(){return l}});var r=n(88526);let o=Object.assign({},r.Z.Modal),i=[],a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},71194:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(14747),o=n(16932),i=n(50438),a=n(67968),l=n(45503);function s(e){return{position:e,inset:0}}let c=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},s("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},s("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,o.J$)(e)}]},u=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,r.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[x]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]};var w=(0,y.Z)("Message",e=>{let t=(0,b.TS)(e,{height:150});return[x(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let S={info:o.createElement(u.Z,null),success:o.createElement(l.Z,null),error:o.createElement(s.Z,null),warning:o.createElement(c.Z,null),loading:o.createElement(f.Z,null)},E=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:p()(`${t}-custom-content`,`${t}-${n}`)},r||S[n],o.createElement("span",null,i))};var $=n(97937);function O(e){let t;let n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let j=e=>{let{children:t,prefixCls:n}=e,[,r]=w(n);return o.createElement(h.JB,{classNames:{list:r,notice:r}},t)},P=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(j,{prefixCls:n,key:r},e)},Z=o.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:l=3,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:f,getPopupContainer:d,message:g}=o.useContext(m.E_),v=r||f("message"),y=o.createElement("span",{className:`${v}-close-x`},o.createElement($.Z,{className:`${v}-close-icon`})),[b,x]=(0,h.lm)({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>p()({[`${v}-rtl`]:s}),motion:()=>({motionName:null!=c?c:`${v}-move-up`}),closable:!1,closeIcon:y,duration:l,getContainer:()=>(null==i?void 0:i())||(null==d?void 0:d())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:P});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:v,message:g})),x}),_=0;function M(e){let t=o.useRef(null),n=o.useMemo(()=>{let e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:r,prefixCls:i,message:a}=t.current,l=`${i}-notice`,{content:s,icon:c,type:u,key:f,className:d,style:h,onClose:m}=n,g=k(n,["content","icon","type","key","className","style","onClose"]),v=f;return null==v&&(_+=1,v=`antd-message-${_}`),O(t=>(r(Object.assign(Object.assign({},g),{key:v,content:o.createElement(E,{prefixCls:i,type:u,icon:c},s),placement:"top",className:p()(u&&`${l}-${u}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),onClose:()=>{null==m||m(),t()}})),()=>{e(v)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);let s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}}),r},[]);return[n,o.createElement(Z,Object.assign({key:"message-holder"},e,{ref:t}))]}let A=null,R=e=>e(),N=[],T={};function F(){let{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:o,top:i}=T,l=null!=e?e:(0,a.w6)().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,getContainer:()=>s,duration:n,rtl:r,maxCount:o,top:i}}let I=o.forwardRef((e,t)=>{let[n,r]=o.useState(F),[i,l]=M(n),s=(0,a.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(F)};return o.useEffect(d,[]),o.useImperativeHandle(t,()=>{let e=Object.assign({},i);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}}),{instance:e,sync:d}}),o.createElement(a.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},l)});function L(){if(!A){let e=document.createDocumentFragment(),t={fragment:e};A=t,R(()=>{(0,i.s)(o.createElement(I,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,L())})}}),e)});return}A.instance&&(N.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":R(()=>{let t=A.instance.open(Object.assign(Object.assign({},T),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":R(()=>{null==A||A.instance.destroy(e.key)});break;default:R(()=>{var n;let o=(n=A.instance)[t].apply(n,(0,r.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),N=[])}let B={open:function(e){let t=O(t=>{let n;let r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return N.push(r),()=>{n?R(()=>{n()}):r.skipped=!0}});return L(),t},destroy:function(e){N.push({type:"destroy",key:e}),L()},config:function(e){T=Object.assign(Object.assign({},T),e),R(()=>{var e;null===(e=null==A?void 0:A.sync)||void 0===e||e.call(A)})},useMessage:function(e){return M(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,type:r,icon:i,content:a}=e,l=C(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=o.useContext(m.E_),c=t||s("message"),[,u]=w(c);return o.createElement(h.qX,Object.assign({},l,{prefixCls:c,className:p()(n,u,`${c}-notice-pure-panel`),eventKey:"pure",duration:null,content:o.createElement(E,{prefixCls:c,type:r,icon:i},a)}))}};["success","info","warning","error","loading"].forEach(e=>{B[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r;let o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return N.push(o),()=>{r?R(()=>{r()}):o.skipped=!0}});return L(),n}(e,n)}});var z=B},12069:function(e,t,n){"use strict";let r;n.d(t,{default:function(){return ee}});var o=n(74902),i=n(38135),a=n(67294),l=n(46735),s=n(89739),c=n(4340),u=n(21640),f=n(78860),d=n(94184),p=n.n(d),h=n(30470),m=n(71577),g=n(4026),v=e=>{let{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:f}=e,d=a.useRef(!1),p=a.useRef(null),[v,y]=(0,h.Z)(!1),b=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let x=e=>{e&&e.then&&(y(!0),e.then(function(){y(!1,!0),b.apply(void 0,arguments),d.current=!1},e=>{if(y(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!f){b();return}if(s){var n;if(t=f(e),u&&!((n=t)&&n.then)){d.current=!1,b(e);return}}else if(f.length)t=f(i),d.current=!1;else if(!(t=f())){b();return}x(t)}},loading:v,prefixCls:r},o,{ref:p}),n)},y=n(33603),b=n(10110),x=n(97937),w=n(13328),C=n(69760),S=n(31808),E=n(53124),$=n(65223),O=n(4173),k=n(98866),j=n(83008);function P(e,t){return a.createElement("span",{className:`${e}-close-x`},t||a.createElement(x.Z,{className:`${e}-close-icon`}))}let Z=e=>{let{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:l,okButtonProps:s,cancelButtonProps:c}=e,[u]=(0,b.Z)("Modal",(0,j.A)());return a.createElement(k.n,{disabled:!1},a.createElement(m.ZP,Object.assign({onClick:l},c),r||(null==u?void 0:u.cancelText)),a.createElement(m.ZP,Object.assign({},(0,g.n)(n),{loading:o,onClick:i},s),t||(null==u?void 0:u.okText)))};var _=n(71194),M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,S.jD)()&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);var A=e=>{var t;let{getPopupContainer:n,getPrefixCls:o,direction:i,modal:l}=a.useContext(E.E_),s=t=>{let{onCancel:n}=e;null==n||n(t)},{prefixCls:c,className:u,rootClassName:f,open:d,wrapClassName:h,centered:m,getContainer:g,closeIcon:v,closable:b,focusTriggerAfterClose:S=!0,style:k,visible:j,width:A=520,footer:R}=e,N=M(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),T=o("modal",c),F=o(),[I,L]=(0,_.Z)(T),B=p()(h,{[`${T}-centered`]:!!m,[`${T}-wrap-rtl`]:"rtl"===i}),z=void 0===R?a.createElement(Z,Object.assign({},e,{onOk:t=>{let{onOk:n}=e;null==n||n(t)},onCancel:s})):R,[D,H]=(0,C.Z)(b,v,e=>P(T,e),a.createElement(x.Z,{className:`${T}-close-icon`}),!0);return I(a.createElement(O.BR,null,a.createElement($.Ux,{status:!0,override:!0},a.createElement(w.Z,Object.assign({width:A},N,{getContainer:void 0===g?n:g,prefixCls:T,rootClassName:p()(L,f),wrapClassName:B,footer:z,visible:null!=d?d:j,mousePosition:null!==(t=N.mousePosition)&&void 0!==t?t:r,onClose:s,closable:D,closeIcon:H,focusTriggerAfterClose:S,transitionName:(0,y.m)(F,"zoom",e.transitionName),maskTransitionName:(0,y.m)(F,"fade",e.maskTransitionName),className:p()(L,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),k)})))))};function R(e){let{icon:t,onCancel:n,onOk:r,close:o,onConfirm:i,isSilent:l,okText:d,okButtonProps:p,cancelText:h,cancelButtonProps:m,confirmPrefixCls:g,rootPrefixCls:y,type:x,okCancel:w,footer:C,locale:S}=e,E=t;if(!t&&null!==t)switch(x){case"info":E=a.createElement(f.Z,null);break;case"success":E=a.createElement(s.Z,null);break;case"error":E=a.createElement(c.Z,null);break;default:E=a.createElement(u.Z,null)}let $=e.okType||"primary",O=null!=w?w:"confirm"===x,k=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[j]=(0,b.Z)("Modal"),P=S||j,Z=O&&a.createElement(v,{isSilent:l,actionFn:n,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!1)},autoFocus:"cancel"===k,buttonProps:m,prefixCls:`${y}-btn`},h||(null==P?void 0:P.cancelText));return a.createElement("div",{className:`${g}-body-wrapper`},a.createElement("div",{className:`${g}-body`},E,void 0===e.title?null:a.createElement("span",{className:`${g}-title`},e.title),a.createElement("div",{className:`${g}-content`},e.content)),void 0===C?a.createElement("div",{className:`${g}-btns`},Z,a.createElement(v,{isSilent:l,type:$,actionFn:r,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!0)},autoFocus:"ok"===k,buttonProps:p,prefixCls:`${y}-btn`},d||(O?null==P?void 0:P.okText:null==P?void 0:P.justOkText))):C)}var N=e=>{let{close:t,zIndex:n,afterClose:r,visible:o,open:i,keyboard:s,centered:c,getContainer:u,maskStyle:f,direction:d,prefixCls:h,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:x,closable:w=!1,closeIcon:C,modalRender:S,focusTriggerAfterClose:E}=e,$=`${h}-confirm`,O=e.width||416,k=e.style||{},j=void 0===e.mask||e.mask,P=void 0!==e.maskClosable&&e.maskClosable,Z=p()($,`${$}-${e.type}`,{[`${$}-rtl`]:"rtl"===d},e.className);return a.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:d,theme:b},a.createElement(A,{prefixCls:h,className:Z,wrapClassName:p()({[`${$}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:(0,y.m)(g,"zoom",e.transitionName),maskTransitionName:(0,y.m)(g,"fade",e.maskTransitionName),mask:j,maskClosable:P,maskStyle:f,style:k,bodyStyle:x,width:O,zIndex:n,afterClose:r,keyboard:s,centered:c,getContainer:u,closable:w,closeIcon:C,modalRender:S,focusTriggerAfterClose:E},a.createElement(R,Object.assign({},e,{confirmPrefixCls:$}))))},T=[],F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let I="";function L(e){let t;let n=document.createDocumentFragment(),r=Object.assign(Object.assign({},e),{close:u,open:!0});function s(){for(var t=arguments.length,r=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(r.slice(1))));for(let e=0;e{let e=(0,j.A)(),{getPrefixCls:t,getIconPrefixCls:f,getTheme:d}=(0,l.w6)(),p=t(void 0,I),h=s||`${p}-modal`,m=f(),g=d(),v=c;!1===v&&(v=void 0),(0,i.s)(a.createElement(N,Object.assign({},u,{getContainer:v,prefixCls:h,rootPrefixCls:p,iconPrefixCls:m,okText:r,locale:e,theme:g,cancelText:o||e.cancelText})),n)})}function u(){for(var t=arguments.length,n=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,n)}})).visible&&delete r.visible,c(r)}return c(r),T.push(u),{destroy:u,update:function(e){c(r="function"==typeof e?e(r):Object.assign(Object.assign({},r),e))}}}function B(e){return Object.assign(Object.assign({},e),{type:"warning"})}function z(e){return Object.assign(Object.assign({},e),{type:"info"})}function D(e){return Object.assign(Object.assign({},e),{type:"success"})}function H(e){return Object.assign(Object.assign({},e),{type:"error"})}function V(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var U=n(8745),W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},q=(0,U.i)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:l,children:s}=e,c=W(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:u}=a.useContext(E.E_),f=u(),d=t||u("modal"),[,h]=(0,_.Z)(d),m=`${d}-confirm`,g={};return g=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(R,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:f,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?a.createElement(Z,Object.assign({},e)):e.footer,children:s},a.createElement(w.s,Object.assign({prefixCls:d,className:p()(h,`${d}-pure-panel`,i&&m,i&&`${m}-${i}`,n)},c,{closeIcon:P(d,r),closable:o},g))}),K=n(88526),G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},X=a.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,l=G(e,["afterClose","config"]);let[s,c]=a.useState(!0),[u,f]=a.useState(i),{direction:d,getPrefixCls:p}=a.useContext(E.E_),h=p("modal"),m=p(),g=function(){c(!1);for(var e=arguments.length,t=Array(e),n=0;ne&&e.triggerCancel);u.onCancel&&r&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:g,update:e=>{f(t=>Object.assign(Object.assign({},t),e))}}));let v=null!==(n=u.okCancel)&&void 0!==n?n:"confirm"===u.type,[y]=(0,b.Z)("Modal",K.Z.Modal);return a.createElement(N,Object.assign({prefixCls:h,rootPrefixCls:m},u,{close:g,open:s,afterClose:()=>{var e;r(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},l))});let Y=0,J=a.memo(a.forwardRef((e,t)=>{let[n,r]=function(){let[e,t]=a.useState([]),n=a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,n]}();return a.useImperativeHandle(t,()=>({patchElement:r}),[]),a.createElement(a.Fragment,null,n)}));function Q(e){return L(B(e))}A.useModal=function(){let e=a.useRef(null),[t,n]=a.useState([]);a.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),n([])}},[t]);let r=a.useCallback(t=>function(r){var i;let l,s;Y+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),f=!1,d=a.createElement(X,{key:`modal-${Y}`,config:t(r),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>f,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d))&&T.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():n(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():n(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(f=!0,u.then(e))}},[]),i=a.useMemo(()=>({info:r(z),success:r(D),error:r(H),warning:r(B),confirm:r(V)}),[]);return[i,a.createElement(J,{key:"modal-holder",ref:e})]},A.info=function(e){return L(z(e))},A.success=function(e){return L(D(e))},A.error=function(e){return L(H(e))},A.warning=Q,A.warn=Q,A.confirm=function(e){return L(V(e))},A.destroyAll=function(){for(;T.length;){let e=T.pop();e&&e()}},A.config=function(e){let{rootPrefixCls:t}=e;I=t},A._InternalPanelDoNotUseOrYouWillBeFired=q;var ee=A},83008:function(e,t,n){"use strict";n.d(t,{A:function(){return s},f:function(){return l}});var r=n(88526);let o=Object.assign({},r.Z.Modal),i=[],a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},71194:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(14747),o=n(16932),i=n(50438),a=n(67968),l=n(45503);function s(e){return{position:e,inset:0}}let c=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},s("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},s("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,o.J$)(e)}]},u=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,r.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},f=e=>{let{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},(0,r.dF)()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},d=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}};t.Z=(0,a.Z)("Modal",e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=(0,l.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[u(o),f(o),d(o),c(o),e.wireframe&&p(o),(0,i._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}))},4173:function(e,t,n){"use strict";n.d(t,{BR:function(){return p},ri:function(){return d}});var r=n(94184),o=n.n(r),i=n(50344),a=n(67294),l=n(53124),s=n(98675),c=n(51916),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f=a.createContext(null),d=(e,t)=>{let n=a.useContext(f),r=a.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,l="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},p=e=>{let{children:t}=e;return a.createElement(f.Provider,{value:null},t)},h=e=>{var{children:t}=e,n=u(e,["children"]);return a.createElement(f.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=a.useContext(l.E_),{size:r,direction:d,block:p,prefixCls:m,className:g,rootClassName:v,children:y}=e,b=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),x=(0,s.Z)(e=>null!=r?r:e),w=t("space-compact",m),[C,S]=(0,c.Z)(w),E=o()(w,S,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:p,[`${w}-vertical`]:"vertical"===d},g,v),$=a.useContext(f),O=(0,i.Z)(y),k=a.useMemo(()=>O.map((e,t)=>{let n=e&&e.key||`${w}-item-${t}`;return a.createElement(h,{key:n,compactSize:x,compactDirection:d,isFirstItem:0===t&&(!$||(null==$?void 0:$.isFirstItem)),isLastItem:t===O.length-1&&(!$||(null==$?void 0:$.isLastItem))},e)}),[r,O,$]);return 0===O.length?null:C(a.createElement("div",Object.assign({className:E},b),k))}},42075:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(94184),o=n.n(r),i=n(50344),a=n(67294),l=n(98082),s=n(53124),c=n(4173);let u=a.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),f=u.Provider;var d=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:l,wrap:s,style:c}=e,{horizontalSize:f,verticalSize:d,latestIndex:p,supportFlexGap:h}=a.useContext(u),m={};return(!h&&("vertical"===n?rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m={small:8,middle:16,large:24},g=a.forwardRef((e,t)=>{var n,r;let{getPrefixCls:c,space:u,direction:g}=a.useContext(s.E_),{size:v=(null==u?void 0:u.size)||"small",align:y,className:b,rootClassName:x,children:w,direction:C="horizontal",prefixCls:S,split:E,style:$,wrap:O=!1,classNames:k,styles:j}=e,P=h(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),Z=(0,l.Z)(),[_,A]=a.useMemo(()=>(Array.isArray(v)?v:[v,v]).map(e=>"string"==typeof e?m[e]:e||0),[v]),R=(0,i.Z)(w,{keepEmpty:!0}),M=void 0===y&&"horizontal"===C?"center":y,N=c("space",S),[T,F]=(0,p.Z)(N),I=o()(N,null==u?void 0:u.className,F,`${N}-${C}`,{[`${N}-rtl`]:"rtl"===g,[`${N}-align-${M}`]:M},b,x),L=o()(`${N}-item`,null!==(n=null==k?void 0:k.item)&&void 0!==n?n:null===(r=null==u?void 0:u.classNames)||void 0===r?void 0:r.item),B="rtl"===g?"marginLeft":"marginRight",z=0,D=R.map((e,t)=>{var n,r;null!=e&&(z=t);let o=e&&e.key||`${L}-${t}`;return a.createElement(d,{className:L,key:o,direction:C,index:t,marginDirection:B,split:E,wrap:O,style:null!==(n=null==j?void 0:j.item)&&void 0!==n?n:null===(r=null==u?void 0:u.styles)||void 0===r?void 0:r.item},e)}),H=a.useMemo(()=>({horizontalSize:_,verticalSize:A,latestIndex:z,supportFlexGap:Z}),[_,A,z,Z]);if(0===R.length)return null;let V={};return O&&(V.flexWrap="wrap",Z||(V.marginBottom=-A)),Z&&(V.columnGap=_,V.rowGap=A),T(a.createElement("div",Object.assign({ref:t,className:I,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),$)},P),a.createElement(f,{value:H},D)))});g.Compact=c.ZP;var v=g},51916:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67968),o=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let i=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}};var a=(0,r.Z)("Space",e=>[i(e),o(e)],()=>({}),{resetStyle:!1})},80110:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}n.d(t,{c:function(){return r}})},14747:function(e,t,n){"use strict";n.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return i},Wf:function(){return o},dF:function(){return a},du:function(){return s},oN:function(){return c},vS:function(){return r}});let r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, + ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},d=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}};t.Z=(0,a.Z)("Modal",e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=(0,l.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[u(o),f(o),d(o),c(o),e.wireframe&&p(o),(0,i._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}))},4173:function(e,t,n){"use strict";n.d(t,{BR:function(){return p},ri:function(){return d}});var r=n(94184),o=n.n(r),i=n(50344),a=n(67294),l=n(53124),s=n(98675),c=n(51916),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f=a.createContext(null),d=(e,t)=>{let n=a.useContext(f),r=a.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,l="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},p=e=>{let{children:t}=e;return a.createElement(f.Provider,{value:null},t)},h=e=>{var{children:t}=e,n=u(e,["children"]);return a.createElement(f.Provider,{value:n},t)};t.ZP=e=>{let{getPrefixCls:t,direction:n}=a.useContext(l.E_),{size:r,direction:d,block:p,prefixCls:m,className:g,rootClassName:v,children:y}=e,b=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),x=(0,s.Z)(e=>null!=r?r:e),w=t("space-compact",m),[C,S]=(0,c.Z)(w),E=o()(w,S,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:p,[`${w}-vertical`]:"vertical"===d},g,v),$=a.useContext(f),O=(0,i.Z)(y),k=a.useMemo(()=>O.map((e,t)=>{let n=e&&e.key||`${w}-item-${t}`;return a.createElement(h,{key:n,compactSize:x,compactDirection:d,isFirstItem:0===t&&(!$||(null==$?void 0:$.isFirstItem)),isLastItem:t===O.length-1&&(!$||(null==$?void 0:$.isLastItem))},e)}),[r,O,$]);return 0===O.length?null:C(a.createElement("div",Object.assign({className:E},b),k))}},42075:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(94184),o=n.n(r),i=n(50344),a=n(67294),l=n(98082),s=n(53124),c=n(4173);let u=a.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),f=u.Provider;var d=e=>{let{className:t,direction:n,index:r,marginDirection:o,children:i,split:l,wrap:s,style:c}=e,{horizontalSize:f,verticalSize:d,latestIndex:p,supportFlexGap:h}=a.useContext(u),m={};return(!h&&("vertical"===n?rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m={small:8,middle:16,large:24},g=a.forwardRef((e,t)=>{var n,r;let{getPrefixCls:c,space:u,direction:g}=a.useContext(s.E_),{size:v=(null==u?void 0:u.size)||"small",align:y,className:b,rootClassName:x,children:w,direction:C="horizontal",prefixCls:S,split:E,style:$,wrap:O=!1,classNames:k,styles:j}=e,P=h(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),Z=(0,l.Z)(),[_,M]=a.useMemo(()=>(Array.isArray(v)?v:[v,v]).map(e=>"string"==typeof e?m[e]:e||0),[v]),A=(0,i.Z)(w,{keepEmpty:!0}),R=void 0===y&&"horizontal"===C?"center":y,N=c("space",S),[T,F]=(0,p.Z)(N),I=o()(N,null==u?void 0:u.className,F,`${N}-${C}`,{[`${N}-rtl`]:"rtl"===g,[`${N}-align-${R}`]:R},b,x),L=o()(`${N}-item`,null!==(n=null==k?void 0:k.item)&&void 0!==n?n:null===(r=null==u?void 0:u.classNames)||void 0===r?void 0:r.item),B="rtl"===g?"marginLeft":"marginRight",z=0,D=A.map((e,t)=>{var n,r;null!=e&&(z=t);let o=e&&e.key||`${L}-${t}`;return a.createElement(d,{className:L,key:o,direction:C,index:t,marginDirection:B,split:E,wrap:O,style:null!==(n=null==j?void 0:j.item)&&void 0!==n?n:null===(r=null==u?void 0:u.styles)||void 0===r?void 0:r.item},e)}),H=a.useMemo(()=>({horizontalSize:_,verticalSize:M,latestIndex:z,supportFlexGap:Z}),[_,M,z,Z]);if(0===A.length)return null;let V={};return O&&(V.flexWrap="wrap",Z||(V.marginBottom=-M)),Z&&(V.columnGap=_,V.rowGap=M),T(a.createElement("div",Object.assign({ref:t,className:I,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),$)},P),a.createElement(f,{value:H},D)))});g.Compact=c.ZP;var v=g},51916:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67968),o=e=>{let{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};let i=e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}};var a=(0,r.Z)("Space",e=>[i(e),o(e)],()=>({}),{resetStyle:!1})},80110:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},function(e,t,n){let{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}(e,r,t)),function(e,t,n){let{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(n,r,t))}}n.d(t,{c:function(){return r}})},14747:function(e,t,n){"use strict";n.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return i},Wf:function(){return o},dF:function(){return a},du:function(){return s},oN:function(){return c},vS:function(){return r}});let r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t)=>{let{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},c(e))})},33507:function(e,t){"use strict";t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},16932:function(e,t,n){"use strict";n.d(t,{J$:function(){return l}});var r=n(23183),o=n(93590);let i=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r=`${n}-fade`,l=t?"&":"";return[(0,o.R)(r,i,a,e.motionDurationMid,t),{[` @@ -123,7 +123,7 @@ 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i);return c}},67968:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},b:function(){return f}});var r=n(67294),o=n(23183);n(56790);var i=n(53124),a=n(14747),l=n(25976),s=n(45503),c=n(53269);function u(e,t,n){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(e)?e:[e,e],[d]=f,p=f.join("-");return e=>{let[f,h,m]=(0,l.Z)(),{getPrefixCls:g,iconPrefixCls:v,csp:y}=(0,r.useContext)(i.E_),b=g(),x={theme:f,token:h,hashId:m,nonce:()=>null==y?void 0:y.nonce,clientOnly:u.clientOnly,order:u.order||-999};return(0,o.xy)(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":(0,a.Lx)(h)}]),(0,c.Z)(v),[(0,o.xy)(Object.assign(Object.assign({},x),{path:[p,e,v]}),()=>{let{token:r,flush:o}=(0,s.ZP)(h),i=Object.assign({},h[d]);if(u.deprecatedTokens){let{deprecatedTokens:e}=u;e.forEach(e=>{var t;let[n,r]=e;((null==i?void 0:i[n])||(null==i?void 0:i[r]))&&(null!==(t=i[r])&&void 0!==t||(i[r]=null==i?void 0:i[n]))})}let l="function"==typeof n?n((0,s.TS)(r,null!=i?i:{})):n,c=Object.assign(Object.assign({},l),i),f=`.${e}`,p=(0,s.TS)(r,{componentCls:f,prefixCls:e,iconCls:`.${v}`,antCls:`.${b}`},c),g=t(p,{hashId:m,prefixCls:e,rootPrefixCls:b,iconPrefixCls:v,overrideComponentToken:i});return o(d,c),[!1===u.resetStyle?null:(0,a.du)(h,e),g]}),m]}}let f=(e,t,n,r)=>{let o=u(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}}},98719:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8796);function o(e,t){return r.i.reduce((n,r)=>{let o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}},45503:function(e,t,n){"use strict";n.d(t,{TS:function(){return i},ZP:function(){return s}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function i(){for(var e=arguments.length,t=Array(e),n=0;n{let t=Object.keys(e);t.forEach(t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,i}let a={};function l(){}function s(e){let t;let n=e,i=l;return r&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},53269:function(e,t,n){"use strict";var r=n(23183),o=n(14747),i=n(25976);t.Z=(e,t)=>{let[n,a]=(0,i.Z)();return(0,r.xy)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])}},83062:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(94184),o=n.n(r),i=n(92419),a=n(21770),l=n(67294),s=n(33603),c=n(80636),u=n(96159),f=n(53124),d=n(4173),p=n(9361),h=n(14747),m=n(50438),g=n(77786),v=n(98719),y=n(45503),b=n(67968);let x=e=>{let{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${t}-inner`]:{borderRadius:Math.min(i,g.qN)}},[`${t}-content`]:{position:"relative"}}),(0,v.Z)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,g.ZP)((0,y.TS)(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var w=(e,t)=>{let n=(0,b.Z)("Tooltip",e=>{if(!1===t)return[];let{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=(0,y.TS)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[x(a),(0,m._y)(e,"zoom-big-fast")]},e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}},{resetStyle:!1});return n(e)},C=n(98787);function S(e,t){let n=(0,C.o2)(t),r=o()({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let{useToken:$}=p.default,O=(e,t)=>{let n={},r=Object.assign({},e);return t.forEach(t=>{e&&t in e&&(n[t]=e[t],delete r[t])}),{picked:n,omitted:r}},k=l.forwardRef((e,t)=>{var n,r;let{prefixCls:p,openClassName:h,getTooltipContainer:m,overlayClassName:g,color:v,overlayInnerStyle:y,children:b,afterOpenChange:x,afterVisibleChange:C,destroyTooltipOnHide:k,arrow:j=!0,title:P,overlay:Z,builtinPlacements:_,arrowPointAtCenter:A=!1,autoAdjustOverflow:R=!0}=e,M=!!j,{token:N}=$(),{getPopupContainer:T,getPrefixCls:F,direction:I}=l.useContext(f.E_),L=l.useRef(null),B=()=>{var e;null===(e=L.current)||void 0===e||e.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:B,forcePopupAlign:()=>{B()}}));let[z,D]=(0,a.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),H=!P&&!Z&&0!==P,V=l.useMemo(()=>{var e,t;let n=A;return"object"==typeof j&&(n=null!==(t=null!==(e=j.pointAtCenter)&&void 0!==e?e:j.arrowPointAtCenter)&&void 0!==t?t:A),_||(0,c.Z)({arrowPointAtCenter:n,autoAdjustOverflow:R,arrowWidth:M?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS,visibleFirst:!0})},[A,j,_,N]),U=l.useMemo(()=>0===P?P:Z||P||"",[Z,P]),W=l.createElement(d.BR,null,"function"==typeof U?U():U),{getPopupContainer:q,placement:K="top",mouseEnterDelay:G=.1,mouseLeaveDelay:X=.1,overlayStyle:Y,rootClassName:J}=e,Q=E(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=F("tooltip",p),et=F(),en=e["data-popover-inject"],er=z;"open"in e||"visible"in e||!H||(er=!1);let eo=function(e,t){let n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){let{picked:n,omitted:r}=O(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},r),{pointerEvents:"none"}),s=(0,u.Tm)(e,{style:a,className:null});return l.createElement("span",{style:i,className:o()(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}((0,u.l$)(b)&&!(0,u.M2)(b)?b:l.createElement("span",null,b),ee),ei=eo.props,ea=ei.className&&"string"!=typeof ei.className?ei.className:o()(ei.className,h||`${ee}-open`),[el,es]=w(ee,!en),ec=S(ee,v),eu=ec.arrowStyle,ef=Object.assign(Object.assign({},y),ec.overlayStyle),ed=o()(g,{[`${ee}-rtl`]:"rtl"===I},ec.className,J,es);return el(l.createElement(i.Z,Object.assign({},Q,{showArrow:M,placement:K,mouseEnterDelay:G,mouseLeaveDelay:X,prefixCls:ee,overlayClassName:ed,overlayStyle:Object.assign(Object.assign({},eu),Y),getTooltipContainer:q||m||T,ref:L,builtinPlacements:V,overlay:W,visible:er,onVisibleChange:t=>{var n,r;D(!H&&t),H||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=x?x:C,overlayInnerStyle:ef,arrowContent:l.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:(0,s.m)(et,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!k}),er?(0,u.Tm)(eo,{className:ea}):eo))});k._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:r="top",title:a,color:s,overlayInnerStyle:c}=e,{getPrefixCls:u}=l.useContext(f.E_),d=u("tooltip",t),[p,h]=w(d,!0),m=S(d,s),g=m.arrowStyle,v=Object.assign(Object.assign({},c),m.overlayStyle),y=o()(h,d,`${d}-pure`,`${d}-placement-${r}`,n,m.className);return p(l.createElement("div",{className:y,style:g},l.createElement("div",{className:`${d}-arrow`}),l.createElement(i.G,Object.assign({},e,{className:h,prefixCls:d,overlayInnerStyle:v}),a)))};var j=k},1028:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25633)).default;t.default=o},80037:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(5584)).default;t.default=o},25633:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(27590)),i=r(n(52040));let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o.default),timePickerLocale:Object.assign({},i.default)};t.default=a},5584:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85369)),i=r(n(15704));let a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="确定",t.default=a},18253:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(62273)),i=r(n(1028)),a=r(n(25633)),l=r(n(52040));let s="${label} is not a valid ${type}",c={locale:"en",Pagination:o.default,DatePicker:a.default,TimePicker:l.default,Calendar:i.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};t.Z=c},82925:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(74219)),i=r(n(80037)),a=r(n(5584)),l=r(n(15704));let s="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:o.default,DatePicker:a.default,TimePicker:l.default,Calendar:i.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};t.Z=c},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},15704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},94184:function(e,t){var n;/*! + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i);return c}},67968:function(e,t,n){"use strict";n.d(t,{Z:function(){return u},b:function(){return f}});var r=n(67294),o=n(23183);n(56790);var i=n(53124),a=n(14747),l=n(25976),s=n(45503),c=n(53269);function u(e,t,n){let u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(e)?e:[e,e],[d]=f,p=f.join("-");return e=>{let[f,h,m]=(0,l.Z)(),{getPrefixCls:g,iconPrefixCls:v,csp:y}=(0,r.useContext)(i.E_),b=g(),x={theme:f,token:h,hashId:m,nonce:()=>null==y?void 0:y.nonce,clientOnly:u.clientOnly,order:u.order||-999};return(0,o.xy)(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",b]}),()=>[{"&":(0,a.Lx)(h)}]),(0,c.Z)(v),[(0,o.xy)(Object.assign(Object.assign({},x),{path:[p,e,v]}),()=>{let{token:r,flush:o}=(0,s.ZP)(h),i=Object.assign({},h[d]);if(u.deprecatedTokens){let{deprecatedTokens:e}=u;e.forEach(e=>{var t;let[n,r]=e;((null==i?void 0:i[n])||(null==i?void 0:i[r]))&&(null!==(t=i[r])&&void 0!==t||(i[r]=null==i?void 0:i[n]))})}let l="function"==typeof n?n((0,s.TS)(r,null!=i?i:{})):n,c=Object.assign(Object.assign({},l),i),f=`.${e}`,p=(0,s.TS)(r,{componentCls:f,prefixCls:e,iconCls:`.${v}`,antCls:`.${b}`},c),g=t(p,{hashId:m,prefixCls:e,rootPrefixCls:b,iconPrefixCls:v,overrideComponentToken:i});return o(d,c),[!1===u.resetStyle?null:(0,a.du)(h,e),g]}),m]}}let f=(e,t,n,r)=>{let o=u(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}}},98719:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(8796);function o(e,t){return r.i.reduce((n,r)=>{let o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}},45503:function(e,t,n){"use strict";n.d(t,{TS:function(){return i},ZP:function(){return s}});let r="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function i(){for(var e=arguments.length,t=Array(e),n=0;n{let t=Object.keys(e);t.forEach(t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,i}let a={};function l(){}function s(e){let t;let n=e,i=l;return r&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},53269:function(e,t,n){"use strict";var r=n(23183),o=n(14747),i=n(25976);t.Z=(e,t)=>{let[n,a]=(0,i.Z)();return(0,r.xy)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])}},83062:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(94184),o=n.n(r),i=n(92419),a=n(21770),l=n(67294),s=n(33603),c=n(80636),u=n(96159),f=n(53124),d=n(4173),p=n(9361),h=n(14747),m=n(50438),g=n(77786),v=n(98719),y=n(45503),b=n(67968);let x=e=>{let{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:f}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${c/2}px ${u}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${t}-inner`]:{borderRadius:Math.min(i,g.qN)}},[`${t}-content`]:{position:"relative"}}),(0,v.Z)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,g.ZP)((0,y.TS)(e,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var w=(e,t)=>{let n=(0,b.Z)("Tooltip",e=>{if(!1===t)return[];let{borderRadius:n,colorTextLightSolid:r,colorBgDefault:o,borderRadiusOuter:i}=e,a=(0,y.TS)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:o,tooltipRadiusOuter:i>4?4:i});return[x(a),(0,m._y)(e,"zoom-big-fast")]},e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}},{resetStyle:!1});return n(e)},C=n(98787);function S(e,t){let n=(0,C.o2)(t),r=o()({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}var E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let{useToken:$}=p.default,O=(e,t)=>{let n={},r=Object.assign({},e);return t.forEach(t=>{e&&t in e&&(n[t]=e[t],delete r[t])}),{picked:n,omitted:r}},k=l.forwardRef((e,t)=>{var n,r;let{prefixCls:p,openClassName:h,getTooltipContainer:m,overlayClassName:g,color:v,overlayInnerStyle:y,children:b,afterOpenChange:x,afterVisibleChange:C,destroyTooltipOnHide:k,arrow:j=!0,title:P,overlay:Z,builtinPlacements:_,arrowPointAtCenter:M=!1,autoAdjustOverflow:A=!0}=e,R=!!j,{token:N}=$(),{getPopupContainer:T,getPrefixCls:F,direction:I}=l.useContext(f.E_),L=l.useRef(null),B=()=>{var e;null===(e=L.current)||void 0===e||e.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:B,forcePopupAlign:()=>{B()}}));let[z,D]=(0,a.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),H=!P&&!Z&&0!==P,V=l.useMemo(()=>{var e,t;let n=M;return"object"==typeof j&&(n=null!==(t=null!==(e=j.pointAtCenter)&&void 0!==e?e:j.arrowPointAtCenter)&&void 0!==t?t:M),_||(0,c.Z)({arrowPointAtCenter:n,autoAdjustOverflow:A,arrowWidth:R?N.sizePopupArrow:0,borderRadius:N.borderRadius,offset:N.marginXXS,visibleFirst:!0})},[M,j,_,N]),U=l.useMemo(()=>0===P?P:Z||P||"",[Z,P]),W=l.createElement(d.BR,null,"function"==typeof U?U():U),{getPopupContainer:q,placement:K="top",mouseEnterDelay:G=.1,mouseLeaveDelay:X=.1,overlayStyle:Y,rootClassName:J}=e,Q=E(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=F("tooltip",p),et=F(),en=e["data-popover-inject"],er=z;"open"in e||"visible"in e||!H||(er=!1);let eo=function(e,t){let n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){let{picked:n,omitted:r}=O(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},r),{pointerEvents:"none"}),s=(0,u.Tm)(e,{style:a,className:null});return l.createElement("span",{style:i,className:o()(e.props.className,`${t}-disabled-compatible-wrapper`)},s)}return e}((0,u.l$)(b)&&!(0,u.M2)(b)?b:l.createElement("span",null,b),ee),ei=eo.props,ea=ei.className&&"string"!=typeof ei.className?ei.className:o()(ei.className,h||`${ee}-open`),[el,es]=w(ee,!en),ec=S(ee,v),eu=ec.arrowStyle,ef=Object.assign(Object.assign({},y),ec.overlayStyle),ed=o()(g,{[`${ee}-rtl`]:"rtl"===I},ec.className,J,es);return el(l.createElement(i.Z,Object.assign({},Q,{showArrow:R,placement:K,mouseEnterDelay:G,mouseLeaveDelay:X,prefixCls:ee,overlayClassName:ed,overlayStyle:Object.assign(Object.assign({},eu),Y),getTooltipContainer:q||m||T,ref:L,builtinPlacements:V,overlay:W,visible:er,onVisibleChange:t=>{var n,r;D(!H&&t),H||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=x?x:C,overlayInnerStyle:ef,arrowContent:l.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:(0,s.m)(et,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!k}),er?(0,u.Tm)(eo,{className:ea}):eo))});k._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:n,placement:r="top",title:a,color:s,overlayInnerStyle:c}=e,{getPrefixCls:u}=l.useContext(f.E_),d=u("tooltip",t),[p,h]=w(d,!0),m=S(d,s),g=m.arrowStyle,v=Object.assign(Object.assign({},c),m.overlayStyle),y=o()(h,d,`${d}-pure`,`${d}-placement-${r}`,n,m.className);return p(l.createElement("div",{className:y,style:g},l.createElement("div",{className:`${d}-arrow`}),l.createElement(i.G,Object.assign({},e,{className:h,prefixCls:d,overlayInnerStyle:v}),a)))};var j=k},1028:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25633)).default;t.default=o},80037:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(5584)).default;t.default=o},25633:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(27590)),i=r(n(52040));let a={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o.default),timePickerLocale:Object.assign({},i.default)};t.default=a},5584:function(e,t,n){"use strict";var r=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85369)),i=r(n(15704));let a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="确定",t.default=a},18253:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(62273)),i=r(n(1028)),a=r(n(25633)),l=r(n(52040));let s="${label} is not a valid ${type}",c={locale:"en",Pagination:o.default,DatePicker:a.default,TimePicker:l.default,Calendar:i.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};t.Z=c},82925:function(e,t,n){"use strict";var r=n(64836).default;t.Z=void 0;var o=r(n(74219)),i=r(n(80037)),a=r(n(5584)),l=r(n(15704));let s="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:o.default,DatePicker:a.default,TimePicker:l.default,Calendar:i.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新"},ColorPicker:{presetEmpty:"暂无"}};t.Z=c},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},15704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},94184:function(e,t){var n;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -134,7 +134,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=u}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?l(r,u-n):r))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,n=o(),r=b(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48271)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return c},p:function(){return s}});var r=n(85893),o=n(67294),i=n(50489),a=n(577),l=n(39332);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",dbParam:void 0,dialogueList:[],agentList:[],setAgentList:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,queryDialogueList:()=>{},refreshDialogList:()=>{},history:[],setHistory:()=>{},docId:void 0,setDocId:()=>{}}),c=e=>{var t,n,c;let{children:u}=e,f=(0,l.useSearchParams)(),d=null!==(t=null==f?void 0:f.get("id"))&&void 0!==t?t:"",p=null!==(n=null==f?void 0:f.get("scene"))&&void 0!==n?n:"",h=null!==(c=null==f?void 0:f.get("db_param"))&&void 0!==c?c:"",[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(""),[b,x]=(0,o.useState)("chat_dashboard"!==p),[w,C]=(0,o.useState)(h),[S,E]=(0,o.useState)([]),[$,O]=(0,o.useState)([]),[k,j]=(0,o.useState)(),{run:P,data:Z=[],refresh:_}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.iP)());return null!=e?e:[]},{manual:!0}),{data:A=[]}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Vw)());return null!=e?e:[]});(0,o.useEffect)(()=>{y(A[0])},[A,null==A?void 0:A.length]);let R=(0,o.useMemo)(()=>Z.find(e=>e.conv_uid===d),[d,Z]);return(0,r.jsx)(s.Provider,{value:{isContract:m,isMenuExpand:b,scene:p,chatId:d,modelList:A,model:v,dbParam:w||h,dialogueList:Z,agentList:S,setAgentList:E,setModel:y,setIsContract:g,setIsMenuExpand:x,setDbParam:C,queryDialogueList:P,refreshDialogList:_,currentDialogue:R,history:$,setHistory:O,docId:k,setDocId:j},children:u})}},58989:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...n])})}}}function l(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function u(e,t,n){let{obj:r,k:o}=c(e,t,Object);r[o]=n}function f(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>p[e]):e}let m=[" ",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;ee+i;)i++,l=o[a=r.slice(e,e+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=r.slice(e+i).join(n);if(s)return g(l,s,n);return}o=o[r[e]]}return o}function v(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class y extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));let l=f(this.data,a);return l||!i||"string"!=typeof n?l:g(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?function e(t,n,r){for(let o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,o):l={...l,...n},u(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let x={};class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=m.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=RegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(g&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){let e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=i);let g=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=g&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?m:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let o=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,y,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||m)})}):r(e,i,m))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!x[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(x[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let i;if(this.isValidLookup(t))return;o=n;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(r)&&l.push(s+e.replace(r,this.options.pluralSeparator)),f&&l.push(s+t)),d){let n=`${s}${this.options.contextSeparator}${a.context}`;l.push(n),u&&(l.push(n+e),a.ordinal&&0===e.indexOf(r)&&l.push(n+e.replace(r,this.options.pluralSeparator)),f&&l.push(n+t))}}for(;i=l.pop();)this.isValidLookup(t)||(r=i,t=this.getResource(n,e,i,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}class S{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let E=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},O=["v1","v2","v3"],k=["v4"],j={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),(!this.options.compatibilityJSON||k.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return E.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>j[e]-j[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function Z(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,n){let r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=g(e,n,r))&&(i=g(t,n,r)),i}class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=Z(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Z(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}];return p.forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(i=u(n))){if("function"==typeof f){let t=f(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),l=e,c=!0}if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function A(e){let t={};return function(n,r,o){let i=r+JSON.stringify(o),a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}}class R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:A((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:A((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:A((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:A((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=A(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);if("currency"===t&&0>o.indexOf(":"))n.currency||(n.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))n.range||(n.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class M extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)})(n.loaded,[o],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function N(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function T(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F(){}class I extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=T(e),this.services={},this.logger=i,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=N();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...T(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=R);let n=new S(this.options);this.store=new y(this.options.resources,this.options);let a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new _(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new M(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=l(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!t||"cimode"===t)return;let n=this.services.languageUtils.toResolveHierarchy(t);n.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(r)t(r);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=F),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=l();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,r.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))}loadNamespaces(e,t){let n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=l();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new S(N());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new I(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new y(this.store.data,r),o.services.resourceStore=o.store),o.translator=new w(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new y.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new y.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new y.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};let S=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:v,lineHeight:x,width:w,notificationIconSize:S,colorText:E}=e,$=`${n}-notice`,O=new y.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),k=new y.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),j={position:"relative",width:w,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:v,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:v,color:E},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+S,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+S,fontSize:v},[`${$}-icon`]:{position:"absolute",fontSize:S,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,b.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[$]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[$]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:k,animationPlayState:"running"}}),C(e)),{"&-rtl":{direction:"rtl",[`${$}-btn`]:{float:"left"}}})},{[n]:{[$]:Object.assign({},j)}},{[`${$}-pure-panel`]:Object.assign(Object.assign({},j),{margin:0})}]};var E=(0,x.Z)("Notification",e=>{let t=e.paddingMD,n=e.paddingLG,r=(0,w.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[S(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function O(e,t){return null===t||!1===t?null:t||i.createElement("span",{className:`${e}-close-x`},i.createElement(u.Z,{className:`${e}-close-icon`}))}d.Z,s.Z,c.Z,f.Z,p.Z;let k={success:s.Z,info:d.Z,error:c.Z,warning:f.Z},j=e=>{let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:l,role:s="alert"}=e,c=null;return n?c=i.createElement("span",{className:`${t}-icon`},n):r&&(c=i.createElement(k[r]||null,{className:m()(`${t}-icon`,`${t}-icon-${r}`)})),i.createElement("div",{className:m()({[`${t}-with-icon`]:c}),role:s},c,i.createElement("div",{className:`${t}-message`},o),i.createElement("div",{className:`${t}-description`},a),l&&i.createElement("div",{className:`${t}-btn`},l))};var P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Z=e=>{let{children:t,prefixCls:n}=e,[,r]=E(n);return i.createElement(g.JB,{classNames:{list:r,notice:r}},t)},_=(e,t)=>{let{prefixCls:n,key:r}=t;return i.createElement(Z,{prefixCls:n,key:r},e)},A=i.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:o,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,notification:d}=i.useContext(v.E_),p=o||u("notification"),[h,y]=(0,g.lm)({prefixCls:p,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>m()({[`${p}-rtl`]:s}),motion:()=>({motionName:`${p}-fade`}),closable:!0,closeIcon:O(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:_});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},h),{prefixCls:p,notification:d})),y});function R(e){let t=i.useRef(null),n=i.useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:o,prefixCls:a,notification:l}=t.current,s=`${a}-notice`,{message:c,description:u,icon:f,type:d,btn:p,className:h,style:g,role:v="alert",closeIcon:y}=n,b=P(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=O(s,y);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:i.createElement(j,{prefixCls:s,icon:f,type:d,message:c,description:u,btn:p,role:v}),className:m()(d&&`${s}-${d}`,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:x,closable:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]);return[n,i.createElement(A,Object.assign({key:"notification-holder"},e,{ref:t}))]}let M=null,N=e=>e(),T=[],F={};function I(){let{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=F,a=null!=e?e:(0,l.w6)().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:a,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}let L=i.forwardRef((e,t)=>{let[n,r]=i.useState(I),[o,a]=R(n),s=(0,l.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(I)};return i.useEffect(d,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},o);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),o[t].apply(o,arguments)}}),{instance:e,sync:d}}),i.createElement(l.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},a)});function B(){if(!M){let e=document.createDocumentFragment(),t={fragment:e};M=t,N(()=>{(0,a.s)(i.createElement(L,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,B())})}}),e)});return}M.instance&&(T.forEach(e=>{switch(e.type){case"open":N(()=>{M.instance.open(Object.assign(Object.assign({},F),e.config))});break;case"destroy":N(()=>{null==M||M.instance.destroy(e.key)})}}),T=[])}function z(e){T.push({type:"open",config:e}),B()}let D={open:z,destroy:function(e){T.push({type:"destroy",key:e}),B()},config:function(e){F=Object.assign(Object.assign({},F),e),N(()=>{var e;null===(e=null==M?void 0:M.sync)||void 0===e||e.call(M)})},useNotification:function(e){return R(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,icon:r,type:o,message:a,description:l,btn:s,closable:c=!0,closeIcon:u}=e,f=$(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=i.useContext(v.E_),p=t||d("notification"),h=`${p}-notice`,[,y]=E(p);return i.createElement(g.qX,Object.assign({},f,{prefixCls:p,className:m()(n,y,`${h}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:O(p,u),content:i.createElement(j,{prefixCls:h,icon:r,type:o,message:a,description:l,btn:s})}))}};["success","info","warning","error"].forEach(e=>{D[e]=t=>z(Object.assign(Object.assign({},t),{type:e}))});let H=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else{var r;D.error({message:"Request error",description:null!==(r=null==n?void 0:n.err_msg)&&void 0!==r?r:"The interface is abnormal. Please try again later"})}}return[null,n.data,n,e]}).catch(e=>(D.error({message:"Request error",description:e.message}),[e,null,null,null])),V=()=>eN("/api/v1/chat/dialogue/scenes"),U=e=>eN("/api/v1/chat/dialogue/new",e),W=()=>eM("/api/v1/chat/db/list"),q=()=>eM("/api/v1/chat/db/support/type"),K=e=>eN("/api/v1/chat/db/delete?db_name=".concat(e)),G=e=>eN("/api/v1/chat/db/edit",e),X=e=>eN("/api/v1/chat/db/add",e),Y=e=>eN("/api/v1/chat/db/test/connect",e),J=()=>eM("/api/v1/chat/dialogue/list"),Q=()=>eM("/api/v1/model/types"),ee=e=>eN("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),et=e=>eM("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),en=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i}=e;return eN("/api/v1/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i),r,{headers:{"Content-Type":"multipart/form-data"},...o})},er=e=>eN("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),eo=e=>eN("/knowledge/".concat(e,"/arguments"),{}),ei=(e,t)=>eN("/knowledge/".concat(e,"/argument/save"),t),ea=()=>eN("/knowledge/space/list",{}),el=(e,t)=>eN("/knowledge/".concat(e,"/document/list"),t),es=(e,t)=>eN("/knowledge/".concat(e,"/document/add"),t),ec=e=>eN("/knowledge/space/add",e),eu=(e,t)=>eN("/knowledge/".concat(e,"/document/sync"),t),ef=(e,t)=>eN("/knowledge/".concat(e,"/document/upload"),t),ed=(e,t)=>eN("/knowledge/".concat(e,"/chunk/list"),t),ep=(e,t)=>eN("/knowledge/".concat(e,"/document/delete"),t),eh=e=>eN("/knowledge/space/delete",e),em=()=>eM("/api/v1/worker/model/list"),eg=e=>eN("/api/v1/worker/model/stop",e),ev=e=>eN("/api/v1/worker/model/start",e),ey=()=>eM("/api/v1/worker/model/params"),eb=e=>eN("/api/v1/agent/query",e),ex=e=>eN("/api/v1/agent/hub/update",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),ew=e=>eN("/api/v1/agent/my",void 0,{params:{user:e}}),eC=(e,t)=>eN("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),eS=(e,t)=>eN("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),eE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return eN("/api/v1/personal/agent/upload",t,{params:{user:e},headers:{"Content-Type":"multipart/form-data"},...n})},e$=()=>eM("/api/v1/feedback/select",void 0),eO=(e,t)=>eM("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),ek=e=>{let{data:t,config:n}=e;return eN("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})},ej=e=>eN("/prompt/list",e),eP=e=>eN("/prompt/update",e),eZ=e=>eN("/prompt/add",e);var e_=n(83454);let eA=o.Z.create({baseURL:null!==(r=e_.env.API_BASE_URL)&&void 0!==r?r:""}),eR=["/db/add","/db/test/connect","/db/summary","/params/file/load","/chat/prepare","/model/start","/model/stop","/editor/sql/run","/sql/editor/submit","/editor/chart/run","/chart/editor/submit","/document/upload","/document/sync","/agent/install","/agent/uninstall","/personal/agent/upload"];eA.interceptors.request.use(e=>{let t=eR.some(t=>e.url&&e.url.indexOf(t)>=0);return e.timeout||(e.timeout=t?6e4:1e4),e});let eM=(e,t,n)=>eA.get(e,{params:t,...n}),eN=(e,t,n)=>eA.post(e,t,n)},82579:function(e,t,n){"use strict";n.d(t,{RD:function(){return a},In:function(){return o},zM:function(){return i},je:function(){return l},DL:function(){return s},si:function(){return c},FD:function(){return u},s2:function(){return h},Rp:function(){return m},IN:function(){return f},ig:function(){return d},ol:function(){return p}});var r=n(85893),o=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1059 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11020",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M617.931034 971.034483H335.448276c62.834759 0 70.62069-140.994207 70.62069-211.862069h247.172413c0 70.867862 7.785931 211.862069 70.62069 211.862069h-105.931035z",fill:"#4DB5E3","p-id":"11021"}),(0,r.jsx)("path",{d:"M282.482759 953.37931h512a35.310345 35.310345 0 0 1 0 70.62069H282.482759a35.310345 35.310345 0 0 1 0-70.62069z",fill:"#47C5FC","p-id":"11022"}),(0,r.jsx)("path",{d:"M0 0m73.145379 0l913.019587 0q73.145379 0 73.145379 73.145379l0 683.502345q0 73.145379-73.145379 73.145379l-913.019587 0q-73.145379 0-73.145379-73.145379l0-683.502345q0-73.145379 73.145379-73.145379Z",fill:"#47C5FC","p-id":"11023"}),(0,r.jsx)("path",{d:"M52.965517 52.965517h953.379311v723.862069H52.965517z",fill:"#FFFFFF","p-id":"11024"}),(0,r.jsx)("path",{d:"M600.275862 564.965517h335.448276a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m0 88.275862h205.78869a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m278.068966 0H935.724138a17.655172 17.655172 0 0 1 0 35.310345h-57.37931a17.655172 17.655172 0 0 1 0-35.310345z",fill:"#C7EAF9","p-id":"11025"}),(0,r.jsx)("path",{d:"M194.206897 211.862069h282.482758a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m0 88.275862h171.59062a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m238.344827 0H476.689655a17.655172 17.655172 0 1 1 0 35.310345h-44.137931a17.655172 17.655172 0 1 1 0-35.310345z",fill:"#C7EAF9","p-id":"11026"}),(0,r.jsx)("path",{d:"M194.206897 176.551724H141.241379v52.965517a17.655172 17.655172 0 1 1-35.310345 0V158.896552a17.655172 17.655172 0 0 1 17.655173-17.655173h70.62069a17.655172 17.655172 0 0 1 0 35.310345z",fill:"#C7EAF9","p-id":"11027"}),(0,r.jsx)("path",{d:"M317.793103 564.965517h141.24138a141.241379 141.241379 0 1 1-141.24138-141.241379v141.241379z",fill:"#47C5FC","p-id":"11028"}),(0,r.jsx)("path",{d:"M335.448276 406.068966a141.241379 141.241379 0 0 1 141.241379 141.241379h-141.241379v-141.241379z",fill:"#FFDE21","p-id":"11029"}),(0,r.jsx)("path",{d:"M582.62069 176.551724h52.965517v247.172414h-52.965517z",fill:"#FFDE21","p-id":"11030"}),(0,r.jsx)("path",{d:"M688.551724 247.172414h52.965517v176.551724h-52.965517z",fill:"#47C5FC","p-id":"11031"}),(0,r.jsx)("path",{d:"M794.482759 300.137931h52.965517v123.586207h-52.965517z",fill:"#47C5FC","p-id":"11032"}),(0,r.jsx)("path",{d:"M900.413793 353.103448h52.965517v70.62069h-52.965517z",fill:"#FFDE21","p-id":"11033"})]})},i=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"13568",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M185.66 459H70.5c-5.54 0-10 4.48-10 10v373.26c0 5.52 4.46 10 10 10h115.16c5.52 0 10-4.48 10-10V469c0-5.52-4.48-10-10-10z m-10 373.26H80.5V479h95.16v353.26z",fill:"#23130D","p-id":"13569"}),(0,r.jsx)("path",{d:"M80.5 479h95.16v353.26H80.5z",fill:"#F9C139","p-id":"13570"}),(0,r.jsx)("path",{d:"M80.5 479H100v353.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13571"}),(0,r.jsx)("path",{d:"M156.16 479h19.5v353.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13572"}),(0,r.jsx)("path",{d:"M377.62 556.06h-115.16c-5.54 0-10 4.48-10 10v276.2c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10v-276.2c0-5.52-4.46-10-10-10z m-10 276.2h-95.16v-256.2h95.16v256.2z",fill:"#23130D","p-id":"13573"}),(0,r.jsx)("path",{d:"M272.46 576.06h95.16v256.2h-95.16z",fill:"#EC7063","p-id":"13574"}),(0,r.jsx)("path",{d:"M569.58 358.02h-115.16c-5.54 0-10 4.48-10 10v474.24c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V368.02c0-5.52-4.46-10-10-10z m-10 474.24h-95.16V378.02h95.16v454.24z",fill:"#23130D","p-id":"13575"}),(0,r.jsx)("path",{d:"M464.42 378.02h95.16v454.24h-95.16z",fill:"#72AF5F","p-id":"13576"}),(0,r.jsx)("path",{d:"M761.54 419.62h-115.16c-5.54 0-10 4.48-10 10v412.64c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V429.62c0-5.52-4.46-10-10-10z m-10 412.64h-95.16V439.62h95.16v392.64z",fill:"#23130D","p-id":"13577"}),(0,r.jsx)("path",{d:"M656.38 439.62h95.16v392.64h-95.16z",fill:"#EC7063","p-id":"13578"}),(0,r.jsx)("path",{d:"M953.5 281.94h-115.16c-5.52 0-10 4.48-10 10v550.32c0 5.52 4.48 10 10 10h115.16c5.54 0 10-4.48 10-10V291.94c0-5.52-4.46-10-10-10z m-10 550.32h-95.16V301.94h95.16v530.32z",fill:"#23130D","p-id":"13579"}),(0,r.jsx)("path",{d:"M848.34 301.94h95.16v530.32h-95.16z",fill:"#72AF5F","p-id":"13580"}),(0,r.jsx)("path",{d:"M953.51 883.768H70.49a10 10 0 1 0 0 20h883.02c5.524 0 10-4.476 10-10s-4.476-10-10-10zM895.92 120.24c-36.72 0-66.62 29.88-66.62 66.6 0 10.8 2.6 21 7.2 30.04l-84.72 60.34c-12.12-12.5-29.08-20.3-47.82-20.3-26.08 0-48.7 15.08-59.64 36.96l-66.56-21.38c0.56-3.46 0.86-7 0.86-10.62 0-36.72-29.88-66.6-66.62-66.6s-66.62 29.88-66.62 66.6c0 14.88 4.92 28.64 13.18 39.74l-99.32 100.32a66.24 66.24 0 0 0-39.2-12.8c-22.16 0-41.8 10.88-53.92 27.56l-75.9-39.12c2.26-6.7 3.5-13.84 3.5-21.28 0-36.72-29.88-66.6-66.62-66.6-36.72 0-66.6 29.88-66.6 66.6 0 36.74 29.88 66.62 66.6 66.62 22.16 0 41.82-10.88 53.94-27.58l75.9 39.14a66.316 66.316 0 0 0-3.52 21.28c0 36.72 29.88 66.6 66.62 66.6s66.62-29.88 66.62-66.6c0-14.9-4.92-28.64-13.2-39.76l99.32-100.32a66.18 66.18 0 0 0 39.22 12.82c26.08 0 48.7-15.08 59.62-36.96l66.58 21.38c-0.56 3.46-0.86 7-0.86 10.6 0 36.74 29.88 66.62 66.62 66.62s66.62-29.88 66.62-66.62c0-10.8-2.6-21-7.18-30.02l84.7-60.34c12.12 12.5 29.08 20.3 47.82 20.3 36.74 0 66.62-29.88 66.62-66.62 0-36.72-29.88-66.6-66.62-66.6zM127.1 402.92c-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.7-20.92 46.62-46.62 46.62z m192.94 99.44c-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62 0 25.7-20.92 46.6-46.62 46.6zM512 308.5c-25.7 0-46.62-20.92-46.62-46.62s20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6-20.92 46.62-46.62 46.62z m191.96 61.64c-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z m191.96-136.68c-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z",fill:"#23130D","p-id":"13581"}),(0,r.jsx)("path",{d:"M942.54 186.84c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13582"}),(0,r.jsx)("path",{d:"M750.58 323.52c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6z",fill:"#EC7063","p-id":"13583"}),(0,r.jsx)("path",{d:"M558.62 261.88c0 25.7-20.92 46.62-46.62 46.62s-46.62-20.92-46.62-46.62 20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13584"}),(0,r.jsx)("path",{d:"M366.66 455.76c0 25.7-20.92 46.6-46.62 46.6-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62z",fill:"#EC7063","p-id":"13585"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#F9C139","p-id":"13586"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM366.66 455.74c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM558.62 261.88c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM750.58 323.52c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM943.5 186.84c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6z",fill:"#1C1817",opacity:".2","p-id":"13587"}),(0,r.jsx)("path",{d:"M272.46 575.06h19.5v257.2h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13588"}),(0,r.jsx)("path",{d:"M348.12 575.06h19.5v257.2h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13589"}),(0,r.jsx)("path",{d:"M463.94 378.746h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13590"}),(0,r.jsx)("path",{d:"M539.6 378.746h19.5V832.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13591"}),(0,r.jsx)("path",{d:"M656.38 438.7h19.5v393.56h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13592"}),(0,r.jsx)("path",{d:"M732.04 438.7h19.5v393.56h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13593"}),(0,r.jsx)("path",{d:"M848.34 302.306h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13594"}),(0,r.jsx)("path",{d:"M924 302.306h19.5V832.26H924z",fill:"#1C1817",opacity:".2","p-id":"13595"})]})},a=function(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4946",className:"w-full h-full",children:(0,r.jsx)("path",{d:"M512 128C323.413333 128 170.666667 204.373333 170.666667 298.666667s152.746667 170.666667 341.333333 170.666666 341.333333-76.373333 341.333333-170.666666-152.746667-170.666667-341.333333-170.666667M170.666667 384v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667V384c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667m0 213.333333v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667v-128c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667z",fill:"#FFCA28","p-id":"4947"})})},l=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27999",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M701.781333 199.68a22.869333 22.869333 0 0 1 22.698667 22.186667v349.696h45.738667l34.133333-392.533334a22.698667 22.698667 0 0 0-20.650667-24.576L315.221333 113.834667A22.869333 22.869333 0 0 0 290.133333 134.656l-5.632 65.024z",fill:"#FFC670","p-id":"28000"}),(0,r.jsx)("path",{d:"M313.002667 674.816A25.6 25.6 0 0 1 338.773333 648.533333h154.965334a51.2 51.2 0 0 0 32.085333-11.264l69.12-54.954666a51.2 51.2 0 0 1 32.085333-11.264h97.450667V221.866667a22.869333 22.869333 0 0 0-22.698667-22.869334H231.253333A22.869333 22.869333 0 0 0 208.554667 221.866667v638.805333a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFF6E6","p-id":"28001"}),(0,r.jsx)("path",{d:"M724.48 571.562667v-94.890667a472.234667 472.234667 0 0 1-38.570667 94.890667zM313.002667 757.418667a514.56 514.56 0 0 1-104.448-15.36v119.466666a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFEBCC","p-id":"28002"}),(0,r.jsx)("path",{d:"M594.944 582.826667l-69.12 54.954666a51.2 51.2 0 0 1-32.085333 11.264h-154.965334a25.6 25.6 0 0 0-25.770666 25.770667v209.578667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666V597.333333a25.941333 25.941333 0 0 0-25.770666-25.770666h-162.645334a51.2 51.2 0 0 0-32.085333 11.264z",fill:"#96DDFF","p-id":"28003"}),(0,r.jsx)("path",{d:"M564.224 840.874667a971.776 971.776 0 0 1-251.221333-31.402667v74.922667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666v-74.922667a971.776 971.776 0 0 1-251.221333 31.402667z",fill:"#69BAF9","p-id":"28004"}),(0,r.jsx)("path",{d:"M789.674667 554.496h-0.853334l32.768-373.418667A39.936 39.936 0 0 0 785.066667 137.898667l-468.48-40.96A40.106667 40.106667 0 0 0 273.066667 133.12l-4.266667 49.664h-37.546667A39.765333 39.765333 0 0 0 191.488 221.866667v638.805333a39.765333 39.765333 0 0 0 39.765333 39.765333h68.266667a43.178667 43.178667 0 0 0 39.765333 26.794667h450.389334a43.008 43.008 0 0 0 42.837333-42.837333V597.333333a43.008 43.008 0 0 0-42.837333-42.837333zM307.2 136.533333a5.632 5.632 0 0 1 6.144-5.12l468.650667 40.96a5.632 5.632 0 0 1 5.12 6.144l-32.597334 375.978667h-12.970666V221.866667a39.765333 39.765333 0 0 0-39.765334-39.765334H303.445333z m-11.605333 538.794667v190.976h-64.341334a5.632 5.632 0 0 1-5.632-5.632V221.866667a5.632 5.632 0 0 1 5.632-5.632h470.528a5.632 5.632 0 0 1 5.632 5.632v332.629333h-80.384a68.266667 68.266667 0 0 0-42.666666 15.018667l-69.12 54.954666a34.133333 34.133333 0 0 1-21.504 7.509334h-154.965334a42.837333 42.837333 0 0 0-42.837333 42.837333z m502.784 209.066667a8.704 8.704 0 0 1-8.704 8.704H338.773333a8.704 8.704 0 0 1-8.704-8.704V674.816a8.704 8.704 0 0 1 8.704-8.704h154.965334a68.266667 68.266667 0 0 0 42.837333-15.018667l68.266667-54.954666a35.328 35.328 0 0 1 21.504-7.509334h162.645333a8.704 8.704 0 0 1 8.704 8.704z",fill:"#3D3D63","p-id":"28005"}),(0,r.jsx)("path",{d:"M744.789333 823.808h-64.341333a17.066667 17.066667 0 0 0 0 34.133333h64.341333a17.066667 17.066667 0 0 0 0-34.133333zM421.546667 309.248H512a17.066667 17.066667 0 0 0 0-34.133333h-90.453333a17.066667 17.066667 0 0 0 0 34.133333zM324.266667 406.016h283.989333a17.066667 17.066667 0 0 0 0-34.133333H324.266667a17.066667 17.066667 0 0 0 0 34.133333zM625.322667 474.965333a17.066667 17.066667 0 0 0-17.066667-17.066666H324.266667a17.066667 17.066667 0 0 0 0 34.133333h283.989333a17.066667 17.066667 0 0 0 17.066667-17.066667z",fill:"#3D3D63","p-id":"28006"})]})},s=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7028",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M163.560759 0.702493A152.675051 152.675051 0 0 0 11.822365 153.377544v632.243311a152.675051 152.675051 0 0 0 151.738394 151.738395h476.055797a152.675051 152.675051 0 0 0 152.675052-152.675052V314.950835A57.136062 57.136062 0 0 0 775.197622 274.674594L519.256163 17.093986a58.072719 58.072719 0 0 0-41.212898-17.093986z",fill:"#41CC8B","p-id":"7029"}),(0,r.jsx)("path",{d:"M775.197622 274.674594L519.256163 17.093986a57.604391 57.604391 0 0 0-29.738852-15.689001 5.854105 5.854105 0 0 0-6.790762 5.854105V131.834439a178.433112 178.433112 0 0 0 178.433113 178.433112H784.564189a5.854105 5.854105 0 0 0 5.854105-6.790762A55.965241 55.965241 0 0 0 775.197622 274.674594z",fill:"#05B25F","p-id":"7030"}),(0,r.jsx)("path",{d:"M667.482095 281.69952h114.03796a51.98445 51.98445 0 0 0-6.322433-7.024926L519.256163 17.093986l-7.727418-6.322433v114.506288A156.187514 156.187514 0 0 0 667.482095 281.69952z",fill:"#B0F9D7","p-id":"7031"}),(0,r.jsx)("path",{d:"M92.140681 419.856391h117.082095v28.333867H128.904459v39.807913h67.205123v28.802195H128.904459v46.832838h81.957466v28.802195H92.140681zM274.554585 523.825292L232.639195 462.005946h40.510405l14.284015 23.416419q6.322433 11.239881 12.644867 21.777269l5.151612-10.771553 6.322433-11.005716 11.942374-23.416419H363.068649l-41.91539 66.268465 44.72536 63.69266h-40.978733l-15.923165-23.416419L302.185959 555.671621l-7.024925-11.239881-7.024926 11.239881-6.088269 11.70821-13.347359 23.416419H229.829225zM400.534919 576.980563a65.565973 65.565973 0 0 1-19.903956-50.111137 64.629316 64.629316 0 0 1 21.777269-50.813629 76.57169 76.57169 0 0 1 51.047794-17.796478 66.50263 66.50263 0 0 1 41.681225 14.518179l-17.796478 22.011434a35.124628 35.124628 0 0 0-22.011434-8.664075 33.251315 33.251315 0 0 0-26.226389 11.239881 41.447062 41.447062 0 0 0-10.303224 29.504688 40.978733 40.978733 0 0 0 10.06906 28.802195 32.782987 32.782987 0 0 0 25.523896 11.005717 46.832838 46.832838 0 0 0 27.865539-11.005717l14.752344 23.416419a72.590899 72.590899 0 0 1-46.832838 15.689001 70.249257 70.249257 0 0 1-49.642808-17.796478zM535.88182 576.746398a63.926824 63.926824 0 0 1-20.840613-49.876972 67.439287 67.439287 0 0 1 20.372285-50.345301 65.565973 65.565973 0 0 1 46.832838-18.264806 57.838555 57.838555 0 0 1 44.72536 17.562314 65.331809 65.331809 0 0 1 14.986508 44.72536 51.047793 51.047793 0 0 1-1.873313 15.454836h-88.514064a35.827121 35.827121 0 0 0 13.113195 23.416419 40.276241 40.276241 0 0 0 26.460553 8.429911 62.990167 62.990167 0 0 0 32.080494-9.132403l12.87903 21.074777a93.665676 93.665676 0 0 1-50.111136 14.284015 71.420078 71.420078 0 0 1-50.111137-17.32815z m73.527556-63.224331c0-19.201464-9.132403-28.802195-27.163046-28.802195a29.504688 29.504688 0 0 0-20.138121 7.25909 33.719643 33.719643 0 0 0-11.005716 21.543105zM672.399543 555.671621v-149.396752h37.232106V555.671621a10.771553 10.771553 0 0 0 2.575806 7.961583 6.322433 6.322433 0 0 0 5.151612 2.341642h5.151612l4.44912 25.289732a53.857764 53.857764 0 0 1-19.435628 3.044135c-23.416419 0.468328-35.124628-12.644866-35.124628-38.637092z",fill:"#F5F6FA","p-id":"7032"})]})},c=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"34873",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M392.32 403.84a48 48 0 0 1-48 48h-96a48 48 0 0 1-48-48V236.16h192z",fill:"#EA5E5A","p-id":"34874"}),(0,r.jsx)("path",{d:"M259.84 176h24.32v24.32h-24.32zM307.84 176h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34875"}),(0,r.jsx)("path",{d:"M380.16 236.16h-24.32V152.32H236.16v83.84h-24.32V128h168.32v108.16z",fill:"#34303D","p-id":"34876"}),(0,r.jsx)("path",{d:"M344.32 464h-96a60.16 60.16 0 0 1-60.16-60.16V224h215.68v179.84a60.16 60.16 0 0 1-60.16 60.16zM211.84 248.32v155.52a35.84 35.84 0 0 0 35.84 35.84h96a35.84 35.84 0 0 0 35.84-35.84V248.32z",fill:"#34303D","p-id":"34877"}),(0,r.jsx)("path",{d:"M236.16 272h120.32v24.32H236.16zM236.16 320h120.32v24.32H236.16zM320 512h-48a24.32 24.32 0 0 1-23.68-23.68v-36.48h24.32v35.84H320v-35.84h24.32v35.84A24.32 24.32 0 0 1 320 512z",fill:"#34303D","p-id":"34878"}),(0,r.jsx)("path",{d:"M632.32 620.16a48 48 0 0 1 48-48h96a48 48 0 0 1 48 48v168.32h-192z",fill:"#EA5E5A","p-id":"34879"}),(0,r.jsx)("path",{d:"M739.84 824.32h24.32v24.32h-24.32zM691.84 824.32h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34880"}),(0,r.jsx)("path",{d:"M812.16 896h-168.32v-108.16h24.32v84.48h119.68v-84.48h24.32V896z",fill:"#34303D","p-id":"34881"}),(0,r.jsx)("path",{d:"M835.84 800H620.16V620.16a60.16 60.16 0 0 1 60.16-60.16h96a60.16 60.16 0 0 1 60.16 60.16z m-192-23.68h168.32V620.16a35.84 35.84 0 0 0-35.84-35.84h-96a35.84 35.84 0 0 0-35.84 35.84z",fill:"#34303D","p-id":"34882"}),(0,r.jsx)("path",{d:"M668.16 680.32h120.32v24.32h-120.32zM668.16 728.32h120.32v24.32h-120.32zM776.32 572.16h-23.68v-35.84H704v35.84h-23.68v-35.84A24.32 24.32 0 0 1 704 512h48a24.32 24.32 0 0 1 24.32 24.32z",fill:"#34303D","p-id":"34883"}),(0,r.jsx)("path",{d:"M403.84 848a120.32 120.32 0 0 1-119.68-119.68V499.84h24.32v227.84a96 96 0 0 0 192 0V296.32a120.32 120.32 0 0 1 240 0v227.84h-23.68V296.32a96 96 0 0 0-192 0v432a120.32 120.32 0 0 1-119.68 120.32z",fill:"#34303D","p-id":"34884"}),(0,r.jsx)("path",{d:"M608 284.16h24.32v24.32H608zM608 332.16h24.32v24.32H608zM608 380.16h24.32v24.32H608zM392.32 620.16h24.32v24.32h-24.32zM392.32 668.16h24.32v24.32h-24.32zM392.32 716.16h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34885"}),(0,r.jsx)("path",{d:"M691.84 296.32h-23.68a48 48 0 0 0-96 0h-24.32a72.32 72.32 0 0 1 144 0zM403.84 800a72.32 72.32 0 0 1-71.68-71.68h24.32a48 48 0 0 0 96 0h24.32a72.32 72.32 0 0 1-72.96 71.68z",fill:"#34303D","p-id":"34886"})]})},u=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z","p-id":"5941"})})},f=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})},d=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})},p=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z","p-id":"7802"})})};function h(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4602",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zM296 400c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z","p-id":"4603",fill:"#87d068"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z","p-id":"4604",fill:"#87d068"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4605",fill:"#87d068"})]})}function m(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4838",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM488 456v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8z","p-id":"4839",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4840",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M544.1 736.4c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673c-5.3 4.1-3.5 12.5 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l0.6-95.4c0-6.7-7.6-10.5-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-0.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9c5.3-4.1 3.5-12.5-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-0.6 95.4c0 6.7 7.6 10.5 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7 0.2-4.5-3.5-8.3-8-8.3z","p-id":"4841",fill:"#2db7f5"})]})}n(67294)},32665:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(38754),n(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return c.redirect},notFound:function(){return u.notFound}});let r=n(67294),o=n(27473),i=n(35802),a=n(32665),l=n(43512),s=n(98751),c=n(96885),u=n(86323),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(i.SearchParamsContext),t=(0,r.useMemo)(()=>e?new p(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(i.PathnameContext)}function g(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],o=Array.isArray(r),i=o?r[1]:r;!i||i.startsWith("__PAGE__")||(o&&(n[r[0]]=r[1]),n=e(t,n))}return n}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(o.LayoutRouterContext);return function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(i,n,!1,o))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return o}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return l},redirect:function(){return s},isRedirectError:function(){return c},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return f}});let i=n(68214),a="NEXT_REDIRECT";function l(e,t){let n=Error(a);n.digest=a+";"+t+";"+e;let r=i.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function s(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r]=e.digest.split(";",3);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r}function u(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),l=n(38083),s=n(2478),c=n(76226);n(59941);let u=r._(n(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,onLoad:$,onError:O,...k}=e;return g=u?"lazy":g,i.default.createElement("img",{...k,...m(f),loading:g,width:o,height:r,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,S,b))},[v,p,w,C,S,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,S,b)},onError:e=>{E(!0),"blur"===p&&S(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:S,height:E,fill:$,style:O,onLoad:k,onLoadingComplete:j,placeholder:P="empty",blurDataURL:Z,fetchPriority:_,layout:A,objectFit:R,objectPosition:M,lazyBoundary:N,lazyRoot:T,...F}=e,I=(0,i.useContext)(c.ImageConfigContext),L=(0,i.useMemo)(()=>{let e=f||I||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[I]),B=F.loader||u.default;delete F.loader;let z="__next_img_default"in B;if(z){if("custom"===L.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&($=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!v&&(v=t)}let D="",H=p(S),V=p(E);if("object"==typeof(n=h)&&(d(n)||void 0!==n.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,Z=Z||e.blurDataURL,D=e.src,!$){if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:D)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),L.unoptimized&&(y=!0),z&&h.endsWith(".svg")&&!L.dangerouslyAllowSVG&&(y=!0),b&&(_="high");let[W,q]=(0,i.useState)(!1),[K,G]=(0,i.useState)(!1),X=p(C),Y=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:M}:{},K?{}:{color:"transparent"},O),J="blur"===P&&Z&&!W?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:r,blurHeight:o,blurDataURL:Z,objectFit:Y.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:L,src:h,unoptimized:y,width:H,quality:X,sizes:v,loader:B}),ee=h,et=(0,i.useRef)(k);(0,i.useEffect)(()=>{et.current=k},[k]);let en=(0,i.useRef)(j);(0,i.useEffect)(()=>{en.current=j},[j]);let er={isLazy:U,imgAttributes:Q,heightInt:V,widthInt:H,qualityInt:X,className:w,imgStyle:Y,blurStyle:J,loading:x,config:L,fetchPriority:_,fill:$,unoptimized:y,placeholder:P,loader:B,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:q,setShowAltText:G,...F};return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...er,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:F.crossOrigin,referrerPolicy:F.referrerPolicy,...m(_)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),l=n(28904),s=n(95514),c=n(27521),u=n(44293),f=n(27473),d=n(81307),p=n(75476),h=n(66318),m=n(29382),g=new Set;function v(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(g.has(i))return;g.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:x=null,passHref:w,replace:C,shallow:S,scroll:E,locale:$,onClick:O,onMouseEnter:k,onTouchStart:j,legacyBehavior:P=!1,...Z}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let _=!1!==x,A=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,R=o.default.useContext(u.RouterContext),M=o.default.useContext(f.AppRouterContext),N=null!=R?R:M,T=!R,{href:F,as:I}=o.default.useMemo(()=>{if(!R){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(R,l,!0);return{href:e,as:g?(0,i.resolveHref)(R,g):t||e}},[R,l,g]),L=o.default.useRef(F),B=o.default.useRef(I);P&&(r=o.default.Children.only(n));let z=P?r&&"object"==typeof r&&r.ref:t,[D,H,V]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(B.current!==I||L.current!==F)&&(V(),B.current=I,L.current=F),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[I,z,F,V,D]);o.default.useEffect(()=>{N&&H&&_&&v(N,F,I,{locale:$},{kind:A},T)},[I,F,H,$,_,null==R?void 0:R.locale,N,T,A]);let W={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,N,F,I,C,S,E,$,T,_)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},T)},onTouchStart(e){P||"function"!=typeof j||j(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:A},T)}};if((0,s.isAbsoluteUrl)(I))W.href=I;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==$?$:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)(I,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);W.href=t||(0,h.addBasePath)((0,c.addLocale)(I,e,null==R?void 0:R.defaultLocale))}return P?o.default.cloneElement(r,W):o.default.createElement("a",{...Z,...W},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!i,[u,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,d.current]);let h=(0,r.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=r||t,s=o||n,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},98751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(61757),o=r._(n(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},48271:function(e,t,n){"use strict";let r,o;n.r(t),n.d(t,{default:function(){return eT}});var i=n(85893),a=n(67294),l=n(41468),s=n(50489),c=n(98399),u=n(82579),f=n(59766),d=n(87462),p=n(63366),h=n(71387),m=n(70917);function g(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,i.jsx)(m.xB,{styles:r})}var v=n(56760),y=n(71927);let b="mode",x="color-scheme",w="data-color-scheme";function C(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function S(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function E(e,t){let n;if("undefined"!=typeof window){try{(n=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return n||t}}let $=["colorSchemes","components","generateCssVars","cssVarPrefix"];var O=n(1812),k=n(13951),j=n(2548);let{CssVarsProvider:P,useColorScheme:Z,getInitColorSchemeScript:_}=function(e){let{themeId:t,theme:n={},attribute:r=w,modeStorageKey:o=b,colorSchemeStorageKey:l=x,defaultMode:s="light",defaultColorScheme:c,disableTransitionOnChange:u=!1,resolveTheme:m,excludeVariablesFromRoot:O}=e;n.colorSchemes&&("string"!=typeof c||n.colorSchemes[c])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.light])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.dark])||console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let k=a.createContext(void 0),j="string"==typeof c?c:c.light,P="string"==typeof c?c:c.dark;return{CssVarsProvider:function({children:e,theme:h=n,modeStorageKey:w=o,colorSchemeStorageKey:j=l,attribute:P=r,defaultMode:Z=s,defaultColorScheme:_=c,disableTransitionOnChange:A=u,storageWindow:R="undefined"==typeof window?void 0:window,documentNode:M="undefined"==typeof document?void 0:document,colorSchemeNode:N="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:T=":root",disableNestedContext:F=!1,disableStyleSheetGeneration:I=!1}){let L=a.useRef(!1),B=(0,v.Z)(),z=a.useContext(k),D=!!z&&!F,H=h[t],V=H||h,{colorSchemes:U={},components:W={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:K}=V,G=(0,p.Z)(V,$),X=Object.keys(U),Y="string"==typeof _?_:_.light,J="string"==typeof _?_:_.dark,{mode:Q,setMode:ee,systemMode:et,lightColorScheme:en,darkColorScheme:er,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=b,colorSchemeStorageKey:l=x,storageWindow:s="undefined"==typeof window?void 0:window}=e,c=o.join(","),[u,f]=a.useState(()=>{let e=E(i,t),o=E(`${l}-light`,n),a=E(`${l}-dark`,r);return{mode:e,systemMode:C(e),lightColorScheme:o,darkColorScheme:a}}),p=S(u,e=>"light"===e?u.lightColorScheme:"dark"===e?u.darkColorScheme:void 0),h=a.useCallback(e=>{f(n=>{if(e===n.mode)return n;let r=e||t;try{localStorage.setItem(i,r)}catch(e){}return(0,d.Z)({},n,{mode:r,systemMode:C(r)})})},[i,t]),m=a.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):f(t=>{let n=(0,d.Z)({},t);return S(t,t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)}),n}):f(t=>{let o=(0,d.Z)({},t),i=null===e.light?n:e.light,a=null===e.dark?r:e.dark;if(i){if(c.includes(i)){o.lightColorScheme=i;try{localStorage.setItem(`${l}-light`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)}if(a){if(c.includes(a)){o.darkColorScheme=a;try{localStorage.setItem(`${l}-dark`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}return o}):f(e=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch(e){}return(0,d.Z)({},e,{lightColorScheme:n,darkColorScheme:r})})},[c,l,n,r]),g=a.useCallback(e=>{"system"===u.mode&&f(t=>(0,d.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[u.mode]),v=a.useRef(g);return v.current=g,a.useEffect(()=>{let e=(...e)=>v.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),a.useEffect(()=>{let e=e=>{let n=e.newValue;"string"==typeof e.key&&e.key.startsWith(l)&&(!n||c.match(n))&&(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key===i&&(!n||["light","dark","system"].includes(n))&&h(n||t)};if(s)return s.addEventListener("storage",e),()=>s.removeEventListener("storage",e)},[m,h,i,l,c,t,s]),(0,d.Z)({},u,{colorScheme:p,setMode:h,setColorScheme:m})}({supportedColorSchemes:X,defaultLightColorScheme:Y,defaultDarkColorScheme:J,modeStorageKey:w,colorSchemeStorageKey:j,defaultMode:Z,storageWindow:R}),ea=Q,el=eo;D&&(ea=z.mode,el=z.colorScheme);let es=ea||("system"===Z?s:Z),ec=el||("dark"===es?J:Y),{css:eu,vars:ef}=q(),ed=(0,d.Z)({},G,{components:W,colorSchemes:U,cssVarPrefix:K,vars:ef,getColorSchemeSelector:e=>`[${P}="${e}"] &`}),ep={},eh={};Object.entries(U).forEach(([e,t])=>{let{css:n,vars:r}=q(e);ed.vars=(0,f.Z)(ed.vars,r),e===ec&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ed[e]=(0,d.Z)({},ed[e],t[e]):ed[e]=t[e]}),ed.palette&&(ed.palette.colorScheme=e));let o="string"==typeof _?_:"dark"===Z?_.dark:_.light;if(e===o){if(O){let t={};O(K).forEach(e=>{t[e]=n[e],delete n[e]}),ep[`[${P}="${e}"]`]=t}ep[`${T}, [${P}="${e}"]`]=n}else eh[`${":root"===T?"":T}[${P}="${e}"]`]=n}),ed.vars=(0,f.Z)(ed.vars,ef),a.useEffect(()=>{el&&N&&N.setAttribute(P,el)},[el,P,N]),a.useEffect(()=>{let e;if(A&&L.current&&M){let t=M.createElement("style");t.appendChild(M.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),M.head.appendChild(t),window.getComputedStyle(M.body),e=setTimeout(()=>{M.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,A,M]),a.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);let em=a.useMemo(()=>({mode:ea,systemMode:et,setMode:ee,lightColorScheme:en,darkColorScheme:er,colorScheme:el,setColorScheme:ei,allColorSchemes:X}),[X,el,er,en,ea,ei,ee,et]),eg=!0;(I||D&&(null==B?void 0:B.cssVarPrefix)===K)&&(eg=!1);let ev=(0,i.jsxs)(a.Fragment,{children:[eg&&(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(g,{styles:{[T]:eu}}),(0,i.jsx)(g,{styles:ep}),(0,i.jsx)(g,{styles:eh})]}),(0,i.jsx)(y.Z,{themeId:H?t:void 0,theme:m?m(ed):ed,children:e})]});return D?ev:(0,i.jsx)(k.Provider,{value:em,children:ev})},useColorScheme:()=>{let e=a.useContext(k);if(!e)throw Error((0,h.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=b,colorSchemeStorageKey:a=x,attribute:l=w,colorSchemeNode:s="document.documentElement"}=e||{};return(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=u}function x(){var e,n,r,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,n=i-h,r=t-e,g?l(r,u-n):r))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,n=o(),r=b(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(x,t),m?y(e):f;if(g)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},23493:function(e,t,n){var r=n(23279),o=n(13218);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?a:+e}},83454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(77663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48271)}])},41468:function(e,t,n){"use strict";n.d(t,{R:function(){return c},p:function(){return s}});var r=n(85893),o=n(67294),i=n(50489),a=n(577),l=n(39332);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",dbParam:void 0,dialogueList:[],agentList:[],setAgentList:()=>{},setModel:()=>{},setIsContract:()=>{},setIsMenuExpand:()=>{},setDbParam:()=>void 0,queryDialogueList:()=>{},refreshDialogList:()=>{},history:[],setHistory:()=>{},docId:void 0,setDocId:()=>{}}),c=e=>{var t,n,c;let{children:u}=e,f=(0,l.useSearchParams)(),d=null!==(t=null==f?void 0:f.get("id"))&&void 0!==t?t:"",p=null!==(n=null==f?void 0:f.get("scene"))&&void 0!==n?n:"",h=null!==(c=null==f?void 0:f.get("db_param"))&&void 0!==c?c:"",[m,g]=(0,o.useState)(!1),[v,y]=(0,o.useState)(""),[b,x]=(0,o.useState)("chat_dashboard"!==p),[w,C]=(0,o.useState)(h),[S,E]=(0,o.useState)([]),[$,O]=(0,o.useState)([]),[k,j]=(0,o.useState)(),{run:P,data:Z=[],refresh:_}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.iP)());return null!=e?e:[]},{manual:!0}),{data:M=[]}=(0,a.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Vw)());return null!=e?e:[]});(0,o.useEffect)(()=>{y(M[0])},[M,null==M?void 0:M.length]);let A=(0,o.useMemo)(()=>Z.find(e=>e.conv_uid===d),[d,Z]);return(0,r.jsx)(s.Provider,{value:{isContract:m,isMenuExpand:b,scene:p,chatId:d,modelList:M,model:v,dbParam:w||h,dialogueList:Z,agentList:S,setAgentList:E,setModel:y,setIsContract:g,setIsMenuExpand:x,setDbParam:C,queryDialogueList:P,refreshDialogList:_,currentDialogue:A,history:$,setHistory:O,docId:k,setDocId:j},children:u})}},58989:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});let r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{e(...n)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...n])})}}}function l(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}function c(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=r(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function u(e,t,n){let{obj:r,k:o}=c(e,t,Object);r[o]=n}function f(e,t){let{obj:n,k:r}=c(e,t);if(n)return n[r]}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function h(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>p[e]):e}let m=[" ",",","?","!",";"];function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),o=e;for(let e=0;ee+i;)i++,l=o[a=r.slice(e,e+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=r.slice(e+i).join(n);if(s)return g(l,s,n);return}o=o[r[e]]}return o}function v(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class y extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));let l=f(this.data,a);return l||!i||"string"!=typeof n?l:g(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),u(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?function e(t,n,r){for(let o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o]);return t}(l,n,o):l={...l,...n},u(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),n=t&&Object.keys(t)||[];return!!n.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var b={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))}),t}};let x={};class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=m.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let o=RegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(g&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof m&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u):e}if(o){let e="[object Array]"===h,n=e?[]:{},r=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=f[e])}f=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)(f=f.join(m))&&(f=this.extendTranslation(f,e,t,n));else{let r=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=w.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",m=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(r=!0,f=m),this.isValidLookup(f)||(a=!0,f=i);let g=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=g&&a?void 0:f,y=d&&m!==f&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?m:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let o=d&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,y,t),this.emit("missingKey",e,l,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(n=>{r([e],i+n,t[`defaultValue${n}`]||m)})}):r(e,i,m))}f=this.extendTranslation(f,e,t,u,n),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?f:void 0):this.options.parseMissingKeyHandler(f))}return r?(u.res=f,u):f}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),l){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!x[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(x[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{let i;if(this.isValidLookup(t))return;o=n;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(r)&&l.push(s+e.replace(r,this.options.pluralSeparator)),f&&l.push(s+t)),d){let n=`${s}${this.options.contextSeparator}${a.context}`;l.push(n),u&&(l.push(n+e),a.ordinal&&0===e.indexOf(r)&&l.push(n+e.replace(r,this.options.pluralSeparator)),f&&l.push(n+t))}}for(;i=l.pop();)this.isValidLookup(t)||(r=i,t=this.getResource(n,e,i,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function C(e){return e.charAt(0).toUpperCase()+e.slice(1)}class S{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=v(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=C(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=C(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&0===e.indexOf(n))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let E=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},O=["v1","v2","v3"],k=["v4"],j={zero:0,one:1,two:2,few:3,many:4,other:5};class P{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),(!this.options.compatibilityJSON||k.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return E.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(v(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>j[e]-j[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}function Z(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,n){let r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&void 0===(i=g(e,n,r))&&(i=g(t,n,r)),i}class _{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:h,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(n,"g")}interpolate(e,t,n,r){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let o=Z(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Z(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}];return p.forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(i=u(n))){if("function"==typeof f){let t=f(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),l=e,c=!0}if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function M(e){let t={};return function(n,r,o){let i=r+JSON.stringify(o),a=t[i];return a||(a=e(v(r),o),t[i]=a),a(n)}}class A{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:M((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:M((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:M((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:M((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:M((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=M(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let o=r[1].substring(0,r[1].length-1);if("currency"===t&&0>o.indexOf(":"))n.currency||(n.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))n.range||(n.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class R extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let o={},i={},a={},l={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){let r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:o,k:i}=c(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)})(n.loaded,[o],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)},o);return}i(a,l)},l=this.backend[n].bind(this.backend);if(2===l.length){try{let n=l(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,n,r,l):s(e,t,n,r))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function N(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function T(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function F(){}class I extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=T(e),this.services={},this.logger=i,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=N();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...T(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=A);let n=new S(this.options);this.store=new y(this.options.resources,this.options);let a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new P(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new _(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new R(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=F),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=l(),s=()=>{let e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{if(!t||"cimode"===t)return;let n=this.services.languageUtils.toResolveHierarchy(t);n.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(r)t(r);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=F),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&b.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=l();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,r.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!r||i(o,e)))}loadNamespaces(e,t){let n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=l();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],o=e.filter(e=>0>r.indexOf(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new S(N());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new I(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},o=new I(r);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new y(this.store.data,r),o.services.resourceStore=o.store),o.translator=new w(o.services,r),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new v.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),i=new v.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new v.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}}}};let C=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:h,motionDurationMid:m,motionEaseInOut:g,fontSize:b,lineHeight:x,width:C,notificationIconSize:S,colorText:E}=e,$=`${n}-notice`,O=new v.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:C},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),k=new v.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:i,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),j={position:"relative",width:C,maxWidth:`calc(100vw - ${2*h}px)`,marginBottom:i,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:b,color:E},[`&${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+S,fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.marginSM+S,fontSize:b},[`${$}-icon`]:{position:"absolute",fontSize:S,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${$}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${$}-btn`]:{float:"right",marginTop:e.marginSM}};return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,y.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:h,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[$]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[$]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:k,animationPlayState:"running"}}),w(e)),{"&-rtl":{direction:"rtl",[`${$}-btn`]:{float:"left"}}})},{[n]:{[$]:Object.assign({},j)}},{[`${$}-pure-panel`]:Object.assign(Object.assign({},j),{margin:0})}]};var S=(0,b.Z)("Notification",e=>{let t=e.paddingMD,n=e.paddingLG,r=(0,x.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG,notificationMarginBottom:e.margin,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginEdge:e.marginLG,animationMaxHeight:150});return[C(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function $(e,t){return null===t||!1===t?null:t||o.createElement("span",{className:`${e}-close-x`},o.createElement(c.Z,{className:`${e}-close-icon`}))}f.Z,l.Z,s.Z,u.Z,d.Z;let O={success:l.Z,info:f.Z,error:s.Z,warning:u.Z},k=e=>{let{prefixCls:t,icon:n,type:r,message:i,description:a,btn:l,role:s="alert"}=e,c=null;return n?c=o.createElement("span",{className:`${t}-icon`},n):r&&(c=o.createElement(O[r]||null,{className:h()(`${t}-icon`,`${t}-icon-${r}`)})),o.createElement("div",{className:h()({[`${t}-with-icon`]:c}),role:s},c,o.createElement("div",{className:`${t}-message`},i),o.createElement("div",{className:`${t}-description`},a),l&&o.createElement("div",{className:`${t}-btn`},l))};var j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let P=e=>{let{children:t,prefixCls:n}=e,[,r]=S(n);return o.createElement(m.JB,{classNames:{list:r,notice:r}},t)},Z=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(P,{prefixCls:n,key:r},e)},_=o.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:l,rtl:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,notification:d}=o.useContext(g.E_),p=i||u("notification"),[v,y]=(0,m.lm)({prefixCls:p,style:e=>(function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r})(e,null!=n?n:24,null!=r?r:24),className:()=>h()({[`${p}-rtl`]:s}),motion:()=>({motionName:`${p}-fade`}),closable:!0,closeIcon:$(p),duration:4.5,getContainer:()=>(null==a?void 0:a())||(null==f?void 0:f())||document.body,maxCount:l,onAllRemoved:c,renderNotifications:Z});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},v),{prefixCls:p,notification:d})),y});function M(e){let t=o.useRef(null),n=o.useMemo(()=>{let n=n=>{var r;if(!t.current)return;let{open:i,prefixCls:a,notification:l}=t.current,s=`${a}-notice`,{message:c,description:u,icon:f,type:d,btn:p,className:m,style:g,role:v="alert",closeIcon:y}=n,b=j(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),x=$(s,y);return i(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:"topRight"},b),{content:o.createElement(k,{prefixCls:s,icon:f,type:d,message:c,description:u,btn:p,role:v}),className:h()(d&&`${s}-${d}`,m,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),closeIcon:x,closable:!!x}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),r},[]);return[n,o.createElement(_,Object.assign({key:"notification-holder"},e,{ref:t}))]}let A=null,R=e=>e(),N=[],T={};function F(){let{prefixCls:e,getContainer:t,rtl:n,maxCount:r,top:o,bottom:i}=T,l=null!=e?e:(0,a.w6)().getPrefixCls("notification"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,getContainer:()=>s,rtl:n,maxCount:r,top:o,bottom:i}}let I=o.forwardRef((e,t)=>{let[n,r]=o.useState(F),[i,l]=M(n),s=(0,a.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{r(F)};return o.useEffect(d,[]),o.useImperativeHandle(t,()=>{let e=Object.assign({},i);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}}),{instance:e,sync:d}}),o.createElement(a.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},l)});function L(){if(!A){let e=document.createDocumentFragment(),t={fragment:e};A=t,R(()=>{(0,i.s)(o.createElement(I,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,L())})}}),e)});return}A.instance&&(N.forEach(e=>{switch(e.type){case"open":R(()=>{A.instance.open(Object.assign(Object.assign({},T),e.config))});break;case"destroy":R(()=>{null==A||A.instance.destroy(e.key)})}}),N=[])}function B(e){N.push({type:"open",config:e}),L()}let z={open:B,destroy:function(e){N.push({type:"destroy",key:e}),L()},config:function(e){T=Object.assign(Object.assign({},T),e),R(()=>{var e;null===(e=null==A?void 0:A.sync)||void 0===e||e.call(A)})},useNotification:function(e){return M(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:n,icon:r,type:i,message:a,description:l,btn:s,closable:c=!0,closeIcon:u}=e,f=E(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:d}=o.useContext(g.E_),p=t||d("notification"),v=`${p}-notice`,[,y]=S(p);return o.createElement(m.qX,Object.assign({},f,{prefixCls:p,className:h()(n,y,`${v}-pure-panel`),eventKey:"pure",duration:null,closable:c,closeIcon:$(p,u),content:o.createElement(k,{prefixCls:v,icon:r,type:i,message:a,description:l,btn:s})}))}};["success","info","warning","error"].forEach(e=>{z[e]=t=>B(Object.assign(Object.assign({},t),{type:e}))});let D=(e,t)=>e.then(e=>{let{data:n}=e;if(!n)throw Error("Network Error!");if(!n.success){if("*"===t||n.err_code&&t&&t.includes(n.err_code));else{var r;z.error({message:"Request error",description:null!==(r=null==n?void 0:n.err_msg)&&void 0!==r?r:"The interface is abnormal. Please try again later"})}}return[null,n.data,n,e]}).catch(e=>(z.error({message:"Request error",description:e.message}),[e,null,null,null])),H=()=>eN("/api/v1/chat/dialogue/scenes"),V=e=>eN("/api/v1/chat/dialogue/new",e),U=()=>eR("/api/v1/chat/db/list"),W=()=>eR("/api/v1/chat/db/support/type"),q=e=>eN("/api/v1/chat/db/delete?db_name=".concat(e)),K=e=>eN("/api/v1/chat/db/edit",e),G=e=>eN("/api/v1/chat/db/add",e),X=e=>eN("/api/v1/chat/db/test/connect",e),Y=()=>eR("/api/v1/chat/dialogue/list"),J=()=>eR("/api/v1/model/types"),Q=e=>eN("/api/v1/chat/mode/params/list?chat_mode=".concat(e)),ee=e=>eR("/api/v1/chat/dialogue/messages/history?con_uid=".concat(e)),et=e=>{let{convUid:t,chatMode:n,data:r,config:o,model:i}=e;return eN("/api/v1/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(n,"&model_name=").concat(i),r,{headers:{"Content-Type":"multipart/form-data"},...o})},en=e=>eN("/api/v1/chat/dialogue/delete?con_uid=".concat(e)),er=e=>eN("/knowledge/".concat(e,"/arguments"),{}),eo=(e,t)=>eN("/knowledge/".concat(e,"/argument/save"),t),ei=()=>eN("/knowledge/space/list",{}),ea=(e,t)=>eN("/knowledge/".concat(e,"/document/list"),t),el=(e,t)=>eN("/knowledge/".concat(e,"/document/add"),t),es=e=>eN("/knowledge/space/add",e),ec=()=>eR("/knowledge/document/chunkstrategies"),eu=(e,t)=>eN("/knowledge/".concat(e,"/document/sync"),t),ef=(e,t)=>eN("/knowledge/".concat(e,"/document/sync_batch"),t),ed=(e,t)=>eN("/knowledge/".concat(e,"/document/upload"),t),ep=(e,t)=>eN("/knowledge/".concat(e,"/chunk/list"),t),eh=(e,t)=>eN("/knowledge/".concat(e,"/document/delete"),t),em=e=>eN("/knowledge/space/delete",e),eg=()=>eR("/api/v1/worker/model/list"),ev=e=>eN("/api/v1/worker/model/stop",e),ey=e=>eN("/api/v1/worker/model/start",e),eb=()=>eR("/api/v1/worker/model/params"),ex=e=>eN("/api/v1/agent/query",e),ew=e=>eN("/api/v1/agent/hub/update",null!=e?e:{channel:"",url:"",branch:"",authorization:""}),eC=e=>eN("/api/v1/agent/my",void 0,{params:{user:e}}),eS=(e,t)=>eN("/api/v1/agent/install",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),eE=(e,t)=>eN("/api/v1/agent/uninstall",void 0,{params:{plugin_name:e,user:t},timeout:6e4}),e$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return eN("/api/v1/personal/agent/upload",t,{params:{user:e},headers:{"Content-Type":"multipart/form-data"},...n})},eO=()=>eR("/api/v1/feedback/select",void 0),ek=(e,t)=>eR("/api/v1/feedback/find?conv_uid=".concat(e,"&conv_index=").concat(t),void 0),ej=e=>{let{data:t,config:n}=e;return eN("/api/v1/feedback/commit",t,{headers:{"Content-Type":"application/json"},...n})},eP=e=>eN("/prompt/list",e),eZ=e=>eN("/prompt/update",e),e_=e=>eN("/prompt/add",e),eM=r.Z.create({baseURL:"http://127.0.0.1:5001"}),eA=["/db/add","/db/test/connect","/db/summary","/params/file/load","/chat/prepare","/model/start","/model/stop","/editor/sql/run","/sql/editor/submit","/editor/chart/run","/chart/editor/submit","/document/upload","/document/sync","/agent/install","/agent/uninstall","/personal/agent/upload"];eM.interceptors.request.use(e=>{let t=eA.some(t=>e.url&&e.url.indexOf(t)>=0);return e.timeout||(e.timeout=t?6e4:1e4),e});let eR=(e,t,n)=>eM.get(e,{params:t,...n}),eN=(e,t,n)=>eM.post(e,t,n)},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85893);function o(){return(0,r.jsx)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6058",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M688 312c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48z m-392 88h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H296c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8z m376 116c119.3 0 216 96.7 216 216s-96.7 216-216 216-216-96.7-216-216 96.7-216 216-216z m107.5 323.5C808.2 810.8 824 772.6 824 732s-15.8-78.8-44.5-107.5S712.6 580 672 580s-78.8 15.8-107.5 44.5S520 691.4 520 732s15.8 78.8 44.5 107.5S631.4 884 672 884s78.8-15.8 107.5-44.5zM440 852c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H168c-17.7 0-32-14.3-32-32V108c0-17.7 14.3-32 32-32h640c17.7 0 32 14.3 32 32v384c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8V148H208v704h232z m232-76.06l-20.56 28.43c-1.5 2.1-3.9 3.3-6.5 3.3h-44.3c-6.5 0-10.3-7.4-6.4-12.7l45.75-63.3-45.75-63.3c-3.9-5.3-0.1-12.7 6.4-12.7h44.3c2.6 0 5 1.2 6.5 3.3L672 687.4l20.56-28.43c1.5-2.1 3.9-3.3 6.5-3.3h44.3c6.5 0 10.3 7.4 6.4 12.7l-45.75 63.3 45.75 63.3c3.9 5.3 0.1 12.7-6.4 12.7h-44.3c-2.6 0-5-1.2-6.5-3.3L672 775.94z",fill:"#d81e06","p-id":"6059"})})}n(67294)},5455:function(e,t,n){"use strict";n.d(t,{RD:function(){return a},In:function(){return o},zM:function(){return i},je:function(){return l},DL:function(){return s},si:function(){return c},FD:function(){return u},qw:function(){return y},s2:function(){return h},FE:function(){return b.Z},Rp:function(){return m},IN:function(){return f},tu:function(){return g},ig:function(){return d},ol:function(){return p},bn:function(){return v}});var r=n(85893),o=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1059 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"11020",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M617.931034 971.034483H335.448276c62.834759 0 70.62069-140.994207 70.62069-211.862069h247.172413c0 70.867862 7.785931 211.862069 70.62069 211.862069h-105.931035z",fill:"#4DB5E3","p-id":"11021"}),(0,r.jsx)("path",{d:"M282.482759 953.37931h512a35.310345 35.310345 0 0 1 0 70.62069H282.482759a35.310345 35.310345 0 0 1 0-70.62069z",fill:"#47C5FC","p-id":"11022"}),(0,r.jsx)("path",{d:"M0 0m73.145379 0l913.019587 0q73.145379 0 73.145379 73.145379l0 683.502345q0 73.145379-73.145379 73.145379l-913.019587 0q-73.145379 0-73.145379-73.145379l0-683.502345q0-73.145379 73.145379-73.145379Z",fill:"#47C5FC","p-id":"11023"}),(0,r.jsx)("path",{d:"M52.965517 52.965517h953.379311v723.862069H52.965517z",fill:"#FFFFFF","p-id":"11024"}),(0,r.jsx)("path",{d:"M600.275862 564.965517h335.448276a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m0 88.275862h205.78869a17.655172 17.655172 0 0 1 0 35.310345H600.275862a17.655172 17.655172 0 0 1 0-35.310345z m278.068966 0H935.724138a17.655172 17.655172 0 0 1 0 35.310345h-57.37931a17.655172 17.655172 0 0 1 0-35.310345z",fill:"#C7EAF9","p-id":"11025"}),(0,r.jsx)("path",{d:"M194.206897 211.862069h282.482758a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m0 88.275862h171.59062a17.655172 17.655172 0 1 1 0 35.310345H194.206897a17.655172 17.655172 0 1 1 0-35.310345z m238.344827 0H476.689655a17.655172 17.655172 0 1 1 0 35.310345h-44.137931a17.655172 17.655172 0 1 1 0-35.310345z",fill:"#C7EAF9","p-id":"11026"}),(0,r.jsx)("path",{d:"M194.206897 176.551724H141.241379v52.965517a17.655172 17.655172 0 1 1-35.310345 0V158.896552a17.655172 17.655172 0 0 1 17.655173-17.655173h70.62069a17.655172 17.655172 0 0 1 0 35.310345z",fill:"#C7EAF9","p-id":"11027"}),(0,r.jsx)("path",{d:"M317.793103 564.965517h141.24138a141.241379 141.241379 0 1 1-141.24138-141.241379v141.241379z",fill:"#47C5FC","p-id":"11028"}),(0,r.jsx)("path",{d:"M335.448276 406.068966a141.241379 141.241379 0 0 1 141.241379 141.241379h-141.241379v-141.241379z",fill:"#FFDE21","p-id":"11029"}),(0,r.jsx)("path",{d:"M582.62069 176.551724h52.965517v247.172414h-52.965517z",fill:"#FFDE21","p-id":"11030"}),(0,r.jsx)("path",{d:"M688.551724 247.172414h52.965517v176.551724h-52.965517z",fill:"#47C5FC","p-id":"11031"}),(0,r.jsx)("path",{d:"M794.482759 300.137931h52.965517v123.586207h-52.965517z",fill:"#47C5FC","p-id":"11032"}),(0,r.jsx)("path",{d:"M900.413793 353.103448h52.965517v70.62069h-52.965517z",fill:"#FFDE21","p-id":"11033"})]})},i=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"13568",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M185.66 459H70.5c-5.54 0-10 4.48-10 10v373.26c0 5.52 4.46 10 10 10h115.16c5.52 0 10-4.48 10-10V469c0-5.52-4.48-10-10-10z m-10 373.26H80.5V479h95.16v353.26z",fill:"#23130D","p-id":"13569"}),(0,r.jsx)("path",{d:"M80.5 479h95.16v353.26H80.5z",fill:"#F9C139","p-id":"13570"}),(0,r.jsx)("path",{d:"M80.5 479H100v353.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13571"}),(0,r.jsx)("path",{d:"M156.16 479h19.5v353.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13572"}),(0,r.jsx)("path",{d:"M377.62 556.06h-115.16c-5.54 0-10 4.48-10 10v276.2c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10v-276.2c0-5.52-4.46-10-10-10z m-10 276.2h-95.16v-256.2h95.16v256.2z",fill:"#23130D","p-id":"13573"}),(0,r.jsx)("path",{d:"M272.46 576.06h95.16v256.2h-95.16z",fill:"#EC7063","p-id":"13574"}),(0,r.jsx)("path",{d:"M569.58 358.02h-115.16c-5.54 0-10 4.48-10 10v474.24c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V368.02c0-5.52-4.46-10-10-10z m-10 474.24h-95.16V378.02h95.16v454.24z",fill:"#23130D","p-id":"13575"}),(0,r.jsx)("path",{d:"M464.42 378.02h95.16v454.24h-95.16z",fill:"#72AF5F","p-id":"13576"}),(0,r.jsx)("path",{d:"M761.54 419.62h-115.16c-5.54 0-10 4.48-10 10v412.64c0 5.52 4.46 10 10 10h115.16c5.54 0 10-4.48 10-10V429.62c0-5.52-4.46-10-10-10z m-10 412.64h-95.16V439.62h95.16v392.64z",fill:"#23130D","p-id":"13577"}),(0,r.jsx)("path",{d:"M656.38 439.62h95.16v392.64h-95.16z",fill:"#EC7063","p-id":"13578"}),(0,r.jsx)("path",{d:"M953.5 281.94h-115.16c-5.52 0-10 4.48-10 10v550.32c0 5.52 4.48 10 10 10h115.16c5.54 0 10-4.48 10-10V291.94c0-5.52-4.46-10-10-10z m-10 550.32h-95.16V301.94h95.16v530.32z",fill:"#23130D","p-id":"13579"}),(0,r.jsx)("path",{d:"M848.34 301.94h95.16v530.32h-95.16z",fill:"#72AF5F","p-id":"13580"}),(0,r.jsx)("path",{d:"M953.51 883.768H70.49a10 10 0 1 0 0 20h883.02c5.524 0 10-4.476 10-10s-4.476-10-10-10zM895.92 120.24c-36.72 0-66.62 29.88-66.62 66.6 0 10.8 2.6 21 7.2 30.04l-84.72 60.34c-12.12-12.5-29.08-20.3-47.82-20.3-26.08 0-48.7 15.08-59.64 36.96l-66.56-21.38c0.56-3.46 0.86-7 0.86-10.62 0-36.72-29.88-66.6-66.62-66.6s-66.62 29.88-66.62 66.6c0 14.88 4.92 28.64 13.18 39.74l-99.32 100.32a66.24 66.24 0 0 0-39.2-12.8c-22.16 0-41.8 10.88-53.92 27.56l-75.9-39.12c2.26-6.7 3.5-13.84 3.5-21.28 0-36.72-29.88-66.6-66.62-66.6-36.72 0-66.6 29.88-66.6 66.6 0 36.74 29.88 66.62 66.6 66.62 22.16 0 41.82-10.88 53.94-27.58l75.9 39.14a66.316 66.316 0 0 0-3.52 21.28c0 36.72 29.88 66.6 66.62 66.6s66.62-29.88 66.62-66.6c0-14.9-4.92-28.64-13.2-39.76l99.32-100.32a66.18 66.18 0 0 0 39.22 12.82c26.08 0 48.7-15.08 59.62-36.96l66.58 21.38c-0.56 3.46-0.86 7-0.86 10.6 0 36.74 29.88 66.62 66.62 66.62s66.62-29.88 66.62-66.62c0-10.8-2.6-21-7.18-30.02l84.7-60.34c12.12 12.5 29.08 20.3 47.82 20.3 36.74 0 66.62-29.88 66.62-66.62 0-36.72-29.88-66.6-66.62-66.6zM127.1 402.92c-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.7-20.92 46.62-46.62 46.62z m192.94 99.44c-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62 0 25.7-20.92 46.6-46.62 46.6zM512 308.5c-25.7 0-46.62-20.92-46.62-46.62s20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6-20.92 46.62-46.62 46.62z m191.96 61.64c-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z m191.96-136.68c-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6 0 25.72-20.92 46.62-46.62 46.62z",fill:"#23130D","p-id":"13581"}),(0,r.jsx)("path",{d:"M942.54 186.84c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-25.7 20.92-46.6 46.62-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13582"}),(0,r.jsx)("path",{d:"M750.58 323.52c0 25.72-20.92 46.62-46.62 46.62-25.7 0-46.62-20.9-46.62-46.62 0-4.94 0.8-9.72 2.22-14.2l0.02-0.02v-0.02c6.04-18.76 23.64-32.36 44.38-32.36 25.7 0 46.62 20.9 46.62 46.6z",fill:"#EC7063","p-id":"13583"}),(0,r.jsx)("path",{d:"M558.62 261.88c0 25.7-20.92 46.62-46.62 46.62s-46.62-20.92-46.62-46.62 20.92-46.6 46.62-46.6 46.62 20.9 46.62 46.6z",fill:"#72AF5F","p-id":"13584"}),(0,r.jsx)("path",{d:"M366.66 455.76c0 25.7-20.92 46.6-46.62 46.6-25.7 0-46.62-20.9-46.62-46.6 0-25.72 20.92-46.62 46.62-46.62 25.7 0 46.62 20.9 46.62 46.62z",fill:"#EC7063","p-id":"13585"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62-25.7 0-46.6-20.92-46.6-46.62 0-25.7 20.9-46.6 46.6-46.6 25.7 0 46.62 20.9 46.62 46.6z",fill:"#F9C139","p-id":"13586"}),(0,r.jsx)("path",{d:"M173.72 356.3c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM366.66 455.74c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM558.62 261.88c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM750.58 323.52c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6zM943.5 186.84c0 25.7-20.92 46.62-46.62 46.62a45.6 45.6 0 0 1-12-1.58c19.9-5.3 34.62-23.48 34.62-45.04s-14.72-39.74-34.62-45.04c3.82-1.02 7.84-1.56 12-1.56 25.7 0 46.62 20.9 46.62 46.6z",fill:"#1C1817",opacity:".2","p-id":"13587"}),(0,r.jsx)("path",{d:"M272.46 575.06h19.5v257.2h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13588"}),(0,r.jsx)("path",{d:"M348.12 575.06h19.5v257.2h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13589"}),(0,r.jsx)("path",{d:"M463.94 378.746h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13590"}),(0,r.jsx)("path",{d:"M539.6 378.746h19.5V832.26h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13591"}),(0,r.jsx)("path",{d:"M656.38 438.7h19.5v393.56h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13592"}),(0,r.jsx)("path",{d:"M732.04 438.7h19.5v393.56h-19.5z",fill:"#1C1817",opacity:".2","p-id":"13593"}),(0,r.jsx)("path",{d:"M848.34 302.306h19.5V832.26h-19.5z",fill:"#FFFFFF",opacity:".4","p-id":"13594"}),(0,r.jsx)("path",{d:"M924 302.306h19.5V832.26H924z",fill:"#1C1817",opacity:".2","p-id":"13595"})]})},a=function(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4946",className:"w-full h-full",children:(0,r.jsx)("path",{d:"M512 128C323.413333 128 170.666667 204.373333 170.666667 298.666667s152.746667 170.666667 341.333333 170.666666 341.333333-76.373333 341.333333-170.666666-152.746667-170.666667-341.333333-170.666667M170.666667 384v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667V384c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667m0 213.333333v128c0 94.293333 152.746667 170.666667 341.333333 170.666667s341.333333-76.373333 341.333333-170.666667v-128c0 94.293333-152.746667 170.666667-341.333333 170.666667s-341.333333-76.373333-341.333333-170.666667z",fill:"#FFCA28","p-id":"4947"})})},l=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"27999",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M701.781333 199.68a22.869333 22.869333 0 0 1 22.698667 22.186667v349.696h45.738667l34.133333-392.533334a22.698667 22.698667 0 0 0-20.650667-24.576L315.221333 113.834667A22.869333 22.869333 0 0 0 290.133333 134.656l-5.632 65.024z",fill:"#FFC670","p-id":"28000"}),(0,r.jsx)("path",{d:"M313.002667 674.816A25.6 25.6 0 0 1 338.773333 648.533333h154.965334a51.2 51.2 0 0 0 32.085333-11.264l69.12-54.954666a51.2 51.2 0 0 1 32.085333-11.264h97.450667V221.866667a22.869333 22.869333 0 0 0-22.698667-22.869334H231.253333A22.869333 22.869333 0 0 0 208.554667 221.866667v638.805333a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFF6E6","p-id":"28001"}),(0,r.jsx)("path",{d:"M724.48 571.562667v-94.890667a472.234667 472.234667 0 0 1-38.570667 94.890667zM313.002667 757.418667a514.56 514.56 0 0 1-104.448-15.36v119.466666a22.698667 22.698667 0 0 0 22.698666 22.698667h81.749334z",fill:"#FFEBCC","p-id":"28002"}),(0,r.jsx)("path",{d:"M594.944 582.826667l-69.12 54.954666a51.2 51.2 0 0 1-32.085333 11.264h-154.965334a25.6 25.6 0 0 0-25.770666 25.770667v209.578667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666V597.333333a25.941333 25.941333 0 0 0-25.770666-25.770666h-162.645334a51.2 51.2 0 0 0-32.085333 11.264z",fill:"#96DDFF","p-id":"28003"}),(0,r.jsx)("path",{d:"M564.224 840.874667a971.776 971.776 0 0 1-251.221333-31.402667v74.922667a25.770667 25.770667 0 0 0 25.770666 25.770666h450.901334a25.941333 25.941333 0 0 0 25.770666-25.770666v-74.922667a971.776 971.776 0 0 1-251.221333 31.402667z",fill:"#69BAF9","p-id":"28004"}),(0,r.jsx)("path",{d:"M789.674667 554.496h-0.853334l32.768-373.418667A39.936 39.936 0 0 0 785.066667 137.898667l-468.48-40.96A40.106667 40.106667 0 0 0 273.066667 133.12l-4.266667 49.664h-37.546667A39.765333 39.765333 0 0 0 191.488 221.866667v638.805333a39.765333 39.765333 0 0 0 39.765333 39.765333h68.266667a43.178667 43.178667 0 0 0 39.765333 26.794667h450.389334a43.008 43.008 0 0 0 42.837333-42.837333V597.333333a43.008 43.008 0 0 0-42.837333-42.837333zM307.2 136.533333a5.632 5.632 0 0 1 6.144-5.12l468.650667 40.96a5.632 5.632 0 0 1 5.12 6.144l-32.597334 375.978667h-12.970666V221.866667a39.765333 39.765333 0 0 0-39.765334-39.765334H303.445333z m-11.605333 538.794667v190.976h-64.341334a5.632 5.632 0 0 1-5.632-5.632V221.866667a5.632 5.632 0 0 1 5.632-5.632h470.528a5.632 5.632 0 0 1 5.632 5.632v332.629333h-80.384a68.266667 68.266667 0 0 0-42.666666 15.018667l-69.12 54.954666a34.133333 34.133333 0 0 1-21.504 7.509334h-154.965334a42.837333 42.837333 0 0 0-42.837333 42.837333z m502.784 209.066667a8.704 8.704 0 0 1-8.704 8.704H338.773333a8.704 8.704 0 0 1-8.704-8.704V674.816a8.704 8.704 0 0 1 8.704-8.704h154.965334a68.266667 68.266667 0 0 0 42.837333-15.018667l68.266667-54.954666a35.328 35.328 0 0 1 21.504-7.509334h162.645333a8.704 8.704 0 0 1 8.704 8.704z",fill:"#3D3D63","p-id":"28005"}),(0,r.jsx)("path",{d:"M744.789333 823.808h-64.341333a17.066667 17.066667 0 0 0 0 34.133333h64.341333a17.066667 17.066667 0 0 0 0-34.133333zM421.546667 309.248H512a17.066667 17.066667 0 0 0 0-34.133333h-90.453333a17.066667 17.066667 0 0 0 0 34.133333zM324.266667 406.016h283.989333a17.066667 17.066667 0 0 0 0-34.133333H324.266667a17.066667 17.066667 0 0 0 0 34.133333zM625.322667 474.965333a17.066667 17.066667 0 0 0-17.066667-17.066666H324.266667a17.066667 17.066667 0 0 0 0 34.133333h283.989333a17.066667 17.066667 0 0 0 17.066667-17.066667z",fill:"#3D3D63","p-id":"28006"})]})},s=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7028",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M163.560759 0.702493A152.675051 152.675051 0 0 0 11.822365 153.377544v632.243311a152.675051 152.675051 0 0 0 151.738394 151.738395h476.055797a152.675051 152.675051 0 0 0 152.675052-152.675052V314.950835A57.136062 57.136062 0 0 0 775.197622 274.674594L519.256163 17.093986a58.072719 58.072719 0 0 0-41.212898-17.093986z",fill:"#41CC8B","p-id":"7029"}),(0,r.jsx)("path",{d:"M775.197622 274.674594L519.256163 17.093986a57.604391 57.604391 0 0 0-29.738852-15.689001 5.854105 5.854105 0 0 0-6.790762 5.854105V131.834439a178.433112 178.433112 0 0 0 178.433113 178.433112H784.564189a5.854105 5.854105 0 0 0 5.854105-6.790762A55.965241 55.965241 0 0 0 775.197622 274.674594z",fill:"#05B25F","p-id":"7030"}),(0,r.jsx)("path",{d:"M667.482095 281.69952h114.03796a51.98445 51.98445 0 0 0-6.322433-7.024926L519.256163 17.093986l-7.727418-6.322433v114.506288A156.187514 156.187514 0 0 0 667.482095 281.69952z",fill:"#B0F9D7","p-id":"7031"}),(0,r.jsx)("path",{d:"M92.140681 419.856391h117.082095v28.333867H128.904459v39.807913h67.205123v28.802195H128.904459v46.832838h81.957466v28.802195H92.140681zM274.554585 523.825292L232.639195 462.005946h40.510405l14.284015 23.416419q6.322433 11.239881 12.644867 21.777269l5.151612-10.771553 6.322433-11.005716 11.942374-23.416419H363.068649l-41.91539 66.268465 44.72536 63.69266h-40.978733l-15.923165-23.416419L302.185959 555.671621l-7.024925-11.239881-7.024926 11.239881-6.088269 11.70821-13.347359 23.416419H229.829225zM400.534919 576.980563a65.565973 65.565973 0 0 1-19.903956-50.111137 64.629316 64.629316 0 0 1 21.777269-50.813629 76.57169 76.57169 0 0 1 51.047794-17.796478 66.50263 66.50263 0 0 1 41.681225 14.518179l-17.796478 22.011434a35.124628 35.124628 0 0 0-22.011434-8.664075 33.251315 33.251315 0 0 0-26.226389 11.239881 41.447062 41.447062 0 0 0-10.303224 29.504688 40.978733 40.978733 0 0 0 10.06906 28.802195 32.782987 32.782987 0 0 0 25.523896 11.005717 46.832838 46.832838 0 0 0 27.865539-11.005717l14.752344 23.416419a72.590899 72.590899 0 0 1-46.832838 15.689001 70.249257 70.249257 0 0 1-49.642808-17.796478zM535.88182 576.746398a63.926824 63.926824 0 0 1-20.840613-49.876972 67.439287 67.439287 0 0 1 20.372285-50.345301 65.565973 65.565973 0 0 1 46.832838-18.264806 57.838555 57.838555 0 0 1 44.72536 17.562314 65.331809 65.331809 0 0 1 14.986508 44.72536 51.047793 51.047793 0 0 1-1.873313 15.454836h-88.514064a35.827121 35.827121 0 0 0 13.113195 23.416419 40.276241 40.276241 0 0 0 26.460553 8.429911 62.990167 62.990167 0 0 0 32.080494-9.132403l12.87903 21.074777a93.665676 93.665676 0 0 1-50.111136 14.284015 71.420078 71.420078 0 0 1-50.111137-17.32815z m73.527556-63.224331c0-19.201464-9.132403-28.802195-27.163046-28.802195a29.504688 29.504688 0 0 0-20.138121 7.25909 33.719643 33.719643 0 0 0-11.005716 21.543105zM672.399543 555.671621v-149.396752h37.232106V555.671621a10.771553 10.771553 0 0 0 2.575806 7.961583 6.322433 6.322433 0 0 0 5.151612 2.341642h5.151612l4.44912 25.289732a53.857764 53.857764 0 0 1-19.435628 3.044135c-23.416419 0.468328-35.124628-12.644866-35.124628-38.637092z",fill:"#F5F6FA","p-id":"7032"})]})},c=function(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"34873",className:"w-full h-full",children:[(0,r.jsx)("path",{d:"M392.32 403.84a48 48 0 0 1-48 48h-96a48 48 0 0 1-48-48V236.16h192z",fill:"#EA5E5A","p-id":"34874"}),(0,r.jsx)("path",{d:"M259.84 176h24.32v24.32h-24.32zM307.84 176h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34875"}),(0,r.jsx)("path",{d:"M380.16 236.16h-24.32V152.32H236.16v83.84h-24.32V128h168.32v108.16z",fill:"#34303D","p-id":"34876"}),(0,r.jsx)("path",{d:"M344.32 464h-96a60.16 60.16 0 0 1-60.16-60.16V224h215.68v179.84a60.16 60.16 0 0 1-60.16 60.16zM211.84 248.32v155.52a35.84 35.84 0 0 0 35.84 35.84h96a35.84 35.84 0 0 0 35.84-35.84V248.32z",fill:"#34303D","p-id":"34877"}),(0,r.jsx)("path",{d:"M236.16 272h120.32v24.32H236.16zM236.16 320h120.32v24.32H236.16zM320 512h-48a24.32 24.32 0 0 1-23.68-23.68v-36.48h24.32v35.84H320v-35.84h24.32v35.84A24.32 24.32 0 0 1 320 512z",fill:"#34303D","p-id":"34878"}),(0,r.jsx)("path",{d:"M632.32 620.16a48 48 0 0 1 48-48h96a48 48 0 0 1 48 48v168.32h-192z",fill:"#EA5E5A","p-id":"34879"}),(0,r.jsx)("path",{d:"M739.84 824.32h24.32v24.32h-24.32zM691.84 824.32h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34880"}),(0,r.jsx)("path",{d:"M812.16 896h-168.32v-108.16h24.32v84.48h119.68v-84.48h24.32V896z",fill:"#34303D","p-id":"34881"}),(0,r.jsx)("path",{d:"M835.84 800H620.16V620.16a60.16 60.16 0 0 1 60.16-60.16h96a60.16 60.16 0 0 1 60.16 60.16z m-192-23.68h168.32V620.16a35.84 35.84 0 0 0-35.84-35.84h-96a35.84 35.84 0 0 0-35.84 35.84z",fill:"#34303D","p-id":"34882"}),(0,r.jsx)("path",{d:"M668.16 680.32h120.32v24.32h-120.32zM668.16 728.32h120.32v24.32h-120.32zM776.32 572.16h-23.68v-35.84H704v35.84h-23.68v-35.84A24.32 24.32 0 0 1 704 512h48a24.32 24.32 0 0 1 24.32 24.32z",fill:"#34303D","p-id":"34883"}),(0,r.jsx)("path",{d:"M403.84 848a120.32 120.32 0 0 1-119.68-119.68V499.84h24.32v227.84a96 96 0 0 0 192 0V296.32a120.32 120.32 0 0 1 240 0v227.84h-23.68V296.32a96 96 0 0 0-192 0v432a120.32 120.32 0 0 1-119.68 120.32z",fill:"#34303D","p-id":"34884"}),(0,r.jsx)("path",{d:"M608 284.16h24.32v24.32H608zM608 332.16h24.32v24.32H608zM608 380.16h24.32v24.32H608zM392.32 620.16h24.32v24.32h-24.32zM392.32 668.16h24.32v24.32h-24.32zM392.32 716.16h24.32v24.32h-24.32z",fill:"#34303D","p-id":"34885"}),(0,r.jsx)("path",{d:"M691.84 296.32h-23.68a48 48 0 0 0-96 0h-24.32a72.32 72.32 0 0 1 144 0zM403.84 800a72.32 72.32 0 0 1-71.68-71.68h24.32a48 48 0 0 0 96 0h24.32a72.32 72.32 0 0 1-72.96 71.68z",fill:"#34303D","p-id":"34886"})]})},u=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M593.054 120.217C483.656 148.739 402.91 248.212 402.91 366.546c0 140.582 113.962 254.544 254.544 254.544 118.334 0 217.808-80.746 246.328-190.144C909.17 457.12 912 484.23 912 512c0 220.914-179.086 400-400 400S112 732.914 112 512s179.086-400 400-400c27.77 0 54.88 2.83 81.054 8.217z","p-id":"5941"})})},f=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M513.89 950.72c-5.5 0-11-1.4-15.99-4.2L143.84 743c-9.85-5.73-15.99-16.17-15.99-27.64V308.58c0-11.33 6.14-21.91 15.99-27.64L497.9 77.43c9.85-5.73 22.14-5.73 31.99 0l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64V715.5c0 11.33-6.14 21.91-15.99 27.64L529.89 946.52c-4.99 2.8-10.49 4.2-16 4.2zM191.83 697.15L513.89 882.2l322.07-185.05V326.92L513.89 141.87 191.83 326.92v370.23z m322.06-153.34c-5.37 0-10.88-1.4-15.99-4.33L244.29 393.91c-15.35-8.79-20.6-28.27-11.77-43.56 8.83-15.28 28.41-20.5 43.76-11.72l253.61 145.7c15.35 8.79 20.6 28.27 11.77 43.56-6.01 10.32-16.76 15.92-27.77 15.92z m0 291.52c-17.66 0-31.99-14.26-31.99-31.84V530.44L244.55 393.91s-0.13 0-0.13-0.13l-100.45-57.69c-15.35-8.79-20.6-28.27-11.77-43.56s28.41-20.5 43.76-11.72l354.06 203.52c9.85 5.73 15.99 16.17 15.99 27.64v291.39c-0.13 17.71-14.46 31.97-32.12 31.97z m0 115.39c-17.66 0-31.99-14.26-31.99-31.84V511.97c0-17.58 14.33-31.84 31.99-31.84s31.99 14.26 31.99 31.84v406.91c0 17.7-14.33 31.84-31.99 31.84z m0-406.91c-11 0-21.75-5.73-27.77-15.92-8.83-15.28-3.58-34.64 11.77-43.56l354.06-203.52c15.35-8.79 34.8-3.57 43.76 11.72 8.83 15.28 3.58 34.64-11.77 43.56L529.89 539.61c-4.99 2.93-10.49 4.2-16 4.2z"})})},d=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",version:"1.1",children:(0,r.jsx)("path",{d:"M602.24 246.72a17.28 17.28 0 0 0-11.84-16.32l-42.88-14.4A90.56 90.56 0 0 1 490.24 160l-14.4-42.88a17.28 17.28 0 0 0-32 0L428.8 160a90.56 90.56 0 0 1-57.28 57.28l-42.88 14.4a17.28 17.28 0 0 0 0 32l42.88 14.4a90.56 90.56 0 0 1 57.28 57.28l14.4 42.88a17.28 17.28 0 0 0 32 0l14.4-42.88a90.56 90.56 0 0 1 57.28-57.28l42.88-14.4a17.28 17.28 0 0 0 12.48-16.96z m301.12 221.76l-48.32-16a101.44 101.44 0 0 1-64-64l-16-48.32a19.2 19.2 0 0 0-36.8 0l-16 48.32a101.44 101.44 0 0 1-64 64l-48.32 16a19.2 19.2 0 0 0 0 36.8l48.32 16a101.44 101.44 0 0 1 64 64l16 48.32a19.2 19.2 0 0 0 36.8 0l16-48.32a101.44 101.44 0 0 1 64-64l48.32-16a19.2 19.2 0 0 0 0-36.8z m-376.64 195.52l-64-20.8a131.84 131.84 0 0 1-83.52-83.52l-20.8-64a25.28 25.28 0 0 0-47.68 0l-20.8 64a131.84 131.84 0 0 1-82.24 83.52l-64 20.8a25.28 25.28 0 0 0 0 47.68l64 20.8a131.84 131.84 0 0 1 83.52 83.84l20.8 64a25.28 25.28 0 0 0 47.68 0l20.8-64a131.84 131.84 0 0 1 83.52-83.52l64-20.8a25.28 25.28 0 0 0 0-47.68z","p-id":"3992"})})},p=function(){return(0,r.jsx)("svg",{width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 1024 1024",children:(0,r.jsx)("path",{d:"M554.6 64h-85.4v128h85.4V64z m258.2 87.4L736 228.2l59.8 59.8 76.8-76.8-59.8-59.8z m-601.6 0l-59.8 59.8 76.8 76.8 59.8-59.8-76.8-76.8zM512 256c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z m448 213.4h-128v85.4h128v-85.4z m-768 0H64v85.4h128v-85.4zM795.8 736L736 795.8l76.8 76.8 59.8-59.8-76.8-76.8z m-567.6 0l-76.8 76.8 59.8 59.8 76.8-76.8-59.8-59.8z m326.4 96h-85.4v128h85.4v-128z","p-id":"7802"})})};function h(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4602",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zM296 400c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z","p-id":"4603",fill:"#87d068"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z","p-id":"4604",fill:"#87d068"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4605",fill:"#87d068"})]})}function m(){return(0,r.jsxs)("svg",{className:"mr-1",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4838",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM488 456v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8z","p-id":"4839",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"4840",fill:"#2db7f5"}),(0,r.jsx)("path",{d:"M544.1 736.4c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673c-5.3 4.1-3.5 12.5 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l0.6-95.4c0-6.7-7.6-10.5-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-0.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9c5.3-4.1 3.5-12.5-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-0.6 95.4c0 6.7 7.6 10.5 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7 0.2-4.5-3.5-8.3-8-8.3z","p-id":"4841",fill:"#2db7f5"})]})}function g(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4260",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M114.5856 951.04h298.24v-71.68H186.2656v-747.52h593.92v271.36h71.68v-343.04h-737.28v890.88z",fill:"#747690","p-id":"4261"}),(0,r.jsx)("path",{d:"M662.4256 311.04h-358.4v-71.68h358.4v71.68zM508.8256 490.24h-204.8v-71.68h204.8v71.68zM668.8256 554.24a168.96 168.96 0 1 0 0 337.92 168.96 168.96 0 0 0 0-337.92z m-240.64 168.96a240.64 240.64 0 1 1 481.28 0 240.64 240.64 0 0 1-481.28 0z",fill:"#747690","p-id":"4262"}),(0,r.jsx)("path",{d:"M629.76 588.8h71.68v131.4304l82.5856 41.3184-32.0512 64.1024-122.2144-61.0816V588.8z",fill:"#747690","p-id":"4263"})]})}function v(){return(0,r.jsx)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9211",width:"1.5em",height:"1.5em",children:(0,r.jsx)("path",{d:"M151.5 586.2c-5-24.2-7.5-49.2-7.5-74.2s2.5-50 7.5-74.2c4.8-23.6 12-46.8 21.4-69 9.2-21.8 20.6-42.8 33.9-62.5 13.2-19.5 28.3-37.8 45-54.5s35-31.8 54.5-45c19.7-13.3 40.7-24.7 62.5-33.9 22.2-9.4 45.4-16.6 69-21.4 48.5-9.9 99.9-9.9 148.4 0 23.6 4.8 46.8 12 69 21.4 21.8 9.2 42.8 20.6 62.5 33.9 19.5 13.2 37.8 28.3 54.5 45 1.4 1.4 2.8 2.8 4.1 4.2H688c-17.7 0-32 14.3-32 32s14.3 32 32 32h160c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32s-32 14.3-32 32v77.1c-19.2-19-40.1-36.2-62.4-51.3-23.1-15.6-47.8-29-73.4-39.8-26.1-11-53.4-19.5-81.1-25.2-56.9-11.6-117.1-11.6-174.1 0-27.8 5.7-55.1 14.2-81.1 25.2-25.6 10.8-50.3 24.2-73.4 39.8-22.9 15.4-44.4 33.2-63.9 52.7s-37.3 41-52.7 63.9c-15.6 23.1-29 47.8-39.8 73.4-11 26.1-19.5 53.4-25.2 81.1C83 453.4 80 482.7 80 512s3 58.6 8.8 87c3.1 15.2 16.4 25.6 31.3 25.6 2.1 0 4.3-0.2 6.4-0.7 17.4-3.5 28.5-20.4 25-37.7zM935.2 425c-3.5-17.3-20.5-28.5-37.8-24.9-17.3 3.5-28.5 20.5-24.9 37.8 5 24.2 7.5 49.2 7.5 74.2s-2.5 50-7.5 74.2c-4.8 23.6-12 46.8-21.4 69-9.2 21.8-20.6 42.8-33.9 62.5-13.2 19.5-28.3 37.8-45 54.5s-35 31.8-54.5 45C698 830.6 677 842 655.2 851.2c-22.2 9.4-45.4 16.6-69 21.4-48.5 9.9-99.9 9.9-148.4 0-23.6-4.8-46.8-12-69-21.4-21.8-9.2-42.8-20.6-62.5-33.9-19.5-13.2-37.8-28.3-54.5-45-1.4-1.4-2.8-2.8-4.1-4.2H336c17.7 0 32-14.3 32-32s-14.3-32-32-32H176c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32s32-14.3 32-32V819c19.2 19 40.1 36.2 62.4 51.3 23.1 15.6 47.8 29 73.4 39.8 26.1 11 53.4 19.5 81.1 25.2 28.5 5.8 57.7 8.8 87 8.8s58.6-3 87-8.8c27.8-5.7 55-14.2 81.1-25.2 25.6-10.8 50.3-24.2 73.4-39.8 22.9-15.5 44.4-33.2 63.9-52.7s37.3-41 52.7-63.9c15.6-23.1 29-47.8 39.8-73.4 11-26.1 19.5-53.4 25.2-81.1 5.8-28.5 8.8-57.7 8.8-87 0.2-29.5-2.8-58.8-8.6-87.2z",fill:"#1875F0","p-id":"9212"})})}function y(){return(0,r.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3205",width:"1.5em",height:"1.5em",children:[(0,r.jsx)("path",{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zM296 400c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zM672 516c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216z m107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5z","p-id":"3206",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9c-1.5-2.1-3.9-3.3-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3 0.1-12.7-6.4-12.7z","p-id":"3207",fill:"#1afa29"}),(0,r.jsx)("path",{d:"M440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z","p-id":"3208",fill:"#1afa29"})]})}n(67294);var b=n(1051)},32665:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(38754),n(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return g},useParams:function(){return v},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return c.redirect},notFound:function(){return u.notFound}});let r=n(67294),o=n(27473),i=n(35802),a=n(32665),l=n(43512),s=n(98751),c=n(96885),u=n(86323),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(i.SearchParamsContext),t=(0,r.useMemo)(()=>e?new p(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(i.PathnameContext)}function g(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],o=Array.isArray(r),i=o?r[1]:r;!i||i.startsWith("__PAGE__")||(o&&(n[r[0]]=r[1]),n=e(t,n))}return n}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(o.LayoutRouterContext);return function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(i,n,!1,o))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return o}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return l},redirect:function(){return s},isRedirectError:function(){return c},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return f}});let i=n(68214),a="NEXT_REDIRECT";function l(e,t){let n=Error(a);n.digest=a+";"+t+";"+e;let r=i.requestAsyncStorage.getStore();return r&&(n.mutableCookies=r.mutableCookies),n}function s(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r]=e.digest.split(";",3);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r}function u(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function n(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(38754),o=n(61757),i=o._(n(67294)),a=r._(n(68965)),l=n(38083),s=n(2478),c=n(76226);n(59941);let u=r._(n(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=i.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,i.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,onLoad:$,onError:O,...k}=e;return g=u?"lazy":g,i.default.createElement("img",{...k,...m(f),loading:g,width:o,height:r,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...n,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,S,b))},[v,p,w,C,S,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,S,b)},onError:e=>{E(!0),"blur"===p&&S(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:S,height:E,fill:$,style:O,onLoad:k,onLoadingComplete:j,placeholder:P="empty",blurDataURL:Z,fetchPriority:_,layout:M,objectFit:A,objectPosition:R,lazyBoundary:N,lazyRoot:T,...F}=e,I=(0,i.useContext)(c.ImageConfigContext),L=(0,i.useMemo)(()=>{let e=f||I||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[I]),B=F.loader||u.default;delete F.loader;let z="__next_img_default"in B;if(z){if("custom"===L.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=B;B=t=>{let{config:n,...r}=t;return e(r)}}if(M){"fill"===M&&($=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!v&&(v=t)}let D="",H=p(S),V=p(E);if("object"==typeof(n=h)&&(d(n)||void 0!==n.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,Z=Z||e.blurDataURL,D=e.src,!$){if(H||V){if(H&&!V){let t=H/e.width;V=Math.round(e.height*t)}else if(!H&&V){let t=V/e.height;H=Math.round(e.width*t)}}else H=e.width,V=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:D)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),L.unoptimized&&(y=!0),z&&h.endsWith(".svg")&&!L.dangerouslyAllowSVG&&(y=!0),b&&(_="high");let[W,q]=(0,i.useState)(!1),[K,G]=(0,i.useState)(!1),X=p(C),Y=Object.assign($?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:R}:{},K?{}:{color:"transparent"},O),J="blur"===P&&Z&&!W?{backgroundSize:Y.objectFit||"cover",backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:V,blurWidth:r,blurHeight:o,blurDataURL:Z,objectFit:Y.objectFit})+'")'}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:L,src:h,unoptimized:y,width:H,quality:X,sizes:v,loader:B}),ee=h,et=(0,i.useRef)(k);(0,i.useEffect)(()=>{et.current=k},[k]);let en=(0,i.useRef)(j);(0,i.useEffect)(()=>{en.current=j},[j]);let er={isLazy:U,imgAttributes:Q,heightInt:V,widthInt:H,qualityInt:X,className:w,imgStyle:Y,blurStyle:J,loading:x,config:L,fetchPriority:_,fill:$,unoptimized:y,placeholder:P,loader:B,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:q,setShowAltText:G,...F};return i.default.createElement(i.default.Fragment,null,i.default.createElement(g,{...er,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:F.crossOrigin,referrerPolicy:F.referrerPolicy,...m(_)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(38754),o=r._(n(67294)),i=n(65722),a=n(65723),l=n(28904),s=n(95514),c=n(27521),u=n(44293),f=n(27473),d=n(81307),p=n(75476),h=n(66318),m=n(29382),g=new Set;function v(e,t,n,r,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,i=t+"%"+n+"%"+o;if(g.has(i))return;g.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let n,r;let{href:l,as:g,children:b,prefetch:x=null,passHref:w,replace:C,shallow:S,scroll:E,locale:$,onClick:O,onMouseEnter:k,onTouchStart:j,legacyBehavior:P=!1,...Z}=e;n=b,P&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let _=!1!==x,M=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,A=o.default.useContext(u.RouterContext),R=o.default.useContext(f.AppRouterContext),N=null!=A?A:R,T=!A,{href:F,as:I}=o.default.useMemo(()=>{if(!A){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,i.resolveHref)(A,l,!0);return{href:e,as:g?(0,i.resolveHref)(A,g):t||e}},[A,l,g]),L=o.default.useRef(F),B=o.default.useRef(I);P&&(r=o.default.Children.only(n));let z=P?r&&"object"==typeof r&&r.ref:t,[D,H,V]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(B.current!==I||L.current!==F)&&(V(),B.current=I,L.current=F),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[I,z,F,V,D]);o.default.useEffect(()=>{N&&H&&_&&v(N,F,I,{locale:$},{kind:M},T)},[I,F,H,$,_,null==A?void 0:A.locale,N,T,M]);let W={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,N,F,I,C,S,E,$,T,_)},onMouseEnter(e){P||"function"!=typeof k||k(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:M},T)},onTouchStart(e){P||"function"!=typeof j||j(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(_||!T)&&v(N,F,I,{locale:$,priority:!0,bypassPrefetchedCheck:!0},{kind:M},T)}};if((0,s.isAbsoluteUrl)(I))W.href=I;else if(!P||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==$?$:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,p.getDomainLocale)(I,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);W.href=t||(0,h.addBasePath)((0,c.addLocale)(I,e,null==A?void 0:A.defaultLocale))}return P?o.default.cloneElement(r,W):o.default.createElement("a",{...Z,...W},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let r=n(67294),o=n(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:n,disabled:s}=e,c=s||!i,[u,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:i,elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,d.current]);let h=(0,r.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=r||t,s=o||n,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},31720:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},98751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let r=n(61757),o=r._(n(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},48271:function(e,t,n){"use strict";let r,o;n.r(t),n.d(t,{default:function(){return eT}});var i=n(85893),a=n(67294),l=n(41468),s=n(50489),c=n(98399),u=n(5455),f=n(59766),d=n(87462),p=n(63366),h=n(71387),m=n(70917);function g(e){let{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?n:e):t;return(0,i.jsx)(m.xB,{styles:r})}var v=n(56760),y=n(71927);let b="mode",x="color-scheme",w="data-color-scheme";function C(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function S(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function E(e,t){let n;if("undefined"!=typeof window){try{(n=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return n||t}}let $=["colorSchemes","components","generateCssVars","cssVarPrefix"];var O=n(1812),k=n(13951),j=n(2548);let{CssVarsProvider:P,useColorScheme:Z,getInitColorSchemeScript:_}=function(e){let{themeId:t,theme:n={},attribute:r=w,modeStorageKey:o=b,colorSchemeStorageKey:l=x,defaultMode:s="light",defaultColorScheme:c,disableTransitionOnChange:u=!1,resolveTheme:m,excludeVariablesFromRoot:O}=e;n.colorSchemes&&("string"!=typeof c||n.colorSchemes[c])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.light])&&("object"!=typeof c||n.colorSchemes[null==c?void 0:c.dark])||console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let k=a.createContext(void 0),j="string"==typeof c?c:c.light,P="string"==typeof c?c:c.dark;return{CssVarsProvider:function({children:e,theme:h=n,modeStorageKey:w=o,colorSchemeStorageKey:j=l,attribute:P=r,defaultMode:Z=s,defaultColorScheme:_=c,disableTransitionOnChange:M=u,storageWindow:A="undefined"==typeof window?void 0:window,documentNode:R="undefined"==typeof document?void 0:document,colorSchemeNode:N="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:T=":root",disableNestedContext:F=!1,disableStyleSheetGeneration:I=!1}){let L=a.useRef(!1),B=(0,v.Z)(),z=a.useContext(k),D=!!z&&!F,H=h[t],V=H||h,{colorSchemes:U={},components:W={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:K}=V,G=(0,p.Z)(V,$),X=Object.keys(U),Y="string"==typeof _?_:_.light,J="string"==typeof _?_:_.dark,{mode:Q,setMode:ee,systemMode:et,lightColorScheme:en,darkColorScheme:er,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=b,colorSchemeStorageKey:l=x,storageWindow:s="undefined"==typeof window?void 0:window}=e,c=o.join(","),[u,f]=a.useState(()=>{let e=E(i,t),o=E(`${l}-light`,n),a=E(`${l}-dark`,r);return{mode:e,systemMode:C(e),lightColorScheme:o,darkColorScheme:a}}),p=S(u,e=>"light"===e?u.lightColorScheme:"dark"===e?u.darkColorScheme:void 0),h=a.useCallback(e=>{f(n=>{if(e===n.mode)return n;let r=e||t;try{localStorage.setItem(i,r)}catch(e){}return(0,d.Z)({},n,{mode:r,systemMode:C(r)})})},[i,t]),m=a.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):f(t=>{let n=(0,d.Z)({},t);return S(t,t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)}),n}):f(t=>{let o=(0,d.Z)({},t),i=null===e.light?n:e.light,a=null===e.dark?r:e.dark;if(i){if(c.includes(i)){o.lightColorScheme=i;try{localStorage.setItem(`${l}-light`,i)}catch(e){}}else console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)}if(a){if(c.includes(a)){o.darkColorScheme=a;try{localStorage.setItem(`${l}-dark`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}return o}):f(e=>{try{localStorage.setItem(`${l}-light`,n),localStorage.setItem(`${l}-dark`,r)}catch(e){}return(0,d.Z)({},e,{lightColorScheme:n,darkColorScheme:r})})},[c,l,n,r]),g=a.useCallback(e=>{"system"===u.mode&&f(t=>(0,d.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[u.mode]),v=a.useRef(g);return v.current=g,a.useEffect(()=>{let e=(...e)=>v.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),a.useEffect(()=>{let e=e=>{let n=e.newValue;"string"==typeof e.key&&e.key.startsWith(l)&&(!n||c.match(n))&&(e.key.endsWith("light")&&m({light:n}),e.key.endsWith("dark")&&m({dark:n})),e.key===i&&(!n||["light","dark","system"].includes(n))&&h(n||t)};if(s)return s.addEventListener("storage",e),()=>s.removeEventListener("storage",e)},[m,h,i,l,c,t,s]),(0,d.Z)({},u,{colorScheme:p,setMode:h,setColorScheme:m})}({supportedColorSchemes:X,defaultLightColorScheme:Y,defaultDarkColorScheme:J,modeStorageKey:w,colorSchemeStorageKey:j,defaultMode:Z,storageWindow:A}),ea=Q,el=eo;D&&(ea=z.mode,el=z.colorScheme);let es=ea||("system"===Z?s:Z),ec=el||("dark"===es?J:Y),{css:eu,vars:ef}=q(),ed=(0,d.Z)({},G,{components:W,colorSchemes:U,cssVarPrefix:K,vars:ef,getColorSchemeSelector:e=>`[${P}="${e}"] &`}),ep={},eh={};Object.entries(U).forEach(([e,t])=>{let{css:n,vars:r}=q(e);ed.vars=(0,f.Z)(ed.vars,r),e===ec&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ed[e]=(0,d.Z)({},ed[e],t[e]):ed[e]=t[e]}),ed.palette&&(ed.palette.colorScheme=e));let o="string"==typeof _?_:"dark"===Z?_.dark:_.light;if(e===o){if(O){let t={};O(K).forEach(e=>{t[e]=n[e],delete n[e]}),ep[`[${P}="${e}"]`]=t}ep[`${T}, [${P}="${e}"]`]=n}else eh[`${":root"===T?"":T}[${P}="${e}"]`]=n}),ed.vars=(0,f.Z)(ed.vars,ef),a.useEffect(()=>{el&&N&&N.setAttribute(P,el)},[el,P,N]),a.useEffect(()=>{let e;if(M&&L.current&&R){let t=R.createElement("style");t.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(t),window.getComputedStyle(R.body),e=setTimeout(()=>{R.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,M,R]),a.useEffect(()=>(L.current=!0,()=>{L.current=!1}),[]);let em=a.useMemo(()=>({mode:ea,systemMode:et,setMode:ee,lightColorScheme:en,darkColorScheme:er,colorScheme:el,setColorScheme:ei,allColorSchemes:X}),[X,el,er,en,ea,ei,ee,et]),eg=!0;(I||D&&(null==B?void 0:B.cssVarPrefix)===K)&&(eg=!1);let ev=(0,i.jsxs)(a.Fragment,{children:[eg&&(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(g,{styles:{[T]:eu}}),(0,i.jsx)(g,{styles:ep}),(0,i.jsx)(g,{styles:eh})]}),(0,i.jsx)(y.Z,{themeId:H?t:void 0,theme:m?m(ed):ed,children:e})]});return D?ev:(0,i.jsx)(k.Provider,{value:em,children:ev})},useColorScheme:()=>{let e=a.useContext(k);if(!e)throw Error((0,h.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=b,colorSchemeStorageKey:a=x,attribute:l=w,colorSchemeNode:s="document.documentElement"}=e||{};return(0,i.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { var mode = localStorage.getItem('${o}') || '${t}'; var cssColorScheme = mode; var colorScheme = ''; @@ -158,16 +158,16 @@ if (colorScheme) { ${s}.setAttribute('${l}', colorScheme); } - } catch (e) {} })();`}},"mui-color-scheme-init")})((0,d.Z)({attribute:r,colorSchemeStorageKey:l,defaultMode:s,defaultLightColorScheme:j,defaultDarkColorScheme:P,modeStorageKey:o},e))}}({themeId:j.Z,theme:O.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,f.Z)({soft:(0,k.pP)(e),solid:(0,k.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}});var A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},R=n(84089),M=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:A}))}),N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},T=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:N}))}),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"},I=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:F}))}),L=n(16165),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"},z=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:B}))}),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},H=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:D}))}),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},U=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:V}))}),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},q=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:W}))}),K=n(24969),G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},X=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:G}))}),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},J=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:Y}))}),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},ee=a.forwardRef(function(e,t){return a.createElement(R.Z,(0,d.Z)({},e,{ref:t,icon:Q}))}),et=n(48689),en=n(12069),er=n(2453),eo=n(83062),ei=n(85418),ea=n(20640),el=n.n(ea),es=n(25675),ec=n.n(es),eu=n(41664),ef=n.n(eu),ed=n(11163),ep=n.n(ed),eh=n(67421);function em(e){return"flex items-center px-2 h-8 hover:bg-slate-100 dark:hover:bg-[#353539] text-base w-full my-2 rounded transition-colors whitespace-nowrap ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}function eg(e){return"flex items-center justify-center mx-auto w-12 h-12 text-xl rounded hover:bg-slate-100 dark:hover:bg-[#353539] cursor-pointer ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}var ev=function(){let{chatId:e,scene:t,isMenuExpand:n,dialogueList:r,queryDialogueList:o,refreshDialogList:f,setIsMenuExpand:d}=(0,a.useContext)(l.p),{pathname:p,replace:h}=(0,ed.useRouter)(),{t:m,i18n:g}=(0,eh.$G)(),{mode:v,setMode:y}=Z(),[b,x]=(0,a.useState)("/LOGO_1.png"),w=(0,a.useMemo)(()=>{let e=[{key:"prompt",name:m("Prompt"),icon:(0,i.jsx)(M,{}),path:"/prompt"},{key:"database",name:m("Database"),icon:(0,i.jsx)(T,{}),path:"/database"},{key:"knowledge",name:m("Knowledge_Space"),icon:(0,i.jsx)(I,{}),path:"/knowledge"},{key:"models",name:m("model_manage"),path:"/models",icon:(0,i.jsx)(L.Z,{component:u.IN})},{key:"agent",name:m("Plugins"),path:"/agent",icon:(0,i.jsx)(z,{})}];return e},[g.language]),C=()=>{d(!n)},S=(0,a.useCallback)(()=>{let e="light"===v?"dark":"light";y(e),localStorage.setItem(c.he,e)},[v]),E=(0,a.useCallback)(()=>{let e="en"===g.language?"zh":"en";g.changeLanguage(e),localStorage.setItem(c.Yl,e)},[g.language,g.changeLanguage]),$=(0,a.useMemo)(()=>{let e=[{key:"theme",name:m("Theme"),icon:"dark"===v?(0,i.jsx)(L.Z,{component:u.FD}):(0,i.jsx)(L.Z,{component:u.ol}),onClick:S},{key:"language",name:m("language"),icon:(0,i.jsx)(H,{}),onClick:E},{key:"fold",name:m(n?"Close_Sidebar":"Show_Sidebar"),icon:n?(0,i.jsx)(U,{}):(0,i.jsx)(q,{}),onClick:C,noDropdownItem:!0}];return e},[v,E,C,E]),O=(0,a.useMemo)(()=>w.map(e=>({key:e.key,label:(0,i.jsxs)(ef(),{href:e.path,className:"text-base",children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[w]),k=(0,a.useMemo)(()=>$.filter(e=>!e.noDropdownItem).map(e=>({key:e.key,label:(0,i.jsxs)("div",{className:"text-base",onClick:e.onClick,children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[$]),j=(0,a.useCallback)(n=>{en.default.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,onOk:()=>new Promise(async(r,o)=>{try{let[i]=await (0,s.Vx)((0,s.MX)(n.conv_uid));if(i){o();return}er.ZP.success("success"),f(),n.chat_mode===t&&n.conv_uid===e&&h("/"),r()}catch(e){o()}})})},[f]),P=(0,a.useCallback)(e=>{let t=el()("".concat(location.origin,"/chat/").concat(e.chat_mode,"/").concat(e.conv_uid));er.ZP[t?"success":"error"](t?"Copy success":"Copy failed")},[]);return((0,a.useEffect)(()=>{o()},[]),(0,a.useEffect)(()=>{x("dark"===v?"/WHITE_LOGO.png":"/LOGO_1.png")},[v]),n)?(0,i.jsxs)("div",{className:"flex flex-col h-screen border-r dark:border-gray-700",children:[(0,i.jsx)(ef(),{href:"/",className:"p-2",children:(0,i.jsx)(ec(),{src:b,alt:"DB-GPT",width:239,height:60,className:"w-full h-full"})}),(0,i.jsxs)(ef(),{href:"/",className:"flex items-center justify-center mb-4 mx-4 h-11 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded text-white",children:[(0,i.jsx)(K.Z,{className:"mr-2"}),(0,i.jsx)("span",{children:"New Chat"})]}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 px-2 border-t dark:border-gray-700",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsxs)(ef(),{href:"/chat?scene=".concat(n.chat_mode,"&id=").concat(n.conv_uid),className:"group/item ".concat(em(r)),children:[(0,i.jsx)(M,{className:"text-base"}),(0,i.jsx)("div",{className:"flex-1 line-clamp-1 mx-2 text-sm",children:n.user_name||n.user_input}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0 mr-1",onClick:e=>{e.preventDefault(),P(n)},children:(0,i.jsx)(ee,{})}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.preventDefault(),j(n)},children:(0,i.jsx)(et.Z,{})})]},n.conv_uid)})}),(0,i.jsxs)("div",{className:"py-2 border-t dark:border-gray-700",children:[(0,i.jsx)("div",{className:"px-2",children:w.map(e=>(0,i.jsx)(ef(),{href:e.path,className:"".concat(em(p===e.path)),children:(0,i.jsxs)(i.Fragment,{children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})},e.key))}),(0,i.jsx)("div",{className:"flex items-center justify-around py-4 border-t border-dashed dark:border-gray-700",children:$.map(e=>(0,i.jsx)(eo.Z,{title:e.name,children:(0,i.jsx)("div",{className:"flex-1 flex items-center justify-center cursor-pointer text-xl",onClick:e.onClick,children:e.icon})},e.key))})]})]}):(0,i.jsxs)("div",{className:"flex flex-col justify-between h-screen border-r dark:bg-[#1A1E26] animate-fade animate-duration-300",children:[(0,i.jsx)(ef(),{href:"/",className:"px-2 py-3",children:(0,i.jsx)(ec(),{src:"/LOGO_SMALL.png",alt:"DB-GPT",width:63,height:46,className:"w-[63px] h-[46px]"})}),(0,i.jsx)("div",{className:"border-t border-dashed",children:(0,i.jsx)(ef(),{href:"/",className:"flex items-center justify-center my-4 mx-auto w-12 h-12 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded-full text-white",children:(0,i.jsx)(K.Z,{className:"text-lg"})})}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 border-t border-dashed space-y-2",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsx)(eo.Z,{title:n.user_name||n.user_input,placement:"right",children:(0,i.jsx)(ef(),{href:"/chat?scene=".concat(n.chat_mode,"&id=").concat(n.conv_uid),className:eg(r),children:(0,i.jsx)(M,{})})},n.conv_uid)})}),(0,i.jsxs)("div",{className:"py-4 space-y-2 border-t",children:[(0,i.jsx)(ei.Z,{menu:{items:O},placement:"topRight",children:(0,i.jsx)("div",{className:eg(),children:(0,i.jsx)(X,{})})}),(0,i.jsx)(ei.Z,{menu:{items:k},placement:"topRight",children:(0,i.jsx)("div",{className:eg(),children:(0,i.jsx)(J,{})})}),$.filter(e=>e.noDropdownItem).map(e=>(0,i.jsx)(eo.Z,{title:e.name,placement:"right",children:(0,i.jsx)("div",{className:eg(),onClick:e.onClick,children:e.icon})},e.key))]})]})},ey=n(38629),eb=n(59077),ex=n(9818);let ew=(0,eb.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...ex.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...ex.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var eC=n(74865),eS=n.n(eC);let eE=0;function e$(){"loading"!==o&&(o="loading",r=setTimeout(function(){eS().start()},250))}function eO(){eE>0||(o="stop",clearTimeout(r),eS().done())}if(ep().events.on("routeChangeStart",e$),ep().events.on("routeChangeComplete",eO),ep().events.on("routeChangeError",eO),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,n=Array(t),r=0;r{let e=function(){let e=localStorage.getItem(c.he);return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}();o(e)},[]),(0,a.useEffect)(()=>{if((null==s?void 0:s.current)&&r){var e,t,n,o,i,a;null==s||null===(e=s.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==s||null===(n=s.current)||void 0===n||null===(o=n.classList)||void 0===o||o.remove("dark"):null==s||null===(i=s.current)||void 0===i||null===(a=i.classList)||void 0===a||a.remove("light")}},[s,r]),(0,a.useEffect)(()=>{n.changeLanguage&&n.changeLanguage(window.localStorage.getItem(c.Yl)||"en")},[n]),(0,i.jsxs)("div",{ref:s,children:[(0,i.jsx)(ek,{}),(0,i.jsx)(l.R,{children:t})]})}function eN(e){let{children:t}=e,{isMenuExpand:n}=(0,a.useContext)(l.p),{mode:r}=Z(),{i18n:o}=(0,eh.$G)();return(0,i.jsx)(eZ.ZP,{locale:"en"===o.language?eR.Z:eA.Z,theme:{token:{borderRadius:4},algorithm:"dark"===r?e_.default.darkAlgorithm:void 0},children:(0,i.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,i.jsx)("div",{className:eP()("transition-[width]",n?"w-64":"w-20","hidden","md:block"),children:(0,i.jsx)(ev,{})}),(0,i.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t})]})})}var eT=function(e){let{Component:t,pageProps:n}=e;return(0,i.jsx)(ey.Z,{theme:ew,children:(0,i.jsx)(P,{theme:ew,defaultMode:"light",children:(0,i.jsx)(eM,{children:(0,i.jsx)(eN,{children:(0,i.jsx)(t,{...n})})})})})}},19284:function(e,t,n){"use strict";n.d(t,{Hf:function(){return r},S$:function(){return i},l3:function(){return o}});let r={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"},"internlm-7b":{label:"internlm-chat-7b-v1_1",icon:"/models/internlm.png"},"internlm-7b-8k":{label:"internlm-chat-7b-8k",icon:"/models/internlm.png"},"solar-10.7b-instruct-v1.0":{label:"solar-10.7b-instruct-v1.0",icon:"/models/solar_logo.png"}},o={Chroma:"/models/chroma-logo.png"},i={mysql:{label:"MySQL",icon:"/icons/mysql.png",desc:"Fast, reliable, scalable open-source relational database management system."},mssql:{label:"MSSQL",icon:"/icons/mssql.png",desc:"Powerful, scalable, secure relational database system by Microsoft."},duckdb:{label:"DuckDB",icon:"/icons/duckdb.png",desc:"In-memory analytical database with efficient query processing."},sqlite:{label:"Sqlite",icon:"/icons/sqlite.png",desc:"Lightweight embedded relational database with simplicity and portability."},clickhouse:{label:"ClickHouse",icon:"/icons/clickhouse.png",desc:"Columnar database for high-performance analytics and real-time queries."},oracle:{label:"Oracle",icon:"/icons/oracle.png",desc:"Robust, scalable, secure relational database widely used in enterprises."},access:{label:"Access",icon:"/icons/access.png",desc:"Easy-to-use relational database for small-scale applications by Microsoft."},mongodb:{label:"MongoDB",icon:"/icons/mongodb.png",desc:"Flexible, scalable NoSQL document database for web and mobile apps."},doris:{label:"ApacheDoris",icon:"/icons/doris.png",desc:"A new-generation open-source real-time data warehouse."},starrocks:{label:"StarRocks",icon:"/icons/starrocks.png",desc:"An Open-Source, High-Performance Analytical Database."},db2:{label:"DB2",icon:"/icons/db2.png",desc:"Scalable, secure relational database system developed by IBM."},hbase:{label:"HBase",icon:"/icons/hbase.png",desc:"Distributed, scalable NoSQL database for large structured/semi-structured data."},redis:{label:"Redis",icon:"/icons/redis.png",desc:"Fast, versatile in-memory data structure store as cache, DB, or broker."},cassandra:{label:"Cassandra",icon:"/icons/cassandra.png",desc:"Scalable, fault-tolerant distributed NoSQL database for large data."},couchbase:{label:"Couchbase",icon:"/icons/couchbase.png",desc:"High-performance NoSQL document database with distributed architecture."},postgresql:{label:"PostgreSQL",icon:"/icons/postgresql.png",desc:"Powerful open-source relational database with extensibility and SQL standards."},spark:{label:"Spark",icon:"/icons/spark.png",desc:"Unified engine for large-scale data analytics."},space:{label:"Space",icon:"/icons/knowledge.png",desc:"knowledge analytics."}}},98399:function(e,t,n){"use strict";function r(){var e;let t=null!==(e=localStorage.getItem(l))&&void 0!==e?e:"";try{let e=JSON.parse(t);return e}catch(e){return null}}n.d(t,{rU:function(){return l},Yl:function(){return a},he:function(){return i},S$:function(){return o.S$},a_:function(){return r}});var o=n(19284);let i="__db_gpt_theme_key",a="__db_gpt_lng_key",l="__db_gpt_im_key"},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o((a+l)*3/4-l),u=0,f=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,l=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! + } catch (e) {} })();`}},"mui-color-scheme-init")})((0,d.Z)({attribute:r,colorSchemeStorageKey:l,defaultMode:s,defaultLightColorScheme:j,defaultDarkColorScheme:P,modeStorageKey:o},e))}}({themeId:j.Z,theme:O.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,f.Z)({soft:(0,k.pP)(e),solid:(0,k.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}});var M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},A=n(84089),R=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:M}))}),N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},T=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:N}))}),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"},I=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:F}))}),L=n(16165),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z"}}]},name:"build",theme:"outlined"},z=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:B}))}),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},H=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:D}))}),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},U=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:V}))}),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},q=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:W}))}),K=n(24969),G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},X=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:G}))}),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},J=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:Y}))}),Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},ee=a.forwardRef(function(e,t){return a.createElement(A.Z,(0,d.Z)({},e,{ref:t,icon:Q}))}),et=n(48689),en=n(12069),er=n(2453),eo=n(83062),ei=n(85418),ea=n(20640),el=n.n(ea),es=n(25675),ec=n.n(es),eu=n(41664),ef=n.n(eu),ed=n(11163),ep=n.n(ed),eh=n(67421);function em(e){return"flex items-center px-2 h-8 hover:bg-slate-100 dark:hover:bg-[#353539] text-base w-full my-2 rounded transition-colors whitespace-nowrap ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}function eg(e){return"flex items-center justify-center mx-auto w-12 h-12 text-xl rounded hover:bg-slate-100 dark:hover:bg-[#353539] cursor-pointer ".concat(e?"bg-slate-100 dark:bg-[#353539]":"")}var ev=function(){let{chatId:e,scene:t,isMenuExpand:n,dialogueList:r,queryDialogueList:o,refreshDialogList:f,setIsMenuExpand:d}=(0,a.useContext)(l.p),{pathname:p,replace:h}=(0,ed.useRouter)(),{t:m,i18n:g}=(0,eh.$G)(),{mode:v,setMode:y}=Z(),[b,x]=(0,a.useState)("/LOGO_1.png"),w=(0,a.useMemo)(()=>{let e=[{key:"prompt",name:m("Prompt"),icon:(0,i.jsx)(R,{}),path:"/prompt"},{key:"database",name:m("Database"),icon:(0,i.jsx)(T,{}),path:"/database"},{key:"knowledge",name:m("Knowledge_Space"),icon:(0,i.jsx)(I,{}),path:"/knowledge"},{key:"models",name:m("model_manage"),path:"/models",icon:(0,i.jsx)(L.Z,{component:u.IN})},{key:"agent",name:m("Plugins"),path:"/agent",icon:(0,i.jsx)(z,{})}];return e},[g.language]),C=()=>{d(!n)},S=(0,a.useCallback)(()=>{let e="light"===v?"dark":"light";y(e),localStorage.setItem(c.he,e)},[v]),E=(0,a.useCallback)(()=>{let e="en"===g.language?"zh":"en";g.changeLanguage(e),localStorage.setItem(c.Yl,e)},[g.language,g.changeLanguage]),$=(0,a.useMemo)(()=>{let e=[{key:"theme",name:m("Theme"),icon:"dark"===v?(0,i.jsx)(L.Z,{component:u.FD}):(0,i.jsx)(L.Z,{component:u.ol}),onClick:S},{key:"language",name:m("language"),icon:(0,i.jsx)(H,{}),onClick:E},{key:"fold",name:m(n?"Close_Sidebar":"Show_Sidebar"),icon:n?(0,i.jsx)(U,{}):(0,i.jsx)(q,{}),onClick:C,noDropdownItem:!0}];return e},[v,E,C,E]),O=(0,a.useMemo)(()=>w.map(e=>({key:e.key,label:(0,i.jsxs)(ef(),{href:e.path,className:"text-base",children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[w]),k=(0,a.useMemo)(()=>$.filter(e=>!e.noDropdownItem).map(e=>({key:e.key,label:(0,i.jsxs)("div",{className:"text-base",onClick:e.onClick,children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})})),[$]),j=(0,a.useCallback)(n=>{en.default.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,onOk:()=>new Promise(async(r,o)=>{try{let[i]=await (0,s.Vx)((0,s.MX)(n.conv_uid));if(i){o();return}er.ZP.success("success"),f(),n.chat_mode===t&&n.conv_uid===e&&h("/"),r()}catch(e){o()}})})},[f]),P=(0,a.useCallback)(e=>{let t=el()("".concat(location.origin,"/chat/").concat(e.chat_mode,"/").concat(e.conv_uid));er.ZP[t?"success":"error"](t?"Copy success":"Copy failed")},[]);return((0,a.useEffect)(()=>{o()},[]),(0,a.useEffect)(()=>{x("dark"===v?"/WHITE_LOGO.png":"/LOGO_1.png")},[v]),n)?(0,i.jsxs)("div",{className:"flex flex-col h-screen border-r dark:border-gray-700",children:[(0,i.jsx)(ef(),{href:"/",className:"p-2",children:(0,i.jsx)(ec(),{src:b,alt:"DB-GPT",width:239,height:60,className:"w-full h-full"})}),(0,i.jsxs)(ef(),{href:"/",className:"flex items-center justify-center mb-4 mx-4 h-11 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded text-white",children:[(0,i.jsx)(K.Z,{className:"mr-2"}),(0,i.jsx)("span",{children:"New Chat"})]}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 px-2 border-t dark:border-gray-700",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsxs)(ef(),{href:"/chat?scene=".concat(n.chat_mode,"&id=").concat(n.conv_uid),className:"group/item ".concat(em(r)),children:[(0,i.jsx)(R,{className:"text-base"}),(0,i.jsx)("div",{className:"flex-1 line-clamp-1 mx-2 text-sm",children:n.user_name||n.user_input}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0 mr-1",onClick:e=>{e.preventDefault(),P(n)},children:(0,i.jsx)(ee,{})}),(0,i.jsx)("div",{className:"group-hover/item:opacity-100 cursor-pointer opacity-0",onClick:e=>{e.preventDefault(),j(n)},children:(0,i.jsx)(et.Z,{})})]},n.conv_uid)})}),(0,i.jsxs)("div",{className:"py-2 border-t dark:border-gray-700",children:[(0,i.jsx)("div",{className:"px-2",children:w.map(e=>(0,i.jsx)(ef(),{href:e.path,className:"".concat(em(p===e.path)),children:(0,i.jsxs)(i.Fragment,{children:[e.icon,(0,i.jsx)("span",{className:"ml-2 text-sm",children:e.name})]})},e.key))}),(0,i.jsx)("div",{className:"flex items-center justify-around py-4 border-t border-dashed dark:border-gray-700",children:$.map(e=>(0,i.jsx)(eo.Z,{title:e.name,children:(0,i.jsx)("div",{className:"flex-1 flex items-center justify-center cursor-pointer text-xl",onClick:e.onClick,children:e.icon})},e.key))})]})]}):(0,i.jsxs)("div",{className:"flex flex-col justify-between h-screen border-r dark:bg-[#1A1E26] animate-fade animate-duration-300",children:[(0,i.jsx)(ef(),{href:"/",className:"px-2 py-3",children:(0,i.jsx)(ec(),{src:"/LOGO_SMALL.png",alt:"DB-GPT",width:63,height:46,className:"w-[63px] h-[46px]"})}),(0,i.jsx)("div",{className:"border-t border-dashed",children:(0,i.jsx)(ef(),{href:"/",className:"flex items-center justify-center my-4 mx-auto w-12 h-12 bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f] border-none rounded-full text-white",children:(0,i.jsx)(K.Z,{className:"text-lg"})})}),(0,i.jsx)("div",{className:"flex-1 overflow-y-scroll py-4 border-t border-dashed space-y-2",children:null==r?void 0:r.map(n=>{let r=n.conv_uid===e&&n.chat_mode===t;return(0,i.jsx)(eo.Z,{title:n.user_name||n.user_input,placement:"right",children:(0,i.jsx)(ef(),{href:"/chat?scene=".concat(n.chat_mode,"&id=").concat(n.conv_uid),className:eg(r),children:(0,i.jsx)(R,{})})},n.conv_uid)})}),(0,i.jsxs)("div",{className:"py-4 space-y-2 border-t",children:[(0,i.jsx)(ei.Z,{menu:{items:O},placement:"topRight",children:(0,i.jsx)("div",{className:eg(),children:(0,i.jsx)(X,{})})}),(0,i.jsx)(ei.Z,{menu:{items:k},placement:"topRight",children:(0,i.jsx)("div",{className:eg(),children:(0,i.jsx)(J,{})})}),$.filter(e=>e.noDropdownItem).map(e=>(0,i.jsx)(eo.Z,{title:e.name,placement:"right",children:(0,i.jsx)("div",{className:eg(),onClick:e.onClick,children:e.icon})},e.key))]})]})},ey=n(38629),eb=n(59077),ex=n(9818);let ew=(0,eb.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...ex.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...ex.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var eC=n(74865),eS=n.n(eC);let eE=0;function e$(){"loading"!==o&&(o="loading",r=setTimeout(function(){eS().start()},250))}function eO(){eE>0||(o="stop",clearTimeout(r),eS().done())}if(ep().events.on("routeChangeStart",e$),ep().events.on("routeChangeComplete",eO),ep().events.on("routeChangeError",eO),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,n=Array(t),r=0;r{let e=function(){let e=localStorage.getItem(c.he);return e||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}();o(e)},[]),(0,a.useEffect)(()=>{if((null==s?void 0:s.current)&&r){var e,t,n,o,i,a;null==s||null===(e=s.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==s||null===(n=s.current)||void 0===n||null===(o=n.classList)||void 0===o||o.remove("dark"):null==s||null===(i=s.current)||void 0===i||null===(a=i.classList)||void 0===a||a.remove("light")}},[s,r]),(0,a.useEffect)(()=>{n.changeLanguage&&n.changeLanguage(window.localStorage.getItem(c.Yl)||"en")},[n]),(0,i.jsxs)("div",{ref:s,children:[(0,i.jsx)(ek,{}),(0,i.jsx)(l.R,{children:t})]})}function eN(e){let{children:t}=e,{isMenuExpand:n}=(0,a.useContext)(l.p),{mode:r}=Z(),{i18n:o}=(0,eh.$G)();return(0,i.jsx)(eZ.ZP,{locale:"en"===o.language?eA.Z:eM.Z,theme:{token:{borderRadius:4},algorithm:"dark"===r?e_.default.darkAlgorithm:void 0},children:(0,i.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,i.jsx)("div",{className:eP()("transition-[width]",n?"w-64":"w-20","hidden","md:block"),children:(0,i.jsx)(ev,{})}),(0,i.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t})]})})}var eT=function(e){let{Component:t,pageProps:n}=e;return(0,i.jsx)(ey.Z,{theme:ew,children:(0,i.jsx)(P,{theme:ew,defaultMode:"light",children:(0,i.jsx)(eR,{children:(0,i.jsx)(eN,{children:(0,i.jsx)(t,{...n})})})})})}},19284:function(e,t,n){"use strict";n.d(t,{Hf:function(){return r},S$:function(){return i},l3:function(){return o}});let r={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"},"internlm-7b":{label:"internlm-chat-7b-v1_1",icon:"/models/internlm.png"},"internlm-7b-8k":{label:"internlm-chat-7b-8k",icon:"/models/internlm.png"},"solar-10.7b-instruct-v1.0":{label:"solar-10.7b-instruct-v1.0",icon:"/models/solar_logo.png"}},o={Chroma:"/models/chroma-logo.png"},i={mysql:{label:"MySQL",icon:"/icons/mysql.png",desc:"Fast, reliable, scalable open-source relational database management system."},mssql:{label:"MSSQL",icon:"/icons/mssql.png",desc:"Powerful, scalable, secure relational database system by Microsoft."},duckdb:{label:"DuckDB",icon:"/icons/duckdb.png",desc:"In-memory analytical database with efficient query processing."},sqlite:{label:"Sqlite",icon:"/icons/sqlite.png",desc:"Lightweight embedded relational database with simplicity and portability."},clickhouse:{label:"ClickHouse",icon:"/icons/clickhouse.png",desc:"Columnar database for high-performance analytics and real-time queries."},oracle:{label:"Oracle",icon:"/icons/oracle.png",desc:"Robust, scalable, secure relational database widely used in enterprises."},access:{label:"Access",icon:"/icons/access.png",desc:"Easy-to-use relational database for small-scale applications by Microsoft."},mongodb:{label:"MongoDB",icon:"/icons/mongodb.png",desc:"Flexible, scalable NoSQL document database for web and mobile apps."},doris:{label:"ApacheDoris",icon:"/icons/doris.png",desc:"A new-generation open-source real-time data warehouse."},starrocks:{label:"StarRocks",icon:"/icons/starrocks.png",desc:"An Open-Source, High-Performance Analytical Database."},db2:{label:"DB2",icon:"/icons/db2.png",desc:"Scalable, secure relational database system developed by IBM."},hbase:{label:"HBase",icon:"/icons/hbase.png",desc:"Distributed, scalable NoSQL database for large structured/semi-structured data."},redis:{label:"Redis",icon:"/icons/redis.png",desc:"Fast, versatile in-memory data structure store as cache, DB, or broker."},cassandra:{label:"Cassandra",icon:"/icons/cassandra.png",desc:"Scalable, fault-tolerant distributed NoSQL database for large data."},couchbase:{label:"Couchbase",icon:"/icons/couchbase.png",desc:"High-performance NoSQL document database with distributed architecture."},postgresql:{label:"PostgreSQL",icon:"/icons/postgresql.png",desc:"Powerful open-source relational database with extensibility and SQL standards."},spark:{label:"Spark",icon:"/icons/spark.png",desc:"Unified engine for large-scale data analytics."},space:{label:"Space",icon:"/icons/knowledge.png",desc:"knowledge analytics."}}},98399:function(e,t,n){"use strict";function r(){var e;let t=null!==(e=localStorage.getItem(l))&&void 0!==e?e:"";try{let e=JSON.parse(t);return e}catch(e){return null}}n.d(t,{rU:function(){return l},Yl:function(){return a},he:function(){return i},S$:function(){return o.S$},a_:function(){return r}});var o=n(19284);let i="__db_gpt_theme_key",a="__db_gpt_lng_key",l="__db_gpt_im_key"},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],l=i[1],c=new o((a+l)*3/4-l),u=0,f=l>0?a-4:a;for(n=0;n>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t),1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,l=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var r=n(675),o=n(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return k(e).length;default:if(o)return r?-1:$(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,n){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(i=n=+n)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,l=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;il&&(n=l-s),i=n;i>=0;i--){for(var f=!0,d=0;d239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function x(e,t,n,r,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function w(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function C(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,i){return t=+t,n>>>=0,i||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return s(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);on&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,o){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),c=this.slice(r,o),u=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,c,u,f,d,p,h,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var v=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o.push(n%256),o.push(r);return o}(e,this.length-h),this,h,m);default:if(v)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),v=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);x(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function O(e){for(var t=[],n=0;n=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var Z=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,o){var i,a,l=8*o-r-1,s=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,l,s,c=8*i-o-1,u=(1<>1,d=23===o?5960464477539062e-23:0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(72);e.exports=o}()},90833:function(){},80864:function(){},77663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s=[],c=!1,u=-1;function f(){c&&r&&(c=!1,r.length?s=r.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=l(f);c=!0;for(var t=s.length;t;){for(r=s,s=[];++u1)for(var n=1;n
'};function i(e,t,n){return en?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(o[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=i(e,o.minimum,1),r.status=1===e?null:e;var n=r.render(!t),s=n.querySelector(o.barSelector),c=o.speed,u=o.easing;return n.offsetWidth,a(function(t){var i,a;""===o.positionUsing&&(o.positionUsing=r.getPositioningCSS()),l(s,(i=e,(a="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+i)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+i)*100+"%,0)"}:{"margin-left":(-1+i)*100+"%"}).transition="all "+c+"ms "+u,a)),1===e?(l(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){l(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},c)},c)):setTimeout(t,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var n,i,a=t.querySelector(o.barSelector),s=e?"-100":(-1+(r.status||0))*100,u=document.querySelector(o.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(i=t.querySelector(o.spinnerSelector))&&d(i),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var a=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,o){var i;r=t[i=(i=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[i]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(i)),n.style[r]=o}return function(e,t){var r,o,i=arguments;if(2==i.length)for(r in t)void 0!==(o=t[r])&&t.hasOwnProperty(r)&&n(e,r,o);else n(e,i[1],i[2])}}();function s(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=f(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=f(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)&&(e.exports=o)},13328:function(e,t,n){"use strict";n.d(t,{s:function(){return b},Z:function(){return E}});var r=n(87462),o=n(97685),i=n(67294),a=n(2788),l=n(1413),s=n(94184),c=n.n(s),u=n(94999),f=n(7028),d=n(15105),p=n(64217);function h(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var g=n(82225),v=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),y={width:0,height:0,overflow:"hidden",outline:"none"},b=i.forwardRef(function(e,t){var n,o,a,s=e.prefixCls,u=e.className,f=e.style,d=e.title,p=e.ariaId,h=e.footer,m=e.closable,g=e.closeIcon,b=e.onClose,x=e.children,w=e.bodyStyle,C=e.bodyProps,S=e.modalRender,E=e.onMouseDown,$=e.onMouseUp,O=e.holderRef,k=e.visible,j=e.forceRender,P=e.width,Z=e.height,_=(0,i.useRef)(),A=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=_.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===A.current?_.current.focus():e||t!==_.current||A.current.focus()}}});var R={};void 0!==P&&(R.width=P),void 0!==Z&&(R.height=Z),h&&(n=i.createElement("div",{className:"".concat(s,"-footer")},h)),d&&(o=i.createElement("div",{className:"".concat(s,"-header")},i.createElement("div",{className:"".concat(s,"-title"),id:p},d))),m&&(a=i.createElement("button",{type:"button",onClick:b,"aria-label":"Close",className:"".concat(s,"-close")},g||i.createElement("span",{className:"".concat(s,"-close-x")})));var M=i.createElement("div",{className:"".concat(s,"-content")},a,o,i.createElement("div",(0,r.Z)({className:"".concat(s,"-body"),style:w},C),x),n);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":d?p:null,"aria-modal":"true",ref:O,style:(0,l.Z)((0,l.Z)({},f),R),className:c()(s,u),onMouseDown:E,onMouseUp:$},i.createElement("div",{tabIndex:0,ref:_,style:y,"aria-hidden":"true"}),i.createElement(v,{shouldUpdate:k||j},S?S(M):M),i.createElement("div",{tabIndex:0,ref:A,style:y,"aria-hidden":"true"}))}),x=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.title,s=e.style,u=e.className,f=e.visible,d=e.forceRender,p=e.destroyOnClose,h=e.motionName,v=e.ariaId,y=e.onVisibleChanged,x=e.mousePosition,w=(0,i.useRef)(),C=i.useState(),S=(0,o.Z)(C,2),E=S[0],$=S[1],O={};function k(){var e,t,n,r,o,i=(n={left:(t=(e=w.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=m(o),n.top+=m(o,!0),n);$(x?"".concat(x.x-i.left,"px ").concat(x.y-i.top,"px"):"")}return E&&(O.transformOrigin=E),i.createElement(g.ZP,{visible:f,onVisibleChanged:y,onAppearPrepare:k,onEnterPrepare:k,forceRender:d,motionName:h,removeOnLeave:p,ref:w},function(o,f){var d=o.className,p=o.style;return i.createElement(b,(0,r.Z)({},e,{ref:t,title:a,ariaId:v,prefixCls:n,holderRef:f,style:(0,l.Z)((0,l.Z)((0,l.Z)({},p),s),O),className:c()(u,d)}))})});function w(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,s=e.motionName;return i.createElement(g.ZP,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var s=e.className,u=e.style;return i.createElement("div",(0,r.Z)({ref:o,style:(0,l.Z)((0,l.Z)({},u),n),className:c()("".concat(t,"-mask"),s)},a))})}function C(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,s=e.visible,m=void 0!==s&&s,g=e.keyboard,v=void 0===g||g,y=e.focusTriggerAfterClose,b=void 0===y||y,C=e.wrapStyle,S=e.wrapClassName,E=e.wrapProps,$=e.onClose,O=e.afterOpenChange,k=e.afterClose,j=e.transitionName,P=e.animation,Z=e.closable,_=e.mask,A=void 0===_||_,R=e.maskTransitionName,M=e.maskAnimation,N=e.maskClosable,T=e.maskStyle,F=e.maskProps,I=e.rootClassName,L=(0,i.useRef)(),B=(0,i.useRef)(),z=(0,i.useRef)(),D=i.useState(m),H=(0,o.Z)(D,2),V=H[0],U=H[1],W=(0,f.Z)();function q(e){null==$||$(e)}var K=(0,i.useRef)(!1),G=(0,i.useRef)(),X=null;return(void 0===N||N)&&(X=function(e){K.current?K.current=!1:B.current===e.target&&q(e)}),(0,i.useEffect)(function(){m&&(U(!0),(0,u.Z)(B.current,document.activeElement)||(L.current=document.activeElement))},[m]),(0,i.useEffect)(function(){return function(){clearTimeout(G.current)}},[]),i.createElement("div",(0,r.Z)({className:c()("".concat(n,"-root"),I)},(0,p.Z)(e,{data:!0})),i.createElement(w,{prefixCls:n,visible:A&&m,motionName:h(n,R,M),style:(0,l.Z)({zIndex:a},T),maskProps:F}),i.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(v&&e.keyCode===d.Z.ESC){e.stopPropagation(),q(e);return}m&&e.keyCode===d.Z.TAB&&z.current.changeActive(!e.shiftKey)},className:c()("".concat(n,"-wrap"),S),ref:B,onClick:X,style:(0,l.Z)((0,l.Z)({zIndex:a},C),{},{display:V?null:"none"})},E),i.createElement(x,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(G.current),K.current=!0},onMouseUp:function(){G.current=setTimeout(function(){K.current=!1})},ref:z,closable:void 0===Z||Z,ariaId:W,prefixCls:n,visible:m&&V,onClose:q,onVisibleChanged:function(e){if(e)!function(){if(!(0,u.Z)(B.current,document.activeElement)){var e;null===(e=z.current)||void 0===e||e.focus()}}();else{if(U(!1),A&&L.current&&b){try{L.current.focus({preventScroll:!0})}catch(e){}L.current=null}V&&(null==k||k())}null==O||O(e)},motionName:h(n,j,P)}))))}x.displayName="Content";var S=function(e){var t=e.visible,n=e.getContainer,l=e.forceRender,s=e.destroyOnClose,c=void 0!==s&&s,u=e.afterClose,f=i.useState(t),d=(0,o.Z)(f,2),p=d[0],h=d[1];return(i.useEffect(function(){t&&h(!0)},[t]),l||!c||p)?i.createElement(a.Z,{open:t||l||p,autoDestroy:!1,getContainer:n,autoLock:t||p},i.createElement(C,(0,r.Z)({},e,{destroyOnClose:c,afterClose:function(){null==u||u(),h(!1)}}))):null};S.displayName="Dialog";var E=S},29171:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(87462),o=n(4942),i=n(97685),a=n(45987),l=n(40228),s=n(94184),c=n.n(s),u=n(42550),f=n(67294),d=n(15105),p=n(75164),h=d.Z.ESC,m=d.Z.TAB,g=(0,f.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,f.useMemo)(function(){return"function"==typeof n?n():n},[n]),a=(0,u.sQ)(t,null==i?void 0:i.ref);return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(i,{ref:(0,u.Yr)(i)?a:void 0}))}),v={adjustX:1,adjustY:1},y=[0,0],b={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},x=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],w=f.forwardRef(function(e,t){var n,s,d,v,y,w,C,S,E,$,O,k,j,P,Z=e.arrow,_=void 0!==Z&&Z,A=e.prefixCls,R=void 0===A?"rc-dropdown":A,M=e.transitionName,N=e.animation,T=e.align,F=e.placement,I=e.placements,L=e.getPopupContainer,B=e.showAction,z=e.hideAction,D=e.overlayClassName,H=e.overlayStyle,V=e.visible,U=e.trigger,W=void 0===U?["hover"]:U,q=e.autoFocus,K=e.overlay,G=e.children,X=e.onVisibleChange,Y=(0,a.Z)(e,x),J=f.useState(),Q=(0,i.Z)(J,2),ee=Q[0],et=Q[1],en="visible"in e?V:ee,er=f.useRef(null),eo=f.useRef(null),ei=f.useRef(null);f.useImperativeHandle(t,function(){return er.current});var ea=function(e){et(e),null==X||X(e)};s=(n={visible:en,triggerRef:ei,onVisibleChange:ea,autoFocus:q,overlayRef:eo}).visible,d=n.triggerRef,v=n.onVisibleChange,y=n.autoFocus,w=n.overlayRef,C=f.useRef(!1),S=function(){if(s){var e,t;null===(e=d.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==v||v(!1)}},E=function(){var e;return null!==(e=w.current)&&void 0!==e&&!!e.focus&&(w.current.focus(),C.current=!0,!0)},$=function(e){switch(e.keyCode){case h:S();break;case m:var t=!1;C.current||(t=E()),t?e.preventDefault():S()}},f.useEffect(function(){return s?(window.addEventListener("keydown",$),y&&(0,p.Z)(E,3),function(){window.removeEventListener("keydown",$),C.current=!1}):function(){C.current=!1}},[s]);var el=function(){return f.createElement(g,{ref:eo,overlay:K,prefixCls:R,arrow:_})},es=f.cloneElement(G,{className:c()(null===(P=G.props)||void 0===P?void 0:P.className,en&&(void 0!==(O=e.openClassName)?O:"".concat(R,"-open"))),ref:(0,u.Yr)(G)?(0,u.sQ)(ei,G.ref):void 0}),ec=z;return ec||-1===W.indexOf("contextMenu")||(ec=["click"]),f.createElement(l.Z,(0,r.Z)({builtinPlacements:void 0===I?b:I},Y,{prefixCls:R,ref:er,popupClassName:c()(D,(0,o.Z)({},"".concat(R,"-show-arrow"),_)),popupStyle:H,action:W,showAction:B,hideAction:ec,popupPlacement:void 0===F?"bottomLeft":F,popupAlign:T,popupTransitionName:M,popupAnimation:N,popupVisible:en,stretch:(k=e.minOverlayWidthMatchTrigger,j=e.alignPoint,"minOverlayWidthMatchTrigger"in e?k:!j)?"minWidth":"",popup:"function"==typeof K?el:el(),onPopupVisibleChange:ea,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:L}),es)})},43589:function(e,t,n){"use strict";n.d(t,{gN:function(){return eg},zb:function(){return x},RV:function(){return eO},aV:function(){return ev},ZM:function(){return w},ZP:function(){return eA},cI:function(){return eE},qo:function(){return eZ}});var r,o=n(67294),i=n(87462),a=n(45987),l=n(4942),s=n(1413),c=n(74902),u=n(15671),f=n(43144),d=n(97326),p=n(32531),h=n(73568),m=n(50344),g=n(80334),v=n(91881),y="RC_FORM_INTERNAL_HOOKS",b=function(){(0,g.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},x=o.createContext({getFieldValue:b,getFieldsValue:b,getFieldError:b,getFieldWarning:b,getFieldsError:b,isFieldsTouched:b,isFieldTouched:b,isFieldValidating:b,isFieldsValidating:b,resetFields:b,setFields:b,setFieldValue:b,setFieldsValue:b,validateFields:b,submit:b,getInternalHooks:function(){return b(),{dispatch:b,initEntityValue:b,registerField:b,useSubscribe:b,setInitialValues:b,destroyForm:b,setCallbacks:b,registerWatch:b,getFields:b,setValidateMessages:b,setPreserve:b,getInitialValue:b}}}),w=o.createContext(null);function C(e){return null==e?[]:Array.isArray(e)?e:[e]}var S=n(74165),E=n(15861),$=n(83454);function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function M(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function N(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length){n(a);return}var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},D={integer:function(e){return D.number(e)&&parseInt(e,10)===e},float:function(e){return D.number(e)&&!D.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!D.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(z.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(B())},hex:function(e){return"string"==typeof e&&!!e.match(z.hex)}},H="enum",V={required:L,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(R(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t){L(e,t,n,r,o);return}var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?D[i](t)||r.push(R(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(R(o.messages.types[i],e.fullField,e.type))},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?c="number":f?c="string":d&&(c="array"),!c)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(R(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?r.push(R(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&r.push(R(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[H]=Array.isArray(e[H])?e[H]:[],-1===e[H].indexOf(t)&&r.push(R(o.messages[H],e.fullField,e[H].join(", ")))},pattern:function(e,t,n,r,o){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(R(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||r.push(R(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},U=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,i)&&!e.required)return n();V.required(e,t,r,a,o,i),M(t,i)||V.type(e,t,r,a,o)}n(a)},W={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,"string")&&!e.required)return n();V.required(e,t,r,i,o,"string"),M(t,"string")||(V.type(e,t,r,i,o),V.range(e,t,r,i,o),V.pattern(e,t,r,i,o),!0===e.whitespace&&V.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),M(t)||V.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();V.required(e,t,r,i,o,"array"),null!=t&&(V.type(e,t,r,i,o),V.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o),void 0!==t&&V.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,"string")&&!e.required)return n();V.required(e,t,r,i,o),M(t,"string")||V.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t,"date")&&!e.required)return n();V.required(e,t,r,a,o),!M(t,"date")&&(i=t instanceof Date?t:new Date(t),V.type(e,i,r,a,o),i&&V.range(e,i.getTime(),r,a,o))}n(a)},url:U,hex:U,email:U,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;V.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(M(t)&&!e.required)return n();V.required(e,t,r,i,o)}n(i)}};function q(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var K=q(),G=function(){function e(e){this.rules=null,this._messages=K,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=I(q(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===K&&(s=q()),I(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach(function(e){var n=o.rules[e],r=i[e];n.forEach(function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=O({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:O({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))})});var u={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a;N((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,e[t]||[])}),a),n,function(e){return r(e),e.length?i(new T(e,A(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(t,i){var f=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new T(u,A(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?N(r,n,f):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,f)})});return f.catch(function(e){return e}),f}(c,a,function(t,n){var r,o=t.rule,l=("object"===o.type||"array"===o.type)&&("object"==typeof o.fields||"object"==typeof o.defaultField);function s(e,t){return O({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var f=c.map(F(o,i));if(a.first&&f.length)return u[o.field]=1,n(f);if(l){if(o.required&&!t.value)return void 0!==o.message?f=[].concat(o.message).map(F(o,i)):a.error&&(f=[a.error(o,R(a.messages.required,o.field))]),n(f);var d={};o.defaultField&&Object.keys(t.value).map(function(e){d[e]=o.defaultField});var p={};Object.keys(d=O({},d,t.rule.fields)).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))});var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(f)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){for(var t=[],n={},r=0;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,c.Z)(e.slice(0,n)),[o],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[o],(0,c.Z)(e.slice(n+1,r))):e}var ed=["name"],ep=[];function eh(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var em=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var r;return(0,u.Z)(this,n),(r=t.call(this,e)).state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.prevValidating=void 0,r.errors=ep,r.warnings=ep,r.cancelRegister=function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ea(o)),r.cancelRegisterFunc=null},r.getNamePath=function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName,o=void 0===n?[]:n;return void 0!==t?[].concat((0,c.Z)(o),(0,c.Z)(t)):[]},r.getRules=function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})},r.refresh=function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})},r.metaCache=null,r.triggerMetaEvent=function(e){var t=r.props.onMetaChange;if(t){var n=(0,s.Z)((0,s.Z)({},r.getMeta()),{},{destroy:e});(0,v.Z)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null},r.onStoreChange=function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=n.store,u=r.getNamePath(),f=r.getValue(e),d=r.getValue(c),p=t&&es(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&f!==d&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ep,r.warnings=ep,r.triggerMetaEvent()),n.type){case"reset":if(!t||p){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ep,r.warnings=ep,r.triggerMetaEvent(),null==s||s(),r.refresh();return}break;case"remove":if(i){r.reRender();return}break;case"setField":if(p){var h=n.data;"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||ep),"warnings"in h&&(r.warnings=h.warnings||ep),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if(i&&!u.length&&eh(i,e,c,f,d,n)){r.reRender();return}break;case"dependenciesUpdate":if(l.map(ea).some(function(e){return es(n.relatedFields,e)})){r.reRender();return}break;default:if(p||(!l.length||u.length||i)&&eh(i,e,c,f,d,n)){r.reRender();return}}!0===i&&r.reRender()},r.validateRules=function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=Promise.resolve().then(function(){if(!r.mounted)return[];var o=r.props,a=o.validateFirst,u=void 0!==a&&a,f=o.messageVariables,d=r.getRules();i&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||C(t).includes(i)}));var p=function(e,t,n,r,o,i){var a,l,c=e.join("."),u=n.map(function(e,t){var n=e.validator,r=(0,s.Z)((0,s.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:ep;if(r.validatePromise===l){r.validatePromise=null;var t,n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?ep:r;t?o.push.apply(o,(0,c.Z)(i)):n.push.apply(n,(0,c.Z)(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),p});return void 0!==a&&a||(r.validatePromise=l,r.dirty=!0,r.errors=ep,r.warnings=ep,r.triggerMetaEvent(),r.reRender()),l},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(y).getInitialValue)(r.getNamePath())},r.getErrors=function(){return r.errors},r.getWarnings=function(){return r.warnings},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return(0,s.Z)((0,s.Z)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return(0,ei.Z)(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,c=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==o?o:f.validateTrigger,p=r.getNamePath(),h=f.getInternalHooks,m=f.getFieldsValue,g=h(y).dispatch,v=r.getValue(),b=u||function(e){return(0,l.Z)({},c,e)},x=e[n],w=(0,s.Z)((0,s.Z)({},e),b(v));return w[n]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o=0&&t<=n.length?(d.keys=[].concat((0,c.Z)(d.keys.slice(0,t)),[d.id],(0,c.Z)(d.keys.slice(t))),o([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(d.keys=[].concat((0,c.Z)(d.keys),[d.id]),o([].concat((0,c.Z)(n),[e]))),d.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(d.keys=ef(d.keys,e,t),o(ef(n,e,t)))}}},t)})))},ey=n(97685),eb="__@field_split__";function ex(e){return e.map(function(e){return"".concat((0,eo.Z)(e),":").concat(e)}).join(eb)}var ew=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(ex(e),t)}},{key:"get",value:function(e){return this.kvs.get(ex(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ex(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map(function(t){var n=(0,ey.Z)(t,2),r=n[0],o=n[1];return e({key:r.split(eb).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ey.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),eC=["name"],eS=(0,f.Z)(function e(t){var n=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===y?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,g.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,o=(0,J.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=(0,J.Z)(o,n,(0,ei.Z)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}},this.destroyForm=function(){var e=new ew;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=(0,ei.Z)(n.initialValues,e);return e.length?(0,J.T)(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ew;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=ea(e);return t.get(n)||{INVALIDATE_NAME_PATH:ea(e)}})},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,eo.Z)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,i,a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null===(n=e.isList)||void 0===n?void 0:n.call(e))return}else if(!r&&(null===(t=e.isListField)||void 0===t?void 0:t.call(e)))return;o?o("getMeta"in e?e.getMeta():null)&&l.push(a):l.push(a)}),el(n.store,l.map(ea))},this.getFieldValue=function(e){n.warningUnhooked();var t=ea(e);return(0,ei.Z)(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:ea(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){n.warningUnhooked();var t=ea(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=ea(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=new ew,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,c.Z)((0,c.Z)(o).map(function(e){return e.entity})))})):e=o,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))(0,g.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)(0,g.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);t.skipExist&&void 0!==a||n.updateStore((0,J.Z)(n.store,o,(0,c.Z)(i)[0].value))}}}})}(e)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore((0,J.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(ea);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,J.Z)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(0,a.Z)(e,eC),l=ea(o);r.push(l),"value"in i&&n.updateStore((0,J.Z)(n.store,l,i.value)),n.notifyObservers(t,[l],{type:"setField",data:e})}),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,s.Z)((0,s.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,ei.Z)(n.store,r)&&n.updateStore((0,J.Z)(n.store,r,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!ec(e.getNamePath(),t)})){var l=n.store;n.updateStore((0,J.Z)(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=(0,s.Z)((0,s.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.Z)(r))}),r},this.updateValue=function(e,t){var r=ea(e),o=n.store;n.updateStore((0,J.Z)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(el(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,c.Z)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,J.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new ew;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=ea(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new ew;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){return es(e,t.name)});a.length&&r(a,o)}},this.validateFields=function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(a=e,l=t):l=e;var r,o,i,a,l,u=!!a,f=u?a.map(ea):[],d=[],p=String(Date.now()),h=new Set;n.getFieldEntities(!0).forEach(function(e){if(u||f.push(e.getNamePath()),(null===(t=l)||void 0===t?void 0:t.recursive)&&u){var t,r=e.getNamePath();r.every(function(e,t){return a[t]===e||void 0===a[t]})&&f.push(r)}if(e.props.rules&&e.props.rules.length){var o=e.getNamePath();if(h.add(o.join(p)),!u||es(f,o)){var i=e.validateRules((0,s.Z)({validateMessages:(0,s.Z)((0,s.Z)({},Y),n.validateMessages)},l));d.push(i.then(function(){return{name:o,errors:[],warnings:[]}}).catch(function(e){var t,n=[],r=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,(0,c.Z)(o)):n.push.apply(n,(0,c.Z)(o))}),n.length)?Promise.reject({name:o,errors:n,warnings:r}):{name:o,errors:n,warnings:r}}))}}});var m=(r=!1,o=d.length,i=[],d.length?new Promise(function(e,t){d.forEach(function(n,a){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,i[a]=n,o>0||(r&&t(i),e(i))})})}):Promise.resolve([]));n.lastValidatePromise=m,m.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:t,outOfDate:n.lastValidatePromise!==m})});g.catch(function(e){return e});var v=f.filter(function(e){return h.has(e.join(p))});return n.triggerOnFieldsChange(v),g},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eE=function(e){var t=o.useRef(),n=o.useState({}),r=(0,ey.Z)(n,2)[1];if(!t.current){if(e)t.current=e;else{var i=new eS(function(){r({})});t.current=i.getForm()}}return[t.current]},e$=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eO=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(e$),c=o.useRef({});return o.createElement(e$.Provider,{value:(0,s.Z)((0,s.Z)({},a),{},{validateMessages:(0,s.Z)((0,s.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:c.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:c.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=(0,s.Z)((0,s.Z)({},c.current),{},(0,l.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.Z)({},c.current);delete t[e],c.current=t,a.unregisterForm(e)}})},i)},ek=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function ej(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var eP=function(){},eZ=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1];if((0,A.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var M=Z.Z.LEFT,N=Z.Z.RIGHT,T=Z.Z.UP,F=Z.Z.DOWN,I=Z.Z.ENTER,L=Z.Z.ESC,B=Z.Z.HOME,z=Z.Z.END,D=[T,F,M,N];function H(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter(function(e){return R(e,t)});return R(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function V(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=H(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var U="__RC_UTIL_PATH_SPLIT__",W=function(e){return e.join(U)},q="rc-menu-more";function K(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&(E.motionAppear=!1);var $=E.onVisibleChanged;return(E.onVisibleChanged=function(e){return g.current||e||x(!0),null==$?void 0:$(e)},b)?null:h.createElement(S,{mode:s,locked:!g.current},h.createElement(e$.ZP,(0,r.Z)({visible:w},E,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(e){var n=e.className,r=e.style;return h.createElement(em,{id:t,className:n,style:r},a)}))}var ek=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ej=["active"],eP=function(e){var t,n=e.style,a=e.className,c=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,g=e.children,v=e.itemIcon,y=e.expandIcon,x=e.popupClassName,w=e.popupOffset,E=e.onClick,$=e.onMouseEnter,O=e.onMouseLeave,Z=e.onTitleClick,_=e.onTitleMouseEnter,A=e.onTitleMouseLeave,R=(0,s.Z)(e,ek),M=b(d),N=h.useContext(C),T=N.prefixCls,F=N.mode,I=N.openKeys,L=N.disabled,B=N.overflowDisabled,z=N.activeKey,D=N.selectedKeys,H=N.itemIcon,V=N.expandIcon,U=N.onItemClick,W=N.onOpenChange,q=N.onActive,G=h.useContext(P)._internalRenderSubMenuItem,X=h.useContext(j).isSubPathKey,Y=k(),J="".concat(T,"-submenu"),Q=L||p,ee=h.useRef(),et=h.useRef(),en=y||V,ea=I.includes(d),es=!B&&ea,ec=X(D,d),eu=er(d,Q,_,A),ef=eu.active,ed=(0,s.Z)(eu,ej),ep=h.useState(!1),eh=(0,l.Z)(ep,2),eg=eh[0],ev=eh[1],ey=function(e){Q||ev(e)},eb=h.useMemo(function(){return ef||"inline"!==F&&(eg||X([z],d))},[F,ef,z,eg,d,X]),ex=eo(Y.length),ew=K(function(e){null==E||E(el(e)),U(e)}),eC=M&&"".concat(M,"-popup"),eS=h.createElement("div",(0,r.Z)({role:"menuitem",style:ex,className:"".concat(J,"-title"),tabIndex:Q?null:-1,ref:ee,title:"string"==typeof c?c:null,"data-menu-id":B&&M?null:M,"aria-expanded":es,"aria-haspopup":!0,"aria-controls":eC,"aria-disabled":Q,onClick:function(e){Q||(null==Z||Z({key:d,domEvent:e}),"inline"===F&&W(d,!ea))},onFocus:function(){q(d)}},ed),c,h.createElement(ei,{icon:"horizontal"!==F?en:null,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:es,isSubMenu:!0})},h.createElement("i",{className:"".concat(J,"-arrow")}))),e$=h.useRef(F);if("inline"!==F&&Y.length>1?e$.current="vertical":e$.current=F,!B){var eP=e$.current;eS=h.createElement(eE,{mode:eP,prefixCls:J,visible:!m&&es&&"inline"!==F,popupClassName:x,popupOffset:w,popup:h.createElement(S,{mode:"horizontal"===eP?"vertical":eP},h.createElement(em,{id:eC,ref:et},g)),disabled:Q,onVisibleChange:function(e){"inline"!==F&&W(d,e)}},eS)}var eZ=h.createElement(f.Z.Item,(0,r.Z)({role:"none"},R,{component:"li",style:n,className:u()(J,"".concat(J,"-").concat(F),a,(t={},(0,o.Z)(t,"".concat(J,"-open"),es),(0,o.Z)(t,"".concat(J,"-active"),eb),(0,o.Z)(t,"".concat(J,"-selected"),ec),(0,o.Z)(t,"".concat(J,"-disabled"),Q),t)),onMouseEnter:function(e){ey(!0),null==$||$({key:d,domEvent:e})},onMouseLeave:function(e){ey(!1),null==O||O({key:d,domEvent:e})}}),eS,!B&&h.createElement(eO,{id:eC,open:es,keyPath:Y},g));return G&&(eZ=G(eZ,e,{selected:ec,active:eb,open:es,disabled:Q})),h.createElement(S,{onItemClick:ew,mode:"horizontal"===F?"vertical":F,itemIcon:v||H,expandIcon:en},eZ)};function eZ(e){var t,n=e.eventKey,r=e.children,o=k(n),i=ev(r,o),a=$();return h.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]),t=a?i:h.createElement(eP,e,i),h.createElement(O.Provider,{value:o},t)}var e_=n(71002),eA=["className","title","eventKey","children"],eR=["children"],eM=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,s.Z)(e,eA),a=h.useContext(C).prefixCls,l="".concat(a,"-item-group");return h.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:u()(l,t)}),h.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),h.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))};function eN(e){var t=e.children,n=(0,s.Z)(e,eR),r=ev(t,k(n.eventKey));return $()?r:h.createElement(eM,(0,et.Z)(n,["warnKey"]),r)}function eT(e){var t=e.className,n=e.style,r=h.useContext(C).prefixCls;return $()?null:h.createElement("li",{className:u()("".concat(r,"-item-divider"),t),style:n})}var eF=["label","children","key","type"],eI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],eL=[],eB=h.forwardRef(function(e,t){var n,c,p,b,x,w,C,$,O,k,Z,A,R,Y,J,Q,ee,et,en,er,eo,ei,ea,es,ec,eu,ef,ed=e.prefixCls,eh=void 0===ed?"rc-menu":ed,em=e.rootClassName,eg=e.style,ey=e.className,eb=e.tabIndex,ex=e.items,ew=e.children,eC=e.direction,eS=e.id,eE=e.mode,e$=void 0===eE?"vertical":eE,eO=e.inlineCollapsed,ek=e.disabled,ej=e.disabledOverflow,eP=e.subMenuOpenDelay,eA=e.subMenuCloseDelay,eR=e.forceSubMenuRender,eM=e.defaultOpenKeys,eB=e.openKeys,ez=e.activeKey,eD=e.defaultActiveFirst,eH=e.selectable,eV=void 0===eH||eH,eU=e.multiple,eW=void 0!==eU&&eU,eq=e.defaultSelectedKeys,eK=e.selectedKeys,eG=e.onSelect,eX=e.onDeselect,eY=e.inlineIndent,eJ=e.motion,eQ=e.defaultMotions,e0=e.triggerSubMenuAction,e1=e.builtinPlacements,e2=e.itemIcon,e6=e.expandIcon,e4=e.overflowedIndicator,e3=void 0===e4?"...":e4,e5=e.overflowedIndicatorPopupClassName,e8=e.getPopupContainer,e7=e.onClick,e9=e.onOpenChange,te=e.onKeyDown,tt=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),tn=e._internalRenderSubMenuItem,tr=(0,s.Z)(e,eI),to=h.useMemo(function(){var e;return e=ew,ex&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,e_.Z)(t)){var o=t.label,i=t.children,a=t.key,l=t.type,c=(0,s.Z)(t,eF),u=null!=a?a:"tmp-".concat(n);return i||"group"===l?"group"===l?h.createElement(eN,(0,r.Z)({key:u},c,{title:o}),e(i)):h.createElement(eZ,(0,r.Z)({key:u},c,{title:o}),e(i)):"divider"===l?h.createElement(eT,(0,r.Z)({key:u},c)):h.createElement(ep,(0,r.Z)({key:u},c),o)}return null}).filter(function(e){return e})}(ex)),ev(e,eL)},[ew,ex]),ti=h.useState(!1),ta=(0,l.Z)(ti,2),tl=ta[0],ts=ta[1],tc=h.useRef(),tu=(n=(0,d.Z)(eS,{value:eS}),p=(c=(0,l.Z)(n,2))[0],b=c[1],h.useEffect(function(){X+=1;var e="".concat(G,"-").concat(X);b("rc-menu-uuid-".concat(e))},[]),p),tf="rtl"===eC,td=(0,d.Z)(eM,{value:eB,postState:function(e){return e||eL}}),tp=(0,l.Z)(td,2),th=tp[0],tm=tp[1],tg=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tm(e),null==e9||e9(e)}t?(0,m.flushSync)(n):n()},tv=h.useState(th),ty=(0,l.Z)(tv,2),tb=ty[0],tx=ty[1],tw=h.useRef(!1),tC=h.useMemo(function(){return("inline"===e$||"vertical"===e$)&&eO?["vertical",eO]:[e$,!1]},[e$,eO]),tS=(0,l.Z)(tC,2),tE=tS[0],t$=tS[1],tO="inline"===tE,tk=h.useState(tE),tj=(0,l.Z)(tk,2),tP=tj[0],tZ=tj[1],t_=h.useState(t$),tA=(0,l.Z)(t_,2),tR=tA[0],tM=tA[1];h.useEffect(function(){tZ(tE),tM(t$),tw.current&&(tO?tm(tb):tg(eL))},[tE,t$]);var tN=h.useState(0),tT=(0,l.Z)(tN,2),tF=tT[0],tI=tT[1],tL=tF>=to.length-1||"horizontal"!==tP||ej;h.useEffect(function(){tO&&tx(th)},[th]),h.useEffect(function(){return tw.current=!0,function(){tw.current=!1}},[]);var tB=(x=h.useState({}),w=(0,l.Z)(x,2)[1],C=(0,h.useRef)(new Map),$=(0,h.useRef)(new Map),O=h.useState([]),Z=(k=(0,l.Z)(O,2))[0],A=k[1],R=(0,h.useRef)(0),Y=(0,h.useRef)(!1),J=function(){Y.current||w({})},Q=(0,h.useCallback)(function(e,t){var n=W(t);$.current.set(n,e),C.current.set(e,n),R.current+=1;var r=R.current;Promise.resolve().then(function(){r===R.current&&J()})},[]),ee=(0,h.useCallback)(function(e,t){var n=W(t);$.current.delete(n),C.current.delete(e)},[]),et=(0,h.useCallback)(function(e){A(e)},[]),en=(0,h.useCallback)(function(e,t){var n=(C.current.get(e)||"").split(U);return t&&Z.includes(n[0])&&n.unshift(q),n},[Z]),er=(0,h.useCallback)(function(e,t){return e.some(function(e){return en(e,!0).includes(t)})},[en]),eo=(0,h.useCallback)(function(e){var t="".concat(C.current.get(e)).concat(U),n=new Set;return(0,a.Z)($.current.keys()).forEach(function(e){e.startsWith(t)&&n.add($.current.get(e))}),n},[]),h.useEffect(function(){return function(){Y.current=!0}},[]),{registerPath:Q,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:er,getKeyPath:en,getKeys:function(){var e=(0,a.Z)(C.current.keys());return Z.length&&e.push(q),e},getSubPathKeys:eo}),tz=tB.registerPath,tD=tB.unregisterPath,tH=tB.refreshOverflowKeys,tV=tB.isSubPathKey,tU=tB.getKeyPath,tW=tB.getKeys,tq=tB.getSubPathKeys,tK=h.useMemo(function(){return{registerPath:tz,unregisterPath:tD}},[tz,tD]),tG=h.useMemo(function(){return{isSubPathKey:tV}},[tV]);h.useEffect(function(){tH(tL?eL:to.slice(tF+1).map(function(e){return e.key}))},[tF,tL]);var tX=(0,d.Z)(ez||eD&&(null===(eu=to[0])||void 0===eu?void 0:eu.key),{value:ez}),tY=(0,l.Z)(tX,2),tJ=tY[0],tQ=tY[1],t0=K(function(e){tQ(e)}),t1=K(function(){tQ(void 0)});(0,h.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,r,o,i=null!=tJ?tJ:null===(t=to.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;i&&(null===(n=tc.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(y(tu,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}});var t2=(0,d.Z)(eq||[],{value:eK,postState:function(e){return Array.isArray(e)?e:null==e?eL:[e]}}),t6=(0,l.Z)(t2,2),t4=t6[0],t3=t6[1],t5=function(e){if(eV){var t,n=e.key,r=t4.includes(n);t3(t=eW?r?t4.filter(function(e){return e!==n}):[].concat((0,a.Z)(t4),[n]):[n]);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null==eX||eX(o):null==eG||eG(o)}!eW&&th.length&&"inline"!==tP&&tg(eL)},t8=K(function(e){null==e7||e7(el(e)),t5(e)}),t7=K(function(e,t){var n=th.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tP){var r=tq(e);n=n.filter(function(e){return!r.has(e)})}(0,g.Z)(th,n,!0)||tg(n,!0)}),t9=(ei=function(e,t){var n=null!=t?t:!th.includes(e);t7(e,n)},ea=h.useRef(),(es=h.useRef()).current=tJ,ec=function(){_.Z.cancel(ea.current)},h.useEffect(function(){return function(){ec()}},[]),function(e){var t=e.which;if([].concat(D,[I,L,B,z]).includes(t)){var n=function(){return s=new Set,c=new Map,u=new Map,tW().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(y(tu,e),"']"));t&&(s.add(t),u.set(t,e),c.set(e,t))}),s};n();var r=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(c.get(tJ),s),i=u.get(r),a=function(e,t,n,r){var i,a,l,s,c="prev",u="next",f="children",d="parent";if("inline"===e&&r===I)return{inlineTrigger:!0};var p=(i={},(0,o.Z)(i,T,c),(0,o.Z)(i,F,u),i),h=(a={},(0,o.Z)(a,M,n?u:c),(0,o.Z)(a,N,n?c:u),(0,o.Z)(a,F,f),(0,o.Z)(a,I,f),a),m=(l={},(0,o.Z)(l,T,c),(0,o.Z)(l,F,u),(0,o.Z)(l,I,f),(0,o.Z)(l,L,d),(0,o.Z)(l,M,n?f:d),(0,o.Z)(l,N,n?d:f),l);switch(null===(s=({inline:p,horizontal:h,vertical:m,inlineSub:p,horizontalSub:m,verticalSub:m})["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(tP,1===tU(i,!0).length,tf,t);if(!a&&t!==B&&t!==z)return;(D.includes(t)||[B,z].includes(t))&&e.preventDefault();var l=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=u.get(e);tQ(r),ec(),ea.current=(0,_.Z)(function(){es.current===r&&t.focus()})}};if([B,z].includes(t)||a.sibling||!r){var s,c,u,f,d=H(f=r&&"inline"!==tP?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(r):tc.current,s);l(t===B?d[0]:t===z?d[d.length-1]:V(f,s,r,a.offset))}else if(a.inlineTrigger)ei(i);else if(a.offset>0)ei(i,!0),ec(),ea.current=(0,_.Z)(function(){n();var e=r.getAttribute("aria-controls");l(V(document.getElementById(e),s))},5);else if(a.offset<0){var p=tU(i,!0),h=p[p.length-2],m=c.get(h);ei(h,!1),l(m)}}null==te||te(e)});h.useEffect(function(){ts(!0)},[]);var ne=h.useMemo(function(){return{_internalRenderMenuItem:tt,_internalRenderSubMenuItem:tn}},[tt,tn]),nt="horizontal"!==tP||ej?to:to.map(function(e,t){return h.createElement(S,{key:e.key,overflowDisabled:t>tF},e)}),nn=h.createElement(f.Z,(0,r.Z)({id:eS,ref:tc,prefixCls:"".concat(eh,"-overflow"),component:"ul",itemComponent:ep,className:u()(eh,"".concat(eh,"-root"),"".concat(eh,"-").concat(tP),ey,(ef={},(0,o.Z)(ef,"".concat(eh,"-inline-collapsed"),tR),(0,o.Z)(ef,"".concat(eh,"-rtl"),tf),ef),em),dir:eC,style:eg,role:"menu",tabIndex:void 0===eb?0:eb,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?to.slice(-t):null;return h.createElement(eZ,{eventKey:q,title:e3,disabled:tL,internalPopupClose:0===t,popupClassName:e5},n)},maxCount:"horizontal"!==tP||ej?f.Z.INVALIDATE:f.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tI(e)},onKeyDown:t9},tr));return h.createElement(P.Provider,{value:ne},h.createElement(v.Provider,{value:tu},h.createElement(S,{prefixCls:eh,rootClassName:em,mode:tP,openKeys:th,rtl:tf,disabled:ek,motion:tl?eJ:null,defaultMotions:tl?eQ:null,activeKey:tJ,onActive:t0,onInactive:t1,selectedKeys:t4,inlineIndent:void 0===eY?24:eY,subMenuOpenDelay:void 0===eP?.1:eP,subMenuCloseDelay:void 0===eA?.1:eA,forceSubMenuRender:eR,builtinPlacements:e1,triggerSubMenuAction:void 0===e0?"hover":e0,getPopupContainer:e8,itemIcon:e2,expandIcon:e6,onItemClick:t8,onOpenChange:t7},h.createElement(j.Provider,{value:tG},nn),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(E.Provider,{value:tK},to)))))});eB.Item=ep,eB.SubMenu=eZ,eB.ItemGroup=eN,eB.Divider=eT;var ez=eB},82225:function(e,t,n){"use strict";n.d(t,{V4:function(){return ep},zt:function(){return x},ZP:function(){return eh}});var r,o,i,a,l,s=n(4942),c=n(1413),u=n(97685),f=n(71002),d=n(94184),p=n.n(d),h=n(34203),m=n(42550),g=n(67294),v=n(45987),y=["children"],b=g.createContext({});function x(e){var t=e.children,n=(0,v.Z)(e,y);return g.createElement(b.Provider,{value:n},t)}var w=n(15671),C=n(43144),S=n(32531),E=n(73568),$=function(e){(0,S.Z)(n,e);var t=(0,E.Z)(n);function n(){return(0,w.Z)(this,n),t.apply(this,arguments)}return(0,C.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),O=n(30470),k="none",j="appear",P="enter",Z="leave",_="none",A="prepare",R="start",M="active",N="prepared",T=n(98924);function F(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var I=(r=(0,T.Z)(),o="undefined"!=typeof window?window:{},i={animationend:F("Animation","AnimationEnd"),transitionend:F("Transition","TransitionEnd")},!r||("AnimationEvent"in o||delete i.animationend.animation,"TransitionEvent"in o||delete i.transitionend.transition),i),L={};(0,T.Z)()&&(L=document.createElement("div").style);var B={};function z(e){if(B[e])return B[e];var t=I[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,X.Z)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]},J=[A,R,M,"end"],Q=[A,N];function ee(e){return e===M||"end"===e}var et=function(e,t,n){var r=(0,O.Z)(_),o=(0,u.Z)(r,2),i=o[0],a=o[1],l=Y(),s=(0,u.Z)(l,2),c=s[0],f=s[1],d=t?Q:J;return G(function(){if(i!==_&&"end"!==i){var e=d.indexOf(i),t=d[e+1],r=n(i);!1===r?a(t,!0):t&&c(function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,i]),g.useEffect(function(){return function(){f()}},[]),[function(){a(A,!0)},i]},en=(a=V,"object"===(0,f.Z)(V)&&(a=V.transitionSupport),(l=g.forwardRef(function(e,t){var n=e.visible,r=void 0===n||n,o=e.removeOnLeave,i=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,v=e.leavedClassName,y=e.eventProps,x=g.useContext(b).motion,w=!!(e.motionName&&a&&!1!==x),C=(0,g.useRef)(),S=(0,g.useRef)(),E=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,l=void 0===a||a,f=r.motionLeave,d=void 0===f||f,p=r.motionDeadline,h=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,x=r.onEnterStart,w=r.onLeaveStart,C=r.onAppearActive,S=r.onEnterActive,E=r.onLeaveActive,$=r.onAppearEnd,_=r.onEnterEnd,T=r.onLeaveEnd,F=r.onVisibleChanged,I=(0,O.Z)(),L=(0,u.Z)(I,2),B=L[0],z=L[1],D=(0,O.Z)(k),H=(0,u.Z)(D,2),V=H[0],U=H[1],W=(0,O.Z)(null),q=(0,u.Z)(W,2),X=q[0],Y=q[1],J=(0,g.useRef)(!1),Q=(0,g.useRef)(null),en=(0,g.useRef)(!1);function er(){U(k,!0),Y(null,!0)}function eo(e){var t,r=n();if(!e||e.deadline||e.target===r){var o=en.current;V===j&&o?t=null==$?void 0:$(r,e):V===P&&o?t=null==_?void 0:_(r,e):V===Z&&o&&(t=null==T?void 0:T(r,e)),V!==k&&o&&!1!==t&&er()}}var ei=K(eo),ea=(0,u.Z)(ei,1)[0],el=function(e){var t,n,r;switch(e){case j:return t={},(0,s.Z)(t,A,m),(0,s.Z)(t,R,b),(0,s.Z)(t,M,C),t;case P:return n={},(0,s.Z)(n,A,v),(0,s.Z)(n,R,x),(0,s.Z)(n,M,S),n;case Z:return r={},(0,s.Z)(r,A,y),(0,s.Z)(r,R,w),(0,s.Z)(r,M,E),r;default:return{}}},es=g.useMemo(function(){return el(V)},[V]),ec=et(V,!e,function(e){if(e===A){var t,r=es[A];return!!r&&r(n())}return ed in es&&Y((null===(t=es[ed])||void 0===t?void 0:t.call(es,n(),null))||null),ed===M&&(ea(n()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){eo({deadline:!0})},p))),ed===N&&er(),!0}),eu=(0,u.Z)(ec,2),ef=eu[0],ed=eu[1],ep=ee(ed);en.current=ep,G(function(){z(t);var n,r=J.current;J.current=!0,!r&&t&&l&&(n=j),r&&t&&i&&(n=P),(r&&!t&&d||!r&&h&&!t&&d)&&(n=Z);var o=el(n);n&&(e||o[A])?(U(n),ef()):U(k)},[t]),(0,g.useEffect)(function(){(V!==j||l)&&(V!==P||i)&&(V!==Z||d)||U(k)},[l,i,d]),(0,g.useEffect)(function(){return function(){J.current=!1,clearTimeout(Q.current)}},[]);var eh=g.useRef(!1);(0,g.useEffect)(function(){B&&(eh.current=!0),void 0!==B&&V===k&&((eh.current||B)&&(null==F||F(B)),eh.current=!0)},[B,V]);var em=X;return es[A]&&ed===R&&(em=(0,c.Z)({transition:"none"},em)),[V,ed,em,null!=B?B:t]}(w,r,function(){try{return C.current instanceof HTMLElement?C.current:(0,h.Z)(S.current)}catch(e){return null}},e),_=(0,u.Z)(E,4),T=_[0],F=_[1],I=_[2],L=_[3],B=g.useRef(L);L&&(B.current=!0);var z=g.useCallback(function(e){C.current=e,(0,m.mH)(t,e)},[t]),D=(0,c.Z)((0,c.Z)({},y),{},{visible:r});if(f){if(T===k)H=L?f((0,c.Z)({},D),z):!i&&B.current&&v?f((0,c.Z)((0,c.Z)({},D),{},{className:v}),z):!l&&(i||v)?null:f((0,c.Z)((0,c.Z)({},D),{},{style:{display:"none"}}),z);else{F===A?U="prepare":ee(F)?U="active":F===R&&(U="start");var H,V,U,W=q(d,"".concat(T,"-").concat(U));H=f((0,c.Z)((0,c.Z)({},D),{},{className:p()(q(d,T),(V={},(0,s.Z)(V,W,W&&U),(0,s.Z)(V,d,"string"==typeof d),V)),style:I}),z)}}else H=null;return g.isValidElement(H)&&(0,m.Yr)(H)&&!H.ref&&(H=g.cloneElement(H,{ref:z})),g.createElement($,{ref:S},H)})).displayName="CSSMotion",l),er=n(87462),eo=n(97326),ei="keep",ea="remove",el="removed";function es(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,c.Z)((0,c.Z)({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(es)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,n=function(e){(0,S.Z)(r,e);var n=(0,E.Z)(r);function r(){var e;(0,w.Z)(this,r);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=ec(e),a=ec(t);i.forEach(function(e){for(var t=!1,i=r;i1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ea})).forEach(function(t){t.key===e&&(t.status=ei)})}),n})(r,ec(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==el||e.status!==ea})}}}]),r}(g.Component);return(0,s.Z)(n,"defaultProps",{component:"div"}),n}(V),eh=en},86621:function(e,t,n){"use strict";n.d(t,{qX:function(){return m},JB:function(){return v},lm:function(){return S}});var r=n(74902),o=n(97685),i=n(45987),a=n(67294),l=n(1413),s=n(73935),c=n(87462),u=n(94184),f=n.n(u),d=n(82225),p=n(4942),h=n(15105),m=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,l=e.duration,s=void 0===l?4.5:l,u=e.eventKey,d=e.content,m=e.closable,g=e.closeIcon,v=void 0===g?"x":g,y=e.props,b=e.onClick,x=e.onNoticeClose,w=e.times,C=a.useState(!1),S=(0,o.Z)(C,2),E=S[0],$=S[1],O=function(){x(u)};a.useEffect(function(){if(!E&&s>0){var e=setTimeout(function(){O()},1e3*s);return function(){clearTimeout(e)}}},[s,E,w]);var k="".concat(n,"-notice");return a.createElement("div",(0,c.Z)({},y,{ref:t,className:f()(k,i,(0,p.Z)({},"".concat(k,"-closable"),m)),style:r,onMouseEnter:function(){$(!0)},onMouseLeave:function(){$(!1)},onClick:b}),a.createElement("div",{className:"".concat(k,"-content")},d),m&&a.createElement("a",{tabIndex:0,className:"".concat(k,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===h.Z.ENTER)&&O()},onClick:function(e){e.preventDefault(),e.stopPropagation(),O()}},v))}),g=a.createContext({}),v=function(e){var t=e.children,n=e.classNames;return a.createElement(g.Provider,{value:{classNames:n}},t)},y=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,s=e.motion,u=e.onAllNoticeRemoved,p=e.onNoticeClose,h=(0,a.useContext)(g).classNames,v=t.map(function(e){return{config:e,key:e.key}}),y="function"==typeof s?s(n):s;return a.createElement(d.V4,(0,c.Z)({key:n,className:f()(r,"".concat(r,"-").concat(n),null==h?void 0:h.list,o),style:i,keys:v,motionAppear:!0},y,{onAllRemoved:function(){u(n)}}),function(e,t){var n=e.config,o=e.className,i=e.style,s=n.key,u=n.times,d=n.className,g=n.style;return a.createElement(m,(0,c.Z)({},n,{ref:t,prefixCls:r,className:f()(o,d,null==h?void 0:h.notice),style:(0,l.Z)((0,l.Z)({},i),g),times:u,key:s,eventKey:s,onNoticeClose:p}))})},b=a.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,c=e.container,u=e.motion,f=e.maxCount,d=e.className,p=e.style,h=e.onAllRemoved,m=e.renderNotifications,g=a.useState([]),v=(0,o.Z)(g,2),b=v[0],x=v[1],w=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),x(function(t){return t.filter(function(t){return t.key!==e})})};a.useImperativeHandle(t,function(){return{open:function(e){x(function(t){var n,o=(0,r.Z)(t),i=o.findIndex(function(t){return t.key===e.key}),a=(0,l.Z)({},e);return i>=0?(a.times=((null===(n=t[i])||void 0===n?void 0:n.times)||0)+1,o[i]=a):(a.times=0,o.push(a)),f>0&&o.length>f&&(o=o.slice(-f)),o})},close:function(e){w(e)},destroy:function(){x([])}}});var C=a.useState({}),S=(0,o.Z)(C,2),E=S[0],$=S[1];a.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(E).forEach(function(t){e[t]=e[t]||[]}),$(e)},[b]);var O=function(e){$(function(t){var n=(0,l.Z)({},t);return(n[e]||[]).length||delete n[e],n})},k=a.useRef(!1);if(a.useEffect(function(){Object.keys(E).length>0?k.current=!0:k.current&&(null==h||h(),k.current=!1)},[E]),!c)return null;var j=Object.keys(E);return(0,s.createPortal)(a.createElement(a.Fragment,null,j.map(function(e){var t=E[e],n=a.createElement(y,{key:e,configList:t,placement:e,prefixCls:i,className:null==d?void 0:d(e),style:null==p?void 0:p(e),motion:u,onNoticeClose:w,onAllNoticeRemoved:O});return m?m(n,{prefixCls:i,key:e}):n})),c)}),x=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","renderNotifications"],w=function(){return document.body},C=0;function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?w:t,l=e.motion,s=e.prefixCls,c=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,p=e.renderNotifications,h=(0,i.Z)(e,x),m=a.useState(),g=(0,o.Z)(m,2),v=g[0],y=g[1],S=a.useRef(),E=a.createElement(b,{container:v,ref:S,prefixCls:s,motion:l,maxCount:c,className:u,style:f,onAllRemoved:d,renderNotifications:p}),$=a.useState([]),O=(0,o.Z)($,2),k=O[0],j=O[1],P=a.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;rR,eZ=(0,l.useMemo)(function(){var e=x;return ek?e=null===W&&D?x:x.slice(0,Math.min(x.length,K/P)):"number"==typeof R&&(e=x.slice(0,R)),e},[x,P,W,R,ek]),e_=(0,l.useMemo)(function(){return ek?x.slice(eb+1):x.slice(eZ.length)},[x,eZ,ek,eb]),eA=(0,l.useCallback)(function(e,t){var n;return"function"==typeof S?S(e):null!==(n=S&&(null==e?void 0:e[S]))&&void 0!==n?n:t},[S]),eR=(0,l.useCallback)(w||function(e){return e},[w]);function eM(e,t,n){(ev!==e||void 0!==t&&t!==ep)&&(ey(e),n||(eS(eK){eM(r-1,e-o-ec+ei);break}}T&&eT(0)+ec>K&&eh(null)}},[K,Y,ei,ec,eA,eZ]);var eF=eC&&!!e_.length,eI={};null!==ep&&ek&&(eI={position:"absolute",left:ep,top:0});var eL={prefixCls:eE,responsive:ek,component:L,invalidate:ej},eB=C?function(e,t){var n=eA(e,t);return l.createElement(b.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},eL),{},{order:t,item:e,itemKey:n,registerSize:eN,display:t<=eb})},C(e,t))}:function(e,t){var n=eA(e,t);return l.createElement(h,(0,r.Z)({},eL,{order:t,key:n,item:e,renderItem:eR,itemKey:n,registerSize:eN,display:t<=eb}))},ez={order:eF?eb:Number.MAX_SAFE_INTEGER,className:"".concat(eE,"-rest"),registerSize:function(e,t){ea(t),en(ei)},display:eF};if(N)N&&(s=l.createElement(b.Provider,{value:(0,o.Z)((0,o.Z)({},eL),ez)},N(e_)));else{var eD=M||k;s=l.createElement(h,(0,r.Z)({},eL,ez),"function"==typeof eD?eD(e_):eD)}var eH=l.createElement(I,(0,r.Z)({className:c()(!ej&&p,A),style:_,ref:t},z),eZ.map(eB),eP?s:null,T&&l.createElement(h,(0,r.Z)({},eL,{responsive:eO,responsiveDisabled:!ek,order:eb,className:"".concat(eE,"-suffix"),registerSize:function(e,t){eu(t)},display:!0,style:eI}),T));return eO&&(eH=l.createElement(u.Z,{onResize:function(e,t){q(t.clientWidth)},disabled:!ek},eH)),eH});j.displayName="Overflow",j.Item=S,j.RESPONSIVE=$,j.INVALIDATE=O;var P=j},62906:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},62273:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},74219:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},27590:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}},85369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}},9220:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(87462),o=n(67294),i=n(50344);n(80334);var a=n(1413),l=n(42550),s=n(34203),c=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){u&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){u&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;p.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),g=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),O="undefined"!=typeof WeakMap?new WeakMap:new c,k=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=m.getInstance(),r=new $(t,n,this);O.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}});var j=void 0!==f.ResizeObserver?f.ResizeObserver:k,P=new Map,Z=new j(function(e){e.forEach(function(e){var t,n=e.target;null===(t=P.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),_=n(15671),A=n(43144),R=n(32531),M=n(73568),N=function(e){(0,R.Z)(n,e);var t=(0,M.Z)(n);function n(){return(0,_.Z)(this,n),t.apply(this,arguments)}return(0,A.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),T=o.createContext(null),F=o.forwardRef(function(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),c=o.useRef(null),u=o.useContext(T),f="function"==typeof n,d=f?n(i):n,p=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!f&&o.isValidElement(d)&&(0,l.Yr)(d),m=h?d.ref:null,g=o.useMemo(function(){return(0,l.sQ)(m,i)},[m,i]),v=function(){return(0,s.Z)(i.current)||(0,s.Z)(c.current)};o.useImperativeHandle(t,function(){return v()});var y=o.useRef(e);y.current=e;var b=o.useCallback(function(e){var t=y.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,c=e.offsetHeight,f=Math.floor(i),d=Math.floor(l);if(p.current.width!==f||p.current.height!==d||p.current.offsetWidth!==s||p.current.offsetHeight!==c){var h={width:f,height:d,offsetWidth:s,offsetHeight:c};p.current=h;var m=s===Math.round(i)?i:s,g=c===Math.round(l)?l:c,v=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:m,offsetHeight:g});null==u||u(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return o.useEffect(function(){var e=v();return e&&!r&&(P.has(e)||(P.set(e,new Set),Z.observe(e)),P.get(e).add(b)),function(){P.has(e)&&(P.get(e).delete(b),P.get(e).size||(Z.unobserve(e),P.delete(e)))}},[i.current,r]),o.createElement(N,{ref:c},h?o.cloneElement(d,{ref:g}):d)}),I=o.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map(function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(F,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)})});I.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(T),l=o.useCallback(function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){l===r.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,o)},[n,a]);return o.createElement(T.Provider,{value:l},t)};var L=I},92419:function(e,t,n){"use strict";n.d(t,{G:function(){return h},Z:function(){return g}});var r=n(87462),o=n(1413),i=n(45987),a=n(40228),l=n(67294),s={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],f={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}},d=n(94184),p=n.n(d);function h(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return l.createElement("div",{className:p()("".concat(n,"-content"),i),style:a},l.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],g=(0,l.forwardRef)(function(e,t){var n=e.overlayClassName,s=e.trigger,c=e.mouseEnterDelay,u=e.mouseLeaveDelay,d=e.overlayStyle,p=e.prefixCls,g=void 0===p?"rc-tooltip":p,v=e.children,y=e.onVisibleChange,b=e.afterVisibleChange,x=e.transitionName,w=e.animation,C=e.motion,S=e.placement,E=e.align,$=e.destroyTooltipOnHide,O=e.defaultVisible,k=e.getTooltipContainer,j=e.overlayInnerStyle,P=(e.arrowContent,e.overlay),Z=e.id,_=e.showArrow,A=(0,i.Z)(e,m),R=(0,l.useRef)(null);(0,l.useImperativeHandle)(t,function(){return R.current});var M=(0,o.Z)({},A);return"visible"in e&&(M.popupVisible=e.visible),l.createElement(a.Z,(0,r.Z)({popupClassName:n,prefixCls:g,popup:function(){return l.createElement(h,{key:"content",prefixCls:g,id:Z,overlayInnerStyle:j},P)},action:void 0===s?["hover"]:s,builtinPlacements:f,popupPlacement:void 0===S?"right":S,ref:R,popupAlign:void 0===E?{}:E,getPopupContainer:k,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:x,popupAnimation:w,popupMotion:C,defaultPopupVisible:O,autoDestroy:void 0!==$&&$,mouseLeaveDelay:void 0===u?.1:u,popupStyle:d,mouseEnterDelay:void 0===c?0:c,arrow:void 0===_||_},M),v)})},50344:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return r.Children.forEach(t,function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?i=i.concat(e(t)):(0,o.isFragment)(t)&&t.props?i=i.concat(e(t.props.children,n)):i.push(t))}),i}}});var r=n(67294),o=n(11805)},98924:function(e,t,n){"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{hq:function(){return h},jL:function(){return p}});var r=n(98924),o=n(94999),i="data-rc-order",a="data-rc-priority",l=new Map;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,l=t.priority,s=void 0===l?0:l,f="queue"===o?"prependQueue":o?"prepend":"append",d="prependQueue"===f,p=document.createElement("style");p.setAttribute(i,f),d&&s&&p.setAttribute(a,"".concat(s)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var h=c(t),m=h.firstChild;if(o){if(d){var g=u(h).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(i))&&s>=Number(e.getAttribute(a)||0)});if(g.length)return h.insertBefore(p,g[g.length-1].nextSibling),p}h.insertBefore(p,m)}else h.appendChild(p);return p}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(c(t)).find(function(n){return n.getAttribute(s(t))===e})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(e,t);n&&c(t).removeChild(n)}function h(e,t){var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=l.get(e);if(!n||!(0,o.Z)(document,n)){var r=f("",t),i=r.parentNode;l.set(e,i),e.removeChild(r)}}(c(a),a);var u=d(t,a);if(u)return null!==(n=a.csp)&&void 0!==n&&n.nonce&&u.nonce!==(null===(r=a.csp)||void 0===r?void 0:r.nonce)&&(u.nonce=null===(i=a.csp)||void 0===i?void 0:i.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var p=f(e,a);return p.setAttribute(s(a),t),p}},34203:function(e,t,n){"use strict";n.d(t,{S:function(){return i},Z:function(){return a}});var r=n(67294),o=n(73935);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},27571:function(e,t,n){"use strict";function r(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return r(e) instanceof ShadowRoot?r(e):null}n.d(t,{A:function(){return o}})},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE||e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY||e>=n.A&&e<=n.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},38135:function(e,t,n){"use strict";n.d(t,{s:function(){return g},v:function(){return y}});var r,o,i=n(74165),a=n(15861),l=n(71002),s=n(1413),c=n(73935),u=(0,s.Z)({},r||(r=n.t(c,2))),f=u.version,d=u.render,p=u.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var m="__rc_react_root__";function g(e,t){if(o){var n;h(!0),n=t[m]||o(t),h(!1),n.render(e),t[m]=n;return}d(e,t)}function v(){return(v=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[m])||void 0===e||e.unmount(),delete t[m]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return v.apply(this,arguments)}(t));case 2:p(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},74204:function(e,t,n){"use strict";var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}function i(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?o():n}function a(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:i(n),height:i(r)}}n.d(t,{Z:function(){return o},o:function(){return a}})},66680:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u
NameSceneSub SceneContentOperation
No data
\ No newline at end of file +
NameSceneSub SceneContentOperation
No data
\ No newline at end of file diff --git a/dbgpt/rag/chunk.py b/dbgpt/rag/chunk.py new file mode 100644 index 000000000..ddfb8cd90 --- /dev/null +++ b/dbgpt/rag/chunk.py @@ -0,0 +1,116 @@ +import json +import uuid +from typing import Any, Dict + +from pydantic import Field, BaseModel + + +class Document(BaseModel): + """Document including document content, document metadata.""" + + content: str = (Field(default="", description="document text content"),) + + metadata: Dict[str, Any] = ( + Field( + default_factory=dict, + description="metadata fields", + ), + ) + + def set_content(self, content: str) -> None: + """Set the content""" + self.content = content + + def get_content(self) -> str: + return self.content + + @classmethod + def langchain2doc(cls, document): + """Transformation from Langchain to Chunk Document format.""" + metadata = document.metadata or {} + return cls(content=document.page_content, metadata=metadata) + + @classmethod + def doc2langchain(cls, chunk): + """Transformation from Chunk to Langchain Document format.""" + from langchain.schema import Document as LCDocument + + return LCDocument(page_content=chunk.content, metadata=chunk.metadata) + + +class Chunk(Document): + """ + Document Chunk including chunk content, chunk metadata, chunk summary, chunk relations. + """ + + chunk_id: str = Field( + default_factory=lambda: str(uuid.uuid4()), description="unique id for the chunk" + ) + content: str = Field(default="", description="chunk text content") + + metadata: Dict[str, Any] = ( + Field( + default_factory=dict, + description="metadata fields", + ), + ) + score: float = Field(default=0.0, description="chunk text similarity score") + summary: str = Field(default="", description="chunk text summary") + separator: str = Field( + default="\n", + description="Separator between metadata fields when converting to string.", + ) + + def to_dict(self, **kwargs: Any) -> Dict[str, Any]: + data = self.dict(**kwargs) + data["class_name"] = self.class_name() + return data + + def to_json(self, **kwargs: Any) -> str: + data = self.to_dict(**kwargs) + return json.dumps(data) + + def __hash__(self): + return hash((self.chunk_id,)) + + def __eq__(self, other): + return self.chunk_id == other.chunk_id + + @classmethod + def from_dict(cls, data: Dict[str, Any], **kwargs: Any): # type: ignore + if isinstance(kwargs, dict): + data.update(kwargs) + + data.pop("class_name", None) + return cls(**data) + + @classmethod + def from_json(cls, data_str: str, **kwargs: Any): # type: ignore + data = json.loads(data_str) + return cls.from_dict(data, **kwargs) + + @classmethod + def langchain2chunk(cls, document): + """Transformation from Langchain to Chunk Document format.""" + metadata = document.metadata or {} + return cls(content=document.page_content, metadata=document.metadata) + + @classmethod + def llamaindex2chunk(cls, node): + """Transformation from LLama-Index to Chunk Document format.""" + metadata = node.metadata or {} + return cls(content=node.content, metadata=metadata) + + @classmethod + def chunk2langchain(cls, chunk): + """Transformation from Chunk to Langchain Document format.""" + from langchain.schema import Document as LCDocument + + return LCDocument(page_content=chunk.content, metadata=chunk.metadata) + + @classmethod + def chunk2llamaindex(cls, chunk): + """Transformation from Chunk to LLama-Index Document format.""" + from llama_index.schema import TextNode + + return TextNode(text=chunk.content, metadata=chunk.metadata) diff --git a/dbgpt/rag/chunk_manager.py b/dbgpt/rag/chunk_manager.py new file mode 100644 index 000000000..f07fe4d3c --- /dev/null +++ b/dbgpt/rag/chunk_manager.py @@ -0,0 +1,137 @@ +from enum import Enum +from typing import Optional, List, Any + +from pydantic import BaseModel, Field + +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.extractor.base import Extractor +from dbgpt.rag.knowledge.base import ChunkStrategy, Knowledge + + +class SplitterType(Enum): + """splitter type""" + + LANGCHAIN = "langchain" + LLAMA_INDEX = "llama-index" + USER_DEFINE = "user_define" + + +class ChunkParameters(BaseModel): + """ChunkParameters""" + + chunk_strategy: str = Field( + default=None, + description="chunk strategy", + ) + text_splitter: Optional[Any] = Field( + default=None, + description="text splitter", + ) + + splitter_type: SplitterType = Field( + default=SplitterType.USER_DEFINE, + description="splitter type", + ) + + chunk_size: int = Field( + default=512, + description="chunk size", + ) + chunk_overlap: int = Field( + default=50, + description="chunk overlap", + ) + separator: str = Field( + default="\n", + description="chunk separator", + ) + + +class ChunkManager: + """ChunkManager""" + + def __init__( + self, + knowledge: Knowledge = None, + chunk_parameter: Optional[ChunkParameters] = None, + extractor: Optional[Extractor] = None, + ): + """ + Args: + knowledge: (Knowledge) Knowledge datasource. + chunk_parameter: (Optional[ChunkParameter]) Chunk parameter. + extractor: (Optional[Extractor]) Extractor to use for summarization. + """ + self._knowledge = knowledge + + self._extractor = extractor + self._chunk_parameters = chunk_parameter or ChunkParameters() + self._chunk_strategy = ( + chunk_parameter.chunk_strategy + or self._knowledge.default_chunk_strategy().name + ) + self._text_splitter = chunk_parameter.text_splitter + self._splitter_type = chunk_parameter.splitter_type + + def split(self, documents) -> List[Chunk]: + """Split a document into chunks.""" + text_splitter = self._select_text_splitter() + if SplitterType.LANGCHAIN == self._splitter_type: + documents = text_splitter.split_documents(documents) + return [Chunk.langchain2chunk(document) for document in documents] + elif SplitterType.LLAMA_INDEX == self._splitter_type: + nodes = text_splitter.split_text(documents) + return [Chunk.llamaindex2chunk(node) for node in nodes] + else: + return text_splitter.split_documents(documents) + + def split_with_summary( + self, document: Any, chunk_strategy: ChunkStrategy + ) -> List[Chunk]: + """Split a document into chunks and summary""" + + raise NotImplementedError + + @property + def chunk_parameters(self) -> ChunkParameters: + return self._chunk_parameters + + def set_text_splitter( + self, + text_splitter, + splitter_type: Optional[SplitterType] = SplitterType.LANGCHAIN, + ) -> None: + """Add text splitter.""" + self._text_splitter = text_splitter + self._splitter_type = splitter_type + + def get_text_splitter( + self, + ) -> Any: + """get text splitter.""" + return self._select_text_splitter() + + def _select_text_splitter( + self, + ): + """Select text splitter by chunk strategy.""" + if self._text_splitter: + return self._text_splitter + if not self._chunk_strategy or "Automatic" == self._chunk_strategy: + self._chunk_strategy = self._knowledge.default_chunk_strategy().name + if self._chunk_strategy not in [ + support_chunk_strategy.name + for support_chunk_strategy in self._knowledge.support_chunk_strategy() + ]: + current_type = self._knowledge.type().value + if self._knowledge.document_type(): + current_type = self._knowledge.document_type().value + raise ValueError( + f"{current_type} knowledge not supported chunk strategy {self._chunk_strategy} " + ) + strategy = ChunkStrategy[self._chunk_strategy] + return strategy.match( + chunk_size=self._chunk_parameters.chunk_size, + chunk_overlap=self._chunk_parameters.chunk_overlap, + separator=self._chunk_parameters.separator, + ) diff --git a/dbgpt/app/scene/chat_knowledge/__init__.py b/dbgpt/rag/embedding/__init__.py similarity index 100% rename from dbgpt/app/scene/chat_knowledge/__init__.py rename to dbgpt/rag/embedding/__init__.py diff --git a/dbgpt/rag/embedding_engine/embedding_factory.py b/dbgpt/rag/embedding/embedding_factory.py similarity index 87% rename from dbgpt/rag/embedding_engine/embedding_factory.py rename to dbgpt/rag/embedding/embedding_factory.py index 589e148d3..d63ad968f 100644 --- a/dbgpt/rag/embedding_engine/embedding_factory.py +++ b/dbgpt/rag/embedding/embedding_factory.py @@ -3,12 +3,15 @@ from typing import Any, Type, TYPE_CHECKING from dbgpt.component import BaseComponent +from dbgpt.rag.embedding.embeddings import HuggingFaceEmbeddings if TYPE_CHECKING: - from langchain.embeddings.base import Embeddings + from dbgpt.rag.embedding.embeddings import Embeddings class EmbeddingFactory(BaseComponent, ABC): + """Abstract base class for EmbeddingFactory.""" + name = "embedding_factory" @abstractmethod @@ -41,6 +44,4 @@ def create( if embedding_cls: return embedding_cls(**new_kwargs) else: - from langchain.embeddings import HuggingFaceEmbeddings - return HuggingFaceEmbeddings(**new_kwargs) diff --git a/dbgpt/rag/embedding/embeddings.py b/dbgpt/rag/embedding/embeddings.py new file mode 100644 index 000000000..cdc338508 --- /dev/null +++ b/dbgpt/rag/embedding/embeddings.py @@ -0,0 +1,363 @@ +import asyncio +from abc import ABC, abstractmethod +from typing import Any, Dict, List, Optional + +import requests +from pydantic import Field, Extra, BaseModel + +DEFAULT_MODEL_NAME = "sentence-transformers/all-mpnet-base-v2" +DEFAULT_INSTRUCT_MODEL = "hkunlp/instructor-large" +DEFAULT_BGE_MODEL = "BAAI/bge-large-en" +DEFAULT_EMBED_INSTRUCTION = "Represent the document for retrieval: " +DEFAULT_QUERY_INSTRUCTION = ( + "Represent the question for retrieving supporting documents: " +) +DEFAULT_QUERY_BGE_INSTRUCTION_EN = ( + "Represent this question for searching relevant passages: " +) +DEFAULT_QUERY_BGE_INSTRUCTION_ZH = "为这个句子生成表示以用于检索相关文章:" + + +class Embeddings(ABC): + """Interface for embedding models.""" + + """refer to https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/embeddings""" + + @abstractmethod + def embed_documents(self, texts: List[str]) -> List[List[float]]: + """Embed search docs.""" + + @abstractmethod + def embed_query(self, text: str) -> List[float]: + """Embed query text.""" + + async def aembed_documents(self, texts: List[str]) -> List[List[float]]: + """Asynchronous Embed search docs.""" + return await asyncio.get_running_loop().run_in_executor( + None, self.embed_documents, texts + ) + + async def aembed_query(self, text: str) -> List[float]: + """Asynchronous Embed query text.""" + return await asyncio.get_running_loop().run_in_executor( + None, self.embed_query, text + ) + + +class HuggingFaceEmbeddings(BaseModel, Embeddings): + """HuggingFace sentence_transformers embedding models. + To use, you should have the ``sentence_transformers`` python package installed. + Refer to https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/embeddings + Example: + .. code-block:: python + + from .embeddings import HuggingFaceEmbeddings + + model_name = "sentence-transformers/all-mpnet-base-v2" + model_kwargs = {'device': 'cpu'} + encode_kwargs = {'normalize_embeddings': False} + hf = HuggingFaceEmbeddings( + model_name=model_name, + model_kwargs=model_kwargs, + encode_kwargs=encode_kwargs + ) + """ + + client: Any #: :meta private: + model_name: str = DEFAULT_MODEL_NAME + """Model name to use.""" + cache_folder: Optional[str] = None + """Path to store models. + Can be also set by SENTENCE_TRANSFORMERS_HOME environment variable.""" + model_kwargs: Dict[str, Any] = Field(default_factory=dict) + """Keyword arguments to pass to the model.""" + encode_kwargs: Dict[str, Any] = Field(default_factory=dict) + """Keyword arguments to pass when calling the `encode` method of the model.""" + multi_process: bool = False + """Run encode() on multiple GPUs.""" + + def __init__(self, **kwargs: Any): + """Initialize the sentence_transformer.""" + super().__init__(**kwargs) + try: + import sentence_transformers + + except ImportError as exc: + raise ImportError( + "Could not import sentence_transformers python package. " + "Please install it with `pip install sentence-transformers`." + ) from exc + + self.client = sentence_transformers.SentenceTransformer( + self.model_name, cache_folder=self.cache_folder, **self.model_kwargs + ) + + class Config: + """Configuration for this pydantic object.""" + + extra = Extra.forbid + + def embed_documents(self, texts: List[str]) -> List[List[float]]: + """Compute doc embeddings using a HuggingFace transformer model. + + Args: + texts: The list of texts to embed. + + Returns: + List of embeddings, one for each text. + """ + import sentence_transformers + + texts = list(map(lambda x: x.replace("\n", " "), texts)) + if self.multi_process: + pool = self.client.start_multi_process_pool() + embeddings = self.client.encode_multi_process(texts, pool) + sentence_transformers.SentenceTransformer.stop_multi_process_pool(pool) + else: + embeddings = self.client.encode(texts, **self.encode_kwargs) + + return embeddings.tolist() + + def embed_query(self, text: str) -> List[float]: + """Compute query embeddings using a HuggingFace transformer model. + + Args: + text: The text to embed. + + Returns: + Embeddings for the text. + """ + return self.embed_documents([text])[0] + + +class HuggingFaceInstructEmbeddings(BaseModel, Embeddings): + """Wrapper around sentence_transformers embedding models. + + To use, you should have the ``sentence_transformers`` + and ``InstructorEmbedding`` python packages installed. + + Example: + .. code-block:: python + + from langchain.embeddings import HuggingFaceInstructEmbeddings + + model_name = "hkunlp/instructor-large" + model_kwargs = {'device': 'cpu'} + encode_kwargs = {'normalize_embeddings': True} + hf = HuggingFaceInstructEmbeddings( + model_name=model_name, + model_kwargs=model_kwargs, + encode_kwargs=encode_kwargs + ) + """ + + client: Any #: :meta private: + model_name: str = DEFAULT_INSTRUCT_MODEL + """Model name to use.""" + cache_folder: Optional[str] = None + """Path to store models. + Can be also set by SENTENCE_TRANSFORMERS_HOME environment variable.""" + model_kwargs: Dict[str, Any] = Field(default_factory=dict) + """Keyword arguments to pass to the model.""" + encode_kwargs: Dict[str, Any] = Field(default_factory=dict) + """Keyword arguments to pass when calling the `encode` method of the model.""" + embed_instruction: str = DEFAULT_EMBED_INSTRUCTION + """Instruction to use for embedding documents.""" + query_instruction: str = DEFAULT_QUERY_INSTRUCTION + """Instruction to use for embedding query.""" + + def __init__(self, **kwargs: Any): + """Initialize the sentence_transformer.""" + super().__init__(**kwargs) + try: + from InstructorEmbedding import INSTRUCTOR + + self.client = INSTRUCTOR( + self.model_name, cache_folder=self.cache_folder, **self.model_kwargs + ) + except ImportError as e: + raise ImportError("Dependencies for InstructorEmbedding not found.") from e + + class Config: + """Configuration for this pydantic object.""" + + extra = Extra.forbid + + def embed_documents(self, texts: List[str]) -> List[List[float]]: + """Compute doc embeddings using a HuggingFace instruct model. + + Args: + texts: The list of texts to embed. + + Returns: + List of embeddings, one for each text. + """ + instruction_pairs = [[self.embed_instruction, text] for text in texts] + embeddings = self.client.encode(instruction_pairs, **self.encode_kwargs) + return embeddings.tolist() + + def embed_query(self, text: str) -> List[float]: + """Compute query embeddings using a HuggingFace instruct model. + + Args: + text: The text to embed. + + Returns: + Embeddings for the text. + """ + instruction_pair = [self.query_instruction, text] + embedding = self.client.encode([instruction_pair], **self.encode_kwargs)[0] + return embedding.tolist() + + +class HuggingFaceBgeEmbeddings(BaseModel, Embeddings): + """HuggingFace BGE sentence_transformers embedding models. + + To use, you should have the ``sentence_transformers`` python package installed. + refer to https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/embeddings + Example: + .. code-block:: python + + from langchain.embeddings import HuggingFaceBgeEmbeddings + + model_name = "BAAI/bge-large-en" + model_kwargs = {'device': 'cpu'} + encode_kwargs = {'normalize_embeddings': True} + hf = HuggingFaceBgeEmbeddings( + model_name=model_name, + model_kwargs=model_kwargs, + encode_kwargs=encode_kwargs + ) + """ + + client: Any #: :meta private: + model_name: str = DEFAULT_BGE_MODEL + """Model name to use.""" + cache_folder: Optional[str] = None + """Path to store models. + Can be also set by SENTENCE_TRANSFORMERS_HOME environment variable.""" + model_kwargs: Dict[str, Any] = Field(default_factory=dict) + """Keyword arguments to pass to the model.""" + encode_kwargs: Dict[str, Any] = Field(default_factory=dict) + """Keyword arguments to pass when calling the `encode` method of the model.""" + query_instruction: str = DEFAULT_QUERY_BGE_INSTRUCTION_EN + """Instruction to use for embedding query.""" + + def __init__(self, **kwargs: Any): + """Initialize the sentence_transformer.""" + super().__init__(**kwargs) + try: + import sentence_transformers + + except ImportError as exc: + raise ImportError( + "Could not import sentence_transformers python package. " + "Please install it with `pip install sentence_transformers`." + ) from exc + + self.client = sentence_transformers.SentenceTransformer( + self.model_name, cache_folder=self.cache_folder, **self.model_kwargs + ) + if "-zh" in self.model_name: + self.query_instruction = DEFAULT_QUERY_BGE_INSTRUCTION_ZH + + class Config: + """Configuration for this pydantic object.""" + + extra = Extra.forbid + + def embed_documents(self, texts: List[str]) -> List[List[float]]: + """Compute doc embeddings using a HuggingFace transformer model. + + Args: + texts: The list of texts to embed. + + Returns: + List of embeddings, one for each text. + """ + texts = [t.replace("\n", " ") for t in texts] + embeddings = self.client.encode(texts, **self.encode_kwargs) + return embeddings.tolist() + + def embed_query(self, text: str) -> List[float]: + """Compute query embeddings using a HuggingFace transformer model. + + Args: + text: The text to embed. + + Returns: + Embeddings for the text. + """ + text = text.replace("\n", " ") + embedding = self.client.encode( + self.query_instruction + text, **self.encode_kwargs + ) + return embedding.tolist() + + +class HuggingFaceInferenceAPIEmbeddings(BaseModel, Embeddings): + """Embed texts using the HuggingFace API. + + Requires a HuggingFace Inference API key and a model name. + """ + + api_key: str + """Your API key for the HuggingFace Inference API.""" + model_name: str = "sentence-transformers/all-MiniLM-L6-v2" + """The name of the model to use for text embeddings.""" + + @property + def _api_url(self) -> str: + return ( + "https://api-inference.huggingface.co" + "/pipeline" + "/feature-extraction" + f"/{self.model_name}" + ) + + @property + def _headers(self) -> dict: + return {"Authorization": f"Bearer {self.api_key}"} + + def embed_documents(self, texts: List[str]) -> List[List[float]]: + """Get the embeddings for a list of texts. + + Args: + texts (Documents): A list of texts to get embeddings for. + + Returns: + Embedded texts as List[List[float]], where each inner List[float] + corresponds to a single input text. + + Example: + .. code-block:: python + + from langchain.embeddings import HuggingFaceInferenceAPIEmbeddings + + hf_embeddings = HuggingFaceInferenceAPIEmbeddings( + api_key="your_api_key", + model_name="sentence-transformers/all-MiniLM-l6-v2" + ) + texts = ["Hello, world!", "How are you?"] + hf_embeddings.embed_documents(texts) + """ + response = requests.post( + self._api_url, + headers=self._headers, + json={ + "inputs": texts, + "options": {"wait_for_model": True, "use_cache": True}, + }, + ) + return response.json() + + def embed_query(self, text: str) -> List[float]: + """Compute query embeddings using a HuggingFace transformer model. + + Args: + text: The text to embed. + + Returns: + Embeddings for the text. + """ + return self.embed_documents([text])[0] diff --git a/dbgpt/app/scene/chat_knowledge/inner_db_summary/__init__.py b/dbgpt/rag/embedding/tests/__init__.py similarity index 100% rename from dbgpt/app/scene/chat_knowledge/inner_db_summary/__init__.py rename to dbgpt/rag/embedding/tests/__init__.py diff --git a/dbgpt/rag/embedding_engine/__init__.py b/dbgpt/rag/embedding_engine/__init__.py deleted file mode 100644 index afe9b9dc3..000000000 --- a/dbgpt/rag/embedding_engine/__init__.py +++ /dev/null @@ -1,12 +0,0 @@ -from dbgpt.rag.embedding_engine.source_embedding import SourceEmbedding, register -from dbgpt.rag.embedding_engine.embedding_engine import EmbeddingEngine -from dbgpt.rag.embedding_engine.knowledge_type import KnowledgeType -from dbgpt.rag.embedding_engine.pre_text_splitter import PreTextSplitter - -__all__ = [ - "SourceEmbedding", - "register", - "EmbeddingEngine", - "KnowledgeType", - "PreTextSplitter", -] diff --git a/dbgpt/rag/embedding_engine/csv_embedding.py b/dbgpt/rag/embedding_engine/csv_embedding.py deleted file mode 100644 index 475e97ddd..000000000 --- a/dbgpt/rag/embedding_engine/csv_embedding.py +++ /dev/null @@ -1,64 +0,0 @@ -from typing import List, Optional - -from langchain.schema import Document -from langchain.text_splitter import ( - TextSplitter, - SpacyTextSplitter, - RecursiveCharacterTextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register -from dbgpt.rag.embedding_engine.loader.csv_loader import NewCSVLoader - - -class CSVEmbedding(SourceEmbedding): - """csv embedding for read csv document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize with csv path. - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - """ - super().__init__( - file_path, vector_store_config, source_reader=None, text_splitter=None - ) - self.file_path = file_path - self.vector_store_config = vector_store_config - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from csv path.""" - if self.source_reader is None: - self.source_reader = NewCSVLoader(self.file_path) - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=100, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=100, chunk_overlap=50 - ) - - return self.source_reader.load_and_split(self.text_splitter) - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - documents[i].page_content = d.page_content.replace("\n", "") - i += 1 - return documents diff --git a/dbgpt/rag/embedding_engine/embedding_engine.py b/dbgpt/rag/embedding_engine/embedding_engine.py deleted file mode 100644 index 04ef73561..000000000 --- a/dbgpt/rag/embedding_engine/embedding_engine.py +++ /dev/null @@ -1,145 +0,0 @@ -from typing import Optional - -from langchain.text_splitter import TextSplitter - -from dbgpt.rag.embedding_engine.embedding_factory import ( - EmbeddingFactory, - DefaultEmbeddingFactory, -) -from dbgpt.rag.embedding_engine.knowledge_type import ( - get_knowledge_embedding, - KnowledgeType, -) -from dbgpt.storage.vector_store.connector import VectorStoreConnector - - -class EmbeddingEngine: - """EmbeddingEngine provide a chain process include(read->text_split->data_process->index_store) for knowledge document embedding into vector store. - 1.knowledge_embedding:knowledge document source into vector store.(Chroma, Milvus, Weaviate) - 2.similar_search: similarity search from vector_store - how to use reference:https://db-gpt.readthedocs.io/en/latest/modules/knowledge.html - how to integrate:https://db-gpt.readthedocs.io/en/latest/modules/knowledge/pdf/pdf_embedding.html - Example: - .. code-block:: python - embedding_model = "your_embedding_model" - vector_store_type = "Chroma" - chroma_persist_path = "your_persist_path" - vector_store_config = { - "vector_store_name": "document_test", - "vector_store_type": vector_store_type, - "chroma_persist_path": chroma_persist_path, - } - - # it can be .md,.pdf,.docx, .csv, .html - document_path = "your_path/test.md" - embedding_engine = EmbeddingEngine( - knowledge_source=document_path, - knowledge_type=KnowledgeType.DOCUMENT.value, - model_name=embedding_model, - vector_store_config=vector_store_config, - ) - # embedding document content to vector store - embedding_engine.knowledge_embedding() - """ - - def __init__( - self, - model_name, - vector_store_config, - knowledge_type: Optional[str] = KnowledgeType.DOCUMENT.value, - knowledge_source: Optional[str] = None, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - embedding_factory: EmbeddingFactory = None, - ): - """Initialize with knowledge embedding client, model_name, vector_store_config, knowledge_type, knowledge_source - Args: - - model_name: model_name - - vector_store_config: vector store config: Dict - - knowledge_type: Optional[KnowledgeType] - - knowledge_source: Optional[str] - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - - embedding_factory: EmbeddingFactory - """ - self.knowledge_source = knowledge_source - self.model_name = model_name - self.vector_store_config = vector_store_config - self.knowledge_type = knowledge_type - if not embedding_factory: - embedding_factory = DefaultEmbeddingFactory() - self.embeddings = embedding_factory.create(model_name=self.model_name) - self.vector_store_config["embeddings"] = self.embeddings - self.source_reader = source_reader - self.text_splitter = text_splitter - - def knowledge_embedding(self): - """source embedding is chain process.read->text_split->data_process->index_store""" - self.knowledge_embedding_client = self.init_knowledge_embedding() - self.knowledge_embedding_client.source_embedding() - - def knowledge_embedding_batch(self, docs): - """Deprecation""" - # docs = self.knowledge_embedding_client.read_batch() - return self.knowledge_embedding_client.index_to_store(docs) - - def read(self): - """Deprecation""" - self.knowledge_embedding_client = self.init_knowledge_embedding() - return self.knowledge_embedding_client.read_batch() - - def init_knowledge_embedding(self): - return get_knowledge_embedding( - self.knowledge_type, - self.knowledge_source, - self.vector_store_config, - self.source_reader, - self.text_splitter, - ) - - def similar_search(self, text, topk): - """vector db similar search in vector database. - Return topk docs. - Args: - - text: query text - - topk: top k - """ - vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - # https://github.com/chroma-core/chroma/issues/657 - ans = vector_client.similar_search(text, topk) - return ans - - def similar_search_with_scores(self, text, topk, score_threshold: float = 0.3): - """ - similar_search_with_score in vector database. - Return docs and relevance scores in the range [0, 1]. - Args: - doc(str): query text - topk(int): return docs nums. Defaults to 4. - score_threshold(float): score_threshold: Optional, a floating point value between 0 to 1 to - filter the resulting set of retrieved docs,0 is dissimilar, 1 is most similar. - """ - vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - ans = vector_client.similar_search_with_scores(text, topk, score_threshold) - return ans - - def vector_exist(self): - """vector db is exist""" - vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - return vector_client.vector_name_exists() - - def delete_by_ids(self, ids): - """delete vector db by ids - Args: - - ids: vector ids - """ - vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - vector_client.delete_by_ids(ids=ids) diff --git a/dbgpt/rag/embedding_engine/encode_text_loader.py b/dbgpt/rag/embedding_engine/encode_text_loader.py deleted file mode 100644 index 2b7344f18..000000000 --- a/dbgpt/rag/embedding_engine/encode_text_loader.py +++ /dev/null @@ -1,26 +0,0 @@ -from typing import List, Optional -import chardet - -from langchain.docstore.document import Document -from langchain.document_loaders.base import BaseLoader - - -class EncodeTextLoader(BaseLoader): - """Load text files.""" - - def __init__(self, file_path: str, encoding: Optional[str] = None): - """Initialize with file path.""" - self.file_path = file_path - self.encoding = encoding - - def load(self) -> List[Document]: - """Load from file path.""" - with open(self.file_path, "rb") as f: - raw_text = f.read() - result = chardet.detect(raw_text) - if result["encoding"] is None: - text = raw_text.decode("utf-8") - else: - text = raw_text.decode(result["encoding"]) - metadata = {"source": self.file_path} - return [Document(page_content=text, metadata=metadata)] diff --git a/dbgpt/rag/embedding_engine/knowledge_type.py b/dbgpt/rag/embedding_engine/knowledge_type.py deleted file mode 100644 index f185f0ac4..000000000 --- a/dbgpt/rag/embedding_engine/knowledge_type.py +++ /dev/null @@ -1,107 +0,0 @@ -from enum import Enum - -from dbgpt.rag.embedding_engine.csv_embedding import CSVEmbedding -from dbgpt.rag.embedding_engine.markdown_embedding import MarkdownEmbedding -from dbgpt.rag.embedding_engine.pdf_embedding import PDFEmbedding -from dbgpt.rag.embedding_engine.ppt_embedding import PPTEmbedding -from dbgpt.rag.embedding_engine.string_embedding import StringEmbedding -from dbgpt.rag.embedding_engine.url_embedding import URLEmbedding -from dbgpt.rag.embedding_engine.word_embedding import WordEmbedding - -DocumentEmbeddingType = { - ".txt": (MarkdownEmbedding, {}), - ".md": (MarkdownEmbedding, {}), - ".html": (MarkdownEmbedding, {}), - ".pdf": (PDFEmbedding, {}), - ".doc": (WordEmbedding, {}), - ".docx": (WordEmbedding, {}), - ".csv": (CSVEmbedding, {}), - ".ppt": (PPTEmbedding, {}), - ".pptx": (PPTEmbedding, {}), -} - - -class KnowledgeType(Enum): - DOCUMENT = "DOCUMENT" - URL = "URL" - TEXT = "TEXT" - OSS = "OSS" - S3 = "S3" - NOTION = "NOTION" - MYSQL = "MYSQL" - TIDB = "TIDB" - CLICKHOUSE = "CLICKHOUSE" - OCEANBASE = "OCEANBASE" - ELASTICSEARCH = "ELASTICSEARCH" - HIVE = "HIVE" - PRESTO = "PRESTO" - KAFKA = "KAFKA" - SPARK = "SPARK" - YOUTUBE = "YOUTUBE" - - -def get_knowledge_embedding( - knowledge_type, - knowledge_source, - vector_store_config=None, - source_reader=None, - text_splitter=None, -): - match knowledge_type: - case KnowledgeType.DOCUMENT.value: - extension = "." + knowledge_source.rsplit(".", 1)[-1] - if extension in DocumentEmbeddingType: - knowledge_class, knowledge_args = DocumentEmbeddingType[extension] - embedding = knowledge_class( - knowledge_source, - vector_store_config=vector_store_config, - source_reader=source_reader, - text_splitter=text_splitter, - **knowledge_args, - ) - return embedding - raise ValueError(f"Unsupported knowledge document type '{extension}'") - case KnowledgeType.URL.value: - embedding = URLEmbedding( - file_path=knowledge_source, - vector_store_config=vector_store_config, - source_reader=source_reader, - text_splitter=text_splitter, - ) - return embedding - case KnowledgeType.TEXT.value: - embedding = StringEmbedding( - file_path=knowledge_source, - vector_store_config=vector_store_config, - source_reader=source_reader, - text_splitter=text_splitter, - ) - return embedding - case KnowledgeType.OSS.value: - raise Exception("OSS have not integrate") - case KnowledgeType.S3.value: - raise Exception("S3 have not integrate") - case KnowledgeType.NOTION.value: - raise Exception("NOTION have not integrate") - case KnowledgeType.MYSQL.value: - raise Exception("MYSQL have not integrate") - case KnowledgeType.TIDB.value: - raise Exception("TIDB have not integrate") - case KnowledgeType.CLICKHOUSE.value: - raise Exception("CLICKHOUSE have not integrate") - case KnowledgeType.OCEANBASE.value: - raise Exception("OCEANBASE have not integrate") - case KnowledgeType.ELASTICSEARCH.value: - raise Exception("ELASTICSEARCH have not integrate") - case KnowledgeType.HIVE.value: - raise Exception("HIVE have not integrate") - case KnowledgeType.PRESTO.value: - raise Exception("PRESTO have not integrate") - case KnowledgeType.KAFKA.value: - raise Exception("KAFKA have not integrate") - case KnowledgeType.SPARK.value: - raise Exception("SPARK have not integrate") - case KnowledgeType.YOUTUBE.value: - raise Exception("YOUTUBE have not integrate") - case _: - raise Exception("unknown knowledge type") diff --git a/dbgpt/rag/embedding_engine/loader/chn_document_splitter.py b/dbgpt/rag/embedding_engine/loader/chn_document_splitter.py deleted file mode 100644 index 5bf06ea8c..000000000 --- a/dbgpt/rag/embedding_engine/loader/chn_document_splitter.py +++ /dev/null @@ -1,55 +0,0 @@ -import re -from typing import List - -from langchain.text_splitter import CharacterTextSplitter - - -class CHNDocumentSplitter(CharacterTextSplitter): - def __init__(self, pdf: bool = False, sentence_size: int = None, **kwargs): - super().__init__(**kwargs) - self.pdf = pdf - self.sentence_size = sentence_size - - def split_text(self, text: str) -> List[str]: - if self.pdf: - text = re.sub(r"\n{3,}", r"\n", text) - text = re.sub("\s", " ", text) - text = re.sub("\n\n", "", text) - - text = re.sub(r"([;;.!?。!?\?])([^”’])", r"\1\n\2", text) - text = re.sub(r'(\.{6})([^"’”」』])', r"\1\n\2", text) - text = re.sub(r'(\…{2})([^"’”」』])', r"\1\n\2", text) - text = re.sub(r'([;;!?。!?\?]["’”」』]{0,2})([^;;!?,。!?\?])', r"\1\n\2", text) - text = text.rstrip() - ls = [i for i in text.split("\n") if i] - for ele in ls: - if len(ele) > self.sentence_size: - ele1 = re.sub(r'([,,.]["’”」』]{0,2})([^,,.])', r"\1\n\2", ele) - ele1_ls = ele1.split("\n") - for ele_ele1 in ele1_ls: - if len(ele_ele1) > self.sentence_size: - ele_ele2 = re.sub( - r'([\n]{1,}| {2,}["’”」』]{0,2})([^\s])', r"\1\n\2", ele_ele1 - ) - ele2_ls = ele_ele2.split("\n") - for ele_ele2 in ele2_ls: - if len(ele_ele2) > self.sentence_size: - ele_ele3 = re.sub( - '( ["’”」』]{0,2})([^ ])', r"\1\n\2", ele_ele2 - ) - ele2_id = ele2_ls.index(ele_ele2) - ele2_ls = ( - ele2_ls[:ele2_id] - + [i for i in ele_ele3.split("\n") if i] - + ele2_ls[ele2_id + 1 :] - ) - ele_id = ele1_ls.index(ele_ele1) - ele1_ls = ( - ele1_ls[:ele_id] - + [i for i in ele2_ls if i] - + ele1_ls[ele_id + 1 :] - ) - - id = ls.index(ele) - ls = ls[:id] + [i for i in ele1_ls if i] + ls[id + 1 :] - return ls diff --git a/dbgpt/rag/embedding_engine/loader/csv_loader.py b/dbgpt/rag/embedding_engine/loader/csv_loader.py deleted file mode 100644 index 7297a1a5b..000000000 --- a/dbgpt/rag/embedding_engine/loader/csv_loader.py +++ /dev/null @@ -1,76 +0,0 @@ -"""Loads a CSV file into a list of documents. - -Each document represents one row of the CSV file. Every row is converted into a -key/value pair and outputted to a new line in the document's page_content. - -The source for each document loaded from csv is set to the value of the -`file_path` argument for all documents by default. -You can override this by setting the `source_column` argument to the -name of a column in the CSV file. -The source of each document will then be set to the value of the column -with the name specified in `source_column`. - -Output Example: - .. code-block:: txt - - column1: value1 - column2: value2 - column3: value3 -""" -from typing import Optional, Dict, List -import csv -from langchain.document_loaders.base import BaseLoader -from langchain.schema import Document - - -class NewCSVLoader(BaseLoader): - def __init__( - self, - file_path: str, - source_column: Optional[str] = None, - csv_args: Optional[Dict] = None, - encoding: Optional[str] = None, - ): - """ - - Args: - file_path: The path to the CSV file. - source_column: The name of the column in the CSV file to use as the source. - Optional. Defaults to None. - csv_args: A dictionary of arguments to pass to the csv.DictReader. - Optional. Defaults to None. - encoding: The encoding of the CSV file. Optional. Defaults to None. - """ - self.file_path = file_path - self.source_column = source_column - self.encoding = encoding - self.csv_args = csv_args or {} - - def load(self) -> List[Document]: - """Load data into document objects.""" - - docs = [] - with open(self.file_path, newline="", encoding=self.encoding) as csvfile: - csv_reader = csv.DictReader(csvfile, **self.csv_args) # type: ignore - for i, row in enumerate(csv_reader): - strs = [] - for k, v in row.items(): - if k is None or v is None: - continue - strs.append(f"{k.strip()}: {v.strip()}") - content = "\n".join(strs) - try: - source = ( - row[self.source_column] - if self.source_column is not None - else self.file_path - ) - except KeyError: - raise ValueError( - f"Source column '{self.source_column}' not found in CSV file." - ) - metadata = {"source": source, "row": i} - doc = Document(page_content=content, metadata=metadata) - docs.append(doc) - - return docs diff --git a/dbgpt/rag/embedding_engine/loader/docx_loader.py b/dbgpt/rag/embedding_engine/loader/docx_loader.py deleted file mode 100644 index 458254b66..000000000 --- a/dbgpt/rag/embedding_engine/loader/docx_loader.py +++ /dev/null @@ -1,28 +0,0 @@ -from typing import List, Optional - -from langchain.docstore.document import Document -from langchain.document_loaders.base import BaseLoader -import docx - - -class DocxLoader(BaseLoader): - """Load docx files.""" - - def __init__(self, file_path: str, encoding: Optional[str] = None): - """Initialize with file path.""" - self.file_path = file_path - self.encoding = encoding - - def load(self) -> List[Document]: - """Load from file path.""" - docs = [] - doc = docx.Document(self.file_path) - content = [] - for i in range(len(doc.paragraphs)): - para = doc.paragraphs[i] - text = para.text - content.append(text) - docs.append( - Document(page_content="".join(content), metadata={"source": self.file_path}) - ) - return docs diff --git a/dbgpt/rag/embedding_engine/loader/pdf_loader.py b/dbgpt/rag/embedding_engine/loader/pdf_loader.py deleted file mode 100644 index bbeead0cd..000000000 --- a/dbgpt/rag/embedding_engine/loader/pdf_loader.py +++ /dev/null @@ -1,55 +0,0 @@ -"""Loader that loads image files.""" -import os -from typing import List - -import fitz -from langchain.document_loaders.unstructured import UnstructuredFileLoader -from paddleocr import PaddleOCR - - -class UnstructuredPaddlePDFLoader(UnstructuredFileLoader): - """Loader that uses unstructured to load image files, such as PNGs and JPGs.""" - - def _get_elements(self) -> List: - def pdf_ocr_txt(filepath, dir_path="tmp_files"): - full_dir_path = os.path.join(os.path.dirname(filepath), dir_path) - if not os.path.exists(full_dir_path): - os.makedirs(full_dir_path) - filename = os.path.split(filepath)[-1] - ocr = PaddleOCR(lang="ch", use_gpu=False, show_log=False) - doc = fitz.open(filepath) - txt_file_path = os.path.join(full_dir_path, "%s.txt" % (filename)) - img_name = os.path.join(full_dir_path, ".tmp.png") - with open(txt_file_path, "w", encoding="utf-8") as fout: - for i in range(doc.page_count): - page = doc[i] - text = page.get_text("") - fout.write(text) - fout.write("\n") - - img_list = page.get_images() - for img in img_list: - pix = fitz.Pixmap(doc, img[0]) - - pix.save(img_name) - - result = ocr.ocr(img_name) - ocr_result = [i[1][0] for line in result for i in line] - fout.write("\n".join(ocr_result)) - os.remove(img_name) - return txt_file_path - - txt_file_path = pdf_ocr_txt(self.file_path) - from unstructured.partition.text import partition_text - - return partition_text(filename=txt_file_path, **self.unstructured_kwargs) - - -if __name__ == "__main__": - filepath = os.path.join( - os.path.dirname(os.path.dirname(__file__)), "content", "samples", "test_py.pdf" - ) - loader = UnstructuredPaddlePDFLoader(filepath, mode="elements") - docs = loader.load() - for doc in docs: - print(doc) diff --git a/dbgpt/rag/embedding_engine/loader/ppt_loader.py b/dbgpt/rag/embedding_engine/loader/ppt_loader.py deleted file mode 100644 index 0bfaf9679..000000000 --- a/dbgpt/rag/embedding_engine/loader/ppt_loader.py +++ /dev/null @@ -1,28 +0,0 @@ -from typing import List, Optional - -from langchain.docstore.document import Document -from langchain.document_loaders.base import BaseLoader -from pptx import Presentation - - -class PPTLoader(BaseLoader): - """Load PPT files.""" - - def __init__(self, file_path: str, encoding: Optional[str] = None): - """Initialize with file path.""" - self.file_path = file_path - self.encoding = encoding - - def load(self) -> List[Document]: - """Load from file path.""" - pr = Presentation(self.file_path) - docs = [] - for slide in pr.slides: - for shape in slide.shapes: - if hasattr(shape, "text") and shape.text: - docs.append( - Document( - page_content=shape.text, metadata={"source": slide.slide_id} - ) - ) - return docs diff --git a/dbgpt/rag/embedding_engine/markdown_embedding.py b/dbgpt/rag/embedding_engine/markdown_embedding.py deleted file mode 100644 index de47cfdab..000000000 --- a/dbgpt/rag/embedding_engine/markdown_embedding.py +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -from typing import List, Optional - -import markdown -from bs4 import BeautifulSoup -from langchain.schema import Document -from langchain.text_splitter import ( - SpacyTextSplitter, - CharacterTextSplitter, - RecursiveCharacterTextSplitter, - TextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register -from dbgpt.rag.embedding_engine.encode_text_loader import EncodeTextLoader - - -class MarkdownEmbedding(SourceEmbedding): - """markdown embedding for read markdown document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize raw text word path.""" - super().__init__( - file_path, vector_store_config, source_reader=None, text_splitter=None - ) - self.file_path = file_path - self.vector_store_config = vector_store_config - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from markdown path.""" - if self.source_reader is None: - self.source_reader = EncodeTextLoader(self.file_path) - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=100, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=100, chunk_overlap=50 - ) - - return self.source_reader.load_and_split(self.text_splitter) - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - content = markdown.markdown(d.page_content) - soup = BeautifulSoup(content, "html.parser") - for tag in soup(["!doctype", "meta", "i.fa"]): - tag.extract() - documents[i].page_content = soup.get_text() - documents[i].page_content = documents[i].page_content.replace("\n", " ") - i += 1 - return documents diff --git a/dbgpt/rag/embedding_engine/pdf_embedding.py b/dbgpt/rag/embedding_engine/pdf_embedding.py deleted file mode 100644 index 4c93df228..000000000 --- a/dbgpt/rag/embedding_engine/pdf_embedding.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -from typing import List, Optional - -from langchain.document_loaders import PyPDFLoader -from langchain.schema import Document -from langchain.text_splitter import ( - SpacyTextSplitter, - RecursiveCharacterTextSplitter, - TextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register - - -class PDFEmbedding(SourceEmbedding): - """pdf embedding for read pdf document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize pdf word path. - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - """ - super().__init__( - file_path, vector_store_config, source_reader=None, text_splitter=None - ) - self.file_path = file_path - self.vector_store_config = vector_store_config - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from pdf path.""" - if self.source_reader is None: - self.source_reader = PyPDFLoader(self.file_path) - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=100, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=100, chunk_overlap=50 - ) - - return self.source_reader.load_and_split(self.text_splitter) - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - documents[i].page_content = d.page_content.replace("\n", "") - i += 1 - return documents diff --git a/dbgpt/rag/embedding_engine/ppt_embedding.py b/dbgpt/rag/embedding_engine/ppt_embedding.py deleted file mode 100644 index e52107bd9..000000000 --- a/dbgpt/rag/embedding_engine/ppt_embedding.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -from typing import List, Optional - -from langchain.schema import Document -from langchain.text_splitter import ( - SpacyTextSplitter, - RecursiveCharacterTextSplitter, - TextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register -from dbgpt.rag.embedding_engine.loader.ppt_loader import PPTLoader - - -class PPTEmbedding(SourceEmbedding): - """ppt embedding for read ppt document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize ppt word path. - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - """ - super().__init__( - file_path, vector_store_config, source_reader=None, text_splitter=None - ) - self.file_path = file_path - self.vector_store_config = vector_store_config - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from ppt path.""" - if self.source_reader is None: - self.source_reader = PPTLoader(self.file_path) - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=100, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=100, chunk_overlap=50 - ) - - return self.source_reader.load_and_split(self.text_splitter) - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - documents[i].page_content = d.page_content.replace("\n", "") - i += 1 - return documents diff --git a/dbgpt/rag/embedding_engine/search_milvus.py b/dbgpt/rag/embedding_engine/search_milvus.py deleted file mode 100644 index bf8794b34..000000000 --- a/dbgpt/rag/embedding_engine/search_milvus.py +++ /dev/null @@ -1,61 +0,0 @@ -# from langchain.embeddings import HuggingFaceEmbeddings -# from langchain.vectorstores import Milvus -# from pymilvus import Collection,utility -# from pymilvus import datasource, DataType, FieldSchema, CollectionSchema -# -# # milvus = datasource.connect( -# # alias="default", -# # host='localhost', -# # port="19530" -# # ) -# # collection = Collection("book") -# -# -# # Get an existing collection. -# # collection.load() -# # -# # search_params = {"metric_type": "L2", "params": {}, "offset": 5} -# # -# # results = collection.search( -# # data=[[0.1, 0.2]], -# # anns_field="book_intro", -# # param=search_params, -# # limit=10, -# # expr=None, -# # output_fields=['book_id'], -# # consistency_level="Strong" -# # ) -# # -# # # get the IDs of all returned hits -# # results[0].ids -# # -# # # get the distances to the query vector from all returned hits -# # results[0].distances -# # -# # # get the value of an output field specified in the search request. -# # # vector fields are not supported yet. -# # hit = results[0][0] -# # hit.entity.get('title') -# -# # milvus = datasource.connect( -# # alias="default", -# # host='localhost', -# # port="19530" -# # ) -# from dbgpt.vector_store.milvus_store import MilvusStore -# -# data = ["aaa", "bbb"] -# model_name = "xx/all-MiniLM-L6-v2" -# embeddings = HuggingFaceEmbeddings(model_name=model_name) -# -# # text_embeddings = Text2Vectors() -# mivuls = MilvusStore(cfg={"url": "127.0.0.1", "port": "19530", "alias": "default", "table_name": "test_k"}) -# -# mivuls.insert(["textc","tezt2"]) -# print("success") -# ct -# # mivuls.from_texts(texts=data, embedding=embeddings) -# # docs, -# # embedding=embeddings, -# # connection_args={"host": "127.0.0.1", "port": "19530", "alias": "default"} -# # ) diff --git a/dbgpt/rag/embedding_engine/source_embedding.py b/dbgpt/rag/embedding_engine/source_embedding.py deleted file mode 100644 index 2ab279531..000000000 --- a/dbgpt/rag/embedding_engine/source_embedding.py +++ /dev/null @@ -1,126 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -from abc import ABC, abstractmethod -from typing import Dict, List, Optional - -from langchain.text_splitter import TextSplitter - -from dbgpt.storage.vector_store.connector import VectorStoreConnector - -registered_methods = [] - - -def register(method): - registered_methods.append(method.__name__) - return method - - -class SourceEmbedding(ABC): - """base class for read data source embedding pipeline. - include data read, data process, data split, data to vector, data index vector store - Implementations should implement the method - """ - - def __init__( - self, - file_path, - vector_store_config: {}, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - embedding_args: Optional[Dict] = None, - ): - """Initialize with Loader url, model_name, vector_store_config - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - - embedding_args: Optional - """ - self.file_path = file_path - self.vector_store_config = vector_store_config or {} - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - self.embedding_args = embedding_args - self.embeddings = self.vector_store_config.get("embeddings", None) - - @abstractmethod - @register - def read(self) -> List[ABC]: - """read datasource into document objects.""" - - @register - def data_process(self, text): - """pre process data. - Args: - - text: raw text - """ - - @register - def text_splitter(self, text_splitter: TextSplitter): - """add text split chunk - Args: - - text_splitter: TextSplitter - """ - pass - - @register - def text_to_vector(self, docs): - """transform vector - Args: - - docs: List[Document] - """ - pass - - @register - def index_to_store(self, docs): - """index to vector store - Args: - - docs: List[Document] - """ - self.vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - return self.vector_client.load_document(docs) - - @register - def similar_search(self, doc, topk): - """vector store similarity_search - Args: - - query: query - """ - self.vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - # https://github.com/chroma-core/chroma/issues/657 - ans = self.vector_client.similar_search(doc, topk) - # ans = self.vector_client.similar_search(doc, 1) - return ans - - def vector_name_exist(self): - self.vector_client = VectorStoreConnector( - self.vector_store_config["vector_store_type"], self.vector_store_config - ) - return self.vector_client.vector_name_exists() - - def source_embedding(self): - """read()->data_process()->text_split()->index_to_store()""" - if "read" in registered_methods: - text = self.read() - if "data_process" in registered_methods: - text = self.data_process(text) - if "text_split" in registered_methods: - self.text_split(text) - if "text_to_vector" in registered_methods: - self.text_to_vector(text) - if "index_to_store" in registered_methods: - self.index_to_store(text) - - def read_batch(self): - if "read" in registered_methods: - text = self.read() - if "data_process" in registered_methods: - text = self.data_process(text) - if "text_split" in registered_methods: - self.text_split(text) - return text diff --git a/dbgpt/rag/embedding_engine/string_embedding.py b/dbgpt/rag/embedding_engine/string_embedding.py deleted file mode 100644 index 38c301391..000000000 --- a/dbgpt/rag/embedding_engine/string_embedding.py +++ /dev/null @@ -1,66 +0,0 @@ -from typing import List, Optional - -from langchain.schema import Document -from langchain.text_splitter import ( - TextSplitter, - SpacyTextSplitter, - RecursiveCharacterTextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register - - -class StringEmbedding(SourceEmbedding): - """string embedding for read string document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize raw text word path. - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - """ - super().__init__( - file_path=file_path, - vector_store_config=vector_store_config, - source_reader=None, - text_splitter=None, - ) - self.file_path = file_path - self.vector_store_config = vector_store_config - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from String path.""" - metadata = {"source": "raw text"} - docs = [Document(page_content=self.file_path, metadata=metadata)] - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=500, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=500, chunk_overlap=100 - ) - return self.text_splitter.split_documents(docs) - return docs - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - documents[i].page_content = d.page_content.replace("\n", "") - i += 1 - return documents diff --git a/dbgpt/rag/embedding_engine/url_embedding.py b/dbgpt/rag/embedding_engine/url_embedding.py deleted file mode 100644 index 4e49e11b5..000000000 --- a/dbgpt/rag/embedding_engine/url_embedding.py +++ /dev/null @@ -1,69 +0,0 @@ -from typing import List, Optional - -from bs4 import BeautifulSoup -from langchain.document_loaders import WebBaseLoader -from langchain.schema import Document -from langchain.text_splitter import ( - SpacyTextSplitter, - RecursiveCharacterTextSplitter, - TextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register - - -class URLEmbedding(SourceEmbedding): - """url embedding for read url document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize url word path. - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - """ - super().__init__( - file_path, vector_store_config, source_reader=None, text_splitter=None - ) - self.file_path = file_path - self.vector_store_config = vector_store_config or None - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from url path.""" - if self.source_reader is None: - self.source_reader = WebBaseLoader(web_path=self.file_path) - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=100, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=100, chunk_overlap=50 - ) - - return self.source_reader.load_and_split(self.text_splitter) - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - content = d.page_content.replace("\n", "") - soup = BeautifulSoup(content, "html.parser") - for tag in soup(["!doctype", "meta"]): - tag.extract() - documents[i].page_content = soup.get_text() - i += 1 - return documents diff --git a/dbgpt/rag/embedding_engine/word_embedding.py b/dbgpt/rag/embedding_engine/word_embedding.py deleted file mode 100644 index 4207d604d..000000000 --- a/dbgpt/rag/embedding_engine/word_embedding.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -from typing import List, Optional - -from langchain.schema import Document -from langchain.text_splitter import ( - SpacyTextSplitter, - RecursiveCharacterTextSplitter, - TextSplitter, -) - -from dbgpt.rag.embedding_engine import SourceEmbedding, register -from dbgpt.rag.embedding_engine.loader.docx_loader import DocxLoader - - -class WordEmbedding(SourceEmbedding): - """word embedding for read word document.""" - - def __init__( - self, - file_path, - vector_store_config, - source_reader: Optional = None, - text_splitter: Optional[TextSplitter] = None, - ): - """Initialize with word path. - Args: - - file_path: data source path - - vector_store_config: vector store config params. - - source_reader: Optional[BaseLoader] - - text_splitter: Optional[TextSplitter] - """ - super().__init__( - file_path, vector_store_config, source_reader=None, text_splitter=None - ) - self.file_path = file_path - self.vector_store_config = vector_store_config - self.source_reader = source_reader or None - self.text_splitter = text_splitter or None - - @register - def read(self): - """Load from word path.""" - if self.source_reader is None: - self.source_reader = DocxLoader(self.file_path) - if self.text_splitter is None: - try: - self.text_splitter = SpacyTextSplitter( - pipeline="zh_core_web_sm", - chunk_size=100, - chunk_overlap=100, - ) - except Exception: - self.text_splitter = RecursiveCharacterTextSplitter( - chunk_size=100, chunk_overlap=50 - ) - - return self.source_reader.load_and_split(self.text_splitter) - - @register - def data_process(self, documents: List[Document]): - i = 0 - for d in documents: - documents[i].page_content = d.page_content.replace("\n", "") - i += 1 - return documents diff --git a/dbgpt/rag/extracter/base.py b/dbgpt/rag/extracter/base.py deleted file mode 100644 index 6ace7872a..000000000 --- a/dbgpt/rag/extracter/base.py +++ /dev/null @@ -1,19 +0,0 @@ -from abc import abstractmethod, ABC -from typing import List, Dict - -from langchain.schema import Document - - -class Extractor(ABC): - """Extractor Base class, it's apply for Summary Extractor, Keyword Extractor, Triplets Extractor, Question Extractor, etc.""" - - def __init__(self): - pass - - @abstractmethod - def extract(self, chunks: List[Document]) -> List[Dict]: - """Extracts chunks. - - Args: - nodes (Sequence[Document]): nodes to extract metadata from - """ diff --git a/dbgpt/rag/extracter/summary.py b/dbgpt/rag/extracter/summary.py deleted file mode 100644 index f7c9bac8f..000000000 --- a/dbgpt/rag/extracter/summary.py +++ /dev/null @@ -1,95 +0,0 @@ -from typing import List - -from langchain.schema import Document - -from dbgpt._private.llm_metadata import LLMMetadata -from dbgpt.rag.extracter.base import Extractor - - -class SummaryExtractor(Extractor): - """Summary Extractor, it can extract document summary.""" - - def __init__(self, model_name: str = None, llm_metadata: LLMMetadata = None): - self.model_name = (model_name,) - self.llm_metadata = (llm_metadata or LLMMetadata,) - - async def extract(self, chunks: List[Document]) -> str: - """async document extract summary - Args: - - model_name: str - - chunk_docs: List[Document] - """ - texts = [doc.page_content for doc in chunks] - from dbgpt.util.prompt_util import PromptHelper - - prompt_helper = PromptHelper() - from dbgpt.app.scene.chat_knowledge.summary.prompt import prompt - - texts = prompt_helper.repack(prompt_template=prompt.template, text_chunks=texts) - return await self._mapreduce_extract_summary( - docs=texts, model_name=self.model_name, llm_metadata=self.llm_metadata - ) - - async def _mapreduce_extract_summary( - self, - docs, - model_name, - llm_metadata: LLMMetadata, - ): - """Extract summary by mapreduce mode - map -> multi async call llm to generate summary - reduce -> merge the summaries by map process - Args: - docs:List[str] - model_name:model name str - llm_metadata:LLMMetadata - Returns: - Document: refine summary context document. - """ - from dbgpt.app.scene import ChatScene - from dbgpt._private.chat_util import llm_chat_response_nostream - import uuid - - tasks = [] - if len(docs) == 1: - return docs[0] - else: - max_iteration = ( - llm_metadata.max_chat_iteration - if len(docs) > llm_metadata.max_chat_iteration - else len(docs) - ) - for doc in docs[0:max_iteration]: - chat_param = { - "chat_session_id": uuid.uuid1(), - "current_user_input": "", - "select_param": doc, - "model_name": model_name, - "model_cache_enable": True, - } - tasks.append( - llm_chat_response_nostream( - ChatScene.ExtractSummary.value(), **{"chat_param": chat_param} - ) - ) - from dbgpt._private.chat_util import run_async_tasks - - summary_iters = await run_async_tasks( - tasks=tasks, concurrency_limit=llm_metadata.concurrency_limit - ) - summary_iters = list( - filter( - lambda content: "LLMServer Generate Error" not in content, - summary_iters, - ) - ) - from dbgpt.util.prompt_util import PromptHelper - from dbgpt.app.scene.chat_knowledge.summary.prompt import prompt - - prompt_helper = PromptHelper() - summary_iters = prompt_helper.repack( - prompt_template=prompt.template, text_chunks=summary_iters - ) - return await self._mapreduce_extract_summary( - summary_iters, model_name, max_iteration, llm_metadata.concurrency_limit - ) diff --git a/dbgpt/app/scene/chat_knowledge/rewrite/__init__.py b/dbgpt/rag/extractor/__init__.py similarity index 100% rename from dbgpt/app/scene/chat_knowledge/rewrite/__init__.py rename to dbgpt/rag/extractor/__init__.py diff --git a/dbgpt/rag/extractor/base.py b/dbgpt/rag/extractor/base.py new file mode 100644 index 000000000..0ea072fe4 --- /dev/null +++ b/dbgpt/rag/extractor/base.py @@ -0,0 +1,45 @@ +from abc import abstractmethod, ABC +from typing import List + +from dbgpt.core import LLMClient +from dbgpt.rag.chunk import Chunk + + +class Extractor(ABC): + """Extractor Base class, it's apply for Summary Extractor, Keyword Extractor, Triplets Extractor, Question Extractor, etc.""" + + def __init__(self, llm_client: LLMClient) -> None: + """Initialize the Extractor.""" + self._llm_client = llm_client + + def extract(self, chunks: List[Chunk]) -> str: + """Extracts chunks. + + Args: + chunks (List[Chunk]): extract metadata from chunks + """ + return self._extract(chunks) + + async def aextract(self, chunks: List[Chunk]) -> str: + """Async Extracts chunks. + + Args: + chunks (List[Chunk]): extract metadata from chunks + """ + return await self._aextract(chunks) + + @abstractmethod + def _extract(self, chunks: List[Chunk]) -> str: + """Extracts chunks. + + Args: + chunks (List[Chunk]): extract metadata from chunks + """ + + @abstractmethod + async def _aextract(self, chunks: List[Chunk]) -> str: + """Async Extracts chunks. + + Args: + chunks (List[Chunk]): extract metadata from chunks + """ diff --git a/dbgpt/rag/extractor/summary.py b/dbgpt/rag/extractor/summary.py new file mode 100644 index 000000000..936240b15 --- /dev/null +++ b/dbgpt/rag/extractor/summary.py @@ -0,0 +1,135 @@ +from typing import List, Optional + +from dbgpt._private.llm_metadata import LLMMetadata +from dbgpt.core import LLMClient, ModelRequest, ModelMessageRoleType +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.extractor.base import Extractor +from dbgpt.util import utils +from dbgpt.util.chat_util import run_async_tasks + +SUMMARY_PROMPT_TEMPLATE_ZH = """请根据提供的上下文信息的进行精简地总结: +{context} +答案尽量精确和简单,不要过长,长度控制在100字左右 +""" + +SUMMARY_PROMPT_TEMPLATE_EN = """ +Write a quick summary of the following context: +{context} +the summary should be as concise as possible and not overly lengthy.Please keep the answer within approximately 200 characters. +""" + + +class SummaryExtractor(Extractor): + """Summary Extractor, it can extract document summary.""" + + def __init__( + self, + llm_client: Optional[LLMClient], + model_name: Optional[str] = None, + llm_metadata: Optional[LLMMetadata] = None, + language: Optional[str] = "en", + max_iteration_with_llm: Optional[int] = 5, + concurrency_limit_with_llm: Optional[int] = 3, + ): + self._llm_client = llm_client + self._model_name = model_name + self.llm_metadata = llm_metadata or LLMMetadata + self._language = language + self._concurrency_limit_with_llm = concurrency_limit_with_llm + self._prompt_template = ( + SUMMARY_PROMPT_TEMPLATE_EN + if language == "en" + else SUMMARY_PROMPT_TEMPLATE_ZH + ) + self._concurrency_limit_with_llm = concurrency_limit_with_llm + self._max_iteration_with_llm = max_iteration_with_llm + self._concurrency_limit_with_llm = concurrency_limit_with_llm + + """Initialize the Extractor. + Args: + llm_client: (Optional[LLMClient]): The LLM client. Defaults to None. + model_name: str + llm_metadata: LLMMetadata + language: (Optional[str]): The language of the prompt. Defaults to "en". + max_iteration_with_llm: (Optional[int]): The max iteration with llm. Defaults to 5. + concurrency_limit_with_llm: (Optional[int]): The concurrency limit with llm. Defaults to 3. + """ + + async def _aextract(self, chunks: List[Chunk]) -> str: + """async document extract summary + Args: + - model_name: str + - chunk_docs: List[Document] + """ + texts = [doc.content for doc in chunks] + from dbgpt.util.prompt_util import PromptHelper + + prompt_helper = PromptHelper() + texts = prompt_helper.repack( + prompt_template=self._prompt_template, text_chunks=texts + ) + if len(texts) == 1: + summary_outs = await self._llm_run_tasks(chunk_texts=texts) + return summary_outs[0] + else: + return await self._mapreduce_extract_summary(docs=texts) + + def _extract(self, chunks: List[Chunk]) -> str: + """document extract summary + Args: + - chunk_docs: List[Document] + """ + loop = utils.get_or_create_event_loop() + return loop.run_until_complete(self._aextract(chunks=chunks)) + + async def _mapreduce_extract_summary( + self, + docs: List[str], + ) -> str: + """Extract summary by mapreduce mode + map -> multi async call llm to generate summary + reduce -> merge the summaries by map process + Args: + docs:List[str] + Returns: + summary: str + """ + if len(docs) == 1: + return docs[0] + else: + summary_outs = await self._llm_run_tasks( + chunk_texts=docs[0 : self._max_iteration_with_llm] + ) + from dbgpt.util.prompt_util import PromptHelper + + prompt_helper = PromptHelper() + summary_outs = prompt_helper.repack( + prompt_template=self._prompt_template, text_chunks=summary_outs + ) + return await self._mapreduce_extract_summary(docs=summary_outs) + + async def _llm_run_tasks(self, chunk_texts: List[str]) -> List[str]: + """llm run tasks + Args: + chunk_texts: List[str] + Returns: + summary_outs: List[str] + """ + tasks = [] + for chunk_text in chunk_texts: + from dbgpt.core import ModelMessage + + prompt = self._prompt_template.format(context=chunk_text) + messages = [ModelMessage(role=ModelMessageRoleType.SYSTEM, content=prompt)] + request = ModelRequest(model=self._model_name, messages=messages) + tasks.append(self._llm_client.generate(request)) + summary_results = await run_async_tasks( + tasks=tasks, concurrency_limit=self._concurrency_limit_with_llm + ) + summary_outs = [model_out.text for model_out in summary_results] + return list( + filter( + lambda model_out: "LLMServer Generate Error" not in model_out, + summary_outs, + ) + ) diff --git a/dbgpt/app/scene/chat_knowledge/summary/__init__.py b/dbgpt/rag/extractor/tests/__init__.py similarity index 100% rename from dbgpt/app/scene/chat_knowledge/summary/__init__.py rename to dbgpt/rag/extractor/tests/__init__.py diff --git a/dbgpt/rag/extractor/tests/test_summary_extractor.py b/dbgpt/rag/extractor/tests/test_summary_extractor.py new file mode 100644 index 000000000..0beba44c1 --- /dev/null +++ b/dbgpt/rag/extractor/tests/test_summary_extractor.py @@ -0,0 +1,40 @@ +import unittest +from unittest.mock import AsyncMock, MagicMock + +from dbgpt._private.llm_metadata import LLMMetadata +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.extractor.summary import SummaryExtractor + + +class MockLLMClient: + async def generate(self, request): + return MagicMock(text=f"Summary for: {request.messages[0].content}") + + +class TestSummaryExtractor(unittest.IsolatedAsyncioTestCase): + async def asyncSetUp(self): + self.llm_client = MockLLMClient() + self.llm_client.generate = AsyncMock(side_effect=self.llm_client.generate) + + self.extractor = SummaryExtractor( + llm_client=self.llm_client, + model_name="test_model_name", + llm_metadata=LLMMetadata(), + language="en", + max_iteration_with_llm=2, + concurrency_limit_with_llm=1, + ) + + async def test_single_chunk_extraction(self): + single_chunk = [Chunk(content="This is a test content.")] + summary = await self.extractor._aextract(chunks=single_chunk) + self.assertEqual("This is a test content" in summary, True) + + async def test_multiple_chunks_extraction(self): + chunks = [Chunk(content=f"Content {i}") for i in range(4)] + summary = await self.extractor._aextract(chunks=chunks) + self.assertTrue(summary.startswith("Summary for:")) + + +if __name__ == "__main__": + unittest.main() diff --git a/dbgpt/rag/embedding_engine/external/__init__.py b/dbgpt/rag/graph/__init__.py similarity index 100% rename from dbgpt/rag/embedding_engine/external/__init__.py rename to dbgpt/rag/graph/__init__.py diff --git a/dbgpt/rag/graph_engine/graph_engine.py b/dbgpt/rag/graph/graph_engine.py similarity index 93% rename from dbgpt/rag/graph_engine/graph_engine.py rename to dbgpt/rag/graph/graph_engine.py index 6cfd5176b..50e66c4c9 100644 --- a/dbgpt/rag/graph_engine/graph_engine.py +++ b/dbgpt/rag/graph/graph_engine.py @@ -4,10 +4,10 @@ from langchain.schema import Document from langchain.text_splitter import RecursiveCharacterTextSplitter -from dbgpt.rag.embedding_engine import KnowledgeType -from dbgpt.rag.embedding_engine.knowledge_type import get_knowledge_embedding -from dbgpt.rag.graph_engine.index_struct import KG -from dbgpt.rag.graph_engine.node import TextNode +from dbgpt.rag.embedding import KnowledgeType +from dbgpt.rag.embedding.knowledge_type import get_knowledge_embedding +from dbgpt.rag.graph.index_struct import KG +from dbgpt.rag.graph.node import TextNode from dbgpt.util import utils logger = logging.getLogger(__name__) @@ -88,7 +88,7 @@ def _extract_triplets(self, text: str) -> List[Tuple[str, str, str]]: def _llm_extract_triplets(self, text: str) -> List[Tuple[str, str, str]]: """Extract triplets from text by llm""" from dbgpt.app.scene import ChatScene - from dbgpt._private.chat_util import llm_chat_response_nostream + from dbgpt.util.chat_util import llm_chat_response_nostream import uuid chat_param = { @@ -123,7 +123,7 @@ def _build_index_from_docs(self, documents: List[Document]) -> KG: return index_struct def search(self, query): - from dbgpt.rag.graph_engine.graph_search import RAGGraphSearch + from dbgpt.rag.graph.graph_search import RAGGraphSearch graph_search = RAGGraphSearch(graph_engine=self) return graph_search.search(query) diff --git a/dbgpt/rag/graph_engine/graph_factory.py b/dbgpt/rag/graph/graph_factory.py similarity index 93% rename from dbgpt/rag/graph_engine/graph_factory.py rename to dbgpt/rag/graph/graph_factory.py index 0d6fffc69..c868190e5 100644 --- a/dbgpt/rag/graph_engine/graph_factory.py +++ b/dbgpt/rag/graph/graph_factory.py @@ -20,7 +20,7 @@ def __init__( super().__init__(system_app=system_app) self._default_model_name = default_model_name self.kwargs = kwargs - from dbgpt.rag.graph_engine.graph_engine import RAGGraphEngine + from dbgpt.rag.graph.graph_engine import RAGGraphEngine self.rag_engine = RAGGraphEngine(model_name="proxyllm") diff --git a/dbgpt/rag/graph_engine/graph_search.py b/dbgpt/rag/graph/graph_search.py similarity index 95% rename from dbgpt/rag/graph_engine/graph_search.py rename to dbgpt/rag/graph/graph_search.py index eb5cfdbcd..055e9aa5a 100644 --- a/dbgpt/rag/graph_engine/graph_search.py +++ b/dbgpt/rag/graph/graph_search.py @@ -6,8 +6,8 @@ from langchain.schema import Document -from dbgpt.rag.graph_engine.node import BaseNode, TextNode, NodeWithScore -from dbgpt.rag.graph_engine.search import BaseSearch, SearchMode +from dbgpt.rag.graph.node import BaseNode, TextNode, NodeWithScore +from dbgpt.rag.graph.search import BaseSearch, SearchMode logger = logging.getLogger(__name__) DEFAULT_NODE_SCORE = 1000.0 @@ -19,7 +19,7 @@ class RAGGraphSearch(BaseSearch): """RAG Graph Search. args: - graph_engine RAGGraphEngine. + graph RAGGraphEngine. model_name (str): model name (see :ref:`Prompt-Templates`). text_qa_template (Optional[BasePromptTemplate]): A Question Answering Prompt @@ -45,7 +45,7 @@ def __init__( **kwargs: Any, ) -> None: """Initialize params.""" - from dbgpt.rag.graph_engine.graph_engine import RAGGraphEngine + from dbgpt.rag.graph.graph_engine import RAGGraphEngine self.graph_engine: RAGGraphEngine = graph_engine self.model_name = model_name or self.graph_engine.model_name @@ -78,7 +78,7 @@ async def _extract_subject_entities(self, query_str: str) -> Set[str]: async def _extract_entities_by_llm(self, text: str) -> Set[str]: """extract subject entities from text by llm""" from dbgpt.app.scene import ChatScene - from dbgpt._private.chat_util import llm_chat_response_nostream + from dbgpt.util.chat_util import llm_chat_response_nostream import uuid chat_param = { diff --git a/dbgpt/rag/graph_engine/index_struct.py b/dbgpt/rag/graph/index_struct.py similarity index 98% rename from dbgpt/rag/graph_engine/index_struct.py rename to dbgpt/rag/graph/index_struct.py index 63f92fa74..e09d68c83 100644 --- a/dbgpt/rag/graph_engine/index_struct.py +++ b/dbgpt/rag/graph/index_struct.py @@ -12,8 +12,8 @@ from dataclasses_json import DataClassJsonMixin -from dbgpt.rag.graph_engine.index_type import IndexStructType -from dbgpt.rag.graph_engine.node import TextNode, BaseNode +from dbgpt.rag.graph.index_type import IndexStructType +from dbgpt.rag.graph.node import TextNode, BaseNode # TODO: legacy backport of old Node class Node = TextNode diff --git a/dbgpt/rag/graph_engine/index_type.py b/dbgpt/rag/graph/index_type.py similarity index 100% rename from dbgpt/rag/graph_engine/index_type.py rename to dbgpt/rag/graph/index_type.py diff --git a/dbgpt/rag/graph_engine/kv_index.py b/dbgpt/rag/graph/kv_index.py similarity index 100% rename from dbgpt/rag/graph_engine/kv_index.py rename to dbgpt/rag/graph/kv_index.py diff --git a/dbgpt/rag/graph_engine/node.py b/dbgpt/rag/graph/node.py similarity index 100% rename from dbgpt/rag/graph_engine/node.py rename to dbgpt/rag/graph/node.py diff --git a/dbgpt/rag/graph_engine/search.py b/dbgpt/rag/graph/search.py similarity index 100% rename from dbgpt/rag/graph_engine/search.py rename to dbgpt/rag/graph/search.py diff --git a/dbgpt/rag/embedding_engine/loader/__init__.py b/dbgpt/rag/knowledge/__init__.py similarity index 100% rename from dbgpt/rag/embedding_engine/loader/__init__.py rename to dbgpt/rag/knowledge/__init__.py diff --git a/dbgpt/rag/knowledge/base.py b/dbgpt/rag/knowledge/base.py new file mode 100644 index 000000000..ff739f990 --- /dev/null +++ b/dbgpt/rag/knowledge/base.py @@ -0,0 +1,141 @@ +from abc import abstractmethod, ABC +from enum import Enum +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.text_splitter.text_splitter import ( + RecursiveCharacterTextSplitter, + MarkdownHeaderTextSplitter, + ParagraphTextSplitter, + CharacterTextSplitter, + PageTextSplitter, + SeparatorTextSplitter, +) + + +class DocumentType(Enum): + PDF = "pdf" + CSV = "csv" + MARKDOWN = "md" + PPTX = "pptx" + DOCX = "docx" + TXT = "txt" + HTML = "html" + + +class KnowledgeType(Enum): + DOCUMENT = "DOCUMENT" + URL = "URL" + TEXT = "TEXT" + + @property + def type(self): + return DocumentType + + @classmethod + def get_by_value(cls, value): + """Get Enum member by value""" + for member in cls: + if member.value == value: + return member + raise ValueError(f"{value} is not a valid value for {cls.__name__}") + + +class ChunkStrategy(Enum): + """chunk strategy""" + + CHUNK_BY_SIZE = ( + RecursiveCharacterTextSplitter, + [ + {"param_name": "chunk_size", "param_type": "int", "default_value": 512}, + {"param_name": "chunk_overlap", "param_type": "int", "default_value": 50}, + ], + "chunk size", + "split document by chunk size", + ) + CHUNK_BY_PAGE = (PageTextSplitter, [], "page", "split document by page") + CHUNK_BY_PARAGRAPH = ( + ParagraphTextSplitter, + [{"param_name": "separator", "param_type": "string", "default_value": "\n"}], + "paragraph", + "split document by paragraph", + ) + CHUNK_BY_SEPARATOR = ( + SeparatorTextSplitter, + [{"param_name": "separator", "param_type": "string", "default_value": "\n"}], + "separator", + "split document by separator", + ) + CHUNK_BY_MARKDOWN_HEADER = ( + MarkdownHeaderTextSplitter, + [], + "markdown header", + "split document by markdown header", + ) + + def __init__(self, splitter_class, parameters, alias, description): + self.splitter_class = splitter_class + self.parameters = parameters + self.alias = alias + self.description = description + + def match(self, *args, **kwargs): + return self.value[0](*args, **kwargs) + + +class Knowledge(ABC): + type: KnowledgeType = None + + def __init__( + self, + path: Optional[str] = None, + knowledge_type: Optional[KnowledgeType] = None, + data_loader: Optional = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments.""" + self._path = path + self._type = knowledge_type + self._data_loader = data_loader + + def load(self): + """Load knowledge from data_loader""" + documents = self._load() + return self._postprocess(documents) + + @classmethod + def type(cls) -> KnowledgeType: + """Get knowledge type""" + + @classmethod + def document_type(cls) -> Any: + """Get document type""" + return None + + def _postprocess(self, docs: List[Document]) -> List[Document]: + """Post process knowledge from data_loader""" + return docs + + @abstractmethod + def _load(self): + """Preprocess knowledge from data_loader""" + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + """support chunk strategy""" + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_PAGE, + ChunkStrategy.CHUNK_BY_PARAGRAPH, + ChunkStrategy.CHUNK_BY_MARKDOWN_HEADER, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + def default_chunk_strategy(self) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + def support_chunk_strategy(self): + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] diff --git a/dbgpt/rag/knowledge/csv.py b/dbgpt/rag/knowledge/csv.py new file mode 100644 index 000000000..24ee2ad82 --- /dev/null +++ b/dbgpt/rag/knowledge/csv.py @@ -0,0 +1,87 @@ +from typing import Optional, Any, List +import csv +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + KnowledgeType, + Knowledge, + ChunkStrategy, + DocumentType, +) + + +class CSVKnowledge(Knowledge): + """CSV Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: Optional[KnowledgeType] = KnowledgeType.DOCUMENT, + source_column: Optional[str] = None, + encoding: Optional[str] = "utf-8", + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize csv with Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + source_column:(Optional[str]) source column + encoding:(Optional[str]) csv encoding + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + self._encoding = encoding + self._source_column = source_column + + def _load(self) -> List[Document]: + """Load csv document from loader""" + if self._loader: + documents = self._loader.load() + else: + docs = [] + with open(self._path, newline="", encoding=self._encoding) as csvfile: + csv_reader = csv.DictReader(csvfile) + for i, row in enumerate(csv_reader): + strs = [] + for k, v in row.items(): + if k is None or v is None: + continue + strs.append(f"{k.strip()}: {v.strip()}") + content = "\n".join(strs) + try: + source = ( + row[self._source_column] + if self._source_column is not None + else self._path + ) + except KeyError: + raise ValueError( + f"Source column '{self._source_column}' not found in CSV file." + ) + metadata = {"source": source, "row": i} + doc = Document(content=content, metadata=metadata) + docs.append(doc) + + return docs + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.CSV diff --git a/dbgpt/rag/knowledge/docx.py b/dbgpt/rag/knowledge/docx.py new file mode 100644 index 000000000..df99a988d --- /dev/null +++ b/dbgpt/rag/knowledge/docx.py @@ -0,0 +1,72 @@ +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + KnowledgeType, + Knowledge, + ChunkStrategy, + DocumentType, +) +import docx + + +class DocxKnowledge(Knowledge): + """Docx Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: Any = KnowledgeType.DOCUMENT, + encoding: Optional[str] = "utf-8", + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + encoding:(Optional[str]) csv encoding + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + self._encoding = encoding + + def _load(self) -> List[Document]: + """Load docx document from loader""" + if self._loader: + documents = self._loader.load() + else: + docs = [] + doc = docx.Document(self._path) + content = [] + for i in range(len(doc.paragraphs)): + para = doc.paragraphs[i] + text = para.text + content.append(text) + docs.append( + Document(content="\n".join(content), metadata={"source": self._path}) + ) + return docs + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_PARAGRAPH, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.DOCX diff --git a/dbgpt/rag/knowledge/factory.py b/dbgpt/rag/knowledge/factory.py new file mode 100644 index 000000000..845acbbe1 --- /dev/null +++ b/dbgpt/rag/knowledge/factory.py @@ -0,0 +1,143 @@ +from typing import Optional +from typing import List + +from dbgpt.rag.knowledge.base import KnowledgeType, Knowledge +from dbgpt.rag.knowledge.string import StringKnowledge +from dbgpt.rag.knowledge.url import URLKnowledge + + +class KnowledgeFactory: + """Knowledge Factory to create knowledge from file path and url""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: Optional[KnowledgeType] = KnowledgeType.DOCUMENT, + ): + """Initialize with Knowledge Factory arguments. + Args: + param file_path: path of the file to convert + param knowledge_type: type of knowledge + """ + self._file_path = file_path + self._knowledge_type = knowledge_type + + @classmethod + def create( + cls, + datasource: Optional[str] = None, + knowledge_type: Optional[KnowledgeType] = KnowledgeType.DOCUMENT, + ): + """create knowledge from file path, url or text + Args: + datasource: path of the file to convert + knowledge_type: type of knowledge + Example: + .. code-block:: python + >>> from dbgpt.rag.knowledge.factory import KnowledgeFactory + >>> url_knowlege = KnowledgeFactory.create(datasource="https://www.baidu.com", knowledge_type=KnowledgeType.URL) + >>> doc_knowlege = KnowledgeFactory.create(datasource="path/to/document.pdf", knowledge_type=KnowledgeType.DOCUMENT) + """ + match knowledge_type: + case KnowledgeType.DOCUMENT: + return cls.from_file_path( + file_path=datasource, knowledge_type=knowledge_type + ) + case KnowledgeType.URL: + return cls.from_url(url=datasource, knowledge_type=knowledge_type) + case KnowledgeType.TEXT: + return cls.from_text(text=datasource, knowledge_type=knowledge_type) + case _: + raise Exception(f"Unsupported knowledge type '{knowledge_type}'") + + @classmethod + def from_file_path( + cls, + file_path: Optional[str] = None, + knowledge_type: Optional[KnowledgeType] = KnowledgeType.DOCUMENT, + ) -> Knowledge: + """Create knowledge from path + Args: + param file_path: path of the file to convert + param knowledge_type: type of knowledge + Example: + .. code-block:: python + >>> from dbgpt.rag.knowledge.factory import KnowledgeFactory + >>> doc_knowlege = KnowledgeFactory.create(datasource="path/to/document.pdf", knowledge_type=KnowledgeType.DOCUMENT) + """ + factory = cls(file_path=file_path, knowledge_type=knowledge_type) + return factory._select_document_knowledge( + file_path=file_path, knowledge_type=knowledge_type + ) + + @staticmethod + def from_url( + url: Optional[str] = None, + knowledge_type: Optional[KnowledgeType] = KnowledgeType.URL, + ) -> Knowledge: + """Create knowledge from url + Args: + param url: url of the file to convert + param knowledge_type: type of knowledge + Example: + .. code-block:: python + >>> from dbgpt.rag.knowledge.factory import KnowledgeFactory + >>> url_knowlege = KnowledgeFactory.create(datasource="https://www.baidu.com", knowledge_type=KnowledgeType.URL) + """ + return URLKnowledge( + url=url, + knowledge_type=knowledge_type, + ) + + @staticmethod + def from_text( + text: str = None, + knowledge_type: Optional[KnowledgeType] = KnowledgeType.TEXT, + ) -> Knowledge: + """Create knowledge from text + Args: + param text: text to convert + param knowledge_type: type of knowledge + """ + return StringKnowledge( + text=text, + knowledge_type=knowledge_type, + ) + + def _select_document_knowledge(self, **kwargs): + """Select document knowledge from file path""" + extension = self._file_path.rsplit(".", 1)[-1] + knowledge_classes = self._get_knowledge_subclasses() + implementation = None + for cls in knowledge_classes: + if cls.document_type() and cls.document_type().value == extension: + implementation = cls(**kwargs) + if implementation is None: + raise Exception(f"Unsupported knowledge document type '{extension}'") + return implementation + + @classmethod + def all_types(cls): + """get all knowledge types""" + return [knowledge.type().value for knowledge in cls._get_knowledge_subclasses()] + + @classmethod + def subclasses(cls): + """get all knowledge subclasses""" + return cls._get_knowledge_subclasses() + + @staticmethod + def _get_knowledge_subclasses() -> List[Knowledge]: + """get all knowledge subclasses""" + from dbgpt.rag.knowledge.base import Knowledge + from dbgpt.rag.knowledge.pdf import PDFKnowledge + from dbgpt.rag.knowledge.docx import DocxKnowledge + from dbgpt.rag.knowledge.markdown import MarkdownKnowledge + from dbgpt.rag.knowledge.csv import CSVKnowledge + from dbgpt.rag.knowledge.txt import TXTKnowledge + from dbgpt.rag.knowledge.pptx import PPTXKnowledge + from dbgpt.rag.knowledge.html import HTMLKnowledge + from dbgpt.rag.knowledge.url import URLKnowledge + from dbgpt.rag.knowledge.string import StringKnowledge + + return Knowledge.__subclasses__() diff --git a/dbgpt/rag/knowledge/html.py b/dbgpt/rag/knowledge/html.py new file mode 100644 index 000000000..eb3dce643 --- /dev/null +++ b/dbgpt/rag/knowledge/html.py @@ -0,0 +1,84 @@ +from typing import Optional, Any, List + +import chardet + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + Knowledge, + KnowledgeType, + ChunkStrategy, + DocumentType, +) + + +class HTMLKnowledge(Knowledge): + """HTML Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: KnowledgeType = KnowledgeType.DOCUMENT, + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + + def _load(self) -> List[Document]: + """Load html document from loader""" + if self._loader: + documents = self._loader.load() + else: + with open(self._path, "rb") as f: + raw_text = f.read() + result = chardet.detect(raw_text) + if result["encoding"] is None: + text = raw_text.decode("utf-8") + else: + text = raw_text.decode(result["encoding"]) + metadata = {"source": self._path} + return [Document(content=text, metadata=metadata)] + + return [Document.langchain2doc(lc_document) for lc_document in documents] + + def _postprocess(self, documents: List[Document]): + i = 0 + for d in documents: + import markdown + + content = markdown.markdown(d.content) + from bs4 import BeautifulSoup + + soup = BeautifulSoup(content, "html.parser") + for tag in soup(["!doctype", "meta", "i.fa"]): + tag.extract() + documents[i].content = soup.get_text() + documents[i].content = documents[i].content.replace("\n", " ") + i += 1 + return documents + + @classmethod + def support_chunk_strategy(cls): + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.HTML diff --git a/dbgpt/rag/extracter/__init__.py b/dbgpt/rag/knowledge/json.py similarity index 100% rename from dbgpt/rag/extracter/__init__.py rename to dbgpt/rag/knowledge/json.py diff --git a/dbgpt/rag/knowledge/markdown.py b/dbgpt/rag/knowledge/markdown.py new file mode 100644 index 000000000..c707c893b --- /dev/null +++ b/dbgpt/rag/knowledge/markdown.py @@ -0,0 +1,65 @@ +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + KnowledgeType, + Knowledge, + ChunkStrategy, + DocumentType, +) + + +class MarkdownKnowledge(Knowledge): + """Markdown Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: KnowledgeType = KnowledgeType.DOCUMENT, + encoding: Optional[str] = "utf-8", + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + encoding:(Optional[str]) encoding + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + self._encoding = encoding + + def _load(self) -> List[Document]: + """Load markdown document from loader""" + if self._loader: + documents = self._loader.load() + else: + with open(self._path, encoding=self._encoding, errors="ignore") as f: + markdown_text = f.read() + metadata = {"source": self._path} + documents = [Document(content=markdown_text, metadata=metadata)] + return documents + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_MARKDOWN_HEADER, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_MARKDOWN_HEADER + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.MARKDOWN diff --git a/dbgpt/rag/knowledge/pdf.py b/dbgpt/rag/knowledge/pdf.py new file mode 100644 index 000000000..87be838ca --- /dev/null +++ b/dbgpt/rag/knowledge/pdf.py @@ -0,0 +1,88 @@ +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + Knowledge, + KnowledgeType, + ChunkStrategy, + DocumentType, +) + + +class PDFKnowledge(Knowledge): + """PDF Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: KnowledgeType = KnowledgeType.DOCUMENT, + loader: Optional = None, + language: Optional[str] = "zh", + **kwargs: Any, + ) -> None: + """Initialize with PDF Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + self._language = language + + def _load(self) -> List[Document]: + """Load pdf document from loader""" + if self._loader: + documents = self._loader.load() + else: + import pypdf + + pages = [] + documents = [] + with open(self._path, "rb") as file: + reader = pypdf.PdfReader(file) + for page_num in range(len(reader.pages)): + page = reader.pages[page_num] + pages.append((page.extract_text(), page_num)) + + # cleaned_pages = [] + for page, page_num in pages: + lines = page.splitlines() + + cleaned_lines = [] + for line in lines: + if self._language == "en": + words = list(line) + else: + words = line.split() + digits = [word for word in words if any(i.isdigit() for i in word)] + cleaned_lines.append(line) + page = "\n".join(cleaned_lines) + # cleaned_pages.append(page) + metadata = {"source": self._path, "page": page_num} + # text = "\f".join(cleaned_pages) + document = Document(content=page, metadata=metadata) + documents.append(document) + return documents + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_PAGE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.PDF diff --git a/dbgpt/rag/knowledge/pptx.py b/dbgpt/rag/knowledge/pptx.py new file mode 100644 index 000000000..431d51444 --- /dev/null +++ b/dbgpt/rag/knowledge/pptx.py @@ -0,0 +1,72 @@ +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + Knowledge, + KnowledgeType, + ChunkStrategy, + DocumentType, +) + + +class PPTXKnowledge(Knowledge): + """PPTX Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: KnowledgeType = KnowledgeType.DOCUMENT, + loader: Optional = None, + language: Optional[str] = "zh", + **kwargs: Any, + ) -> None: + """Initialize with PDF Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + self._language = language + + def _load(self) -> List[Document]: + """Load pdf document from loader""" + if self._loader: + documents = self._loader.load() + else: + from pptx import Presentation + + pr = Presentation(self._path) + docs = [] + for slide in pr.slides: + content = "" + for shape in slide.shapes: + if hasattr(shape, "text") and shape.text: + content += shape.text + docs.append( + Document(content=content, metadata={"source": slide.slide_id}) + ) + return docs + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_PAGE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.PPTX diff --git a/dbgpt/rag/knowledge/string.py b/dbgpt/rag/knowledge/string.py new file mode 100644 index 000000000..3b8fd7d5a --- /dev/null +++ b/dbgpt/rag/knowledge/string.py @@ -0,0 +1,48 @@ +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import KnowledgeType, Knowledge, ChunkStrategy + + +class StringKnowledge(Knowledge): + """String Knowledge""" + + def __init__( + self, + text: str = None, + knowledge_type: KnowledgeType = KnowledgeType.TEXT, + encoding: Optional[str] = "utf-8", + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments. + Args: + text:(str) text + knowledge_type:(KnowledgeType) knowledge type + encoding:(encoding) csv encoding + loader:(loader) loader + """ + self._text = text + self._type = knowledge_type + self._loader = loader + self._encoding = encoding + + def _load(self) -> List[Document]: + """load raw text from loader""" + metadata = {"source": "raw text"} + docs = [Document(content=self._text, metadata=metadata)] + return docs + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls): + return KnowledgeType.TEXT diff --git a/dbgpt/rag/graph_engine/__init__.py b/dbgpt/rag/knowledge/tests/__init__.py similarity index 100% rename from dbgpt/rag/graph_engine/__init__.py rename to dbgpt/rag/knowledge/tests/__init__.py diff --git a/dbgpt/rag/knowledge/tests/test_csv.py b/dbgpt/rag/knowledge/tests/test_csv.py new file mode 100644 index 000000000..0f8029354 --- /dev/null +++ b/dbgpt/rag/knowledge/tests/test_csv.py @@ -0,0 +1,31 @@ +import pytest +from unittest.mock import MagicMock, mock_open, patch + +from dbgpt.rag.knowledge.csv import CSVKnowledge + +MOCK_CSV_DATA = "id,name,age\n1,John Doe,30\n2,Jane Smith,25\n3,Bob Johnson,40" + + +@pytest.fixture +def mock_file_open(): + with patch("builtins.open", mock_open(read_data=MOCK_CSV_DATA)) as mock_file: + yield mock_file + + +@pytest.fixture +def mock_csv_dict_reader(): + with patch("csv.DictReader", MagicMock()) as mock_csv: + mock_csv.return_value = iter( + [ + {"id": "1", "name": "John Doe", "age": "30"}, + {"id": "2", "name": "Jane Smith", "age": "25"}, + {"id": "3", "name": "Bob Johnson", "age": "40"}, + ] + ) + yield mock_csv + + +def test_load_from_csv(mock_file_open, mock_csv_dict_reader): + knowledge = CSVKnowledge(file_path="test_data.csv", source_column="name") + documents = knowledge._load() + assert len(documents) == 3 diff --git a/dbgpt/rag/knowledge/tests/test_docx.py b/dbgpt/rag/knowledge/tests/test_docx.py new file mode 100644 index 000000000..e6f1ddc4f --- /dev/null +++ b/dbgpt/rag/knowledge/tests/test_docx.py @@ -0,0 +1,28 @@ +import pytest +from unittest.mock import MagicMock, patch + +from dbgpt.rag.knowledge.docx import DocxKnowledge + + +@pytest.fixture +def mock_docx_document(): + mock_document = MagicMock() + mock_document.paragraphs = [ + MagicMock(text="This is the first paragraph."), + MagicMock(text="This is the second paragraph."), + ] + with patch("docx.Document", return_value=mock_document): + yield mock_document + + +def test_load_from_docx(mock_docx_document): + file_path = "test_document.docx" + knowledge = DocxKnowledge(file_path=file_path) + documents = knowledge._load() + + assert len(documents) == 1 + assert ( + documents[0].content + == "This is the first paragraph.\nThis is the second paragraph." + ) + assert documents[0].metadata["source"] == file_path diff --git a/dbgpt/rag/knowledge/tests/test_html.py b/dbgpt/rag/knowledge/tests/test_html.py new file mode 100644 index 000000000..9cb123c5c --- /dev/null +++ b/dbgpt/rag/knowledge/tests/test_html.py @@ -0,0 +1,45 @@ +import pytest +from unittest.mock import mock_open, patch + +from dbgpt.rag.knowledge.html import HTMLKnowledge + +MOCK_HTML_CONTENT = b""" + + +Test HTML + + +

This is a paragraph.

+ + +""" + +MOCK_CHARDET_RESULT = {"encoding": "utf-8", "confidence": 0.99} + + +@pytest.fixture +def mock_file_open(): + with patch( + "builtins.open", mock_open(read_data=MOCK_HTML_CONTENT), create=True + ) as mock_file: + yield mock_file + + +@pytest.fixture +def mock_chardet_detect(): + with patch("chardet.detect", return_value=MOCK_CHARDET_RESULT) as mock_detect: + yield mock_detect + + +def test_load_from_html(mock_file_open, mock_chardet_detect): + file_path = "test_document.html" + knowledge = HTMLKnowledge(file_path=file_path) + documents = knowledge._load() + + assert len(documents) == 1 + assert "This is a paragraph." in documents[0].content + assert documents[0].metadata["source"] == file_path + + mock_file_open.assert_called_once_with(file_path, "rb") + + mock_chardet_detect.assert_called_once() diff --git a/dbgpt/rag/knowledge/tests/test_markdown.py b/dbgpt/rag/knowledge/tests/test_markdown.py new file mode 100644 index 000000000..619055e10 --- /dev/null +++ b/dbgpt/rag/knowledge/tests/test_markdown.py @@ -0,0 +1,28 @@ +import pytest +from unittest.mock import mock_open, patch + +from dbgpt.rag.knowledge.markdown import MarkdownKnowledge + +MOCK_MARKDOWN_DATA = """# Header 1 +This is some text under header 1. + +## Header 2 +This is some text under header 2. +""" + + +@pytest.fixture +def mock_file_open(): + with patch("builtins.open", mock_open(read_data=MOCK_MARKDOWN_DATA)) as mock_file: + yield mock_file + + +# 定义测试函数 +def test_load_from_markdown(mock_file_open): + file_path = "test_document.md" + knowledge = MarkdownKnowledge(file_path=file_path) + documents = knowledge._load() + + assert len(documents) == 1 + assert documents[0].content == MOCK_MARKDOWN_DATA + assert documents[0].metadata["source"] == file_path diff --git a/dbgpt/rag/knowledge/tests/test_pdf.py b/dbgpt/rag/knowledge/tests/test_pdf.py new file mode 100644 index 000000000..a4b130246 --- /dev/null +++ b/dbgpt/rag/knowledge/tests/test_pdf.py @@ -0,0 +1,36 @@ +import pytest +from unittest.mock import MagicMock, patch, mock_open + +from dbgpt.rag.knowledge.pdf import PDFKnowledge + +MOCK_PDF_PAGES = [ + ("This is the content of the first page.", 0), + ("This is the content of the second page.", 1), +] + + +@pytest.fixture +def mock_pdf_open_and_reader(): + mock_pdf_file = mock_open() + mock_reader = MagicMock() + mock_reader.pages = [ + MagicMock(extract_text=MagicMock(return_value=page[0])) + for page in MOCK_PDF_PAGES + ] + with patch("builtins.open", mock_pdf_file): + with patch("pypdf.PdfReader", return_value=mock_reader) as mock: + yield mock + + +def test_load_from_pdf(mock_pdf_open_and_reader): + file_path = "test_document.pdf" + knowledge = PDFKnowledge(file_path=file_path) + documents = knowledge._load() + + assert len(documents) == len(MOCK_PDF_PAGES) + for i, document in enumerate(documents): + assert MOCK_PDF_PAGES[i][0] in document.content + assert document.metadata["source"] == file_path + assert document.metadata["page"] == MOCK_PDF_PAGES[i][1] + + # diff --git a/dbgpt/rag/knowledge/tests/test_txt.py b/dbgpt/rag/knowledge/tests/test_txt.py new file mode 100644 index 000000000..ecdb241de --- /dev/null +++ b/dbgpt/rag/knowledge/tests/test_txt.py @@ -0,0 +1,37 @@ +import pytest +from unittest.mock import mock_open, patch + +from dbgpt.rag.knowledge.txt import TXTKnowledge + +MOCK_TXT_CONTENT = b"Sample text content for testing.\nAnother line of text." + +MOCK_CHARDET_RESULT = {"encoding": "utf-8", "confidence": 0.99} + + +@pytest.fixture +def mock_file_open(): + with patch( + "builtins.open", mock_open(read_data=MOCK_TXT_CONTENT), create=True + ) as mock_file: + yield mock_file + + +@pytest.fixture +def mock_chardet_detect(): + with patch("chardet.detect", return_value=MOCK_CHARDET_RESULT) as mock_detect: + yield mock_detect + + +# 定义测试函数 +def test_load_from_txt(mock_file_open, mock_chardet_detect): + file_path = "test_document.txt" + knowledge = TXTKnowledge(file_path=file_path) + documents = knowledge._load() + + assert len(documents) == 1 + assert "Sample text content for testing." in documents[0].content + assert documents[0].metadata["source"] == file_path + + mock_file_open.assert_called_once_with(file_path, "rb") + + mock_chardet_detect.assert_called_once() diff --git a/dbgpt/rag/knowledge/txt.py b/dbgpt/rag/knowledge/txt.py new file mode 100644 index 000000000..57b3fcdd7 --- /dev/null +++ b/dbgpt/rag/knowledge/txt.py @@ -0,0 +1,68 @@ +from typing import Optional, Any, List + +import chardet + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import ( + Knowledge, + KnowledgeType, + ChunkStrategy, + DocumentType, +) + + +class TXTKnowledge(Knowledge): + """TXT Knowledge""" + + def __init__( + self, + file_path: Optional[str] = None, + knowledge_type: KnowledgeType = KnowledgeType.DOCUMENT, + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments. + Args: + file_path:(Optional[str]) file path + knowledge_type:(KnowledgeType) knowledge type + loader:(Optional[Any]) loader + """ + self._path = file_path + self._type = knowledge_type + self._loader = loader + + def _load(self) -> List[Document]: + """Load txt document from loader""" + if self._loader: + documents = self._loader.load() + else: + with open(self._path, "rb") as f: + raw_text = f.read() + result = chardet.detect(raw_text) + if result["encoding"] is None: + text = raw_text.decode("utf-8") + else: + text = raw_text.decode(result["encoding"]) + metadata = {"source": self._path} + return [Document(content=text, metadata=metadata)] + + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls): + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls) -> KnowledgeType: + return KnowledgeType.DOCUMENT + + @classmethod + def document_type(cls) -> DocumentType: + return DocumentType.TXT diff --git a/dbgpt/rag/knowledge/url.py b/dbgpt/rag/knowledge/url.py new file mode 100644 index 000000000..01b4e4a8e --- /dev/null +++ b/dbgpt/rag/knowledge/url.py @@ -0,0 +1,55 @@ +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Document +from dbgpt.rag.knowledge.base import KnowledgeType, Knowledge, ChunkStrategy + + +class URLKnowledge(Knowledge): + def __init__( + self, + url: Optional[str] = None, + knowledge_type: KnowledgeType = KnowledgeType.URL, + source_column: Optional[str] = None, + encoding: Optional[str] = "utf-8", + loader: Optional[Any] = None, + **kwargs: Any, + ) -> None: + """Initialize with Knowledge arguments. + Args: + url:(Optional[str]) url + knowledge_type:(KnowledgeType) knowledge type + source_column:(Optional[str]) source column + encoding:(Optional[str]) csv encoding + loader:(Optional[Any]) loader + """ + self._path = url + self._type = knowledge_type + self._loader = loader + self._encoding = encoding + self._source_column = source_column + + def _load(self) -> List[Document]: + """Fetch URL document from loader""" + if self._loader: + documents = self._loader.load() + else: + from langchain.document_loaders import WebBaseLoader + + web_reader = WebBaseLoader(web_path=self._path) + documents = web_reader.load() + return [Document.langchain2doc(lc_document) for lc_document in documents] + + @classmethod + def support_chunk_strategy(cls) -> List[ChunkStrategy]: + return [ + ChunkStrategy.CHUNK_BY_SIZE, + ChunkStrategy.CHUNK_BY_SEPARATOR, + ] + + @classmethod + def default_chunk_strategy(cls) -> ChunkStrategy: + return ChunkStrategy.CHUNK_BY_SIZE + + @classmethod + def type(cls): + return KnowledgeType.URL diff --git a/dbgpt/rag/retriever/base.py b/dbgpt/rag/retriever/base.py new file mode 100644 index 000000000..2af4ab99e --- /dev/null +++ b/dbgpt/rag/retriever/base.py @@ -0,0 +1,99 @@ +from abc import ABC, abstractmethod +from enum import Enum +from typing import List, Tuple +from dbgpt.rag.chunk import Chunk + + +class RetrieverStrategy(str, Enum): + """Retriever strategy. + Args: + - EMBEDDING: embedding retriever + - KEYWORD: keyword retriever + - HYBRID: hybrid retriever + """ + + EMBEDDING = "embedding" + KEYWORD = "keyword" + HYBRID = "hybrid" + + +class BaseRetriever(ABC): + """Base retriever.""" + + def retrieve(self, query: str) -> List[Chunk]: + """ + Args: + query (str): query text + Returns: + List[Chunk]: list of chunks + """ + return self._retrieve(query) + + async def aretrieve(self, query: str) -> List[Chunk]: + """ + Args: + query (str): async query text + Returns: + List[Chunk]: list of chunks + """ + return await self._aretrieve(query) + + def retrieve_with_scores(self, query: str, score_threshold: float) -> List[Chunk]: + """ + Args: + query (str): query text + score_threshold (float): score threshold + """ + return self._retrieve_with_score(query, score_threshold) + + async def aretrieve_with_scores( + self, query: str, score_threshold: float + ) -> List[Chunk]: + """ + Args: + query (str): query text + score_threshold (float): score threshold + Returns: + List[Chunk]: list of chunks + """ + return await self._aretrieve_with_score(query, score_threshold) + + @abstractmethod + def _retrieve(self, query: str) -> List[Chunk]: + """Retrieve knowledge chunks. + Args: + query (str): query text + Returns: + List[Chunk]: list of chunks + """ + + @abstractmethod + async def _aretrieve(self, query: str) -> List[Chunk]: + """Async Retrieve knowledge chunks. + Args: + query (str): query text + Returns: + List[Chunk]: list of chunks + """ + + @abstractmethod + def _retrieve_with_score(self, query: str, score_threshold: float) -> List[Chunk]: + """Retrieve knowledge chunks with score. + Args: + query (str): query text + score_threshold (float): score threshold + Returns: + List[Chunk]: list of chunks + """ + + @abstractmethod + async def _aretrieve_with_score( + self, query: str, score_threshold: float + ) -> List[Chunk]: + """Async Retrieve knowledge chunks with score. + Args: + query (str): query text + score_threshold (float): score threshold + Returns: + List[Chunk]: list of chunks + """ diff --git a/dbgpt/rag/retriever/db_struct.py b/dbgpt/rag/retriever/db_struct.py new file mode 100644 index 000000000..ad1c84e3f --- /dev/null +++ b/dbgpt/rag/retriever/db_struct.py @@ -0,0 +1,152 @@ +from functools import reduce +from typing import List, Optional + +from dbgpt.util.chat_util import run_async_tasks +from dbgpt.datasource.rdbms.base import RDBMSDatabase +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.retriever.base import BaseRetriever +from dbgpt.rag.retriever.rerank import Ranker, DefaultRanker +from dbgpt.storage.vector_store.connector import VectorStoreConnector + + +class DBStructRetriever(BaseRetriever): + """DBStruct retriever.""" + + def __init__( + self, + top_k: int = 4, + connection: Optional[RDBMSDatabase] = None, + is_embeddings: bool = True, + query_rewrite: bool = False, + rerank: Ranker = None, + vector_store_connector: Optional[VectorStoreConnector] = None, + **kwargs + ): + """ + Args: + top_k (int): top k + connection (Optional[RDBMSDatabase]): RDBMSDatabase connection. + is_embeddings (bool): Whether to query by embeddings in the vector store, Defaults to True. + query_rewrite (bool): query rewrite + rerank (Ranker): rerank + vector_store_connector (VectorStoreConnector): vector store connector + code example: + .. code-block:: python + >>> from dbgpt.datasource.rdbms.conn_sqlite import SQLiteTempConnect + >>> from dbgpt.serve.rag.assembler.db_struct import DBStructAssembler + >>> from dbgpt.storage.vector_store.connector import VectorStoreConnector + >>> from dbgpt.storage.vector_store.chroma_store import ChromaVectorConfig + >>> from dbgpt.rag.retriever.embedding import EmbeddingRetriever + + def _create_temporary_connection(): + connect = SQLiteTempConnect.create_temporary_db() + connect.create_temp_tables( + { + "user": { + "columns": { + "id": "INTEGER PRIMARY KEY", + "name": "TEXT", + "age": "INTEGER", + }, + "data": [ + (1, "Tom", 10), + (2, "Jerry", 16), + (3, "Jack", 18), + (4, "Alice", 20), + (5, "Bob", 22), + ], + } + } + ) + return connect + connection = _create_temporary_connection() + vector_store_config = ChromaVectorConfig(name="vector_store_name") + embedding_model_path = "{your_embedding_model_path}" + embedding_fn = embedding_factory.create( + model_name=embedding_model_path + ) + vector_connector = VectorStoreConnector.from_default( + "Chroma", + vector_store_config=vector_store_config, + embedding_fn=embedding_fn + ) + # get db struct retriever + retriever = DBStructRetriever(top_k=3, vector_store_connector=vector_connector) + chunks = retriever.retrieve("show columns from table") + print(f"db struct rag example results:{[chunk.content for chunk in chunks]}") + """ + + self._top_k = top_k + self._is_embeddings = is_embeddings + self._connection = connection + self._query_rewrite = query_rewrite + self._vector_store_connector = vector_store_connector + self._rerank = rerank or DefaultRanker(self._top_k) + + def _retrieve(self, query: str) -> List[Chunk]: + """Retrieve knowledge chunks. + Args: + query (str): query text + """ + if self._is_embeddings: + queries = [query] + candidates = [ + self._vector_store_connector.similar_search(query, self._top_k) + for query in queries + ] + candidates = reduce(lambda x, y: x + y, candidates) + return candidates + else: + from dbgpt.rag.summary.rdbms_db_summary import _parse_db_summary + + table_summaries = _parse_db_summary(self._connection) + return [Chunk(content=table_summary) for table_summary in table_summaries] + + def _retrieve_with_score(self, query: str, score_threshold: float) -> List[Chunk]: + """Retrieve knowledge chunks with score. + Args: + query (str): query text + score_threshold (float): score threshold + """ + return self._retrieve(query) + + async def _aretrieve(self, query: str) -> List[Chunk]: + """Retrieve knowledge chunks. + Args: + query (str): query text + """ + if self._is_embeddings: + queries = [query] + candidates = [self._similarity_search(query) for query in queries] + candidates = await run_async_tasks(tasks=candidates, concurrency_limit=1) + return candidates + else: + from dbgpt.rag.summary.rdbms_db_summary import _parse_db_summary + + table_summaries = await run_async_tasks( + tasks=[self._aparse_db_summary()], concurrency_limit=1 + ) + return [Chunk(content=table_summary) for table_summary in table_summaries] + + async def _aretrieve_with_score( + self, query: str, score_threshold: float + ) -> List[Chunk]: + """Retrieve knowledge chunks with score. + Args: + query (str): query text + score_threshold (float): score threshold + """ + return await self._aretrieve(query) + + async def _similarity_search(self, query) -> List[Chunk]: + """Similar search.""" + return self._vector_store_connector.similar_search( + query, + self._top_k, + ) + + async def _aparse_db_summary(self) -> List[Chunk]: + """Similar search.""" + from dbgpt.rag.summary.rdbms_db_summary import _parse_db_summary + + return _parse_db_summary() diff --git a/dbgpt/rag/retriever/embedding.py b/dbgpt/rag/retriever/embedding.py new file mode 100644 index 000000000..48b738d22 --- /dev/null +++ b/dbgpt/rag/retriever/embedding.py @@ -0,0 +1,146 @@ +from functools import reduce +from typing import List, Optional + +from dbgpt.rag.retriever.rewrite import QueryRewrite +from dbgpt.util.chat_util import run_async_tasks +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.retriever.base import BaseRetriever +from dbgpt.rag.retriever.rerank import Ranker, DefaultRanker +from dbgpt.storage.vector_store.connector import VectorStoreConnector + + +class EmbeddingRetriever(BaseRetriever): + """Embedding retriever.""" + + def __init__( + self, + top_k: int = 4, + query_rewrite: Optional[QueryRewrite] = None, + rerank: Ranker = None, + vector_store_connector: VectorStoreConnector = None, + ): + """ + Args: + top_k (int): top k + query_rewrite (Optional[QueryRewrite]): query rewrite + rerank (Ranker): rerank + vector_store_connector (VectorStoreConnector): vector store connector + code example: + .. code-block:: python + >>> from dbgpt.storage.vector_store.connector import VectorStoreConnector + >>> from dbgpt.storage.vector_store.chroma_store import ChromaVectorConfig + >>> from dbgpt.rag.retriever.embedding import EmbeddingRetriever + >>> from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory + + embedding_factory = DefaultEmbeddingFactory() + from dbgpt.rag.retriever.embedding import EmbeddingRetriever + from dbgpt.storage.vector_store.connector import VectorStoreConnector + + embedding_fn = embedding_factory.create( + model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL] + ) + vector_name = "test" + config = ChromaVectorConfig(name=vector_name, embedding_fn=embedding_fn) + vector_store_connector = VectorStoreConnector( + vector_store_type=""Chroma"", + vector_store_config=config, + ) + embedding_retriever = EmbeddingRetriever( + top_k=3, vector_store_connector=vector_store_connector + ) + chunks = embedding_retriever.retrieve("your query text") + print(f"embedding retriever results:{[chunk.content for chunk in chunks]}") + """ + self._top_k = top_k + self._query_rewrite = query_rewrite + self._vector_store_connector = vector_store_connector + self._rerank = rerank or DefaultRanker(self._top_k) + + def _retrieve(self, query: str) -> List[Chunk]: + """Retrieve knowledge chunks. + Args: + query (str): query text + Return: + List[Chunk]: list of chunks + """ + queries = [query] + candidates = [ + self._vector_store_connector.similar_search(query, self._top_k) + for query in queries + ] + candidates = reduce(lambda x, y: x + y, candidates) + return candidates + + def _retrieve_with_score(self, query: str, score_threshold: float) -> List[Chunk]: + """Retrieve knowledge chunks with score. + Args: + query (str): query text + score_threshold (float): score threshold + Return: + List[Chunk]: list of chunks with score + """ + queries = [query] + candidates_with_score = [ + self._vector_store_connector.similar_search_with_scores( + query, self._top_k, score_threshold + ) + for query in queries + ] + candidates_with_score = reduce(lambda x, y: x + y, candidates_with_score) + candidates_with_score = self._rerank.rank(candidates_with_score) + return candidates_with_score + + async def _aretrieve(self, query: str) -> List[Chunk]: + """Retrieve knowledge chunks. + Args: + query (str): query text + Return: + List[Chunk]: list of chunks + """ + queries = [query] + if self._query_rewrite: + new_queries = await self._query_rewrite.rewrite(origin_query=query, nums=1) + queries.extend(new_queries) + candidates = [self._similarity_search(query) for query in queries] + candidates = await run_async_tasks(tasks=candidates, concurrency_limit=1) + return candidates + + async def _aretrieve_with_score( + self, query: str, score_threshold: float + ) -> List[Chunk]: + """Retrieve knowledge chunks with score. + Args: + query (str): query text + score_threshold (float): score threshold + Return: + List[Chunk]: list of chunks with score + """ + queries = [query] + if self._query_rewrite: + new_queries = await self._query_rewrite.rewrite(origin_query=query, nums=1) + queries.extend(new_queries) + candidates_with_score = [ + self._similarity_search_with_score(query, score_threshold) + for query in queries + ] + candidates_with_score = await run_async_tasks( + tasks=candidates_with_score, concurrency_limit=1 + ) + candidates_with_score = reduce(lambda x, y: x + y, candidates_with_score) + candidates_with_score = self._rerank.rank(candidates_with_score) + return candidates_with_score + + async def _similarity_search(self, query) -> List[Chunk]: + """Similar search.""" + return self._vector_store_connector.similar_search( + query, + self._top_k, + ) + + async def _similarity_search_with_score( + self, query, score_threshold + ) -> List[Chunk]: + """Similar search with score.""" + return self._vector_store_connector.similar_search_with_scores( + query, self._top_k, score_threshold + ) diff --git a/dbgpt/rag/retriever/reinforce.py b/dbgpt/rag/retriever/reinforce.py deleted file mode 100644 index 7296b95a9..000000000 --- a/dbgpt/rag/retriever/reinforce.py +++ /dev/null @@ -1,53 +0,0 @@ -from typing import List - -from dbgpt.app.scene import ChatScene -from dbgpt.app.scene import BaseChat - - -class QueryReinforce: - """ - query reinforce, include query rewrite, query correct - """ - - def __init__( - self, query: str = None, model_name: str = None, llm_chat: BaseChat = None - ): - """query reinforce - Args: - - query: str, user query - - model_name: str, llm model name - """ - self.query = query - self.model_name = model_name - self.llm_chat = llm_chat - - async def rewrite(self) -> List[str]: - """query rewrite""" - from dbgpt._private.chat_util import llm_chat_response_nostream - import uuid - - chat_param = { - "chat_session_id": uuid.uuid1(), - "current_user_input": self.query, - "select_param": 2, - "model_name": self.model_name, - "model_cache_enable": False, - } - tasks = [ - llm_chat_response_nostream( - ChatScene.QueryRewrite.value(), **{"chat_param": chat_param} - ) - ] - from dbgpt._private.chat_util import run_async_tasks - - queries = await run_async_tasks(tasks=tasks, concurrency_limit=1) - queries = list( - filter( - lambda content: "LLMServer Generate Error" not in content, - queries, - ) - ) - return queries[0] - - def correct(self) -> List[str]: - pass diff --git a/dbgpt/rag/retriever/rerank.py b/dbgpt/rag/retriever/rerank.py index dd48be82b..a2a97f4dd 100644 --- a/dbgpt/rag/retriever/rerank.py +++ b/dbgpt/rag/retriever/rerank.py @@ -1,11 +1,13 @@ from abc import ABC -from typing import List, Tuple, Optional +from typing import List, Optional + +from dbgpt.rag.chunk import Chunk class Ranker(ABC): """Base Ranker""" - def __init__(self, topk: int, rank_fn: Optional[callable] = None): + def __init__(self, topk: int, rank_fn: Optional[callable] = None) -> None: """ abstract base ranker Args: @@ -15,7 +17,7 @@ def __init__(self, topk: int, rank_fn: Optional[callable] = None): self.topk = topk self.rank_fn = rank_fn - def rank(self, candidates_with_scores: List, topk: int): + def rank(self, candidates_with_scores: List) -> List[Chunk]: """rank algorithm implementation return topk documents by candidates similarity score Args: candidates_with_scores: List[Tuple] @@ -26,17 +28,17 @@ def rank(self, candidates_with_scores: List, topk: int): pass - def _filter(self, candidates_with_scores: List): + def _filter(self, candidates_with_scores: List) -> List[Chunk]: """filter duplicate candidates documents""" candidates_with_scores = sorted( - candidates_with_scores, key=lambda x: x[1], reverse=True + candidates_with_scores, key=lambda x: x.score, reverse=True ) visited_docs = set() new_candidates = [] - for candidate_doc, score in candidates_with_scores: - if candidate_doc.page_content not in visited_docs: - new_candidates.append((candidate_doc, score)) - visited_docs.add(candidate_doc.page_content) + for candidate_chunk in candidates_with_scores: + if candidate_chunk.content not in visited_docs: + new_candidates.append(candidate_chunk) + visited_docs.add(candidate_chunk.content) return new_candidates @@ -46,7 +48,7 @@ class DefaultRanker(Ranker): def __init__(self, topk: int, rank_fn: Optional[callable] = None): super().__init__(topk, rank_fn) - def rank(self, candidates_with_scores: List[Tuple]): + def rank(self, candidates_with_scores: List[Chunk]) -> List[Chunk]: """Default rank algorithm implementation return topk documents by candidates similarity score Args: @@ -59,11 +61,9 @@ def rank(self, candidates_with_scores: List[Tuple]): candidates_with_scores = self.rank_fn(candidates_with_scores) else: candidates_with_scores = sorted( - candidates_with_scores, key=lambda x: x[1], reverse=True + candidates_with_scores, key=lambda x: x.score, reverse=True ) - return [ - (candidate_doc, score) for candidate_doc, score in candidates_with_scores - ][: self.topk] + return candidates_with_scores[: self.topk] class RRFRanker(Ranker): @@ -72,7 +72,7 @@ class RRFRanker(Ranker): def __init__(self, topk: int, rank_fn: Optional[callable] = None): super().__init__(topk, rank_fn) - def rank(self, candidates_with_scores: List): + def rank(self, candidates_with_scores: List[Chunk]) -> List[Chunk]: """RRF rank algorithm implementation This code implements an algorithm called Reciprocal Rank Fusion (RRF), is a method for combining multiple result sets with different relevance indicators into a single result set. RRF requires no tuning, and the different relevance indicators do not have to be related to each other to achieve high-quality results. RRF uses the following formula to determine the score for ranking each document: diff --git a/dbgpt/rag/retriever/rewrite.py b/dbgpt/rag/retriever/rewrite.py new file mode 100644 index 000000000..fdee0046e --- /dev/null +++ b/dbgpt/rag/retriever/rewrite.py @@ -0,0 +1,103 @@ +from typing import List, Optional +from dbgpt.core import LLMClient, ModelMessage, ModelRequest, ModelMessageRoleType + +REWRITE_PROMPT_TEMPLATE_EN = """ +Generate {nums} search queries related to: {original_query}, Provide following comma-separated format: 'queries: '\n": + "original query:: {original_query}\n" + "queries:\n" +""" + +REWRITE_PROMPT_TEMPLATE_ZH = """请根据原问题优化生成{nums}个相关的搜索查询,这些查询应与原始查询相似并且是人们可能会提出的可回答的搜索问题。请勿使用任何示例中提到的内容,确保所有生成的查询均独立于示例,仅基于提供的原始查询。请按照以下逗号分隔的格式提供: 'queries:': +"original_query:{original_query}\n" +"queries:\n" +""" + + +class QueryRewrite: + """ + query reinforce, include query rewrite, query correct + """ + + def __init__( + self, + model_name: str = None, + llm_client: Optional[LLMClient] = None, + language: Optional[str] = "en", + ) -> None: + """query rewrite + Args: + - query: (str), user query + - model_name: (str), llm model name + - llm_client: (Optional[LLMClient]) + """ + self._model_name = model_name + self._llm_client = llm_client + self._language = language + self._prompt_template = ( + REWRITE_PROMPT_TEMPLATE_EN + if language == "en" + else REWRITE_PROMPT_TEMPLATE_ZH + ) + + async def rewrite(self, origin_query: str, nums: Optional[int] = 1) -> List[str]: + """query rewrite + Args: + origin_query: str original query + nums: Optional[int] rewrite nums + Returns: + queries: List[str] + """ + from dbgpt.util.chat_util import run_async_tasks + + prompt = self._prompt_template.format(original_query=origin_query, nums=nums) + messages = [ModelMessage(role=ModelMessageRoleType.SYSTEM, content=prompt)] + request = ModelRequest(model=self._model_name, messages=messages) + tasks = [self._llm_client.generate(request)] + queries = await run_async_tasks(tasks=tasks, concurrency_limit=1) + queries = [model_out.text for model_out in queries] + queries = list( + filter( + lambda content: "LLMServer Generate Error" not in content, + queries, + ) + ) + print("rewrite queries:", queries) + return self._parse_llm_output(output=queries[0]) + + def correct(self) -> List[str]: + pass + + def _parse_llm_output(self, output: str) -> List[str]: + """parse llm output + Args: + output: str + Returns: + output: List[str] + """ + lowercase = True + try: + results = [] + response = output.strip() + + if response.startswith("queries:"): + response = response[len("queries:") :] + + queries = response.split(",") + if len(queries) == 1: + queries = response.split(",") + if len(queries) == 1: + queries = response.split("?") + if len(queries) == 1: + queries = response.split("?") + for k in queries: + rk = k + if lowercase: + rk = rk.lower() + s = rk.strip() + if s == "": + continue + results.append(s) + except Exception as e: + print(f"parse query rewrite prompt_response error: {e}") + return [] + return results diff --git a/dbgpt/rag/retriever/tests/__init__.py b/dbgpt/rag/retriever/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/rag/retriever/tests/test_db_struct.py b/dbgpt/rag/retriever/tests/test_db_struct.py new file mode 100644 index 000000000..0596c15fe --- /dev/null +++ b/dbgpt/rag/retriever/tests/test_db_struct.py @@ -0,0 +1,49 @@ +import pytest +from unittest.mock import MagicMock, patch, AsyncMock +from typing import List + +import dbgpt +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.retriever.db_struct import DBStructRetriever +from dbgpt.rag.summary.rdbms_db_summary import _parse_db_summary + + +@pytest.fixture +def mock_db_connection(): + return MagicMock() + + +@pytest.fixture +def mock_vector_store_connector(): + mock_connector = MagicMock() + mock_connector.similar_search.return_value = [Chunk(content="Table summary")] * 4 + return mock_connector + + +@pytest.fixture +def dbstruct_retriever(mock_db_connection, mock_vector_store_connector): + return DBStructRetriever( + connection=mock_db_connection, + vector_store_connector=mock_vector_store_connector, + ) + + +def mock_parse_db_summary() -> str: + """Patch _parse_db_summary method.""" + return "Table summary" + + +# Mocking the _parse_db_summary method in your test function +@patch.object( + dbgpt.rag.summary.rdbms_db_summary, "_parse_db_summary", mock_parse_db_summary +) +def test_retrieve_with_mocked_summary(dbstruct_retriever): + query = "Table summary" + chunks: List[Chunk] = dbstruct_retriever._retrieve(query) + assert isinstance(chunks[0], Chunk) + assert chunks[0].content == "Table summary" + + +async def async_mock_parse_db_summary() -> str: + """Asynchronous patch for _parse_db_summary method.""" + return "Table summary" diff --git a/dbgpt/rag/retriever/tests/test_embedding.py b/dbgpt/rag/retriever/tests/test_embedding.py new file mode 100644 index 000000000..9d8bc7be1 --- /dev/null +++ b/dbgpt/rag/retriever/tests/test_embedding.py @@ -0,0 +1,39 @@ +from unittest.mock import MagicMock +import pytest + +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.retriever.embedding import EmbeddingRetriever + + +@pytest.fixture +def top_k(): + return 4 + + +@pytest.fixture +def query(): + return "test query" + + +@pytest.fixture +def mock_vector_store_connector(): + return MagicMock() + + +@pytest.fixture +def embedding_retriever(top_k, mock_vector_store_connector): + return EmbeddingRetriever( + top_k=top_k, + query_rewrite=False, + vector_store_connector=mock_vector_store_connector, + ) + + +def test_retrieve(query, top_k, mock_vector_store_connector, embedding_retriever): + expected_chunks = [Chunk() for _ in range(top_k)] + mock_vector_store_connector.similar_search.return_value = expected_chunks + + retrieved_chunks = embedding_retriever._retrieve(query) + + mock_vector_store_connector.similar_search.assert_called_once_with(query, top_k) + assert len(retrieved_chunks) == top_k diff --git a/dbgpt/rag/summary/db_summary_client.py b/dbgpt/rag/summary/db_summary_client.py index affb08c60..a58beed51 100644 --- a/dbgpt/rag/summary/db_summary_client.py +++ b/dbgpt/rag/summary/db_summary_client.py @@ -23,41 +23,43 @@ class DBSummaryClient: def __init__(self, system_app: SystemApp): self.system_app = system_app + from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory - def db_summary_embedding(self, dbname, db_type): - """put db profile and table profile summary into vector store""" - from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory - - db_summary_client = RdbmsSummary(dbname, db_type) embedding_factory = self.system_app.get_component( "embedding_factory", EmbeddingFactory ) - embeddings = embedding_factory.create( + self.embeddings = embedding_factory.create( model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL] ) - self.init_db_profile(db_summary_client, dbname, embeddings) + + def db_summary_embedding(self, dbname, db_type): + """put db profile and table profile summary into vector store""" + + db_summary_client = RdbmsSummary(dbname, db_type) + + self.init_db_profile(db_summary_client, dbname) logger.info("db summary embedding success") def get_db_summary(self, dbname, query, topk): """get user query related tables info""" - from dbgpt.rag.embedding_engine.embedding_engine import EmbeddingEngine - from dbgpt.rag.embedding_engine.embedding_factory import EmbeddingFactory - - vector_store_config = { - "vector_store_name": dbname + "_profile", - "vector_store_type": CFG.VECTOR_STORE_TYPE, - } - embedding_factory = CFG.SYSTEM_APP.get_component( - "embedding_factory", EmbeddingFactory - ) - knowledge_embedding_client = EmbeddingEngine( - model_name=EMBEDDING_MODEL_CONFIG[CFG.EMBEDDING_MODEL], + + from dbgpt.storage.vector_store.connector import VectorStoreConnector + from dbgpt.storage.vector_store.base import VectorStoreConfig + + vector_store_config = VectorStoreConfig(name=dbname + "_profile") + vector_connector = VectorStoreConnector.from_default( + CFG.VECTOR_STORE_TYPE, + embedding_fn=self.embeddings, vector_store_config=vector_store_config, - embedding_factory=embedding_factory, ) - table_docs = knowledge_embedding_client.similar_search(query, topk) - ans = [d.page_content for d in table_docs] + from dbgpt.rag.retriever.db_struct import DBStructRetriever + + retriever = DBStructRetriever( + top_k=topk, vector_store_connector=vector_connector + ) + table_docs = retriever.retrieve(query) + ans = [d.content for d in table_docs] return ans def init_db_summary(self): @@ -73,41 +75,30 @@ def init_db_summary(self): f'{item["db_name"]}, {item["db_type"]} summary error!{str(e)}, detail: {message}' ) - def init_db_profile(self, db_summary_client, dbname, embeddings): + def init_db_profile(self, db_summary_client, dbname): """db profile initialization Args: db_summary_client(DBSummaryClient): DB Summary Client dbname(str): dbname - embeddings(SourceEmbedding): embedding for read string document """ - from dbgpt.rag.embedding_engine.string_embedding import StringEmbedding - vector_store_name = dbname + "_profile" - profile_store_config = { - "vector_store_name": vector_store_name, - "vector_store_type": CFG.VECTOR_STORE_TYPE, - "embeddings": embeddings, - } - embedding = StringEmbedding( - file_path=None, - vector_store_config=profile_store_config, - ) - if not embedding.vector_name_exist(): - docs = [] - for table_summary in db_summary_client.table_summaries(): - from langchain.text_splitter import RecursiveCharacterTextSplitter + from dbgpt.storage.vector_store.connector import VectorStoreConnector + from dbgpt.storage.vector_store.base import VectorStoreConfig - text_splitter = RecursiveCharacterTextSplitter( - chunk_size=len(table_summary), chunk_overlap=0 - ) - embedding = StringEmbedding( - file_path=table_summary, - vector_store_config=profile_store_config, - text_splitter=text_splitter, - ) - docs.extend(embedding.read_batch()) - if len(docs) > 0: - embedding.index_to_store(docs) + vector_store_config = VectorStoreConfig(name=vector_store_name) + vector_connector = VectorStoreConnector.from_default( + CFG.VECTOR_STORE_TYPE, + self.embeddings, + vector_store_config=vector_store_config, + ) + if not vector_connector.vector_name_exists(): + from dbgpt.serve.rag.assembler.db_struct import DBStructAssembler + + db_assembler = DBStructAssembler.load_from_connection( + connection=db_summary_client.db, vector_store_connector=vector_connector + ) + if len(db_assembler.get_chunks()) > 0: + db_assembler.persist() else: logger.info(f"Vector store name {vector_store_name} exist") logger.info("initialize db summary profile success...") diff --git a/dbgpt/rag/summary/tests/__init__.py b/dbgpt/rag/summary/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/rag/summary/tests/test_rdbms_summary.py b/dbgpt/rag/summary/tests/test_rdbms_summary.py new file mode 100644 index 000000000..1ccc8aac2 --- /dev/null +++ b/dbgpt/rag/summary/tests/test_rdbms_summary.py @@ -0,0 +1,68 @@ +import unittest +from unittest.mock import Mock, patch + +from dbgpt.rag.summary.rdbms_db_summary import RdbmsSummary + + +class MockRDBMSDatabase(object): + def get_users(self): + return "user1, user2" + + def get_grants(self): + return "grant1, grant2" + + def get_charset(self): + return "utf8" + + def get_collation(self): + return "utf8_general_ci" + + def get_table_names(self): + return ["table1", "table2"] + + def get_columns(self, table_name): + if table_name == "table1": + return [{"name": "column1", "comment": "first column"}, {"name": "column2"}] + return [{"name": "column1"}] + + def get_indexes(self, table_name): + return [{"name": "index1", "column_names": ["column1"]}] + + def get_table_comment(self, table_name): + return {"text": f"{table_name} comment"} + + +class TestRdbmsSummary(unittest.TestCase): + def setUp(self): + self.mock_local_db_manage = Mock() + self.mock_local_db_manage.get_connect.return_value = MockRDBMSDatabase() + self.patcher = patch( + "dbgpt.rag.summary.rdbms_db_summary.CFG.LOCAL_DB_MANAGE", + new=self.mock_local_db_manage, + ) + self.patcher.start() + + def test_rdbms_summary_initialization(self): + rdbms_summary = RdbmsSummary(name="test_db", type="test_type") + self.assertEqual(rdbms_summary.name, "test_db") + self.assertEqual(rdbms_summary.type, "test_type") + self.assertTrue("user info :user1, user2" in rdbms_summary.metadata) + self.assertTrue("grant info:grant1, grant2" in rdbms_summary.metadata) + self.assertTrue("charset:utf8" in rdbms_summary.metadata) + self.assertTrue("collation:utf8_general_ci" in rdbms_summary.metadata) + + def test_table_summaries(self): + rdbms_summary = RdbmsSummary(name="test_db", type="test_type") + summaries = rdbms_summary.table_summaries() + self.assertTrue( + "table1(column1 (first column), column2), and index keys: index1(`column1`) , and table comment: table1 comment" + in summaries + ) + self.assertTrue( + "table2(column1), and index keys: index1(`column1`) , and table comment: table2 comment" + in summaries + ) + + +if __name__ == "__main__": + unittest.main() diff --git a/dbgpt/rag/text_splitter/__init__.py b/dbgpt/rag/text_splitter/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/rag/embedding_engine/pre_text_splitter.py b/dbgpt/rag/text_splitter/pre_text_splitter.py similarity index 51% rename from dbgpt/rag/embedding_engine/pre_text_splitter.py rename to dbgpt/rag/text_splitter/pre_text_splitter.py index cf7cdfdf5..65aa54d86 100644 --- a/dbgpt/rag/embedding_engine/pre_text_splitter.py +++ b/dbgpt/rag/text_splitter/pre_text_splitter.py @@ -1,28 +1,39 @@ from typing import Iterable, List -from langchain.schema import Document -from langchain.text_splitter import TextSplitter + +from dbgpt.rag.chunk import Document, Chunk +from dbgpt.rag.text_splitter.text_splitter import TextSplitter def _single_document_split( document: Document, pre_separator: str ) -> Iterable[Document]: - page_content = document.page_content - for i, content in enumerate(page_content.split(pre_separator)): + content = document.content + for i, content in enumerate(content.split(pre_separator)): metadata = document.metadata.copy() if "source" in metadata: metadata["source"] = metadata["source"] + "_pre_split_" + str(i) - yield Document(page_content=content, metadata=metadata) + yield Chunk(content=content, metadata=metadata) class PreTextSplitter(TextSplitter): + """Split text by pre separator""" + def __init__(self, pre_separator: str, text_splitter_impl: TextSplitter): + """Initialize with Knowledge arguments. + Args: + pre_separator: pre separator + text_splitter_impl: text splitter impl + """ self.pre_separator = pre_separator self._impl = text_splitter_impl - def split_text(self, text: str) -> List[str]: + def split_text(self, text: str, **kwargs) -> List[str]: + """Split text by pre separator""" return self._impl.split_text(text) - def split_documents(self, documents: Iterable[Document]) -> List[Document]: + def split_documents(self, documents: Iterable[Document], **kwargs) -> List[Chunk]: + """Split documents by pre separator""" + def generator() -> Iterable[Document]: for doc in documents: yield from _single_document_split(doc, pre_separator=self.pre_separator) diff --git a/dbgpt/rag/text_splitter/tests/__init__.py b/dbgpt/rag/text_splitter/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/rag/text_splitter/tests/test_splitters.py b/dbgpt/rag/text_splitter/tests/test_splitters.py new file mode 100644 index 000000000..3d3ebb764 --- /dev/null +++ b/dbgpt/rag/text_splitter/tests/test_splitters.py @@ -0,0 +1,65 @@ +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.text_splitter.text_splitter import ( + CharacterTextSplitter, + MarkdownHeaderTextSplitter, +) + + +def test_md_header_text_splitter() -> None: + """unit test markdown splitter by header""" + + markdown_document = ( + "# dbgpt\n\n" + " ## description\n\n" + "my name is dbgpt\n\n" + " ## content\n\n" + "my name is aries" + ) + headers_to_split_on = [ + ("#", "Header 1"), + ("##", "Header 2"), + ] + markdown_splitter = MarkdownHeaderTextSplitter( + headers_to_split_on=headers_to_split_on, + ) + output = markdown_splitter.split_text(markdown_document) + expected_output = [ + Chunk( + content="{'Header 1': 'dbgpt', 'Header 2': 'description'}, my name is dbgpt", + metadata={"Header 1": "dbgpt", "Header 2": "description"}, + ), + Chunk( + content="{'Header 1': 'dbgpt', 'Header 2': 'content'}, my name is aries", + metadata={"Header 1": "dbgpt", "Header 2": "content"}, + ), + ] + assert [output.content for output in output] == [ + output.content for output in expected_output + ] + + +def test_merge_splits() -> None: + """Test merging splits with a given separator.""" + splitter = CharacterTextSplitter(separator=" ", chunk_size=9, chunk_overlap=2) + splits = ["foo", "bar", "baz"] + expected_output = ["foo bar", "baz"] + output = splitter._merge_splits(splits, separator=" ") + assert output == expected_output + + +def test_character_text_splitter() -> None: + """Test splitting by character count.""" + text = "foo bar baz 123" + splitter = CharacterTextSplitter(separator=" ", chunk_size=7, chunk_overlap=3) + output = splitter.split_text(text) + expected_output = ["foo bar", "bar baz", "baz 123"] + assert output == expected_output + + +def test_character_text_splitter_empty_doc() -> None: + """Test splitting by character count doesn't create empty documents.""" + text = "db gpt" + splitter = CharacterTextSplitter(separator=" ", chunk_size=2, chunk_overlap=0) + output = splitter.split_text(text) + expected_output = ["db", "gpt"] + assert output == expected_output diff --git a/dbgpt/rag/text_splitter/text_splitter.py b/dbgpt/rag/text_splitter/text_splitter.py new file mode 100644 index 000000000..201fc6e59 --- /dev/null +++ b/dbgpt/rag/text_splitter/text_splitter.py @@ -0,0 +1,730 @@ +import copy +import logging +import re +from abc import abstractmethod, ABC +from typing import ( + Any, + Callable, + Dict, + Iterable, + List, + Optional, + Tuple, + TypedDict, + Union, +) + +from dbgpt.rag.chunk import Document, Chunk + +logger = logging.getLogger(__name__) + + +class TextSplitter(ABC): + """Interface for splitting text into chunks. + Refer to https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/text_splitter.py + """ + + outgoing_edges = 1 + + def __init__( + self, + chunk_size: int = 4000, + chunk_overlap: int = 200, + length_function: Callable[[str], int] = len, + filters: list = [], + separator: str = "", + ): + """Create a new TextSplitter.""" + if chunk_overlap > chunk_size: + raise ValueError( + f"Got a larger chunk overlap ({chunk_overlap}) than chunk size " + f"({chunk_size}), should be smaller." + ) + self._chunk_size = chunk_size + self._chunk_overlap = chunk_overlap + self._length_function = length_function + self._filter = filters + self._separator = separator + + @abstractmethod + def split_text(self, text: str, **kwargs) -> List[str]: + """Split text into multiple components.""" + + def create_documents( + self, + texts: List[str], + metadatas: Optional[List[dict]] = None, + separator: Optional[str] = None, + **kwargs, + ) -> List[Chunk]: + """Create documents from a list of texts.""" + _metadatas = metadatas or [{}] * len(texts) + chunks = [] + for i, text in enumerate(texts): + for chunk in self.split_text(text, separator, **kwargs): + new_doc = Chunk(content=chunk, metadata=copy.deepcopy(_metadatas[i])) + chunks.append(new_doc) + return chunks + + def split_documents(self, documents: List[Document], **kwargs) -> List[Chunk]: + """Split documents.""" + texts = [doc.content for doc in documents] + metadatas = [doc.metadata for doc in documents] + return self.create_documents(texts, metadatas, **kwargs) + + def _join_docs(self, docs: List[str], separator: str, **kwargs) -> Optional[str]: + text = separator.join(docs) + text = text.strip() + if text == "": + return None + else: + return text + + def _merge_splits( + self, + splits: Iterable[str], + separator: str, + chunk_size: Optional[int] = None, + chunk_overlap: Optional[int] = None, + ) -> List[str]: + # We now want to combine these smaller pieces into medium size + # chunks to send to the LLM. + if chunk_size is None: + chunk_size = self._chunk_size + if chunk_overlap is None: + chunk_overlap = self._chunk_overlap + if separator is None: + separator = self._separator + separator_len = self._length_function(separator) + + docs = [] + current_doc: List[str] = [] + total = 0 + for d in splits: + _len = self._length_function(d) + if ( + total + _len + (separator_len if len(current_doc) > 0 else 0) + > chunk_size + ): + if total > chunk_size: + logger.warning( + f"Created a chunk of size {total}, " + f"which is longer than the specified {chunk_size}" + ) + if len(current_doc) > 0: + doc = self._join_docs(current_doc, separator) + if doc is not None: + docs.append(doc) + # Keep on popping if: + # - we have a larger chunk than in the chunk overlap + # - or if we still have any chunks and the length is long + while total > chunk_overlap or ( + total + _len + (separator_len if len(current_doc) > 0 else 0) + > chunk_size + and total > 0 + ): + total -= self._length_function(current_doc[0]) + ( + separator_len if len(current_doc) > 1 else 0 + ) + current_doc = current_doc[1:] + current_doc.append(d) + total += _len + (separator_len if len(current_doc) > 1 else 0) + doc = self._join_docs(current_doc, separator) + if doc is not None: + docs.append(doc) + return docs + + def clean(self, documents: List[dict], filters: List[str]): + for special_character in filters: + for doc in documents: + doc["content"] = doc["content"].replace(special_character, "") + return documents + + def run( # type: ignore + self, + documents: Union[dict, List[dict]], + meta: Optional[Union[Dict[str, str], List[Dict[str, str]]]] = None, # type: ignore + separator: Optional[str] = None, + chunk_size: Optional[int] = None, + chunk_overlap: Optional[int] = None, + filters: Optional[List[str]] = None, + ): + if separator is None: + separator = self._separator + if chunk_size is None: + chunk_size = self._chunk_size + if chunk_overlap is None: + chunk_overlap = self._chunk_overlap + if filters is None: + filters = self._filter + ret = [] + if type(documents) == dict: # single document + text_splits = self.split_text( + documents["content"], + separator=separator, + chunk_size=chunk_size, + chunk_overlap=chunk_overlap, + ) + for i, txt in enumerate(text_splits): + doc = copy.deepcopy(documents) + doc["content"] = txt + + if "meta" not in doc.keys() or doc["meta"] is None: + doc["meta"] = {} + + doc["meta"]["_split_id"] = i + ret.append(doc) + + elif type(documents) == list: # list document + for document in documents: + text_splits = self.split_text( + document["content"], + separator=separator, + chunk_size=chunk_size, + chunk_overlap=chunk_overlap, + ) + for i, txt in enumerate(text_splits): + doc = copy.deepcopy(document) + doc["content"] = txt + + if "meta" not in doc.keys() or doc["meta"] is None: + doc["meta"] = {} + + doc["meta"]["_split_id"] = i + ret.append(doc) + if filters is not None and len(filters) > 0: + ret = self.clean(ret, filters) + result = {"documents": ret} + return result, "output_1" + + +class CharacterTextSplitter(TextSplitter): + """Implementation of splitting text that looks at characters. + Refer to https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/text_splitter.py + """ + + def __init__(self, separator: str = "\n\n", filters: list = [], **kwargs: Any): + """Create a new TextSplitter.""" + super().__init__(**kwargs) + self._separator = separator + self._filter = filters + + def split_text( + self, text: str, separator: Optional[str] = None, **kwargs + ) -> List[str]: + """Split incoming text and return chunks.""" + # First we naively split the large input into a bunch of smaller ones. + if separator is None: + separator = self._separator + if separator: + splits = text.split(separator) + else: + splits = list(text) + return self._merge_splits(splits, separator, **kwargs) + + +class RecursiveCharacterTextSplitter(TextSplitter): + """Implementation of splitting text that looks at characters. + Recursively tries to split by different characters to find one + that works. + Refer to https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/text_splitter.py + """ + + def __init__(self, separators: Optional[List[str]] = None, **kwargs: Any): + """Create a new TextSplitter.""" + super().__init__(**kwargs) + self._separators = separators or ["###", "\n", " ", ""] + + def split_text( + self, text: str, separator: Optional[str] = None, **kwargs + ) -> List[str]: + """Split incoming text and return chunks.""" + final_chunks = [] + # Get appropriate separator to use + separator = self._separators[-1] + for _s in self._separators: + if _s == "": + separator = _s + break + if _s in text: + separator = _s + break + # Now that we have the separator, split the text + if separator: + splits = text.split(separator) + else: + splits = list(text) + # Now go merging things, recursively splitting longer texts. + _good_splits = [] + for s in splits: + if self._length_function(s) < self._chunk_size: + _good_splits.append(s) + else: + if _good_splits: + merged_text = self._merge_splits( + _good_splits, + separator, + chunk_size=kwargs.get("chunk_size", None), + chunk_overlap=kwargs.get("chunk_overlap", None), + ) + final_chunks.extend(merged_text) + _good_splits = [] + other_info = self.split_text(s) + final_chunks.extend(other_info) + if _good_splits: + merged_text = self._merge_splits( + _good_splits, + separator, + chunk_size=kwargs.get("chunk_size", None), + chunk_overlap=kwargs.get("chunk_overlap", None), + ) + final_chunks.extend(merged_text) + return final_chunks + + +class SpacyTextSplitter(TextSplitter): + """Implementation of splitting text that looks at sentences using Spacy. + Refer to https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/text_splitter.py + """ + + def __init__(self, pipeline: str = "zh_core_web_sm", **kwargs: Any) -> None: + """Initialize the spacy text splitter.""" + super().__init__(**kwargs) + try: + import spacy + except ImportError: + raise ImportError( + "Spacy is not installed, please install it with `pip install spacy`." + ) + try: + self._tokenizer = spacy.load(pipeline) + except: + spacy.cli.download(pipeline) + self._tokenizer = spacy.load(pipeline) + + def split_text( + self, text: str, separator: Optional[str] = None, **kwargs + ) -> List[str]: + """Split incoming text and return chunks.""" + if len(text) > 1000000: + self._tokenizer.max_length = len(text) + 100 + splits = (str(s) for s in self._tokenizer(text).sents) + return self._merge_splits(splits, separator, **kwargs) + + +class HeaderType(TypedDict): + """Header type as typed dict.""" + + level: int + name: str + data: str + + +class LineType(TypedDict): + """Line type as typed dict.""" + + metadata: Dict[str, str] + content: str + + +class MarkdownHeaderTextSplitter(TextSplitter): + """Implementation of splitting markdown files based on specified headers. + Refer to https://github.com/langchain-ai/langchain/blob/master/libs/langchain/langchain/text_splitter.py + """ + + outgoing_edges = 1 + + def __init__( + self, + headers_to_split_on: List[Tuple[str, str]] = [ + ("#", "Header 1"), + ("##", "Header 2"), + ("###", "Header 3"), + ("####", "Header 4"), + ("#####", "Header 5"), + ("######", "Header 6"), + ], + return_each_line: bool = False, + filters: list = [], + chunk_size: int = 4000, + chunk_overlap: int = 200, + length_function: Callable[[str], int] = len, + separator="\n", + ): + """Create a new MarkdownHeaderTextSplitter. + + Args: + headers_to_split_on: Headers we want to track + return_each_line: Return each line w/ associated headers + """ + # Output line-by-line or aggregated into chunks w/ common headers + self.return_each_line = return_each_line + self._chunk_size = chunk_size + # Given the headers we want to split on, + # (e.g., "#, ##, etc") order by length + self.headers_to_split_on = sorted( + headers_to_split_on, key=lambda split: len(split[0]), reverse=True + ) + self._filter = filters + self._length_function = length_function + self._separator = separator + self._chunk_overlap = chunk_overlap + + def create_documents( + self, + texts: List[str], + metadatas: Optional[List[dict]] = None, + separator: Optional[str] = None, + **kwargs, + ) -> List[Chunk]: + """Create documents from a list of texts.""" + _metadatas = metadatas or [{}] * len(texts) + chunks = [] + for i, text in enumerate(texts): + for chunk in self.split_text(text, separator, **kwargs): + metadata = chunk.metadata or {} + metadata.update(_metadatas[i]) + new_doc = Chunk(content=chunk.content, metadata=metadata) + chunks.append(new_doc) + return chunks + + def aggregate_lines_to_chunks(self, lines: List[LineType]) -> List[Chunk]: + """Combine lines with common metadata into chunks + Args: + lines: Line of text / associated header metadata + """ + aggregated_chunks: List[LineType] = [] + + for line in lines: + if ( + aggregated_chunks + and aggregated_chunks[-1]["metadata"] == line["metadata"] + ): + # If the last line in the aggregated list + # has the same metadata as the current line, + # append the current content to the last lines's content + aggregated_chunks[-1]["content"] += " \n" + line["content"] + else: + # Otherwise, append the current line to the aggregated list + line["content"] = f"{line['metadata']}, " + line["content"] + aggregated_chunks.append(line) + + return [ + Chunk(content=chunk["content"], metadata=chunk["metadata"]) + for chunk in aggregated_chunks + ] + + def split_text( + self, + text: str, + separator: Optional[str] = None, + chunk_size: Optional[int] = None, + chunk_overlap: Optional[int] = None, + ) -> List[Chunk]: + """Split markdown file + Args: + text: Markdown file""" + if separator is None: + separator = self._separator + if chunk_size is None: + chunk_size = self._chunk_size + if chunk_overlap is None: + chunk_overlap = self._chunk_overlap + + # Split the input text by newline character ("\n"). + lines = text.split(separator) + # Final output + lines_with_metadata: List[LineType] = [] + # Content and metadata of the chunk currently being processed + current_content: List[str] = [] + current_metadata: Dict[str, str] = {} + # Keep track of the nested header structure + # header_stack: List[Dict[str, Union[int, str]]] = [] + header_stack: List[HeaderType] = [] + initial_metadata: Dict[str, str] = {} + for line in lines: + stripped_line = line.strip() + # Check each line against each of the header types (e.g., #, ##) + for sep, name in self.headers_to_split_on: + # Check if line starts with a header that we intend to split on + if stripped_line.startswith(sep) and ( + # Header with no text OR header is followed by space + # Both are valid conditions that sep is being used a header + len(stripped_line) == len(sep) + or stripped_line[len(sep)] == " " + ): + # Ensure we are tracking the header as metadata + if name is not None: + # Get the current header level + current_header_level = sep.count("#") + + # Pop out headers of lower or same level from the stack + while ( + header_stack + and header_stack[-1]["level"] >= current_header_level + ): + # We have encountered a new header + # at the same or higher level + popped_header = header_stack.pop() + # Clear the metadata for the + # popped header in initial_metadata + if popped_header["name"] in initial_metadata: + initial_metadata.pop(popped_header["name"]) + + # Push the current header to the stack + header: HeaderType = { + "level": current_header_level, + "name": name, + "data": stripped_line[len(sep) :].strip(), + } + header_stack.append(header) + # Update initial_metadata with the current header + initial_metadata[name] = header["data"] + + # Add the previous line to the lines_with_metadata + # only if current_content is not empty + if current_content: + lines_with_metadata.append( + { + "content": separator.join(current_content), + "metadata": current_metadata.copy(), + } + ) + current_content.clear() + + break + else: + if stripped_line: + current_content.append(stripped_line) + elif current_content: + lines_with_metadata.append( + { + "content": separator.join(current_content), + "metadata": current_metadata.copy(), + } + ) + current_content.clear() + + current_metadata = initial_metadata.copy() + if current_content: + lines_with_metadata.append( + { + "content": separator.join(current_content), + "metadata": current_metadata, + } + ) + # lines_with_metadata has each line with associated header metadata + # aggregate these into chunks based on common metadata + if not self.return_each_line: + return self.aggregate_lines_to_chunks(lines_with_metadata) + else: + return [ + Document(content=chunk["content"], metadata=chunk["metadata"]) + for chunk in lines_with_metadata + ] + + def clean(self, documents: List[dict], filters: Optional[List[str]] = None): + if filters is None: + filters = self._filter + for special_character in filters: + for doc in documents: + doc["content"] = doc["content"].replace(special_character, "") + return documents + + def _join_docs(self, docs: List[str], separator: str) -> Optional[str]: + text = separator.join(docs) + text = text.strip() + if text == "": + return None + else: + return text + + def _merge_splits( + self, + documents: List[dict], + separator: Optional[str] = None, + chunk_size: Optional[int] = None, + chunk_overlap: [int] = None, + ) -> List[str]: + # We now want to combine these smaller pieces into medium size + # chunks to send to the LLM. + if chunk_size is None: + chunk_size = self._chunk_size + if chunk_overlap is None: + chunk_overlap = self._chunk_overlap + if separator is None: + separator = self._separator + separator_len = self._length_function(separator) + + docs = [] + current_doc: List[str] = [] + total = 0 + for doc in documents: + if doc["metadata"] != {}: + head = sorted( + doc["metadata"].items(), key=lambda x: x[0], reverse=True + )[0][1] + d = head + separator + doc["page_content"] + else: + d = doc["page_content"] + _len = self._length_function(d) + if ( + total + _len + (separator_len if len(current_doc) > 0 else 0) + > chunk_size + ): + if total > chunk_size: + logger.warning( + f"Created a chunk of size {total}, " + f"which is longer than the specified {chunk_size}" + ) + if len(current_doc) > 0: + doc = self._join_docs(current_doc, separator) + if doc is not None: + docs.append(doc) + # Keep on popping if: + # - we have a larger chunk than in the chunk overlap + # - or if we still have any chunks and the length is long + while total > chunk_overlap or ( + total + _len + (separator_len if len(current_doc) > 0 else 0) + > chunk_size + and total > 0 + ): + total -= self._length_function(current_doc[0]) + ( + separator_len if len(current_doc) > 1 else 0 + ) + current_doc = current_doc[1:] + current_doc.append(d) + total += _len + (separator_len if len(current_doc) > 1 else 0) + doc = self._join_docs(current_doc, separator) + if doc is not None: + docs.append(doc) + return docs + + def run( + self, + documents: Union[dict, List[dict]], + meta: Optional[Union[Dict[str, str], List[Dict[str, str]]]] = None, + filters: Optional[List[str]] = None, + chunk_size: Optional[int] = None, + chunk_overlap: Optional[int] = None, + separator: Optional[str] = None, + ): + if filters is None: + filters = self._filter + if chunk_size is None: + chunk_size = self._chunk_size + if chunk_overlap is None: + chunk_overlap = self._chunk_overlap + if separator is None: + separator = self._separator + ret = [] + if type(documents) == list: + for document in documents: + text_splits = self.split_text( + document["content"], separator, chunk_size, chunk_overlap + ) + for i, txt in enumerate(text_splits): + doc = {} + doc["content"] = txt + + if "meta" not in doc.keys() or doc["meta"] is None: + doc["meta"] = {} + + doc["meta"]["_split_id"] = i + ret.append(doc) + elif type(documents) == dict: + text_splits = self.split_text( + documents["content"], separator, chunk_size, chunk_overlap + ) + for i, txt in enumerate(text_splits): + doc = {} + doc["content"] = txt + + if "meta" not in doc.keys() or doc["meta"] is None: + doc["meta"] = {} + + doc["meta"]["_split_id"] = i + ret.append(doc) + if filters is None: + filters = self._filter + if filters is not None and len(filters) > 0: + ret = self.clean(ret, filters) + result = {"documents": ret} + return result, "output_1" + + +class ParagraphTextSplitter(CharacterTextSplitter): + """Implementation of splitting text that looks at paragraphs.""" + + def __init__( + self, + separator="\n", + chunk_size: Optional[int] = 0, + chunk_overlap: Optional[int] = 0, + ): + self._separator = separator + if self._separator is None: + self._separator = "\n" + self._chunk_size = chunk_size + self._chunk_overlap = chunk_overlap + self._is_paragraph = chunk_overlap + + def split_text( + self, text: str, separator: Optional[str] = "\n", **kwargs + ) -> List[str]: + paragraphs = text.strip().split(self._separator) + paragraphs = [p.strip() for p in paragraphs if p.strip() != ""] + return paragraphs + + +class SeparatorTextSplitter(CharacterTextSplitter): + """SeparatorTextSplitter""" + + def __init__(self, separator: str = "\n", filters: list = [], **kwargs: Any): + """Create a new TextSplitter.""" + super().__init__(**kwargs) + self._separator = separator + self._filter = filters + + def split_text( + self, text: str, separator: Optional[str] = None, **kwargs + ) -> List[str]: + """Split incoming text and return chunks.""" + if separator is None: + separator = self._separator + if separator: + splits = text.split(separator) + else: + splits = list(text) + return self._merge_splits(splits, separator, chunk_overlap=0, **kwargs) + + +class PageTextSplitter(TextSplitter): + """PageTextSplitter""" + + def __init__(self, separator: str = "\n\n", filters: list = [], **kwargs: Any): + """Create a new TextSplitter.""" + super().__init__(**kwargs) + self._separator = separator + self._filter = filters + + def split_text( + self, text: str, separator: Optional[str] = None, **kwargs + ) -> List[str]: + """Split incoming text and return chunks.""" + return text + + def create_documents( + self, + texts: List[str], + metadatas: Optional[List[dict]] = None, + separator: Optional[str] = None, + **kwargs, + ) -> List[Chunk]: + """Create documents from a list of texts.""" + _metadatas = metadatas or [{}] * len(texts) + chunks = [] + for i, text in enumerate(texts): + new_doc = Chunk(content=text, metadata=copy.deepcopy(_metadatas[i])) + chunks.append(new_doc) + return chunks diff --git a/dbgpt/rag/embedding_engine/loader/token_splitter.py b/dbgpt/rag/text_splitter/token_splitter.py similarity index 98% rename from dbgpt/rag/embedding_engine/loader/token_splitter.py rename to dbgpt/rag/text_splitter/token_splitter.py index 6e09fbee3..8c347e612 100644 --- a/dbgpt/rag/embedding_engine/loader/token_splitter.py +++ b/dbgpt/rag/text_splitter/token_splitter.py @@ -4,7 +4,7 @@ from dbgpt._private.pydantic import Field, PrivateAttr, BaseModel from dbgpt.util.global_helper import globals_helper -from dbgpt.rag.embedding_engine.loader.splitter_utils import split_by_sep, split_by_char +from dbgpt.util.splitter_utils import split_by_sep, split_by_char DEFAULT_METADATA_FORMAT_LEN = 2 DEFAULT_CHUNK_OVERLAP = 20 diff --git a/dbgpt/serve/rag/api/__init__.py b/dbgpt/serve/rag/api/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/serve/rag/assembler/__init__.py b/dbgpt/serve/rag/assembler/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/serve/rag/assembler/base.py b/dbgpt/serve/rag/assembler/base.py new file mode 100644 index 000000000..b5944c781 --- /dev/null +++ b/dbgpt/serve/rag/assembler/base.py @@ -0,0 +1,50 @@ +from abc import ABC, abstractmethod +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.chunk_manager import ChunkManager, ChunkParameters +from dbgpt.rag.extractor.base import Extractor +from dbgpt.rag.knowledge.base import Knowledge +from dbgpt.rag.retriever.base import BaseRetriever + + +class BaseAssembler(ABC): + """Base Assembler""" + + def __init__( + self, + knowledge: Optional[Knowledge] = None, + chunk_parameters: Optional[ChunkParameters] = None, + extractor: Optional[Extractor] = None, + **kwargs: Any, + ) -> None: + """Initialize with Assembler arguments. + Args: + knowledge: (Knowledge) Knowledge datasource. + chunk_parameters: (Optional[ChunkParameters]) ChunkManager to use for chunking. + extractor: (Optional[Extractor]) Extractor to use for summarization.""" + self._knowledge = knowledge + self._chunk_parameters = chunk_parameters or ChunkParameters() + self._extractor = extractor + self._chunk_manager = ChunkManager( + knowledge=self._knowledge, chunk_parameter=self._chunk_parameters + ) + self._chunks = None + self.load_knowledge(self._knowledge) + + def load_knowledge(self, knowledge) -> None: + """Load knowledge Pipeline.""" + documents = knowledge.load() + self._chunks = self._chunk_manager.split(documents) + + @abstractmethod + def as_retriever(self, **kwargs: Any) -> BaseRetriever: + """Return a retriever.""" + + @abstractmethod + def persist(self, chunks: List[Chunk]) -> None: + """Persist chunks.""" + + def get_chunks(self) -> List[Chunk]: + """Return chunks.""" + return self._chunks diff --git a/dbgpt/serve/rag/assembler/db_struct.py b/dbgpt/serve/rag/assembler/db_struct.py new file mode 100644 index 000000000..9d85efbf9 --- /dev/null +++ b/dbgpt/serve/rag/assembler/db_struct.py @@ -0,0 +1,151 @@ +import os +from typing import Optional, Any, List + +from dbgpt.datasource.rdbms.base import RDBMSDatabase +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.chunk_manager import ChunkParameters, ChunkManager +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory +from dbgpt.rag.knowledge.base import Knowledge, ChunkStrategy +from dbgpt.rag.knowledge.factory import KnowledgeFactory +from dbgpt.rag.retriever.db_struct import DBStructRetriever +from dbgpt.rag.summary.rdbms_db_summary import _parse_db_summary +from dbgpt.serve.rag.assembler.base import BaseAssembler +from dbgpt.storage.vector_store.connector import VectorStoreConnector + + +class DBStructAssembler(BaseAssembler): + """DBStructAssembler + Example: + .. code-block:: python + + from dbgpt.datasource.rdbms.conn_sqlite import SQLiteTempConnect + from dbgpt.serve.rag.assembler.db_struct import DBStructAssembler + from dbgpt.storage.vector_store.connector import VectorStoreConnector + from dbgpt.storage.vector_store.chroma_store import ChromaVectorConfig + + connection = SQLiteTempConnect.create_temporary_db() + assembler = DBStructAssembler.load_from_connection( + connection=connection, + embedding_model=embedding_model_path, + ) + assembler.persist() + # get db struct retriever + retriever = assembler.as_retriever(top_k=3) + """ + + def __init__( + self, + connection: RDBMSDatabase = None, + chunk_parameters: Optional[ChunkParameters] = None, + embedding_model: Optional[str] = None, + embedding_factory: Optional[EmbeddingFactory] = None, + vector_store_connector: Optional[VectorStoreConnector] = None, + **kwargs: Any, + ) -> None: + """Initialize with Embedding Assembler arguments. + Args: + connection: (RDBMSDatabase) RDBMSDatabase connection. + knowledge: (Knowledge) Knowledge datasource. + chunk_manager: (Optional[ChunkManager]) ChunkManager to use for chunking. + embedding_model: (Optional[str]) Embedding model to use. + embedding_factory: (Optional[EmbeddingFactory]) EmbeddingFactory to use. + vector_store_connector: (Optional[VectorStoreConnector]) VectorStoreConnector to use. + """ + if connection is None: + raise ValueError("datasource connection must be provided.") + from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory + + embedding_factory = embedding_factory or DefaultEmbeddingFactory( + default_model_name=os.getenv("EMBEDDING_MODEL") + ) + self._connection = connection + if embedding_model: + embedding_fn = embedding_factory.create(model_name=embedding_model) + self._vector_store_connector = ( + vector_store_connector + or VectorStoreConnector.from_default(embedding_fn=embedding_fn) + ) + super().__init__( + chunk_parameters=chunk_parameters, + **kwargs, + ) + + @classmethod + def load_from_connection( + cls, + connection: RDBMSDatabase = None, + knowledge: Optional[Knowledge] = None, + chunk_parameters: Optional[ChunkParameters] = None, + embedding_model: Optional[str] = None, + embedding_factory: Optional[EmbeddingFactory] = None, + vector_store_connector: Optional[VectorStoreConnector] = None, + ) -> "DBStructAssembler": + """Load document embedding into vector store from path. + Args: + connection: (RDBMSDatabase) RDBMSDatabase connection. + knowledge: (Knowledge) Knowledge datasource. + chunk_parameters: (Optional[ChunkParameters]) ChunkManager to use for chunking. + embedding_model: (Optional[str]) Embedding model to use. + embedding_factory: (Optional[EmbeddingFactory]) EmbeddingFactory to use. + vector_store_connector: (Optional[VectorStoreConnector]) VectorStoreConnector to use. + Returns: + DBStructAssembler + """ + from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory + + embedding_factory = embedding_factory or DefaultEmbeddingFactory( + default_model_name=embedding_model or os.getenv("EMBEDDING_MODEL_PATH") + ) + chunk_parameters = chunk_parameters or ChunkParameters( + chunk_strategy=ChunkStrategy.CHUNK_BY_SIZE.name, chunk_overlap=0 + ) + + return cls( + connection=connection, + knowledge=knowledge, + embedding_model=embedding_model, + chunk_parameters=chunk_parameters, + embedding_factory=embedding_factory, + vector_store_connector=vector_store_connector, + ) + + def load_knowledge(self, knowledge: Optional[Knowledge] = None) -> None: + table_summaries = _parse_db_summary(self._connection) + self._chunks = [] + self._knowledge = knowledge + for table_summary in table_summaries: + from dbgpt.rag.knowledge.base import KnowledgeType + + self._knowledge = KnowledgeFactory.from_text( + text=table_summary, knowledge_type=KnowledgeType.DOCUMENT + ) + self._chunk_parameters.chunk_size = len(table_summary) + self._chunk_manager = ChunkManager( + knowledge=self._knowledge, chunk_parameter=self._chunk_parameters + ) + self._chunks.extend(self._chunk_manager.split(self._knowledge.load())) + + def get_chunks(self) -> List[Chunk]: + """Return chunk ids.""" + return self._chunks + + def persist(self) -> List[str]: + """Persist chunks into vector store.""" + return self._vector_store_connector.load_document(self._chunks) + + def _extract_info(self, chunks) -> List[Chunk]: + """Extract info from chunks.""" + + def as_retriever(self, top_k: Optional[int] = 4) -> DBStructRetriever: + """ + Args: + top_k:(Optional[int]), default 4 + Returns: + DBStructRetriever + """ + return DBStructRetriever( + top_k=top_k, + connection=self._connection, + is_embeddings=True, + vector_store_connector=self._vector_store_connector, + ) diff --git a/dbgpt/serve/rag/assembler/embedding.py b/dbgpt/serve/rag/assembler/embedding.py new file mode 100644 index 000000000..10138c39e --- /dev/null +++ b/dbgpt/serve/rag/assembler/embedding.py @@ -0,0 +1,116 @@ +import os +from typing import Optional, Any, List + +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.chunk_manager import ChunkParameters +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory +from dbgpt.rag.knowledge.base import Knowledge +from dbgpt.rag.retriever.embedding import EmbeddingRetriever +from dbgpt.serve.rag.assembler.base import BaseAssembler +from dbgpt.storage.vector_store.connector import VectorStoreConnector + + +class EmbeddingAssembler(BaseAssembler): + """Embedding Assembler + + Example: + + .. code-block:: python + + from dbgpt.rag.assembler import EmbeddingAssembler + + pdf_path = "path/to/document.pdf" + knowledge = KnowledgeFactory.from_file_path(pdf_path) + assembler = EmbeddingAssembler.load_from_knowledge( + knowledge=knowledge, + embedding_model="text2vec", + ) + """ + + def __init__( + self, + knowledge: Knowledge = None, + chunk_parameters: Optional[ChunkParameters] = None, + embedding_model: Optional[str] = None, + embedding_factory: Optional[EmbeddingFactory] = None, + vector_store_connector: Optional[VectorStoreConnector] = None, + **kwargs: Any, + ) -> None: + """Initialize with Embedding Assembler arguments. + Args: + knowledge: (Knowledge) Knowledge datasource. + chunk_parameters: (Optional[ChunkParameters]) ChunkManager to use for chunking. + embedding_model: (Optional[str]) Embedding model to use. + embedding_factory: (Optional[EmbeddingFactory]) EmbeddingFactory to use. + vector_store_connector: (Optional[VectorStoreConnector]) VectorStoreConnector to use. + """ + if knowledge is None: + raise ValueError("knowledge datasource must be provided.") + from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory + + embedding_factory = embedding_factory or DefaultEmbeddingFactory( + default_model_name=os.getenv("EMBEDDING_MODEL") + ) + if embedding_model: + embedding_fn = embedding_factory.create(model_name=embedding_model) + self._vector_store_connector = ( + vector_store_connector + or VectorStoreConnector.from_default(embedding_fn=embedding_fn) + ) + + super().__init__( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + **kwargs, + ) + + @classmethod + def load_from_knowledge( + cls, + knowledge: Knowledge = None, + chunk_parameters: Optional[ChunkParameters] = None, + embedding_model: Optional[str] = None, + embedding_factory: Optional[EmbeddingFactory] = None, + vector_store_connector: Optional[VectorStoreConnector] = None, + ) -> "EmbeddingAssembler": + """Load document embedding into vector store from path. + Args: + knowledge: (Knowledge) Knowledge datasource. + chunk_parameters: (Optional[ChunkParameters]) ChunkManager to use for chunking. + embedding_model: (Optional[str]) Embedding model to use. + embedding_factory: (Optional[EmbeddingFactory]) EmbeddingFactory to use. + vector_store_connector: (Optional[VectorStoreConnector]) VectorStoreConnector to use. + Returns: + EmbeddingAssembler + """ + from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory + + embedding_factory = embedding_factory or DefaultEmbeddingFactory( + default_model_name=embedding_model or os.getenv("EMBEDDING_MODEL_PATH") + ) + return cls( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + embedding_model=embedding_model, + embedding_factory=embedding_factory, + vector_store_connector=vector_store_connector, + ) + + def persist(self) -> List[str]: + """Persist chunks into vector store.""" + return self._vector_store_connector.load_document(self._chunks) + + def _extract_info(self, chunks) -> List[Chunk]: + """Extract info from chunks.""" + pass + + def as_retriever(self, top_k: Optional[int] = 4) -> EmbeddingRetriever: + """ + Args: + top_k:(Optional[int]), default 4 + Returns: + EmbeddingRetriever + """ + return EmbeddingRetriever( + top_k=top_k, vector_store_connector=self._vector_store_connector + ) diff --git a/dbgpt/serve/rag/assembler/summary.py b/dbgpt/serve/rag/assembler/summary.py new file mode 100644 index 000000000..a9d4af00e --- /dev/null +++ b/dbgpt/serve/rag/assembler/summary.py @@ -0,0 +1,113 @@ +import os +from typing import Optional, Any, List + +from dbgpt.core import LLMClient +from dbgpt.rag.chunk import Chunk +from dbgpt.rag.chunk_manager import ChunkParameters +from dbgpt.rag.extractor.base import Extractor +from dbgpt.rag.knowledge.base import Knowledge +from dbgpt.rag.retriever.base import BaseRetriever +from dbgpt.serve.rag.assembler.base import BaseAssembler + + +class SummaryAssembler(BaseAssembler): + """Summary Assembler + Example: + .. code-block:: python + + pdf_path = "../../../DB-GPT/docs/docs/awel.md" + OPEN_AI_KEY = "{your_api_key}" + OPEN_AI_BASE = "{your_api_base}" + llm_client = OpenAILLMClient(api_key=OPEN_AI_KEY, api_base=OPEN_AI_BASE) + knowledge = KnowledgeFactory.from_file_path(pdf_path) + chunk_parameters = ChunkParameters(chunk_strategy="CHUNK_BY_SIZE") + assembler = SummaryAssembler.load_from_knowledge( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + llm_client=llm_client, + model_name="gpt-3.5-turbo", + ) + summary = await assembler.generate_summary() + """ + + def __init__( + self, + knowledge: Knowledge = None, + chunk_parameters: Optional[ChunkParameters] = None, + model_name: Optional[str] = None, + llm_client: Optional[LLMClient] = None, + extractor: Optional[Extractor] = None, + language: Optional[str] = "en", + **kwargs: Any, + ) -> None: + """Initialize with Embedding Assembler arguments. + Args: + knowledge: (Knowledge) Knowledge datasource. + chunk_manager: (Optional[ChunkManager]) ChunkManager to use for chunking. + model_name: (Optional[str]) llm model to use. + llm_client: (Optional[LLMClient]) LLMClient to use. + extractor: (Optional[Extractor]) Extractor to use for summarization. + language: (Optional[str]) The language of the prompt. Defaults to "en". + """ + if knowledge is None: + raise ValueError("knowledge datasource must be provided.") + + self._model_name = model_name or os.getenv("LLM_MODEL") + self._llm_client = llm_client + from dbgpt.rag.extractor.summary import SummaryExtractor + + self._extractor = extractor or SummaryExtractor( + llm_client=self._llm_client, model_name=self._model_name + ) + self._language = language + super().__init__( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + extractor=self._extractor, + **kwargs, + ) + + @classmethod + def load_from_knowledge( + cls, + knowledge: Knowledge = None, + chunk_parameters: Optional[ChunkParameters] = None, + model_name: Optional[str] = None, + llm_client: Optional[LLMClient] = None, + extractor: Optional[Extractor] = None, + language: Optional[str] = "en", + **kwargs: Any, + ) -> "SummaryAssembler": + """Load document embedding into vector store from path. + Args: + knowledge: (Knowledge) Knowledge datasource. + chunk_parameters: (Optional[ChunkParameters]) ChunkManager to use for chunking. + model_name: (Optional[str]) llm model to use. + llm_client: (Optional[LLMClient]) LLMClient to use. + extractor: (Optional[Extractor]) Extractor to use for summarization. + language: (Optional[str]) The language of the prompt. Defaults to "en". + Returns: + SummaryAssembler + """ + return cls( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + model_name=model_name, + llm_client=llm_client, + extractor=extractor, + language=language, + **kwargs, + ) + + async def generate_summary(self) -> str: + """Generate summary.""" + return await self._extractor.aextract(self._chunks) + + def persist(self) -> List[str]: + """Persist chunks into store.""" + + def _extract_info(self, chunks) -> List[Chunk]: + """Extract info from chunks.""" + + def as_retriever(self, **kwargs: Any) -> BaseRetriever: + """Return a retriever.""" diff --git a/dbgpt/serve/rag/assembler/tests/__init__.py b/dbgpt/serve/rag/assembler/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dbgpt/serve/rag/assembler/tests/test_db_struct_assembler.py b/dbgpt/serve/rag/assembler/tests/test_db_struct_assembler.py new file mode 100644 index 000000000..34f15b458 --- /dev/null +++ b/dbgpt/serve/rag/assembler/tests/test_db_struct_assembler.py @@ -0,0 +1,76 @@ +from unittest.mock import MagicMock + +import pytest + +from dbgpt.datasource.rdbms.conn_sqlite import SQLiteTempConnect +from dbgpt.rag.chunk_manager import ChunkParameters, SplitterType +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory +from dbgpt.rag.knowledge.base import Knowledge +from dbgpt.rag.text_splitter.text_splitter import CharacterTextSplitter +from dbgpt.serve.rag.assembler.embedding import EmbeddingAssembler +from dbgpt.storage.vector_store.connector import VectorStoreConnector + + +@pytest.fixture +def mock_db_connection(): + """Create a temporary database connection for testing.""" + connect = SQLiteTempConnect.create_temporary_db() + connect.create_temp_tables( + { + "user": { + "columns": { + "id": "INTEGER PRIMARY KEY", + "name": "TEXT", + "age": "INTEGER", + }, + "data": [ + (1, "Tom", 10), + (2, "Jerry", 16), + (3, "Jack", 18), + (4, "Alice", 20), + (5, "Bob", 22), + ], + } + } + ) + return connect + + +@pytest.fixture +def mock_chunk_parameters(): + return MagicMock(spec=ChunkParameters) + + +@pytest.fixture +def mock_embedding_factory(): + return MagicMock(spec=EmbeddingFactory) + + +@pytest.fixture +def mock_vector_store_connector(): + return MagicMock(spec=VectorStoreConnector) + + +@pytest.fixture +def mock_knowledge(): + return MagicMock(spec=Knowledge) + + +def test_load_knowledge( + mock_db_connection, + mock_knowledge, + mock_chunk_parameters, + mock_embedding_factory, + mock_vector_store_connector, +): + mock_chunk_parameters.chunk_strategy = "CHUNK_BY_SIZE" + mock_chunk_parameters.text_splitter = CharacterTextSplitter() + mock_chunk_parameters.splitter_type = SplitterType.USER_DEFINE + assembler = EmbeddingAssembler( + knowledge=mock_knowledge, + chunk_parameters=mock_chunk_parameters, + embedding_factory=mock_embedding_factory, + vector_store_connector=mock_vector_store_connector, + ) + assembler.load_knowledge(knowledge=mock_knowledge) + assert len(assembler._chunks) == 0 diff --git a/dbgpt/serve/rag/assembler/tests/test_embedding_assembler.py b/dbgpt/serve/rag/assembler/tests/test_embedding_assembler.py new file mode 100644 index 000000000..0a5d7d21f --- /dev/null +++ b/dbgpt/serve/rag/assembler/tests/test_embedding_assembler.py @@ -0,0 +1,76 @@ +from unittest.mock import MagicMock, patch + +import pytest + +from dbgpt.datasource.rdbms.conn_sqlite import SQLiteTempConnect +from dbgpt.rag.chunk_manager import ChunkParameters, SplitterType +from dbgpt.rag.embedding.embedding_factory import EmbeddingFactory +from dbgpt.rag.knowledge.base import Knowledge +from dbgpt.rag.text_splitter.text_splitter import CharacterTextSplitter +from dbgpt.serve.rag.assembler.db_struct import DBStructAssembler +from dbgpt.storage.vector_store.connector import VectorStoreConnector + + +@pytest.fixture +def mock_db_connection(): + """Create a temporary database connection for testing.""" + connect = SQLiteTempConnect.create_temporary_db() + connect.create_temp_tables( + { + "user": { + "columns": { + "id": "INTEGER PRIMARY KEY", + "name": "TEXT", + "age": "INTEGER", + }, + "data": [ + (1, "Tom", 10), + (2, "Jerry", 16), + (3, "Jack", 18), + (4, "Alice", 20), + (5, "Bob", 22), + ], + } + } + ) + return connect + + +@pytest.fixture +def mock_chunk_parameters(): + return MagicMock(spec=ChunkParameters) + + +@pytest.fixture +def mock_embedding_factory(): + return MagicMock(spec=EmbeddingFactory) + + +@pytest.fixture +def mock_vector_store_connector(): + return MagicMock(spec=VectorStoreConnector) + + +@pytest.fixture +def mock_knowledge(): + return MagicMock(spec=Knowledge) + + +def test_load_knowledge( + mock_db_connection, + mock_knowledge, + mock_chunk_parameters, + mock_embedding_factory, + mock_vector_store_connector, +): + mock_chunk_parameters.chunk_strategy = "CHUNK_BY_SIZE" + mock_chunk_parameters.text_splitter = CharacterTextSplitter() + mock_chunk_parameters.splitter_type = SplitterType.USER_DEFINE + assembler = DBStructAssembler( + connection=mock_db_connection, + chunk_parameters=mock_chunk_parameters, + embedding_factory=mock_embedding_factory, + vector_store_connector=mock_vector_store_connector, + ) + assembler.load_knowledge(knowledge=mock_knowledge) + assert len(assembler._chunks) == 1 diff --git a/dbgpt/storage/metadata/_base_dao.py b/dbgpt/storage/metadata/_base_dao.py index 659e06b2e..770d82c93 100644 --- a/dbgpt/storage/metadata/_base_dao.py +++ b/dbgpt/storage/metadata/_base_dao.py @@ -139,8 +139,9 @@ def create(self, request: REQ) -> RES: RES: The response schema object. """ entry = self.from_request(request) - with self.session() as session: + with self.session(commit=False) as session: session.add(entry) + session.commit() return self.get_one(self.to_request(entry)) def update(self, query_request: QUERY_SPEC, update_request: REQ) -> RES: diff --git a/dbgpt/storage/metadata/db_manager.py b/dbgpt/storage/metadata/db_manager.py index eddd8f4e7..f222dd38a 100644 --- a/dbgpt/storage/metadata/db_manager.py +++ b/dbgpt/storage/metadata/db_manager.py @@ -299,7 +299,8 @@ def init_db( session_options.setdefault("class_", Session) session_options.setdefault("query_cls", self.Query) session_factory = sessionmaker(bind=self._engine, **session_options) - self._session = scoped_session(session_factory) + # self._session = scoped_session(session_factory) + self._session = session_factory self._base.metadata.bind = self._engine def init_default_db( diff --git a/dbgpt/storage/vector_store/base.py b/dbgpt/storage/vector_store/base.py index 799296cbd..2f944fc71 100644 --- a/dbgpt/storage/vector_store/base.py +++ b/dbgpt/storage/vector_store/base.py @@ -1,18 +1,69 @@ from abc import ABC, abstractmethod import math +from typing import Optional, Callable, List, Any + +from pydantic import Field, BaseModel + +from dbgpt.rag.chunk import Chunk + + +class VectorStoreConfig(BaseModel): + """Vector store config.""" + + name: str = Field( + default="dbgpt_collection", + description="The name of vector store, if not set, will use the default name.", + ) + user: Optional[str] = Field( + default=None, + description="The user of vector store, if not set, will use the default user.", + ) + password: Optional[str] = Field( + default=None, + description="The password of vector store, if not set, will use the default password.", + ) + embedding_fn: Optional[Any] = Field( + default=None, + description="The embedding function of vector store, if not set, will use the default embedding function.", + ) class VectorStoreBase(ABC): """base class for vector store database""" @abstractmethod - def load_document(self, documents) -> None: - """load document in vector database.""" + def load_document(self, chunks: List[Chunk]) -> List[str]: + """load document in vector database. + Args: + - chunks: document chunks. + Return: + - ids: chunks ids. + """ pass @abstractmethod - def similar_search(self, text, topk) -> None: - """similar search in vector database.""" + def similar_search(self, text, topk) -> List[Chunk]: + """similar search in vector database. + Args: + - text: query text + - topk: topk + Return: + - chunks: chunks. + """ + pass + + @abstractmethod + def similar_search_with_scores( + self, text, topk, score_threshold: float + ) -> List[Chunk]: + """similar search in vector database with scores. + Args: + - text: query text + - topk: topk + - score_threshold: score_threshold: Optional, a floating point value between 0 to 1 + Return: + - chunks: chunks. + """ pass @abstractmethod @@ -22,12 +73,17 @@ def vector_name_exists(self) -> bool: @abstractmethod def delete_by_ids(self, ids): - """delete vector by ids.""" - pass + """delete vector by ids. + Args: + - ids: vector ids + """ @abstractmethod def delete_vector_name(self, vector_name): - """delete vector name.""" + """delete vector name. + Args: + - vector_name: vector store name + """ pass def _normalization_vectors(self, vectors): diff --git a/dbgpt/storage/vector_store/chroma_store.py b/dbgpt/storage/vector_store/chroma_store.py index 5c17f7a52..8587ff732 100644 --- a/dbgpt/storage/vector_store/chroma_store.py +++ b/dbgpt/storage/vector_store/chroma_store.py @@ -1,30 +1,45 @@ import os import logging -from typing import Any +from typing import Any, List from chromadb.config import Settings from chromadb import PersistentClient -from dbgpt.storage.vector_store.base import VectorStoreBase +from pydantic import Field + +from dbgpt.rag.chunk import Chunk +from dbgpt.storage.vector_store.base import VectorStoreBase, VectorStoreConfig from dbgpt.configs.model_config import PILOT_PATH logger = logging.getLogger(__name__) +class ChromaVectorConfig(VectorStoreConfig): + """Chroma vector store config.""" + + persist_path: str = Field( + default=os.getenv("CHROMA_PERSIST_PATH", None), + description="The password of vector store, if not set, will use the default password.", + ) + collection_metadata: dict = Field( + default=None, + description="the index metadata of vector store, if not set, will use the default metadata.", + ) + + class ChromaStore(VectorStoreBase): """chroma database""" - def __init__(self, ctx: {}) -> None: + def __init__(self, vector_store_config: ChromaVectorConfig) -> None: from langchain.vectorstores import Chroma - self.ctx = ctx - chroma_path = ctx.get( - "CHROMA_PERSIST_PATH", - os.path.join(PILOT_PATH, "data"), + chroma_vector_config = vector_store_config.dict() + chroma_path = chroma_vector_config.get( + "persist_path", os.path.join(PILOT_PATH, "data") ) self.persist_dir = os.path.join( - chroma_path, ctx["vector_store_name"] + ".vectordb" + chroma_path, vector_store_config.name + ".vectordb" ) - self.embeddings = ctx.get("embeddings", None) + self.embeddings = vector_store_config.embedding_fn chroma_settings = Settings( # chroma_db_impl="duckdb+parquet", => deprecated configuration of Chroma persist_directory=self.persist_dir, @@ -32,7 +47,9 @@ def __init__(self, ctx: {}) -> None: ) client = PersistentClient(path=self.persist_dir, settings=chroma_settings) - collection_metadata = {"hnsw:space": "cosine"} + collection_metadata = chroma_vector_config.get("collection_metadata") or { + "hnsw:space": "cosine" + } self.vector_store_client = Chroma( persist_directory=self.persist_dir, embedding_function=self.embeddings, @@ -41,11 +58,15 @@ def __init__(self, ctx: {}) -> None: collection_metadata=collection_metadata, ) - def similar_search(self, text, topk, **kwargs: Any) -> None: + def similar_search(self, text, topk, **kwargs: Any) -> List[Chunk]: logger.info("ChromaStore similar search") - return self.vector_store_client.similarity_search(text, topk, **kwargs) + lc_documents = self.vector_store_client.similarity_search(text, topk, **kwargs) + return [ + Chunk(content=doc.page_content, metadata=doc.metadata) + for doc in lc_documents + ] - def similar_search_with_scores(self, text, topk, score_threshold) -> None: + def similar_search_with_scores(self, text, topk, score_threshold) -> List[Chunk]: """ Chroma similar_search_with_score. Return docs and relevance scores in the range [0, 1]. @@ -55,15 +76,19 @@ def similar_search_with_scores(self, text, topk, score_threshold) -> None: score_threshold(float): score_threshold: Optional, a floating point value between 0 to 1 to filter the resulting set of retrieved docs,0 is dissimilar, 1 is most similar. """ - logger.info("ChromaStore similar search") + logger.info("ChromaStore similar search with scores") docs_and_scores = ( self.vector_store_client.similarity_search_with_relevance_scores( query=text, k=topk, score_threshold=score_threshold ) ) - return docs_and_scores + return [ + Chunk(content=doc.page_content, metadata=doc.metadata, score=score) + for doc, score in docs_and_scores + ] def vector_name_exists(self): + """is vector store name exist.""" logger.info(f"Check persist_dir: {self.persist_dir}") if not os.path.exists(self.persist_dir): return False @@ -72,11 +97,12 @@ def vector_name_exists(self): files = list(filter(lambda f: f != "chroma.sqlite3", files)) return len(files) > 0 - def load_document(self, documents): + def load_document(self, chunks: List[Chunk]) -> List[str]: logger.info("ChromaStore load document") - texts = [doc.page_content for doc in documents] - metadatas = [doc.metadata for doc in documents] - ids = self.vector_store_client.add_texts(texts=texts, metadatas=metadatas) + texts = [chunk.content for chunk in chunks] + metadatas = [chunk.metadata for chunk in chunks] + ids = [chunk.chunk_id for chunk in chunks] + self.vector_store_client.add_texts(texts=texts, metadatas=metadatas, ids=ids) return ids def delete_vector_name(self, vector_name): diff --git a/dbgpt/storage/vector_store/connector.py b/dbgpt/storage/vector_store/connector.py index 41a6a2714..a256e6a87 100644 --- a/dbgpt/storage/vector_store/connector.py +++ b/dbgpt/storage/vector_store/connector.py @@ -1,54 +1,94 @@ +import os +from typing import Optional, List, Callable, Any + +from dbgpt.rag.chunk import Chunk from dbgpt.storage import vector_store -from dbgpt.storage.vector_store.base import VectorStoreBase +from dbgpt.storage.vector_store.base import VectorStoreBase, VectorStoreConfig connector = {} class VectorStoreConnector: + """VectorStoreConnector, can connect different vector db provided load document api_v1 and similar search api_v1. 1.load_document:knowledge document source into vector store.(Chroma, Milvus, Weaviate) 2.similar_search: similarity search from vector_store + 3.similar_search_with_scores: similarity search with similarity score from vector_store + code example: + >>> from dbgpt.storage.vector_store.connector import VectorStoreConnector + + >>> vector_store_config = VectorStoreConfig + >>> vector_store_connector = VectorStoreConnector(vector_store_type="Chroma") """ - def __init__(self, vector_store_type, ctx: {}) -> None: + def __init__( + self, vector_store_type: str, vector_store_config: VectorStoreConfig = None + ) -> None: """initialize vector store connector. Args: - vector_store_type: vector store type Milvus, Chroma, Weaviate - ctx: vector store config params. """ - self.ctx = ctx + self._vector_store_config = vector_store_config self._register() if self._match(vector_store_type): self.connector_class = connector.get(vector_store_type) else: - raise Exception(f"Vector Type Not support. {0}", vector_store_type) + raise Exception(f"Vector Store Type Not support. {0}", vector_store_type) print(self.connector_class) - self.client = self.connector_class(ctx) + self.client = self.connector_class(vector_store_config) + + @classmethod + def from_default( + cls, + vector_store_type: str = None, + embedding_fn: Optional[Any] = None, + vector_store_config: Optional[VectorStoreConfig] = None, + ) -> "VectorStoreConnector": + """initialize default vector store connector.""" + vector_store_type = vector_store_type or os.getenv( + "VECTOR_STORE_TYPE", "Chroma" + ) + from dbgpt.storage.vector_store.chroma_store import ChromaVectorConfig - def load_document(self, docs): - """load document in vector database.""" - return self.client.load_document(docs) + vector_store_config = vector_store_config or ChromaVectorConfig() + vector_store_config.embedding_fn = embedding_fn + return cls(vector_store_type, vector_store_config) + + def load_document(self, chunks: List[Chunk]) -> List[str]: + """load document in vector database. + Args: + - chunks: document chunks. + Return chunk ids. + """ + return self.client.load_document(chunks) - def similar_search(self, doc: str, topk: int): + def similar_search(self, doc: str, topk: int) -> List[Chunk]: """similar search in vector database. Args: - doc: query text - topk: topk + Return: + - chunks: chunks. """ return self.client.similar_search(doc, topk) - def similar_search_with_scores(self, doc: str, topk: int, score_threshold: float): + def similar_search_with_scores( + self, doc: str, topk: int, score_threshold: float + ) -> List[Chunk]: """ similar_search_with_score in vector database.. Return docs and relevance scores in the range [0, 1]. Args: - doc(str): query text - topk(int): return docs nums. Defaults to 4. - score_threshold(float): score_threshold: Optional, a floating point value between 0 to 1 to + - doc(str): query text + - topk(int): return docs nums. Defaults to 4. + - score_threshold(float): score_threshold: Optional, a floating point value between 0 to 1 to filter the resulting set of retrieved docs,0 is dissimilar, 1 is most similar. + Return: + - chunks: chunks. """ return self.client.similar_search_with_scores(doc, topk, score_threshold) diff --git a/dbgpt/storage/vector_store/milvus_store.py b/dbgpt/storage/vector_store/milvus_store.py index dc034b776..4f97cdd50 100644 --- a/dbgpt/storage/vector_store/milvus_store.py +++ b/dbgpt/storage/vector_store/milvus_store.py @@ -5,49 +5,111 @@ import os from typing import Any, Iterable, List, Optional, Tuple +from pydantic import Field -from dbgpt.storage.vector_store.base import VectorStoreBase +from dbgpt.rag.chunk import Chunk, Document +from dbgpt.storage.vector_store.base import VectorStoreBase, VectorStoreConfig +from dbgpt.util import string_utils logger = logging.getLogger(__name__) -class MilvusStore(VectorStoreBase): - """Milvus database""" +class MilvusVectorConfig(VectorStoreConfig): + """Milvus vector store config.""" + + uri: str = Field( + default="localhost", + description="The uri of milvus store, if not set, will use the default uri.", + ) + port: str = Field( + default="19530", + description="The port of milvus store, if not set, will use the default port.", + ) + + alias: str = Field( + default="default", + description="The alias of milvus store, if not set, will use the default alias.", + ) + user: str = Field( + default=None, + description="The user of milvus store, if not set, will use the default user.", + ) + password: str = Field( + default=None, + description="The password of milvus store, if not set, will use the default password.", + ) + primary_field: str = Field( + default="pk_id", + description="The primary field of milvus store, if not set, will use the default primary field.", + ) + text_field: str = Field( + default="content", + description="The text field of milvus store, if not set, will use the default text field.", + ) + embedding_field: str = Field( + default="vector", + description="The embedding field of milvus store, if not set, will use the default embedding field.", + ) + metadata_field: str = Field( + default="metadata", + description="The metadata field of milvus store, if not set, will use the default metadata field.", + ) + secure: str = Field( + default="", + description="The secure of milvus store, if not set, will use the default secure.", + ) - def __init__(self, ctx: {}) -> None: - """MilvusStore init.""" - from pymilvus import connections - """init a milvus storage connection. +class MilvusStore(VectorStoreBase): + """Milvus database""" + def __init__(self, vector_store_config: MilvusVectorConfig) -> None: + """MilvusStore init. Args: - ctx ({}): MilvusStore global config. + vector_store_config (MilvusVectorConfig): MilvusStore config. + refer to https://milvus.io/docs/v2.0.x/manage_connection.md """ - # self.configure(cfg) + from pymilvus import connections connect_kwargs = {} - self.uri = ctx.get("MILVUS_URL", os.getenv("MILVUS_URL")) - self.port = ctx.get("MILVUS_PORT", os.getenv("MILVUS_PORT")) - self.username = ctx.get("MILVUS_USERNAME", os.getenv("MILVUS_USERNAME")) - self.password = ctx.get("MILVUS_PASSWORD", os.getenv("MILVUS_PASSWORD")) - self.secure = ctx.get("MILVUS_SECURE", os.getenv("MILVUS_SECURE")) - self.collection_name = ctx.get("vector_store_name", None) - self.embedding = ctx.get("embeddings", None) + milvus_vector_config = vector_store_config.dict() + self.uri = milvus_vector_config.get("uri") or os.getenv( + "MILVUS_URL", "localhost" + ) + self.port = milvus_vector_config.get("post") or os.getenv( + "MILVUS_PORT", "19530" + ) + self.username = milvus_vector_config.get("user") or os.getenv("MILVUS_USER") + self.password = milvus_vector_config.get("password") or os.getenv( + "MILVUS_PASSWORD" + ) + self.secure = milvus_vector_config.get("secure") or os.getenv("MILVUS_SECURE") + + self.collection_name = ( + milvus_vector_config.get("name") or vector_store_config.name + ) + if string_utils.is_all_chinese(self.collection_name): + bytes_str = self.collection_name.encode("utf-8") + hex_str = bytes_str.hex() + self.collection_name = hex_str + + self.embedding = vector_store_config.embedding_fn self.fields = [] - self.alias = "default" + self.alias = milvus_vector_config.get("alias") or "default" # use HNSW by default. self.index_params = { - "metric_type": "L2", "index_type": "HNSW", + "metric_type": "COSINE", "params": {"M": 8, "efConstruction": 64}, } + # use HNSW by default. self.index_params_map = { "IVF_FLAT": {"params": {"nprobe": 10}}, "IVF_SQ8": {"params": {"nprobe": 10}}, "IVF_PQ": {"params": {"nprobe": 10}}, - "HNSW": {"params": {"ef": 10}}, + "HNSW": {"params": {"M": 8, "efConstruction": 64}}, "RHNSW_FLAT": {"params": {"ef": 10}}, "RHNSW_SQ": {"params": {"ef": 10}}, "RHNSW_PQ": {"params": {"ef": 10}}, @@ -55,10 +117,10 @@ def __init__(self, ctx: {}) -> None: "ANNOY": {"params": {"search_k": 10}}, } # default collection schema - self.primary_field = "pk_id" - self.vector_field = "vector" - self.text_field = "content" - self.metadata_field = "metadata" + self.primary_field = milvus_vector_config.get("primary_field") or "pk_id" + self.vector_field = milvus_vector_config.get("embedding_field") or "vector" + self.text_field = milvus_vector_config.get("text_field") or "content" + self.metadata_field = milvus_vector_config.get("metadata_field") or "metadata" if (self.username is None) != (self.password is None): raise ValueError( @@ -75,13 +137,13 @@ def __init__(self, ctx: {}) -> None: # secure=self.secure, ) - def init_schema_and_load(self, vector_name, documents): + def init_schema_and_load(self, vector_name, documents) -> List[str]: """Create a Milvus collection, indexes it with HNSW, load document. Args: vector_name (Embeddings): your collection name. documents (List[str]): Text to insert. Returns: - VectorStore: The MilvusStore vector store. + List[str]: document ids. """ try: from pymilvus import ( @@ -105,7 +167,7 @@ def init_schema_and_load(self, vector_name, documents): alias="default" # secure=self.secure, ) - texts = [d.page_content for d in documents] + texts = [d.content for d in documents] metadatas = [d.metadata for d in documents] embeddings = self.embedding.embed_query(texts[0]) @@ -183,7 +245,7 @@ def _add_documents( import numpy as np text_vector = self.embedding.embed_documents(list(texts)) - insert_dict[self.vector_field] = self._normalization_vectors(text_vector) + insert_dict[self.vector_field] = text_vector except NotImplementedError: insert_dict[self.vector_field] = [ self.embedding.embed_query(x) for x in texts @@ -204,12 +266,11 @@ def _add_documents( self.col.flush() return res.primary_keys - def load_document(self, documents) -> None: + def load_document(self, chunks: List[Chunk]) -> List[str]: """load document in vector database.""" - # self.init_schema_and_load(self.collection_name, documents) batch_size = 500 batched_list = [ - documents[i : i + batch_size] for i in range(0, len(documents), batch_size) + chunks[i : i + batch_size] for i in range(0, len(chunks), batch_size) ] doc_ids = [] for doc_batch in batched_list: @@ -217,7 +278,7 @@ def load_document(self, documents) -> None: doc_ids = [str(doc_id) for doc_id in doc_ids] return doc_ids - def similar_search(self, text, topk): + def similar_search(self, text, topk) -> List[Chunk]: from pymilvus import Collection, DataType """similar_search in vector database.""" @@ -232,17 +293,16 @@ def similar_search(self, text, topk): if x.dtype == DataType.FLOAT_VECTOR or x.dtype == DataType.BINARY_VECTOR: self.vector_field = x.name _, docs_and_scores = self._search(text, topk) - from langchain.schema import Document return [ - Document( + Chunk( metadata=json.loads(doc.metadata.get("metadata", "")), - page_content=doc.page_content, + content=doc.content, ) for doc, _, _ in docs_and_scores ] - def similar_search_with_scores(self, text, topk, score_threshold): + def similar_search_with_scores(self, text, topk, score_threshold) -> List[Chunk]: """Perform a search on a query string and return results with score. For more information about the search parameters, take a look at the pymilvus @@ -286,7 +346,12 @@ def similar_search_with_scores(self, text, topk, score_threshold): if score_threshold is not None: docs_and_scores = [ - (doc, score) + Chunk( + metadata=doc.metadata, + content=doc.content, + score=score, + chunk_id=id, + ) for doc, score, id in docs_and_scores if score >= score_threshold ] @@ -308,22 +373,19 @@ def _search( timeout: Optional[int] = None, **kwargs: Any, ): - from langchain.docstore.document import Document - self.col.load() # use default index params. if param is None: index_type = self.col.indexes[0].params["index_type"] - param = self.index_params_map[index_type] + param = self.index_params_map[index_type].get("params") # query text embedding. query_vector = self.embedding.embed_query(query) - data = [self._normalization_vectors(query_vector)] # Determine result metadata fields. output_fields = self.fields[:] output_fields.remove(self.vector_field) # milvus search. res = self.col.search( - data, + [query_vector], self.vector_field, param, k, @@ -339,13 +401,13 @@ def _search( meta = {x: result.entity.get(x) for x in output_fields} ret.append( ( - Document(page_content=meta.pop(self.text_field), metadata=meta), - self._default_relevance_score_fn(result.distance), + Chunk(content=meta.pop(self.text_field), metadata=meta), + result.distance, result.id, ) ) - return data[0], ret + return ret[0], ret def vector_name_exists(self): from pymilvus import utility diff --git a/dbgpt/storage/vector_store/pgvector_store.py b/dbgpt/storage/vector_store/pgvector_store.py index 001f06d58..9917ca54b 100644 --- a/dbgpt/storage/vector_store/pgvector_store.py +++ b/dbgpt/storage/vector_store/pgvector_store.py @@ -1,6 +1,10 @@ -from typing import Any +from typing import Any, List import logging -from dbgpt.storage.vector_store.base import VectorStoreBase + +from pydantic import Field + +from dbgpt.rag.chunk import Chunk +from dbgpt.storage.vector_store.base import VectorStoreBase, VectorStoreConfig from dbgpt._private.config import Config logger = logging.getLogger(__name__) @@ -8,21 +12,29 @@ CFG = Config() +class PGVectorConfig(VectorStoreConfig): + """PG vector store config.""" + + connection_string: str = Field( + default=None, + description="the connection string of vector store, if not set, will use the default connection string.", + ) + + class PGVectorStore(VectorStoreBase): """`Postgres.PGVector` vector store. To use this, you should have the ``pgvector`` python package installed. """ - def __init__(self, ctx: dict) -> None: + def __init__(self, vector_store_config: PGVectorConfig) -> None: """init pgvector storage""" from langchain.vectorstores import PGVector - self.ctx = ctx - self.connection_string = ctx.get("connection_string", None) - self.embeddings = ctx.get("embeddings", None) - self.collection_name = ctx.get("vector_store_name", None) + self.connection_string = vector_store_config.connection_string + self.embeddings = vector_store_config.embedding_fn + self.collection_name = vector_store_config.name self.vector_store_client = PGVector( embedding_function=self.embeddings, @@ -41,8 +53,9 @@ def vector_name_exists(self): logger.error("vector_name_exists error", e.message) return False - def load_document(self, documents) -> None: - return self.vector_store_client.from_documents(documents) + def load_document(self, chunks: List[Chunk]) -> List[str]: + lc_documents = [Chunk.chunk2langchain(chunk) for chunk in chunks] + return self.vector_store_client.from_documents(lc_documents) def delete_vector_name(self, vector_name): return self.vector_store_client.delete_collection() diff --git a/dbgpt/storage/vector_store/weaviate_store.py b/dbgpt/storage/vector_store/weaviate_store.py index 2124a2208..92ded9980 100644 --- a/dbgpt/storage/vector_store/weaviate_store.py +++ b/dbgpt/storage/vector_store/weaviate_store.py @@ -1,19 +1,36 @@ import os import logging +from typing import List + from langchain.schema import Document +from pydantic import Field from dbgpt._private.config import Config from dbgpt.configs.model_config import KNOWLEDGE_UPLOAD_ROOT_PATH -from dbgpt.storage.vector_store.base import VectorStoreBase +from dbgpt.rag.chunk import Chunk +from dbgpt.storage.vector_store.base import VectorStoreBase, VectorStoreConfig logger = logging.getLogger(__name__) CFG = Config() +class WeaviateVectorConfig(VectorStoreConfig): + """Weaviate vector store config.""" + + weaviate_url: str = Field( + default=os.getenv("WEAVIATE_URL", None), + description="weaviate url address, if not set, will use the default url.", + ) + persist_path: str = Field( + default=os.getenv("WEAVIATE_PERSIST_PATH", None), + description="weaviate persist path.", + ) + + class WeaviateStore(VectorStoreBase): """Weaviate database""" - def __init__(self, ctx: dict) -> None: + def __init__(self, vector_store_config: WeaviateVectorConfig) -> None: """Initialize with Weaviate client.""" try: import weaviate @@ -23,12 +40,11 @@ def __init__(self, ctx: dict) -> None: "Please install it with `pip install weaviate-client`." ) - self.ctx = ctx - self.weaviate_url = ctx.get("WEAVIATE_URL", os.getenv("WEAVIATE_URL")) - self.embedding = ctx.get("embeddings", None) - self.vector_name = ctx["vector_store_name"] + self.weaviate_url = vector_store_config.weaviate_url + self.embedding = vector_store_config.embedding_fn + self.vector_name = vector_store_config.name self.persist_dir = os.path.join( - KNOWLEDGE_UPLOAD_ROOT_PATH, self.vector_name + ".vectordb" + vector_store_config.persist_path, vector_store_config.name + ".vectordb" ) self.vector_store_client = weaviate.Client(self.weaviate_url) @@ -120,11 +136,11 @@ def _default_schema(self) -> None: # Create the schema in Weaviate self.vector_store_client.schema.create(schema) - def load_document(self, documents: list) -> None: + def load_document(self, chunks: List[Chunk]) -> List[str]: """Load documents into Weaviate""" logger.info("Weaviate load document") - texts = [doc.page_content for doc in documents] - metadatas = [doc.metadata for doc in documents] + texts = [doc.content for doc in chunks] + metadatas = [doc.metadata for doc in chunks] # Import data with self.vector_store_client.batch as batch: @@ -134,7 +150,7 @@ def load_document(self, documents: list) -> None: for i in range(len(texts)): properties = { "metadata": metadatas[i]["source"], - "page_content": texts[i], + "content": texts[i], } self.vector_store_client.batch.add_data_object( diff --git a/dbgpt/_private/chat_util.py b/dbgpt/util/chat_util.py similarity index 81% rename from dbgpt/_private/chat_util.py rename to dbgpt/util/chat_util.py index 7f15d7657..1c76a43f5 100644 --- a/dbgpt/_private/chat_util.py +++ b/dbgpt/util/chat_util.py @@ -1,7 +1,6 @@ import asyncio from typing import Coroutine, List, Any - from dbgpt.app.scene import BaseChat, ChatFactory chat_factory = ChatFactory() @@ -43,3 +42,16 @@ async def _execute_task(task): # outputs: List[Any] = asyncio.run(_gather()) return await _gather() + + +def run_tasks( + tasks: List[Coroutine], +) -> List[Any]: + """Run a list of async tasks.""" + tasks_to_execute: List[Any] = tasks + + async def _gather() -> List[Any]: + return await asyncio.gather(*tasks_to_execute) + + outputs: List[Any] = asyncio.run(_gather()) + return outputs diff --git a/dbgpt/util/prompt_util.py b/dbgpt/util/prompt_util.py index d61eb4980..17d994d32 100644 --- a/dbgpt/util/prompt_util.py +++ b/dbgpt/util/prompt_util.py @@ -16,7 +16,7 @@ from dbgpt.util.global_helper import globals_helper from dbgpt._private.llm_metadata import LLMMetadata -from dbgpt.rag.embedding_engine.loader.token_splitter import TokenTextSplitter +from dbgpt.rag.text_splitter.token_splitter import TokenTextSplitter DEFAULT_PADDING = 5 DEFAULT_CHUNK_OVERLAP_RATIO = 0.1 @@ -93,6 +93,11 @@ def __init__( separator=separator, ) + def token_count(self, prompt_template: str) -> int: + """Get token count of prompt template.""" + empty_prompt_txt = get_empty_prompt_txt(prompt_template) + return len(self._tokenizer(empty_prompt_txt)) + @classmethod def from_llm_metadata( cls, diff --git a/dbgpt/rag/embedding_engine/loader/splitter_utils.py b/dbgpt/util/splitter_utils.py similarity index 100% rename from dbgpt/rag/embedding_engine/loader/splitter_utils.py rename to dbgpt/util/splitter_utils.py diff --git a/docs/docs/application/started_tutorial/chat_knowledge.md b/docs/docs/application/started_tutorial/chat_knowledge.md index 24ffc37aa..5fd72eda3 100644 --- a/docs/docs/application/started_tutorial/chat_knowledge.md +++ b/docs/docs/application/started_tutorial/chat_knowledge.md @@ -39,13 +39,23 @@ Document addition currently supports multiple types, such as plain text, URL cra

-Select the corresponding document and click `Finish`. +Select one or more corresponding documents and click `next`.

+### Documents Segmentation + +Choose Document Segmentation, you can choose to segment the document by chunk size, separator, paragraph or markdown header. The default is to segment the document by chunk size. + +and click Process, it will take a few minutes to complete the document segmentation. + +

+ +

+ ### Waiting for document vectorization @@ -63,7 +73,7 @@ Click the `Chat`button to start a conversation with the knowledge base.

- +

diff --git a/docs/static/img/chat_knowledge/chat.png b/docs/static/img/chat_knowledge/chat.png new file mode 100644 index 000000000..bcfb30cda Binary files /dev/null and b/docs/static/img/chat_knowledge/chat.png differ diff --git a/docs/static/img/chat_knowledge/create_knowledge_base.png b/docs/static/img/chat_knowledge/create_knowledge_base.png index 80fc5ffa2..3cc72cf6c 100644 Binary files a/docs/static/img/chat_knowledge/create_knowledge_base.png and b/docs/static/img/chat_knowledge/create_knowledge_base.png differ diff --git a/docs/static/img/chat_knowledge/doc_segmentation.png b/docs/static/img/chat_knowledge/doc_segmentation.png new file mode 100644 index 000000000..6d44ddfd0 Binary files /dev/null and b/docs/static/img/chat_knowledge/doc_segmentation.png differ diff --git a/docs/static/img/chat_knowledge/upload_doc.png b/docs/static/img/chat_knowledge/upload_doc.png index 29e79e983..55638953c 100644 Binary files a/docs/static/img/chat_knowledge/upload_doc.png and b/docs/static/img/chat_knowledge/upload_doc.png differ diff --git a/docs/static/img/chat_knowledge/upload_doc_finish.png b/docs/static/img/chat_knowledge/upload_doc_finish.png index 4bca7c55b..e5f17480e 100644 Binary files a/docs/static/img/chat_knowledge/upload_doc_finish.png and b/docs/static/img/chat_knowledge/upload_doc_finish.png differ diff --git a/docs/static/img/chat_knowledge/waiting_doc_vector.png b/docs/static/img/chat_knowledge/waiting_doc_vector.png index a7680b5b8..a8ab0857d 100644 Binary files a/docs/static/img/chat_knowledge/waiting_doc_vector.png and b/docs/static/img/chat_knowledge/waiting_doc_vector.png differ diff --git a/examples/rag/db_struct_rag_example.py b/examples/rag/db_struct_rag_example.py new file mode 100644 index 000000000..01a97341c --- /dev/null +++ b/examples/rag/db_struct_rag_example.py @@ -0,0 +1,68 @@ +from dbgpt.datasource.rdbms.conn_sqlite import SQLiteTempConnect +from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory +from dbgpt.serve.rag.assembler.db_struct import DBStructAssembler +from dbgpt.storage.vector_store.chroma_store import ChromaVectorConfig +from dbgpt.storage.vector_store.connector import VectorStoreConnector + +"""DB struct rag example. + pre-requirements: + set your embedding model path in your example code. + ``` + embedding_model_path = "{your_embedding_model_path}" + ``` + + Examples: + ..code-block:: shell + python examples/rag/db_struct_rag_example.py +""" + + +def _create_temporary_connection(): + """Create a temporary database connection for testing.""" + connect = SQLiteTempConnect.create_temporary_db() + connect.create_temp_tables( + { + "user": { + "columns": { + "id": "INTEGER PRIMARY KEY", + "name": "TEXT", + "age": "INTEGER", + }, + "data": [ + (1, "Tom", 10), + (2, "Jerry", 16), + (3, "Jack", 18), + (4, "Alice", 20), + (5, "Bob", 22), + ], + } + } + ) + return connect + + +if __name__ == "__main__": + connection = _create_temporary_connection() + + embedding_model_path = "{your_embedding_model_path}" + vector_persist_path = "{your_persist_path}" + embedding_fn = DefaultEmbeddingFactory( + default_model_name=embedding_model_path + ).create() + vector_connector = VectorStoreConnector.from_default( + "Chroma", + vector_store_config=ChromaVectorConfig( + name="vector_name", + persist_path=vector_persist_path, + ), + embedding_fn=embedding_fn, + ) + assembler = DBStructAssembler.load_from_connection( + connection=connection, + vector_store_connector=vector_connector, + ) + assembler.persist() + # get db struct retriever + retriever = assembler.as_retriever(top_k=1) + chunks = retriever.retrieve("show columns from user") + print(f"db struct rag example results:{[chunk.content for chunk in chunks]}") diff --git a/examples/rag/embedding_rag_example.py b/examples/rag/embedding_rag_example.py new file mode 100644 index 000000000..b51a60444 --- /dev/null +++ b/examples/rag/embedding_rag_example.py @@ -0,0 +1,53 @@ +import asyncio + +from dbgpt.rag.chunk_manager import ChunkParameters +from dbgpt.rag.embedding.embedding_factory import DefaultEmbeddingFactory +from dbgpt.rag.knowledge.factory import KnowledgeFactory +from dbgpt.serve.rag.assembler.embedding import EmbeddingAssembler +from dbgpt.storage.vector_store.chroma_store import ChromaVectorConfig +from dbgpt.storage.vector_store.connector import VectorStoreConnector + +"""Embedding rag example. + pre-requirements: + set your embedding model path in your example code. + ``` + embedding_model_path = "{your_embedding_model_path}" + ``` + + Examples: + ..code-block:: shell + python examples/rag/embedding_rag_example.py +""" + + +async def main(): + file_path = "./docs/docs/awel.md" + vector_persist_path = "{your_persist_path}" + embedding_model_path = "{your_embedding_model_path}" + knowledge = KnowledgeFactory.from_file_path(file_path) + vector_connector = VectorStoreConnector.from_default( + "Chroma", + vector_store_config=ChromaVectorConfig( + name="vector_name", + persist_path=vector_persist_path, + ), + embedding_fn=DefaultEmbeddingFactory( + default_model_name=embedding_model_path + ).create(), + ) + chunk_parameters = ChunkParameters(chunk_strategy="CHUNK_BY_SIZE") + # get embedding assembler + assembler = EmbeddingAssembler.load_from_knowledge( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + vector_store_connector=vector_connector, + ) + assembler.persist() + # get embeddings retriever + retriever = assembler.as_retriever(3) + chunks = await retriever.aretrieve_with_scores("RAG", 0.3) + print(f"embedding rag example results:{chunks}") + + +if __name__ == "__main__": + asyncio.run(main()) diff --git a/examples/rag/rewrite_rag_example.py b/examples/rag/rewrite_rag_example.py new file mode 100644 index 000000000..f96e53aed --- /dev/null +++ b/examples/rag/rewrite_rag_example.py @@ -0,0 +1,42 @@ +import asyncio +import os + +from dbgpt.model import OpenAILLMClient +from dbgpt.rag.retriever.rewrite import QueryRewrite + +"""Query rewrite example. + pre-requirements: + 1. install openai python sdk + ``` + pip install openai + ``` + 2. set openai key and base + ``` + export OPENAI_API_KEY={your_openai_key} + export OPENAI_API_BASE={your_openai_base} + ``` + or + ``` + import os + os.environ["OPENAI_API_KEY"] = {your_openai_key} + os.environ["OPENAI_API_BASE"] = {your_openai_base} + ``` + Examples: + ..code-block:: shell + python examples/rag/rewrite_rag_example.py +""" + + +async def main(): + query = "compare steve curry and lebron james" + llm_client = OpenAILLMClient() + reinforce = QueryRewrite( + llm_client=llm_client, + model_name="gpt-3.5-turbo", + ) + return await reinforce.rewrite(origin_query=query, nums=1) + + +if __name__ == "__main__": + output = asyncio.run(main()) + print(f"output: \n\n{output}") diff --git a/examples/rag/summary_extractor_example.py b/examples/rag/summary_extractor_example.py new file mode 100644 index 000000000..825c2ce76 --- /dev/null +++ b/examples/rag/summary_extractor_example.py @@ -0,0 +1,47 @@ +import asyncio + +from dbgpt.model import OpenAILLMClient +from dbgpt.rag.chunk_manager import ChunkParameters +from dbgpt.rag.knowledge.factory import KnowledgeFactory +from dbgpt.serve.rag.assembler.summary import SummaryAssembler + +"""Summary extractor example. + pre-requirements: + 1. install openai python sdk + ``` + pip install openai + ``` + 2. set openai key and base + ``` + export OPENAI_API_KEY={your_openai_key} + export OPENAI_API_BASE={your_openai_base} + ``` + or + ``` + import os + os.environ["OPENAI_API_KEY"] = {your_openai_key} + os.environ["OPENAI_API_BASE"] = {your_openai_base} + ``` + Examples: + ..code-block:: shell + python examples/rag/summary_extractor_example.py +""" + + +async def main(): + file_path = "./docs/docs/awel.md" + llm_client = OpenAILLMClient() + knowledge = KnowledgeFactory.from_file_path(file_path) + chunk_parameters = ChunkParameters(chunk_strategy="CHUNK_BY_SIZE") + assembler = SummaryAssembler.load_from_knowledge( + knowledge=knowledge, + chunk_parameters=chunk_parameters, + llm_client=llm_client, + model_name="gpt-3.5-turbo", + ) + return await assembler.generate_summary() + + +if __name__ == "__main__": + output = asyncio.run(main()) + print(f"output: \n\n{output}") diff --git a/web/app/i18n.ts b/web/app/i18n.ts index 1ca891450..d15310b67 100644 --- a/web/app/i18n.ts +++ b/web/app/i18n.ts @@ -10,12 +10,14 @@ const resources = { Owner: 'Owner', Count: 'Count', File_type_Invalid: 'The file type is invalid', - Knowledge_Space_Config: 'Knowledge Space Config', - Choose_a_Datasource_type: 'Choose a Datasource type', - Setup_the_Datasource: 'Setup the Datasource', + Knowledge_Space_Config: 'Space Config', + Choose_a_Datasource_type: 'Datasource type', + Segmentation: 'Segmentation', + No_parameter: `No segementation parameter required.`, Knowledge_Space_Name: 'Knowledge Space Name', Please_input_the_name: 'Please input the name', Please_input_the_owner: 'Please input the owner', + Please_select_file: 'Please select one file', Description: 'Description', Please_input_the_description: 'Please input the description', Next: 'Next', @@ -29,7 +31,7 @@ const resources = { Name: 'Name', Text_Source: 'Text Source(Optional)', Please_input_the_text_source: 'Please input the text source', - Synch: 'Synch', + Sync: 'Sync', Back: 'Back', Finish: 'Finish', Web_Page_URL: 'Web Page URL', @@ -41,7 +43,7 @@ const resources = { Arguments: 'Arguments', Type: 'Type', Size: 'Size', - Last_Synch: 'Last Synch', + Last_Sync: 'Last Sync', Status: 'Status', Result: 'Result', Details: 'Details', @@ -62,6 +64,9 @@ const resources = { Recall_Type: 'recall type', model: 'model', A_model_used: 'A model used to create vector representations of text or other data', + Automatic: 'Automatic', + Process: 'Process', + Automatic_desc: 'Automatically set segmentation and preprocessing rules.', chunk_size: 'chunk_size', The_size_of_the_data_chunks: 'The size of the data chunks used in processing', chunk_overlap: 'chunk_overlap', @@ -187,11 +192,14 @@ const resources = { Count: '文档数', File_type_Invalid: '文件类型错误', Knowledge_Space_Config: '知识库配置', - Choose_a_Datasource_type: '选择数据源类型', - Setup_the_Datasource: '设置数据源', + Choose_a_Datasource_type: '知识库类型', + Segmentation: '分片', + No_parameter: '不需要配置分片参数', + Setup_the_Datasource: '处理', Knowledge_Space_Name: '知识库名称', Please_input_the_name: '请输入名称', Please_input_the_owner: '请输入创建人', + Please_select_file: '请至少选择一个文件', Description: '描述', Please_input_the_description: '请输入描述', Next: '下一步', @@ -205,7 +213,7 @@ const resources = { Name: '名称', Text_Source: '文本来源(可选)', Please_input_the_text_source: '请输入文本来源', - Synch: '同步', + Sync: '同步', Back: '上一步', Finish: '完成', Web_Page_URL: '网页网址', @@ -217,7 +225,7 @@ const resources = { Arguments: '参数', Type: '类型', Size: '切片', - Last_Synch: '上次同步时间', + Last_Sync: '上次同步时间', Status: '状态', Result: '结果', Details: '明细', @@ -239,6 +247,9 @@ const resources = { Recall_Type: '回忆类型', model: '模型', A_model_used: '用于创建文本或其他数据的矢量表示的模型', + Automatic: '自动切片', + Process: '切片处理', + Automatic_desc: '自动设置分割和预处理规则。', chunk_size: '块大小', The_size_of_the_data_chunks: '处理中使用的数据块的大小', chunk_overlap: '块重叠', diff --git a/web/client/api/request.ts b/web/client/api/request.ts index 19a1d1aad..e867f3485 100644 --- a/web/client/api/request.ts +++ b/web/client/api/request.ts @@ -19,8 +19,11 @@ import { DocumentParams, IArguments, IChunkList, + IChunkStrategyResponse, IDocumentResponse, ISpace, + ISyncBatchParameter, + ISyncBatchResponse, } from '@/types/knowledge'; import { UpdatePromptParams, IPrompt, PromptParams } from '@/types/prompt'; @@ -126,8 +129,8 @@ export const saveArguments = (knowledgeName: string, data: ArgumentsParams) => { export const getSpaceList = () => { return POST>('/knowledge/space/list', {}); }; -export const getDocumentList = (knowLedgeName: string, data: Record) => { - return POST, IDocumentResponse>(`/knowledge/${knowLedgeName}/document/list`, data); +export const getDocumentList = (spaceName: string, data: Record>) => { + return POST>, IDocumentResponse>(`/knowledge/${spaceName}/document/list`, data); }; export const addDocument = (knowledgeName: string, data: DocumentParams) => { @@ -138,10 +141,18 @@ export const addSpace = (data: AddKnowledgeParams) => { return POST>(`/knowledge/space/add`, data); }; +export const getChunkStrategies = () => { + return GET>('/knowledge/document/chunkstrategies'); +}; + export const syncDocument = (spaceName: string, data: Record>) => { return POST>, string | null>(`/knowledge/${spaceName}/document/sync`, data); }; +export const syncBatchDocument = (spaceName: string, data: Array) => { + return POST, ISyncBatchResponse>(`/knowledge/${spaceName}/document/sync_batch`, data); +}; + export const uploadDocument = (knowLedgeName: string, data: FormData) => { return POST(`/knowledge/${knowLedgeName}/document/upload`, data); }; diff --git a/web/components/chat/doc-upload.tsx b/web/components/chat/doc-upload.tsx index 555536851..b89af4cb4 100644 --- a/web/components/chat/doc-upload.tsx +++ b/web/components/chat/doc-upload.tsx @@ -1,5 +1,5 @@ import { ChatContext } from '@/app/chat-context'; -import { apiInterceptors, syncDocument, uploadDocument } from '@/client/api'; +import { apiInterceptors, uploadDocument } from '@/client/api'; import useSummary from '@/hooks/use-summary'; import { PaperClipOutlined } from '@ant-design/icons'; @@ -15,12 +15,8 @@ export default function DocUpload(props: IProps) { const { dbParam, setDocId } = useContext(ChatContext); const { onUploadFinish, handleFinish } = props; const summary = useSummary(); - const [loading, setLoading] = useState(false); - const handleSync = async (knowledgeName: string, id: number) => { - await apiInterceptors(syncDocument(knowledgeName, { doc_ids: [id] })); - }; const handleUpload = async (data: any) => { setLoading(true); const formData = new FormData(); @@ -36,7 +32,6 @@ export default function DocUpload(props: IProps) { } setDocId(res[1]); onUploadFinish(); - await handleSync(dbParam || 'default', res?.[1] as number); setLoading(false); handleFinish?.(true); await summary(res[1]); diff --git a/web/components/common/completion-input.tsx b/web/components/common/completion-input.tsx index ebf9ad306..24d929496 100644 --- a/web/components/common/completion-input.tsx +++ b/web/components/common/completion-input.tsx @@ -41,9 +41,9 @@ function CompletionInput({ children, loading, onSubmit, handleFinish, ...props } setDocuments(data?.data!); } - const onUploadFinish = () => { + const onUploadFinish = async () => { uploadCountRef.current += 1; - fetchDocuments(); + await fetchDocuments(); }; return ( diff --git a/web/components/icons/done-icon.tsx b/web/components/icons/done-icon.tsx new file mode 100644 index 000000000..55bb2a2e8 --- /dev/null +++ b/web/components/icons/done-icon.tsx @@ -0,0 +1,21 @@ +export default function DoneIcon() { + return ( + + + + + + ); +} diff --git a/web/components/icons/index.tsx b/web/components/icons/index.tsx index 2ad9f4b68..a1807b2d7 100644 --- a/web/components/icons/index.tsx +++ b/web/components/icons/index.tsx @@ -12,6 +12,10 @@ import SunnySvg from './sunny-svg'; import Knowledge from './knowledge'; import FileDone from './file-done'; import FileSync from './file-sync'; +import PendingIcon from './pending-icon'; +import SyncIcon from './sync-icon'; +import DoneIcon from './done-icon'; +import FileError from './file-error'; export { ColorfulDashboard, @@ -28,4 +32,8 @@ export { Knowledge, FileDone, FileSync, + PendingIcon, + SyncIcon, + DoneIcon, + FileError, }; diff --git a/web/components/icons/pending-icon.tsx b/web/components/icons/pending-icon.tsx new file mode 100644 index 000000000..b76655e74 --- /dev/null +++ b/web/components/icons/pending-icon.tsx @@ -0,0 +1,13 @@ +export default function PendingIcon() { + return ( + + + + + + ); +} diff --git a/web/components/icons/sync-icon.tsx b/web/components/icons/sync-icon.tsx new file mode 100644 index 000000000..b7dcbcabd --- /dev/null +++ b/web/components/icons/sync-icon.tsx @@ -0,0 +1,11 @@ +export default function SyncIcon() { + return ( + + + + ); +} diff --git a/web/components/knowledge/doc-panel.tsx b/web/components/knowledge/doc-panel.tsx index 950219454..6344611ff 100644 --- a/web/components/knowledge/doc-panel.tsx +++ b/web/components/knowledge/doc-panel.tsx @@ -56,7 +56,7 @@ export default function DocPanel(props: IProps) { }), ); setDocuments(data?.data); - setTotal(data?.total); + setTotal(data?.total || 0); setIsLoading(false); } @@ -175,7 +175,7 @@ export default function DocPanel(props: IProps) { >

{t('Size')}:

{document.chunk_size} chunks

-

{t('Last_Synch')}:

+

{t('Last_Sync')}:

{moment(document.last_sync).format('YYYY-MM-DD HH:MM:SS')}

{renderResultTag(document.status, document.result)}

diff --git a/web/components/knowledge/doc-type-form.tsx b/web/components/knowledge/doc-type-form.tsx index ef9782896..5eff13873 100644 --- a/web/components/knowledge/doc-type-form.tsx +++ b/web/components/knowledge/doc-type-form.tsx @@ -12,19 +12,19 @@ export default function DocTypeForm(props: IProps) { const { handleStepChange } = props; const docTypeList = [ { - type: 'text', + type: 'TEXT', title: t('Text'), subTitle: t('Fill your raw text'), iconType: 'TEXT', }, { - type: 'webPage', + type: 'URL', title: t('URL'), subTitle: t('Fetch_the_content_of_a_URL'), iconType: 'WEBPAGE', }, { - type: 'file', + type: 'DOCUMENT', title: t('Document'), subTitle: t('Upload_a_document'), iconType: 'DOCUMENT', diff --git a/web/components/knowledge/doc-upload-form.tsx b/web/components/knowledge/doc-upload-form.tsx index 5024bb70d..81ec91978 100644 --- a/web/components/knowledge/doc-upload-form.tsx +++ b/web/components/knowledge/doc-upload-form.tsx @@ -1,10 +1,12 @@ -import { Button, Form, Input, Switch, Upload, message, Spin } from 'antd'; +import { Button, Form, Input, Upload, Spin, message } from 'antd'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { InboxOutlined } from '@ant-design/icons'; -import { apiInterceptors, addDocument, uploadDocument, syncDocument } from '@/client/api'; +import { apiInterceptors, addDocument, uploadDocument } from '@/client/api'; import { RcFile, UploadChangeParam } from 'antd/es/upload'; -import { StepChangeParams } from '@/types/knowledge'; +import { File, StepChangeParams } from '@/types/knowledge'; +import { UploadRequestOption as RcCustomRequestOptions } from 'rc-upload/lib/interface'; +import classNames from 'classnames'; type FileParams = { file: RcFile; @@ -12,13 +14,13 @@ type FileParams = { }; type IProps = { + className: string; handleStepChange: (params: StepChangeParams) => void; spaceName: string; docType: string; }; type FieldType = { - synchChecked: boolean; docName: string; textSource: string; originFileObj: FileParams; @@ -30,18 +32,19 @@ const { Dragger } = Upload; const { TextArea } = Input; export default function DocUploadForm(props: IProps) { - const { handleStepChange, spaceName, docType } = props; + const { className, handleStepChange, spaceName, docType } = props; const { t } = useTranslation(); const [form] = Form.useForm(); const [spinning, setSpinning] = useState(false); + const [files, setFiles] = useState>([]); - const handleFinish = async (data: FieldType) => { - const { synchChecked, docName, textSource, originFileObj, text, webPageUrl } = data; - let res; + const upload = async (data: FieldType) => { + const { docName, textSource, text, webPageUrl } = data; + let docId; setSpinning(true); switch (docType) { - case 'webPage': - res = await apiInterceptors( + case 'URL': + [, docId] = await apiInterceptors( addDocument(spaceName as string, { doc_name: docName, content: webPageUrl, @@ -49,16 +52,8 @@ export default function DocUploadForm(props: IProps) { }), ); break; - case 'file': - const formData = new FormData(); - formData.append('doc_name', docName || originFileObj.file.name); - formData.append('doc_file', originFileObj.file); - formData.append('doc_type', 'DOCUMENT'); - - res = await apiInterceptors(uploadDocument(spaceName as string, formData)); - break; - default: - res = await apiInterceptors( + case 'TEXT': + [, docId] = await apiInterceptors( addDocument(spaceName as string, { doc_name: docName, source: textSource, @@ -68,38 +63,60 @@ export default function DocUploadForm(props: IProps) { ); break; } - synchChecked && handleSync?.(spaceName as string, res?.[1] as number); setSpinning(false); - handleStepChange({ label: 'finish' }); - }; - - const handleSync = async (knowledgeName: string, id: number) => { - await apiInterceptors(syncDocument(knowledgeName, { doc_ids: [id] })); + if (docType === 'DOCUMENT' && files.length < 1) { + return message.error('Upload failed, please re-upload.'); + } else if (docType !== 'DOCUMENT' && !docId) { + return message.error('Upload failed, please re-upload.'); + } + handleStepChange({ + label: 'forward', + files: + docType === 'DOCUMENT' + ? files + : [ + { + name: docName, + doc_id: docId || -1, + }, + ], + }); }; const handleFileChange = ({ file, fileList }: UploadChangeParam) => { - if (!form.getFieldsValue().docName) { - form.setFieldValue('docName', file.name); - } if (fileList.length === 0) { form.setFieldValue('originFileObj', null); } }; - const beforeUpload = () => { - const curFile = form.getFieldsValue().originFileObj; - if (!curFile) { - return false; + const uploadFile = async (options: RcCustomRequestOptions) => { + const { onSuccess, onError, file } = options; + const formData = new FormData(); + const filename = file?.name; + formData.append('doc_name', filename); + formData.append('doc_file', file); + formData.append('doc_type', 'DOCUMENT'); + const [, docId] = await apiInterceptors(uploadDocument(spaceName, formData)); + if (Number.isInteger(docId)) { + onSuccess && onSuccess(docId || 0); + setFiles((files) => { + files.push({ + name: filename, + doc_id: docId || -1, + }); + return files; + }); + } else { + onError && onError({ name: '', message: '' }); } - message.warning(t('Limit_Upload_File_Count_Tips')); - return Upload.LIST_IGNORE; }; - const renderChooseType = () => {}; - const renderText = () => { return ( <> + label={`${t('Name')}:`} name="docName" rules={[{ required: true, message: t('Please_input_the_name') }]}> + + label={`${t('Text_Source')}:`} name="textSource" @@ -107,7 +124,6 @@ export default function DocUploadForm(props: IProps) { > - label={`${t('Text')}:`} name="text" rules={[{ required: true, message: t('Please_input_the_description') }]}>