diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..347d681fa1be11c55e1a1c895fb1976676384768 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,12 @@ +**/node_modules +**/dist +**/.git +**/.gitignore +**/.vscode +**/README.md +**/LICENSE +**/.env +**/npm-debug.log +**/yarn-debug.log +**/yarn-error.log +**/.pnpm-debug.log diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000000000000000000000000000000..988ff22c4502bf56b9b64c26c7dc01f92d5d99f8 --- /dev/null +++ b/.env.example @@ -0,0 +1,6 @@ +OPENAI_API_KEY= +OPENAI_API_BASE= +OPENAI_MODEL= +SILICON_API_KEY= +SILICON_MODEL= +InternLM_API_KEY= \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index a6344aac8c09253b3b630fb776ae94478aa0275b..7b9d43cd21feb4270b5e58e1e959613896bdd1bc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,35 +1,4 @@ -*.7z filter=lfs diff=lfs merge=lfs -text -*.arrow filter=lfs diff=lfs merge=lfs -text -*.bin filter=lfs diff=lfs merge=lfs -text -*.bz2 filter=lfs diff=lfs merge=lfs -text -*.ckpt filter=lfs diff=lfs merge=lfs -text -*.ftz filter=lfs diff=lfs merge=lfs -text -*.gz filter=lfs diff=lfs merge=lfs -text -*.h5 filter=lfs diff=lfs merge=lfs -text -*.joblib filter=lfs diff=lfs merge=lfs -text -*.lfs.* filter=lfs diff=lfs merge=lfs -text -*.mlmodel filter=lfs diff=lfs merge=lfs -text -*.model filter=lfs diff=lfs merge=lfs -text -*.msgpack filter=lfs diff=lfs merge=lfs -text -*.npy filter=lfs diff=lfs merge=lfs -text -*.npz filter=lfs diff=lfs merge=lfs -text -*.onnx filter=lfs diff=lfs merge=lfs -text -*.ot filter=lfs diff=lfs merge=lfs -text -*.parquet filter=lfs diff=lfs merge=lfs -text -*.pb filter=lfs diff=lfs merge=lfs -text -*.pickle filter=lfs diff=lfs merge=lfs -text -*.pkl filter=lfs diff=lfs merge=lfs -text -*.pt filter=lfs diff=lfs merge=lfs -text -*.pth filter=lfs diff=lfs merge=lfs -text -*.rar filter=lfs diff=lfs merge=lfs -text -*.safetensors filter=lfs diff=lfs merge=lfs -text -saved_model/**/* filter=lfs diff=lfs merge=lfs -text -*.tar.* filter=lfs diff=lfs merge=lfs -text -*.tar filter=lfs diff=lfs merge=lfs -text -*.tflite filter=lfs diff=lfs merge=lfs -text -*.tgz filter=lfs diff=lfs merge=lfs -text -*.wasm filter=lfs diff=lfs merge=lfs -text -*.xz filter=lfs diff=lfs merge=lfs -text -*.zip filter=lfs diff=lfs merge=lfs -text -*.zst filter=lfs diff=lfs merge=lfs -text -*tfevents* filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.gif filter=lfs diff=lfs merge=lfs -text +*.mp4 filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d9636f41858a5f157483f5852dd3bdeacfde85ff --- /dev/null +++ b/.gitignore @@ -0,0 +1,165 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[ciod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/latest/usage/project/#working-with-version-control +.pdm.toml +.pdm-python +.pdm-build/ + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +.env +temp diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..da8ac627c3efbab20b63e948b4dea14446ae4b60 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,46 @@ +exclude: ^(tests/data|scripts|frontend/React)/ +repos: + - repo: https://github.com/PyCQA/flake8 + rev: 7.0.0 + hooks: + - id: flake8 + args: ["--max-line-length=120"] + - repo: https://github.com/PyCQA/isort + rev: 5.13.2 + hooks: + - id: isort + - repo: https://github.com/pre-commit/mirrors-yapf + rev: v0.32.0 + hooks: + - id: yapf + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: trailing-whitespace + - id: check-yaml + - id: end-of-file-fixer + - id: requirements-txt-fixer + - id: double-quote-string-fixer + - id: check-merge-conflict + - id: fix-encoding-pragma + args: ["--remove"] + - id: mixed-line-ending + args: ["--fix=lf"] + - repo: https://github.com/executablebooks/mdformat + rev: 0.7.17 + hooks: + - id: mdformat + args: ["--number"] + additional_dependencies: + - mdformat-openmmlab + - mdformat_frontmatter + - linkify-it-py + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + - repo: https://github.com/asottile/pyupgrade + rev: v3.15.0 + hooks: + - id: pyupgrade + args: ["--py36-plus"] diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000000000000000000000000000000000000..73cb3ae572175832826c1b6386caaedf9aa037bd --- /dev/null +++ b/.pylintrc @@ -0,0 +1,428 @@ +# This Pylint rcfile contains a best-effort configuration to uphold the +# best-practices and style described in the Google Python style guide: +# https://google.github.io/styleguide/pyguide.html +# +# Its canonical open-source location is: +# https://google.github.io/styleguide/pylintrc + +[MASTER] + +# Files or directories to be skipped. They should be base names, not paths. +ignore=third_party,storage + +# Files or directories matching the regex patterns are skipped. The regex +# matches against base names, not paths. +ignore-patterns= + +# Pickle collected data for later comparisons. +persistent=no + +# List of plugins (as comma separated values of python modules names) to load, +# usually to register additional checkers. +load-plugins= + +# Use multiple processes to speed up Pylint. +jobs=4 + +# Allow loading of arbitrary C extensions. Extensions are imported into the +# active Python interpreter and may run arbitrary code. +unsafe-load-any-extension=no + + +[MESSAGES CONTROL] + +# Only show warnings with the listed confidence levels. Leave empty to show +# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED +confidence= + +# Enable the message, report, category or checker with the given id(s). You can +# either give multiple identifier separated by comma (,) or put this option +# multiple time (only on the command line, not in the configuration file where +# it should appear only once). See also the "--disable" option for examples. +#enable= + +# Disable the message, report, category or checker with the given id(s). You +# can either give multiple identifiers separated by comma (,) or put this +# option multiple times (only on the command line, not in the configuration +# file where it should appear only once).You can also use "--disable=all" to +# disable everything first and then reenable specific checks. For example, if +# you want to run only the similarities checker, you can use "--disable=all +# --enable=similarities". If you want to run only the classes checker, but have +# no Warning level messages displayed, use"--disable=all --enable=classes +# --disable=W" +disable=abstract-method, + apply-builtin, + arguments-differ, + attribute-defined-outside-init, + backtick, + bad-option-value, + basestring-builtin, + buffer-builtin, + c-extension-no-member, + consider-using-enumerate, + cmp-builtin, + cmp-method, + coerce-builtin, + coerce-method, + delslice-method, + div-method, + duplicate-code, + eq-without-hash, + execfile-builtin, + file-builtin, + filter-builtin-not-iterating, + fixme, + getslice-method, + global-statement, + hex-method, + idiv-method, + implicit-str-concat, + import-error, + import-self, + import-star-module-level, + inconsistent-return-statements, + input-builtin, + intern-builtin, + invalid-str-codec, + locally-disabled, + long-builtin, + long-suffix, + map-builtin-not-iterating, + misplaced-comparison-constant, + missing-function-docstring, + metaclass-assignment, + next-method-called, + next-method-defined, + no-absolute-import, + no-else-break, + no-else-continue, + no-else-raise, + no-else-return, + no-init, # added + no-member, + no-name-in-module, + no-self-use, + nonzero-method, + oct-method, + old-division, + old-ne-operator, + old-octal-literal, + old-raise-syntax, + parameter-unpacking, + print-statement, + raising-string, + range-builtin-not-iterating, + raw_input-builtin, + rdiv-method, + reduce-builtin, + relative-import, + reload-builtin, + round-builtin, + setslice-method, + signature-differs, + standarderror-builtin, + suppressed-message, + sys-max-int, + too-few-public-methods, + too-many-ancestors, + too-many-arguments, + too-many-boolean-expressions, + too-many-branches, + too-many-instance-attributes, + too-many-locals, + too-many-nested-blocks, + too-many-public-methods, + too-many-return-statements, + too-many-statements, + trailing-newlines, + unichr-builtin, + unicode-builtin, + unnecessary-pass, + unpacking-in-except, + useless-else-on-loop, + useless-object-inheritance, + useless-suppression, + using-cmp-argument, + wrong-import-order, + xrange-builtin, + zip-builtin-not-iterating, + + +[REPORTS] + +# Set the output format. Available formats are text, parseable, colorized, msvs +# (visual studio) and html. You can also give a reporter class, eg +# mypackage.mymodule.MyReporterClass. +output-format=colorized + +# Tells whether to display a full report or only the messages +reports=no + +# Python expression which should return a note less than 10 (10 is the highest +# note). You have access to the variables errors warning, statement which +# respectively contain the number of errors / warnings messages and the total +# number of statements analyzed. This is used by the global evaluation report +# (RP0004). +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) + +# Template used to display messages. This is a python new-style format string +# used to format the message information. See doc for all details +#msg-template= + + +[BASIC] + +# Good variable names which should always be accepted, separated by a comma +good-names=main,_ + +# Bad variable names which should always be refused, separated by a comma +bad-names= + +# Colon-delimited sets of names that determine each other's naming style when +# the name regexes allow several styles. +name-group= + +# Include a hint for the correct naming format with invalid-name +include-naming-hint=no + +# List of decorators that produce properties, such as abc.abstractproperty. Add +# to this list to register other decorators that produce valid properties. +property-classes=abc.abstractproperty,cached_property.cached_property,cached_property.threaded_cached_property,cached_property.cached_property_with_ttl,cached_property.threaded_cached_property_with_ttl + +# Regular expression matching correct function names +function-rgx=^(?:(?PsetUp|tearDown|setUpModule|tearDownModule)|(?P_?[A-Z][a-zA-Z0-9]*)|(?P_?[a-z][a-z0-9_]*))$ + +# Regular expression matching correct variable names +variable-rgx=^[a-z][a-z0-9_]*$ + +# Regular expression matching correct constant names +const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$ + +# Regular expression matching correct attribute names +attr-rgx=^_{0,2}[a-z][a-z0-9_]*$ + +# Regular expression matching correct argument names +argument-rgx=^[a-z][a-z0-9_]*$ + +# Regular expression matching correct class attribute names +class-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$ + +# Regular expression matching correct inline iteration names +inlinevar-rgx=^[a-z][a-z0-9_]*$ + +# Regular expression matching correct class names +class-rgx=^_?[A-Z][a-zA-Z0-9]*$ + +# Regular expression matching correct module names +module-rgx=^(_?[a-z][a-z0-9_]*|__init__)$ + +# Regular expression matching correct method names +method-rgx=(?x)^(?:(?P_[a-z0-9_]+__|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass|(test|assert)_*[A-Z0-9][a-zA-Z0-9_]*|next)|(?P_{0,2}[A-Z][a-zA-Z0-9_]*)|(?P_{0,2}[a-z][a-z0-9_]*))$ + +# Regular expression which should only match function or class names that do +# not require a docstring. +no-docstring-rgx=(__.*__|main|test.*|.*test|.*Test)$ + +# Minimum line length for functions/classes that require docstrings, shorter +# ones are exempt. +docstring-min-length=10 + + +[TYPECHECK] + +# List of decorators that produce context managers, such as +# contextlib.contextmanager. Add to this list to register other decorators that +# produce valid context managers. +contextmanager-decorators=contextlib.contextmanager,contextlib2.contextmanager + +# Tells whether missing members accessed in mixin class should be ignored. A +# mixin class is detected if its name ends with "mixin" (case insensitive). +ignore-mixin-members=yes + +# List of module names for which member attributes should not be checked +# (useful for modules/projects where namespaces are manipulated during runtime +# and thus existing member attributes cannot be deduced by static analysis. It +# supports qualified module names, as well as Unix pattern matching. +ignored-modules= + +# List of class names for which member attributes should not be checked (useful +# for classes with dynamically set attributes). This supports the use of +# qualified names. +ignored-classes=optparse.Values,thread._local,_thread._local + +# List of members which are set dynamically and missed by pylint inference +# system, and so shouldn't trigger E1101 when accessed. Python regular +# expressions are accepted. +generated-members= + + +[FORMAT] + +# Maximum number of characters on a single line. +max-line-length=120 + +# TODO(https://github.com/PyCQA/pylint/issues/3352): Direct pylint to exempt +# lines made too long by directives to pytype. + +# Regexp for a line that is allowed to be longer than the limit. +ignore-long-lines=(?x)( + ^\s*(\#\ )??$| + ^\s*(from\s+\S+\s+)?import\s+.+$) + +# Allow the body of an if to be on the same line as the test if there is no +# else. +single-line-if-stmt=yes + +# Maximum number of lines in a module +max-module-lines=99999 + +# String used as indentation unit. The internal Google style guide mandates 2 +# spaces. Google's externaly-published style guide says 4, consistent with +# PEP 8. Here, we use 2 spaces, for conformity with many open-sourced Google +# projects (like TensorFlow). +indent-string=' ' + +# Number of spaces of indent required inside a hanging or continued line. +indent-after-paren=4 + +# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. +expected-line-ending-format= + + +[MISCELLANEOUS] + +# List of note tags to take in consideration, separated by a comma. +notes=TODO + + +[STRING] + +# This flag controls whether inconsistent-quotes generates a warning when the +# character used as a quote delimiter is used inconsistently within a module. +check-quote-consistency=yes + + +[VARIABLES] + +# Tells whether we should check for unused import in __init__ files. +init-import=no + +# A regular expression matching the name of dummy variables (i.e. expectedly +# not used). +dummy-variables-rgx=^\*{0,2}(_$|unused_|dummy_) + +# List of additional names supposed to be defined in builtins. Remember that +# you should avoid to define new builtins when possible. +additional-builtins= + +# List of strings which can identify a callback function by name. A callback +# name must start or end with one of those strings. +callbacks=cb_,_cb + +# List of qualified module names which can have objects that can redefine +# builtins. +redefining-builtins-modules=six,six.moves,past.builtins,future.builtins,functools + + +[LOGGING] + +# Logging modules to check that the string format arguments are in logging +# function parameter format +logging-modules=logging,absl.logging,tensorflow.io.logging + + +[SIMILARITIES] + +# Minimum lines number of a similarity. +min-similarity-lines=4 + +# Ignore comments when computing similarities. +ignore-comments=yes + +# Ignore docstrings when computing similarities. +ignore-docstrings=yes + +# Ignore imports when computing similarities. +ignore-imports=no + + +[SPELLING] + +# Spelling dictionary name. Available dictionaries: none. To make it working +# install python-enchant package. +spelling-dict= + +# List of comma separated words that should not be checked. +spelling-ignore-words= + +# A path to a file that contains private dictionary; one word per line. +spelling-private-dict-file= + +# Tells whether to store unknown words to indicated private dictionary in +# --spelling-private-dict-file option instead of raising a message. +spelling-store-unknown-words=no + + +[IMPORTS] + +# Deprecated modules which should not be used, separated by a comma +deprecated-modules=regsub, + TERMIOS, + Bastion, + rexec, + sets + +# Create a graph of every (i.e. internal and external) dependencies in the +# given file (report RP0402 must not be disabled) +import-graph= + +# Create a graph of external dependencies in the given file (report RP0402 must +# not be disabled) +ext-import-graph= + +# Create a graph of internal dependencies in the given file (report RP0402 must +# not be disabled) +int-import-graph= + +# Force import order to recognize a module as part of the standard +# compatibility libraries. +known-standard-library= + +# Force import order to recognize a module as part of a third party library. +known-third-party=enchant, absl + +# Analyse import fallback blocks. This can be used to support both Python 2 and +# 3 compatible code, which means that the block might have code that exists +# only in one or another interpreter, leading to false positives when analysed. +analyse-fallback-blocks=no + + +[CLASSES] + +# List of method names used to declare (i.e. assign) instance attributes. +defining-attr-methods=__init__, + __new__, + setUp + +# List of member names, which should be excluded from the protected access +# warning. +exclude-protected=_asdict, + _fields, + _replace, + _source, + _make + +# List of valid names for the first argument in a class method. +valid-classmethod-first-arg=cls, + class_ + +# List of valid names for the first argument in a metaclass class method. +valid-metaclass-classmethod-first-arg=mcs + + +[EXCEPTIONS] + +# Exceptions that will emit a warning when being caught. Defaults to +# "Exception" +overgeneral-exceptions=builtins.BaseException, + builtins.Exception diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..4dca8a7438d56285db88eadc64cdc1619dce6809 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM continuumio/miniconda3 + +ARG OPENAI_API_KEY +ENV OPENAI_API_KEY=${OPENAI_API_KEY} + +ARG BING_API_KEY +ENV BING_API_KEY=${BING_API_KEY} + +# 设置环境变量 +ENV PATH=/opt/conda/bin:$PATH + +# 克隆git仓库 +RUN git clone https://github.com/InternLM/MindSearch.git /app + +WORKDIR /app + +# 创建并激活 fastapi 环境,并安装依赖包 +RUN conda create --name fastapi python=3.10 -y && \ + conda run -n fastapi pip install -r requirements.txt && \ + conda clean --all -f -y + +# 暴露 FastAPI 默认端口 +EXPOSE 8000 + +# 启动 FastAPI 服务 +ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "fastapi"] +CMD ["python3", "-m", "mindsearch.app", "--asy", "--host", "0.0.0.0", "--port", "8002"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d78fe384132bd63552fac705aa14e29abb26c072 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2024 Shanghai AI Laboratory. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index 5c5a992e6f5ff0c39406eb0bdad67b5be38b8a95..30d3cd20ce4e3357d91b84df795457d412baaef2 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,180 @@ --- -title: MindSearch -emoji: 👀 -colorFrom: gray -colorTo: indigo +title: MindSearch111 +emoji: 📊 +colorFrom: purple +colorTo: yellow sdk: gradio -sdk_version: 4.40.0 +sdk_version: 5.7.1 app_file: app.py pinned: false -license: apache-2.0 --- -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +
+ +
+ + + +[📃 Paper](https://arxiv.org/abs/2407.20183) | [💻 Demo](https://internlm-chat.intern-ai.org.cn/) + +English | [简体中文](README_zh-CN.md) + + + +
+

+ +## ✨ MindSearch: Mimicking Human Minds Elicits Deep AI Searcher + +## 📅 Changelog + +- 2024/11/05: 🥳 MindSearch is now deployed on Puyu! 👉 [Try it](https://internlm-chat.intern-ai.org.cn/) 👈 + - Refactored the agent module based on [Lagent v0.5](https://github.com/InternLM/lagent) for better performance in concurrency. + - Improved the UI to embody the simultaneous multi-query search. + + +## ⚽️ Build Your Own MindSearch + +### Step1: Dependencies Installation + +```bash +git clone https://github.com/InternLM/MindSearch +cd MindSearch +pip install -r requirements.txt +``` + +### Step2: Setup Environment Variables + +Before setting up the API, you need to configure environment variables. Rename the `.env.example` file to `.env` and fill in the required values. + +```bash +mv .env.example .env +# Open .env and add your keys and model configurations +``` + +### Step3: Setup MindSearch API + +Setup FastAPI Server. + +```bash +python -m mindsearch.app --lang en --model_format internlm_silicon --search_engine DuckDuckGoSearch --asy +``` + +- `--lang`: language of the model, `en` for English and `cn` for Chinese. +- `--model_format`: format of the model. + - `internlm_server` for InternLM2.5-7b-chat with local server. (InternLM2.5-7b-chat has been better optimized for Chinese.) + - `gpt4` for GPT4. + if you want to use other models, please modify [models](./mindsearch/agent/models.py) +- `--search_engine`: Search engine. + - `DuckDuckGoSearch` for search engine for DuckDuckGo. + - `BingSearch` for Bing search engine. + - `BraveSearch` for Brave search web api engine. + - `GoogleSearch` for Google Serper web search api engine. + - `TencentSearch` for Tencent search api engine. + + Please set your Web Search engine API key as the `WEB_SEARCH_API_KEY` environment variable unless you are using `DuckDuckGo`, or `TencentSearch` that requires secret id as `TENCENT_SEARCH_SECRET_ID` and secret key as `TENCENT_SEARCH_SECRET_KEY`. +- `--asy`: deploy asynchronous agents. + +### Step4: Setup MindSearch Frontend + +Providing following frontend interfaces, + +- React + +First configurate the backend URL for Vite proxy. + +```bash +HOST="127.0.0.1" # modify as you need +PORT=8002 +sed -i -r "s/target:\s*\"\"/target: \"${HOST}:${PORT}\"/" frontend/React/vite.config.ts +``` + +```bash +# Install Node.js and npm +# for Ubuntu +sudo apt install nodejs npm + +# for windows +# download from https://nodejs.org/zh-cn/download/prebuilt-installer + +# Install dependencies + +cd frontend/React +npm install +npm start +``` + +Details can be found in [React](./frontend/React/README.md) + +- Gradio + +```bash +python frontend/mindsearch_gradio.py +``` + +- Streamlit + +```bash +streamlit run frontend/mindsearch_streamlit.py +``` + +## 🌐 Change Web Search API + +To use a different type of web search API, modify the `searcher_type` attribute in the `searcher_cfg` located in `mindsearch/agent/__init__.py`. Currently supported web search APIs include: + +- `GoogleSearch` +- `DuckDuckGoSearch` +- `BraveSearch` +- `BingSearch` +- `TencentSearch` + +For example, to change to the Brave Search API, you would configure it as follows: + +```python +BingBrowser( + searcher_type='BraveSearch', + topk=2, + api_key=os.environ.get('BRAVE_API_KEY', 'YOUR BRAVE API') +) +``` + +## 🐞 Using the Backend Without Frontend + +For users who prefer to interact with the backend directly, use the `backend_example.py` script. This script demonstrates how to send a query to the backend and process the response. + +```bash +python backend_example.py +``` + +Make sure you have set up the environment variables and the backend is running before executing the script. + +## 🐞 Debug Locally + +```bash +python -m mindsearch.terminal +``` + +## 📝 License + +This project is released under the [Apache 2.0 license](LICENSE). + +## Citation + +If you find this project useful in your research, please consider cite: + +``` +@article{chen2024mindsearch, + title={MindSearch: Mimicking Human Minds Elicits Deep AI Searcher}, + author={Chen, Zehui and Liu, Kuikun and Wang, Qiuchen and Liu, Jiangning and Zhang, Wenwei and Chen, Kai and Zhao, Feng}, + journal={arXiv preprint arXiv:2407.20183}, + year={2024} +} +``` + +## Our Projects + +Explore our additional research on large language models, focusing on LLM agents. + +- [Lagent](https://github.com/InternLM/lagent): A lightweight framework for building LLM-based agents +- [AgentFLAN](https://github.com/InternLM/Agent-FLAN): An innovative approach for constructing and training with high-quality agent datasets (ACL 2024 Findings) +- [T-Eval](https://github.com/open-compass/T-Eval): A Fine-grained tool utilization evaluation benchmark (ACL 2024) diff --git a/README_zh-CN.md b/README_zh-CN.md new file mode 100644 index 0000000000000000000000000000000000000000..073a1b971665f1a5eee1c703a57db8060d61d9d5 --- /dev/null +++ b/README_zh-CN.md @@ -0,0 +1,140 @@ +
+ +
+ + + +[📃 Paper](https://arxiv.org/abs/2407.20183) | [💻 浦语入口](https://internlm-chat.intern-ai.org.cn/) + +[English](README.md) | 简体中文 + + + +
+

+ +## ✨ MindSearch: Mimicking Human Minds Elicits Deep AI Searcher + +MindSearch 是一个开源的 AI 搜索引擎框架,具有与 Perplexity.ai Pro 相同的性能。您可以轻松部署它来构建您自己的搜索引擎,可以使用闭源 LLM(如 GPT、Claude)或开源 LLM([InternLM2.5 系列模型](https://huggingface.co/internlm/internlm2_5-7b-chat)经过专门优化,能够在 MindSearch 框架中提供卓越的性能;其他开源模型没做过具体测试)。其拥有以下特性: + +- 🤔 **任何想知道的问题**:MindSearch 通过搜索解决你在生活中遇到的各种问题 +- 📚 **深度知识探索**:MindSearch 通过数百网页的浏览,提供更广泛、深层次的答案 +- 🔍 **透明的解决方案路径**:MindSearch 提供了思考路径、搜索关键词等完整的内容,提高回复的可信度和可用性。 +- 💻 **多种用户界面**:为用户提供各种接口,包括 React、Gradio、Streamlit 和本地调试。根据需要选择任意类型。 +- 🧠 **动态图构建过程**:MindSearch 将用户查询分解为图中的子问题节点,并根据 WebSearcher 的搜索结果逐步扩展图。 + +
+ + + +
+ +## ⚡️ MindSearch VS 其他 AI 搜索引擎 + +在深度、广度和生成响应的准确性三个方面,对 ChatGPT-Web、Perplexity.ai(Pro)和 MindSearch 的表现进行比较。评估结果基于 100 个由人类专家精心设计的现实问题,并由 5 位专家进行评分\*。 + +
+ +
+* 所有实验均在 2024 年 7 月 7 日之前完成。 + +## ⚽️ 构建您自己的 MindSearch + +### 步骤1: 依赖安装 + +```bash +pip install -r requirements.txt +``` + +### 步骤2: 启动 MindSearch API + +启动 FastAPI 服务器 + +```bash +python -m mindsearch.app --lang en --model_format internlm_server --search_engine DuckDuckGoSearch +``` + +- `--lang`: 模型的语言,`en` 为英语,`cn` 为中文。 +- `--model_format`: 模型的格式。 + - `internlm_server` 为 InternLM2.5-7b-chat 本地服务器。 + - `gpt4` 为 GPT4。 + 如果您想使用其他模型,请修改 [models](./mindsearch/agent/models.py) +- `--search_engine`: 搜索引擎。 + - `DuckDuckGoSearch` 为 DuckDuckGo 搜索引擎。 + - `BingSearch` 为 Bing 搜索引擎。 + - `BraveSearch` 为 Brave 搜索引擎。 + - `GoogleSearch` 为 Google Serper 搜索引擎。 + - `TencentSearch` 为 Tencent 搜索引擎。 + + 请将 DuckDuckGo 和 Tencent 以外的网页搜索引擎 API 密钥设置为 `WEB_SEARCH_API_KEY` 环境变量。如果使用 DuckDuckGo,则无需设置;如果使用 Tencent,请设置 `TENCENT_SEARCH_SECRET_ID` 和 `TENCENT_SEARCH_SECRET_KEY`。 + +### 步骤3: 启动 MindSearch 前端 + +提供以下几种前端界面: + +- React + +首先配置Vite的API代理,指定实际后端URL + +```bash +HOST="127.0.0.1" +PORT=8002 +sed -i -r "s/target:\s*\"\"/target: \"${HOST}:${PORT}\"/" frontend/React/vite.config.ts +``` + +```bash +# 安装 Node.js 和 npm +# 对于 Ubuntu +sudo apt install nodejs npm +# 对于 Windows +# 从 https://nodejs.org/zh-cn/download/prebuilt-installer 下载 + +cd frontend/React +npm install +npm start +``` + +更多细节请参考 [React](./frontend/React/README.md) + +- Gradio + +```bash +python frontend/mindsearch_gradio.py +``` + +- Streamlit + +```bash +streamlit run frontend/mindsearch_streamlit.py +``` + +## 🐞 本地调试 + +```bash +python mindsearch/terminal.py +``` + +## 📝 许可证 + +该项目按照 [Apache 2.0 许可证](LICENSE) 发行。 + +## 学术引用 + +如果此项目对您的研究有帮助,请参考如下方式进行引用: + +``` +@article{chen2024mindsearch, + title={MindSearch: Mimicking Human Minds Elicits Deep AI Searcher}, + author={Chen, Zehui and Liu, Kuikun and Wang, Qiuchen and Liu, Jiangning and Zhang, Wenwei and Chen, Kai and Zhao, Feng}, + journal={arXiv preprint arXiv:2407.20183}, + year={2024} +} +``` + +## 相关项目 + +关注我们其他在大语言模型上的一些探索,主要为LLM智能体方向。 + +- [Lagent](https://github.com/InternLM/lagent): 一个轻便简洁的大语言模型智能体框架 +- [AgentFLAN](https://github.com/InternLM/Agent-FLAN): 一套构建高质量智能体语料和训练模型的方法 (ACL 2024 Findings) +- [T-Eval](https://github.com/open-compass/T-Eval): 一个细粒度评估LLM调用工具能力的评测及 (ACL 2024) diff --git a/app.py b/app.py index 79e5a8d3f9aee678184748386b2268ce4f99cabf..3959381e6a2533c8fbb0e705cff7218db3cd23a2 100644 --- a/app.py +++ b/app.py @@ -1,155 +1,323 @@ import json +import mimetypes +import os +import sys +import tempfile import gradio as gr import requests + +sys.path.insert(0, os.path.dirname(__file__)) + +import schemdraw +from frontend.gradio_agentchatbot.agentchatbot import AgentChatbot +from frontend.gradio_agentchatbot.utils import ChatFileMessage, ChatMessage, ThoughtMetadata from lagent.schema import AgentStatusCode +from schemdraw import flow + + import os -os.system("python -m mindsearch.app --lang en --model_format internlm_server &") +os.system("pip show starlette") +# os.system("pip install -r requirements.txt") +os.system("pip install tenacity") +os.system("python -m mindsearch.app --lang en --model_format internlm_silicon --search_engine DuckDuckGoSearch &") + + +print('MindSearch is running on http://') + PLANNER_HISTORY = [] SEARCHER_HISTORY = [] -def rst_mem(history_planner: list, history_searcher: list): - ''' - Reset the chatbot memory. - ''' - history_planner = [] - history_searcher = [] +def create_search_graph(adjacency_list: dict): + import matplotlib.pyplot as plt + + plt.rcParams["font.sans-serif"] = ["SimHei"] + + with schemdraw.Drawing(fontsize=10, unit=1) as graph: + node_pos, nodes, edges = {}, {}, [] + if "root" in adjacency_list: + queue, layer, response_level = ["root"], 0, 0 + while queue: + layer_len = len(queue) + for i in range(layer_len): + node_name = queue.pop(0) + node_pos[node_name] = (layer * 5, -i * 3) + for item in adjacency_list[node_name]: + if item["name"] == "response": + response_level = max(response_level, (layer + 1) * 5) + else: + queue.append(item["name"]) + edges.append((node_name, item["name"])) + layer += 1 + for node_name, (x, y) in node_pos.items(): + if node_name == "root": + node = flow.Terminal().label(node_name).at((x, y)).color("pink") + else: + node = flow.RoundBox(w=3.5, h=1.75).label(node_name).at((x, y)).color("teal") + nodes[node_name] = node + if response_level: + response_node = ( + flow.Terminal().label("response").at((response_level, 0)).color("orange") + ) + nodes["response"] = response_node + for start, end in edges: + flow.Arc3(arrow="->").linestyle("--" if end == "response" else "-").at( + nodes[start].E + ).to(nodes[end].W).color("grey" if end == "response" else "lightblue") + return graph + + +def draw_search_graph(adjacency_list: dict, suffix=".png", dpi=360) -> str: + g = create_search_graph(adjacency_list) + path = tempfile.mktemp(suffix=suffix) + g.save(path, dpi=dpi) + return path + + +def rst_mem(): + """Reset the chatbot memory.""" if PLANNER_HISTORY: PLANNER_HISTORY.clear() - return history_planner, history_searcher - - -def format_response(gr_history, agent_return): - if agent_return['state'] in [ - AgentStatusCode.STREAM_ING, AgentStatusCode.ANSWER_ING - ]: - gr_history[-1][1] = agent_return['response'] - elif agent_return['state'] == AgentStatusCode.PLUGIN_START: - thought = gr_history[-1][1].split('```')[0] - if agent_return['response'].startswith('```'): - gr_history[-1][1] = thought + '\n' + agent_return['response'] - elif agent_return['state'] == AgentStatusCode.PLUGIN_END: - thought = gr_history[-1][1].split('```')[0] - if isinstance(agent_return['response'], dict): - gr_history[-1][ - 1] = thought + '\n' + f'```json\n{json.dumps(agent_return["response"], ensure_ascii=False, indent=4)}\n```' # noqa: E501 - elif agent_return['state'] == AgentStatusCode.PLUGIN_RETURN: - assert agent_return['inner_steps'][-1]['role'] == 'environment' - item = agent_return['inner_steps'][-1] - gr_history.append([ - None, - f"```json\n{json.dumps(item['content'], ensure_ascii=False, indent=4)}\n```" - ]) - gr_history.append([None, '']) - return - - -def predict(history_planner, history_searcher): + return [], [], 0 + + +def format_response(gr_history, message, response, idx=-1): + if idx < 0: + idx = len(gr_history) + idx + if message["stream_state"] == AgentStatusCode.STREAM_ING: + gr_history[idx].content = response + elif message["stream_state"] == AgentStatusCode.CODING: + if gr_history[idx].thought_metadata.tool_name is None: + gr_history[idx].content = gr_history[idx].content.split("<|action_start|>")[0] + gr_history.insert( + idx + 1, + ChatMessage( + role="assistant", + content=response, + thought_metadata=ThoughtMetadata(tool_name="🖥️ Code Interpreter"), + ), + ) + else: + gr_history[idx].content = response + elif message["stream_state"] == AgentStatusCode.PLUGIN_START: + if isinstance(response, dict): + response = json.dumps(response, ensure_ascii=False, indent=4) + if gr_history[idx].thought_metadata.tool_name is None: + gr_history[idx].content = gr_history[idx].content.split("<|action_start|>")[0] + gr_history.insert( + idx + 1, + ChatMessage( + role="assistant", + content="```json\n" + response, + thought_metadata=ThoughtMetadata(tool_name="🌐 Web Browser"), + ), + ) + else: + gr_history[idx].content = "```json\n" + response + elif message["stream_state"] == AgentStatusCode.PLUGIN_END and isinstance(response, dict): + gr_history[idx].content = ( + f"```json\n{json.dumps(response, ensure_ascii=False, indent=4)}\n```" + ) + elif message["stream_state"] in [AgentStatusCode.CODE_RETURN, AgentStatusCode.PLUGIN_RETURN]: + try: + content = json.loads(message["content"]) + except json.decoder.JSONDecodeError: + content = message["content"] + if gr_history[idx].thought_metadata.tool_name: + gr_history.insert( + idx + 1, + ChatMessage( + role="assistant", + content=( + content + if isinstance(content, str) + else f"\n```json\n{json.dumps(content, ensure_ascii=False, indent=4)}\n```\n" + ), + thought_metadata=ThoughtMetadata(tool_name="Execution"), + ), + ) + gr_history.insert(idx + 2, ChatMessage(role="assistant", content="")) + + +def predict(history_planner, history_searcher, node_cnt): def streaming(raw_response): - for chunk in raw_response.iter_lines(chunk_size=8192, - decode_unicode=False, - delimiter=b'\n'): + for chunk in raw_response.iter_lines( + chunk_size=8192, decode_unicode=False, delimiter=b"\n" + ): if chunk: - decoded = chunk.decode('utf-8') - if decoded == '\r': + decoded = chunk.decode("utf-8") + if decoded == "\r": continue - if decoded[:6] == 'data: ': + if decoded[:6] == "data: ": decoded = decoded[6:] - elif decoded.startswith(': ping - '): + elif decoded.startswith(": ping - "): continue response = json.loads(decoded) - yield (response['response'], response['current_node']) + yield ( + response["current_node"], + ( + response["response"]["formatted"]["node"][response["current_node"]] + if response["current_node"] + else response["response"] + ), + response["response"]["formatted"]["adjacency_list"], + ) global PLANNER_HISTORY - PLANNER_HISTORY.append(dict(role='user', content=history_planner[-1][0])) - new_search_turn = True - - url = 'http://localhost:8002/solve' - headers = {'Content-Type': 'application/json'} - data = {'inputs': PLANNER_HISTORY} - raw_response = requests.post(url, - headers=headers, - data=json.dumps(data), - timeout=20, - stream=True) + PLANNER_HISTORY.extend(history_planner[-3:]) + search_graph_msg = history_planner[-1] + + url = "http://localhost:8002/solve" + data = {"inputs": PLANNER_HISTORY[-3].content} + raw_response = requests.post(url, json=data, timeout=60, stream=True) + node_id2msg_idx = {} for resp in streaming(raw_response): - agent_return, node_name = resp + node_name, agent_message, adjacency_list = resp + dedup_nodes = set(adjacency_list) | { + val["name"] for vals in adjacency_list.values() for val in vals + } + if dedup_nodes and len(dedup_nodes) != node_cnt: + node_cnt = len(dedup_nodes) + graph_path = draw_search_graph(adjacency_list) + search_graph_msg.file.path = graph_path + search_graph_msg.file.mime_type = mimetypes.guess_type(graph_path)[0] if node_name: - if node_name in ['root', 'response']: + if node_name in ["root", "response"]: continue - agent_return = agent_return['nodes'][node_name]['detail'] - if new_search_turn: - history_searcher.append([agent_return['content'], '']) - new_search_turn = False - format_response(history_searcher, agent_return) - if agent_return['state'] == AgentStatusCode.END: - new_search_turn = True - yield history_planner, history_searcher + node_id = f'【{node_name}】{agent_message["content"]}' + agent_message = agent_message["response"] + response = ( + agent_message["formatted"]["action"] + if agent_message["stream_state"] + in [AgentStatusCode.PLUGIN_START, AgentStatusCode.PLUGIN_END] + else agent_message["formatted"] and agent_message["formatted"].get("thought") + ) + if node_id not in node_id2msg_idx: + node_id2msg_idx[node_id] = len(history_searcher) + 1 + history_searcher.append(ChatMessage(role="user", content=node_id)) + history_searcher.append(ChatMessage(role="assistant", content="")) + offset = len(history_searcher) + format_response(history_searcher, agent_message, response, node_id2msg_idx[node_id]) + flag, incr = False, len(history_searcher) - offset + for key, value in node_id2msg_idx.items(): + if flag or key == node_id: + node_id2msg_idx[key] = value + incr + if not flag: + flag = True + yield history_planner, history_searcher, node_cnt else: - new_search_turn = True - format_response(history_planner, agent_return) - if agent_return['state'] == AgentStatusCode.END: - PLANNER_HISTORY = agent_return['inner_steps'] - yield history_planner, history_searcher - return history_planner, history_searcher - - -with gr.Blocks() as demo: - gr.HTML("""

MindSearch Gradio Demo

""") - gr.HTML("""

MindSearch is an open-source AI Search Engine Framework with Perplexity.ai Pro performance. You can deploy your own Perplexity.ai-style search engine using either closed-source LLMs (GPT, Claude) or open-source LLMs (InternLM2.5-7b-chat).

""") - gr.HTML(""" - - """) + response = ( + agent_message["formatted"]["action"] + if agent_message["stream_state"] + in [AgentStatusCode.CODING, AgentStatusCode.CODE_END] + else agent_message["formatted"] and agent_message["formatted"].get("thought") + ) + format_response(history_planner, agent_message, response, -2) + if agent_message["stream_state"] == AgentStatusCode.END: + PLANNER_HISTORY = history_planner + yield history_planner, history_searcher, node_cnt + return history_planner, history_searcher, node_cnt + + +with gr.Blocks(css=os.path.join(os.path.dirname(__file__), "css", "gradio_front.css")) as demo: + with gr.Column(elem_classes="chat-box"): + gr.HTML("""

MindSearch Gradio Demo

""") + gr.HTML( + """

+ MindSearch is an open-source AI Search Engine Framework with Perplexity.ai Pro performance. + You can deploy your own Perplexity.ai-style search engine using either + closed-source LLMs (GPT, Claude) + or open-source LLMs (InternLM2.5-7b-chat).

""" + ) + gr.HTML( + """ + """ + ) + gr.HTML( + """ +

""" + ) + node_count = gr.State(0) with gr.Row(): - with gr.Column(scale=10): - with gr.Row(): - with gr.Column(): - planner = gr.Chatbot(label='planner', - height=700, - show_label=True, - show_copy_button=True, - bubble_full_width=False, - render_markdown=True) - with gr.Column(): - searcher = gr.Chatbot(label='searcher', - height=700, - show_label=True, - show_copy_button=True, - bubble_full_width=False, - render_markdown=True) - with gr.Row(): - user_input = gr.Textbox(show_label=False, - placeholder='inputs...', - lines=5, - container=False) - with gr.Row(): - with gr.Column(scale=2): - submitBtn = gr.Button('Submit') - with gr.Column(scale=1, min_width=20): - emptyBtn = gr.Button('Clear History') + planner = AgentChatbot( + label="planner", + height=600, + show_label=True, + show_copy_button=True, + bubble_full_width=False, + render_markdown=True, + elem_classes="chatbot-container", + ) + searcher = AgentChatbot( + label="searcher", + height=600, + show_label=True, + show_copy_button=True, + bubble_full_width=False, + render_markdown=True, + elem_classes="chatbot-container", + ) + with gr.Row(elem_classes="chat-box"): + # Text input area + user_input = gr.Textbox( + show_label=False, + placeholder="Type your message...", + lines=1, + container=False, + elem_classes="editor", + scale=4, + ) + # Buttons (now in the same Row) + submitBtn = gr.Button("submit", variant="primary", elem_classes="toolbarButton", scale=1) + clearBtn = gr.Button("clear", variant="secondary", elem_classes="toolbarButton", scale=1) + with gr.Row(elem_classes="examples-container"): + examples_component = gr.Examples( + [ + ["Find legal precedents in contract law."], + ["What are the top 10 e-commerce websites?"], + ["Generate a report on global climate change."], + ], + inputs=user_input, + label="Try these examples:", + ) def user(query, history): - return '', history + [[query, '']] + history.append(ChatMessage(role="user", content=query)) + history.append(ChatMessage(role="assistant", content="")) + graph_path = draw_search_graph({"root": []}) + history.append( + ChatFileMessage( + role="assistant", + file=gr.FileData(path=graph_path, mime_type=mimetypes.guess_type(graph_path)[0]), + ) + ) + return "", history - submitBtn.click(user, [user_input, planner], [user_input, planner], - queue=False).then(predict, [planner, searcher], - [planner, searcher]) - emptyBtn.click(rst_mem, [planner, searcher], [planner, searcher], - queue=False) + submitBtn.click(user, [user_input, planner], [user_input, planner], queue=False).then( + predict, + [planner, searcher, node_count], + [planner, searcher, node_count], + ) + clearBtn.click(rst_mem, None, [planner, searcher, node_count], queue=False) demo.queue() -demo.launch(server_name='0.0.0.0', - server_port=7860, - inbrowser=True, - share=True) +demo.launch() +# demo.launch(server_name="0.0.0.0", inbrowser=True, share=False) diff --git a/dist/assets/logo-38417354.svg b/assets/logo.svg similarity index 100% rename from dist/assets/logo-38417354.svg rename to assets/logo.svg diff --git a/assets/mindsearch_openset.png b/assets/mindsearch_openset.png new file mode 100644 index 0000000000000000000000000000000000000000..dec7d847debffa47e0216e6c9befbe32f46077ec --- /dev/null +++ b/assets/mindsearch_openset.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f40b4523db6ab851573642b438503c7c644ba989fd3c6a83d05bd32c0aa558f2 +size 117655 diff --git a/assets/teaser.gif b/assets/teaser.gif new file mode 100644 index 0000000000000000000000000000000000000000..cd978577ea8e860ef6f00501f7d8415e6ef5b5ca --- /dev/null +++ b/assets/teaser.gif @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0e6cd23ade8a36c7e94b6c204d0cf74a5e5a5baa8200571555fcc9183f28612 +size 3283087 diff --git a/backend_example.py b/backend_example.py new file mode 100644 index 0000000000000000000000000000000000000000..cea5b5c8a0e475d06e1198d63ffc2497c658cf39 --- /dev/null +++ b/backend_example.py @@ -0,0 +1,37 @@ +import json + +import requests + +# Define the backend URL +url = "http://localhost:8002/solve" +headers = {"Content-Type": "application/json"} + + +# Function to send a query to the backend and get the response +def get_response(query): + # Prepare the input data + data = {"inputs": query} + + # Send the request to the backend + response = requests.post(url, headers=headers, data=json.dumps(data), timeout=20, stream=True) + + # Process the streaming response + for chunk in response.iter_lines(chunk_size=8192, decode_unicode=False, delimiter=b"\n"): + if chunk: + decoded = chunk.decode("utf-8") + if decoded == "\r": + continue + if decoded[:6] == "data: ": + decoded = decoded[6:] + elif decoded.startswith(": ping - "): + continue + response_data = json.loads(decoded) + agent_return = response_data["response"] + node_name = response_data["current_node"] + print(f"Node: {node_name}, Response: {agent_return['response']}") + + +# Example usage +if __name__ == "__main__": + query = "What is the weather like today in New York?" + get_response(query) diff --git a/dist/assets/background-95159880.png b/dist/assets/background-95159880.png deleted file mode 100644 index 3c732cb6bbf084415e5cc309934a144e9bc6b5eb..0000000000000000000000000000000000000000 Binary files a/dist/assets/background-95159880.png and /dev/null differ diff --git a/dist/assets/index-327d01f5.js b/dist/assets/index-327d01f5.js deleted file mode 100644 index 3cb6f38a0a22420a9f4790ea197021a6f2edd558..0000000000000000000000000000000000000000 --- a/dist/assets/index-327d01f5.js +++ /dev/null @@ -1,72 +0,0 @@ -function YH(){import.meta.url,import("_").catch(()=>1);async function*e(){}}function fy(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var lg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hy={exports:{}},Gc={},my={exports:{}},Ye={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var bs=Symbol.for("react.element"),w_=Symbol.for("react.portal"),I_=Symbol.for("react.fragment"),N_=Symbol.for("react.strict_mode"),R_=Symbol.for("react.profiler"),O_=Symbol.for("react.provider"),P_=Symbol.for("react.context"),L_=Symbol.for("react.forward_ref"),k_=Symbol.for("react.suspense"),M_=Symbol.for("react.memo"),D_=Symbol.for("react.lazy"),cg=Symbol.iterator;function F_(e){return e===null||typeof e!="object"?null:(e=cg&&e[cg]||e["@@iterator"],typeof e=="function"?e:null)}var py={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gy=Object.assign,vy={};function Po(e,t,n){this.props=e,this.context=t,this.refs=vy,this.updater=n||py}Po.prototype.isReactComponent={};Po.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Po.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ey(){}Ey.prototype=Po.prototype;function ym(e,t,n){this.props=e,this.context=t,this.refs=vy,this.updater=n||py}var bm=ym.prototype=new Ey;bm.constructor=ym;gy(bm,Po.prototype);bm.isPureReactComponent=!0;var dg=Array.isArray,yy=Object.prototype.hasOwnProperty,Tm={current:null},by={key:!0,ref:!0,__self:!0,__source:!0};function Ty(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)yy.call(t,r)&&!by.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,W=P[D];if(0>>1;Di(Z,C))Ji(fe,Z)?(P[D]=fe,P[J]=C,D=J):(P[D]=Z,P[X]=C,D=X);else if(Ji(fe,C))P[D]=fe,P[J]=C,D=J;else break e}}return $}function i(P,$){var C=P.sortIndex-$.sortIndex;return C!==0?C:P.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],l=[],c=1,d=null,h=3,m=!1,y=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(P){for(var $=n(l);$!==null;){if($.callback===null)r(l);else if($.startTime<=P)r(l),$.sortIndex=$.expirationTime,t(s,$);else break;$=n(l)}}function _(P){if(b=!1,E(P),!y)if(n(s)!==null)y=!0,H(x);else{var $=n(l);$!==null&&L(_,$.startTime-P)}}function x(P,$){y=!1,b&&(b=!1,v(R),R=-1),m=!0;var C=h;try{for(E($),d=n(s);d!==null&&(!(d.expirationTime>$)||P&&!F());){var D=d.callback;if(typeof D=="function"){d.callback=null,h=d.priorityLevel;var W=D(d.expirationTime<=$);$=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(s)&&r(s),E($)}else r(s);d=n(s)}if(d!==null)var w=!0;else{var X=n(l);X!==null&&L(_,X.startTime-$),w=!1}return w}finally{d=null,h=C,m=!1}}var S=!1,I=null,R=-1,O=5,M=-1;function F(){return!(e.unstable_now()-MP||125D?(P.sortIndex=C,t(l,P),n(s)===null&&P===n(l)&&(b?(v(R),R=-1):b=!0,L(_,C-D))):(P.sortIndex=W,t(s,P),y||m||(y=!0,H(x))),P},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(P){var $=h;return function(){var C=h;h=$;try{return P.apply(this,arguments)}finally{h=C}}}})(Ay);xy.exports=Ay;var G_=xy.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var K_=p,zn=G_;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),S0=Object.prototype.hasOwnProperty,Q_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,hg={},mg={};function X_(e){return S0.call(mg,e)?!0:S0.call(hg,e)?!1:Q_.test(e)?mg[e]=!0:(hg[e]=!0,!1)}function Z_(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function J_(e,t,n,r){if(t===null||typeof t>"u"||Z_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mn(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zt[e]=new mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zt[t]=new mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zt[e]=new mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zt[e]=new mn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zt[e]=new mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zt[e]=new mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zt[e]=new mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zt[e]=new mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zt[e]=new mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var _m=/[\-:]([a-z])/g;function xm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_m,xm);Zt[t]=new mn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_m,xm);Zt[t]=new mn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_m,xm);Zt[t]=new mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zt[e]=new mn(e,1,!1,e.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zt[e]=new mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Am(e,t,n,r){var i=Zt.hasOwnProperty(t)?Zt[t]:null;(i!==null?i.type!==0:r||!(2u||i[o]!==a[u]){var s="\n"+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{ff=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?du(e):""}function ex(e){switch(e.tag){case 5:return du(e.type);case 16:return du("Lazy");case 13:return du("Suspense");case 19:return du("SuspenseList");case 0:case 2:case 15:return e=hf(e.type,!1),e;case 11:return e=hf(e.type.render,!1),e;case 1:return e=hf(e.type,!0),e;default:return""}}function w0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ga:return"Fragment";case qa:return"Portal";case _0:return"Profiler";case wm:return"StrictMode";case x0:return"Suspense";case A0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ny:return(e.displayName||"Context")+".Consumer";case Iy:return(e._context.displayName||"Context")+".Provider";case Im:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Nm:return t=e.displayName||null,t!==null?t:w0(e.type)||"Memo";case Ci:t=e._payload,e=e._init;try{return w0(e(t))}catch(n){}}return null}function tx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w0(t);case 8:return t===wm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $i(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nx(e){var t=Oy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Js(e){e._valueTracker||(e._valueTracker=nx(e))}function Py(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function I0(e,t){var n=t.checked;return yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function gg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$i(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ly(e,t){t=t.checked,t!=null&&Am(e,"checked",t,!1)}function N0(e,t){Ly(e,t);var n=$i(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?R0(e,t.type,n):t.hasOwnProperty("defaultValue")&&R0(e,t.type,$i(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function R0(e,t,n){(t!=="number"||oc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fu=Array.isArray;function lo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rx=["Webkit","ms","Moz","O"];Object.keys(vu).forEach(function(e){rx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vu[t]=vu[e]})});function Fy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vu.hasOwnProperty(e)&&vu[e]?(""+t).trim():t+"px"}function By(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Fy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ix=yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function L0(e,t){if(t){if(ix[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ne(62))}}function k0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var M0=null;function Rm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var D0=null,co=null,fo=null;function bg(e){if(e=_s(e)){if(typeof D0!="function")throw Error(ne(280));var t=e.stateNode;t&&(t=Jc(t),D0(e.stateNode,e.type,t))}}function Hy(e){co?fo?fo.push(e):fo=[e]:co=e}function Uy(){if(co){var e=co,t=fo;if(fo=co=null,bg(e),t)for(e=0;e>>=0,e===0?32:31-(px(e)/gx|0)|0}var tl=64,nl=4194304;function hu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function cc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=hu(u):(a&=o,a!==0&&(r=hu(a)))}else o=n&~i,o!==0?r=hu(o):a!==0&&(r=hu(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cr(t),e[t]=n}function bx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=yu),Ng=String.fromCharCode(32),Rg=!1;function ob(e,t){switch(e){case"keyup":return Gx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ub(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function Qx(e,t){switch(e){case"compositionend":return ub(t);case"keypress":return t.which!==32?null:(Rg=!0,Ng);case"textInput":return e=t.data,e===Ng&&Rg?null:e;default:return null}}function Xx(e,t){if(Ka)return e==="compositionend"||!Bm&&ob(e,t)?(e=ib(),Fl=Mm=Ai=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kg(n)}}function db(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?db(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fb(){for(var e=window,t=oc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=oc(e.document)}return t}function Hm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function oA(e){var t=fb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&db(n.ownerDocument.documentElement,n)){if(r!==null&&Hm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Mg(n,a);var o=Mg(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Qa=null,z0=null,Tu=null,j0=!1;function Dg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;j0||Qa==null||Qa!==oc(r)||(r=Qa,"selectionStart"in r&&Hm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tu&&Wu(Tu,r)||(Tu=r,r=hc(z0,"onSelect"),0Ja||(e.current=K0[Ja],K0[Ja]=null,Ja--)}function st(e,t){Ja++,K0[Ja]=e.current,e.current=t}var zi={},rn=Wi(zi),bn=Wi(!1),Ea=zi;function bo(e,t){var n=e.type.contextTypes;if(!n)return zi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tn(e){return e=e.childContextTypes,e!=null}function pc(){ft(bn),ft(rn)}function jg(e,t,n){if(rn.current!==zi)throw Error(ne(168));st(rn,t),st(bn,n)}function Tb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ne(108,tx(e)||"Unknown",i));return yt({},n,r)}function gc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zi,Ea=rn.current,st(rn,e),st(bn,bn.current),!0}function Vg(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=Tb(e,t,Ea),r.__reactInternalMemoizedMergedChildContext=e,ft(bn),ft(rn),st(rn,e)):ft(bn),st(bn,n)}var Qr=null,ed=!1,wf=!1;function Cb(e){Qr===null?Qr=[e]:Qr.push(e)}function EA(e){ed=!0,Cb(e)}function Yi(){if(!wf&&Qr!==null){wf=!0;var e=0,t=rt;try{var n=Qr;for(rt=1;e>=o,i-=o,Zr=1<<32-Cr(t)+i|n<R?(O=I,I=null):O=I.sibling;var M=h(v,I,E[R],_);if(M===null){I===null&&(I=O);break}e&&I&&M.alternate===null&&t(v,I),g=a(M,g,R),S===null?x=M:S.sibling=M,S=M,I=O}if(R===E.length)return n(v,I),pt&&ea(v,R),x;if(I===null){for(;RR?(O=I,I=null):O=I.sibling;var F=h(v,I,M.value,_);if(F===null){I===null&&(I=O);break}e&&I&&F.alternate===null&&t(v,I),g=a(F,g,R),S===null?x=F:S.sibling=F,S=F,I=O}if(M.done)return n(v,I),pt&&ea(v,R),x;if(I===null){for(;!M.done;R++,M=E.next())M=d(v,M.value,_),M!==null&&(g=a(M,g,R),S===null?x=M:S.sibling=M,S=M);return pt&&ea(v,R),x}for(I=r(v,I);!M.done;R++,M=E.next())M=m(I,v,R,M.value,_),M!==null&&(e&&M.alternate!==null&&I.delete(M.key===null?R:M.key),g=a(M,g,R),S===null?x=M:S.sibling=M,S=M);return e&&I.forEach(function(B){return t(v,B)}),pt&&ea(v,R),x}function T(v,g,E,_){if(typeof E=="object"&&E!==null&&E.type===Ga&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Zs:e:{for(var x=E.key,S=g;S!==null;){if(S.key===x){if(x=E.type,x===Ga){if(S.tag===7){n(v,S.sibling),g=i(S,E.props.children),g.return=v,v=g;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ci&&qg(x)===S.type){n(v,S.sibling),g=i(S,E.props),g.ref=eu(v,S,E),g.return=v,v=g;break e}n(v,S);break}else t(v,S);S=S.sibling}E.type===Ga?(g=ma(E.props.children,v.mode,_,E.key),g.return=v,v=g):(_=Wl(E.type,E.key,E.props,null,v.mode,_),_.ref=eu(v,g,E),_.return=v,v=_)}return o(v);case qa:e:{for(S=E.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===E.containerInfo&&g.stateNode.implementation===E.implementation){n(v,g.sibling),g=i(g,E.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Mf(E,v.mode,_),g.return=v,v=g}return o(v);case Ci:return S=E._init,T(v,g,S(E._payload),_)}if(fu(E))return y(v,g,E,_);if(Ko(E))return b(v,g,E,_);ll(v,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,g!==null&&g.tag===6?(n(v,g.sibling),g=i(g,E),g.return=v,v=g):(n(v,g),g=kf(E,v.mode,_),g.return=v,v=g),o(v)):n(v,g)}return T}var Co=Ab(!0),wb=Ab(!1),yc=Wi(null),bc=null,no=null,jm=null;function Vm(){jm=no=bc=null}function Wm(e){var t=yc.current;ft(yc),e._currentValue=t}function Z0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mo(e,t){bc=e,jm=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yn=!0),e.firstContext=null)}function ir(e){var t=e._currentValue;if(jm!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(bc===null)throw Error(ne(308));no=e,bc.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var ua=null;function Ym(e){ua===null?ua=[e]:ua.push(e)}function Ib(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ym(t)):(n.next=i.next,i.next=n),t.interleaved=n,ii(e,r)}function ii(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Si=!1;function qm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Qe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ii(e,n)}return i=r.interleaved,i===null?(t.next=t,Ym(r)):(t.next=i.next,i.next=t),r.interleaved=t,ii(e,n)}function Hl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pm(e,n)}}function Gg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tc(e,t,n,r){var i=e.updateQueue;Si=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var s=u,l=s.next;s.next=null,o===null?a=l:o.next=l,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==o&&(u===null?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s))}if(a!==null){var d=i.baseState;o=0,c=l=s=null,u=a;do{var h=u.lane,m=u.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:m,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,b=u;switch(h=t,m=n,b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(m,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,h=typeof y=="function"?y.call(m,d,h):y,h==null)break e;d=yt({},d,h);break e;case 2:Si=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[u]:h.push(u))}else m={eventTime:m,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(l=c=m,s=d):c=c.next=m,o|=h;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;h=u,u=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(s=d),i.baseState=s,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Ta|=o,e.lanes=o,e.memoizedState=d}}function Kg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Nf.transition;Nf.transition={};try{e(!1),t()}finally{rt=n,Nf.transition=r}}function Yb(){return ar().memoizedState}function CA(e,t,n){var r=Bi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qb(e))Gb(t,n);else if(n=Ib(e,t,n,r),n!==null){var i=dn();Sr(n,e,r,i),Kb(n,t,r)}}function SA(e,t,n){var r=Bi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qb(e))Gb(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,u=a(o,n);if(i.hasEagerState=!0,i.eagerState=u,Ar(u,o)){var s=t.interleaved;s===null?(i.next=i,Ym(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch(l){}finally{}n=Ib(e,t,i,r),n!==null&&(i=dn(),Sr(n,e,r,i),Kb(n,t,r))}}function qb(e){var t=e.alternate;return e===Et||t!==null&&t===Et}function Gb(e,t){Cu=Sc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kb(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pm(e,n)}}var _c={readContext:ir,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useInsertionEffect:en,useLayoutEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useMutableSource:en,useSyncExternalStore:en,useId:en,unstable_isNewReconciler:!1},_A={readContext:ir,useCallback:function(e,t){return Pr().memoizedState=[e,t===void 0?null:t],e},useContext:ir,useEffect:Xg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4194308,4,$b.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(4194308,4,e,t)},useInsertionEffect:function(e,t){return $l(4,2,e,t)},useMemo:function(e,t){var n=Pr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=CA.bind(null,Et,e),[r.memoizedState,e]},useRef:function(e){var t=Pr();return e={current:e},t.memoizedState=e},useState:Qg,useDebugValue:tp,useDeferredValue:function(e){return Pr().memoizedState=e},useTransition:function(){var e=Qg(!1),t=e[0];return e=TA.bind(null,e[1]),Pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Et,i=Pr();if(pt){if(n===void 0)throw Error(ne(407));n=n()}else{if(n=t(),zt===null)throw Error(ne(349));ba&30||Lb(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Xg(Mb.bind(null,r,a,e),[e]),r.flags|=2048,Ju(9,kb.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Pr(),t=zt.identifierPrefix;if(pt){var n=Jr,r=Zr;n=(r&~(1<<32-Cr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[kr]=t,e[Gu]=r,aT(e,t,!1,!1),t.stateNode=e;e:{switch(o=k0(n,r),n){case"dialog":dt("cancel",e),dt("close",e),i=r;break;case"iframe":case"object":case"embed":dt("load",e),i=r;break;case"video":case"audio":for(i=0;ixo&&(t.flags|=128,r=!0,tu(a,!1),t.lanes=4194304)}else{if(!r)if(e=Cc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),tu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!pt)return tn(t),null}else 2*_t()-a.renderingStartTime>xo&&n!==1073741824&&(t.flags|=128,r=!0,tu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=_t(),t.sibling=null,n=vt.current,st(vt,r?n&1|2:n&1),t):(tn(t),null);case 22:case 23:return up(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kn&1073741824&&(tn(t),t.subtreeFlags&6&&(t.flags|=8192)):tn(t),null;case 24:return null;case 25:return null}throw Error(ne(156,t.tag))}function PA(e,t){switch($m(t),t.tag){case 1:return Tn(t.type)&&pc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),ft(bn),ft(rn),Qm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Km(t),null;case 13:if(ft(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ne(340));To()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ft(vt),null;case 4:return So(),null;case 10:return Wm(t.type._context),null;case 22:case 23:return up(),null;case 24:return null;default:return null}}var dl=!1,nn=!1,LA=typeof WeakSet=="function"?WeakSet:Set,ge=null;function ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ct(e,t,r)}else n.current=null}function uh(e,t,n){try{n()}catch(r){Ct(e,t,r)}}var s1=!1;function kA(e,t){if(V0=dc,e=fb(),Hm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(_){n=null;break e}var o=0,u=-1,s=-1,l=0,c=0,d=e,h=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(u=o+i),d!==a||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(m=d.firstChild)!==null;)h=d,d=m;for(;;){if(d===e)break t;if(h===n&&++l===i&&(u=o),h===a&&++c===r&&(s=o),(m=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=m}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(W0={focusedElem:e,selectionRange:n},dc=!1,ge=t;ge!==null;)if(t=ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ge=e;else for(;ge!==null;){t=ge;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,T=y.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:gr(t.type,b),T);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(_){Ct(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,ge=e;break}ge=t.return}return y=s1,s1=!1,y}function Su(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&uh(t,n,a)}i=i.next}while(i!==r)}}function rd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function sT(e){var t=e.alternate;t!==null&&(e.alternate=null,sT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kr],delete t[Gu],delete t[G0],delete t[gA],delete t[vA])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lT(e){return e.tag===5||e.tag===3||e.tag===4}function l1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mc));else if(r!==4&&(e=e.child,e!==null))for(lh(e,t,n),e=e.sibling;e!==null;)lh(e,t,n),e=e.sibling}function ch(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ch(e,t,n),e=e.sibling;e!==null;)ch(e,t,n),e=e.sibling}var qt=null,vr=!1;function gi(e,t,n){for(n=n.child;n!==null;)cT(e,t,n),n=n.sibling}function cT(e,t,n){if(Br&&typeof Br.onCommitFiberUnmount=="function")try{Br.onCommitFiberUnmount(Kc,n)}catch(u){}switch(n.tag){case 5:nn||ro(n,t);case 6:var r=qt,i=vr;qt=null,gi(e,t,n),qt=r,vr=i,qt!==null&&(vr?(e=qt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qt.removeChild(n.stateNode));break;case 18:qt!==null&&(vr?(e=qt,n=n.stateNode,e.nodeType===8?Af(e.parentNode,n):e.nodeType===1&&Af(e,n),ju(e)):Af(qt,n.stateNode));break;case 4:r=qt,i=vr,qt=n.stateNode.containerInfo,vr=!0,gi(e,t,n),qt=r,vr=i;break;case 0:case 11:case 14:case 15:if(!nn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&uh(n,t,o),i=i.next}while(i!==r)}gi(e,t,n);break;case 1:if(!nn&&(ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Ct(n,t,u)}gi(e,t,n);break;case 21:gi(e,t,n);break;case 22:n.mode&1?(nn=(r=nn)||n.memoizedState!==null,gi(e,t,n),nn=r):gi(e,t,n);break;default:gi(e,t,n)}}function c1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new LA),t.forEach(function(r){var i=jA.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=_t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DA(r/1960))-r,10e?16:e,wi===null)var r=!1;else{if(e=wi,wi=null,wc=0,Qe&6)throw Error(ne(331));var i=Qe;for(Qe|=4,ge=e.current;ge!==null;){var a=ge,o=a.child;if(ge.flags&16){var u=a.deletions;if(u!==null){for(var s=0;s_t()-ap?ha(e,0):ip|=n),Cn(e,t)}function ET(e,t){t===0&&(e.mode&1?(t=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):t=1);var n=dn();e=ii(e,t),e!==null&&(Cs(e,t,n),Cn(e,n))}function zA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ET(e,n)}function jA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ne(314))}r!==null&&r.delete(t),ET(e,n)}var yT;yT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bn.current)yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yn=!1,RA(e,t,n);yn=!!(e.flags&131072)}else yn=!1,pt&&t.flags&1048576&&Sb(t,Ec,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zl(e,t),e=t.pendingProps;var i=bo(t,rn.current);mo(t,n),i=Zm(null,t,r,e,i,n);var a=Jm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tn(r)?(a=!0,gc(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qm(t),i.updater=nd,t.stateNode=i,i._reactInternals=t,eh(t,r,e,n),t=rh(null,t,r,!0,a,n)):(t.tag=0,pt&&a&&Um(t),ln(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=WA(r),e=gr(r,e),i){case 0:t=nh(null,t,r,e,n);break e;case 1:t=a1(null,t,r,e,n);break e;case 11:t=r1(null,t,r,e,n);break e;case 14:t=i1(null,t,r,gr(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),nh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),a1(e,t,r,i,n);case 3:e:{if(nT(t),e===null)throw Error(ne(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Nb(e,t),Tc(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=_o(Error(ne(423)),t),t=o1(e,t,r,n,i);break e}else if(r!==i){i=_o(Error(ne(424)),t),t=o1(e,t,r,n,i);break e}else for(Dn=Mi(t.stateNode.containerInfo.firstChild),Un=t,pt=!0,br=null,n=wb(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(To(),r===i){t=ai(e,t,n);break e}ln(e,t,r,n)}t=t.child}return t;case 5:return Rb(t),e===null&&X0(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Y0(r,i)?o=null:a!==null&&Y0(r,a)&&(t.flags|=32),tT(e,t),ln(e,t,o,n),t.child;case 6:return e===null&&X0(t),null;case 13:return rT(e,t,n);case 4:return Gm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):ln(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),r1(e,t,r,i,n);case 7:return ln(e,t,t.pendingProps,n),t.child;case 8:return ln(e,t,t.pendingProps.children,n),t.child;case 12:return ln(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,st(yc,r._currentValue),r._currentValue=o,a!==null)if(Ar(a.value,o)){if(a.children===i.children&&!bn.current){t=ai(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){o=a.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=ei(-1,n&-n),s.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?s.next=s:(s.next=c.next,c.next=s),l.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Z0(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ne(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Z0(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}ln(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,mo(t,n),i=ir(i),r=r(i),t.flags|=1,ln(e,t,r,n),t.child;case 14:return r=t.type,i=gr(r,t.pendingProps),i=gr(r.type,i),i1(e,t,r,i,n);case 15:return Jb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gr(r,i),zl(e,t),t.tag=1,Tn(r)?(e=!0,gc(t)):e=!1,mo(t,n),Qb(t,r,i),eh(t,r,i,n),rh(null,t,r,!0,e,n);case 19:return iT(e,t,n);case 22:return eT(e,t,n)}throw Error(ne(156,t.tag))};function bT(e,t){return qy(e,t)}function VA(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nr(e,t,n,r){return new VA(e,t,n,r)}function lp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function WA(e){if(typeof e=="function")return lp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Im)return 11;if(e===Nm)return 14}return 2}function Hi(e,t){var n=e.alternate;return n===null?(n=nr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")lp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ga:return ma(n.children,i,a,t);case wm:o=8,i|=8;break;case _0:return e=nr(12,n,t,i|2),e.elementType=_0,e.lanes=a,e;case x0:return e=nr(13,n,t,i),e.elementType=x0,e.lanes=a,e;case A0:return e=nr(19,n,t,i),e.elementType=A0,e.lanes=a,e;case Ry:return ad(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iy:o=10;break e;case Ny:o=9;break e;case Im:o=11;break e;case Nm:o=14;break e;case Ci:o=16,r=null;break e}throw Error(ne(130,e==null?e:typeof e,""))}return t=nr(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function ma(e,t,n,r){return e=nr(7,e,r,t),e.lanes=n,e}function ad(e,t,n,r){return e=nr(22,e,r,t),e.elementType=Ry,e.lanes=n,e.stateNode={isHidden:!1},e}function kf(e,t,n){return e=nr(6,e,null,t),e.lanes=n,e}function Mf(e,t,n){return t=nr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function YA(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pf(0),this.expirationTimes=pf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cp(e,t,n,r,i,a,o,u,s){return e=new YA(e,t,n,u,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=nr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qm(a),e}function qA(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_T)}catch(e){console.error(e)}}_T(),_y.exports=Vn;var As=_y.exports;const ph=qc(As),ZA=fy({__proto__:null,default:ph},[As]);var E1=As;C0.createRoot=E1.createRoot,C0.hydrateRoot=E1.hydrateRoot;const JA="_app_1k3bk_1",e3="_content_1k3bk_9",t3="_header_1k3bk_15",n3="_header-nav_1k3bk_23",r3="_active_1k3bk_37",i3="_header-opt_1k3bk_40",ml={app:JA,content:e3,header:t3,"header-nav":"_header-nav_1k3bk_23",headerNav:n3,active:r3,"header-opt":"_header-opt_1k3bk_40",headerOpt:i3},a3="/assets/logo-38417354.svg";/** - * @remix-run/router v1.16.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ts(){return ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xT(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function u3(){return Math.random().toString(36).substr(2,8)}function b1(e,t){return{usr:e.state,key:e.key,idx:t}}function gh(e,t,n,r){return n===void 0&&(n=null),ts({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mo(t):t,{state:n,key:t&&t.key||r||u3()})}function AT(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Mo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function s3(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,u=Ii.Pop,s=null,l=c();l==null&&(l=0,o.replaceState(ts({},o.state,{idx:l}),""));function c(){return(o.state||{idx:null}).idx}function d(){u=Ii.Pop;let T=c(),v=T==null?null:T-l;l=T,s&&s({action:u,location:b.location,delta:v})}function h(T,v){u=Ii.Push;let g=gh(b.location,T,v);n&&n(g,T),l=c()+1;let E=b1(g,l),_=b.createHref(g);try{o.pushState(E,"",_)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(_)}a&&s&&s({action:u,location:b.location,delta:1})}function m(T,v){u=Ii.Replace;let g=gh(b.location,T,v);n&&n(g,T),l=c();let E=b1(g,l),_=b.createHref(g);o.replaceState(E,"",_),a&&s&&s({action:u,location:b.location,delta:0})}function y(T){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof T=="string"?T:AT(T);return g=g.replace(/ $/,"%20"),Qt(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let b={get action(){return u},get location(){return e(i,o)},listen(T){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(y1,d),s=T,()=>{i.removeEventListener(y1,d),s=null}},createHref(T){return t(i,T)},createURL:y,encodeLocation(T){let v=y(T);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:m,go(T){return o.go(T)}};return b}var T1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(T1||(T1={}));function l3(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Mo(t):t,i=NT(r.pathname||"/",n);if(i==null)return null;let a=wT(e);c3(a);let o=null;for(let u=0;o==null&&u{let s={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};s.relativePath.startsWith("/")&&(Qt(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let l=pa([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(Qt(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),wT(a.children,t,c,l)),!(a.path==null&&!a.index)&&t.push({path:l,score:v3(l,a.index),routesMeta:c})};return e.forEach((a,o)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,o);else for(let s of IT(a.path))i(a,o,s)}),t}function IT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=IT(r.join("/")),u=[];return u.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&u.push(...o),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function c3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:E3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const d3=/^:[\w-]+$/,f3=3,h3=2,m3=1,p3=10,g3=-2,C1=e=>e==="*";function v3(e,t){let n=e.split("/"),r=n.length;return n.some(C1)&&(r+=g3),t&&(r+=h3),n.filter(i=>!C1(i)).reduce((i,a)=>i+(d3.test(a)?f3:a===""?m3:p3),r)}function E3(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function y3(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{let{paramName:h,isOptional:m}=c;if(h==="*"){let b=u[d]||"";o=a.slice(0,a.length-b.length).replace(/(.)\/+$/,"$1")}const y=u[d];return m&&!y?l[h]=void 0:l[h]=(y||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:o,pattern:e}}function T3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xT(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function C3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return xT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function NT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function S3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Mo(e):e;return{pathname:n?n.startsWith("/")?n:_3(n,t):t,search:w3(r),hash:I3(i)}}function _3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Df(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function x3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function RT(e,t){let n=x3(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function OT(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Mo(e):(i=ts({},e),Qt(!i.pathname||!i.pathname.includes("?"),Df("?","pathname","search",i)),Qt(!i.pathname||!i.pathname.includes("#"),Df("#","pathname","hash",i)),Qt(!i.search||!i.search.includes("#"),Df("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,u;if(o==null)u=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}u=d>=0?t[d]:"/"}let s=S3(i,u),l=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(l||c)&&(s.pathname+="/"),s}const pa=e=>e.join("/").replace(/\/\/+/g,"/"),A3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),w3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,I3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function N3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PT=["post","put","patch","delete"];new Set(PT);const R3=["get",...PT];new Set(R3);/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),p.useCallback(function(l,c){if(c===void 0&&(c={}),!u.current)return;if(typeof l=="number"){r.go(l);return}let d=OT(l,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:pa([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,a,e])}function k3(e,t){return M3(e,t)}function M3(e,t,n,r){Is()||Qt(!1);let{navigator:i}=p.useContext(ws),{matches:a}=p.useContext(Aa),o=a[a.length-1],u=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=pp(),c;if(t){var d;let T=typeof t=="string"?Mo(t):t;s==="/"||(d=T.pathname)!=null&&d.startsWith(s)||Qt(!1),c=T}else c=l;let h=c.pathname||"/",m=h;if(s!=="/"){let T=s.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(T.length).join("/")}let y=l3(e,{pathname:m}),b=U3(y&&y.map(T=>Object.assign({},T,{params:Object.assign({},u,T.params),pathname:pa([s,i.encodeLocation?i.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?s:pa([s,i.encodeLocation?i.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),a,n,r);return t&&b?p.createElement(cd.Provider,{value:{location:ns({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ii.Pop}},b):b}function D3(){let e=V3(),t=N3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:i},n):null,a)}const F3=p.createElement(D3,null);class B3 extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Aa.Provider,{value:this.props.routeContext},p.createElement(LT.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function H3(e){let{routeContext:t,match:n,children:r}=e,i=p.useContext(mp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Aa.Provider,{value:t},r)}function U3(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let o=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let c=o.findIndex(d=>d.route.id&&(u==null?void 0:u[d.route.id])!==void 0);c>=0||Qt(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((c,d,h)=>{let m,y=!1,b=null,T=null;n&&(m=u&&d.route.id?u[d.route.id]:void 0,b=d.route.errorElement||F3,s&&(l<0&&h===0?(Y3("route-fallback",!1),y=!0,T=null):l===h&&(y=!0,T=d.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,h+1)),g=()=>{let E;return m?E=b:y?E=T:d.route.Component?E=p.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=c,p.createElement(H3,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:n!=null},children:E})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?p.createElement(B3,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var MT=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(MT||{}),Rc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rc||{});function $3(e){let t=p.useContext(mp);return t||Qt(!1),t}function z3(e){let t=p.useContext(O3);return t||Qt(!1),t}function j3(e){let t=p.useContext(Aa);return t||Qt(!1),t}function DT(e){let t=j3(),n=t.matches[t.matches.length-1];return n.route.id||Qt(!1),n.route.id}function V3(){var e;let t=p.useContext(LT),n=z3(Rc.UseRouteError),r=DT(Rc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function W3(){let{router:e}=$3(MT.UseNavigateStable),t=DT(Rc.UseNavigateStable),n=p.useRef(!1);return kT(()=>{n.current=!0}),p.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ns({fromRouteId:t},a)))},[e,t])}const S1={};function Y3(e,t,n){!t&&!S1[e]&&(S1[e]=!0)}function q3(e){let{to:t,replace:n,state:r,relative:i}=e;Is()||Qt(!1);let{future:a,static:o}=p.useContext(ws),{matches:u}=p.useContext(Aa),{pathname:s}=pp(),l=P3(),c=OT(t,RT(u,a.v7_relativeSplatPath),s,i==="path"),d=JSON.stringify(c);return p.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function G3(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ii.Pop,navigator:a,static:o=!1,future:u}=e;Is()&&Qt(!1);let s=t.replace(/^\/*/,"/"),l=p.useMemo(()=>({basename:s,navigator:a,static:o,future:ns({v7_relativeSplatPath:!1},u)}),[s,u,a,o]);typeof r=="string"&&(r=Mo(r));let{pathname:c="/",search:d="",hash:h="",state:m=null,key:y="default"}=r,b=p.useMemo(()=>{let T=NT(c,s);return T==null?null:{location:{pathname:T,search:d,hash:h,state:m,key:y},navigationType:i}},[s,c,d,h,m,y,i]);return b==null?null:p.createElement(ws.Provider,{value:l},p.createElement(cd.Provider,{children:n,value:b}))}new Promise(()=>{});/** - * React Router DOM v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const K3="6";try{window.__reactRouterVersion=K3}catch(e){}const Q3="startTransition",_1=Ts[Q3];function X3(e){let{basename:t,children:n,future:r,window:i}=e,a=p.useRef();a.current==null&&(a.current=o3({window:i,v5Compat:!0}));let o=a.current,[u,s]=p.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},c=p.useCallback(d=>{l&&_1?_1(()=>s(d)):s(d)},[s,l]);return p.useLayoutEffect(()=>o.listen(c),[o,c]),p.createElement(G3,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}var x1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(x1||(x1={}));var A1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A1||(A1={}));const Z3="_mainPage_6absh_1",J3="_chatContent_6absh_13",ew="_top_6absh_25",tw="_question_6absh_41",nw="_end_6absh_55",rw="_node_6absh_65",iw="_answer_6absh_91",aw="_inner_6absh_96",ow="_mapArea_6absh_105",uw="_response_6absh_121",sw="_sendArea_6absh_159",lw="_notice_6absh_200",cw="_progressContent_6absh_215",dw="_toggleIcon_6absh_238",fw="_titleNode_6absh_244",hw="_conclusion_6absh_251",mw="_steps_6absh_260",pw="_title_6absh_244",gw="_open_6absh_270",vw="_thinking_6absh_287",Ew="_select_6absh_288",yw="_searchList_6absh_291",bw="_con_6absh_251",Tw="_collapsed_6absh_304",Cw="_subTitle_6absh_310",Sw="_query_6absh_320",_w="_query-Item_6absh_324",xw="_thought_6absh_338",Aw="_scrollCon_6absh_344",ww="_searchItem_6absh_369",Iw="_highLight_6absh_376",Nw="_summ_6absh_387",Rw="_url_6absh_393",Ow="_draft_6absh_412",Pw="_loading_6absh_417",Lw="_ball-pulse_6absh_1",kw="_mindmap_6absh_460",Mw="_looping_6absh_490",Dw="_moveGradient_6absh_1",Fw="_disabled_6absh_503",Bw="_finished_6absh_508",Hw="_finishDot_6absh_511",Uw="_init_6absh_520",$w="_status_6absh_533",zw="_onlyone_6absh_550",jw="_endLine_6absh_604",Vw="_showRight_6absh_609",Ww="_loading99_6absh_654",Yw="_fadeIn_6absh_1",qw="_unfold_6absh_1",xe={mainPage:Z3,chatContent:J3,top:ew,question:tw,end:nw,node:rw,answer:iw,inner:aw,mapArea:ow,response:uw,sendArea:sw,notice:lw,progressContent:cw,toggleIcon:dw,titleNode:fw,conclusion:hw,steps:mw,title:pw,open:gw,thinking:vw,select:Ew,searchList:yw,con:bw,collapsed:Tw,subTitle:Cw,query:Sw,"query-Item":"_query-Item_6absh_324",queryItem:_w,thought:xw,scrollCon:Aw,searchItem:ww,highLight:Iw,summ:Nw,url:Rw,draft:Ow,loading:Pw,"ball-pulse":"_ball-pulse_6absh_1",ballPulse:Lw,mindmap:kw,looping:Mw,moveGradient:Dw,disabled:Fw,finished:Bw,finishDot:Hw,init:Uw,status:$w,onlyone:zw,endLine:jw,showRight:Vw,loading99:Ww,fadeIn:Yw,unfold:qw};var FT={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o{var n;const r=()=>e.children&&e.children.length>0?ye("ul",{className:e.children.length===1?xe.onlyone:"",children:e.children.map(i=>ye(BT,{item:i,isEnd:t},i.name))}):null;return ot("li",{children:[ot("article",{className:pe(e.state===1?xe.loading:e.state===2?xe.disabled:e.state===3?xe.finished:"",e.id===0?xe.init:""),children:[ye("span",{children:e.name}),e.state===1&&ye("div",{className:xe.looping}),e.id!==0&&ye("div",{className:xe.finishDot})]}),e.children.length>0&&r(),t&&((n=e.children)===null||n===void 0?void 0:n.length)===0&&ye("div",{className:pe(xe.endLine,"endline")})]})},Kw="/assets/pack-up-ad0b3cbc.svg",Qw="/assets/sendIcon-79e92e84.svg";function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ae.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Oc(r)):Au.isFragment(r)&&r.props?n=n.concat(Oc(r.props.children,t)):n.push(r))}),n}var vh={},Jw=function(t){};function eI(e,t){}function tI(e,t){}function nI(){vh={}}function $T(e,t,n){!t&&!vh[n]&&(e(!1,n),vh[n]=!0)}function $n(e,t){$T(eI,e,t)}function rI(e,t){$T(tI,e,t)}$n.preMessage=Jw;$n.resetWarned=nI;$n.noteOnce=rI;function Be(e){"@babel/helpers - typeof";return Be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Be(e)}function iI(e,t){if(Be(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Be(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zT(e){var t=iI(e,"string");return Be(t)=="symbol"?t:t+""}function V(e,t,n){return(t=zT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t=19;var Eh=p.createContext(null);function oI(e){var t=e.children,n=e.onBatchResize,r=p.useRef(0),i=p.useRef([]),a=p.useContext(Eh),o=p.useCallback(function(u,s,l){r.current+=1;var c=r.current;i.current.push({size:u,element:s,data:l}),Promise.resolve().then(function(){c===r.current&&(n==null||n(i.current),i.current=[])}),a==null||a(u,s,l)},[n,a]);return p.createElement(Eh.Provider,{value:o},t)}var jT=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}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(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i0},e.prototype.connect_=function(){!yh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fI?(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(){!yh||!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(t){var n=t.propertyName,r=n===void 0?"":n,i=dI.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),VT=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new TI(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ao(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new CI(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),YT=typeof WeakMap<"u"?new WeakMap:new jT,qT=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=hI.getInstance(),r=new SI(t,n,this);YT.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){qT.prototype[e]=function(){var t;return(t=YT.get(this))[e].apply(t,arguments)}});var _I=function(){return typeof Pc.ResizeObserver<"u"?Pc.ResizeObserver:qT}(),Ni=new Map;function xI(e){e.forEach(function(t){var n,r=t.target;(n=Ni.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var GT=new _I(xI);function AI(e,t){Ni.has(e)||(Ni.set(e,new Set),GT.observe(e)),Ni.get(e).add(t)}function wI(e,t){Ni.has(e)&&(Ni.get(e).delete(t),Ni.get(e).size||(GT.unobserve(e),Ni.delete(e)))}function an(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R1(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;O1+=1;var r=O1;function i(a){if(a===0)ZT(r),t();else{var o=QT(function(){i(a-1)});Sp.set(r,o)}}return i(n),r};Ur.cancel=function(e){var t=Sp.get(e);return ZT(e),XT(t)};function JT(e){if(Array.isArray(e))return e}function DI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,u=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(c){l=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function eC(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(e,t){return JT(e)||DI(e,t)||Cp(e,t)||eC()}function os(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function jn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function FI(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}var P1="data-rc-order",L1="data-rc-priority",BI="rc-util-key",Th=new Map;function tC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):BI}function _d(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function HI(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _p(e){return Array.from((Th.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function nC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!jn())return null;var n=t.csp,r=t.prepend,i=t.priority,a=i===void 0?0:i,o=HI(r),u=o==="prependQueue",s=document.createElement("style");s.setAttribute(P1,o),u&&a&&s.setAttribute(L1,"".concat(a)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var l=_d(t),c=l.firstChild;if(r){if(u){var d=(t.styles||_p(l)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(P1)))return!1;var m=Number(h.getAttribute(L1)||0);return a>=m});if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function rC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=_d(t);return(t.styles||_p(n)).find(function(r){return r.getAttribute(tC(t))===e})}function us(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rC(e,t);if(n){var r=_d(t);r.removeChild(n)}}function UI(e,t){var n=Th.get(e);if(!n||!FI(document,n)){var r=nC("",t),i=r.parentNode;Th.set(e,i),e.removeChild(r)}}function ti(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=_d(n),i=_p(r),a=K(K({},n),{},{styles:i});UI(r,a);var o=rC(t,a);if(o){var u,s;if((u=a.csp)!==null&&u!==void 0&&u.nonce&&o.nonce!==((s=a.csp)===null||s===void 0?void 0:s.nonce)){var l;o.nonce=(l=a.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=nC(e,a);return c.setAttribute(tC(a),t),c}function $I(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jt(e,t){if(e==null)return{};var n,r,i=$I(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ch(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(a,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(a);if($n(!s,"Warning: There may be circular references"),s)return!1;if(a===o)return!0;if(n&&u>1)return!1;r.add(a);var l=u+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(u){if(!o)o=void 0;else{var s;o=(s=o)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(u)}}),(r=o)!==null&&r!==void 0&&r.value&&a&&(o.value[1]=this.cacheCallTimes++),(i=o)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(l,c){var d=ue(l,2),h=d[1];return i.internalGet(c)[1]0,void 0),k1+=1}return on(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Bf=new xp;function _h(e){var t=Array.isArray(e)?e:[e];return Bf.has(t)||Bf.set(t,new oC(t)),Bf.get(t)}var XI=new WeakMap,Hf={};function ZI(e,t){for(var n=XI,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=M1.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof oC?n+=i.id:i&&Be(i)==="object"?n+=wu(i,t):n+=i}),t&&(n=os(n)),M1.set(e,n)),n}function D1(e,t){return os("".concat(t,"_").concat(wu(e,!0)))}var xh=jn();function Je(e){return typeof e=="number"?"".concat(e,"px"):e}function kc(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=K(K({},r),{},V(V({},wo,t),_r,n)),o=Object.keys(a).map(function(u){var s=a[u];return s?"".concat(u,'="').concat(s,'"'):null}).filter(function(u){return u}).join(" ");return"")}var ql=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},JI=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var a=ue(i,2),o=a[0],u=a[1];return"".concat(o,":").concat(u,";")}).join(""),"}"):""},uC=function(t,n,r){var i={},a={};return Object.entries(t).forEach(function(o){var u,s,l=ue(o,2),c=l[0],d=l[1];if(r!=null&&(u=r.preserve)!==null&&u!==void 0&&u[c])a[c]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[c])){var h,m=ql(c,r==null?void 0:r.prefix);i[m]=typeof d=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[c])?"".concat(d,"px"):String(d),a[c]="var(".concat(m,")")}}),[a,JI(i,n,{scope:r==null?void 0:r.scope})]},F1=jn()?p.useLayoutEffect:p.useEffect,Gt=function(t,n){var r=p.useRef(!0);F1(function(){return t(r.current)},n),F1(function(){return r.current=!1,function(){r.current=!0}},[])},B1=function(t,n){Gt(function(r){if(!r)return t()},n)},eN=K({},Ts),H1=eN.useInsertionEffect,tN=function(t,n,r){p.useMemo(t,r),Gt(function(){return n(!0)},r)},nN=H1?function(e,t,n){return H1(function(){return e(),t()},n)}:tN;const rN=nN;var iN=K({},Ts),aN=iN.useInsertionEffect,oN=function(t){var n=[],r=!1;function i(a){r||n.push(a)}return p.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),i},uN=function(){return function(t){t()}},sN=typeof aN<"u"?oN:uN;const lN=sN;function Ap(e,t,n,r,i){var a=p.useContext(xd),o=a.cache,u=[e].concat(be(t)),s=Sh(u),l=lN([s]),c=function(y){o.opUpdate(s,function(b){var T=b||[void 0,void 0],v=ue(T,2),g=v[0],E=g===void 0?0:g,_=v[1],x=_,S=x||n(),I=[E,S];return y?y(I):I})};p.useMemo(function(){c()},[s]);var d=o.opGet(s),h=d[1];return rN(function(){i==null||i(h)},function(m){return c(function(y){var b=ue(y,2),T=b[0],v=b[1];return m&&T===0&&(i==null||i(h)),[T+1,v]}),function(){o.opUpdate(s,function(y){var b=y||[],T=ue(b,2),v=T[0],g=v===void 0?0:v,E=T[1],_=g-1;return _===0?(l(function(){(m||!o.opGet(s))&&(r==null||r(E,!1))}),null):[g-1,E]})}},[s]),h}var cN={},dN="css",ra=new Map;function fN(e){ra.set(e,(ra.get(e)||0)+1)}function hN(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(wo,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ri]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var mN=0;function pN(e,t){ra.set(e,(ra.get(e)||0)-1);var n=Array.from(ra.keys()),r=n.filter(function(i){var a=ra.get(i)||0;return a<=0});n.length-r.length>mN&&r.forEach(function(i){hN(i,t),ra.delete(i)})}var gN=function(t,n,r,i){var a=r.getDerivativeToken(t),o=K(K({},a),n);return i&&(o=i(o)),o},sC="token";function vN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=p.useContext(xd),i=r.cache.instanceId,a=r.container,o=n.salt,u=o===void 0?"":o,s=n.override,l=s===void 0?cN:s,c=n.formatToken,d=n.getComputedToken,h=n.cssVar,m=ZI(function(){return Object.assign.apply(Object,[{}].concat(be(t)))},t),y=wu(m),b=wu(l),T=h?wu(h):"",v=Ap(sC,[u,e.id,y,b,T],function(){var g,E=d?d(m,l,e):gN(m,l,e,c),_=K({},E),x="";if(h){var S=uC(E,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),I=ue(S,2);E=I[0],x=I[1]}var R=D1(E,u);E._tokenKey=R,_._tokenKey=D1(_,u);var O=(g=h==null?void 0:h.key)!==null&&g!==void 0?g:R;E._themeKey=O,fN(O);var M="".concat(dN,"-").concat(os(R));return E._hashId=M,[E,M,_,x,(h==null?void 0:h.key)||""]},function(g){pN(g[0]._themeKey,i)},function(g){var E=ue(g,4),_=E[0],x=E[3];if(h&&x){var S=ti(x,os("css-variables-".concat(_._themeKey)),{mark:_r,prepend:"queue",attachTo:a,priority:-999});S[Ri]=i,S.setAttribute(wo,_._themeKey)}});return v}var EN=function(t,n,r){var i=ue(t,5),a=i[2],o=i[3],u=i[4],s=r||{},l=s.plain;if(!o)return null;var c=a._tokenKey,d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=kc(o,u,c,h,l);return[d,c,m]},yN={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},lC="comm",cC="rule",dC="decl",bN="@import",TN="@keyframes",CN="@layer",fC=Math.abs,wp=String.fromCharCode;function hC(e){return e.trim()}function Gl(e,t,n){return e.replace(t,n)}function SN(e,t,n){return e.indexOf(t,n)}function ss(e,t){return e.charCodeAt(t)|0}function ls(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function _N(e){return e.length}function pl(e,t){return t.push(e),e}var Ad=1,Io=1,mC=0,or=0,Nt=0,Do="";function Ip(e,t,n,r,i,a,o,u){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Ad,column:Io,length:o,return:"",siblings:u}}function xN(){return Nt}function AN(){return Nt=or>0?ss(Do,--or):0,Io--,Nt===10&&(Io=1,Ad--),Nt}function xr(){return Nt=or2||Ah(Nt)>3?"":" "}function RN(e,t){for(;--t&&xr()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return wd(e,Kl()+(t<6&&ga()==32&&xr()==32))}function wh(e){for(;xr();)switch(Nt){case e:return or;case 34:case 39:e!==34&&e!==39&&wh(Nt);break;case 40:e===41&&wh(e);break;case 92:xr();break}return or}function ON(e,t){for(;xr()&&e+Nt!==47+10;)if(e+Nt===42+42&&ga()===47)break;return"/*"+wd(t,or-1)+"*"+wp(e===47?e:xr())}function PN(e){for(;!Ah(ga());)xr();return wd(e,or)}function LN(e){return IN(Ql("",null,null,null,[""],e=wN(e),0,[0],e))}function Ql(e,t,n,r,i,a,o,u,s){for(var l=0,c=0,d=o,h=0,m=0,y=0,b=1,T=1,v=1,g=0,E="",_=i,x=a,S=r,I=E;T;)switch(y=g,g=xr()){case 40:if(y!=108&&ss(I,d-1)==58){SN(I+=Gl(Uf(g),"&","&\f"),"&\f",fC(l?u[l-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:I+=Uf(g);break;case 9:case 10:case 13:case 32:I+=NN(y);break;case 92:I+=RN(Kl()-1,7);continue;case 47:switch(ga()){case 42:case 47:pl(kN(ON(xr(),Kl()),t,n,s),s);break;default:I+="/"}break;case 123*b:u[l++]=Xr(I)*v;case 125*b:case 59:case 0:switch(g){case 0:case 125:T=0;case 59+c:v==-1&&(I=Gl(I,/\f/g,"")),m>0&&Xr(I)-d&&pl(m>32?$1(I+";",r,n,d-1,s):$1(Gl(I," ","")+";",r,n,d-2,s),s);break;case 59:I+=";";default:if(pl(S=U1(I,t,n,l,c,i,u,E,_=[],x=[],d,a),a),g===123)if(c===0)Ql(I,t,S,S,_,a,d,u,x);else switch(h===99&&ss(I,3)===110?100:h){case 100:case 108:case 109:case 115:Ql(e,S,S,r&&pl(U1(e,S,S,0,0,i,u,E,i,_=[],d,x),x),i,x,d,u,r?_:x);break;default:Ql(I,S,S,S,[""],x,0,u,x)}}l=c=m=0,b=v=1,E=I="",d=o;break;case 58:d=1+Xr(I),m=y;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&AN()==125)continue}switch(I+=wp(g),g*b){case 38:v=c>0?1:(I+="\f",-1);break;case 44:u[l++]=(Xr(I)-1)*v,v=1;break;case 64:ga()===45&&(I+=Uf(xr())),h=ga(),c=d=Xr(E=I+=PN(Kl())),g++;break;case 45:y===45&&Xr(I)==2&&(b=0)}}return a}function U1(e,t,n,r,i,a,o,u,s,l,c,d){for(var h=i-1,m=i===0?a:[""],y=_N(m),b=0,T=0,v=0;b0?m[g]+" "+E:Gl(E,/&\f/g,m[g])))&&(s[v++]=_);return Ip(e,t,n,i===0?cC:u,s,l,c,d)}function kN(e,t,n,r){return Ip(e,t,n,lC,wp(xN()),ls(e,2,-2),0,r)}function $1(e,t,n,r,i){return Ip(e,t,n,dC,ls(e,0,r),ls(e,r+1,-1),r,i)}function Ih(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,a=r.injectHash,o=r.parentSelectors,u=n.hashId,s=n.layer;n.path;var l=n.hashPriority,c=n.transformers,d=c===void 0?[]:c;n.linters;var h="",m={};function y(v){var g=v.getName(u);if(!m[g]){var E=e(v.style,n,{root:!1,parentSelectors:o}),_=ue(E,1),x=_[0];m[g]="@keyframes ".concat(v.getName(u)).concat(x)}}function b(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function(E){Array.isArray(E)?b(E,g):E&&g.push(E)}),g}var T=b(Array.isArray(t)?t:[t]);return T.forEach(function(v){var g=typeof v=="string"&&!i?{}:v;if(typeof g=="string")h+="".concat(g,"\n");else if(g._keyframe)y(g);else{var E=d.reduce(function(_,x){var S;return(x==null||(S=x.visit)===null||S===void 0?void 0:S.call(x,_))||_},g);Object.keys(E).forEach(function(_){var x=E[_];if(Be(x)==="object"&&x&&(_!=="animationName"||!x._keyframe)&&!UN(x)){var S=!1,I=_.trim(),R=!1;(i||a)&&u?I.startsWith("@")?S=!0:I=$N(_,u,l):i&&!u&&(I==="&"||I==="")&&(I="",R=!0);var O=e(x,n,{root:R,injectHash:S,parentSelectors:[].concat(be(o),[I])}),M=ue(O,2),F=M[0],B=M[1];m=K(K({},m),B),h+="".concat(I).concat(F)}else{let G=function(H,L){var P=H.replace(/[A-Z]/g,function(C){return"-".concat(C.toLowerCase())}),$=L;!yN[H]&&typeof $=="number"&&$!==0&&($="".concat($,"px")),H==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(y(L),$=L.getName(u)),h+="".concat(P,":").concat($,";")};var z,U=(z=x==null?void 0:x.value)!==null&&z!==void 0?z:x;Be(x)==="object"&&x!==null&&x!==void 0&&x[vC]&&Array.isArray(U)?U.forEach(function(H){G(_,H)}):G(_,U)}})}}),i?s&&(h="@layer ".concat(s.name," {").concat(h,"}"),s.dependencies&&(m["@layer ".concat(s.name)]=s.dependencies.map(function(v){return"@layer ".concat(v,", ").concat(s.name,";")}).join("\n"))):h="{".concat(h,"}"),[h,m]};function EC(e,t){return os("".concat(e.join("%")).concat(t))}function jN(){return null}var yC="style";function Nh(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,o=e.nonce,u=e.clientOnly,s=e.order,l=s===void 0?0:s,c=p.useContext(xd),d=c.autoClear;c.mock;var h=c.defaultCache,m=c.hashPriority,y=c.container,b=c.ssrInline,T=c.transformers,v=c.linters,g=c.cache,E=c.layer,_=n._tokenKey,x=[_];E&&x.push("layer"),x.push.apply(x,be(r));var S=xh,I=Ap(yC,x,function(){var B=x.join("|");if(FN(B)){var z=BN(B),U=ue(z,2),G=U[0],H=U[1];if(G)return[G,_,H,{},u,l]}var L=t(),P=zN(L,{hashId:i,hashPriority:m,layer:E?a:void 0,path:r.join("-"),transformers:T,linters:v}),$=ue(P,2),C=$[0],D=$[1],W=Xl(C),w=EC(x,W);return[W,_,w,D,u,l]},function(B,z){var U=ue(B,3),G=U[2];(z||d)&&xh&&us(G,{mark:_r})},function(B){var z=ue(B,4),U=z[0];z[1];var G=z[2],H=z[3];if(S&&U!==pC){var L={mark:_r,prepend:E?!1:"queue",attachTo:y,priority:l},P=typeof o=="function"?o():o;P&&(L.csp={nonce:P});var $=[],C=[];Object.keys(H).forEach(function(W){W.startsWith("@layer")?$.push(W):C.push(W)}),$.forEach(function(W){ti(Xl(H[W]),"_layer-".concat(W),K(K({},L),{},{prepend:!0}))});var D=ti(U,G,L);D[Ri]=g.instanceId,D.setAttribute(wo,_),C.forEach(function(W){ti(Xl(H[W]),"_effect-".concat(W),L)})}}),R=ue(I,3),O=R[0],M=R[1],F=R[2];return function(B){var z;return!b||S||!h?z=p.createElement(jN,null):z=p.createElement("style",et({},V(V({},wo,M),_r,F),{dangerouslySetInnerHTML:{__html:O}})),p.createElement(p.Fragment,null,z,B)}}var VN=function(t,n,r){var i=ue(t,6),a=i[0],o=i[1],u=i[2],s=i[3],l=i[4],c=i[5],d=r||{},h=d.plain;if(l)return null;var m=a,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return m=kc(a,o,u,y,h),s&&Object.keys(s).forEach(function(b){if(!n[b]){n[b]=!0;var T=Xl(s[b]),v=kc(T,o,"_effect-".concat(b),y,h);b.startsWith("@layer")?m=v+m:m+=v}}),[c,u,m]},bC="cssVar",WN=function(t,n){var r=t.key,i=t.prefix,a=t.unitless,o=t.ignore,u=t.token,s=t.scope,l=s===void 0?"":s,c=p.useContext(xd),d=c.cache.instanceId,h=c.container,m=u._tokenKey,y=[].concat(be(t.path),[r,l,m]),b=Ap(bC,y,function(){var T=n(),v=uC(T,r,{prefix:i,unitless:a,ignore:o,scope:l}),g=ue(v,2),E=g[0],_=g[1],x=EC(y,_);return[E,_,x,r]},function(T){var v=ue(T,3),g=v[2];xh&&us(g,{mark:_r})},function(T){var v=ue(T,3),g=v[1],E=v[2];if(g){var _=ti(g,E,{mark:_r,prepend:"queue",attachTo:h,priority:-999});_[Ri]=d,_.setAttribute(wo,r)}});return b},YN=function(t,n,r){var i=ue(t,4),a=i[1],o=i[2],u=i[3],s=r||{},l=s.plain;if(!a)return null;var c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)},h=kc(a,u,o,d,l);return[c,o,h]};V(V(V({},yC,VN),sC,EN),bC,YN);var _n=function(){function e(t,n){an(this,e),V(this,"name",void 0),V(this,"style",void 0),V(this,"_keyframe",!0),this.name=t,this.style=n}return on(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Fa(e){return e.notSplit=!0,e}Fa(["borderTop","borderBottom"]),Fa(["borderTop"]),Fa(["borderBottom"]),Fa(["borderLeft","borderRight"]),Fa(["borderLeft"]),Fa(["borderRight"]);var qN=p.createContext({});const Id=qN;function GN(e){return JT(e)||KT(e)||Cp(e)||eC()}function Dr(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Dr(e,t.slice(0,-1))?e:TC(e,t,n,r)}function KN(e){return Be(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function j1(e){return Array.isArray(e)?[]:{}}var QN=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ao(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=XN,e},JN=p.createContext(void 0);var eR={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"},tR={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"};const nR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},CC=nR,rR={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"]},tR),timePickerLocale:Object.assign({},CC)},V1=rR,Rn="${label} is not a valid ${type}",iR={locale:"en",Pagination:eR,DatePicker:V1,TimePicker:CC,Calendar:V1,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",deselectAll:"Deselect 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",collapse:"Collapse"},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:Rn,method:Rn,array:Rn,object:Rn,number:Rn,date:Rn,boolean:Rn,integer:Rn,float:Rn,regexp:Rn,email:Rn,url:Rn,hex:Rn},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",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}},Nd=iR;Object.assign({},Nd.Modal);let Zl=[];const W1=()=>Zl.reduce((e,t)=>Object.assign(Object.assign({},e),t),Nd.Modal);function aR(e){if(e){const t=Object.assign({},e);return Zl.push(t),W1(),()=>{Zl=Zl.filter(n=>n!==t),W1()}}Object.assign({},Nd.Modal)}const oR=p.createContext(void 0),SC=oR,uR="internalMark",sR=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;p.useEffect(()=>aR(t&&t.Modal),[t]);const i=p.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return p.createElement(SC.Provider,{value:i},n)},lR=sR;function Xt(e,t){cR(e)&&(e="100%");var n=dR(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gl(e){return Math.min(1,Math.max(0,e))}function cR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function dR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _C(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function vl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function la(e){return e.length===1?"0"+e:String(e)}function fR(e,t,n){return{r:Xt(e,255)*255,g:Xt(t,255)*255,b:Xt(n,255)*255}}function Y1(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,u=(r+i)/2;if(r===i)o=0,a=0;else{var s=r-i;switch(o=u>.5?s/(2-r-i):s/(r+i),r){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hR(e,t,n){var r,i,a;if(e=Xt(e,360),t=Xt(t,100),n=Xt(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;r=$f(u,o,e+1/3),i=$f(u,o,e),a=$f(u,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Rh(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,u=r-i,s=r===0?0:u/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/u+(t>16,g:(e&65280)>>8,b:e&255}}var Ph={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"};function Va(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,u=!1;return typeof e=="string"&&(e=bR(e)),typeof e=="object"&&(qr(e.r)&&qr(e.g)&&qr(e.b)?(t=fR(e.r,e.g,e.b),o=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):qr(e.h)&&qr(e.s)&&qr(e.v)?(r=vl(e.s),i=vl(e.v),t=mR(e.h,r,i),o=!0,u="hsv"):qr(e.h)&&qr(e.s)&&qr(e.l)&&(r=vl(e.s),a=vl(e.l),t=hR(e.h,r,a),o=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=_C(n),{ok:o,format:e.format||u,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 ER="[-\\+]?\\d+%?",yR="[-\\+]?\\d*\\.\\d+%?",Oi="(?:".concat(yR,")|(?:").concat(ER,")"),zf="[\\s|\\(]+(".concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")\\s*\\)?"),jf="[\\s|\\(]+(".concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")\\s*\\)?"),pr={CSS_UNIT:new RegExp(Oi),rgb:new RegExp("rgb"+zf),rgba:new RegExp("rgba"+jf),hsl:new RegExp("hsl"+zf),hsla:new RegExp("hsla"+jf),hsv:new RegExp("hsv"+zf),hsva:new RegExp("hsva"+jf),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 bR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ph[e])e=Ph[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(e),n?{r:Pn(n[1]),g:Pn(n[2]),b:Pn(n[3]),a:q1(n[4]),format:t?"name":"hex8"}:(n=pr.hex6.exec(e),n?{r:Pn(n[1]),g:Pn(n[2]),b:Pn(n[3]),format:t?"name":"hex"}:(n=pr.hex4.exec(e),n?{r:Pn(n[1]+n[1]),g:Pn(n[2]+n[2]),b:Pn(n[3]+n[3]),a:q1(n[4]+n[4]),format:t?"name":"hex8"}:(n=pr.hex3.exec(e),n?{r:Pn(n[1]+n[1]),g:Pn(n[2]+n[2]),b:Pn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function qr(e){return!!pr.CSS_UNIT.exec(String(e))}var Fn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=vR(t)),this.originalInput=t;var i=Va(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,a=t.r/255,o=t.g/255,u=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),u<=.03928?i=u/12.92:i=Math.pow((u+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_C(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Rh(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Rh(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Y1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Y1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Oh(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),pR(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Xt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Xt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Oh(this.r,this.g,this.b,!1),n=0,r=Object.entries(Ph);n=0,a=!n&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=gl(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(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){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=gl(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=gl(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=gl(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){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],u=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+u)%1;return o},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(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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,i=[this],a=360/t,o=1;o=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-El*t:Math.round(e.h)+El*t:r=n?Math.round(e.h)+El*t:Math.round(e.h)-El*t,r<0?r+=360:r>=360&&(r-=360),r}function X1(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-G1*t:t===AC?r=e.s+G1:r=e.s+TR*t,r>1&&(r=1),n&&t===xC&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Z1(e,t,n){var r;return n?r=e.v+CR*t:r=e.v-SR*t,r>1&&(r=1),Number(r.toFixed(2))}function Sa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Va(e),i=xC;i>0;i-=1){var a=K1(r),o=yl(Va({h:Q1(a,i,!0),s:X1(a,i,!0),v:Z1(a,i,!0)}));n.push(o)}n.push(yl(r));for(var u=1;u<=AC;u+=1){var s=K1(r),l=yl(Va({h:Q1(s,u),s:X1(s,u),v:Z1(s,u)}));n.push(l)}return t.theme==="dark"?_R.map(function(c){var d=c.index,h=c.opacity,m=yl(xR(Va(t.backgroundColor||"#141414"),Va(n[d]),h*100));return m}):n}var Vf={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"},Jl={},Wf={};Object.keys(Vf).forEach(function(e){Jl[e]=Sa(Vf[e]),Jl[e].primary=Jl[e][5],Wf[e]=Sa(Vf[e],{theme:"dark",backgroundColor:"#141414"}),Wf[e].primary=Wf[e][5]});var AR=Jl.blue;const wC={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},wR=Object.assign(Object.assign({},wC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),cs=wR;function IR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:u,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,d=n(s),h=n(i),m=n(a),y=n(o),b=n(u),T=r(l,c),v=e.colorLink||e.colorInfo,g=n(v);return Object.assign(Object.assign({},T),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new Fn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const NR=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}},RR=NR;function OR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+t*2).toFixed(1),"s"),motionDurationSlow:"".concat((n+t*3).toFixed(1),"s"),lineWidthBold:i+1},RR(r))}const PR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},LR=PR;function ec(e){return(e+8)/e}function kR(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=e*Math.pow(2.71828,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ec(n)}))}const MR=e=>{const t=kR(e),n=t.map(c=>c.size),r=t.map(c=>c.lineHeight),i=n[1],a=n[0],o=n[2],u=r[1],s=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(u*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(s*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},DR=MR;function FR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Gr=(e,t)=>new Fn(e).setAlpha(t).toRgbString(),ru=(e,t)=>new Fn(e).darken(t).toHexString(),BR=e=>{const t=Sa(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},HR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Gr(r,.88),colorTextSecondary:Gr(r,.65),colorTextTertiary:Gr(r,.45),colorTextQuaternary:Gr(r,.25),colorFill:Gr(r,.15),colorFillSecondary:Gr(r,.06),colorFillTertiary:Gr(r,.04),colorFillQuaternary:Gr(r,.02),colorBgLayout:ru(n,4),colorBgContainer:ru(n,0),colorBgElevated:ru(n,0),colorBgSpotlight:Gr(r,.85),colorBgBlur:"transparent",colorBorder:ru(n,15),colorBorderSecondary:ru(n,6)}};function UR(e){const t=Object.keys(wC).map(n=>{const r=Sa(e[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i["".concat(n,"-").concat(o+1)]=r[o],i["".concat(n).concat(o+1)]=r[o],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),IR(e,{generateColorPalettes:BR,generateNeutralColorPalettes:HR})),DR(e.fontSize)),FR(e)),LR(e)),OR(e))}const IC=_h(UR),Lh={token:cs,override:{override:cs},hashed:!0},NC=ae.createContext(Lh),Rp="anticon",$R=(e,t)=>t||(e?"ant-".concat(e):"ant"),Dt=p.createContext({getPrefixCls:$R,iconPrefixCls:Rp}),zR="-ant-".concat(Date.now(),"-").concat(Math.random());function jR(e,t){const n={},r=(o,u)=>{let s=o.clone();return s=(u==null?void 0:u(s))||s,s.toRgbString()},i=(o,u)=>{const s=new Fn(o),l=Sa(s.toRgbString());n["".concat(u,"-color")]=r(s),n["".concat(u,"-color-disabled")]=l[1],n["".concat(u,"-color-hover")]=l[4],n["".concat(u,"-color-active")]=l[6],n["".concat(u,"-color-outline")]=s.clone().setAlpha(.2).toRgbString(),n["".concat(u,"-color-deprecated-bg")]=l[0],n["".concat(u,"-color-deprecated-border")]=l[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new Fn(t.primaryColor),u=Sa(o.toRgbString());u.forEach((l,c)=>{n["primary-".concat(c+1)]=l}),n["primary-color-deprecated-l-35"]=r(o,l=>l.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,l=>l.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,l=>l.tint(20)),n["primary-color-deprecated-t-50"]=r(o,l=>l.tint(50)),n["primary-color-deprecated-f-12"]=r(o,l=>l.setAlpha(l.getAlpha()*.12));const s=new Fn(u[0]);n["primary-color-active-deprecated-f-30"]=r(s,l=>l.setAlpha(l.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,l=>l.darken(2))}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");const a=Object.keys(n).map(o=>"--".concat(e,"-").concat(o,": ").concat(n[o],";"));return"\n :root {\n ".concat(a.join("\n"),"\n }\n ").trim()}function VR(e,t){const n=jR(e,t);jn()&&ti(n,"".concat(zR,"-dynamic-theme"))}const kh=p.createContext(!1),WR=e=>{let{children:t,disabled:n}=e;const r=p.useContext(kh);return p.createElement(kh.Provider,{value:n!=null?n:r},t)},Rd=kh,Mh=p.createContext(void 0),YR=e=>{let{children:t,size:n}=e;const r=p.useContext(Mh);return p.createElement(Mh.Provider,{value:n||r},t)},Od=Mh;function qR(){const e=p.useContext(Rd),t=p.useContext(Od);return{componentDisabled:e,componentSize:t}}const Mc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],GR="5.18.3";function Yf(e){return e>=0&&e<=255}function bl(e,t){const{r:n,g:r,b:i,a}=new Fn(e).toRgb();if(a<1)return e;const{r:o,g:u,b:s}=new Fn(t).toRgb();for(let l=.01;l<=1;l+=.01){const c=Math.round((n-o*(1-l))/l),d=Math.round((r-u*(1-l))/l),h=Math.round((i-s*(1-l))/l);if(Yf(c)&&Yf(d)&&Yf(h))return new Fn({r:c,g:d,b:h,a:Math.round(l*100)/100}).toRgbString()}return new Fn({r:n,g:r,b:i,a:1}).toRgbString()}var KR=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[h]});const i=Object.assign(Object.assign({},n),r),a=480,o=576,u=768,s=992,l=1200,c=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:bl(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:bl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:bl(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:bl(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:l-1,screenXL:l,screenXLMin:l,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new Fn("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new Fn("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new Fn("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\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)"}),r)}var J1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,a=J1(t,["override"]);let o=Object.assign(Object.assign({},r),{override:i});return o=RC(o),a&&Object.entries(a).forEach(u=>{let[s,l]=u;const{theme:c}=l,d=J1(l,["theme"]);let h=d;c&&(h=LC(Object.assign(Object.assign({},o),d),{override:d},c)),o[s]=h}),o};function $r(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=ae.useContext(NC),a="".concat(GR,"-").concat(t||""),o=n||IC,[u,s,l]=vN(o,[cs,e],{salt:a,override:r,getComputedToken:LC,formatToken:RC,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:OC,ignore:PC,preserve:QR}});return[o,l,t?s:"",u,i]}const XR=1e3*60*10;let ZR=function(){function e(){an(this,e),this.map=new Map,this.objectIDMap=new WeakMap,this.nextID=0,this.lastAccessBeat=new Map,this.accessBeat=0}return on(e,[{key:"set",value:function(n,r){this.clear();const i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){const r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){return n.map(i=>i&&typeof i=="object"?"obj_".concat(this.getObjectID(i)):"".concat(typeof i,"_").concat(i)).join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);const r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){if(this.accessBeat>1e4){const n=Date.now();this.lastAccessBeat.forEach((r,i)=>{n-r>XR&&(this.map.delete(i),this.lastAccessBeat.delete(i))}),this.accessBeat=0}}}])}();const ev=new ZR;function JR(e,t){return ae.useMemo(()=>{const n=ev.get(t);if(n)return n;const r=e();return ev.set(t,r),r},t)}function cn(e){var t=p.useRef();t.current=e;var n=p.useCallback(function(){for(var r,i=arguments.length,a=new Array(i),o=0;o1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},e6=()=>({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"}}),t6=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n6=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),r6=(e,t,n,r)=>{const i='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),a=n?".".concat(n):i,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let u={};return r!==!1&&(u={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},u),o),{[i]:o})}},i6=e=>({outline:"".concat(Je(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),a6=e=>({"&:focus-visible":Object.assign({},i6(e))});function o6(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;rJe(i)).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),r=0;rJe(i)).join(","),")")}}}const kC=typeof CSSINJS_STATISTIC<"u";let Dh=!0;function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(i).forEach(o=>{Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i[o]})})}),Dh=!0,r}const tv={};function u6(){}const s6=e=>{let t,n=e,r=u6;return kC&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(i,a){return Dh&&t.add(a),i[a]}}),r=(i,a)=>{var o;tv[i]={global:Array.from(t),component:Object.assign(Object.assign({},(o=tv[i])===null||o===void 0?void 0:o.component),a)}}),{token:n,keys:t,flush:r}},l6=(e,t)=>{const[n,r]=$r();return Nh({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[".".concat(e)]:Object.assign(Object.assign({},e6()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}])},MC=l6,DC=(e,t,n)=>{var r;return typeof n=="function"?n(Yn(t,(r=t[e])!==null&&r!==void 0?r:{})):n!=null?n:{}},FC=(e,t,n,r)=>{const i=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:o}=r;o.forEach(u=>{let[s,l]=u;var c;(i!=null&&i[s]||i!=null&&i[l])&&((c=i[l])!==null&&c!==void 0||(i[l]=i==null?void 0:i[s]))})}const a=Object.assign(Object.assign({},n),i);return Object.keys(a).forEach(o=>{a[o]===t[o]&&delete a[o]}),a},nv=(e,t)=>"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"));function Op(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=Array.isArray(e)?e:[e,e],[a]=i,o=i.join("-");return function(u){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u;const[l,c,d,h,m]=$r(),{getPrefixCls:y,iconPrefixCls:b,csp:T}=p.useContext(Dt),v=y(),g=m?"css":"js",E=JR(()=>{const R=new Set;return m&&Object.keys(r.unitless||{}).forEach(O=>{R.add(ql(O,m.prefix)),R.add(ql(O,nv(a,m.prefix)))}),KI(g,R)},[g,a,m&&m.prefix]),{max:_,min:x}=o6(g),S={theme:l,token:h,hashId:d,nonce:()=>T==null?void 0:T.nonce,clientOnly:r.clientOnly,layer:{name:"antd"},order:r.order||-999};return Nh(Object.assign(Object.assign({},S),{clientOnly:!1,path:["Shared",v]}),()=>[{"&":n6(h)}]),MC(b,T),[Nh(Object.assign(Object.assign({},S),{path:[o,u,b]}),()=>{if(r.injectStyle===!1)return[];const{token:R,flush:O}=s6(h),M=DC(a,c,n),F=".".concat(u),B=FC(a,c,M,{deprecatedTokens:r.deprecatedTokens});m&&Object.keys(M).forEach(G=>{M[G]="var(".concat(ql(G,nv(a,m.prefix)),")")});const z=Yn(R,{componentCls:F,prefixCls:u,iconCls:".".concat(b),antCls:".".concat(v),calc:E,max:_,min:x},m?M:B),U=t(z,{hashId:d,prefixCls:u,rootPrefixCls:v,iconPrefixCls:b});return O(a,B),[r.resetStyle===!1?null:r6(z,u,s,r.resetFont),U]}),d]}}const c6=(e,t,n,r)=>{const i=Op(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return o=>{let{prefixCls:u,rootCls:s=u}=o;return i(u,s),null}},d6=(e,t,n)=>{const{unitless:r,injectStyle:i=!0,prefixToken:a}=n,o=s=>{let{rootCls:l,cssVar:c}=s;const[,d]=$r();return WN({path:[e],prefix:c.prefix,key:c==null?void 0:c.key,unitless:r,ignore:PC,token:d,scope:l},()=>{const h=DC(e,d,t),m=FC(e,d,h,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(h).forEach(y=>{m[a(y)]=m[y],delete m[y]}),m}),null};return s=>{const[,,,,l]=$r();return[c=>i&&l?ae.createElement(ae.Fragment,null,ae.createElement(o,{rootCls:s,cssVar:l,component:e}),c):c,l==null?void 0:l.key]}},Rs=(e,t,n,r)=>{const i=Array.isArray(e)?e[0]:e;function a(d){return"".concat(i).concat(d.slice(0,1).toUpperCase()).concat(d.slice(1))}const o=r&&r.unitless||{},u=Object.assign(Object.assign({},OC),{[a("zIndexPopup")]:!0});Object.keys(o).forEach(d=>{u[a(d)]=o[d]});const s=Object.assign(Object.assign({},r),{unitless:u,prefixToken:a}),l=Op(e,t,n,s),c=d6(i,n,s);return function(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d;const[,m]=l(d,h),[y,b]=c(h);return[y,m,b]}};function f6(e,t){return Mc.reduce((n,r)=>{const i=e["".concat(r,"1")],a=e["".concat(r,"3")],o=e["".concat(r,"6")],u=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:u}))},{})}const h6=Object.assign({},Ts),{useId:rv}=h6,m6=()=>"",p6=typeof rv>"u"?m6:rv,g6=p6;function v6(e,t,n){var r;Np();const i=e||{},a=i.inherit===!1||!t?Object.assign(Object.assign({},Lh),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Lh.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=g6();return Ep(()=>{var u,s;if(!e)return t;const l=Object.assign({},a.components);Object.keys(e.components||{}).forEach(h=>{l[h]=Object.assign(Object.assign({},l[h]),e.components[h])});const c="css-var-".concat(o.replace(/:/g,"")),d=((u=i.cssVar)!==null&&u!==void 0?u:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((s=i.cssVar)===null||s===void 0?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},a),i),{token:Object.assign(Object.assign({},a.token),i.token),components:l,cssVar:d})},[i,a],(u,s)=>u.some((l,c)=>{const d=s[c];return!Ch(l,d,!0)}))}var E6=["children"],BC=p.createContext({});function y6(e){var t=e.children,n=jt(e,E6);return p.createElement(BC.Provider,{value:n},t)}var b6=function(e){wa(n,e);var t=Ia(n);function n(){return an(this,n),t.apply(this,arguments)}return on(n,[{key:"render",value:function(){return this.props.children}}]),n}(p.Component);function T6(e){var t=p.useReducer(function(u){return u+1},0),n=ue(t,2),r=n[1],i=p.useRef(e),a=cn(function(){return i.current}),o=cn(function(u){i.current=typeof u=="function"?u(i.current):u,r()});return[a,o]}var yi="none",Tl="appear",Cl="enter",Sl="leave",iv="none",yr="prepare",oo="start",uo="active",Pp="end",HC="prepared";function av(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}function C6(e,t){var n={animationend:av("Animation","AnimationEnd"),transitionend:av("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var S6=C6(jn(),typeof window<"u"?window:{}),UC={};if(jn()){var _6=document.createElement("div");UC=_6.style}var _l={};function $C(e){if(_l[e])return _l[e];var t=S6[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Ur(function(){i<=1?r({isCanceled:function(){return a!==e.current}}):n(r,i-1)});e.current=a}return p.useEffect(function(){return function(){t()}},[]),[n,t]};var w6=[yr,oo,uo,Pp],I6=[yr,HC],YC=!1,N6=!0;function qC(e){return e===uo||e===Pp}const R6=function(e,t,n){var r=ds(iv),i=ue(r,2),a=i[0],o=i[1],u=A6(),s=ue(u,2),l=s[0],c=s[1];function d(){o(yr,!0)}var h=t?I6:w6;return WC(function(){if(a!==iv&&a!==Pp){var m=h.indexOf(a),y=h[m+1],b=n(a);b===YC?o(y,!0):y&&l(function(T){function v(){T.isCanceled()||o(y,!0)}b===!0?v():Promise.resolve(b).then(v)})}},[e,a]),p.useEffect(function(){return function(){c()}},[]),[d,a]};function O6(e,t,n,r){var i=r.motionEnter,a=i===void 0?!0:i,o=r.motionAppear,u=o===void 0?!0:o,s=r.motionLeave,l=s===void 0?!0:s,c=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,T=r.onEnterStart,v=r.onLeaveStart,g=r.onAppearActive,E=r.onEnterActive,_=r.onLeaveActive,x=r.onAppearEnd,S=r.onEnterEnd,I=r.onLeaveEnd,R=r.onVisibleChanged,O=ds(),M=ue(O,2),F=M[0],B=M[1],z=T6(yi),U=ue(z,2),G=U[0],H=U[1],L=ds(null),P=ue(L,2),$=P[0],C=P[1],D=G(),W=p.useRef(!1),w=p.useRef(null);function X(){return n()}var Z=p.useRef(!1);function J(){H(yi),C(null,!0)}var fe=cn(function(ve){var de=G();if(de!==yi){var Ie=X();if(!(ve&&!ve.deadline&&ve.target!==Ie)){var Ne=Z.current,Se;de===Tl&&Ne?Se=x==null?void 0:x(Ie,ve):de===Cl&&Ne?Se=S==null?void 0:S(Ie,ve):de===Sl&&Ne&&(Se=I==null?void 0:I(Ie,ve)),Ne&&Se!==!1&&J()}}}),Te=x6(fe),_e=ue(Te,1),Ae=_e[0],ke=function(de){switch(de){case Tl:return V(V(V({},yr,h),oo,b),uo,g);case Cl:return V(V(V({},yr,m),oo,T),uo,E);case Sl:return V(V(V({},yr,y),oo,v),uo,_);default:return{}}},Oe=p.useMemo(function(){return ke(D)},[D]),He=R6(D,!e,function(ve){if(ve===yr){var de=Oe[yr];return de?de(X()):YC}if(Fe in Oe){var Ie;C(((Ie=Oe[Fe])===null||Ie===void 0?void 0:Ie.call(Oe,X(),null))||null)}return Fe===uo&&D!==yi&&(Ae(X()),c>0&&(clearTimeout(w.current),w.current=setTimeout(function(){fe({deadline:!0})},c))),Fe===HC&&J(),N6}),Me=ue(He,2),Ge=Me[0],Fe=Me[1],$e=qC(Fe);Z.current=$e,WC(function(){B(t);var ve=W.current;W.current=!0;var de;!ve&&t&&u&&(de=Tl),ve&&t&&a&&(de=Cl),(ve&&!t&&l||!ve&&d&&!t&&l)&&(de=Sl);var Ie=ke(de);de&&(e||Ie[yr])?(H(de),Ge()):H(yi)},[t]),p.useEffect(function(){(D===Tl&&!u||D===Cl&&!a||D===Sl&&!l)&&H(yi)},[u,a,l]),p.useEffect(function(){return function(){W.current=!1,clearTimeout(w.current)}},[]);var ce=p.useRef(!1);p.useEffect(function(){F&&(ce.current=!0),F!==void 0&&D===yi&&((ce.current||F)&&(R==null||R(F)),ce.current=!0)},[F,D]);var we=$;return Oe[yr]&&Fe===oo&&(we=K({transition:"none"},we)),[D,Fe,we,F!=null?F:t]}function P6(e){var t=e;Be(e)==="object"&&(t=e.transitionSupport);function n(i,a){return!!(i.motionName&&t&&a!==!1)}var r=p.forwardRef(function(i,a){var o=i.visible,u=o===void 0?!0:o,s=i.removeOnLeave,l=s===void 0?!0:s,c=i.forceRender,d=i.children,h=i.motionName,m=i.leavedClassName,y=i.eventProps,b=p.useContext(BC),T=b.motion,v=n(i,T),g=p.useRef(),E=p.useRef();function _(){try{return g.current instanceof HTMLElement?g.current:Yl(E.current)}catch($){return null}}var x=O6(v,u,_,i),S=ue(x,4),I=S[0],R=S[1],O=S[2],M=S[3],F=p.useRef(M);M&&(F.current=!0);var B=p.useCallback(function($){g.current=$,yp(a,$)},[a]),z,U=K(K({},y),{},{visible:u});if(!d)z=null;else if(I===yi)M?z=d(K({},U),B):!l&&F.current&&m?z=d(K(K({},U),{},{className:m}),B):c||!l&&!m?z=d(K(K({},U),{},{style:{display:"none"}}),B):z=null;else{var G;R===yr?G="prepare":qC(R)?G="active":R===oo&&(G="start");var H=sv(h,"".concat(I,"-").concat(G));z=d(K(K({},U),{},{className:pe(sv(h,I),V(V({},H,H&&G),h,typeof h=="string")),style:O}),B)}if(p.isValidElement(z)&&Ns(z)){var L=z,P=L.ref;P||(z=p.cloneElement(z,{ref:B}))}return p.createElement(b6,{ref:E},z)});return r.displayName="CSSMotion",r}const Os=P6(VC);var Fh="add",Bh="keep",Hh="remove",Gf="removed";function L6(e){var t;return e&&Be(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function Uh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(L6)}function k6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,a=Uh(e),o=Uh(t);a.forEach(function(l){for(var c=!1,d=r;d1});return s.forEach(function(l){n=n.filter(function(c){var d=c.key,h=c.status;return d!==l||h!==Hh}),n.forEach(function(c){c.key===l&&(c.status=Bh)})}),n}var M6=["component","children","onVisibleChanged","onAllRemoved"],D6=["status"],F6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function B6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Os,n=function(r){wa(a,r);var i=Ia(a);function a(){var o;an(this,a);for(var u=arguments.length,s=new Array(u),l=0;lnull;var z6=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const Y6=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Dc=t),n!==void 0&&(KC=n),"holderRender"in e&&(XC=i),r&&(W6(r)?VR(tc(),r):QC=r)},q6=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(tc(),"-").concat(e):tc()),getIconPrefixCls:V6,getRootPrefixCls:()=>Dc||tc(),getTheme:()=>QC,holderRender:XC}),G6=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:o,locale:u,componentSize:s,direction:l,space:c,virtual:d,dropdownMatchSelectWidth:h,popupMatchSelectWidth:m,popupOverflow:y,legacyLocale:b,parentContext:T,iconPrefixCls:v,theme:g,componentDisabled:E,segmented:_,statistic:x,spin:S,calendar:I,carousel:R,cascader:O,collapse:M,typography:F,checkbox:B,descriptions:z,divider:U,drawer:G,skeleton:H,steps:L,image:P,layout:$,list:C,mentions:D,modal:W,progress:w,result:X,slider:Z,breadcrumb:J,menu:fe,pagination:Te,input:_e,textArea:Ae,empty:ke,badge:Oe,radio:He,rate:Me,switch:Ge,transfer:Fe,avatar:$e,message:ce,tag:we,table:ve,card:de,tabs:Ie,timeline:Ne,timePicker:Se,upload:Pe,notification:Y,tree:ie,colorPicker:Ce,datePicker:me,rangePicker:he,flex:Xe,wave:Ze,dropdown:Vt,warning:pn,tour:xn,floatButtonGroup:ct}=e,ht=p.useCallback((We,nt)=>{const{prefixCls:At}=e;if(nt)return nt;const wt=At||T.getPrefixCls("");return We?"".concat(wt,"-").concat(We):wt},[T.getPrefixCls,e.prefixCls]),Ke=v||T.iconPrefixCls||Rp,Wt=n||T.csp;MC(Ke,Wt);const Ot=v6(g,T.theme,{prefixCls:ht("")}),lr={csp:Wt,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:u||b,direction:l,space:c,virtual:d,popupMatchSelectWidth:m!=null?m:h,popupOverflow:y,getPrefixCls:ht,iconPrefixCls:Ke,theme:Ot,segmented:_,statistic:x,spin:S,calendar:I,carousel:R,cascader:O,collapse:M,typography:F,checkbox:B,descriptions:z,divider:U,drawer:G,skeleton:H,steps:L,image:P,input:_e,textArea:Ae,layout:$,list:C,mentions:D,modal:W,progress:w,result:X,slider:Z,breadcrumb:J,menu:fe,pagination:Te,empty:ke,badge:Oe,radio:He,rate:Me,switch:Ge,transfer:Fe,avatar:$e,message:ce,tag:we,table:ve,card:de,tabs:Ie,timeline:Ne,timePicker:Se,upload:Pe,notification:Y,tree:ie,colorPicker:Ce,datePicker:me,rangePicker:he,flex:Xe,wave:Ze,dropdown:Vt,warning:pn,tour:xn,floatButtonGroup:ct},oe=Object.assign({},T);Object.keys(lr).forEach(We=>{lr[We]!==void 0&&(oe[We]=lr[We])}),j6.forEach(We=>{const nt=e[We];nt&&(oe[We]=nt)}),typeof r<"u"&&(oe.button=Object.assign({autoInsertSpace:r},oe.button));const le=Ep(()=>oe,oe,(We,nt)=>{const At=Object.keys(We),wt=Object.keys(nt);return At.length!==wt.length||At.some(Jt=>We[Jt]!==nt[Jt])}),ee=p.useMemo(()=>({prefixCls:Ke,csp:Wt}),[Ke,Wt]);let se=p.createElement(p.Fragment,null,p.createElement($6,{dropdownMatchSelectWidth:h}),t);const ze=p.useMemo(()=>{var We,nt,At,wt;return ao(((We=Nd.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((At=(nt=le.locale)===null||nt===void 0?void 0:nt.Form)===null||At===void 0?void 0:At.defaultValidateMessages)||{},((wt=le.form)===null||wt===void 0?void 0:wt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[le,o==null?void 0:o.validateMessages]);Object.keys(ze).length>0&&(se=p.createElement(JN.Provider,{value:ze},se)),u&&(se=p.createElement(lR,{locale:u,_ANT_MARK__:uR},se)),(Ke||Wt)&&(se=p.createElement(Id.Provider,{value:ee},se)),s&&(se=p.createElement(YR,{size:s},se)),se=p.createElement(U6,null,se);const Ft=p.useMemo(()=>{const We=Ot||{},{algorithm:nt,token:At,components:wt,cssVar:Jt}=We,Yt=z6(We,["algorithm","token","components","cssVar"]),Ir=nt&&(!Array.isArray(nt)||nt.length>0)?_h(nt):IC,An={};Object.entries(wt||{}).forEach(cr=>{let[In,Nn]=cr;const gt=Object.assign({},Nn);"algorithm"in gt&&(gt.algorithm===!0?gt.theme=Ir:(Array.isArray(gt.algorithm)||typeof gt.algorithm=="function")&&(gt.theme=_h(gt.algorithm)),delete gt.algorithm),An[In]=gt});const wn=Object.assign(Object.assign({},cs),At);return Object.assign(Object.assign({},Yt),{theme:Ir,token:wn,components:An,override:Object.assign({override:wn},An),cssVar:Jt})},[Ot]);return g&&(se=p.createElement(NC.Provider,{value:Ft},se)),le.warning&&(se=p.createElement(ZN.Provider,{value:le.warning},se)),E!==void 0&&(se=p.createElement(WR,{disabled:E},se)),p.createElement(Dt.Provider,{value:le},se)},Fo=e=>{const t=p.useContext(Dt),n=p.useContext(SC);return p.createElement(G6,Object.assign({parentContext:t,legacyLocale:n},e))};Fo.ConfigContext=Dt;Fo.SizeContext=Od;Fo.config=Y6;Fo.useConfig=qR;Object.defineProperty(Fo,"SizeContext",{get:()=>Od});var K6={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"};const Q6=K6;function ZC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function X6(e){return ZC(e)instanceof ShadowRoot}function Fc(e){return X6(e)?ZC(e):null}function Z6(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $h(e,t){$n(e,"[@ant-design/icons] ".concat(t))}function lv(e){return Be(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Be(e.icon)==="object"||typeof e.icon=="function")}function cv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Z6(n)]=r}return t},{})}function zh(e,t,n){return n?ae.createElement(e.tag,K(K({key:t},cv(e.attrs)),n),(e.children||[]).map(function(r,i){return zh(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ae.createElement(e.tag,K({key:t},cv(e.attrs)),(e.children||[]).map(function(r,i){return zh(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function JC(e){return Sa(e)[0]}function e2(e){return e?Array.isArray(e)?e:[e]:[]}var J6={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},eO="\n.anticon {\n display: inline-flex;\n align-items: center;\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",t2=function(t){var n=p.useContext(Id),r=n.csp,i=n.prefixCls,a=eO;i&&(a=a.replace(/anticon/g,i)),p.useEffect(function(){var o=t.current,u=Fc(o);ti(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:u})},[])},tO=["icon","className","onClick","style","primaryColor","secondaryColor"],Iu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function nO(e){var t=e.primaryColor,n=e.secondaryColor;Iu.primaryColor=t,Iu.secondaryColor=n||JC(t),Iu.calculated=!!n}function rO(){return K({},Iu)}var kd=function(t){var n=t.icon,r=t.className,i=t.onClick,a=t.style,o=t.primaryColor,u=t.secondaryColor,s=jt(t,tO),l=p.useRef(),c=Iu;if(o&&(c={primaryColor:o,secondaryColor:u||JC(o)}),t2(l),$h(lv(n),"icon should be icon definiton, but got ".concat(n)),!lv(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=K(K({},d),{},{icon:d.icon(c.primaryColor,c.secondaryColor)})),zh(d.icon,"svg-".concat(d.name),K(K({className:r,onClick:i,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:l}))};kd.displayName="IconReact";kd.getTwoToneColors=rO;kd.setTwoToneColors=nO;const Lp=kd;function n2(e){var t=e2(e),n=ue(t,2),r=n[0],i=n[1];return Lp.setTwoToneColors({primaryColor:r,secondaryColor:i})}function iO(){var e=Lp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var aO=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];n2(AR.primary);var Md=p.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,o=e.tabIndex,u=e.onClick,s=e.twoToneColor,l=jt(e,aO),c=p.useContext(Id),d=c.prefixCls,h=d===void 0?"anticon":d,m=c.rootClassName,y=pe(m,h,V(V({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),b=o;b===void 0&&u&&(b=-1);var T=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=e2(s),g=ue(v,2),E=g[0],_=g[1];return p.createElement("span",et({role:"img","aria-label":r.name},l,{ref:t,tabIndex:b,onClick:u,className:y}),p.createElement(Lp,{icon:r,primaryColor:E,secondaryColor:_,style:T}))});Md.displayName="AntdIcon";Md.getTwoToneColor=iO;Md.setTwoToneColor=n2;const li=Md;var oO=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:Q6}))},uO=p.forwardRef(oO);const sO=uO;var lO={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"};const cO=lO;var dO=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:cO}))},fO=p.forwardRef(dO);const r2=fO;var hO={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"};const mO=hO;var pO=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:mO}))},gO=p.forwardRef(pO);const vO=gO;var EO={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"};const yO=EO;var bO=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:yO}))},TO=p.forwardRef(bO);const CO=TO;var SO={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"};const _O=SO;var xO=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:_O}))},AO=p.forwardRef(xO);const wO=AO;var IO="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap",NO="onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError",RO="".concat(IO," ").concat(NO).split(/[\s\n]+/),OO="aria-",PO="data-";function dv(e,t){return e.indexOf(t)===0}function i2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=K({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||dv(i,OO))||n.data&&dv(i,PO)||n.attr&&RO.includes(i))&&(r[i]=e[i])}),r}function a2(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const LO=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function fs(e,t){return LO(e,e,t)}const kO=e=>{const[,,,,t]=$r();return t?"".concat(e,"-css-var"):""},Ps=kO;var Re={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Re.F1&&n<=Re.F12)return!1;switch(n){case Re.ALT:case Re.CAPS_LOCK:case Re.CONTEXT_MENU:case Re.CTRL:case Re.DOWN:case Re.END:case Re.ESC:case Re.HOME:case Re.INSERT:case Re.LEFT:case Re.MAC_FF_META:case Re.META:case Re.NUMLOCK:case Re.NUM_CENTER:case Re.PAGE_DOWN:case Re.PAGE_UP:case Re.PAUSE:case Re.PRINT_SCREEN:case Re.RIGHT:case Re.SHIFT:case Re.UP:case Re.WIN_KEY:case Re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Re.ZERO&&t<=Re.NINE||t>=Re.NUM_ZERO&&t<=Re.NUM_MULTIPLY||t>=Re.A&&t<=Re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Re.SPACE:case Re.QUESTION_MARK:case Re.NUM_PLUS:case Re.NUM_MINUS:case Re.NUM_PERIOD:case Re.NUM_DIVISION:case Re.SEMICOLON:case Re.DASH:case Re.EQUALS:case Re.COMMA:case Re.PERIOD:case Re.SLASH:case Re.APOSTROPHE:case Re.SINGLE_QUOTE:case Re.OPEN_SQUARE_BRACKET:case Re.BACKSLASH:case Re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},o2=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,o=a===void 0?4.5:a,u=e.showProgress,s=e.pauseOnHover,l=s===void 0?!0:s,c=e.eventKey,d=e.content,h=e.closable,m=e.closeIcon,y=m===void 0?"x":m,b=e.props,T=e.onClick,v=e.onNoticeClose,g=e.times,E=e.hovering,_=p.useState(!1),x=ue(_,2),S=x[0],I=x[1],R=p.useState(0),O=ue(R,2),M=O[0],F=O[1],B=p.useState(0),z=ue(B,2),U=z[0],G=z[1],H=E||S,L=o>0&&u,P=function(){v(c)},$=function(Z){(Z.key==="Enter"||Z.code==="Enter"||Z.keyCode===Re.ENTER)&&P()};p.useEffect(function(){if(!H&&o>0){var X=Date.now()-U,Z=setTimeout(function(){P()},o*1e3-U);return function(){l&&clearTimeout(Z),G(Date.now()-X)}}},[o,H,g]),p.useEffect(function(){if(!H&&L&&(l||U===0)){var X=performance.now(),Z,J=function fe(){cancelAnimationFrame(Z),Z=requestAnimationFrame(function(Te){var _e=Te+U-X,Ae=Math.min(_e/(o*1e3),1);F(Ae*100),Ae<1&&fe()})};return J(),function(){l&&cancelAnimationFrame(Z)}}},[o,U,H,L,g]);var C=p.useMemo(function(){return Be(h)==="object"&&h!==null?h:h?{closeIcon:y}:{}},[h,y]),D=i2(C,!0),W=100-(!M||M<0?0:M>100?100:M),w="".concat(n,"-notice");return p.createElement("div",et({},b,{ref:t,className:pe(w,i,V({},"".concat(w,"-closable"),h)),style:r,onMouseEnter:function(Z){var J;I(!0),b==null||(J=b.onMouseEnter)===null||J===void 0||J.call(b,Z)},onMouseLeave:function(Z){var J;I(!1),b==null||(J=b.onMouseLeave)===null||J===void 0||J.call(b,Z)},onClick:T}),p.createElement("div",{className:"".concat(w,"-content")},d),h&&p.createElement("a",et({tabIndex:0,className:"".concat(w,"-close"),onKeyDown:$,"aria-label":"Close"},D,{onClick:function(Z){Z.preventDefault(),Z.stopPropagation(),P()}}),C.closeIcon),L&&p.createElement("progress",{className:"".concat(w,"-progress"),max:"100",value:W},W+"%"))}),u2=ae.createContext({}),MO=function(t){var n=t.children,r=t.classNames;return ae.createElement(u2.Provider,{value:{classNames:r}},n)},fv=8,hv=3,mv=16,DO=function(t){var n={offset:fv,threshold:hv,gap:mv};if(t&&Be(t)==="object"){var r,i,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:fv,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:hv,n.gap=(a=t.gap)!==null&&a!==void 0?a:mv}return[!!t,n]},FO=["className","style","classNames","styles"],BO=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,a=t.className,o=t.style,u=t.motion,s=t.onAllNoticeRemoved,l=t.onNoticeClose,c=t.stack,d=p.useContext(u2),h=d.classNames,m=p.useRef({}),y=p.useState(null),b=ue(y,2),T=b[0],v=b[1],g=p.useState([]),E=ue(g,2),_=E[0],x=E[1],S=n.map(function(H){return{config:H,key:String(H.key)}}),I=DO(c),R=ue(I,2),O=R[0],M=R[1],F=M.offset,B=M.threshold,z=M.gap,U=O&&(_.length>0||S.length<=B),G=typeof u=="function"?u(r):u;return p.useEffect(function(){O&&_.length>1&&x(function(H){return H.filter(function(L){return S.some(function(P){var $=P.key;return L===$})})})},[_,S,O]),p.useEffect(function(){var H;if(O&&m.current[(H=S[S.length-1])===null||H===void 0?void 0:H.key]){var L;v(m.current[(L=S[S.length-1])===null||L===void 0?void 0:L.key])}},[S,O]),ae.createElement(H6,et({key:r,className:pe(i,"".concat(i,"-").concat(r),h==null?void 0:h.list,a,V(V({},"".concat(i,"-stack"),!!O),"".concat(i,"-stack-expanded"),U)),style:o,keys:S,motionAppear:!0},G,{onAllRemoved:function(){s(r)}}),function(H,L){var P=H.config,$=H.className,C=H.style,D=H.index,W=P,w=W.key,X=W.times,Z=String(w),J=P,fe=J.className,Te=J.style,_e=J.classNames,Ae=J.styles,ke=jt(J,FO),Oe=S.findIndex(function(Se){return Se.key===Z}),He={};if(O){var Me=S.length-1-(Oe>-1?Oe:D-1),Ge=r==="top"||r==="bottom"?"-50%":"0";if(Me>0){var Fe,$e,ce;He.height=U?(Fe=m.current[Z])===null||Fe===void 0?void 0:Fe.offsetHeight:T==null?void 0:T.offsetHeight;for(var we=0,ve=0;ve-1?m.current[Z]=Pe:delete m.current[Z]},prefixCls:i,classNames:_e,styles:Ae,className:pe(fe,h==null?void 0:h.notice),style:Te,times:X,key:w,eventKey:w,onNoticeClose:l,hovering:O&&_.length>0})))})},HO=p.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,a=e.motion,o=e.maxCount,u=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,d=e.renderNotifications,h=p.useState([]),m=ue(h,2),y=m[0],b=m[1],T=function(O){var M,F=y.find(function(B){return B.key===O});F==null||(M=F.onClose)===null||M===void 0||M.call(F),b(function(B){return B.filter(function(z){return z.key!==O})})};p.useImperativeHandle(t,function(){return{open:function(O){b(function(M){var F=be(M),B=F.findIndex(function(G){return G.key===O.key}),z=K({},O);if(B>=0){var U;z.times=(((U=M[B])===null||U===void 0?void 0:U.times)||0)+1,F[B]=z}else z.times=0,F.push(z);return o>0&&F.length>o&&(F=F.slice(-o)),F})},close:function(O){T(O)},destroy:function(){b([])}}});var v=p.useState({}),g=ue(v,2),E=g[0],_=g[1];p.useEffect(function(){var R={};y.forEach(function(O){var M=O.placement,F=M===void 0?"topRight":M;F&&(R[F]=R[F]||[],R[F].push(O))}),Object.keys(E).forEach(function(O){R[O]=R[O]||[]}),_(R)},[y]);var x=function(O){_(function(M){var F=K({},M),B=F[O]||[];return B.length||delete F[O],F})},S=p.useRef(!1);if(p.useEffect(function(){Object.keys(E).length>0?S.current=!0:S.current&&(l==null||l(),S.current=!1)},[E]),!i)return null;var I=Object.keys(E);return As.createPortal(p.createElement(p.Fragment,null,I.map(function(R){var O=E[R],M=p.createElement(BO,{key:R,configList:O,placement:R,prefixCls:r,className:u==null?void 0:u(R),style:s==null?void 0:s(R),motion:a,onNoticeClose:T,onAllNoticeRemoved:x,stack:c});return d?d(M,{prefixCls:r,key:R}):M})),i)}),UO=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$O=function(){return document.body},pv=0;function zO(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?$O:t,r=e.motion,i=e.prefixCls,a=e.maxCount,o=e.className,u=e.style,s=e.onAllRemoved,l=e.stack,c=e.renderNotifications,d=jt(e,UO),h=p.useState(),m=ue(h,2),y=m[0],b=m[1],T=p.useRef(),v=p.createElement(HO,{container:y,ref:T,prefixCls:i,motion:r,maxCount:a,className:o,style:u,onAllRemoved:s,stack:l,renderNotifications:c}),g=p.useState([]),E=ue(g,2),_=E[0],x=E[1],S=p.useMemo(function(){return{open:function(R){var O=zO(d,R);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(pv),pv+=1),x(function(M){return[].concat(be(M),[{type:"open",config:O}])})},close:function(R){x(function(O){return[].concat(be(O),[{type:"close",key:R}])})},destroy:function(){x(function(R){return[].concat(be(R),[{type:"destroy"}])})}}},[]);return p.useEffect(function(){b(n())}),p.useEffect(function(){T.current&&_.length&&(_.forEach(function(I){switch(I.type){case"open":T.current.open(I.config);break;case"close":T.current.close(I.key);break;case"destroy":T.current.destroy();break}}),x(function(I){return I.filter(function(R){return!_.includes(R)})}))},[_]),[S,v]}var VO={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"};const WO=VO;var YO=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:WO}))},qO=p.forwardRef(YO);const s2=qO,GO=ae.createContext(void 0),l2=GO,na=100,KO=10,c2=na*KO,d2={Modal:na,Drawer:na,Popover:na,Popconfirm:na,Tooltip:na,Tour:na},QO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function XO(e){return e in d2}function ZO(e,t){const[,n]=$r(),r=ae.useContext(l2),i=XO(e);if(t!==void 0)return[t,t];let a=r!=null?r:0;return i?(a+=(r?0:n.zIndexPopupBase)+d2[e],a=Math.min(a,n.zIndexPopupBase+c2)):a+=QO[e],[r===void 0?t:a,a]}const JO=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:a,colorError:o,colorWarning:u,colorInfo:s,fontSizeLG:l,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:h,paddingXS:m,borderRadiusLG:y,zIndexPopup:b,contentPadding:T,contentBg:v}=e,g="".concat(t,"-notice"),E=new _n("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),_=new _n("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:m,textAlign:"center",["".concat(t,"-custom-content")]:{display:"flex",alignItems:"center"},["".concat(t,"-custom-content > ").concat(n)]:{marginInlineEnd:h,fontSize:l},["".concat(g,"-content")]:{display:"inline-block",padding:T,background:v,borderRadius:y,boxShadow:r,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:a},["".concat(t,"-error > ").concat(n)]:{color:o},["".concat(t,"-warning > ").concat(n)]:{color:u},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:s}};return[{[t]:Object.assign(Object.assign({},Ld(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:b,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:E,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:_,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(g,"-wrapper")]:Object.assign({},x)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},e4=e=>({zIndexPopup:e.zIndexPopupBase+c2+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")}),f2=Rs("Message",e=>{const t=Yn(e,{height:150});return[JO(t)]},e4);var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,type:n,icon:r,children:i}=e;return p.createElement("div",{className:pe("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},r||n4[n],p.createElement("span",null,i))},r4=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,o=t4(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:u}=p.useContext(Dt),s=t||u("message"),l=Ps(s),[c,d,h]=f2(s,l);return c(p.createElement(o2,Object.assign({},o,{prefixCls:s,className:pe(n,d,"".concat(s,"-notice-pure-panel"),h,l),eventKey:"pure",duration:null,content:p.createElement(h2,{prefixCls:s,type:r,icon:i},a)})))},i4=r4;function a4(e,t){return{motionName:t!=null?t:"".concat(e,"-move-up")}}function kp(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}var o4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{children:t,prefixCls:n}=e;const r=Ps(n),[i,a,o]=f2(n,r);return i(p.createElement(MO,{classNames:{list:pe(a,o,r)}},t))},c4=(e,t)=>{let{prefixCls:n,key:r}=t;return p.createElement(l4,{prefixCls:n,key:r},e)},d4=p.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=s4,rtl:u,transitionName:s,onAllRemoved:l}=e,{getPrefixCls:c,getPopupContainer:d,message:h,direction:m}=p.useContext(Dt),y=r||c("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:u4}),T=()=>pe({["".concat(y,"-rtl")]:u!=null?u:m==="rtl"}),v=()=>a4(y,s),g=p.createElement("span",{className:"".concat(y,"-close-x")},p.createElement(vO,{className:"".concat(y,"-close-icon")})),[E,_]=jO({prefixCls:y,style:b,className:T,motion:v,closable:!1,closeIcon:g,duration:o,getContainer:()=>(i==null?void 0:i())||(d==null?void 0:d())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:c4});return p.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:y,message:h})),_});let gv=0;function m2(e){const t=p.useRef(null);return Np(),[p.useMemo(()=>{const r=s=>{var l;(l=t.current)===null||l===void 0||l.close(s)},i=s=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:l,prefixCls:c,message:d}=t.current,h="".concat(c,"-notice"),{content:m,icon:y,type:b,key:T,className:v,style:g,onClose:E}=s,_=o4(s,["content","icon","type","key","className","style","onClose"]);let x=T;return x==null&&(gv+=1,x="antd-message-".concat(gv)),kp(S=>(l(Object.assign(Object.assign({},_),{key:x,content:p.createElement(h2,{prefixCls:c,type:b,icon:y},m),placement:"top",className:pe(b&&"".concat(h,"-").concat(b),v,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),g),onClose:()=>{E==null||E(),S()}})),()=>{r(x)}))},o={open:i,destroy:s=>{var l;s!==void 0?r(s):(l=t.current)===null||l===void 0||l.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const l=(c,d,h)=>{let m;c&&typeof c=="object"&&"content"in c?m=c:m={content:c};let y,b;typeof d=="function"?b=d:(y=d,b=h);const T=Object.assign(Object.assign({onClose:b,duration:y},m),{type:s});return i(T)};o[s]=l}),o},[]),p.createElement(d4,Object.assign({key:"message-holder"},e,{ref:t}))]}function f4(e){return m2(e)}function fn(){fn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(H,L,P){H[L]=P.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(H,L,P){return Object.defineProperty(H,L,{value:P,enumerable:!0,configurable:!0,writable:!0}),H[L]}try{l({},"")}catch(H){l=function(P,$,C){return P[$]=C}}function c(H,L,P,$){var C=L&&L.prototype instanceof v?L:v,D=Object.create(C.prototype),W=new U($||[]);return i(D,"_invoke",{value:M(H,P,W)}),D}function d(H,L,P){try{return{type:"normal",arg:H.call(L,P)}}catch($){return{type:"throw",arg:$}}}t.wrap=c;var h="suspendedStart",m="suspendedYield",y="executing",b="completed",T={};function v(){}function g(){}function E(){}var _={};l(_,o,function(){return this});var x=Object.getPrototypeOf,S=x&&x(x(G([])));S&&S!==n&&r.call(S,o)&&(_=S);var I=E.prototype=v.prototype=Object.create(_);function R(H){["next","throw","return"].forEach(function(L){l(H,L,function(P){return this._invoke(L,P)})})}function O(H,L){function P(C,D,W,w){var X=d(H[C],H,D);if(X.type!=="throw"){var Z=X.arg,J=Z.value;return J&&Be(J)=="object"&&r.call(J,"__await")?L.resolve(J.__await).then(function(fe){P("next",fe,W,w)},function(fe){P("throw",fe,W,w)}):L.resolve(J).then(function(fe){Z.value=fe,W(Z)},function(fe){return P("throw",fe,W,w)})}w(X.arg)}var $;i(this,"_invoke",{value:function(D,W){function w(){return new L(function(X,Z){P(D,W,X,Z)})}return $=$?$.then(w,w):w()}})}function M(H,L,P){var $=h;return function(C,D){if($===y)throw Error("Generator is already running");if($===b){if(C==="throw")throw D;return{value:e,done:!0}}for(P.method=C,P.arg=D;;){var W=P.delegate;if(W){var w=F(W,P);if(w){if(w===T)continue;return w}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if($===h)throw $=b,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);$=y;var X=d(H,L,P);if(X.type==="normal"){if($=P.done?b:m,X.arg===T)continue;return{value:X.arg,done:P.done}}X.type==="throw"&&($=b,P.method="throw",P.arg=X.arg)}}}function F(H,L){var P=L.method,$=H.iterator[P];if($===e)return L.delegate=null,P==="throw"&&H.iterator.return&&(L.method="return",L.arg=e,F(H,L),L.method==="throw")||P!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+P+"' method")),T;var C=d($,H.iterator,L.arg);if(C.type==="throw")return L.method="throw",L.arg=C.arg,L.delegate=null,T;var D=C.arg;return D?D.done?(L[H.resultName]=D.value,L.next=H.nextLoc,L.method!=="return"&&(L.method="next",L.arg=e),L.delegate=null,T):D:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,T)}function B(H){var L={tryLoc:H[0]};1 in H&&(L.catchLoc=H[1]),2 in H&&(L.finallyLoc=H[2],L.afterLoc=H[3]),this.tryEntries.push(L)}function z(H){var L=H.completion||{};L.type="normal",delete L.arg,H.completion=L}function U(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(B,this),this.reset(!0)}function G(H){if(H||H===""){var L=H[o];if(L)return L.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var P=-1,$=function C(){for(;++P=0;--C){var D=this.tryEntries[C],W=D.completion;if(D.tryLoc==="root")return $("end");if(D.tryLoc<=this.prev){var w=r.call(D,"catchLoc"),X=r.call(D,"finallyLoc");if(w&&X){if(this.prev=0;--$){var C=this.tryEntries[$];if(C.tryLoc<=this.prev&&r.call(C,"finallyLoc")&&this.prev=0;--P){var $=this.tryEntries[P];if($.finallyLoc===L)return this.complete($.completion,$.afterLoc),z($),T}},catch:function(L){for(var P=this.tryEntries.length-1;P>=0;--P){var $=this.tryEntries[P];if($.tryLoc===L){var C=$.completion;if(C.type==="throw"){var D=C.arg;z($)}return D}}throw Error("illegal catch attempt")},delegateYield:function(L,P,$){return this.delegate={iterator:G(L),resultName:P,nextLoc:$},this.method==="next"&&(this.arg=e),T}},t}function vv(e,t,n,r,i,a,o){try{var u=e[a](o),s=u.value}catch(l){return void n(l)}u.done?t(s):Promise.resolve(s).then(r,i)}function Na(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(s){vv(a,r,i,o,u,"next",s)}function u(s){vv(a,r,i,o,u,"throw",s)}o(void 0)})}}var Ls=K({},ZA),h4=Ls.version,m4=Ls.render,p4=Ls.unmountComponentAtNode,Dd;try{var g4=Number((h4||"").split(".")[0]);g4>=18&&(Dd=Ls.createRoot)}catch(e){}function Ev(e){var t=Ls.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Be(t)==="object"&&(t.usingClientEntryPoint=e)}var Bc="__rc_react_root__";function v4(e,t){Ev(!0);var n=t[Bc]||Dd(t);Ev(!1),n.render(e),t[Bc]=n}function E4(e,t){m4(e,t)}function p2(e,t){if(Dd){v4(e,t);return}E4(e,t)}function y4(e){return jh.apply(this,arguments)}function jh(){return jh=Na(fn().mark(function e(t){return fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[Bc])===null||i===void 0||i.unmount(),delete t[Bc]}));case 1:case"end":return r.stop()}},e)})),jh.apply(this,arguments)}function b4(e){p4(e)}function T4(e){return Vh.apply(this,arguments)}function Vh(){return Vh=Na(fn().mark(function e(t){return fn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Dd===void 0){r.next=2;break}return r.abrupt("return",y4(t));case 2:b4(t);case 3:case"end":return r.stop()}},e)})),Vh.apply(this,arguments)}const C4=(e,t,n)=>n!==void 0?n:"".concat(e,"-").concat(t),g2=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 i=e.getBoundingClientRect(),a=i.width,o=i.height;if(a||o)return!0}}return!1},S4=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)].join(",")}}}}},_4=Op("Wave",e=>[S4(e)]),v2="".concat(GC,"-wave-target");function x4(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Kf(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&x4(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function A4(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Kf(t)?t:Kf(n)?n:Kf(r)?r:null}function Qf(e){return Number.isNaN(e)?0:e}const w4=e=>{const{className:t,target:n,component:r}=e,i=p.useRef(null),[a,o]=p.useState(null),[u,s]=p.useState([]),[l,c]=p.useState(0),[d,h]=p.useState(0),[m,y]=p.useState(0),[b,T]=p.useState(0),[v,g]=p.useState(!1),E={left:l,top:d,width:m,height:b,borderRadius:u.map(S=>"".concat(S,"px")).join(" ")};a&&(E["--wave-color"]=a);function _(){const S=getComputedStyle(n);o(A4(n));const I=S.position==="static",{borderLeftWidth:R,borderTopWidth:O}=S;c(I?n.offsetLeft:Qf(-parseFloat(R))),h(I?n.offsetTop:Qf(-parseFloat(O))),y(n.offsetWidth),T(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:F,borderBottomLeftRadius:B,borderBottomRightRadius:z}=S;s([M,F,z,B].map(U=>Qf(parseFloat(U))))}if(p.useEffect(()=>{if(n){const S=Ur(()=>{_(),g(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(_),I.observe(n)),()=>{Ur.cancel(S),I==null||I.disconnect()}}},[]),!v)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(v2));return p.createElement(Os,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(S,I)=>{var R;if(I.deadline||I.propertyName==="opacity"){const O=(R=i.current)===null||R===void 0?void 0:R.parentElement;T4(O).then(()=>{O==null||O.remove()})}return!1}},(S,I)=>{let{className:R}=S;return p.createElement("div",{ref:qi(i,I),className:pe(t,R,{"wave-quick":x}),style:E})})},I4=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),p2(p.createElement(w4,Object.assign({},t,{target:e})),i)},N4=I4,R4=(e,t,n)=>{const{wave:r}=p.useContext(Dt),[,i,a]=$r(),o=cn(l=>{const c=e.current;if(r!=null&&r.disabled||!c)return;const d=c.querySelector(".".concat(v2))||c,{showEffect:h}=r||{};(h||N4)(d,{className:t,token:i,component:n,event:l,hashId:a})}),u=p.useRef();return l=>{Ur.cancel(u.current),u.current=Ur(()=>{o(l)})}},O4=R4,P4=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=p.useContext(Dt),a=p.useRef(null),o=i("wave"),[,u]=_4(o),s=O4(a,pe(o,u),r);if(ae.useEffect(()=>{const c=a.current;if(!c||c.nodeType!==1||n)return;const d=h=>{!g2(h.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s(h)};return c.addEventListener("click",d,!0),()=>{c.removeEventListener("click",d,!0)}},[n]),!ae.isValidElement(t))return t!=null?t:null;const l=Ns(t)?qi(t.ref,a):a;return fs(t,{ref:l})},L4=P4,k4=e=>{const t=ae.useContext(Od);return ae.useMemo(()=>e?typeof e=="string"?e!=null?e:t:e instanceof Function?e(t):t:t,[e,t])},ks=k4;globalThis&&globalThis.__rest;const E2=p.createContext(null),Mp=(e,t)=>{const n=p.useContext(E2),r=p.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,u=i==="vertical"?"-vertical-":"-";return pe("".concat(e,"-compact").concat(u,"item"),{["".concat(e,"-compact").concat(u,"first-item")]:a,["".concat(e,"-compact").concat(u,"last-item")]:o,["".concat(e,"-compact").concat(u,"item-rtl")]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},y2=e=>{let{children:t}=e;return p.createElement(E2.Provider,{value:null},t)};var M4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=p.useContext(Dt),{prefixCls:r,size:i,className:a}=e,o=M4(e,["prefixCls","size","className"]),u=t("btn-group",r),[,,s]=$r();let l="";switch(i){case"large":l="lg";break;case"small":l="sm";break}const c=pe(u,{["".concat(u,"-").concat(l)]:l,["".concat(u,"-rtl")]:n==="rtl"},a,s);return p.createElement(b2.Provider,{value:i},p.createElement("div",Object.assign({},o,{className:c})))},F4=D4,yv=/^[\u4e00-\u9fa5]{2}$/,Wh=yv.test.bind(yv);function bv(e){return typeof e=="string"}function Xf(e){return e==="text"||e==="link"}function B4(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&bv(e.type)&&Wh(e.props.children)?fs(e,{children:e.props.children.split("").join(n)}):bv(e)?Wh(e)?ae.createElement("span",null,e.split("").join(n)):ae.createElement("span",null,e):a2(e)?ae.createElement("span",null,e):e}function H4(e,t){let n=!1;const r=[];return ae.Children.forEach(e,i=>{const a=typeof i,o=a==="string"||a==="number";if(n&&o){const u=r.length-1,s=r[u];r[u]="".concat(s).concat(i)}else r.push(i);n=o}),ae.Children.map(r,i=>B4(i,t))}const U4=p.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:a}=e,o=pe("".concat(a,"-icon"),n);return ae.createElement("span",{ref:t,className:o,style:r},i)}),T2=U4,Tv=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=pe("".concat(n,"-loading-icon"),r);return ae.createElement(T2,{prefixCls:n,className:o,style:i,ref:t},ae.createElement(s2,{className:a}))}),Zf=()=>({width:0,opacity:0,transform:"scale(0)"}),Jf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$4=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:a}=e,o=!!n;return r?ae.createElement(Tv,{prefixCls:t,className:i,style:a}):ae.createElement(Os,{visible:o,motionName:"".concat(t,"-loading-icon-motion"),motionLeave:o,removeOnLeave:!0,onAppearStart:Zf,onAppearActive:Jf,onEnterStart:Zf,onEnterActive:Jf,onLeaveStart:Jf,onLeaveActive:Zf},(u,s)=>{let{className:l,style:c}=u;return ae.createElement(Tv,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),c),ref:s,iconClassName:l})})},z4=$4,Cv=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),j4=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},Cv("".concat(t,"-primary"),i),Cv("".concat(t,"-danger"),a)]}},V4=j4,C2=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Yn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},S2=e=>{var t,n,r,i,a,o;const u=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,l=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,c=(i=e.contentLineHeight)!==null&&i!==void 0?i:ec(u),d=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:ec(s),h=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:ec(l);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:u,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:c,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-u*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*h)/2-e.lineWidth,0)}},W4=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat(Je(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},["".concat(t,"-icon")]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},a6(e)),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},oi=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),Y4=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q4=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),G4=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),hs=(e,t,n,r,i,a,o,u)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},oi(e,Object.assign({background:t},o),Object.assign({background:t},u))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:a||void 0}})}),Dp=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},G4(e))}),_2=e=>Object.assign({},Dp(e)),Hc=e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}),x2=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_2(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),oi(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),hs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},oi(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Dp(e))}),K4=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_2(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),oi(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),hs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},oi(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),hs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Dp(e))}),Q4=e=>Object.assign(Object.assign({},x2(e)),{borderStyle:"dashed"}),X4=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},oi(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Hc(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},oi(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Hc(e))}),Z4=e=>Object.assign(Object.assign(Object.assign({},oi(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Hc(e)),{["&".concat(e.componentCls,"-dangerous")]:Object.assign(Object.assign({color:e.colorError},Hc(e)),oi(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),J4=e=>{const{componentCls:t}=e;return{["".concat(t,"-default")]:x2(e),["".concat(t,"-primary")]:K4(e),["".concat(t,"-dashed")]:Q4(e),["".concat(t,"-link")]:X4(e),["".concat(t,"-text")]:Z4(e),["".concat(t,"-ghost")]:hs(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Fp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:a,borderRadius:o,buttonPaddingHorizontal:u,iconCls:s,buttonPaddingVertical:l}=e,c="".concat(n,"-icon-only");return[{["".concat(t)]:{fontSize:i,lineHeight:a,height:r,padding:"".concat(Je(l)," ").concat(Je(u)),borderRadius:o,["&".concat(c)]:{width:r,paddingInline:0,["&".concat(n,"-compact-item")]:{flex:"none"},["&".concat(n,"-round")]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},["&".concat(n,"-loading")]:{opacity:e.opacityLoading,cursor:"default"},["".concat(n,"-loading-icon")]:{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)}}},{["".concat(n).concat(n,"-circle").concat(t)]:Y4(e)},{["".concat(n).concat(n,"-round").concat(t)]:q4(e)}]},eP=e=>{const t=Yn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Fp(t,e.componentCls)},tP=e=>{const t=Yn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Fp(t,"".concat(e.componentCls,"-sm"))},nP=e=>{const t=Yn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Fp(t,"".concat(e.componentCls,"-lg"))},rP=e=>{const{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}},iP=Rs("Button",e=>{const t=C2(e);return[W4(t),eP(t),tP(t),nP(t),rP(t),J4(t),V4(t)]},S2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function aP(e,t,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",u=["hover",i?"focus":null,"active"].filter(Boolean).map(s=>"&:".concat(s," ").concat(o)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[u]:{zIndex:2}},r?{["&".concat(r)]:{zIndex:2}}:{}),{["&[disabled] ".concat(o)]:{zIndex:0}})}}function oP(e,t,n){const{borderElCls:r}=n,i=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(i)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(i,", &").concat(e,"-sm ").concat(i,", &").concat(e,"-lg ").concat(i)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(i,", &").concat(e,"-sm ").concat(i,", &").concat(e,"-lg ").concat(i)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function A2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r="".concat(n,"-compact");return{[r]:Object.assign(Object.assign({},aP(e,r,t)),oP(n,r,t))}}function uP(e,t){return{["&-item:not(".concat(t,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function sP(e,t){return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item)")]:{borderRadius:0},["&-item".concat(t,"-first-item:not(").concat(t,"-last-item)")]:{["&, &".concat(e,"-sm, &").concat(e,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(t,"-last-item:not(").concat(t,"-first-item)")]:{["&, &".concat(e,"-sm, &").concat(e,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function lP(e){const t="".concat(e.componentCls,"-compact-vertical");return{[t]:Object.assign(Object.assign({},uP(e,t)),sP(e.componentCls,t))}}const cP=e=>{const{componentCls:t,calc:n}=e;return{[t]:{["&-compact-item".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat(Je(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{["&".concat(t,"-primary")]:{["&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])")]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat(Je(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},dP=c6(["Button","compact"],e=>{const t=C2(e);return[A2(t),lP(t),cP(t)]},S2);var fP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i;const{loading:a=!1,prefixCls:o,type:u,danger:s=!1,shape:l="default",size:c,styles:d,disabled:h,className:m,rootClassName:y,children:b,icon:T,iconPosition:v="start",ghost:g=!1,block:E=!1,htmlType:_="button",classNames:x,style:S={},autoInsertSpace:I}=e,R=fP(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),O=u||"default",{getPrefixCls:M,direction:F,button:B}=p.useContext(Dt),z=(n=I!=null?I:B==null?void 0:B.autoInsertSpace)!==null&&n!==void 0?n:!0,U=M("btn",o),[G,H,L]=iP(U),P=p.useContext(Rd),$=h!=null?h:P,C=p.useContext(b2),D=p.useMemo(()=>hP(a),[a]),[W,w]=p.useState(D.loading),[X,Z]=p.useState(!1),fe=qi(t,p.createRef()),Te=p.Children.count(b)===1&&!T&&!Xf(O);p.useEffect(()=>{let Se=null;D.delay>0?Se=setTimeout(()=>{Se=null,w(!0)},D.delay):w(D.loading);function Pe(){Se&&(clearTimeout(Se),Se=null)}return Pe},[D]),p.useEffect(()=>{if(!fe||!fe.current||!z)return;const Se=fe.current.textContent;Te&&Wh(Se)?X||Z(!0):X&&Z(!1)},[fe]);const _e=Se=>{const{onClick:Pe}=e;if(W||$){Se.preventDefault();return}Pe==null||Pe(Se)},{compactSize:Ae,compactItemClassnames:ke}=Mp(U,F),Oe={large:"lg",small:"sm",middle:void 0},He=ks(Se=>{var Pe,Y;return(Y=(Pe=c!=null?c:Ae)!==null&&Pe!==void 0?Pe:C)!==null&&Y!==void 0?Y:Se}),Me=He&&Oe[He]||"",Ge=W?"loading":T,Fe=Tp(R,["navigate"]),$e=pe(U,H,L,{["".concat(U,"-").concat(l)]:l!=="default"&&l,["".concat(U,"-").concat(O)]:O,["".concat(U,"-").concat(Me)]:Me,["".concat(U,"-icon-only")]:!b&&b!==0&&!!Ge,["".concat(U,"-background-ghost")]:g&&!Xf(O),["".concat(U,"-loading")]:W,["".concat(U,"-two-chinese-chars")]:X&&z&&!W,["".concat(U,"-block")]:E,["".concat(U,"-dangerous")]:s,["".concat(U,"-rtl")]:F==="rtl",["".concat(U,"-icon-end")]:v==="end"},ke,m,y,B==null?void 0:B.className),ce=Object.assign(Object.assign({},B==null?void 0:B.style),S),we=pe(x==null?void 0:x.icon,(r=B==null?void 0:B.classNames)===null||r===void 0?void 0:r.icon),ve=Object.assign(Object.assign({},(d==null?void 0:d.icon)||{}),((i=B==null?void 0:B.styles)===null||i===void 0?void 0:i.icon)||{}),de=T&&!W?ae.createElement(T2,{prefixCls:U,className:we,style:ve},T):ae.createElement(z4,{existIcon:!!T,prefixCls:U,loading:W}),Ie=b||b===0?H4(b,Te&&z):null;if(Fe.href!==void 0)return G(ae.createElement("a",Object.assign({},Fe,{className:pe($e,{["".concat(U,"-disabled")]:$}),href:$?void 0:Fe.href,style:ce,onClick:_e,ref:fe,tabIndex:$?-1:0}),de,Ie));let Ne=ae.createElement("button",Object.assign({},R,{type:_,className:$e,style:ce,onClick:_e,disabled:$,ref:fe}),de,Ie,!!ke&&ae.createElement(dP,{key:"compact",prefixCls:U}));return Xf(O)||(Ne=ae.createElement(L4,{component:"Button",disabled:W},Ne)),G(Ne)}),Bp=mP;Bp.Group=F4;Bp.__ANT_BUTTON=!0;const pP=Bp;var w2=p.createContext(null),Sv=[];function gP(e,t){var n=p.useState(function(){if(!jn())return null;var y=document.createElement("div");return y}),r=ue(n,1),i=r[0],a=p.useRef(!1),o=p.useContext(w2),u=p.useState(Sv),s=ue(u,2),l=s[0],c=s[1],d=o||(a.current?void 0:function(y){c(function(b){var T=[y].concat(be(b));return T})});function h(){i.parentElement||document.body.appendChild(i),a.current=!0}function m(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),a.current=!1}return Gt(function(){return e?o?o(h):h():m(),m},[e]),Gt(function(){l.length&&(l.forEach(function(y){return y()}),c(Sv))},[l]),[i,d]}function vP(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(u.width,10),l=parseInt(u.height,10);try{var c=s?"width: ".concat(u.width,";"):"",d=l?"height: ".concat(u.height,";"):"";ti("\n#".concat(t,"::-webkit-scrollbar {\n").concat(c,"\n").concat(d,"\n}"),t)}catch(y){console.error(y),i=s,a=l}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,m=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),us(t),{width:h,height:m}}function EP(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:vP(e)}function yP(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var bP="rc-util-locker-".concat(Date.now()),_v=0;function TP(e){var t=!!e,n=p.useState(function(){return _v+=1,"".concat(bP,"_").concat(_v)}),r=ue(n,1),i=r[0];Gt(function(){if(t){var a=EP(document.body).width,o=yP();ti("\nhtml body {\n overflow-y: hidden;\n ".concat(o?"width: calc(100% - ".concat(a,"px);"):"","\n}"),i)}else us(i);return function(){us(i)}},[t,i])}var xv=!1;function CP(e){return typeof e=="boolean"&&(xv=e),xv}var Av=function(t){return t===!1?!1:!jn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},I2=p.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var a=e.autoDestroy,o=a===void 0?!0:a,u=e.children,s=p.useState(n),l=ue(s,2),c=l[0],d=l[1],h=c||n;p.useEffect(function(){(o||n)&&d(n)},[n,o]);var m=p.useState(function(){return Av(i)}),y=ue(m,2),b=y[0],T=y[1];p.useEffect(function(){var F=Av(i);T(F!=null?F:null)});var v=gP(h&&!b),g=ue(v,2),E=g[0],_=g[1],x=b!=null?b:E;TP(r&&n&&jn()&&(x===E||x===document.body));var S=null;if(u&&Ns(u)&&t){var I=u;S=I.ref}var R=Td(S,t);if(!h||!jn()||b===void 0)return null;var O=x===!1||CP(),M=u;return t&&(M=p.cloneElement(u,{ref:R})),p.createElement(w2.Provider,{value:_},O?M:As.createPortal(M,x))});function SP(){var e=K({},Ts);return e.useId}var wv=0,Iv=SP();const _P=Iv?function(t){var n=Iv();return t||n}:function(t){var n=p.useState("ssr-id"),r=ue(n,2),i=r[0],a=r[1];return p.useEffect(function(){var o=wv;wv+=1,a("rc_unique_".concat(o))},[]),t||i};var ca="RC_FORM_INTERNAL_HOOKS",at=function(){$n(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},No=p.createContext({getFieldValue:at,getFieldsValue:at,getFieldError:at,getFieldWarning:at,getFieldsError:at,isFieldsTouched:at,isFieldTouched:at,isFieldValidating:at,isFieldsValidating:at,resetFields:at,setFields:at,setFieldValue:at,setFieldsValue:at,validateFields:at,submit:at,getInternalHooks:function(){return at(),{dispatch:at,initEntityValue:at,registerField:at,useSubscribe:at,setInitialValues:at,destroyForm:at,setCallbacks:at,registerWatch:at,getFields:at,setValidateMessages:at,setPreserve:at,getInitialValue:at}}}),Uc=p.createContext(null);function Yh(e){return e==null?[]:Array.isArray(e)?e:[e]}function xP(e){return e&&!!e._init}function qh(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Gh=qh();function AP(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function wP(e,t,n){if(bp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&is(i,n.prototype),i}function Kh(e){var t=typeof Map=="function"?new Map:void 0;return Kh=function(r){if(r===null||!AP(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return wP(r,arguments,as(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),is(i,r)},Kh(e)}var IP=/%[sdj%]/g,NP=function(){};typeof process<"u"&&process.env;function Qh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Bn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return u;switch(u){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(s){return"[Circular]"}break;default:return u}});return o}return e}function RP(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||RP(t)&&typeof e=="string"&&!e)}function OP(e,t,n){var r=[],i=0,a=e.length;function o(u){r.push.apply(r,be(u||[])),i++,i===a&&n(r)}e.forEach(function(u){t(u,o)})}function Nv(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var u=r;r=r+1,ut.max?i.push(Bn(a.messages[d].max,t.fullField,t.max)):u&&s&&(ct.max)&&i.push(Bn(a.messages[d].range,t.fullField,t.min,t.max))},N2=function(t,n,r,i,a,o){t.required&&(!r.hasOwnProperty(t.field)||Mt(n,o||t.type))&&i.push(Bn(a.messages.required,t.fullField))},xl;const HP=function(){if(xl)return xl;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(i.join("|"),")").concat(a),u=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(o,"$")),c=function(S){return S&&S.exact?u:new RegExp("(?:".concat(t(S)).concat(n).concat(t(S),")|(?:").concat(t(S)).concat(o).concat(t(S),")"),"g")};c.v4=function(x){return x&&x.exact?s:new RegExp("".concat(t(x)).concat(n).concat(t(x)),"g")},c.v6=function(x){return x&&x.exact?l:new RegExp("".concat(t(x)).concat(o).concat(t(x)),"g")};var d="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",m=c.v4().source,y=c.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",T="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',_="(?:".concat(d,"|www\\.)").concat(h,"(?:localhost|").concat(m,"|").concat(y,"|").concat(b).concat(T).concat(v,")").concat(g).concat(E);return xl=new RegExp("(?:^".concat(_,"$)"),"i"),xl};var Lv={email:/^(([^<>()\[\]\\.,;:\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},pu={integer:function(t){return pu.number(t)&&parseInt(t,10)===t},float:function(t){return pu.number(t)&&!pu.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Be(t)==="object"&&!pu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Lv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(HP())},hex:function(t){return typeof t=="string"&&!!t.match(Lv.hex)}},UP=function(t,n,r,i,a){if(t.required&&n===void 0){N2(t,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],u=t.type;o.indexOf(u)>-1?pu[u](n)||i.push(Bn(a.messages.types[u],t.fullField,t.type)):u&&Be(n)!==t.type&&i.push(Bn(a.messages.types[u],t.fullField,t.type))},$P=function(t,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(Bn(a.messages.whitespace,t.fullField))};const qe={required:N2,whitespace:$P,type:UP,range:BP,enum:DP,pattern:FP};var zP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a)}r(o)},jP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(n==null&&!t.required)return r();qe.required(t,n,i,o,a,"array"),n!=null&&(qe.type(t,n,i,o,a),qe.range(t,n,i,o,a))}r(o)},VP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&qe.type(t,n,i,o,a)}r(o)},WP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n,"date")&&!t.required)return r();if(qe.required(t,n,i,o,a),!Mt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),qe.type(t,s,i,o,a),s&&qe.range(t,s.getTime(),i,o,a)}}r(o)},YP="enum",qP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&qe[YP](t,n,i,o,a)}r(o)},GP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&(qe.type(t,n,i,o,a),qe.range(t,n,i,o,a))}r(o)},KP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&(qe.type(t,n,i,o,a),qe.range(t,n,i,o,a))}r(o)},QP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&qe.type(t,n,i,o,a)}r(o)},XP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(n===""&&(n=void 0),Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&(qe.type(t,n,i,o,a),qe.range(t,n,i,o,a))}r(o)},ZP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),n!==void 0&&qe.type(t,n,i,o,a)}r(o)},JP=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n,"string")&&!t.required)return r();qe.required(t,n,i,o,a),Mt(n,"string")||qe.pattern(t,n,i,o,a)}r(o)},eL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n)&&!t.required)return r();qe.required(t,n,i,o,a),Mt(n)||qe.type(t,n,i,o,a)}r(o)},tL=function(t,n,r,i,a){var o=[],u=Array.isArray(n)?"array":Be(n);qe.required(t,n,i,o,a,u),r(o)},nL=function(t,n,r,i,a){var o=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Mt(n,"string")&&!t.required)return r();qe.required(t,n,i,o,a,"string"),Mt(n,"string")||(qe.type(t,n,i,o,a),qe.range(t,n,i,o,a),qe.pattern(t,n,i,o,a),t.whitespace===!0&&qe.whitespace(t,n,i,o,a))}r(o)},e0=function(t,n,r,i,a){var o=t.type,u=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Mt(n,o)&&!t.required)return r();qe.required(t,n,i,u,a,o),Mt(n,o)||qe.type(t,n,i,u,a)}r(u)};const Nu={string:nL,method:QP,number:XP,boolean:VP,regexp:eL,integer:KP,float:GP,array:jP,object:ZP,enum:qP,pattern:JP,date:WP,url:e0,hex:e0,email:e0,required:tL,any:zP};var Ms=function(){function e(t){an(this,e),V(this,"rules",null),V(this,"_messages",Gh),this.define(t)}return on(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Be(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var a=n[i];r.rules[i]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Pv(qh(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,u=i,s=a;if(typeof u=="function"&&(s=u,u={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,o),Promise.resolve(o);function l(y){var b=[],T={};function v(E){if(Array.isArray(E)){var _;b=(_=b).concat.apply(_,be(E))}else b.push(E)}for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(I)?I:[I];!u.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&T.message!==void 0&&(R=[].concat(T.message));var O=R.map(Ov(T,o));if(u.first&&O.length)return m[T.field]=1,b(O);if(!v)b(O);else{if(T.required&&!y.value)return T.message!==void 0?O=[].concat(T.message).map(Ov(T,o)):u.error&&(O=[u.error(T,Bn(u.messages.required,T.field))]),b(O);var M={};T.defaultField&&Object.keys(y.value).map(function(z){M[z]=T.defaultField}),M=K(K({},M),y.rule.fields);var F={};Object.keys(M).forEach(function(z){var U=M[z],G=Array.isArray(U)?U:[U];F[z]=G.map(g.bind(null,z))});var B=new e(F);B.messages(u.messages),y.rule.options&&(y.rule.options.messages=u.messages,y.rule.options.error=u.error),B.validate(y.value,y.rule.options||u,function(z){var U=[];O&&O.length&&U.push.apply(U,be(O)),z&&z.length&&U.push.apply(U,be(z)),b(U.length?U:null)})}}var _;if(T.asyncValidator)_=T.asyncValidator(T,y.value,E,y.source,u);else if(T.validator){try{_=T.validator(T,y.value,E,y.source,u)}catch(I){var x,S;(x=(S=console).error)===null||x===void 0||x.call(S,I),u.suppressValidatorError||setTimeout(function(){throw I},0),E(I.message)}_===!0?E():_===!1?E(typeof T.message=="function"?T.message(T.fullField||T.field):T.message||"".concat(T.fullField||T.field," fails")):_ instanceof Array?E(_):_ instanceof Error&&E(_.message)}_&&_.then&&_.then(function(){return E()},function(I){return E(I)})},function(y){l(y)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Nu.hasOwnProperty(n.type))throw new Error(Bn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Nu.required:Nu[this.getType(n)]||void 0}}]),e}();V(Ms,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Nu[t]=n});V(Ms,"warning",NP);V(Ms,"messages",Gh);V(Ms,"validators",Nu);var On="'${name}' is not a valid ${type}",R2={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:On,method:On,array:On,object:On,number:On,date:On,boolean:On,integer:On,float:On,regexp:On,email:On,url:On,hex:On},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},kv=Ms;function rL(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Mv="CODE_LOGIC_ERROR";function Xh(e,t,n,r,i){return Zh.apply(this,arguments)}function Zh(){return Zh=Na(fn().mark(function e(t,n,r,i,a){var o,u,s,l,c,d,h,m,y;return fn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return o=K({},r),delete o.ruleIndex,kv.warning=function(){},o.validator&&(u=o.validator,o.validator=function(){try{return u.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(Mv)}}),s=null,o&&o.type==="array"&&o.defaultField&&(s=o.defaultField,delete o.defaultField),l=new kv(V({},t,[o])),c=ao(R2,i.validateMessages),l.messages(c),d=[],T.prev=10,T.next=13,Promise.resolve(l.validate(V({},t,n),K({},i)));case 13:T.next=18;break;case 15:T.prev=15,T.t0=T.catch(10),T.t0.errors&&(d=T.t0.errors.map(function(v,g){var E=v.message,_=E===Mv?c.default:E;return p.isValidElement(_)?p.cloneElement(_,{key:"error_".concat(g)}):_}));case 18:if(!(!d.length&&s)){T.next=23;break}return T.next=21,Promise.all(n.map(function(v,g){return Xh("".concat(t,".").concat(g),v,s,i,a)}));case 21:return h=T.sent,T.abrupt("return",h.reduce(function(v,g){return[].concat(be(v),be(g))},[]));case 23:return m=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),y=d.map(function(v){return typeof v=="string"?rL(v,m):v}),T.abrupt("return",y);case 26:case"end":return T.stop()}},e,null,[[10,15]])})),Zh.apply(this,arguments)}function iL(e,t,n,r,i,a){var o=e.join("."),u=n.map(function(c,d){var h=c.validator,m=K(K({},c),{},{ruleIndex:d});return h&&(m.validator=function(y,b,T){var v=!1,g=function(){for(var x=arguments.length,S=new Array(x),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return O2(t,r,n)})}function O2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function uL(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Be(e)!=="object"||Be(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return be(i).every(function(a){var o=e[a],u=t[a];return typeof o=="function"&&typeof u=="function"?!0:o===u})}function sL(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Be(t.target)==="object"&&e in t.target?t.target[e]:t}function Fv(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],a=t-n;return a>0?[].concat(be(e.slice(0,n)),[i],be(e.slice(n,t)),be(e.slice(t+1,r))):a<0?[].concat(be(e.slice(0,t)),be(e.slice(t+1,n+1)),[i],be(e.slice(n+1,r))):e}var lL=["name"],Kn=[];function Bv(e,t,n,r,i,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==i}var Hp=function(e){wa(n,e);var t=Ia(n);function n(r){var i;if(an(this,n),i=t.call(this,r),V(je(i),"state",{resetCount:0}),V(je(i),"cancelRegisterFunc",null),V(je(i),"mounted",!1),V(je(i),"touched",!1),V(je(i),"dirty",!1),V(je(i),"validatePromise",void 0),V(je(i),"prevValidating",void 0),V(je(i),"errors",Kn),V(je(i),"warnings",Kn),V(je(i),"cancelRegister",function(){var s=i.props,l=s.preserve,c=s.isListField,d=s.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(c,l,St(d)),i.cancelRegisterFunc=null}),V(je(i),"getNamePath",function(){var s=i.props,l=s.name,c=s.fieldContext,d=c.prefixName,h=d===void 0?[]:d;return l!==void 0?[].concat(be(h),be(l)):[]}),V(je(i),"getRules",function(){var s=i.props,l=s.rules,c=l===void 0?[]:l,d=s.fieldContext;return c.map(function(h){return typeof h=="function"?h(d):h})}),V(je(i),"refresh",function(){i.mounted&&i.setState(function(s){var l=s.resetCount;return{resetCount:l+1}})}),V(je(i),"metaCache",null),V(je(i),"triggerMetaEvent",function(s){var l=i.props.onMetaChange;if(l){var c=K(K({},i.getMeta()),{},{destroy:s});Ch(i.metaCache,c)||l(c),i.metaCache=c}else i.metaCache=null}),V(je(i),"onStoreChange",function(s,l,c){var d=i.props,h=d.shouldUpdate,m=d.dependencies,y=m===void 0?[]:m,b=d.onReset,T=c.store,v=i.getNamePath(),g=i.getValue(s),E=i.getValue(T),_=l&&go(l,v);switch(c.type==="valueUpdate"&&c.source==="external"&&!Ch(g,E)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Kn,i.warnings=Kn,i.triggerMetaEvent()),c.type){case"reset":if(!l||_){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Kn,i.warnings=Kn,i.triggerMetaEvent(),b==null||b(),i.refresh();return}break;case"remove":{if(h){i.reRender();return}break}case"setField":{var x=c.data;if(_){"touched"in x&&(i.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(i.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(i.errors=x.errors||Kn),"warnings"in x&&(i.warnings=x.warnings||Kn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in x&&go(l,v,!0)){i.reRender();return}if(h&&!v.length&&Bv(h,s,T,g,E,c)){i.reRender();return}break}case"dependenciesUpdate":{var S=y.map(St);if(S.some(function(I){return go(c.relatedFields,I)})){i.reRender();return}break}default:if(_||(!y.length||v.length||h)&&Bv(h,s,T,g,E,c)){i.reRender();return}break}h===!0&&i.reRender()}),V(je(i),"validateRules",function(s){var l=i.getNamePath(),c=i.getValue(),d=s||{},h=d.triggerName,m=d.validateOnly,y=m===void 0?!1:m,b=Promise.resolve().then(Na(fn().mark(function T(){var v,g,E,_,x,S,I;return fn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(i.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(v=i.props,g=v.validateFirst,E=g===void 0?!1:g,_=v.messageVariables,x=v.validateDebounce,S=i.getRules(),h&&(S=S.filter(function(M){return M}).filter(function(M){var F=M.validateTrigger;if(!F)return!0;var B=Yh(F);return B.includes(h)})),!(x&&h)){O.next=10;break}return O.next=8,new Promise(function(M){setTimeout(M,x)});case 8:if(i.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return I=iL(l,c,S,s,E,_),I.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kn;if(i.validatePromise===b){var F;i.validatePromise=null;var B=[],z=[];(F=M.forEach)===null||F===void 0||F.call(M,function(U){var G=U.rule.warningOnly,H=U.errors,L=H===void 0?Kn:H;G?z.push.apply(z,be(L)):B.push.apply(B,be(L))}),i.errors=B,i.warnings=z,i.triggerMetaEvent(),i.reRender()}}),O.abrupt("return",I);case 13:case"end":return O.stop()}},T)})));return y||(i.validatePromise=b,i.dirty=!0,i.errors=Kn,i.warnings=Kn,i.triggerMetaEvent(),i.reRender()),b}),V(je(i),"isFieldValidating",function(){return!!i.validatePromise}),V(je(i),"isFieldTouched",function(){return i.touched}),V(je(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var s=i.props.fieldContext,l=s.getInternalHooks(ca),c=l.getInitialValue;return c(i.getNamePath())!==void 0}),V(je(i),"getErrors",function(){return i.errors}),V(je(i),"getWarnings",function(){return i.warnings}),V(je(i),"isListField",function(){return i.props.isListField}),V(je(i),"isList",function(){return i.props.isList}),V(je(i),"isPreserve",function(){return i.props.preserve}),V(je(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var s={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return s}),V(je(i),"getOnlyChild",function(s){if(typeof s=="function"){var l=i.getMeta();return K(K({},i.getOnlyChild(s(i.getControlled(),l,i.props.fieldContext))),{},{isFunction:!0})}var c=Oc(s);return c.length!==1||!p.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),V(je(i),"getValue",function(s){var l=i.props.fieldContext.getFieldsValue,c=i.getNamePath();return Dr(s||l(!0),c)}),V(je(i),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.props,c=l.name,d=l.trigger,h=l.validateTrigger,m=l.getValueFromEvent,y=l.normalize,b=l.valuePropName,T=l.getValueProps,v=l.fieldContext,g=h!==void 0?h:v.validateTrigger,E=i.getNamePath(),_=v.getInternalHooks,x=v.getFieldsValue,S=_(ca),I=S.dispatch,R=i.getValue(),O=T||function(U){return V({},b,U)},M=s[d],F=c!==void 0?O(R):{},B=K(K({},s),F);B[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var U,G=arguments.length,H=new Array(G),L=0;L=0&&M<=F.length?(c.keys=[].concat(be(c.keys.slice(0,M)),[c.id],be(c.keys.slice(M))),E([].concat(be(F.slice(0,M)),[O],be(F.slice(M))))):(c.keys=[].concat(be(c.keys),[c.id]),E([].concat(be(F),[O]))),c.id+=1},remove:function(O){var M=x(),F=new Set(Array.isArray(O)?O:[O]);F.size<=0||(c.keys=c.keys.filter(function(B,z){return!F.has(z)}),E(M.filter(function(B,z){return!F.has(z)})))},move:function(O,M){if(O!==M){var F=x();O<0||O>=F.length||M<0||M>=F.length||(c.keys=Fv(c.keys,O,M),E(Fv(F,O,M)))}}},I=g||[];return Array.isArray(I)||(I=[]),r(I.map(function(R,O){var M=c.keys[O];return M===void 0&&(c.keys[O]=c.id,M=c.keys[O],c.id+=1),{name:O,key:M,isListField:!0}}),S,T)})))}function dL(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,a){e.forEach(function(o,u){o.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[u]=s,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var L2="__@field_split__";function t0(e){return e.map(function(t){return"".concat(Be(t),":").concat(t)}).join(L2)}var Ha=function(){function e(){an(this,e),V(this,"kvs",new Map)}return on(e,[{key:"set",value:function(n,r){this.kvs.set(t0(n),r)}},{key:"get",value:function(n){return this.kvs.get(t0(n))}},{key:"update",value:function(n,r){var i=this.get(n),a=r(i);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(t0(n))}},{key:"map",value:function(n){return be(this.kvs.entries()).map(function(r){var i=ue(r,2),a=i[0],o=i[1],u=a.split(L2);return n({key:u.map(function(s){var l=s.match(/^([^:]*):(.*)$/),c=ue(l,3),d=c[1],h=c[2];return d==="number"?Number(h):h}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,a=r.value;return n[i.join(".")]=a,null}),n}}]),e}(),fL=["name"],hL=on(function e(t){var n=this;an(this,e),V(this,"formHooked",!1),V(this,"forceRootUpdate",void 0),V(this,"subscribable",!0),V(this,"store",{}),V(this,"fieldEntities",[]),V(this,"initialValues",{}),V(this,"callbacks",{}),V(this,"validateMessages",null),V(this,"preserve",null),V(this,"lastValidatePromise",null),V(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}}),V(this,"getInternalHooks",function(r){return r===ca?(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}):($n(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),V(this,"useSubscribe",function(r){n.subscribable=r}),V(this,"prevWithoutPreserves",null),V(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var a,o=ao(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(u){var s=u.key;o=Er(o,s,Dr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),V(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Ha;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||i.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),V(this,"getInitialValue",function(r){var i=Dr(n.initialValues,r);return r.length?ao(i):i}),V(this,"setCallbacks",function(r){n.callbacks=r}),V(this,"setValidateMessages",function(r){n.validateMessages=r}),V(this,"setPreserve",function(r){n.preserve=r}),V(this,"watchList",[]),V(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),V(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(i,a,r)})}}),V(this,"timeoutId",null),V(this,"warningUnhooked",function(){}),V(this,"updateStore",function(r){n.store=r}),V(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),V(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Ha;return n.getFieldEntities(r).forEach(function(a){var o=a.getNamePath();i.set(o,a)}),i}),V(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(a){var o=St(a);return i.get(o)||{INVALIDATE_NAME_PATH:St(a)}})}),V(this,"getFieldsValue",function(r,i){n.warningUnhooked();var a,o,u;if(r===!0||Array.isArray(r)?(a=r,o=i):r&&Be(r)==="object"&&(u=r.strict,o=r.filter),a===!0&&!o)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),l=[];return s.forEach(function(c){var d,h,m="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(u){var y,b;if((y=(b=c).isList)!==null&&y!==void 0&&y.call(b))return}else if(!a&&(d=(h=c).isListField)!==null&&d!==void 0&&d.call(h))return;if(!o)l.push(m);else{var T="getMeta"in c?c.getMeta():null;o(T)&&l.push(m)}}),Dv(n.store,l.map(St))}),V(this,"getFieldValue",function(r){n.warningUnhooked();var i=St(r);return Dr(n.store,i)}),V(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(a,o){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:St(r[o]),errors:[],warnings:[]}})}),V(this,"getFieldError",function(r){n.warningUnhooked();var i=St(r),a=n.getFieldsError([i])[0];return a.errors}),V(this,"getFieldWarning",function(r){n.warningUnhooked();var i=St(r),a=n.getFieldsError([i])[0];return a.warnings}),V(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},i=new Ha,a=n.getFieldEntities(!0);a.forEach(function(s){var l=s.props.initialValue,c=s.getNamePath();if(l!==void 0){var d=i.get(c)||new Set;d.add({entity:s,value:l}),i.set(c,d)}});var o=function(l){l.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var h=c.getNamePath(),m=n.getInitialValue(h);if(m!==void 0)$n(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var y=i.get(h);if(y&&y.size>1)$n(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(h),T=c.isListField();!T&&(!r.skipExist||b===void 0)&&n.updateStore(Er(n.store,h,be(y)[0].value))}}}})},u;r.entities?u=r.entities:r.namePathList?(u=[],r.namePathList.forEach(function(s){var l=i.get(s);if(l){var c;(c=u).push.apply(c,be(be(l).map(function(d){return d.entity})))}})):u=a,o(u)}),V(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(ao(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(St);a.forEach(function(o){var u=n.getInitialValue(o);n.updateStore(Er(n.store,o,u))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(i,a,{type:"reset"}),n.notifyWatch(a)}),V(this,"setFields",function(r){n.warningUnhooked();var i=n.store,a=[];r.forEach(function(o){var u=o.name,s=jt(o,fL),l=St(u);a.push(l),"value"in s&&n.updateStore(Er(n.store,l,s.value)),n.notifyObservers(i,[l],{type:"setField",data:o})}),n.notifyWatch(a)}),V(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(a){var o=a.getNamePath(),u=a.getMeta(),s=K(K({},u),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return i}),V(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var a=r.getNamePath(),o=Dr(n.store,a);o===void 0&&n.updateStore(Er(n.store,a,i))}}),V(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i!=null?i:!0}),V(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,u){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(u)&&(!o||s.length>1)){var l=o?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==l&&n.fieldEntities.every(function(d){return!O2(d.getNamePath(),i)})){var c=n.store;n.updateStore(Er(c,i,l,!0)),n.notifyObservers(c,[i],{type:"remove"}),n.triggerDependenciesUpdate(c,i)}}n.notifyWatch([i])}}),V(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,a=r.value;n.updateValue(i,a);break}case"validateField":{var o=r.namePath,u=r.triggerName;n.validateFields([o],{triggerName:u});break}}}),V(this,"notifyObservers",function(r,i,a){if(n.subscribable){var o=K(K({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(u){var s=u.onStoreChange;s(r,i,o)})}else n.forceRootUpdate()}),V(this,"triggerDependenciesUpdate",function(r,i){var a=n.getDependencyChildrenFields(i);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[i].concat(be(a))}),a}),V(this,"updateValue",function(r,i){var a=St(r),o=n.store;n.updateStore(Er(n.store,a,i)),n.notifyObservers(o,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var u=n.triggerDependenciesUpdate(o,a),s=n.callbacks.onValuesChange;if(s){var l=Dv(n.store,[a]);s(l,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(be(u)))}),V(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var a=ao(n.store,r);n.updateStore(a)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),V(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),V(this,"getDependencyChildrenFields",function(r){var i=new Set,a=[],o=new Ha;n.getFieldEntities().forEach(function(s){var l=s.props.dependencies;(l||[]).forEach(function(c){var d=St(c);o.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(s),h})})});var u=function s(l){var c=o.get(l)||new Set;c.forEach(function(d){if(!i.has(d)){i.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(a.push(h),s(h))}})};return u(r),a}),V(this,"triggerOnFieldsChange",function(r,i){var a=n.callbacks.onFieldsChange;if(a){var o=n.getFields();if(i){var u=new Ha;i.forEach(function(l){var c=l.name,d=l.errors;u.set(c,d)}),o.forEach(function(l){l.errors=u.get(l.name)||l.errors})}var s=o.filter(function(l){var c=l.name;return go(r,c)});s.length&&a(s,o)}}),V(this,"validateFields",function(r,i){n.warningUnhooked();var a,o;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(a=r,o=i):o=r;var u=!!a,s=u?a.map(St):[],l=[],c=String(Date.now()),d=new Set,h=o||{},m=h.recursive,y=h.dirty;n.getFieldEntities(!0).forEach(function(g){if(u||s.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(y&&!g.isFieldDirty())){var E=g.getNamePath();if(d.add(E.join(c)),!u||go(s,E,m)){var _=g.validateRules(K({validateMessages:K(K({},R2),n.validateMessages)},o));l.push(_.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(x){var S,I=[],R=[];return(S=x.forEach)===null||S===void 0||S.call(x,function(O){var M=O.rule.warningOnly,F=O.errors;M?R.push.apply(R,be(F)):I.push.apply(I,be(F))}),I.length?Promise.reject({name:E,errors:I,warnings:R}):{name:E,errors:I,warnings:R}}))}}});var b=dL(l);n.lastValidatePromise=b,b.catch(function(g){return g}).then(function(g){var E=g.map(function(_){var x=_.name;return x});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,g)});var T=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(g){var E=g.filter(function(_){return _&&_.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:E,outOfDate:n.lastValidatePromise!==b})});T.catch(function(g){return g});var v=s.filter(function(g){return d.has(g.join(c))});return n.triggerOnFieldsChange(v),T}),V(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(a){console.error(a)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function k2(e){var t=p.useRef(),n=p.useState({}),r=ue(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){i({})},o=new hL(a);t.current=o.getForm()}return[t.current]}var tm=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mL=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,a=t.children,o=p.useContext(tm),u=p.useRef({});return p.createElement(tm.Provider,{value:K(K({},o),{},{validateMessages:K(K({},o.validateMessages),n),triggerFormChange:function(l,c){r&&r(l,{changedFields:c,forms:u.current}),o.triggerFormChange(l,c)},triggerFormFinish:function(l,c){i&&i(l,{values:c,forms:u.current}),o.triggerFormFinish(l,c)},registerForm:function(l,c){l&&(u.current=K(K({},u.current),{},V({},l,c))),o.registerForm(l,c)},unregisterForm:function(l){var c=K({},u.current);delete c[l],u.current=c,o.unregisterForm(l)}})},a)},pL=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],gL=function(t,n){var r=t.name,i=t.initialValues,a=t.fields,o=t.form,u=t.preserve,s=t.children,l=t.component,c=l===void 0?"form":l,d=t.validateMessages,h=t.validateTrigger,m=h===void 0?"onChange":h,y=t.onValuesChange,b=t.onFieldsChange,T=t.onFinish,v=t.onFinishFailed,g=t.clearOnDestroy,E=jt(t,pL),_=p.useRef(null),x=p.useContext(tm),S=k2(o),I=ue(S,1),R=I[0],O=R.getInternalHooks(ca),M=O.useSubscribe,F=O.setInitialValues,B=O.setCallbacks,z=O.setValidateMessages,U=O.setPreserve,G=O.destroyForm;p.useImperativeHandle(n,function(){return K(K({},R),{},{nativeElement:_.current})}),p.useEffect(function(){return x.registerForm(r,R),function(){x.unregisterForm(r)}},[x,R,r]),z(K(K({},x.validateMessages),d)),B({onValuesChange:y,onFieldsChange:function(X){if(x.triggerFormChange(r,X),b){for(var Z=arguments.length,J=new Array(Z>1?Z-1:0),fe=1;fe{let{children:t,status:n,override:r}=e;const i=p.useContext(ji),a=p.useMemo(()=>{const o=Object.assign({},i);return r&&delete o.isFormItemInput,n&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[n,r,i]);return p.createElement(ji.Provider,{value:a},t)},bL=p.createContext(void 0),TL=e=>({animationDuration:e,animationFillMode:"both"}),CL=e=>({animationDuration:e,animationFillMode:"both"}),SL=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{["\n ".concat(a).concat(e,"-enter,\n ").concat(a).concat(e,"-appear\n ")]:Object.assign(Object.assign({},TL(r)),{animationPlayState:"paused"}),["".concat(a).concat(e,"-leave")]:Object.assign(Object.assign({},CL(r)),{animationPlayState:"paused"}),["\n ".concat(a).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(a).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(a).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},_L=new _n("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xL=new _n("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Uv=new _n("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$v=new _n("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),AL=new _n("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wL=new _n("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),IL=new _n("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),NL=new _n("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RL=new _n("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),OL=new _n("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),PL=new _n("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),LL=new _n("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kL={zoom:{inKeyframes:_L,outKeyframes:xL},"zoom-big":{inKeyframes:Uv,outKeyframes:$v},"zoom-big-fast":{inKeyframes:Uv,outKeyframes:$v},"zoom-left":{inKeyframes:IL,outKeyframes:NL},"zoom-right":{inKeyframes:RL,outKeyframes:OL},"zoom-up":{inKeyframes:AL,outKeyframes:wL},"zoom-down":{inKeyframes:PL,outKeyframes:LL}},ML=(e,t)=>{const{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:i,outKeyframes:a}=kL[t];return[SL(r,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]},DL=ae.createContext({}),FL=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};function BL(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,a=r||{},o=a.className,u=a.content,s=i.x,l=s===void 0?0:s,c=i.y,d=c===void 0?0:c,h=p.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],b=n.points[1],T=y[0],v=y[1],g=b[0],E=b[1];T===g||!["t","b"].includes(T)?m.top=d:T==="t"?m.top=0:m.bottom=0,v===E||!["l","r"].includes(v)?m.left=l:v==="l"?m.left=0:m.right=0}return p.createElement("div",{ref:h,className:pe("".concat(t,"-arrow"),o),style:m},u)}function HL(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,a=e.motion;return i?p.createElement(Os,et({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var u=o.className;return p.createElement("div",{style:{zIndex:r},className:pe("".concat(t,"-mask"),u)})}):null}var UL=p.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),$L=p.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,a=e.style,o=e.target,u=e.onVisibleChanged,s=e.open,l=e.keepDom,c=e.fresh,d=e.onClick,h=e.mask,m=e.arrow,y=e.arrowPos,b=e.align,T=e.motion,v=e.maskMotion,g=e.forceRender,E=e.getPopupContainer,_=e.autoDestroy,x=e.portal,S=e.zIndex,I=e.onMouseEnter,R=e.onMouseLeave,O=e.onPointerEnter,M=e.ready,F=e.offsetX,B=e.offsetY,z=e.offsetR,U=e.offsetB,G=e.onAlign,H=e.onPrepare,L=e.stretch,P=e.targetWidth,$=e.targetHeight,C=typeof n=="function"?n():n,D=s||l,W=(E==null?void 0:E.length)>0,w=p.useState(!E||!W),X=ue(w,2),Z=X[0],J=X[1];if(Gt(function(){!Z&&W&&o&&J(!0)},[Z,W,o]),!Z)return null;var fe="auto",Te={left:"-1000vw",top:"-1000vh",right:fe,bottom:fe};if(M||!s){var _e,Ae=b.points,ke=b.dynamicInset||((_e=b._experimental)===null||_e===void 0?void 0:_e.dynamicInset),Oe=ke&&Ae[0][1]==="r",He=ke&&Ae[0][0]==="b";Oe?(Te.right=z,Te.left=fe):(Te.left=F,Te.right=fe),He?(Te.bottom=U,Te.top=fe):(Te.top=B,Te.bottom=fe)}var Me={};return L&&(L.includes("height")&&$?Me.height=$:L.includes("minHeight")&&$&&(Me.minHeight=$),L.includes("width")&&P?Me.width=P:L.includes("minWidth")&&P&&(Me.minWidth=P)),s||(Me.pointerEvents="none"),p.createElement(x,{open:g||D,getContainer:E&&function(){return E(o)},autoDestroy:_},p.createElement(HL,{prefixCls:i,open:s,zIndex:S,mask:h,motion:v}),p.createElement(Sd,{onResize:G,disabled:!s},function(Ge){return p.createElement(Os,et({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},T,{onAppearPrepare:H,onEnterPrepare:H,visible:s,onVisibleChanged:function($e){var ce;T==null||(ce=T.onVisibleChanged)===null||ce===void 0||ce.call(T,$e),u($e)}}),function(Fe,$e){var ce=Fe.className,we=Fe.style,ve=pe(i,ce,r);return p.createElement("div",{ref:qi(Ge,t,$e),className:ve,style:K(K(K(K({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Te),Me),we),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:I,onMouseLeave:R,onPointerEnter:O,onClick:d},m&&p.createElement(BL,{prefixCls:i,arrow:m,arrowPos:y,align:b}),p.createElement(UL,{cache:!s&&!c},C))})}))}),zL=p.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Ns(n),a=p.useCallback(function(u){yp(t,r?r(u):u)},[r]),o=Td(a,n.ref);return i?p.cloneElement(n,{ref:o}):n}),zv=p.createContext(null);function jv(e){return e?Array.isArray(e)?e:[e]:[]}function jL(e,t,n,r){return p.useMemo(function(){var i=jv(n!=null?n:t),a=jv(r!=null?r:t),o=new Set(i),u=new Set(a);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[o,u]},[e,t,n,r])}function VL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function WL(e,t,n,r){for(var i=n.points,a=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function iu(e){return ms(parseFloat(e),0)}function Wv(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Fs(r).getComputedStyle(r),a=i.overflow,o=i.overflowClipMargin,u=i.borderTopWidth,s=i.borderBottomWidth,l=i.borderLeftWidth,c=i.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,T=iu(u),v=iu(s),g=iu(l),E=iu(c),_=ms(Math.round(d.width/y*1e3)/1e3),x=ms(Math.round(d.height/h*1e3)/1e3),S=(y-b-g-E)*_,I=(h-m-T-v)*x,R=T*x,O=v*x,M=g*_,F=E*_,B=0,z=0;if(a==="clip"){var U=iu(o);B=U*_,z=U*x}var G=d.x+M-B,H=d.y+R-z,L=G+d.width+2*B-M-F-S,P=H+d.height+2*z-R-O-I;n.left=Math.max(n.left,G),n.top=Math.max(n.top,H),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,P)}}),n}function Yv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function qv(e,t){var n=t||[],r=ue(n,2),i=r[0],a=r[1];return[Yv(e.width,i),Yv(e.height,a)]}function Gv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ua(e,t){var n=t[0],r=t[1],i,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:a}}function vi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function YL(e,t,n,r,i,a,o){var u=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),s=ue(u,2),l=s[0],c=s[1],d=p.useRef(0),h=p.useMemo(function(){return t?nm(t):[]},[t]),m=p.useRef({}),y=function(){m.current={}};e||y();var b=cn(function(){if(t&&n&&e){let Gn=function(Yr,Ji){var ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ve,Ma=C.x+Yr,qo=C.y+Ji,Go=Ma+_e,Gs=qo+Te,af=Math.max(Ma,ka.left),of=Math.max(qo,ka.top),uf=Math.min(Go,ka.right),sf=Math.min(Gs,ka.bottom);return Math.max(0,(uf-af)*(sf-of))},qs=function(){In=C.y+se,Nn=In+Te,gt=C.x+ee,dr=gt+_e};var g,E,_=t,x=_.ownerDocument,S=Fs(_),I=S.getComputedStyle(_),R=I.width,O=I.height,M=I.position,F=_.style.left,B=_.style.top,z=_.style.right,U=_.style.bottom,G=_.style.overflow,H=K(K({},i[r]),a),L=x.createElement("div");(g=_.parentElement)===null||g===void 0||g.appendChild(L),L.style.left="".concat(_.offsetLeft,"px"),L.style.top="".concat(_.offsetTop,"px"),L.style.position=M,L.style.height="".concat(_.offsetHeight,"px"),L.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var $=n.getBoundingClientRect();P={x:$.x,y:$.y,width:$.width,height:$.height}}var C=_.getBoundingClientRect(),D=x.documentElement,W=D.clientWidth,w=D.clientHeight,X=D.scrollWidth,Z=D.scrollHeight,J=D.scrollTop,fe=D.scrollLeft,Te=C.height,_e=C.width,Ae=P.height,ke=P.width,Oe={left:0,top:0,right:W,bottom:w},He={left:-fe,top:-J,right:X-fe,bottom:Z-J},Me=H.htmlRegion,Ge="visible",Fe="visibleFirst";Me!=="scroll"&&Me!==Fe&&(Me=Ge);var $e=Me===Fe,ce=Wv(He,h),we=Wv(Oe,h),ve=Me===Ge?we:ce,de=$e?we:ve;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var Ie=_.getBoundingClientRect();_.style.left=F,_.style.top=B,_.style.right=z,_.style.bottom=U,_.style.overflow=G,(E=_.parentElement)===null||E===void 0||E.removeChild(L);var Ne=ms(Math.round(_e/parseFloat(R)*1e3)/1e3),Se=ms(Math.round(Te/parseFloat(O)*1e3)/1e3);if(Ne===0||Se===0||rs(n)&&!g2(n))return;var Pe=H.offset,Y=H.targetOffset,ie=qv(C,Pe),Ce=ue(ie,2),me=Ce[0],he=Ce[1],Xe=qv(P,Y),Ze=ue(Xe,2),Vt=Ze[0],pn=Ze[1];P.x-=Vt,P.y-=pn;var xn=H.points||[],ct=ue(xn,2),ht=ct[0],Ke=ct[1],Wt=Gv(Ke),Ot=Gv(ht),lr=Ua(P,Wt),oe=Ua(C,Ot),le=K({},H),ee=lr.x-oe.x+me,se=lr.y-oe.y+he,ze=Gn(ee,se),Ft=Gn(ee,se,we),We=Ua(P,["t","l"]),nt=Ua(C,["t","l"]),At=Ua(P,["b","r"]),wt=Ua(C,["b","r"]),Jt=H.overflow||{},Yt=Jt.adjustX,Ir=Jt.adjustY,An=Jt.shiftX,wn=Jt.shiftY,cr=function(Ji){return typeof Ji=="boolean"?Ji:Ji>=0},In,Nn,gt,dr;qs();var ci=cr(Ir),jr=Ot[0]===Wt[0];if(ci&&Ot[0]==="t"&&(Nn>de.bottom||m.current.bt)){var qn=se;jr?qn-=Te-Ae:qn=We.y-wt.y-he;var di=Gn(ee,qn),Nr=Gn(ee,qn,we);di>ze||di===ze&&(!$e||Nr>=Ft)?(m.current.bt=!0,se=qn,he=-he,le.points=[vi(Ot,0),vi(Wt,0)]):m.current.bt=!1}if(ci&&Ot[0]==="b"&&(Inze||Bt===ze&&(!$e||Qi>=Ft)?(m.current.tb=!0,se=fr,he=-he,le.points=[vi(Ot,0),vi(Wt,0)]):m.current.tb=!1}var fi=cr(Yt),hi=Ot[1]===Wt[1];if(fi&&Ot[1]==="l"&&(dr>de.right||m.current.rl)){var hr=ee;hi?hr-=_e-ke:hr=We.x-wt.x-me;var mi=Gn(hr,se),Gd=Gn(hr,se,we);mi>ze||mi===ze&&(!$e||Gd>=Ft)?(m.current.rl=!0,ee=hr,me=-me,le.points=[vi(Ot,1),vi(Wt,1)]):m.current.rl=!1}if(fi&&Ot[1]==="r"&&(gtze||js===ze&&(!$e||Kd>=Ft)?(m.current.lr=!0,ee=Xi,me=-me,le.points=[vi(Ot,1),vi(Wt,1)]):m.current.lr=!1}qs();var Rr=An===!0?0:An;typeof Rr=="number"&&(gtwe.right&&(ee-=dr-we.right-me,P.x>we.right-Rr&&(ee+=P.x-we.right+Rr)));var Vr=wn===!0?0:wn;typeof Vr=="number"&&(Inwe.bottom&&(se-=Nn-we.bottom-he,P.y>we.bottom-Vr&&(se+=P.y-we.bottom+Vr)));var Vo=C.x+ee,Vs=Vo+_e,pi=C.y+se,Zi=pi+Te,Wo=P.x,Pa=Wo+ke,Wr=P.y,Qd=Wr+Ae,Xd=Math.max(Vo,Wo),Zd=Math.min(Vs,Pa),Ws=(Xd+Zd)/2,Jd=Ws-Vo,ef=Math.max(pi,Wr),tf=Math.min(Zi,Qd),Ys=(ef+tf)/2,nf=Ys-pi;o==null||o(t,le);var Yo=Ie.right-C.x-(ee+C.width),La=Ie.bottom-C.y-(se+C.height);Ne===1&&(ee=Math.round(ee),Yo=Math.round(Yo)),Se===1&&(se=Math.round(se),La=Math.round(La));var rf={ready:!0,offsetX:ee/Ne,offsetY:se/Se,offsetR:Yo/Ne,offsetB:La/Se,arrowX:Jd/Ne,arrowY:nf/Se,scaleX:Ne,scaleY:Se,align:le};c(rf)}}),T=function(){d.current+=1;var E=d.current;Promise.resolve().then(function(){d.current===E&&b()})},v=function(){c(function(E){return K(K({},E),{},{ready:!1})})};return Gt(v,[r]),Gt(function(){e||v()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,T]}function qL(e,t,n,r,i){Gt(function(){if(e&&t&&n){let d=function(){r(),i()};var a=t,o=n,u=nm(a),s=nm(o),l=Fs(o),c=new Set([l].concat(be(u),be(s)));return c.forEach(function(h){h.addEventListener("scroll",d,{passive:!0})}),l.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach(function(h){h.removeEventListener("scroll",d),l.removeEventListener("resize",d)})}}},[e,t,n])}function GL(e,t,n,r,i,a,o,u){var s=p.useRef(e);s.current=e,p.useEffect(function(){if(t&&r&&(!i||a)){var l=function(m){var y=m.target;s.current&&!o(y)&&u(!1)},c=Fs(r);c.addEventListener("mousedown",l,!0),c.addEventListener("contextmenu",l,!0);var d=Fc(n);return d&&(d.addEventListener("mousedown",l,!0),d.addEventListener("contextmenu",l,!0)),function(){c.removeEventListener("mousedown",l,!0),c.removeEventListener("contextmenu",l,!0),d&&(d.removeEventListener("mousedown",l,!0),d.removeEventListener("contextmenu",l,!0))}}},[t,n,r,i,a])}var KL=["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","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function QL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I2,t=p.forwardRef(function(n,r){var i=n.prefixCls,a=i===void 0?"rc-trigger-popup":i,o=n.children,u=n.action,s=u===void 0?"hover":u,l=n.showAction,c=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,T=n.mouseLeaveDelay,v=T===void 0?.1:T,g=n.focusDelay,E=n.blurDelay,_=n.mask,x=n.maskClosable,S=x===void 0?!0:x,I=n.getPopupContainer,R=n.forceRender,O=n.autoDestroy,M=n.destroyPopupOnHide,F=n.popup,B=n.popupClassName,z=n.popupStyle,U=n.popupPlacement,G=n.builtinPlacements,H=G===void 0?{}:G,L=n.popupAlign,P=n.zIndex,$=n.stretch,C=n.getPopupClassNameFromAlign,D=n.fresh,W=n.alignPoint,w=n.onPopupClick,X=n.onPopupAlign,Z=n.arrow,J=n.popupMotion,fe=n.maskMotion,Te=n.popupTransitionName,_e=n.popupAnimation,Ae=n.maskTransitionName,ke=n.maskAnimation,Oe=n.className,He=n.getTriggerDOMNode,Me=jt(n,KL),Ge=O||M||!1,Fe=p.useState(!1),$e=ue(Fe,2),ce=$e[0],we=$e[1];Gt(function(){we(FL())},[]);var ve=p.useRef({}),de=p.useContext(zv),Ie=p.useMemo(function(){return{registerSubPopup:function(De,bt){ve.current[De]=bt,de==null||de.registerSubPopup(De,bt)}}},[de]),Ne=_P(),Se=p.useState(null),Pe=ue(Se,2),Y=Pe[0],ie=Pe[1],Ce=p.useRef(null),me=cn(function(Ee){Ce.current=Ee,rs(Ee)&&Y!==Ee&&ie(Ee),de==null||de.registerSubPopup(Ne,Ee)}),he=p.useState(null),Xe=ue(he,2),Ze=Xe[0],Vt=Xe[1],pn=p.useRef(null),xn=cn(function(Ee){rs(Ee)&&Ze!==Ee&&(Vt(Ee),pn.current=Ee)}),ct=p.Children.only(o),ht=(ct==null?void 0:ct.props)||{},Ke={},Wt=cn(function(Ee){var De,bt,Pt=Ze;return(Pt==null?void 0:Pt.contains(Ee))||((De=Fc(Pt))===null||De===void 0?void 0:De.host)===Ee||Ee===Pt||(Y==null?void 0:Y.contains(Ee))||((bt=Fc(Y))===null||bt===void 0?void 0:bt.host)===Ee||Ee===Y||Object.values(ve.current).some(function(Tt){return(Tt==null?void 0:Tt.contains(Ee))||Ee===Tt})}),Ot=Vv(a,J,_e,Te),lr=Vv(a,fe,ke,Ae),oe=p.useState(h||!1),le=ue(oe,2),ee=le[0],se=le[1],ze=d!=null?d:ee,Ft=cn(function(Ee){d===void 0&&se(Ee)});Gt(function(){se(d||!1)},[d]);var We=p.useRef(ze);We.current=ze;var nt=p.useRef([]);nt.current=[];var At=cn(function(Ee){var De;Ft(Ee),((De=nt.current[nt.current.length-1])!==null&&De!==void 0?De:ze)!==Ee&&(nt.current.push(Ee),m==null||m(Ee))}),wt=p.useRef(),Jt=function(){clearTimeout(wt.current)},Yt=function(De){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Jt(),bt===0?At(De):wt.current=setTimeout(function(){At(De)},bt*1e3)};p.useEffect(function(){return Jt},[]);var Ir=p.useState(!1),An=ue(Ir,2),wn=An[0],cr=An[1];Gt(function(Ee){(!Ee||ze)&&cr(!0)},[ze]);var In=p.useState(null),Nn=ue(In,2),gt=Nn[0],dr=Nn[1],ci=p.useState([0,0]),jr=ue(ci,2),qn=jr[0],di=jr[1],Nr=function(De){di([De.clientX,De.clientY])},fr=YL(ze,Y,W?qn:Ze,U,H,L,X),Bt=ue(fr,11),Qi=Bt[0],fi=Bt[1],hi=Bt[2],hr=Bt[3],mi=Bt[4],Gd=Bt[5],Xi=Bt[6],js=Bt[7],Kd=Bt[8],Rr=Bt[9],Vr=Bt[10],Vo=jL(ce,s,l,c),Vs=ue(Vo,2),pi=Vs[0],Zi=Vs[1],Wo=pi.has("click"),Pa=Zi.has("click")||Zi.has("contextMenu"),Wr=cn(function(){wn||Vr()}),Qd=function(){We.current&&W&&Pa&&Yt(!1)};qL(ze,Ze,Y,Wr,Qd),Gt(function(){Wr()},[qn,U]),Gt(function(){ze&&!(H!=null&&H[U])&&Wr()},[JSON.stringify(L)]);var Xd=p.useMemo(function(){var Ee=WL(H,a,Rr,W);return pe(Ee,C==null?void 0:C(Rr))},[Rr,C,H,a,W]);p.useImperativeHandle(r,function(){return{nativeElement:pn.current,popupElement:Ce.current,forceAlign:Wr}});var Zd=p.useState(0),Ws=ue(Zd,2),Jd=Ws[0],ef=Ws[1],tf=p.useState(0),Ys=ue(tf,2),nf=Ys[0],Yo=Ys[1],La=function(){if($&&Ze){var De=Ze.getBoundingClientRect();ef(De.width),Yo(De.height)}},rf=function(){La(),Wr()},Gn=function(De){cr(!1),Vr(),y==null||y(De)},qs=function(){return new Promise(function(De){La(),dr(function(){return De})})};Gt(function(){gt&&(Vr(),gt(),dr(null))},[gt]);function Yr(Ee,De,bt,Pt){Ke[Ee]=function(Tt){var Ks;Pt==null||Pt(Tt),Yt(De,bt);for(var lf=arguments.length,sg=new Array(lf>1?lf-1:0),Qs=1;Qs1?bt-1:0),Tt=1;Tt1?bt-1:0),Tt=1;Ttt||e,ZL=["outlined","borderless","filled"],JL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=p.useContext(bL);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n!=null?n:"outlined";const i=ZL.includes(r);return[r,i]},M2=JL;var ek={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"};const tk=ek;var nk=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:tk}))},rk=p.forwardRef(nk);const ik=rk;function D2(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,a=e.className,o=e.style;return p.createElement("div",{className:pe("".concat(n,"-content"),a),style:o},p.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var $a={shiftX:64,adjustY:1},za={adjustX:1,shiftY:!0},Qn=[0,0],ak={left:{points:["cr","cl"],overflow:za,offset:[-4,0],targetOffset:Qn},right:{points:["cl","cr"],overflow:za,offset:[4,0],targetOffset:Qn},top:{points:["bc","tc"],overflow:$a,offset:[0,-4],targetOffset:Qn},bottom:{points:["tc","bc"],overflow:$a,offset:[0,4],targetOffset:Qn},topLeft:{points:["bl","tl"],overflow:$a,offset:[0,-4],targetOffset:Qn},leftTop:{points:["tr","tl"],overflow:za,offset:[-4,0],targetOffset:Qn},topRight:{points:["br","tr"],overflow:$a,offset:[0,-4],targetOffset:Qn},rightTop:{points:["tl","tr"],overflow:za,offset:[4,0],targetOffset:Qn},bottomRight:{points:["tr","br"],overflow:$a,offset:[0,4],targetOffset:Qn},rightBottom:{points:["bl","br"],overflow:za,offset:[4,0],targetOffset:Qn},bottomLeft:{points:["tl","bl"],overflow:$a,offset:[0,4],targetOffset:Qn},leftBottom:{points:["br","bl"],overflow:za,offset:[-4,0],targetOffset:Qn}},ok=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],uk=function(t,n){var r=t.overlayClassName,i=t.trigger,a=i===void 0?["hover"]:i,o=t.mouseEnterDelay,u=o===void 0?0:o,s=t.mouseLeaveDelay,l=s===void 0?.1:s,c=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,m=t.children,y=t.onVisibleChange,b=t.afterVisibleChange,T=t.transitionName,v=t.animation,g=t.motion,E=t.placement,_=E===void 0?"right":E,x=t.align,S=x===void 0?{}:x,I=t.destroyTooltipOnHide,R=I===void 0?!1:I,O=t.defaultVisible,M=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var B=t.overlay,z=t.id,U=t.showArrow,G=U===void 0?!0:U,H=jt(t,ok),L=p.useRef(null);p.useImperativeHandle(n,function(){return L.current});var P=K({},H);"visible"in t&&(P.popupVisible=t.visible);var $=function(){return p.createElement(D2,{key:"content",prefixCls:h,id:z,overlayInnerStyle:F},B)};return p.createElement(XL,et({popupClassName:r,prefixCls:h,popup:$,action:a,builtinPlacements:ak,popupPlacement:_,ref:L,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:T,popupAnimation:v,popupMotion:g,defaultPopupVisible:O,autoDestroy:R,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:u,arrow:G},P),m)};const sk=p.forwardRef(uk);function lk(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=0,o=i,u=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),l=i-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-l,h=c,m=2*i-u,y=s,b=2*i-a,T=o,v=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),E="polygon(".concat(g,"px 100%, 50% ").concat(g,"px, ").concat(2*i-g,"px 100%, ").concat(g,"px 100%)"),_="path('M ".concat(a," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(u," ").concat(s," L ").concat(l," ").concat(c," A ").concat(n," ").concat(n," 0 0 1 ").concat(d," ").concat(h," L ").concat(m," ").concat(y," A ").concat(r," ").concat(r," 0 0 0 ").concat(b," ").concat(T," Z')");return{arrowShadowWidth:v,arrowPath:_,arrowPolygon:E}}const ck=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:u,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat(Je(u)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},F2=8;function B2(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?F2:r}}function Al(e,t){return e?t:{}}function dk(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o}=e,{arrowDistance:u=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({["".concat(r,"-arrow")]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},ck(e,t,i)),{"&:before":{background:t}})]},Al(!!s.top,{[["&-placement-top > ".concat(r,"-arrow"),"&-placement-topLeft > ".concat(r,"-arrow"),"&-placement-topRight > ".concat(r,"-arrow")].join(",")]:{bottom:u,transform:"translateY(100%) rotate(180deg)"},["&-placement-top > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},["&-placement-topLeft > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:o}},["&-placement-topRight > ".concat(r,"-arrow")]:{right:{_skip_check_:!0,value:o}}})),Al(!!s.bottom,{[["&-placement-bottom > ".concat(r,"-arrow"),"&-placement-bottomLeft > ".concat(r,"-arrow"),"&-placement-bottomRight > ".concat(r,"-arrow")].join(",")]:{top:u,transform:"translateY(-100%)"},["&-placement-bottom > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},["&-placement-bottomLeft > ".concat(r,"-arrow")]:{left:{_skip_check_:!0,value:o}},["&-placement-bottomRight > ".concat(r,"-arrow")]:{right:{_skip_check_:!0,value:o}}})),Al(!!s.left,{[["&-placement-left > ".concat(r,"-arrow"),"&-placement-leftTop > ".concat(r,"-arrow"),"&-placement-leftBottom > ".concat(r,"-arrow")].join(",")]:{right:{_skip_check_:!0,value:u},transform:"translateX(100%) rotate(90deg)"},["&-placement-left > ".concat(r,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},["&-placement-leftTop > ".concat(r,"-arrow")]:{top:a},["&-placement-leftBottom > ".concat(r,"-arrow")]:{bottom:a}})),Al(!!s.right,{[["&-placement-right > ".concat(r,"-arrow"),"&-placement-rightTop > ".concat(r,"-arrow"),"&-placement-rightBottom > ".concat(r,"-arrow")].join(",")]:{left:{_skip_check_:!0,value:u},transform:"translateX(-100%) rotate(-90deg)"},["&-placement-right > ".concat(r,"-arrow")]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},["&-placement-rightTop > ".concat(r,"-arrow")]:{top:a},["&-placement-rightBottom > ".concat(r,"-arrow")]:{bottom:a}}))}}function fk(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}const o=Object.assign(Object.assign({},a),i);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const Kv={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"]}},hk={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"]}},mk=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function pk(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,u=t/2,s={};return Object.keys(Kv).forEach(l=>{const c=r&&hk[l]||Kv[l],d=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[l]=d,mk.has(l)&&(d.autoArrow=!1),l){case"top":case"topLeft":case"topRight":d.offset[1]=-u-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=u+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-u-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=u+i;break}const h=B2({contentRadius:a,limitVerticalRadius:!0});if(r)switch(l){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal-u;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal+u;break}d.overflow=fk(l,h,t,n),o&&(d.htmlRegion="visibleFirst")}),s}const gk=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:o,controlHeight:u,boxShadowSecondary:s,paddingSM:l,paddingXS:c}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ld(e)),{position:"absolute",zIndex:o,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":i,["".concat(t,"-inner")]:{minWidth:"1em",minHeight:u,padding:"".concat(Je(e.calc(l).div(2).equal())," ").concat(Je(c)),color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{["".concat(t,"-inner")]:{borderRadius:e.min(a,F2)}},["".concat(t,"-content")]:{position:"relative"}}),f6(e,(d,h)=>{let{darkColor:m}=h;return{["&".concat(t,"-").concat(d)]:{["".concat(t,"-inner")]:{backgroundColor:m},["".concat(t,"-arrow")]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},dk(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vk=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},B2({contentRadius:e.borderRadius,limitVerticalRadius:!0})),lk(Yn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),H2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Rs("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:a,colorBgSpotlight:o}=r,u=Yn(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o});return[gk(u),ML(r,"zoom-big-fast")]},vk,{resetStyle:!1,injectStyle:t})(e)},Ek=Mc.map(e=>"".concat(e,"-inverse"));function yk(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(be(Ek),be(Mc)).includes(e):Mc.includes(e)}function U2(e,t){const n=yk(t),r=pe({["".concat(e,"-").concat(t)]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:a}}const bk=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:a,overlayInnerStyle:o}=e,{getPrefixCls:u}=p.useContext(Dt),s=u("tooltip",t),[l,c,d]=H2(s),h=U2(s,a),m=h.arrowStyle,y=Object.assign(Object.assign({},o),h.overlayStyle),b=pe(c,d,s,"".concat(s,"-pure"),"".concat(s,"-placement-").concat(r),n,h.className);return l(p.createElement("div",{className:b,style:m},p.createElement("div",{className:"".concat(s,"-arrow")}),p.createElement(D2,Object.assign({},e,{className:c,prefixCls:s,overlayInnerStyle:y}),i)))},Tk=bk;var Ck=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:a,getTooltipContainer:o,overlayClassName:u,color:s,overlayInnerStyle:l,children:c,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:y=!0,title:b,overlay:T,builtinPlacements:v,arrowPointAtCenter:g=!1,autoAdjustOverflow:E=!0}=e,_=!!y,[,x]=$r(),{getPopupContainer:S,getPrefixCls:I,direction:R}=p.useContext(Dt),O=Np(),M=p.useRef(null),F=()=>{var Ne;(Ne=M.current)===null||Ne===void 0||Ne.forceAlign()};p.useImperativeHandle(t,()=>{var Ne;return{forceAlign:F,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(Ne=M.current)===null||Ne===void 0?void 0:Ne.nativeElement}});const[B,z]=Pd(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),U=!b&&!T&&b!==0,G=Ne=>{var Se,Pe;z(U?!1:Ne),U||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,Ne),(Pe=e.onVisibleChange)===null||Pe===void 0||Pe.call(e,Ne))},H=p.useMemo(()=>{var Ne,Se;let Pe=g;return typeof y=="object"&&(Pe=(Se=(Ne=y.pointAtCenter)!==null&&Ne!==void 0?Ne:y.arrowPointAtCenter)!==null&&Se!==void 0?Se:g),v||pk({arrowPointAtCenter:Pe,autoAdjustOverflow:E,arrowWidth:_?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})},[g,y,v,x]),L=p.useMemo(()=>b===0?b:T||b||"",[T,b]),P=p.createElement(y2,null,typeof L=="function"?L():L),{getPopupContainer:$,placement:C="top",mouseEnterDelay:D=.1,mouseLeaveDelay:W=.1,overlayStyle:w,rootClassName:X}=e,Z=Ck(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),J=I("tooltip",i),fe=I(),Te=e["data-popover-inject"];let _e=B;!("open"in e)&&!("visible"in e)&&U&&(_e=!1);const Ae=p.isValidElement(c)&&!a2(c)?c:p.createElement("span",null,c),ke=Ae.props,Oe=!ke.className||typeof ke.className=="string"?pe(ke.className,a||"".concat(J,"-open")):ke.className,[He,Me,Ge]=H2(J,!Te),Fe=U2(J,s),$e=Fe.arrowStyle,ce=Object.assign(Object.assign({},l),Fe.overlayStyle),we=pe(u,{["".concat(J,"-rtl")]:R==="rtl"},Fe.className,X,Me,Ge),[ve,de]=ZO("Tooltip",Z.zIndex),Ie=p.createElement(sk,Object.assign({},Z,{zIndex:ve,showArrow:_,placement:C,mouseEnterDelay:D,mouseLeaveDelay:W,prefixCls:J,overlayClassName:we,overlayStyle:Object.assign(Object.assign({},$e),w),getTooltipContainer:$||o||S,ref:M,builtinPlacements:H,overlay:P,visible:_e,onVisibleChange:G,afterVisibleChange:d!=null?d:h,overlayInnerStyle:ce,arrowContent:p.createElement("span",{className:"".concat(J,"-arrow-content")}),motion:{motionName:C4(fe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),_e?fs(Ae,{className:Oe}):Ae);return He(p.createElement(l2.Provider,{value:de},Ie))}),$2=Sk;$2._InternalPanelDoNotUseOrYouWillBeFired=Tk;const _k=$2;function z2(e){return Yn(e,{inputAffixPadding:e.paddingXXS})}const j2=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:u,lineHeightLG:s,paddingSM:l,controlPaddingHorizontalSM:c,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:y,controlOutlineWidth:b,controlOutline:T,colorErrorOutline:v,colorWarningOutline:g,colorBgContainer:E}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((a-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((o-u*s)/2*10)/10-i,paddingInline:l-i,paddingInlineSM:c-i,paddingInlineLG:d-i,addonBg:h,activeBorderColor:y,hoverBorderColor:m,activeShadow:"0 0 0 ".concat(b,"px ").concat(T),errorActiveShadow:"0 0 0 ".concat(b,"px ").concat(v),warningActiveShadow:"0 0 0 ".concat(b,"px ").concat(g),hoverBg:E,activeBg:E,inputFontSize:n,inputFontSizeLG:u,inputFontSizeSM:n}},xk=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),$p=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},xk(Yn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),V2=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Qv=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},V2(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}}),["&".concat(e.componentCls,"-status-").concat(t.status).concat(e.componentCls,"-disabled")]:{borderColor:t.borderColor}}),Ak=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V2(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},$p(e))}),Qv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Qv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Xv=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),wk=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.addonBg,border:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Xv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Xv(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group-addon")]:Object.assign({},$p(e))}})}),Ik=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&".concat(e.componentCls,"-disabled, &[disabled]")]:{color:e.colorTextDisabled}},t)}),W2=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Zv=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status,":not(").concat(e.componentCls,"-disabled)")]:Object.assign(Object.assign({},W2(e,t)),{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-suffix")]:{color:t.affixColor}})}),Nk=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{["&".concat(e.componentCls,"-disabled, &[disabled]")]:Object.assign({},$p(e))}),Zv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Zv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Jv=(e,t)=>({["&".concat(e.componentCls,"-group-wrapper-status-").concat(t.status)]:{["".concat(e.componentCls,"-group-addon")]:{background:t.addonBg,color:t.addonColor}}}),Rk=e=>({"&-filled":Object.assign(Object.assign(Object.assign({["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary},["".concat(e.componentCls,"-filled:not(:focus):not(:focus-within)")]:{"&:not(:first-child)":{borderInlineStart:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)},"&:not(:last-child)":{borderInlineEnd:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}}}},Jv(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Jv(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{["&".concat(e.componentCls,"-group-wrapper-disabled")]:{["".concat(e.componentCls,"-group")]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)},"&-addon:last-child":{borderInlineEnd:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderTop:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderBottom:"".concat(Je(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder)}}}})}),Ok=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y2=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:"".concat(Je(t)," ").concat(Je(i)),fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},q2=e=>({padding:"".concat(Je(e.paddingBlockSM)," ").concat(Je(e.paddingInlineSM)),fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),G2=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:"".concat(Je(e.paddingBlock)," ").concat(Je(e.paddingInline)),color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationMid)},Ok(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:"all ".concat(e.motionDurationSlow,", height 0s"),resize:"vertical"},"&-lg":Object.assign({},Y2(e)),"&-sm":Object.assign({},q2(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Pk=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg ".concat(t,", &-lg > ").concat(t,"-group-addon")]:Object.assign({},Y2(e)),["&-sm ".concat(t,", &-sm > ").concat(t,"-group-addon")]:Object.assign({},q2(e)),["&-lg ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightLG},["&-sm ".concat(n,"-select-single ").concat(n,"-select-selector")]:{height:e.controlHeightSM},["> ".concat(t)]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},["".concat(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 ".concat(Je(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1,["".concat(n,"-select")]:{margin:"".concat(Je(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat(Je(e.calc(e.paddingInline).mul(-1).equal())),["&".concat(n,"-select-single:not(").concat(n,"-select-customize-input):not(").concat(n,"-pagination-size-changer)")]:{["".concat(n,"-select-selector")]:{backgroundColor:"inherit",border:"".concat(Je(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"}},"&-open, &-focused":{["".concat(n,"-select-selector")]:{color:e.colorPrimary}}},["".concat(n,"-cascader-picker")]:{margin:"-9px ".concat(Je(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent",["".concat(n,"-cascader-input")]:{textAlign:"start",border:0,boxShadow:"none"}}}},["".concat(t)]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,["".concat(t,"-search-with-button &")]:{zIndex:0}}},["> ".concat(t,":first-child, ").concat(t,"-group-addon:first-child")]:{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,"-affix-wrapper")]:{["&:not(:first-child) ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> ".concat(t,":last-child, ").concat(t,"-group-addon:last-child")]:{borderStartStartRadius:0,borderEndStartRadius:0,["".concat(n,"-select ").concat(n,"-select-selector")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["".concat(t,"-affix-wrapper")]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,["".concat(t,"-search &")]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},["&:not(:first-child), ".concat(t,"-search &:not(:first-child)")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&".concat(t,"-group-compact")]:Object.assign(Object.assign({display:"block"},t6()),{["".concat(t,"-group-addon, ").concat(t,"-group-wrap, > ").concat(t)]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},["\n & > ".concat(t,"-affix-wrapper,\n & > ").concat(t,"-number-affix-wrapper,\n & > ").concat(n,"-picker-range\n ")]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},["".concat(t)]:{float:"none"},["& > ".concat(n,"-select > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete ").concat(t,",\n & > ").concat(n,"-cascader-picker ").concat(t,",\n & > ").concat(t,"-group-wrapper ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},["& > ".concat(n,"-select-focused")]:{zIndex:1},["& > ".concat(n,"-select > ").concat(n,"-select-arrow")]:{zIndex:1},["& > *:first-child,\n & > ".concat(n,"-select:first-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-select-auto-complete:first-child ").concat(t,",\n & > ").concat(n,"-cascader-picker:first-child ").concat(t)]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},["& > *:last-child,\n & > ".concat(n,"-select:last-child > ").concat(n,"-select-selector,\n & > ").concat(n,"-cascader-picker:last-child ").concat(t,",\n & > ").concat(n,"-cascader-picker-focused:last-child ").concat(t)]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},["& > ".concat(n,"-select-auto-complete ").concat(t)]:{verticalAlign:"top"},["".concat(t,"-group-wrapper + ").concat(t,"-group-wrapper")]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),["".concat(t,"-affix-wrapper")]:{borderRadius:0}},["".concat(t,"-group-wrapper:not(:last-child)")]:{["&".concat(t,"-search > ").concat(t,"-group")]:{["& > ".concat(t,"-group-addon > ").concat(t,"-search-button")]:{borderRadius:0},["& > ".concat(t)]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Lk=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=16,o=i(n).sub(i(r).mul(2)).sub(a).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ld(e)),G2(e)),Ak(e)),Nk(e)),Ik(e)),{'&[type="color"]':{height:e.controlHeight,["&".concat(t,"-lg")]:{height:e.controlHeightLG},["&".concat(t,"-sm")]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},kk=e=>{const{componentCls:t}=e;return{["".concat(t,"-clear-icon")]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat(Je(e.inputAffixPadding))}}}},Mk=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:u}=e;return{["".concat(t,"-affix-wrapper")]:Object.assign(Object.assign(Object.assign(Object.assign({},G2(e)),{display:"inline-flex",["&:not(".concat(t,"-disabled):hover")]:{zIndex:1,["".concat(t,"-search-with-button &")]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input".concat(t)]:{padding:0},["> input".concat(t,", > textarea").concat(t)]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},["".concat(t)]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),kk(e)),{["".concat(u).concat(t,"-password-icon")]:{color:a,cursor:"pointer",transition:"all ".concat(i),"&:hover":{color:o}}})}},Dk=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{["".concat(t,"-group")]:Object.assign(Object.assign(Object.assign({},Ld(e)),Pk(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{["".concat(t,"-group-addon")]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{["".concat(t,"-group-addon")]:{borderRadius:r}}},wk(e)),Rk(e)),{["&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item")]:{["".concat(t,", ").concat(t,"-group-addon")]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-item")]:{["".concat(t,"-affix-wrapper")]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Fk=e=>{const{componentCls:t,antCls:n}=e,r="".concat(t,"-search");return{[r]:{["".concat(t)]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,["+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)")]:{borderInlineStartColor:e.colorPrimaryHover}}},["".concat(t,"-affix-wrapper")]:{borderRadius:0},["".concat(t,"-lg")]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},["> ".concat(t,"-group")]:{["> ".concat(t,"-group-addon:last-child")]:{insetInlineStart:-1,padding:0,border:0,["".concat(r,"-button")]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},["".concat(r,"-button:not(").concat(n,"-btn-primary)")]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},["&".concat(n,"-btn-loading::before")]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},["".concat(r,"-button")]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},["&-large ".concat(r,"-button")]:{height:e.controlHeightLG},["&-small ".concat(r,"-button")]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},["&".concat(t,"-compact-item")]:{["&:not(".concat(t,"-compact-last-item)")]:{["".concat(t,"-group-addon")]:{["".concat(t,"-search-button")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not(".concat(t,"-compact-first-item)")]:{["".concat(t,",").concat(t,"-affix-wrapper")]:{borderRadius:0}},["> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper")]:{"&:hover, &:focus, &:active":{zIndex:2}},["> ".concat(t,"-affix-wrapper-focused")]:{zIndex:2}}}}},Bk=e=>{const{componentCls:t,paddingLG:n}=e,r="".concat(t,"-textarea");return{[r]:{position:"relative","&-show-count":{["> ".concat(t)]:{height:"100%"},["".concat(t,"-data-count")]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},["\n &-allow-clear > ".concat(t,",\n &-affix-wrapper").concat(r,"-has-feedback ").concat(t,"\n ")]:{paddingInlineEnd:n},["&-affix-wrapper".concat(t,"-affix-wrapper")]:{padding:0,["> textarea".concat(t)]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},["".concat(t,"-suffix")]:{margin:0,"> *:not(:last-child)":{marginInline:0},["".concat(t,"-clear-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},["".concat(r,"-suffix")]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Hk=e=>{const{componentCls:t}=e;return{["".concat(t,"-out-of-range")]:{["&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count")]:{color:e.colorError}}}},zp=Rs("Input",e=>{const t=Yn(e,z2(e));return[Lk(t),Bk(t),Mk(t),Dk(t),Fk(t),Hk(t),A2(t)]},j2,{resetFont:!1});function Uk(e){return!!(e.addonBefore||e.addonAfter)}function $k(e){return!!(e.prefix||e.suffix||e.allowClear)}function eE(e,t,n){var r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function $c(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=eE(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=eE(t,e,r),n(i);return}n(i)}}function zk(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var K2=ae.forwardRef(function(e,t){var n,r,i=e.inputElement,a=e.children,o=e.prefixCls,u=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,d=e.className,h=e.style,m=e.disabled,y=e.readOnly,b=e.focused,T=e.triggerFocus,v=e.allowClear,g=e.value,E=e.handleReset,_=e.hidden,x=e.classes,S=e.classNames,I=e.dataAttrs,R=e.styles,O=e.components,M=a!=null?a:i,F=(O==null?void 0:O.affixWrapper)||"span",B=(O==null?void 0:O.groupWrapper)||"span",z=(O==null?void 0:O.wrapper)||"span",U=(O==null?void 0:O.groupAddon)||"span",G=p.useRef(null),H=function(Ge){var Fe;(Fe=G.current)!==null&&Fe!==void 0&&Fe.contains(Ge.target)&&(T==null||T())},L=$k(e),P=p.cloneElement(M,{value:g,className:pe(M.props.className,!L&&(S==null?void 0:S.variant))||null}),$=p.useRef(null);if(ae.useImperativeHandle(t,function(){return{nativeElement:$.current||G.current}}),L){var C,D=null;if(v){var W,w=!m&&!y&&g,X="".concat(o,"-clear-icon"),Z=Be(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"✖";D=ae.createElement("span",{onClick:E,onMouseDown:function(Ge){return Ge.preventDefault()},className:pe(X,(W={},V(W,"".concat(X,"-hidden"),!w),V(W,"".concat(X,"-has-suffix"),!!s),W)),role:"button",tabIndex:-1},Z)}var J="".concat(o,"-affix-wrapper"),fe=pe(J,(C={},V(C,"".concat(o,"-disabled"),m),V(C,"".concat(J,"-disabled"),m),V(C,"".concat(J,"-focused"),b),V(C,"".concat(J,"-readonly"),y),V(C,"".concat(J,"-input-with-clear-btn"),s&&v&&g),C),x==null?void 0:x.affixWrapper,S==null?void 0:S.affixWrapper,S==null?void 0:S.variant),Te=(s||v)&&ae.createElement("span",{className:pe("".concat(o,"-suffix"),S==null?void 0:S.suffix),style:R==null?void 0:R.suffix},D,s);P=ae.createElement(F,et({className:fe,style:R==null?void 0:R.affixWrapper,onClick:H},I==null?void 0:I.affixWrapper,{ref:G}),u&&ae.createElement("span",{className:pe("".concat(o,"-prefix"),S==null?void 0:S.prefix),style:R==null?void 0:R.prefix},u),P,Te)}if(Uk(e)){var _e="".concat(o,"-group"),Ae="".concat(_e,"-addon"),ke="".concat(_e,"-wrapper"),Oe=pe("".concat(o,"-wrapper"),_e,x==null?void 0:x.wrapper,S==null?void 0:S.wrapper),He=pe(ke,V({},"".concat(ke,"-disabled"),m),x==null?void 0:x.group,S==null?void 0:S.groupWrapper);P=ae.createElement(B,{className:He,ref:$},ae.createElement(z,{className:Oe},l&&ae.createElement(U,{className:Ae},l),P,c&&ae.createElement(U,{className:Ae},c)))}return ae.cloneElement(P,{className:pe((n=P.props)===null||n===void 0?void 0:n.className,d)||null,style:K(K({},(r=P.props)===null||r===void 0?void 0:r.style),h),hidden:_})}),jk=["show"];function Q2(e,t){return p.useMemo(function(){var n={};t&&(n.show=Be(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,i=r.show,a=jt(r,jk);return K(K({},a),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:a.strategy||function(o){return o.length}})},[e,t])}var Vk=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Wk=p.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,a=e.onBlur,o=e.onPressEnter,u=e.onKeyDown,s=e.prefixCls,l=s===void 0?"rc-input":s,c=e.disabled,d=e.htmlSize,h=e.className,m=e.maxLength,y=e.suffix,b=e.showCount,T=e.count,v=e.type,g=v===void 0?"text":v,E=e.classes,_=e.classNames,x=e.styles,S=e.onCompositionStart,I=e.onCompositionEnd,R=jt(e,Vk),O=p.useState(!1),M=ue(O,2),F=M[0],B=M[1],z=p.useRef(!1),U=p.useRef(null),G=p.useRef(null),H=function(de){U.current&&zk(U.current,de)},L=Pd(e.defaultValue,{value:e.value}),P=ue(L,2),$=P[0],C=P[1],D=$==null?"":String($),W=p.useState(null),w=ue(W,2),X=w[0],Z=w[1],J=Q2(T,b),fe=J.max||m,Te=J.strategy(D),_e=!!fe&&Te>fe;p.useImperativeHandle(t,function(){var ve;return{focus:H,blur:function(){var Ie;(Ie=U.current)===null||Ie===void 0||Ie.blur()},setSelectionRange:function(Ie,Ne,Se){var Pe;(Pe=U.current)===null||Pe===void 0||Pe.setSelectionRange(Ie,Ne,Se)},select:function(){var Ie;(Ie=U.current)===null||Ie===void 0||Ie.select()},input:U.current,nativeElement:((ve=G.current)===null||ve===void 0?void 0:ve.nativeElement)||U.current}}),p.useEffect(function(){B(function(ve){return ve&&c?!1:ve})},[c]);var Ae=function(de,Ie,Ne){var Se=Ie;if(!z.current&&J.exceedFormatter&&J.max&&J.strategy(Ie)>J.max){if(Se=J.exceedFormatter(Ie,{max:J.max}),Ie!==Se){var Pe,Y;Z([((Pe=U.current)===null||Pe===void 0?void 0:Pe.selectionStart)||0,((Y=U.current)===null||Y===void 0?void 0:Y.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;C(Se),U.current&&$c(U.current,de,r,Se)};p.useEffect(function(){if(X){var ve;(ve=U.current)===null||ve===void 0||ve.setSelectionRange.apply(ve,be(X))}},[X]);var ke=function(de){Ae(de,de.target.value,{source:"change"})},Oe=function(de){z.current=!1,Ae(de,de.currentTarget.value,{source:"compositionEnd"}),I==null||I(de)},He=function(de){o&&de.key==="Enter"&&o(de),u==null||u(de)},Me=function(de){B(!0),i==null||i(de)},Ge=function(de){B(!1),a==null||a(de)},Fe=function(de){C(""),H(),U.current&&$c(U.current,de,r)},$e=_e&&"".concat(l,"-out-of-range"),ce=function(){var de=Tp(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return ae.createElement("input",et({autoComplete:n},de,{onChange:ke,onFocus:Me,onBlur:Ge,onKeyDown:He,className:pe(l,V({},"".concat(l,"-disabled"),c),_==null?void 0:_.input),style:x==null?void 0:x.input,ref:U,size:d,type:g,onCompositionStart:function(Ne){z.current=!0,S==null||S(Ne)},onCompositionEnd:Oe}))},we=function(){var de=Number(fe)>0;if(y||J.show){var Ie=J.showFormatter?J.showFormatter({value:D,count:Te,maxLength:fe}):"".concat(Te).concat(de?" / ".concat(fe):"");return ae.createElement(ae.Fragment,null,J.show&&ae.createElement("span",{className:pe("".concat(l,"-show-count-suffix"),V({},"".concat(l,"-show-count-has-suffix"),!!y),_==null?void 0:_.count),style:K({},x==null?void 0:x.count)},Ie),y)}return null};return ae.createElement(K2,et({},R,{prefixCls:l,className:pe(h,$e),handleReset:Fe,value:D,focused:F,triggerFocus:H,suffix:we(),disabled:c,classes:E,classNames:_,styles:x}),ce())});const Yk=e=>e?ae.createElement(y2,null,ae.createElement(yL,{override:!0,status:!0},e)):null,tE=Yk,qk=e=>{const{getPrefixCls:t,direction:n}=p.useContext(Dt),{prefixCls:r,className:i}=e,a=t("input-group",r),o=t("input"),[u,s]=zp(o),l=pe(a,{["".concat(a,"-lg")]:e.size==="large",["".concat(a,"-sm")]:e.size==="small",["".concat(a,"-compact")]:e.compact,["".concat(a,"-rtl")]:n==="rtl"},s,i),c=p.useContext(ji),d=p.useMemo(()=>Object.assign(Object.assign({},c),{isFormItemInput:!1}),[c]);return u(p.createElement("span",{className:l,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(ji.Provider,{value:d},e.children)))},Gk=qk,Kk=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ae.createElement(r2,null)}),t},X2=Kk;function Z2(e,t){const n=p.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,a,o,u;!((i=e.current)===null||i===void 0)&&i.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((u=e.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return p.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function Qk(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Xk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n;const{prefixCls:r,bordered:i=!0,status:a,size:o,disabled:u,onBlur:s,onFocus:l,suffix:c,allowClear:d,addonAfter:h,addonBefore:m,className:y,style:b,styles:T,rootClassName:v,onChange:g,classNames:E,variant:_}=e,x=Xk(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:I,input:R}=ae.useContext(Dt),O=S("input",r),M=p.useRef(null),F=Ps(O),[B,z,U]=zp(O,F),{compactSize:G,compactItemClassnames:H}=Mp(O,I),L=ks(He=>{var Me;return(Me=o!=null?o:G)!==null&&Me!==void 0?Me:He}),P=ae.useContext(Rd),$=u!=null?u:P,{status:C,hasFeedback:D,feedbackIcon:W}=p.useContext(ji),w=Up(C,a),X=Qk(e)||!!D;p.useRef(X);const Z=Z2(M,!0),J=He=>{Z(),s==null||s(He)},fe=He=>{Z(),l==null||l(He)},Te=He=>{Z(),g==null||g(He)},_e=(D||c)&&ae.createElement(ae.Fragment,null,c,D&&W),Ae=X2(d!=null?d:R==null?void 0:R.allowClear),[ke,Oe]=M2(_,i);return B(ae.createElement(Wk,Object.assign({ref:qi(t,M),prefixCls:O,autoComplete:R==null?void 0:R.autoComplete},x,{disabled:$,onBlur:J,onFocus:fe,style:Object.assign(Object.assign({},R==null?void 0:R.style),b),styles:Object.assign(Object.assign({},R==null?void 0:R.styles),T),suffix:_e,allowClear:Ae,className:pe(y,v,U,F,H,R==null?void 0:R.className),onChange:Te,addonBefore:tE(m),addonAfter:tE(h),classNames:Object.assign(Object.assign(Object.assign({},E),R==null?void 0:R.classNames),{input:pe({["".concat(O,"-sm")]:L==="small",["".concat(O,"-lg")]:L==="large",["".concat(O,"-rtl")]:I==="rtl"},E==null?void 0:E.input,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.input,z),variant:pe({["".concat(O,"-").concat(ke)]:Oe},rm(O,w)),affixWrapper:pe({["".concat(O,"-affix-wrapper-sm")]:L==="small",["".concat(O,"-affix-wrapper-lg")]:L==="large",["".concat(O,"-affix-wrapper-rtl")]:I==="rtl"},z),wrapper:pe({["".concat(O,"-group-rtl")]:I==="rtl"},z),groupWrapper:pe({["".concat(O,"-group-wrapper-sm")]:L==="small",["".concat(O,"-group-wrapper-lg")]:L==="large",["".concat(O,"-group-wrapper-rtl")]:I==="rtl",["".concat(O,"-group-wrapper-").concat(ke)]:Oe},rm("".concat(O,"-group-wrapper"),w,D),z)})})))}),Fd=Jk,e8=e=>{const{componentCls:t,paddingXS:n}=e;return{["".concat(t)]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},["".concat(t,"-input")]:{textAlign:"center",paddingInline:e.paddingXXS},["&".concat(t,"-sm ").concat(t,"-input")]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},["&".concat(t,"-lg ").concat(t,"-input")]:{paddingInline:e.paddingXS}}}},t8=Rs(["Input","OTP"],e=>{const t=Yn(e,z2(e));return[e8(t)]},j2);var n8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{value:n,onChange:r,onActiveChange:i,index:a,mask:o}=e,u=n8(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof o=="string"?o:n,l=y=>{r(a,y.target.value)},c=p.useRef(null);p.useImperativeHandle(t,()=>c.current);const d=()=>{Ur(()=>{var y;const b=(y=c.current)===null||y===void 0?void 0:y.input;document.activeElement===b&&b&&b.select()})},h=y=>{let{key:b}=y;b==="ArrowLeft"?i(a-1):b==="ArrowRight"&&i(a+1),d()},m=y=>{y.key==="Backspace"&&!n&&i(a-1),d()};return p.createElement(Fd,Object.assign({},u,{ref:c,value:s,onInput:l,onFocus:d,onKeyDown:h,onKeyUp:m,onMouseDown:d,onMouseUp:d,type:o===!0?"password":"text"}))}),i8=r8;var a8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:u,formatter:s,variant:l,disabled:c,status:d,autoFocus:h,mask:m}=e,y=a8(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]),{getPrefixCls:b,direction:T}=p.useContext(Dt),v=b("otp",n),g=i2(y,{aria:!0,data:!0,attr:!0}),E=Ps(v),[_,x,S]=t8(v,E),I=ks(D=>i!=null?i:D),R=p.useContext(ji),O=Up(R.status,d),M=p.useMemo(()=>Object.assign(Object.assign({},R),{status:O,hasFeedback:!1,feedbackIcon:null}),[R,O]),F=p.useRef(null),B=p.useRef({});p.useImperativeHandle(t,()=>({focus:()=>{var D;(D=B.current[0])===null||D===void 0||D.focus()},blur:()=>{var D;for(let W=0;Ws?s(D):D,[U,G]=p.useState(wl(z(a||"")));p.useEffect(()=>{o!==void 0&&G(wl(o))},[o]);const H=cn(D=>{G(D),u&&D.length===r&&D.every(W=>W)&&D.some((W,w)=>U[w]!==W)&&u(D.join(""))}),L=cn((D,W)=>{let w=be(U);for(let Z=0;Z=0&&!w[Z];Z-=1)w.pop();const X=z(w.map(Z=>Z||" ").join(""));return w=wl(X).map((Z,J)=>Z===" "&&!w[J]?w[J]:Z),w}),P=(D,W)=>{var w;const X=L(D,W),Z=Math.min(D+W.length,r-1);Z!==D&&((w=B.current[Z])===null||w===void 0||w.focus()),H(X)},$=D=>{var W;(W=B.current[D])===null||W===void 0||W.focus()},C={variant:l,disabled:c,status:O,mask:m};return _(p.createElement("div",Object.assign({},g,{ref:F,className:pe(v,{["".concat(v,"-sm")]:I==="small",["".concat(v,"-lg")]:I==="large",["".concat(v,"-rtl")]:T==="rtl"},S,x)}),p.createElement(ji.Provider,{value:M},Array.from({length:r}).map((D,W)=>{const w="otp-".concat(W),X=U[W]||"";return p.createElement(i8,Object.assign({ref:Z=>{B.current[W]=Z},key:w,index:W,size:I,htmlSize:1,className:"".concat(v,"-input"),onChange:P,value:X,onActiveChange:$,autoFocus:W===0&&h},C))}))))}),u8=o8;var s8={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"};const l8=s8;var c8=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:l8}))},d8=p.forwardRef(c8);const f8=d8;var h8={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"};const m8=h8;var p8=function(t,n){return p.createElement(li,et({},t,{ref:n,icon:m8}))},g8=p.forwardRef(p8);const v8=g8;var E8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ie?p.createElement(v8,null):p.createElement(f8,null),b8={click:"onClick",hover:"onMouseOver"},T8=p.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:a=y8}=e,o=typeof i=="object"&&i.visible!==void 0,[u,s]=p.useState(()=>o?i.visible:!1),l=p.useRef(null);p.useEffect(()=>{o&&s(i.visible)},[o,i]);const c=Z2(l),d=()=>{n||(u&&c(),s(R=>{var O;const M=!R;return typeof i=="object"&&((O=i.onVisibleChange)===null||O===void 0||O.call(i,M)),M}))},h=R=>{const O=b8[r]||"",M=a(u),F={[O]:d,className:"".concat(R,"-icon"),key:"passwordIcon",onMouseDown:B=>{B.preventDefault()},onMouseUp:B=>{B.preventDefault()}};return p.cloneElement(p.isValidElement(M)?M:p.createElement("span",null,M),F)},{className:m,prefixCls:y,inputPrefixCls:b,size:T}=e,v=E8(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=p.useContext(Dt),E=g("input",b),_=g("input-password",y),x=i&&h(_),S=pe(_,m,{["".concat(_,"-").concat(T)]:!!T}),I=Object.assign(Object.assign({},Tp(v,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:S,prefixCls:E,suffix:x});return T&&(I.size=T),p.createElement(Fd,Object.assign({ref:qi(t,l)},I))}),C8=T8;var S8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,inputPrefixCls:r,className:i,size:a,suffix:o,enterButton:u=!1,addonAfter:s,loading:l,disabled:c,onSearch:d,onChange:h,onCompositionStart:m,onCompositionEnd:y}=e,b=S8(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:T,direction:v}=p.useContext(Dt),g=p.useRef(!1),E=T("input-search",n),_=T("input",r),{compactSize:x}=Mp(E,v),S=ks(C=>{var D;return(D=a!=null?a:x)!==null&&D!==void 0?D:C}),I=p.useRef(null),R=C=>{C&&C.target&&C.type==="click"&&d&&d(C.target.value,C,{source:"clear"}),h&&h(C)},O=C=>{var D;document.activeElement===((D=I.current)===null||D===void 0?void 0:D.input)&&C.preventDefault()},M=C=>{var D,W;d&&d((W=(D=I.current)===null||D===void 0?void 0:D.input)===null||W===void 0?void 0:W.value,C,{source:"input"})},F=C=>{g.current||l||M(C)},B=typeof u=="boolean"?p.createElement(ik,null):null,z="".concat(E,"-button");let U;const G=u||{},H=G.type&&G.type.__ANT_BUTTON===!0;H||G.type==="button"?U=fs(G,Object.assign({onMouseDown:O,onClick:C=>{var D,W;(W=(D=G==null?void 0:G.props)===null||D===void 0?void 0:D.onClick)===null||W===void 0||W.call(D,C),M(C)},key:"enterButton"},H?{className:z,size:S}:{})):U=p.createElement(pP,{className:z,type:u?"primary":void 0,size:S,disabled:c,key:"enterButton",onMouseDown:O,onClick:M,loading:l,icon:B},u),s&&(U=[U,fs(s,{key:"addonAfter"})]);const L=pe(E,{["".concat(E,"-rtl")]:v==="rtl",["".concat(E,"-").concat(S)]:!!S,["".concat(E,"-with-button")]:!!u},i),P=C=>{g.current=!0,m==null||m(C)},$=C=>{g.current=!1,y==null||y(C)};return p.createElement(Fd,Object.assign({ref:qi(I,t),onPressEnter:F},b,{size:S,onCompositionStart:P,onCompositionEnd:$,prefixCls:_,addonAfter:U,suffix:o,onChange:R,className:L,disabled:c}))}),x8=_8;var A8="\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",w8=["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"],n0={},Xn;function I8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&n0[n])return n0[n];var r=window.getComputedStyle(e),i=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")),u=w8.map(function(l){return"".concat(l,":").concat(r.getPropertyValue(l))}).join(";"),s={sizingStyle:u,paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(n0[n]=s),s}function N8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Xn||(Xn=document.createElement("textarea"),Xn.setAttribute("tab-index","-1"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn)),e.getAttribute("wrap")?Xn.setAttribute("wrap",e.getAttribute("wrap")):Xn.removeAttribute("wrap");var i=I8(e,t),a=i.paddingSize,o=i.borderSize,u=i.boxSizing,s=i.sizingStyle;Xn.setAttribute("style","".concat(s,";").concat(A8)),Xn.value=e.value||e.placeholder||"";var l=void 0,c=void 0,d,h=Xn.scrollHeight;if(u==="border-box"?h+=o:u==="content-box"&&(h-=a),n!==null||r!==null){Xn.value=" ";var m=Xn.scrollHeight-a;n!==null&&(l=m*n,u==="border-box"&&(l=l+a+o),h=Math.max(l,h)),r!==null&&(c=m*r,u==="border-box"&&(c=c+a+o),d=h>c?"":"hidden",h=Math.min(c,h))}var y={height:h,overflowY:d,resize:"none"};return l&&(y.minHeight=l),c&&(y.maxHeight=c),y}var R8=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],r0=0,i0=1,a0=2,O8=p.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var i=n.defaultValue,a=n.value,o=n.autoSize,u=n.onResize,s=n.className,l=n.style,c=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=jt(n,R8),m=Pd(i,{value:a,postState:function(X){return X!=null?X:""}}),y=ue(m,2),b=y[0],T=y[1],v=function(X){T(X.target.value),d==null||d(X)},g=p.useRef();p.useImperativeHandle(t,function(){return{textArea:g.current}});var E=p.useMemo(function(){return o&&Be(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),_=ue(E,2),x=_[0],S=_[1],I=!!o,R=function(){try{if(document.activeElement===g.current){var X=g.current,Z=X.selectionStart,J=X.selectionEnd,fe=X.scrollTop;g.current.setSelectionRange(Z,J),g.current.scrollTop=fe}}catch(Te){}},O=p.useState(a0),M=ue(O,2),F=M[0],B=M[1],z=p.useState(),U=ue(z,2),G=U[0],H=U[1],L=function(){B(r0)};Gt(function(){I&&L()},[a,x,S,I]),Gt(function(){if(F===r0)B(i0);else if(F===i0){var w=N8(g.current,!1,x,S);B(a0),H(w)}else R()},[F]);var P=p.useRef(),$=function(){Ur.cancel(P.current)},C=function(X){F===a0&&(u==null||u(X),o&&($(),P.current=Ur(function(){L()})))};p.useEffect(function(){return $},[]);var D=I?G:null,W=K(K({},l),D);return(F===r0||F===i0)&&(W.overflowY="hidden",W.overflowX="hidden"),p.createElement(Sd,{onResize:C,disabled:!(o||u)},p.createElement("textarea",et({},h,{ref:g,style:W,className:pe(r,s,V({},"".concat(r,"-disabled"),c)),disabled:c,value:b,onChange:v})))}),P8=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],L8=ae.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,a=e.onFocus,o=e.onBlur,u=e.onChange,s=e.allowClear,l=e.maxLength,c=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,m=e.prefixCls,y=m===void 0?"rc-textarea":m,b=e.showCount,T=e.count,v=e.className,g=e.style,E=e.disabled,_=e.hidden,x=e.classNames,S=e.styles,I=e.onResize,R=e.readOnly,O=jt(e,P8),M=Pd(r,{value:i,defaultValue:r}),F=ue(M,2),B=F[0],z=F[1],U=B==null?"":String(B),G=ae.useState(!1),H=ue(G,2),L=H[0],P=H[1],$=ae.useRef(!1),C=ae.useState(null),D=ue(C,2),W=D[0],w=D[1],X=p.useRef(null),Z=p.useRef(null),J=function(){var he;return(he=Z.current)===null||he===void 0?void 0:he.textArea},fe=function(){J().focus()};p.useImperativeHandle(t,function(){var me;return{resizableTextArea:Z.current,focus:fe,blur:function(){J().blur()},nativeElement:((me=X.current)===null||me===void 0?void 0:me.nativeElement)||J()}}),p.useEffect(function(){P(function(me){return!E&&me})},[E]);var Te=ae.useState(null),_e=ue(Te,2),Ae=_e[0],ke=_e[1];ae.useEffect(function(){if(Ae){var me;(me=J()).setSelectionRange.apply(me,be(Ae))}},[Ae]);var Oe=Q2(T,b),He=(n=Oe.max)!==null&&n!==void 0?n:l,Me=Number(He)>0,Ge=Oe.strategy(U),Fe=!!He&&Ge>He,$e=function(he,Xe){var Ze=Xe;!$.current&&Oe.exceedFormatter&&Oe.max&&Oe.strategy(Xe)>Oe.max&&(Ze=Oe.exceedFormatter(Xe,{max:Oe.max}),Xe!==Ze&&ke([J().selectionStart||0,J().selectionEnd||0])),z(Ze),$c(he.currentTarget,he,u,Ze)},ce=function(he){$.current=!0,c==null||c(he)},we=function(he){$.current=!1,$e(he,he.currentTarget.value),d==null||d(he)},ve=function(he){$e(he,he.target.value)},de=function(he){var Xe=O.onPressEnter,Ze=O.onKeyDown;he.key==="Enter"&&Xe&&Xe(he),Ze==null||Ze(he)},Ie=function(he){P(!0),a==null||a(he)},Ne=function(he){P(!1),o==null||o(he)},Se=function(he){z(""),fe(),$c(J(),he,u)},Pe=h,Y;Oe.show&&(Oe.showFormatter?Y=Oe.showFormatter({value:U,count:Ge,maxLength:He}):Y="".concat(Ge).concat(Me?" / ".concat(He):""),Pe=ae.createElement(ae.Fragment,null,Pe,ae.createElement("span",{className:pe("".concat(y,"-data-count"),x==null?void 0:x.count),style:S==null?void 0:S.count},Y)));var ie=function(he){var Xe;I==null||I(he),(Xe=J())!==null&&Xe!==void 0&&Xe.style.height&&w(!0)},Ce=!O.autoSize&&!b&&!s;return ae.createElement(K2,{ref:X,value:U,allowClear:s,handleReset:Se,suffix:Pe,prefixCls:y,classNames:K(K({},x),{},{affixWrapper:pe(x==null?void 0:x.affixWrapper,V(V({},"".concat(y,"-show-count"),b),"".concat(y,"-textarea-allow-clear"),s))}),disabled:E,focused:L,className:pe(v,Fe&&"".concat(y,"-out-of-range")),style:K(K({},g),W&&!Ce?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Y=="string"?Y:void 0}},hidden:_,readOnly:R},ae.createElement(O8,et({},O,{maxLength:l,onKeyDown:de,onChange:ve,onFocus:Ie,onBlur:Ne,onCompositionStart:ce,onCompositionEnd:we,className:pe(x==null?void 0:x.textarea),style:K(K({},S==null?void 0:S.textarea),{},{resize:g==null?void 0:g.resize}),disabled:E,prefixCls:y,onResize:ie,ref:Z,readOnly:R})))}),k8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,bordered:a=!0,size:o,disabled:u,status:s,allowClear:l,classNames:c,rootClassName:d,className:h,style:m,styles:y,variant:b}=e,T=k8(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:v,direction:g,textArea:E}=p.useContext(Dt),_=ks(o),x=p.useContext(Rd),S=u!=null?u:x,{status:I,hasFeedback:R,feedbackIcon:O}=p.useContext(ji),M=Up(I,s),F=p.useRef(null);p.useImperativeHandle(t,()=>{var C;return{resizableTextArea:(C=F.current)===null||C===void 0?void 0:C.resizableTextArea,focus:D=>{var W,w;Zk((w=(W=F.current)===null||W===void 0?void 0:W.resizableTextArea)===null||w===void 0?void 0:w.textArea,D)},blur:()=>{var D;return(D=F.current)===null||D===void 0?void 0:D.blur()}}});const B=v("input",i),z=Ps(B),[U,G,H]=zp(B,z),[L,P]=M2(b,a),$=X2(l!=null?l:E==null?void 0:E.allowClear);return U(p.createElement(L8,Object.assign({autoComplete:E==null?void 0:E.autoComplete},T,{style:Object.assign(Object.assign({},E==null?void 0:E.style),m),styles:Object.assign(Object.assign({},E==null?void 0:E.styles),y),disabled:S,allowClear:$,className:pe(H,z,h,d,E==null?void 0:E.className),classNames:Object.assign(Object.assign(Object.assign({},c),E==null?void 0:E.classNames),{textarea:pe({["".concat(B,"-sm")]:_==="small",["".concat(B,"-lg")]:_==="large"},G,c==null?void 0:c.textarea,(n=E==null?void 0:E.classNames)===null||n===void 0?void 0:n.textarea),variant:pe({["".concat(B,"-").concat(L)]:P},rm(B,M)),affixWrapper:pe("".concat(B,"-textarea-affix-wrapper"),{["".concat(B,"-affix-wrapper-rtl")]:g==="rtl",["".concat(B,"-affix-wrapper-sm")]:_==="small",["".concat(B,"-affix-wrapper-lg")]:_==="large",["".concat(B,"-textarea-show-count")]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},G)}),prefixCls:B,suffix:R&&p.createElement("span",{className:"".concat(B,"-textarea-suffix")},O),ref:F})))}),D8=M8,Bo=Fd;Bo.Group=Gk;Bo.Search=x8;Bo.TextArea=D8;Bo.Password=C8;Bo.OTP=u8;const F8=Bo;let Zn=null,da=e=>e(),ps=[],gs={};function nE(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=gs,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}const B8=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=p.useContext(Dt),a=gs.prefixCls||i("message"),o=p.useContext(DL),[u,s]=m2(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),o.message));return ae.useImperativeHandle(t,()=>{const l=Object.assign({},u);return Object.keys(l).forEach(c=>{l[c]=function(){return r(),u[c].apply(u,arguments)}}),{instance:l,sync:r}}),s}),H8=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(nE),i=()=>{r(nE)};ae.useEffect(i,[]);const a=q6(),o=a.getRootPrefixCls(),u=a.getIconPrefixCls(),s=a.getTheme(),l=ae.createElement(B8,{ref:t,sync:i,messageConfig:n});return ae.createElement(Fo,{prefixCls:o,iconPrefixCls:u,theme:s},a.holderRender?a.holderRender(l):l)});function Bd(){if(!Zn){const e=document.createDocumentFragment(),t={fragment:e};Zn=t,da(()=>{p2(ae.createElement(H8,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Bd())})}}),e)});return}Zn.instance&&(ps.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{da(()=>{const r=Zn.instance.open(Object.assign(Object.assign({},gs),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":da(()=>{Zn==null||Zn.instance.destroy(e.key)});break;default:da(()=>{var r;const i=(r=Zn.instance)[t].apply(r,be(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),ps=[])}function U8(e){gs=Object.assign(Object.assign({},gs),e),da(()=>{var t;(t=Zn==null?void 0:Zn.sync)===null||t===void 0||t.call(Zn)})}function $8(e){const t=kp(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return ps.push(i),()=>{r?da(()=>{r()}):i.skipped=!0}});return Bd(),t}function z8(e,t){const n=kp(r=>{let i;const a={type:e,args:t,resolve:r,setCloseFn:o=>{i=o}};return ps.push(a),()=>{i?da(()=>{i()}):a.skipped=!0}});return Bd(),n}const j8=e=>{ps.push({type:"destroy",key:e}),Bd()},V8=["success","info","warning","error","loading"],W8={open:$8,destroy:j8,config:U8,useMessage:f4,_InternalPanelDoNotUseOrYouWillBeFired:i4},J2=W8;V8.forEach(e=>{J2[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(Q8(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){zc(e,t+1)},r.onerror=function(){zc(e,t+1)}),tS.add(n),document.body.appendChild(r)}}function X8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?zc(t.reverse()):zc([t]));var i=p.forwardRef(function(a,o){var u=a.type,s=a.children,l=jt(a,K8),c=null;return a.type&&(c=p.createElement("use",{xlinkHref:"#".concat(u)})),s&&(c=s),p.createElement(G8,et({},r,l,{ref:o}),c)});return i.displayName="Iconfont",i}const Il=X8({scriptUrl:"//at.alicdn.com/t/c/font_3858115_p8dw9q83s0h.js"});function rE(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const o=n.slice(i,r).trim();(o||!a)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function nS(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Z8=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J8=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,e5={};function iE(e,t){return((t||e5).jsx?J8:Z8).test(e)}const t5=/[ \t\n\f\r]/g;function n5(e){return typeof e=="object"?e.type==="text"?aE(e.value):!1:aE(e)}function aE(e){return e.replace(t5,"")===""}class Bs{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Bs.prototype.property={};Bs.prototype.normal={};Bs.prototype.space=null;function rS(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&u5.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(uE,c5);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!uE.test(a)){let o=a.replace(s5,l5);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=jp}return new i(r,t)}function l5(e){return"-"+e.toLowerCase()}function c5(e){return e.charAt(1).toUpperCase()}const d5={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Hs=rS([oS,aS,lS,cS,a5],"html"),Gi=rS([oS,aS,lS,cS,o5],"svg");function sE(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function dS(e){return e.join(" ").trim()}var fS={},lE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,f5=/\n/g,h5=/^\s*/,m5=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,p5=/^:\s*/,g5=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,v5=/^[;\s]*/,E5=/^\s+|\s+$/g,y5="\n",cE="/",dE="*",ia="",b5="comment",T5="declaration",C5=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(y){var b=y.match(f5);b&&(n+=b.length);var T=y.lastIndexOf(y5);r=~T?y.length-T:r+y.length}function a(){var y={line:n,column:r};return function(b){return b.position=new o(y),l(),b}}function o(y){this.start=y,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function u(y){var b=new Error(t.source+":"+n+":"+r+": "+y);if(b.reason=y,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function s(y){var b=y.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function l(){s(h5)}function c(y){var b;for(y=y||[];b=d();)b!==!1&&y.push(b);return y}function d(){var y=a();if(!(cE!=e.charAt(0)||dE!=e.charAt(1))){for(var b=2;ia!=e.charAt(b)&&(dE!=e.charAt(b)||cE!=e.charAt(b+1));)++b;if(b+=2,ia===e.charAt(b-1))return u("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,y({type:b5,comment:T})}}function h(){var y=a(),b=s(m5);if(b){if(d(),!s(p5))return u("property missing ':'");var T=s(g5),v=y({type:T5,property:fE(b[0].replace(lE,ia)),value:T?fE(T[0].replace(lE,ia)):ia});return s(v5),v}}function m(){var y=[];c(y);for(var b;b=h();)b!==!1&&(y.push(b),c(y));return y}return l(),m()};function fE(e){return e?e.replace(E5,ia):ia}var S5=lg&&lg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fS,"__esModule",{value:!0});var _5=S5(C5);function x5(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,_5.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,u=a.value;i?t(o,u,a):u&&(n=n||{},n[o]=u)}}),n}var hE=fS.default=x5;const A5=hE.default||hE,Ud=hS("end"),zr=hS("start");function hS(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function w5(e){const t=zr(e),n=Ud(e);if(t&&n)return{start:t,end:n}}function Ru(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?mE(e.position):"start"in e||"end"in e?mE(e):"line"in e||"column"in e?am(e):""}function am(e){return pE(e&&e.line)+":"+pE(e&&e.column)}function mE(e){return am(e&&e.start)+"-"+am(e&&e.end)}function pE(e){return e&&typeof e=="number"?e:1}class un extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?a.ruleId=r:(a.source=r.slice(0,s),a.ruleId=r.slice(s+1))}if(!a.place&&a.ancestors&&a.ancestors){const s=a.ancestors[a.ancestors.length-1];s&&(a.place=s.position)}const u=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=u?u.line:void 0,this.name=Ru(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}un.prototype.file="";un.prototype.name="";un.prototype.reason="";un.prototype.message="";un.prototype.stack="";un.prototype.column=void 0;un.prototype.line=void 0;un.prototype.ancestors=void 0;un.prototype.cause=void 0;un.prototype.fatal=void 0;un.prototype.place=void 0;un.prototype.ruleId=void 0;un.prototype.source=void 0;const Vp={}.hasOwnProperty,I5=new Map,N5=/[A-Z]/g,R5=/-([a-z])/g,O5=new Set(["table","tbody","thead","tfoot","tr"]),P5=new Set(["td","th"]),mS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function L5(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=$5(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=U5(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Gi:Hs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=pS(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function pS(e,t,n){if(t.type==="element")return k5(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return M5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return F5(e,t,n);if(t.type==="mdxjsEsm")return D5(e,t);if(t.type==="root")return B5(e,t,n);if(t.type==="text")return H5(e,t)}function k5(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Gi,e.schema=i),e.ancestors.push(t);const a=vS(e,t.tagName,!1),o=z5(e,t);let u=Yp(e,t);return O5.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!n5(s):!0})),gS(e,o,a,t),Wp(o,u),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function M5(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Es(e,t.position)}function D5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Es(e,t.position)}function F5(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Gi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:vS(e,t.name,!0),o=j5(e,t),u=Yp(e,t);return gS(e,o,a,t),Wp(o,u),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function B5(e,t,n){const r={};return Wp(r,Yp(e,t)),e.create(t,e.Fragment,r,n)}function H5(e,t){return t.value}function gS(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function U5(e,t,n){return r;function r(i,a,o,u){const l=Array.isArray(o.children)?n:t;return u?l(a,o,u):l(a,o)}}function $5(e,t){return n;function n(r,i,a,o){const u=Array.isArray(a.children),s=zr(r);return t(i,a,o,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function z5(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Vp.call(t.properties,i)){const a=V5(e,i,t.properties[i]);if(a){const[o,u]=a;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&P5.has(t.tagName)?r=u:n[o]=u}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function j5(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const u=o.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Es(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,a=e.evaluater.evaluateExpression(u.expression)}else Es(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Yp(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:I5;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(ui(e,e.length,0,t),e):t}const EE={}.hasOwnProperty;function J5(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Eo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mr=Ki(/[A-Za-z]/),Hn=Ki(/[\dA-Za-z]/),nM=Ki(/[#-'*+\--9=?A-Z^-~]/);function om(e){return e!==null&&(e<32||e===127)}const um=Ki(/\d/),rM=Ki(/[\dA-Fa-f]/),iM=Ki(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function Sn(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const aM=Ki(new RegExp("\\p{P}|\\p{S}","u")),oM=Ki(/\s/);function Ki(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Uo(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const u=e.charCodeAt(n+1);a<56320&&u>56319&&u<57344?(o=String.fromCharCode(a,u),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function lt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(s){return tt(s)?(e.enter(n),u(s)):t(s)}function u(s){return tt(s)&&a++o))return;const I=t.events.length;let R=I,O,M;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(O){M=t.events[R][1].end;break}O=!0}for(v(r),S=I;SE;){const x=n[_];t.containerState=x[1],x[0].exit.call(t,e)}n.length=E}function g(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function dM(e,t,n){return lt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bE(e){if(e===null||Sn(e)||oM(e))return 1;if(aM(e))return 2}function Gp(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);TE(d,-s),TE(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},u={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},u.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},u.end),l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=tr(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=tr(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=tr(l,Gp(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=tr(l,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=tr(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ui(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&tt(S)?lt(e,g,"linePrefix",a+1)(S):g(S)}function g(S){return S===null||Le(S)?e.check(CE,b,_)(S):(e.enter("codeFlowValue"),E(S))}function E(S){return S===null||Le(S)?(e.exit("codeFlowValue"),g(S)):(e.consume(S),E)}function _(S){return e.exit("codeFenced"),t(S)}function x(S,I,R){let O=0;return M;function M(G){return S.enter("lineEnding"),S.consume(G),S.exit("lineEnding"),F}function F(G){return S.enter("codeFencedFence"),tt(G)?lt(S,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):B(G)}function B(G){return G===u?(S.enter("codeFencedFenceSequence"),z(G)):R(G)}function z(G){return G===u?(O++,S.consume(G),z):O>=o?(S.exit("codeFencedFenceSequence"),tt(G)?lt(S,U,"whitespace")(G):U(G)):R(G)}function U(G){return G===null||Le(G)?(S.exit("codeFencedFence"),I(G)):R(G)}}}function SM(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const s0={name:"codeIndented",tokenize:xM},_M={tokenize:AM,partial:!0};function xM(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),lt(e,a,"linePrefix",4+1)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?s(l):Le(l)?e.attempt(_M,o,s)(l):(e.enter("codeFlowValue"),u(l))}function u(l){return l===null||Le(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),u)}function s(l){return e.exit("codeIndented"),t(l)}}function AM(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):lt(e,a,"linePrefix",4+1)(o)}function a(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):Le(o)?i(o):n(o)}}const wM={name:"codeText",tokenize:RM,resolve:IM,previous:NM};function IM(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&au(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),au(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),au(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function _S(e,t,n,r,i,a,o,u,s){const l=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(v),e.exit(a),h):v===null||v===32||v===41||om(v)?n(v):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(v))}function h(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===62?(e.exit("chunkString"),e.exit(u),h(v)):v===null||v===60||Le(v)?n(v):(e.consume(v),v===92?y:m)}function y(v){return v===60||v===62||v===92?(e.consume(v),m):m(v)}function b(v){return!c&&(v===null||v===41||Sn(v))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(v)):c999||m===null||m===91||m===93&&!s||m===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):Le(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||Le(m)||u++>999?(e.exit("chunkString"),c(m)):(e.consume(m),s||(s=!tt(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),u++,d):d(m)}}function AS(e,t,n,r,i,a){let o;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):n(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),l(h))}function l(h){return h===o?(e.exit(a),s(o)):h===null?n(h):Le(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),lt(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===o||h===null||Le(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?d:c)}function d(h){return h===o||h===92?(e.consume(h),c):c(h)}}function Ou(e,t){let n;return r;function r(i){return Le(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):tt(i)?lt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const BM={name:"definition",tokenize:UM},HM={tokenize:$M,partial:!0};function UM(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return xS.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function u(m){return i=Eo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),s):n(m)}function s(m){return Sn(m)?Ou(e,l)(m):l(m)}function l(m){return _S(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(HM,d,d)(m)}function d(m){return tt(m)?lt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||Le(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function $M(e,t,n){return r;function r(u){return Sn(u)?Ou(e,i)(u):n(u)}function i(u){return AS(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function a(u){return tt(u)?lt(e,o,"whitespace")(u):o(u)}function o(u){return u===null||Le(u)?t(u):n(u)}}const zM={name:"hardBreakEscape",tokenize:jM};function jM(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Le(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const VM={name:"headingAtx",tokenize:YM,resolve:WM};function WM(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ui(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function YM(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Sn(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Le(c)?(e.exit("atxHeading"),t(c)):tt(c)?lt(e,u,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),u(c))}function l(c){return c===null||c===35||Sn(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),l)}}const qM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_E=["pre","script","style","textarea"],GM={name:"htmlFlow",tokenize:ZM,resolveTo:XM,concrete:!0},KM={tokenize:eD,partial:!0},QM={tokenize:JM,partial:!0};function XM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ZM(e,t,n){const r=this;let i,a,o,u,s;return l;function l(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),d}function d(w){return w===33?(e.consume(w),h):w===47?(e.consume(w),a=!0,b):w===63?(e.consume(w),i=3,r.interrupt?t:C):Mr(w)?(e.consume(w),o=String.fromCharCode(w),T):n(w)}function h(w){return w===45?(e.consume(w),i=2,m):w===91?(e.consume(w),i=5,u=0,y):Mr(w)?(e.consume(w),i=4,r.interrupt?t:C):n(w)}function m(w){return w===45?(e.consume(w),r.interrupt?t:C):n(w)}function y(w){const X="CDATA[";return w===X.charCodeAt(u++)?(e.consume(w),u===X.length?r.interrupt?t:B:y):n(w)}function b(w){return Mr(w)?(e.consume(w),o=String.fromCharCode(w),T):n(w)}function T(w){if(w===null||w===47||w===62||Sn(w)){const X=w===47,Z=o.toLowerCase();return!X&&!a&&_E.includes(Z)?(i=1,r.interrupt?t(w):B(w)):qM.includes(o.toLowerCase())?(i=6,X?(e.consume(w),v):r.interrupt?t(w):B(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):a?g(w):E(w))}return w===45||Hn(w)?(e.consume(w),o+=String.fromCharCode(w),T):n(w)}function v(w){return w===62?(e.consume(w),r.interrupt?t:B):n(w)}function g(w){return tt(w)?(e.consume(w),g):M(w)}function E(w){return w===47?(e.consume(w),M):w===58||w===95||Mr(w)?(e.consume(w),_):tt(w)?(e.consume(w),E):M(w)}function _(w){return w===45||w===46||w===58||w===95||Hn(w)?(e.consume(w),_):x(w)}function x(w){return w===61?(e.consume(w),S):tt(w)?(e.consume(w),x):E(w)}function S(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),s=w,I):tt(w)?(e.consume(w),S):R(w)}function I(w){return w===s?(e.consume(w),s=null,O):w===null||Le(w)?n(w):(e.consume(w),I)}function R(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Sn(w)?x(w):(e.consume(w),R)}function O(w){return w===47||w===62||tt(w)?E(w):n(w)}function M(w){return w===62?(e.consume(w),F):n(w)}function F(w){return w===null||Le(w)?B(w):tt(w)?(e.consume(w),F):n(w)}function B(w){return w===45&&i===2?(e.consume(w),H):w===60&&i===1?(e.consume(w),L):w===62&&i===4?(e.consume(w),D):w===63&&i===3?(e.consume(w),C):w===93&&i===5?(e.consume(w),$):Le(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(KM,W,z)(w)):w===null||Le(w)?(e.exit("htmlFlowData"),z(w)):(e.consume(w),B)}function z(w){return e.check(QM,U,W)(w)}function U(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),G}function G(w){return w===null||Le(w)?z(w):(e.enter("htmlFlowData"),B(w))}function H(w){return w===45?(e.consume(w),C):B(w)}function L(w){return w===47?(e.consume(w),o="",P):B(w)}function P(w){if(w===62){const X=o.toLowerCase();return _E.includes(X)?(e.consume(w),D):B(w)}return Mr(w)&&o.length<8?(e.consume(w),o+=String.fromCharCode(w),P):B(w)}function $(w){return w===93?(e.consume(w),C):B(w)}function C(w){return w===62?(e.consume(w),D):w===45&&i===2?(e.consume(w),C):B(w)}function D(w){return w===null||Le(w)?(e.exit("htmlFlowData"),W(w)):(e.consume(w),D)}function W(w){return e.exit("htmlFlow"),t(w)}}function JM(e,t,n){const r=this;return i;function i(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function eD(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt($d,t,n)}}const tD={name:"htmlText",tokenize:nD};function nD(e,t,n){const r=this;let i,a,o;return u;function u(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),s}function s(C){return C===33?(e.consume(C),l):C===47?(e.consume(C),x):C===63?(e.consume(C),E):Mr(C)?(e.consume(C),R):n(C)}function l(C){return C===45?(e.consume(C),c):C===91?(e.consume(C),a=0,y):Mr(C)?(e.consume(C),g):n(C)}function c(C){return C===45?(e.consume(C),m):n(C)}function d(C){return C===null?n(C):C===45?(e.consume(C),h):Le(C)?(o=d,L(C)):(e.consume(C),d)}function h(C){return C===45?(e.consume(C),m):d(C)}function m(C){return C===62?H(C):C===45?h(C):d(C)}function y(C){const D="CDATA[";return C===D.charCodeAt(a++)?(e.consume(C),a===D.length?b:y):n(C)}function b(C){return C===null?n(C):C===93?(e.consume(C),T):Le(C)?(o=b,L(C)):(e.consume(C),b)}function T(C){return C===93?(e.consume(C),v):b(C)}function v(C){return C===62?H(C):C===93?(e.consume(C),v):b(C)}function g(C){return C===null||C===62?H(C):Le(C)?(o=g,L(C)):(e.consume(C),g)}function E(C){return C===null?n(C):C===63?(e.consume(C),_):Le(C)?(o=E,L(C)):(e.consume(C),E)}function _(C){return C===62?H(C):E(C)}function x(C){return Mr(C)?(e.consume(C),S):n(C)}function S(C){return C===45||Hn(C)?(e.consume(C),S):I(C)}function I(C){return Le(C)?(o=I,L(C)):tt(C)?(e.consume(C),I):H(C)}function R(C){return C===45||Hn(C)?(e.consume(C),R):C===47||C===62||Sn(C)?O(C):n(C)}function O(C){return C===47?(e.consume(C),H):C===58||C===95||Mr(C)?(e.consume(C),M):Le(C)?(o=O,L(C)):tt(C)?(e.consume(C),O):H(C)}function M(C){return C===45||C===46||C===58||C===95||Hn(C)?(e.consume(C),M):F(C)}function F(C){return C===61?(e.consume(C),B):Le(C)?(o=F,L(C)):tt(C)?(e.consume(C),F):O(C)}function B(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),i=C,z):Le(C)?(o=B,L(C)):tt(C)?(e.consume(C),B):(e.consume(C),U)}function z(C){return C===i?(e.consume(C),i=void 0,G):C===null?n(C):Le(C)?(o=z,L(C)):(e.consume(C),z)}function U(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Sn(C)?O(C):(e.consume(C),U)}function G(C){return C===47||C===62||Sn(C)?O(C):n(C)}function H(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function L(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),P}function P(C){return tt(C)?lt(e,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):$(C)}function $(C){return e.enter("htmlTextData"),o(C)}}const Kp={name:"labelEnd",tokenize:sD,resolveTo:uD,resolveAll:oD},rD={tokenize:lD},iD={tokenize:cD},aD={tokenize:dD};function oD(e){let t=-1;for(;++t=3&&(l===null||Le(l))?(e.exit("thematicBreak"),t(l)):n(l)}function s(l){return l===i?(e.consume(l),r++,s):(e.exit("thematicBreakSequence"),tt(l)?lt(e,u,"whitespace")(l):u(l))}}const vn={name:"list",tokenize:bD,continuation:{tokenize:TD},exit:SD},ED={tokenize:_D,partial:!0},yD={tokenize:CD,partial:!0};function bD(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(m){const y=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:um(m)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(nc,n,l)(m):l(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(m)}return n(m)}function s(m){return um(m)&&++o<10?(e.consume(m),s):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):n(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check($d,r.interrupt?n:c,e.attempt(ED,h,d))}function c(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function d(m){return tt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function TD(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check($d,i,a);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,lt(e,t,"listItemIndent",r.containerState.size+1)(u)}function a(u){return r.containerState.furtherBlankLines||!tt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yD,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,lt(e,e.attempt(vn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function CD(e,t,n){const r=this;return lt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function SD(e){e.exit(this.containerState.type)}function _D(e,t,n){const r=this;return lt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!tt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const xE={name:"setextUnderline",tokenize:AD,resolveTo:xD};function xD(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function AD(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),u(l)}function u(l){return l===i?(e.consume(l),u):(e.exit("setextHeadingLineSequence"),tt(l)?lt(e,s,"lineSuffix")(l):s(l))}function s(l){return l===null||Le(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const wD={tokenize:ID};function ID(e){const t=this,n=e.attempt($d,r,e.attempt(this.parser.constructs.flowInitial,i,lt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(LM,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ND={resolveAll:IS()},RD=wS("string"),OD=wS("text");function wS(e){return{tokenize:t,resolveAll:IS(e==="text"?PD:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,u);return o;function o(c){return l(c)?a(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),s)}function l(c){if(c===null)return!0;const d=i[c];let h=-1;if(d)for(;++h-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function MD(e,t){let n=-1;const r=[];let i;for(;++n0){const Xe=Ce.tokenStack[Ce.tokenStack.length-1];(Xe[1]||wE).call(Ce,void 0,Xe[0])}for(ie.position={start:Ei(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Ei(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function sF(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lF(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function OS(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function cF(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return OS(e,t);const i={src:Uo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function dF(e,t){const n={src:Uo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function fF(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function hF(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return OS(e,t);const i={href:Uo(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function mF(e,t){const n={href:Uo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pF(e,t,n){const r=e.all(t),i=n?gF(n):PS(t),a={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let u=-1;for(;++u1:t}function vF(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=zr(t.children[1]),s=Ud(t.children[t.children.length-1]);u&&s&&(o.position={start:u,end:s}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function CF(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,u=o?o.length:t.children.length;let s=-1;const l=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(RE(t.slice(i),i>0,!1)),a.join("")}function RE(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===IE||a===NE;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===IE||a===NE;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function xF(e,t){const n={type:"text",value:_F(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function AF(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const wF={blockquote:nF,break:rF,code:iF,delete:aF,emphasis:oF,footnoteReference:uF,heading:sF,html:lF,imageReference:cF,image:dF,inlineCode:fF,linkReference:hF,link:mF,listItem:pF,list:vF,paragraph:EF,root:yF,strong:bF,table:TF,tableCell:SF,tableRow:CF,text:xF,thematicBreak:AF,toml:Nl,yaml:Nl,definition:Nl,footnoteDefinition:Nl};function Nl(){}const LS=-1,zd=0,jc=1,Vc=2,Qp=3,Xp=4,Zp=5,Jp=6,kS=7,MS=8,OE=typeof self=="object"?self:globalThis,IF=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case zd:case LS:return n(o,i);case jc:{const u=n([],i);for(const s of o)u.push(r(s));return u}case Vc:{const u=n({},i);for(const[s,l]of o)u[r(s)]=r(l);return u}case Qp:return n(new Date(o),i);case Xp:{const{source:u,flags:s}=o;return n(new RegExp(u,s),i)}case Zp:{const u=n(new Map,i);for(const[s,l]of o)u.set(r(s),r(l));return u}case Jp:{const u=n(new Set,i);for(const s of o)u.add(r(s));return u}case kS:{const{name:u,message:s}=o;return n(new OE[u](s),i)}case MS:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new OE[a](o),i)};return r},PE=e=>IF(new Map,e)(0),ja="",{toString:NF}={},{keys:RF}=Object,ou=e=>{const t=typeof e;if(t!=="object"||!e)return[zd,t];const n=NF.call(e).slice(8,-1);switch(n){case"Array":return[jc,ja];case"Object":return[Vc,ja];case"Date":return[Qp,ja];case"RegExp":return[Xp,ja];case"Map":return[Zp,ja];case"Set":return[Jp,ja]}return n.includes("Array")?[jc,n]:n.includes("Error")?[kS,n]:[Vc,n]},Rl=([e,t])=>e===zd&&(t==="function"||t==="symbol"),OF=(e,t,n,r)=>{const i=(o,u)=>{const s=r.push(o)-1;return n.set(u,s),s},a=o=>{if(n.has(o))return n.get(o);let[u,s]=ou(o);switch(u){case zd:{let c=o;switch(s){case"bigint":u=MS,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return i([LS],o)}return i([u,c],o)}case jc:{if(s)return i([s,[...o]],o);const c=[],d=i([u,c],o);for(const h of o)c.push(a(h));return d}case Vc:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],d=i([u,c],o);for(const h of RF(o))(e||!Rl(ou(o[h])))&&c.push([a(h),a(o[h])]);return d}case Qp:return i([u,o.toISOString()],o);case Xp:{const{source:c,flags:d}=o;return i([u,{source:c,flags:d}],o)}case Zp:{const c=[],d=i([u,c],o);for(const[h,m]of o)(e||!(Rl(ou(h))||Rl(ou(m))))&&c.push([a(h),a(m)]);return d}case Jp:{const c=[],d=i([u,c],o);for(const h of o)(e||!Rl(ou(h)))&&c.push(a(h));return d}}const{message:l}=o;return i([u,{name:s,message:l}],o)};return a},LE=(e,{json:t,lossy:n}={})=>{const r=[];return OF(!(t||n),!!t,new Map,r)(e),r},Ro=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?PE(LE(e,t)):structuredClone(e):(e,t)=>PE(LE(e,t));function PF(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function LF(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kF(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||PF,r=e.options.footnoteBackLabel||LF,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s0&&y.push({type:"text",value:" "});let g=typeof n=="string"?n:n(s,m);typeof g=="string"&&(g={type:"text",value:g}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,m),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const T=c[c.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const g=T.children[T.children.length-1];g&&g.type==="text"?g.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...y)}else c.push(...y);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(l,v),u.push(v)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ro(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:"\n"}]}}const DS=function(e){if(e==null)return BF;if(typeof e=="function")return jd(e);if(typeof e=="object")return Array.isArray(e)?MF(e):DF(e);if(typeof e=="string")return FF(e);throw new Error("Expected function, string, or object as test")};function MF(e){const t=[];let n=-1;for(;++n":""))+")"})}return h;function h(){let m=FS,y,b,T;if((!t||a(s,l,c[c.length-1]||void 0))&&(m=jF(n(s,c)),m[0]===kE))return m;if("children"in s&&s.children){const v=s;if(v.children&&m[0]!==$F)for(b=(r?v.children.length:-1)+o,T=c.concat(v);b>-1&&b0&&n.push({type:"text",value:"\n"}),n}function ME(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function DE(e,t){const n=WF(e,t),r=n.one(e,void 0),i=kF(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:"\n"},i),a}function QF(e,t){return e&&"run"in e?async function(n,r){const i=DE(n,{file:r,...t});await e.run(i,r)}:function(n,r){return DE(n,{file:r,...t||e})}}function FE(e){if(e)throw e}var rc=Object.prototype.hasOwnProperty,BS=Object.prototype.toString,BE=Object.defineProperty,HE=Object.getOwnPropertyDescriptor,UE=function(t){return typeof Array.isArray=="function"?Array.isArray(t):BS.call(t)==="[object Array]"},$E=function(t){if(!t||BS.call(t)!=="[object Object]")return!1;var n=rc.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rc.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rc.call(t,i)},zE=function(t,n){BE&&n.name==="__proto__"?BE(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},jE=function(t,n){if(n==="__proto__")if(rc.call(t,n)){if(HE)return HE(t,n).value}else return;return t[n]},XF=function e(){var t,n,r,i,a,o,u=arguments[0],s=1,l=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},s=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});so.length;let s;u&&o.push(i);try{s=e.apply(this,o)}catch(l){const c=l;if(u&&n)throw c;return i(c)}u||(s&&s.then&&typeof s.then=="function"?s.then(a,i):s instanceof Error?i(s):a(s))}function i(o,...u){n||(n=!0,t(o,...u))}function a(o){i(null,o)}}const Lr={basename:e9,dirname:t9,extname:n9,join:r9,sep:"/"};function e9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Us(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function t9(e){if(Us(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function n9(e){Us(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function r9(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function a9(e,t){let n="",r=0,i=-1,a=0,o=-1,u,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else u===46&&a>-1?a++:a=-1}return n}function Us(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const o9={cwd:u9};function u9(){return"/"}function dm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function s9(e){if(typeof e=="string")e=new URL(e);else if(!dm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return l9(e)}function l9(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[m,...y]=c;const b=r[h][1];cm(b)&&cm(m)&&(m=c0(!0,b,m)),r[h]=[l,m,...y]}}}}const h9=new tg().freeze();function m0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function p0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function g0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function WE(e){if(!cm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function YE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ol(e){return m9(e)?e:new HS(e)}function m9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function p9(e){return typeof e=="string"||g9(e)}function g9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const v9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qE=[],GE={allowDangerousHtml:!0},E9=/^(https?|ircs?|mailto|xmpp)$/i,y9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function uu(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,u=e.rehypePlugins||qE,s=e.remarkPlugins||qE,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...GE}:GE,c=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||b9,m=h9().use(tF).use(s).use(QF,l).use(u),y=new HS;typeof r=="string"&&(y.value=r);for(const g of y9)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+v9+g.id,void 0);const b=m.parse(y);let T=m.runSync(b,y);return i&&(T={type:"element",tagName:"div",properties:{className:i},children:T.type==="root"?T.children:[T]}),eg(T,v),L5(T,{Fragment:Ya,components:a,ignoreInvalidStyle:!0,jsx:ye,jsxs:ot,passKeys:!0,passNode:!0});function v(g,E,_){if(g.type==="raw"&&_&&typeof E=="number")return c?_.children.splice(E,1):_.children[E]={type:"text",value:g.value},E;if(g.type==="element"){let x;for(x in u0)if(Object.hasOwn(u0,x)&&Object.hasOwn(g.properties,x)){const S=g.properties[x],I=u0[x];(I===null||I.includes(g.tagName))&&(g.properties[x]=h(String(S||""),x,g))}}if(g.type==="element"){let x=t?!t.includes(g.tagName):o?o.includes(g.tagName):!1;if(!x&&n&&typeof E=="number"&&(x=!n(g,E,_)),x&&_&&typeof E=="number")return d&&g.children?_.children.splice(E,1,...g.children):_.children.splice(E,1),E}}}function b9(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||n>-1&&t>n||r>-1&&t>r||E9.test(e.slice(0,t))?e:""}const T9="/assets/show-right-icon-12c14da5.png",KE=/[#.]/g;function C9(e,t){const n=e||"",r={};let i=0,a,o;for(;i-1&&aa)return{line:o+1,column:a-(o>0?n[o-1]:0)+1,offset:a}}}function i(a){const o=a&&a.line,u=a&&a.column;if(typeof o=="number"&&typeof u=="number"&&!Number.isNaN(o)&&!Number.isNaN(u)&&o-1 in n){const s=(n[o-2]||0)+u-1||0;if(s>-1&&s=55296&&e<=57343}function G9(e){return e>=56320&&e<=57343}function K9(e,t){return(e-55296)*1024+9216+t}function YS(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function qS(e){return e>=64976&&e<=65007||q9.has(e)}var q;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(q=q||(q={}));const Q9=65536;class X9{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Q9,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t){const{line:n,col:r,offset:i}=this;return{code:t,startLine:n,endLine:n,startCol:r,endCol:r,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(G9(n))return this.pos++,this._addGap(),K9(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(q.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,WS(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){YS(t)?this._err(q.controlCharacterInInputStream):qS(t)&&this._err(q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const bi=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Z9=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var E0;const J9=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),eB=(E0=String.fromCodePoint)!==null&&E0!==void 0?E0:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function tB(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=J9.get(e))!==null&&t!==void 0?t:e}var $t;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})($t||($t={}));const nB=32;var Fr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Fr||(Fr={}));function mm(e){return e>=$t.ZERO&&e<=$t.NINE}function rB(e){return e>=$t.UPPER_A&&e<=$t.UPPER_F||e>=$t.LOWER_A&&e<=$t.LOWER_F}function iB(e){return e>=$t.UPPER_A&&e<=$t.UPPER_Z||e>=$t.LOWER_A&&e<=$t.LOWER_Z||mm(e)}function aB(e){return e===$t.EQUALS||iB(e)}var Ht;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ht||(Ht={}));var aa;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(aa||(aa={}));class oB{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ht.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=aa.Strict}startEntity(t){this.decodeMode=t,this.state=Ht.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ht.EntityStart:return t.charCodeAt(n)===$t.NUM?(this.state=Ht.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ht.NamedEntity,this.stateNamedEntity(t,n));case Ht.NumericStart:return this.stateNumericStart(t,n);case Ht.NumericDecimal:return this.stateNumericDecimal(t,n);case Ht.NumericHex:return this.stateNumericHex(t,n);case Ht.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|nB)===$t.LOWER_X?(this.state=Ht.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ht.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(o===$t.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==aa.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Fr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Fr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Ht.NamedEntity:return this.result!==0&&(this.decodeMode!==aa.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ht.NumericDecimal:return this.emitNumericEntity(0,2);case Ht.NumericHex:return this.emitNumericEntity(0,3);case Ht.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ht.EntityStart:return 0}}}function KS(e){let t="";const n=new oB(e,r=>t+=eB(r));return function(i,a){let o=0,u=0;for(;(u=i.indexOf("&",u))>=0;){t+=i.slice(o,u),n.startEntity(a);const l=n.write(i,u+1);if(l<0){o=u+n.end();break}o=u+l,u=l===0?o+1:o}const s=t+i.slice(o);return t="",s}}function QS(e,t,n,r){const i=(t&Fr.BRANCH_LENGTH)>>7,a=t&Fr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const s=r-a;return s<0||s>=i?-1:e[n+s]-1}let o=n,u=o+i-1;for(;o<=u;){const s=o+u>>>1,l=e[s];if(lr)u=s-1;else return e[s+i]}return-1}KS(bi);KS(Z9);var Q;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Q=Q||(Q={}));var Ui;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ui=Ui||(Ui={}));var Mn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Mn=Mn||(Mn={}));var j;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(j=j||(j={}));var f;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(f=f||(f={}));const uB=new Map([[j.A,f.A],[j.ADDRESS,f.ADDRESS],[j.ANNOTATION_XML,f.ANNOTATION_XML],[j.APPLET,f.APPLET],[j.AREA,f.AREA],[j.ARTICLE,f.ARTICLE],[j.ASIDE,f.ASIDE],[j.B,f.B],[j.BASE,f.BASE],[j.BASEFONT,f.BASEFONT],[j.BGSOUND,f.BGSOUND],[j.BIG,f.BIG],[j.BLOCKQUOTE,f.BLOCKQUOTE],[j.BODY,f.BODY],[j.BR,f.BR],[j.BUTTON,f.BUTTON],[j.CAPTION,f.CAPTION],[j.CENTER,f.CENTER],[j.CODE,f.CODE],[j.COL,f.COL],[j.COLGROUP,f.COLGROUP],[j.DD,f.DD],[j.DESC,f.DESC],[j.DETAILS,f.DETAILS],[j.DIALOG,f.DIALOG],[j.DIR,f.DIR],[j.DIV,f.DIV],[j.DL,f.DL],[j.DT,f.DT],[j.EM,f.EM],[j.EMBED,f.EMBED],[j.FIELDSET,f.FIELDSET],[j.FIGCAPTION,f.FIGCAPTION],[j.FIGURE,f.FIGURE],[j.FONT,f.FONT],[j.FOOTER,f.FOOTER],[j.FOREIGN_OBJECT,f.FOREIGN_OBJECT],[j.FORM,f.FORM],[j.FRAME,f.FRAME],[j.FRAMESET,f.FRAMESET],[j.H1,f.H1],[j.H2,f.H2],[j.H3,f.H3],[j.H4,f.H4],[j.H5,f.H5],[j.H6,f.H6],[j.HEAD,f.HEAD],[j.HEADER,f.HEADER],[j.HGROUP,f.HGROUP],[j.HR,f.HR],[j.HTML,f.HTML],[j.I,f.I],[j.IMG,f.IMG],[j.IMAGE,f.IMAGE],[j.INPUT,f.INPUT],[j.IFRAME,f.IFRAME],[j.KEYGEN,f.KEYGEN],[j.LABEL,f.LABEL],[j.LI,f.LI],[j.LINK,f.LINK],[j.LISTING,f.LISTING],[j.MAIN,f.MAIN],[j.MALIGNMARK,f.MALIGNMARK],[j.MARQUEE,f.MARQUEE],[j.MATH,f.MATH],[j.MENU,f.MENU],[j.META,f.META],[j.MGLYPH,f.MGLYPH],[j.MI,f.MI],[j.MO,f.MO],[j.MN,f.MN],[j.MS,f.MS],[j.MTEXT,f.MTEXT],[j.NAV,f.NAV],[j.NOBR,f.NOBR],[j.NOFRAMES,f.NOFRAMES],[j.NOEMBED,f.NOEMBED],[j.NOSCRIPT,f.NOSCRIPT],[j.OBJECT,f.OBJECT],[j.OL,f.OL],[j.OPTGROUP,f.OPTGROUP],[j.OPTION,f.OPTION],[j.P,f.P],[j.PARAM,f.PARAM],[j.PLAINTEXT,f.PLAINTEXT],[j.PRE,f.PRE],[j.RB,f.RB],[j.RP,f.RP],[j.RT,f.RT],[j.RTC,f.RTC],[j.RUBY,f.RUBY],[j.S,f.S],[j.SCRIPT,f.SCRIPT],[j.SECTION,f.SECTION],[j.SELECT,f.SELECT],[j.SOURCE,f.SOURCE],[j.SMALL,f.SMALL],[j.SPAN,f.SPAN],[j.STRIKE,f.STRIKE],[j.STRONG,f.STRONG],[j.STYLE,f.STYLE],[j.SUB,f.SUB],[j.SUMMARY,f.SUMMARY],[j.SUP,f.SUP],[j.TABLE,f.TABLE],[j.TBODY,f.TBODY],[j.TEMPLATE,f.TEMPLATE],[j.TEXTAREA,f.TEXTAREA],[j.TFOOT,f.TFOOT],[j.TD,f.TD],[j.TH,f.TH],[j.THEAD,f.THEAD],[j.TITLE,f.TITLE],[j.TR,f.TR],[j.TRACK,f.TRACK],[j.TT,f.TT],[j.U,f.U],[j.UL,f.UL],[j.SVG,f.SVG],[j.VAR,f.VAR],[j.WBR,f.WBR],[j.XMP,f.XMP]]);function zo(e){var t;return(t=uB.get(e))!==null&&t!==void 0?t:f.UNKNOWN}const te=f,sB={[Q.HTML]:new Set([te.ADDRESS,te.APPLET,te.AREA,te.ARTICLE,te.ASIDE,te.BASE,te.BASEFONT,te.BGSOUND,te.BLOCKQUOTE,te.BODY,te.BR,te.BUTTON,te.CAPTION,te.CENTER,te.COL,te.COLGROUP,te.DD,te.DETAILS,te.DIR,te.DIV,te.DL,te.DT,te.EMBED,te.FIELDSET,te.FIGCAPTION,te.FIGURE,te.FOOTER,te.FORM,te.FRAME,te.FRAMESET,te.H1,te.H2,te.H3,te.H4,te.H5,te.H6,te.HEAD,te.HEADER,te.HGROUP,te.HR,te.HTML,te.IFRAME,te.IMG,te.INPUT,te.LI,te.LINK,te.LISTING,te.MAIN,te.MARQUEE,te.MENU,te.META,te.NAV,te.NOEMBED,te.NOFRAMES,te.NOSCRIPT,te.OBJECT,te.OL,te.P,te.PARAM,te.PLAINTEXT,te.PRE,te.SCRIPT,te.SECTION,te.SELECT,te.SOURCE,te.STYLE,te.SUMMARY,te.TABLE,te.TBODY,te.TD,te.TEMPLATE,te.TEXTAREA,te.TFOOT,te.TH,te.THEAD,te.TITLE,te.TR,te.TRACK,te.UL,te.WBR,te.XMP]),[Q.MATHML]:new Set([te.MI,te.MO,te.MN,te.MS,te.MTEXT,te.ANNOTATION_XML]),[Q.SVG]:new Set([te.TITLE,te.FOREIGN_OBJECT,te.DESC]),[Q.XLINK]:new Set,[Q.XML]:new Set,[Q.XMLNS]:new Set};function XS(e){return e===te.H1||e===te.H2||e===te.H3||e===te.H4||e===te.H5||e===te.H6}j.STYLE,j.SCRIPT,j.XMP,j.IFRAME,j.NOEMBED,j.NOFRAMES,j.PLAINTEXT;const lB=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(N||(N={}));const xt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function Pu(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function gu(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function cB(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Ti(e){return cB(e)||gu(e)}function pm(e){return Ti(e)||Pu(e)}function ZS(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_F}function JS(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_F}function dB(e){return Pu(e)||ZS(e)||JS(e)}function Pl(e){return e+32}function e_(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function fB(e){return e===A.EQUALS_SIGN||pm(e)}function JE(e){return e_(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}class hB{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new X9(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(q.endTagWithAttributes),t.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ve.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ve.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ve.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ve.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=e_(t)?Ve.WHITESPACE_CHARACTER:t===A.NULL?Ve.NULL_CHARACTER:Ve.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ve.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,o=bi[0];a>=0&&(a=QS(bi,o,a+1,t),!(a<0));t=this._consume()){r+=1,o=bi[a];const u=o&Fr.VALUE_LENGTH;if(u){const s=(u>>14)-1;if(t!==A.SEMICOLON&&this._isCharacterReferenceInAttribute()&&fB(this.preprocessor.peek(1))?(n=[A.AMPERSAND],a+=s):(n=s===0?[bi[a]&~Fr.VALUE_LENGTH]:s===1?[bi[++a]]:[bi[++a],bi[++a]],r=0,i=t!==A.SEMICOLON),s===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(q.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case N.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case N.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case N.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case N.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case N.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case N.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case A.AMPERSAND:{this.returnState=N.DATA,this.state=N.CHARACTER_REFERENCE;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this.returnState=N.RCDATA,this.state=N.CHARACTER_REFERENCE;break}case A.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(mt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(mt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(mt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(mt);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ti(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ti(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=N.DATA;break}case A.EOF:{this._err(q.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(mt);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ti(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ti(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(mt);break}case A.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(gn.SCRIPT,!1)&&JE(this.preprocessor.peek(gn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(q.characterReferenceOutsideUnicodeRange),this.charRefCode=A.REPLACEMENT_CHARACTER;else if(WS(this.charRefCode))this._err(q.surrogateCharacterReference),this.charRefCode=A.REPLACEMENT_CHARACTER;else if(qS(this.charRefCode))this._err(q.noncharacterCharacterReference);else if(YS(this.charRefCode)||this.charRefCode===A.CARRIAGE_RETURN){this._err(q.controlCharacterReference);const n=lB.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const t_=new Set([f.DD,f.DT,f.LI,f.OPTGROUP,f.OPTION,f.P,f.RB,f.RP,f.RT,f.RTC]),ey=new Set([...t_,f.CAPTION,f.COLGROUP,f.TBODY,f.TD,f.TFOOT,f.TH,f.THEAD,f.TR]),Ll=new Map([[f.APPLET,Q.HTML],[f.CAPTION,Q.HTML],[f.HTML,Q.HTML],[f.MARQUEE,Q.HTML],[f.OBJECT,Q.HTML],[f.TABLE,Q.HTML],[f.TD,Q.HTML],[f.TEMPLATE,Q.HTML],[f.TH,Q.HTML],[f.ANNOTATION_XML,Q.MATHML],[f.MI,Q.MATHML],[f.MN,Q.MATHML],[f.MO,Q.MATHML],[f.MS,Q.MATHML],[f.MTEXT,Q.MATHML],[f.DESC,Q.SVG],[f.FOREIGN_OBJECT,Q.SVG],[f.TITLE,Q.SVG]]),mB=[f.H1,f.H2,f.H3,f.H4,f.H5,f.H6],pB=[f.TR,f.TEMPLATE,f.HTML],gB=[f.TBODY,f.TFOOT,f.THEAD,f.TEMPLATE,f.HTML],vB=[f.TABLE,f.TEMPLATE,f.HTML],EB=[f.TD,f.TH];class yB{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=f.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===f.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Q.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Q.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(vB,Q.HTML)}clearBackToTableBodyContext(){this.clearBackTo(gB,Q.HTML)}clearBackToTableRowContext(){this.clearBackTo(pB,Q.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===f.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===f.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Q.HTML)return!0;if(Ll.get(r)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(XS(n)&&r===Q.HTML)return!0;if(Ll.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Q.HTML)return!0;if((r===f.UL||r===f.OL)&&i===Q.HTML||Ll.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===Q.HTML)return!0;if(r===f.BUTTON&&i===Q.HTML||Ll.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML){if(r===t)return!0;if(r===f.TABLE||r===f.TEMPLATE||r===f.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Q.HTML){if(n===f.TBODY||n===f.THEAD||n===f.TFOOT)return!0;if(n===f.TABLE||n===f.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===Q.HTML){if(r===t)return!0;if(r!==f.OPTION&&r!==f.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;t_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ey.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&ey.has(this.currentTagId);)this.pop()}}const y0=3;var Tr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Tr=Tr||(Tr={}));const ty={type:Tr.Marker};class bB{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let u=0;u[o.name,o.value]));let a=0;for(let o=0;oi.get(s.name)===s.value)&&(a+=1,a>=y0&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(ty)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Tr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Tr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ty);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Tr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Tr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Tr.Element&&n.element===t)}}function ny(e){return{nodeName:"#text",value:e,parentNode:null}}const Wa={createDocument(){return{nodeName:"#document",mode:Mn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Wa.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Wa.isTextNode(n)){n.value+=t;return}}Wa.appendChild(e,ny(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Wa.isTextNode(r)?r.value+=t:Wa.insertBefore(e,ny(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function AB(e){return e.name===n_&&e.publicId===null&&(e.systemId===null||e.systemId===TB)}function wB(e){if(e.name!==n_)return Mn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===CB)return Mn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),_B.has(n))return Mn.QUIRKS;let r=t===null?SB:r_;if(ry(n,r))return Mn.QUIRKS;if(r=t===null?i_:xB,ry(n,r))return Mn.LIMITED_QUIRKS}return Mn.NO_QUIRKS}const iy={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},IB="definitionurl",NB="definitionURL",RB=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),OB=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Q.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Q.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Q.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Q.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Q.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Q.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Q.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Q.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Q.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Q.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Q.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Q.XMLNS}]]),PB=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),LB=new Set([f.B,f.BIG,f.BLOCKQUOTE,f.BODY,f.BR,f.CENTER,f.CODE,f.DD,f.DIV,f.DL,f.DT,f.EM,f.EMBED,f.H1,f.H2,f.H3,f.H4,f.H5,f.H6,f.HEAD,f.HR,f.I,f.IMG,f.LI,f.LISTING,f.MENU,f.META,f.NOBR,f.OL,f.P,f.PRE,f.RUBY,f.S,f.SMALL,f.SPAN,f.STRONG,f.STRIKE,f.SUB,f.SUP,f.TABLE,f.TT,f.U,f.UL,f.VAR]);function kB(e){const t=e.tagID;return t===f.FONT&&e.attrs.some(({name:r})=>r===Ui.COLOR||r===Ui.SIZE||r===Ui.FACE)||LB.has(t)}function a_(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,o;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,o=this.fragmentContextID):{current:a,currentTagId:o}=this.openElements,this._setContextModes(a,o)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Q.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Q.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=xt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===j.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Q.HTML))switch(this.fragmentContextID){case f.TITLE:case f.TEXTAREA:{this.tokenizer.state=xt.RCDATA;break}case f.STYLE:case f.XMP:case f.IFRAME:case f.NOEMBED:case f.NOFRAMES:case f.NOSCRIPT:{this.tokenizer.state=xt.RAWTEXT;break}case f.SCRIPT:{this.tokenizer.state=xt.SCRIPT_DATA;break}case f.PLAINTEXT:{this.tokenizer.state=xt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Q.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Q.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(j.HTML,Q.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,f.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,o=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:s,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:s,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Ve.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===f.SVG&&this.treeAdapter.getTagName(n)===j.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Q.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===f.MGLYPH||t.tagID===f.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Q.HTML)}_processToken(t){switch(t.type){case Ve.CHARACTER:{this.onCharacter(t);break}case Ve.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ve.COMMENT:{this.onComment(t);break}case Ve.DOCTYPE:{this.onDoctype(t);break}case Ve.START_TAG:{this._processStartTag(t);break}case Ve.END_TAG:{this.onEndTag(t);break}case Ve.EOF:{this.onEof(t);break}case Ve.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return BB(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Tr.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case f.TR:{this.insertionMode=k.IN_ROW;return}case f.TBODY:case f.THEAD:case f.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case f.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case f.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case f.TABLE:{this.insertionMode=k.IN_TABLE;return}case f.BODY:{this.insertionMode=k.IN_BODY;return}case f.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case f.SELECT:{this._resetInsertionModeForSelect(t);return}case f.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case f.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case f.TD:case f.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case f.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===f.TEMPLATE)break;if(r===f.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return u_.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case f.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Q.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case f.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return sB[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){EH(this,t);return}switch(this.insertionMode){case k.INITIAL:{su(this,t);break}case k.BEFORE_HTML:{Lu(this,t);break}case k.BEFORE_HEAD:{ku(this,t);break}case k.IN_HEAD:{Mu(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Du(this,t);break}case k.AFTER_HEAD:{Fu(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{l_(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{b0(this,t);break}case k.IN_TABLE_TEXT:{p_(this,t);break}case k.IN_COLUMN_GROUP:{Wc(this,t);break}case k.AFTER_BODY:{Yc(this,t);break}case k.AFTER_AFTER_BODY:{ac(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){vH(this,t);return}switch(this.insertionMode){case k.INITIAL:{su(this,t);break}case k.BEFORE_HTML:{Lu(this,t);break}case k.BEFORE_HEAD:{ku(this,t);break}case k.IN_HEAD:{Mu(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Du(this,t);break}case k.AFTER_HEAD:{Fu(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{b0(this,t);break}case k.IN_COLUMN_GROUP:{Wc(this,t);break}case k.AFTER_BODY:{Yc(this,t);break}case k.AFTER_AFTER_BODY:{ac(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){gm(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{gm(this,t);break}case k.IN_TABLE_TEXT:{lu(this,t);break}case k.AFTER_BODY:{KB(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{QB(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{XB(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,q.misplacedDoctype);break}case k.IN_TABLE_TEXT:{lu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?yH(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{su(this,t);break}case k.BEFORE_HTML:{ZB(this,t);break}case k.BEFORE_HEAD:{e7(this,t);break}case k.IN_HEAD:{wr(this,t);break}case k.IN_HEAD_NO_SCRIPT:{r7(this,t);break}case k.AFTER_HEAD:{a7(this,t);break}case k.IN_BODY:{sn(this,t);break}case k.IN_TABLE:{Oo(this,t);break}case k.IN_TABLE_TEXT:{lu(this,t);break}case k.IN_CAPTION:{tH(this,t);break}case k.IN_COLUMN_GROUP:{ug(this,t);break}case k.IN_TABLE_BODY:{Yd(this,t);break}case k.IN_ROW:{qd(this,t);break}case k.IN_CELL:{iH(this,t);break}case k.IN_SELECT:{E_(this,t);break}case k.IN_SELECT_IN_TABLE:{oH(this,t);break}case k.IN_TEMPLATE:{sH(this,t);break}case k.AFTER_BODY:{cH(this,t);break}case k.IN_FRAMESET:{dH(this,t);break}case k.AFTER_FRAMESET:{hH(this,t);break}case k.AFTER_AFTER_BODY:{pH(this,t);break}case k.AFTER_AFTER_FRAMESET:{gH(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?bH(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{su(this,t);break}case k.BEFORE_HTML:{JB(this,t);break}case k.BEFORE_HEAD:{t7(this,t);break}case k.IN_HEAD:{n7(this,t);break}case k.IN_HEAD_NO_SCRIPT:{i7(this,t);break}case k.AFTER_HEAD:{o7(this,t);break}case k.IN_BODY:{Wd(this,t);break}case k.TEXT:{W7(this,t);break}case k.IN_TABLE:{ys(this,t);break}case k.IN_TABLE_TEXT:{lu(this,t);break}case k.IN_CAPTION:{nH(this,t);break}case k.IN_COLUMN_GROUP:{rH(this,t);break}case k.IN_TABLE_BODY:{vm(this,t);break}case k.IN_ROW:{v_(this,t);break}case k.IN_CELL:{aH(this,t);break}case k.IN_SELECT:{y_(this,t);break}case k.IN_SELECT_IN_TABLE:{uH(this,t);break}case k.IN_TEMPLATE:{lH(this,t);break}case k.AFTER_BODY:{T_(this,t);break}case k.IN_FRAMESET:{fH(this,t);break}case k.AFTER_FRAMESET:{mH(this,t);break}case k.AFTER_AFTER_BODY:{ac(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{su(this,t);break}case k.BEFORE_HTML:{Lu(this,t);break}case k.BEFORE_HEAD:{ku(this,t);break}case k.IN_HEAD:{Mu(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Du(this,t);break}case k.AFTER_HEAD:{Fu(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{h_(this,t);break}case k.TEXT:{Y7(this,t);break}case k.IN_TABLE_TEXT:{lu(this,t);break}case k.IN_TEMPLATE:{b_(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{og(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{s_(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{b0(this,t);break}case k.IN_TABLE_TEXT:{m_(this,t);break}}}}function jB(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):f_(e,t),n}function VB(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function WB(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const u=e.activeFormattingElements.getElementEntry(o),s=u&&a>=$B;!u||s?(s&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(o)):(o=YB(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function YB(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function qB(e,t,n){const r=e.treeAdapter.getTagName(t),i=zo(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===f.TEMPLATE&&a===Q.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function GB(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function ag(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(a);o&&!o.endTag&&e._setEndLocation(a,t)}}}}function XB(e,t){e._setDocumentType(t);const n=t.forceQuirks?Mn.QUIRKS:wB(t);AB(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}function su(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Mn.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function ZB(e,t){t.tagID===f.HTML?(e._insertElement(t,Q.HTML),e.insertionMode=k.BEFORE_HEAD):Lu(e,t)}function JB(e,t){const n=t.tagID;(n===f.HTML||n===f.HEAD||n===f.BODY||n===f.BR)&&Lu(e,t)}function Lu(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function e7(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.HEAD:{e._insertElement(t,Q.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:ku(e,t)}}function t7(e,t){const n=t.tagID;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?ku(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function ku(e,t){e._insertFakeElement(j.HEAD,f.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function wr(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case f.TITLE:{e._switchToTextParsing(t,xt.RCDATA);break}case f.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,xt.RAWTEXT):(e._insertElement(t,Q.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case f.NOFRAMES:case f.STYLE:{e._switchToTextParsing(t,xt.RAWTEXT);break}case f.SCRIPT:{e._switchToTextParsing(t,xt.SCRIPT_DATA);break}case f.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case f.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Mu(e,t)}}function n7(e,t){switch(t.tagID){case f.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case f.BODY:case f.BR:case f.HTML:{Mu(e,t);break}case f.TEMPLATE:{Oa(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Oa(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==f.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function Mu(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function r7(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.BASEFONT:case f.BGSOUND:case f.HEAD:case f.LINK:case f.META:case f.NOFRAMES:case f.STYLE:{wr(e,t);break}case f.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:Du(e,t)}}function i7(e,t){switch(t.tagID){case f.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case f.BR:{Du(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Du(e,t){const n=t.type===Ve.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function a7(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.BODY:{e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case f.FRAMESET:{e._insertElement(t,Q.HTML),e.insertionMode=k.IN_FRAMESET;break}case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,f.HEAD),wr(e,t),e.openElements.remove(e.headElement);break}case f.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Fu(e,t)}}function o7(e,t){switch(t.tagID){case f.BODY:case f.HTML:case f.BR:{Fu(e,t);break}case f.TEMPLATE:{Oa(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Fu(e,t){e._insertFakeElement(j.BODY,f.BODY),e.insertionMode=k.IN_BODY,Vd(e,t)}function Vd(e,t){switch(t.type){case Ve.CHARACTER:{l_(e,t);break}case Ve.WHITESPACE_CHARACTER:{s_(e,t);break}case Ve.COMMENT:{gm(e,t);break}case Ve.START_TAG:{sn(e,t);break}case Ve.END_TAG:{Wd(e,t);break}case Ve.EOF:{h_(e,t);break}}}function s_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function l_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function u7(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function s7(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function l7(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Q.HTML),e.insertionMode=k.IN_FRAMESET)}function c7(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function d7(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),XS(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Q.HTML)}function f7(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function h7(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,Q.HTML),n||(e.formElement=e.openElements.current))}function m7(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===f.LI&&i===f.LI||(n===f.DD||n===f.DT)&&(i===f.DD||i===f.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==f.ADDRESS&&i!==f.DIV&&i!==f.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,Q.HTML)}function p7(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.tokenizer.state=xt.PLAINTEXT}function g7(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1}function v7(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(j.A);n&&(ag(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function E7(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y7(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(ag(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Q.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function b7(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function T7(e,t){e.treeAdapter.getDocumentMode(e.document)!==Mn.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function c_(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function d_(e){const t=GS(e,Ui.TYPE);return t!=null&&t.toLowerCase()===HB}function C7(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Q.HTML),d_(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function S7(e,t){e._appendElement(t,Q.HTML),t.ackSelfClosing=!0}function _7(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,Q.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function x7(e,t){t.tagName=j.IMG,t.tagID=f.IMG,c_(e,t)}function A7(e,t){e._insertElement(t,Q.HTML),e.skipNextNewLine=!0,e.tokenizer.state=xt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function w7(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,xt.RAWTEXT)}function I7(e,t){e.framesetOk=!1,e._switchToTextParsing(t,xt.RAWTEXT)}function uy(e,t){e._switchToTextParsing(t,xt.RAWTEXT)}function N7(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function R7(e,t){e.openElements.currentTagId===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function O7(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Q.HTML)}function P7(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,Q.HTML)}function L7(e,t){e._reconstructActiveFormattingElements(),a_(t),ig(t),t.selfClosing?e._appendElement(t,Q.MATHML):e._insertElement(t,Q.MATHML),t.ackSelfClosing=!0}function k7(e,t){e._reconstructActiveFormattingElements(),o_(t),ig(t),t.selfClosing?e._appendElement(t,Q.SVG):e._insertElement(t,Q.SVG),t.ackSelfClosing=!0}function sy(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Q.HTML)}function sn(e,t){switch(t.tagID){case f.I:case f.S:case f.B:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.SMALL:case f.STRIKE:case f.STRONG:{E7(e,t);break}case f.A:{v7(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{d7(e,t);break}case f.P:case f.DL:case f.OL:case f.UL:case f.DIV:case f.DIR:case f.NAV:case f.MAIN:case f.MENU:case f.ASIDE:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.DETAILS:case f.ADDRESS:case f.ARTICLE:case f.SECTION:case f.SUMMARY:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{c7(e,t);break}case f.LI:case f.DD:case f.DT:{m7(e,t);break}case f.BR:case f.IMG:case f.WBR:case f.AREA:case f.EMBED:case f.KEYGEN:{c_(e,t);break}case f.HR:{_7(e,t);break}case f.RB:case f.RTC:{O7(e,t);break}case f.RT:case f.RP:{P7(e,t);break}case f.PRE:case f.LISTING:{f7(e,t);break}case f.XMP:{w7(e,t);break}case f.SVG:{k7(e,t);break}case f.HTML:{u7(e,t);break}case f.BASE:case f.LINK:case f.META:case f.STYLE:case f.TITLE:case f.SCRIPT:case f.BGSOUND:case f.BASEFONT:case f.TEMPLATE:{wr(e,t);break}case f.BODY:{s7(e,t);break}case f.FORM:{h7(e,t);break}case f.NOBR:{y7(e,t);break}case f.MATH:{L7(e,t);break}case f.TABLE:{T7(e,t);break}case f.INPUT:{C7(e,t);break}case f.PARAM:case f.TRACK:case f.SOURCE:{S7(e,t);break}case f.IMAGE:{x7(e,t);break}case f.BUTTON:{g7(e,t);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{b7(e,t);break}case f.IFRAME:{I7(e,t);break}case f.SELECT:{N7(e,t);break}case f.OPTION:case f.OPTGROUP:{R7(e,t);break}case f.NOEMBED:{uy(e,t);break}case f.FRAMESET:{l7(e,t);break}case f.TEXTAREA:{A7(e,t);break}case f.NOSCRIPT:{e.options.scriptingEnabled?uy(e,t):sy(e,t);break}case f.PLAINTEXT:{p7(e,t);break}case f.COL:case f.TH:case f.TD:case f.TR:case f.HEAD:case f.FRAME:case f.TBODY:case f.TFOOT:case f.THEAD:case f.CAPTION:case f.COLGROUP:break;default:sy(e,t)}}function M7(e,t){if(e.openElements.hasInScope(f.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function D7(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode=k.AFTER_BODY,T_(e,t))}function F7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function B7(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):n&&e.openElements.remove(n))}function H7(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(j.P,f.P),e._closePElement()}function U7(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}function $7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function z7(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function j7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function V7(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(j.BR,f.BR),e.openElements.pop(),e.framesetOk=!1}function f_(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==f.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,o))break}}function Wd(e,t){switch(t.tagID){case f.A:case f.B:case f.I:case f.S:case f.U:case f.EM:case f.TT:case f.BIG:case f.CODE:case f.FONT:case f.NOBR:case f.SMALL:case f.STRIKE:case f.STRONG:{ag(e,t);break}case f.P:{H7(e);break}case f.DL:case f.UL:case f.OL:case f.DIR:case f.DIV:case f.NAV:case f.PRE:case f.MAIN:case f.MENU:case f.ASIDE:case f.BUTTON:case f.CENTER:case f.FIGURE:case f.FOOTER:case f.HEADER:case f.HGROUP:case f.DIALOG:case f.ADDRESS:case f.ARTICLE:case f.DETAILS:case f.SECTION:case f.SUMMARY:case f.LISTING:case f.FIELDSET:case f.BLOCKQUOTE:case f.FIGCAPTION:{F7(e,t);break}case f.LI:{U7(e);break}case f.DD:case f.DT:{$7(e,t);break}case f.H1:case f.H2:case f.H3:case f.H4:case f.H5:case f.H6:{z7(e);break}case f.BR:{V7(e);break}case f.BODY:{M7(e,t);break}case f.HTML:{D7(e,t);break}case f.FORM:{B7(e);break}case f.APPLET:case f.OBJECT:case f.MARQUEE:{j7(e,t);break}case f.TEMPLATE:{Oa(e,t);break}default:f_(e,t)}}function h_(e,t){e.tmplInsertionModeStack.length>0?b_(e,t):og(e,t)}function W7(e,t){var n;t.tagID===f.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Y7(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function b0(e,t){if(u_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case Ve.CHARACTER:{p_(e,t);break}case Ve.WHITESPACE_CHARACTER:{m_(e,t);break}}else $s(e,t)}function q7(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Q.HTML),e.insertionMode=k.IN_CAPTION}function G7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function K7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(j.COLGROUP,f.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,ug(e,t)}function Q7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Q.HTML),e.insertionMode=k.IN_TABLE_BODY}function X7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(j.TBODY,f.TBODY),e.insertionMode=k.IN_TABLE_BODY,Yd(e,t)}function Z7(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function J7(e,t){d_(t)?e._appendElement(t,Q.HTML):$s(e,t),t.ackSelfClosing=!0}function eH(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Q.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Oo(e,t){switch(t.tagID){case f.TD:case f.TH:case f.TR:{X7(e,t);break}case f.STYLE:case f.SCRIPT:case f.TEMPLATE:{wr(e,t);break}case f.COL:{K7(e,t);break}case f.FORM:{eH(e,t);break}case f.TABLE:{Z7(e,t);break}case f.TBODY:case f.TFOOT:case f.THEAD:{Q7(e,t);break}case f.INPUT:{J7(e,t);break}case f.CAPTION:{q7(e,t);break}case f.COLGROUP:{G7(e,t);break}default:$s(e,t)}}function ys(e,t){switch(t.tagID){case f.TABLE:{e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode());break}case f.TEMPLATE:{Oa(e,t);break}case f.BODY:case f.CAPTION:case f.COL:case f.COLGROUP:case f.HTML:case f.TBODY:case f.TD:case f.TFOOT:case f.TH:case f.THEAD:case f.TR:break;default:$s(e,t)}}function $s(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vd(e,t),e.fosterParentingEnabled=n}function m_(e,t){e.pendingCharacterTokens.push(t)}function p_(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function lu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===f.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===f.OPTGROUP&&e.openElements.pop();break}case f.OPTION:{e.openElements.currentTagId===f.OPTION&&e.openElements.pop();break}case f.SELECT:{e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode());break}case f.TEMPLATE:{Oa(e,t);break}}}function oH(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processStartTag(t)):E_(e,t)}function uH(e,t){const n=t.tagID;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e.onEndTag(t)):y_(e,t)}function sH(e,t){switch(t.tagID){case f.BASE:case f.BASEFONT:case f.BGSOUND:case f.LINK:case f.META:case f.NOFRAMES:case f.SCRIPT:case f.STYLE:case f.TEMPLATE:case f.TITLE:{wr(e,t);break}case f.CAPTION:case f.COLGROUP:case f.TBODY:case f.TFOOT:case f.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,Oo(e,t);break}case f.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,ug(e,t);break}case f.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,Yd(e,t);break}case f.TD:case f.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,qd(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,sn(e,t)}}function lH(e,t){t.tagID===f.TEMPLATE&&Oa(e,t)}function b_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):og(e,t)}function cH(e,t){t.tagID===f.HTML?sn(e,t):Yc(e,t)}function T_(e,t){var n;if(t.tagID===f.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===f.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Yc(e,t)}function Yc(e,t){e.insertionMode=k.IN_BODY,Vd(e,t)}function dH(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.FRAMESET:{e._insertElement(t,Q.HTML);break}case f.FRAME:{e._appendElement(t,Q.HTML),t.ackSelfClosing=!0;break}case f.NOFRAMES:{wr(e,t);break}}}function fH(e,t){t.tagID===f.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==f.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function hH(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.NOFRAMES:{wr(e,t);break}}}function mH(e,t){t.tagID===f.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function pH(e,t){t.tagID===f.HTML?sn(e,t):ac(e,t)}function ac(e,t){e.insertionMode=k.IN_BODY,Vd(e,t)}function gH(e,t){switch(t.tagID){case f.HTML:{sn(e,t);break}case f.NOFRAMES:{wr(e,t);break}}}function vH(e,t){t.chars=mt,e._insertCharacters(t)}function EH(e,t){e._insertCharacters(t),e.framesetOk=!1}function C_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Q.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function yH(e,t){if(kB(t))C_(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Q.MATHML?a_(t):r===Q.SVG&&(MB(t),o_(t)),ig(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function bH(e,t){if(t.tagID===f.P||t.tagID===f.BR){C_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Q.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}j.AREA,j.BASE,j.BASEFONT,j.BGSOUND,j.BR,j.COL,j.EMBED,j.FRAME,j.HR,j.IMG,j.INPUT,j.KEYGEN,j.LINK,j.META,j.PARAM,j.SOURCE,j.TRACK,j.WBR;const TH=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ly={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function S_(e,t){const n=OH(e),r=jS("type",{handlers:{root:CH,element:SH,text:_H,comment:x_,doctype:xH,raw:wH},unknown:IH}),i={parser:n?new oy(ly):oy.getFragmentParser(void 0,ly),handle(u){r(u,i)},stitches:!1,options:t||{}};r(e,i),jo(i,zr());const a=n?i.parser.document:i.parser.getFragment(),o=L9(a,{file:i.options.file});return i.stitches&&eg(o,"comment",function(u,s,l){const c=u;if(c.value.stitch&&l&&s!==void 0){const d=l.children;return d[s]=c.value.stitch,s}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function __(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:Ve.CHARACTER,chars:e.value,location:zs(e)};jo(t,zr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function xH(e,t){const n={type:Ve.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:zs(e)};jo(t,zr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function AH(e,t){t.stitches=!0;const n=PH(e);if("children"in e&&"children"in n){const r=S_({type:"root",children:e.children},t.options);n.children=r.children}x_({type:"comment",value:{stitch:n}},t)}function x_(e,t){const n=e.value,r={type:Ve.COMMENT,data:n,location:zs(e)};jo(t,zr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function wH(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,A_(t,zr(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function IH(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))AH(n,t);else{let r="";throw TH.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function jo(e,t){A_(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=xt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function A_(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function NH(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===xt.PLAINTEXT)return;jo(t,zr(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:fa.html;i===fa.html&&n==="svg"&&(i=fa.svg);const a=B9({...e,children:[]},{space:i===fa.svg?"svg":"html"}),o={type:Ve.START_TAG,tagName:n,tagID:zo(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:zs(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function RH(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Y9.includes(n)||t.parser.tokenizer.state===xt.PLAINTEXT)return;jo(t,Ud(e));const r={type:Ve.END_TAG,tagName:n,tagID:zo(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:zs(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===xt.RCDATA||t.parser.tokenizer.state===xt.RAWTEXT||t.parser.tokenizer.state===xt.SCRIPT_DATA)&&(t.parser.tokenizer.state=xt.DATA)}function OH(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function zs(e){const t=zr(e)||{line:void 0,column:void 0,offset:void 0},n=Ud(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function PH(e){return"children"in e?Ro({...e,children:[]}):Ro(e)}function cu(e){return function(t,n){return S_(t,{...e,file:n})}}async function LH(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function kH(e){let t,n,r,i=!1;return function(o){t===void 0?(t=o,n=0,r=-1):t=DH(t,o);const u=t.length;let s=0;for(;n0){const s=i.decode(o.subarray(0,u)),l=u+(o[u+1]===32?2:1),c=i.decode(o.subarray(l));switch(s){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":const d=parseInt(c,10);isNaN(d)||t(r.retry=d);break}}}}function DH(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function cy(){return{data:"",event:"",id:"",retry:void 0}}var FH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const m=Object.assign({},r);m.accept||(m.accept=Em);let y;function b(){y.abort(),document.hidden||x()}s||document.addEventListener("visibilitychange",b);let T=BH,v=0;function g(){document.removeEventListener("visibilitychange",b),window.clearTimeout(v),y.abort()}n==null||n.addEventListener("abort",()=>{g(),d()});const E=l!=null?l:window.fetch,_=i!=null?i:UH;async function x(){var S;y=new AbortController;try{const I=await E(e,Object.assign(Object.assign({},c),{headers:m,signal:y.signal}));await _(I),await LH(I.body,kH(MH(R=>{R?m[dy]=R:delete m[dy]},R=>{T=R},a))),o==null||o(),g(),d()}catch(I){if(!y.signal.aborted)try{const R=(S=u==null?void 0:u(I))!==null&&S!==void 0?S:T;window.clearTimeout(v),v=window.setTimeout(x,R)}catch(R){g(),h(R)}}}x()})}function UH(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(Em)))throw new Error("Expected content-type to be ".concat(Em,", Actual: ").concat(t))}const $H="https://mindsearch.openxlab.org.cn/solve",T0=e=>e.replace(/\[\[(\d+)\]\]/g,(t,n)=>"".concat(n,"")),zH=()=>{var e;p.useRef(null);const[t,n]=p.useState(!1),[r,i]=p.useState(""),[a,o]=p.useState(""),[u,s]=p.useState(!1),[l,c]=p.useState(!1),[d,h]=p.useState(""),[m,y]=p.useState(!0),[b,T]=p.useState(!1),[v,g]=p.useState(""),[E,_]=p.useState(""),[x,S]=p.useState(!1),[I,R]=p.useState(""),[O,M]=p.useState(""),[F,B]=p.useState([]),[z,U]=p.useState([]),[G,H]=p.useState([]),[L,P]=p.useState(null);p.useState(0);const[$,C]=p.useState(""),[D,W]=p.useState(0),[w,X]=p.useState([!0,!0]),[Z,J]=p.useState(0),[fe,Te]=p.useState(!0),[_e,Ae]=p.useState(!1),[ke,Oe]=p.useState([]),[He,Me]=p.useState(""),Ge=p.useRef(!1),Fe=p.useRef(!1),$e=p.useRef(!1),[ce,we]=p.useState(null),[ve,de]=p.useState(!1),[Ie,Ne]=p.useState([]),Se=20,Pe=80,Y=()=>{Te(!fe)},ie=(oe,le)=>oe.map(ee=>ee.state===1&&ee.id!==0?{...ee,state:3}:ee.name===le?{...ee,state:1}:(ee.children&&(ee.children=ie(ee.children,le)),ee)),Ce=()=>{const oe=document.getElementsByClassName("endline"),le=document.getElementById("mindMap");if(oe.length>=2&&le){const ee=oe[0].getBoundingClientRect(),se=oe[oe.length-1].getBoundingClientRect(),ze=le==null?void 0:le.getBoundingClientRect(),Ft=se.top-ee.top;return{top:ee.top-ze.top,height:Ft+1}}else return{top:"50%",height:0}},me=()=>{const oe=document.querySelectorAll("article");if(oe!=null&&oe.length){let le=0;oe.forEach((se,ze)=>{se.getBoundingClientRect().right>le&&(le=se.getBoundingClientRect().right)});const ee=oe[0].getBoundingClientRect();return le-ee.left+200>Z?le-ee.left+200:Z}else return 100},he=(oe,le,ee)=>{let se=0,Ft=setInterval(()=>{if(le==="stepDraft-1"&&se+3>(oe==null?void 0:oe.length)&&($e.current=!0),se<(oe==null?void 0:oe.length)){let We=oe.slice(se,Math.min(se+10,oe.length));se+=We.length,le==="thought"?h(oe.slice(0,se)):le==="stepDraft-0"?g(oe.slice(0,se)):le==="stepDraft-1"?_(oe.slice(0,se)):le==="conclusion"?R(oe.slice(0,se)):le==="response"&&C(oe.slice(0,se))}else clearInterval(Ft),ee&&ee()},Se)},Xe=()=>{let oe=0;const le=JSON.parse(L.actions[D].result[0].content),ee=Object.keys(le).map(We=>({id:We,...le[We]})),se=Object.keys(le).length;let Ft=setInterval(()=>{oe++,oe{Oe([]);const le=D+1;W(le);const ee=[...z];ee.forEach(se=>{oe.includes(Number(se.id))&&(se.highLight=!0)}),ee.sort((se,ze)=>se.highLight===ze.highLight?0:se.highLight?-1:1),U(ee),he(L.actions[1].thought,"stepDraft-1",()=>{}),Ge.current=!0},Vt=()=>{const oe=window.localStorage.getItem("nodeRes")||"",le=T0(oe);X([!1,!1]),R(le),M(oe),O.length+5>oe.length&&(Fe.current=!0,S(!0))},pn=oe=>{var le,ee;const se=(le=L.actions[D])===null||le===void 0||(ee=le.args)===null||ee===void 0?void 0:ee.query;B(se),oe&&oe()},xn=()=>{Ae(!0);const oe=()=>{L.actions[D].result[0].content&&(L.actions[D].type==="BingBrowser.search"||L.actions[D].type==="BingBrowser")&&Xe()},le=()=>{var ee,se,ze;(ee=L.actions[D])!==null&&ee!==void 0&&(se=ee.args)!==null&&se!==void 0&&(ze=se.query)!==null&&ze!==void 0&&ze.length?pn(oe):oe()};L.actions[D].thought&&he(L.actions[D].thought,"stepDraft-".concat(D),le)},ct=oe=>{const le=[...w];le[oe]=!le[oe],X(le)},ht=(oe,le)=>{const ee=le.offsetHeight;ee>oe.offsetHeight&&(oe.scrollTop=ee-oe.offsetHeight)};p.useEffect(()=>{H([{id:0,state:3,name:"原始问题",children:Ie}])},[JSON.stringify(Ie)]),p.useEffect(()=>{console.log("render data changed-----",G)},[G]),p.useEffect(()=>{D===1&&X([!1,!0])},[D]),p.useEffect(()=>{if(ve&&!localStorage.getItem("nodeRes")){Fe.current=!0,S(!0);return}$e.current&&localStorage.getItem("nodeRes")&&Vt()},[localStorage.getItem("nodeRes"),$e.current,ve]),p.useEffect(()=>{var oe,le,ee,se,ze,Ft,We;if((ce==null||(oe=ce.response)===null||oe===void 0||(le=oe.nodes[ce.current_node])===null||le===void 0||(ee=le.detail)===null||ee===void 0?void 0:ee.state)!==1&&n(!0),(ce==null||(se=ce.response)===null||se===void 0||(ze=se.nodes)===null||ze===void 0||(Ft=ze[ce.current_node].detail)===null||Ft===void 0?void 0:Ft.state)===0&&(L==null?void 0:L.current_node)===ce.current_node&&(console.log("node render end-----",ce),de(!0)),ce!=null&&ce.current_node&&(ce==null||(We=ce.response)===null||We===void 0?void 0:We.state)===3){var nt,At,wt,Jt,Yt,Ir,An,wn,cr,In,Nn,gt,dr,ci,jr,qn,di;if(((nt=ce.response.nodes[ce.current_node])===null||nt===void 0||(At=nt.detail)===null||At===void 0||(wt=At.actions)===null||wt===void 0?void 0:wt.length)===2&&((Jt=ce.response.nodes[ce.current_node])===null||Jt===void 0||(Yt=Jt.detail)===null||Yt===void 0?void 0:Yt.state)===1&&(Ir=ce.response.nodes[ce.current_node])!==null&&Ir!==void 0&&Ir.detail.response){var Nr;window.localStorage.setItem("nodeRes",(Nr=ce.response.nodes[ce.current_node])===null||Nr===void 0?void 0:Nr.detail.response)}if(ce.current_node&&((An=ce.response.nodes[ce.current_node])===null||An===void 0||(wn=An.detail)===null||wn===void 0?void 0:wn.state)===1&&(cr=ce.response.nodes[ce.current_node])!==null&&cr!==void 0&&(In=cr.detail)!==null&&In!==void 0&&(Nn=In.actions)!==null&&Nn!==void 0&&Nn.length&&D===0&&(L==null?void 0:L.current_node)!==(ce==null?void 0:ce.current_node)){var fr;console.log("update current node----"),n(!1),P({...(fr=ce.response.nodes[ce.current_node])===null||fr===void 0?void 0:fr.detail,current_node:ce.current_node})}if(!ke.length&&((gt=ce.response.nodes[ce.current_node])===null||gt===void 0||(dr=gt.detail)===null||dr===void 0||(ci=dr.actions)===null||ci===void 0||(jr=ci[1])===null||jr===void 0?void 0:jr.type)==="BingBrowser.select"&&((qn=ce.response.nodes[ce.current_node])===null||qn===void 0||(di=qn.detail)===null||di===void 0?void 0:di.state)===1){var Bt,Qi,fi,hi,hr,mi;Oe(((Bt=ce.response.nodes[ce.current_node])===null||Bt===void 0||(Qi=Bt.detail)===null||Qi===void 0||(fi=Qi.actions)===null||fi===void 0||(hi=fi[1])===null||hi===void 0||(hr=hi.args)===null||hr===void 0?void 0:hr.select_ids)||[]),P({...(mi=ce.response.nodes[ce.current_node])===null||mi===void 0?void 0:mi.detail,current_node:ce.current_node})}}},[ce]),p.useEffect(()=>{!L||_e||xn()},[L,_e,ke]),p.useEffect(()=>{!Ge.current&&ke.length&&(L==null?void 0:L.actions.length)===2&&Ze(ke)},[ke,L]),p.useEffect(()=>{He&&He!==(L==null?void 0:L.current_node)&&x&&!u&&(Wt(He),J(me()))},[He,L,x,u]);let Ke=p.useRef(null);p.useEffect(()=>(u?(Ke.current=setInterval(()=>{const oe=document.getElementById("chatArea"),le=document.getElementById("messageWindowId");ht(oe,le),m&&clearInterval(Ke.current)},500),setTimeout(()=>{c(!0)},300)):Ke.current&&(clearInterval(Ke.current),Ke.current=null),()=>{Ke.current&&(clearInterval(Ke.current),Ke.current=null)}),[u,m]),p.useEffect(()=>{H([]),C(""),h(""),s(!1),Te(!0),window.localStorage.setItem("nodeRes",""),window.localStorage.setItem("finishedNodes","")},[r]);const Wt=oe=>{oe!=="response"&&(ie(G,oe),console.log("reset node------",oe,G),W(0),B([]),U([]),R(""),X([!0,!0]),g(""),_(""),S(!1),P(null),Ae(!1),Oe([]),de(!1),Ge.current=!1,$e.current=!1,Fe.current=!1,window.localStorage.setItem("nodeRes",""))},Ot=oe=>{try{n(!1);const ee=JSON.parse(oe);if(!ee.current_node&&ee.response.state===0){console.log("chat is over end-------"),y(!0);return}if(!ee.current_node&&ee.response.state===9){Te(!1),s(!0);const se=T0(ee.response.response);C(se);return}if(!ee.current_node&&ee.response.state===1&&!L&&(T(!1),h(ee.response.response)),!ee.current_node&&(ee.response.state!==1||ee.response.state!==0||ee.response.state!==9)&&(T(!0),n(!0)),ee.current_node&&ee.response.state===3){var le;Me(ee.current_node),we(ee);const se=(le=ee.response)===null||le===void 0?void 0:le.adjacency_list;(se==null?void 0:se.length)>0&&Ne(se)}}catch(ee){console.log("format error-----",ee)}},lr=()=>{if(!m){Y8.warning("有对话进行中!");return}i(a),y(!1);const oe={inputs:[{role:"user",content:a}]};new AbortController,HH($H,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(oe),onmessage(le){Ot(le.data)},onerror(le){console.log("sse error------",le)}})};return ot("div",{className:xe.mainPage,style:fe?{}:{maxWidth:"1000px"},children:[ot("div",{className:xe.chatContent,children:[ye("div",{className:xe.top,id:"chatArea",children:ot("div",{id:"messageWindowId",children:[r&&ye("div",{className:xe.question,children:ye("span",{children:r})}),(d||$||(G==null?void 0:G.length)>0)&&ot("div",{className:xe.answer,children:[(G==null?void 0:G.length)>0?ye("div",{className:xe.inner,children:ye("div",{className:xe.mapArea,children:ot("ul",{className:xe.mindmap,id:"mindMap",style:u?{width:Z,overflow:"hidden"}:{},children:[G.map(oe=>ye(BT,{item:oe,isEnd:u},oe.name)),l&&ye("div",{className:xe.end,style:Ce(),children:ye("div",{className:xe.node,children:ye("article",{children:"最终回复"})})})]})})}):ye(Ya,{}),!$&&ye("div",{className:xe.draft,children:ye(uu,{rehypePlugins:[cu],children:T0(d)})}),$&&ye("div",{className:xe.response,children:ye(uu,{rehypePlugins:[cu],children:$})})]})]})}),ot("div",{className:xe.sendArea,children:[ye(F8,{type:"text",placeholder:"说点什么吧~ Shift+Enter 换行 ; Enter 发送",onChange:oe=>{o(oe.target.value)},onPressEnter:lr}),ot("button",{onClick:lr,children:[ye("img",{src:Qw}),"发送"]})]}),ot("div",{className:xe.notice,children:["如果想要更丝滑的体验,请在本地搭建-",ot("a",{href:"https://github.com/InternLM/MindSearch",target:"_blank",children:["MindSearch ",ye(Il,{type:"icon-GithubFilled"})]})]})]}),fe&&ot("div",{className:xe.progressContent,children:[L&&ot(Ya,{children:[ye("div",{className:xe.toggleIcon,onClick:Y,children:ye(_k,{placement:"top",title:"收起",children:ye("img",{src:Kw})})}),ye("div",{className:xe.titleNode,children:(L==null?void 0:L.content)||(L==null?void 0:L.node)}),L!=null&&(e=L.actions)!==null&&e!==void 0&&e.length?ye(Ya,{children:L.actions.map((oe,le)=>D>=le&&ot("div",{className:pe(xe.steps,oe.type==="BingBrowser.search"?xe.thinking:xe.select),children:[ot("div",{className:xe.title,children:[ye("i",{}),oe.type==="BingBrowser.search"?"思考":oe.type==="BingBrowser.select"?"信息来源":"信息整合",ye("div",{className:xe.open,onClick:()=>{ct(le)},children:ye(Il,{type:w[le]?"icon-shouqi":"icon-xiangxiazhankai"})})]}),ot("div",{className:pe(xe.con,w[le]?"":xe.collapsed),children:[oe.type==="BingBrowser.search"&&ye("div",{className:xe.thought,children:ye(uu,{rehypePlugins:[cu],children:v})}),oe.type==="BingBrowser.search"&&F.length>0&&ot("div",{className:xe.query,children:[ot("div",{className:xe.subTitle,children:[ye(Il,{type:"icon-SearchOutlined"}),"搜索关键词"]}),F.map((ee,se)=>ye("div",{className:pe(xe.queryItem,xe.fadeIn),children:ee},"query-item-".concat(ee)))]}),D===le&&z.length>0&&ot("div",{className:xe.searchList,children:[oe.type==="BingBrowser.search"&&ot("div",{className:xe.subTitle,children:[ye(Il,{type:"icon-DocOutlined"}),"信息来源"]}),oe.type==="BingBrowser.select"&&ye("div",{className:xe.thought,children:ye(uu,{rehypePlugins:[cu],children:E})}),ye("div",{className:xe.scrollCon,style:z.length>5&&D===0?{height:"300px"}:{},children:ye("div",{className:xe.inner,style:z.length>5&&D===0?{position:"absolute",bottom:0,left:0}:{},children:z.map((ee,se)=>ot("div",{className:pe(xe.searchItem,ee.highLight?xe.highLight:""),children:[ot("p",{className:xe.summ,children:[ee.id,". ",ee==null?void 0:ee.title]}),ye("p",{className:xe.url,children:ee==null?void 0:ee.url})]},"search-item-".concat(ee.url,"-").concat(le)))})})]})]})]},"step-".concat(le)))}):ye(Ya,{})]}),I&&ot("div",{className:xe.steps,children:[ot("div",{className:xe.title,children:[ye("i",{}),"信息整合"]}),ye("div",{className:xe.conclusion,children:ye(uu,{rehypePlugins:[cu],children:I})})]}),t&&r&&ye("div",{className:xe.loading99})]}),!fe&&ye("div",{className:xe.showRight,onClick:Y,children:ye("img",{src:T9})})]})},jH=[{path:"/",needLogin:!1,element:ye(zH,{})},{path:"*",element:ye(q3,{to:"/"})}],VH=()=>k3(jH.map(e=>e.needLogin?{...e,element:ye(Ya,{})}:e));function WH(){return ye(X3,{children:ot("div",{className:ml.app,id:"app",children:[ye("div",{className:ml.header,children:ye("div",{className:ml.headerNav,children:ye("img",{src:a3})})}),ye("div",{className:ml.content,children:ye(VH,{})})]})})}C0.createRoot(document.getElementById("root")).render(ye(ae.StrictMode,{children:ye(WH,{})}));export{YH as __vite_legacy_guard}; diff --git a/dist/assets/index-ab4095ce.css b/dist/assets/index-ab4095ce.css deleted file mode 100644 index 5da53e260e77d35dc230c09a12ff43a8e5477662..0000000000000000000000000000000000000000 --- a/dist/assets/index-ab4095ce.css +++ /dev/null @@ -1 +0,0 @@ -body,html,#root{padding:0;margin:0;width:100%;height:100%;font-family:PingFang SC;font-size:14px;line-height:21px}#global__message-container{position:fixed;left:0;right:0;top:72px;z-index:999;display:flex;flex-direction:column;justify-content:center;align-items:center}.f{color:#6674d6;font-family:DIN;font-size:12px;font-style:normal;font-weight:500;line-height:14px;position:relative;top:-4px;padding:0 3px}.f:after{content:"·";position:absolute;top:0;right:-2px;color:#6674d6}p>:nth-last-child(1).f:after,li>:nth-last-child(1).f:after{content:"";opacity:0}.fnn2{color:#6674d6;font-family:DIN;font-size:14px;font-style:normal;font-weight:500;line-height:14px;position:relative;top:-2px}._app_1k3bk_1{height:100%;display:flex;justify-content:space-between;background:url(/assets/background-95159880.png) #f7f8ff;background-size:cover;overflow:hidden}._content_1k3bk_9{padding-top:64px;width:100%;height:100%;box-sizing:border-box}._header_1k3bk_15{position:fixed;padding:16px 32px;width:100%;display:flex;align-items:center;box-sizing:border-box}._header-nav_1k3bk_23{flex:1}._header-nav_1k3bk_23 img{height:40px}._header-nav_1k3bk_23 a{display:inline-block;text-decoration:none;color:#000}._header-nav_1k3bk_23 a:not(:first-of-type){margin-left:40px}._header-nav_1k3bk_23 a._active_1k3bk_37{font-weight:700}._header-opt_1k3bk_40{flex-shrink:0;display:flex;align-items:center}._mainPage_6absh_1{display:flex;justify-content:flex-start;align-items:flex-start;padding:0 60px 60px;height:100%;overflow:hidden;position:relative;min-width:1280px;max-width:1920px;margin:0 auto}._mainPage_6absh_1 ._chatContent_6absh_13{position:relative;display:flex;justify-content:flex-start;flex-direction:column;flex-grow:1;margin-right:40px;height:calc(100% - 60px);overflow-y:hidden;padding:32px 0;box-sizing:border-box}._mainPage_6absh_1 ._chatContent_6absh_13 ._top_6absh_25{height:calc(100% - 110px);overflow-y:auto;margin-bottom:40px}._mainPage_6absh_1 ._chatContent_6absh_13 ._top_6absh_25::-webkit-scrollbar{width:6px}._mainPage_6absh_1 ._chatContent_6absh_13 ._top_6absh_25::-webkit-scrollbar-track{background-color:rgba(255,255,255,0);border-radius:100px}._mainPage_6absh_1 ._chatContent_6absh_13 ._top_6absh_25::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:100px}._mainPage_6absh_1 ._chatContent_6absh_13 ._question_6absh_41{display:flex;justify-content:flex-end;margin-bottom:40px}._mainPage_6absh_1 ._chatContent_6absh_13 ._question_6absh_41 span{padding:12px 20px;color:#121316;font-size:14px;line-height:24px;border-radius:8px;background:#FFF;max-width:93.75%}._mainPage_6absh_1 ._chatContent_6absh_13 ._end_6absh_55{position:absolute;right:0;background-color:#fff;display:flex;justify-content:center;align-items:center;border-left:1px solid #D7D8DD;padding-left:16px}._mainPage_6absh_1 ._chatContent_6absh_13 ._end_6absh_55 ._node_6absh_65{position:relative}._mainPage_6absh_1 ._chatContent_6absh_13 ._end_6absh_55 ._node_6absh_65:before{content:"";border:1px solid #D7D8DD;border-top:none;border-left:none;width:14px;height:0px;position:absolute;left:-16px;top:50%}._mainPage_6absh_1 ._chatContent_6absh_13 ._end_6absh_55 ._node_6absh_65 article{padding:8px 16px;border-radius:8px;border:1px solid transparent;color:#4082fe;text-align:center;font-size:14px;line-height:24px;box-sizing:border-box;background:rgba(232,233,249);color:#2126c0}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91{border-radius:8px;background:rgba(33,38,192,.1);padding:12px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._inner_6absh_96{width:100%;background-color:#fff;border-radius:4px;padding:8px;box-sizing:border-box;transition:all .5s ease;margin-bottom:18px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._inner_6absh_96 ._mapArea_6absh_105{width:100%;overflow-x:auto;overflow-y:hidden}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._inner_6absh_96 ._mapArea_6absh_105::-webkit-scrollbar{height:6px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._inner_6absh_96 ._mapArea_6absh_105::-webkit-scrollbar-track{background-color:rgba(255,255,255,0);border-radius:10px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._inner_6absh_96 ._mapArea_6absh_105::-webkit-scrollbar-thumb{background-color:#d7d8dd;border-radius:100px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121{color:#121316;font-size:14px;line-height:24px;padding:18px 42px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121 h3{font-size:24px;font-weight:600;line-height:36px;margin:0 0 16px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121 h4{font-size:20px;font-weight:600;line-height:30px;margin:0 0 8px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121 p{color:rgba(18,19,22,.8);font-size:16px;font-weight:400;line-height:28px;margin:0 0 16px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121 ul{margin-bottom:8px;padding-left:22px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121 li{color:rgba(18,19,22,.8);font-size:16px;font-weight:400;line-height:28px}._mainPage_6absh_1 ._chatContent_6absh_13 ._answer_6absh_91 ._response_6absh_121 li p{margin-bottom:4px}._mainPage_6absh_1 ._chatContent_6absh_13 ._sendArea_6absh_159{display:flex;width:100%;box-sizing:border-box;padding:10px 12px 10px 24px;justify-content:space-between;align-items:center;border-radius:8px;border:2px solid var(--fill-5, #464A53);background:#FFF;position:relative}._mainPage_6absh_1 ._chatContent_6absh_13 ._sendArea_6absh_159 .ant-input:focus{box-shadow:none!important;outline:0!important}._mainPage_6absh_1 ._chatContent_6absh_13 ._sendArea_6absh_159 input{height:36px;line-height:36px;flex-grow:1;border:0;outline:0}._mainPage_6absh_1 ._chatContent_6absh_13 ._sendArea_6absh_159 input:focus{border:0;outline:0}._mainPage_6absh_1 ._chatContent_6absh_13 ._sendArea_6absh_159 button{display:flex;justify-content:flex-start;align-items:center;border:0;background-color:#fff;cursor:pointer;padding:8px;width:65px;flex-shrink:0}._mainPage_6absh_1 ._chatContent_6absh_13 ._sendArea_6absh_159 button img{margin-right:4px}._mainPage_6absh_1 ._chatContent_6absh_13 ._notice_6absh_200{color:rgba(18,19,22,.35);padding-top:8px;text-align:center;font-weight:400}._mainPage_6absh_1 ._chatContent_6absh_13 ._notice_6absh_200 a{text-decoration:none;color:#444;display:inline-flex;align-items:center}._mainPage_6absh_1 ._chatContent_6absh_13 ._notice_6absh_200 a span{font-size:18px}._mainPage_6absh_1 ._progressContent_6absh_215{width:44.44%;flex-shrink:0;box-sizing:border-box;padding:24px;border-radius:8px;border:rgba(33,38,192,.1);background:rgba(255,255,255,.8);height:calc(100% - 60px);overflow-y:auto;position:relative}._mainPage_6absh_1 ._progressContent_6absh_215::-webkit-scrollbar{width:6px}._mainPage_6absh_1 ._progressContent_6absh_215::-webkit-scrollbar-track{background-color:rgba(255,255,255,0);border-radius:100px}._mainPage_6absh_1 ._progressContent_6absh_215::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0);border-radius:100px}._mainPage_6absh_1 ._progressContent_6absh_215 ._toggleIcon_6absh_238{position:absolute;right:24px;top:28px;cursor:pointer}._mainPage_6absh_1 ._progressContent_6absh_215 ._titleNode_6absh_244{color:#121316;font-size:24px;font-weight:600;line-height:36px;margin-bottom:24px}._mainPage_6absh_1 ._progressContent_6absh_215 ._conclusion_6absh_251{padding-top:8px;color:#121316;font-size:14px;line-height:24px}._mainPage_6absh_1 ._progressContent_6absh_215 ._conclusion_6absh_251 ul{padding-left:24px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._title_6absh_244{color:var(--100-text-5, #121316);font-size:20px;font-weight:600;line-height:30px;display:flex;justify-content:flex-start;align-items:center;position:relative}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._title_6absh_244 ._open_6absh_270{position:absolute;right:0;font-size:20px;font-weight:400}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._title_6absh_244 ._open_6absh_270 span{color:#121316;opacity:.6}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._title_6absh_244 i{width:12px;height:12px;border-radius:50%;background-color:#2126c0;margin-right:8px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260._thinking_6absh_287,._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260._select_6absh_288{margin-bottom:24px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260._select_6absh_288 ._searchList_6absh_291{margin-top:0!important;border-radius:8px;background:var(--fill-2, #F4F5F9);padding:8px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251{margin-left:5px;padding-top:8px;padding-left:15px;border-left:1px solid rgba(33,38,192,.2);height:auto}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251._collapsed_6absh_304{overflow:hidden;height:0;padding-top:0;transition:all 1s}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._subTitle_6absh_310{color:var(--100-text-5, #121316);font-size:14px;font-weight:600;line-height:24px;margin-bottom:4px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._subTitle_6absh_310 span{margin-right:4px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._query_6absh_320,._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251>._searchList_6absh_291{margin-top:24px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._query-Item_6absh_324{display:inline-flex;padding:4px 8px;margin-right:4px;margin-bottom:4px;border-radius:4px;border:1px solid #EBECF0;color:rgba(18,19,22,.8);font-size:14px;line-height:24px;height:32px;box-sizing:border-box;overflow:hidden}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._thought_6absh_338{color:rgba(18,19,22,.8);font-size:14px;line-height:24px;margin-bottom:16px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._scrollCon_6absh_344{padding-right:6px;max-height:300px;overflow-y:auto;position:relative}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._scrollCon_6absh_344::-webkit-scrollbar{width:6px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._scrollCon_6absh_344::-webkit-scrollbar-track{background-color:rgba(255,255,255,0);border-radius:100px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._scrollCon_6absh_344::-webkit-scrollbar-thumb{background-color:#d7d8dd;border-radius:100px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._inner_6absh_96{width:100%;border-radius:8px;background:var(--fill-2, #F4F5F9);transition:all .5s ease;box-sizing:border-box;padding:8px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._searchItem_6absh_369{border-radius:8px;background:var(---fill-0, #FFF);margin-bottom:6px;padding:4px 8px;transition:all .5s ease-in-out}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._searchItem_6absh_369._highLight_6absh_376{border:1px solid var(---Success-6, #00B365);background:linear-gradient(0deg,rgba(218,242,228,.4) 0%,rgba(218,242,228,.4) 100%),#FFF}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._searchItem_6absh_369 p{white-space:nowrap;max-width:95%;overflow:hidden;text-overflow:ellipsis;margin:0}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._searchItem_6absh_369 p._summ_6absh_387{color:rgba(18,19,22,.8);font-size:13px;line-height:20px;margin-bottom:2px}._mainPage_6absh_1 ._progressContent_6absh_215 ._steps_6absh_260 ._con_6absh_251 ._searchList_6absh_291 ._searchItem_6absh_369 p._url_6absh_393{color:var(--60-text-3, rgba(18, 19, 22, .6));font-size:12px;line-height:18px;padding-left:20px}pre{margin:0;padding-top:8px;color:#121316;font-size:14px;line-height:24px;font-family:PingFang SC,Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;white-space:wrap}ul{margin:0;padding:0}._draft_6absh_412{width:100%;white-space:wrap;position:relative}._draft_6absh_412 ._loading_6absh_417,._draft_6absh_412 ._loading_6absh_417>div{position:relative;box-sizing:border-box}._draft_6absh_412 ._loading_6absh_417{display:flex;justify-content:center;align-items:center;font-size:0;color:#fff;background-color:#f90;width:20px;height:20px;border-radius:50%;margin-right:3px;flex-shrink:0;position:absolute;top:0;left:0}._draft_6absh_412 ._loading_6absh_417>div{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor}._draft_6absh_412 ._loading_6absh_417>div:nth-child(1){animation-delay:-.2s}._draft_6absh_412 ._loading_6absh_417>div:nth-child(2){animation-delay:-.1s}._draft_6absh_412 ._loading_6absh_417>div:nth-child(3){animation-delay:0ms}._draft_6absh_412 ._loading_6absh_417>div{width:3px;height:3px;margin:2px 1px;border-radius:100%;animation:_ball-pulse_6absh_1 1s ease infinite}._mindmap_6absh_460{position:relative}._mindmap_6absh_460 article{padding:6px 16px;border-radius:8px;height:38px;border:1px solid transparent;background:#FFF;color:#121316;text-align:center;font-size:14px;line-height:24px;position:relative;box-sizing:border-box}._mindmap_6absh_460 article._loading_6absh_417{line-height:20px;border-radius:8px;overflow:hidden;border:1px solid transparent;padding:4px}._mindmap_6absh_460 article._loading_6absh_417 span{color:#2126c0;background-color:#fff;border-radius:4px;line-height:24px;padding:2px 12px}._mindmap_6absh_460 article._loading_6absh_417 ._looping_6absh_490{--border-width: 4px;--follow-panel-linear-border: linear-gradient(91deg, #5551FF .58%, #FF87DE 100.36%);position:absolute;top:0;left:0;width:calc(100% + var(--border-width) * 2 - 8px);height:100%;background:var(--follow-panel-linear-border);background-size:300% 300%;background-position:0 50%;animation:_moveGradient_6absh_1 4s alternate infinite}._mindmap_6absh_460 article._disabled_6absh_503{border-radius:8px;border:1px solid #D7D8DD;color:rgba(18,19,22,.35)}._mindmap_6absh_460 article._finished_6absh_508{border:1px solid #2126C0}._mindmap_6absh_460 article._finished_6absh_508 ._finishDot_6absh_511{position:absolute;top:6px;right:6px;width:6px;height:6px;background-color:#c9c0fe;border-radius:50%}._mindmap_6absh_460 article._init_6absh_520{border:1px solid transparent;cursor:auto}._mindmap_6absh_460 article span{display:block;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis;position:relative;z-index:20}._mindmap_6absh_460 article span._status_6absh_533{color:#4082fe}._mindmap_6absh_460>li>article{border-radius:8px;background:rgba(33,38,192,.1);color:#2126c0}._mindmap_6absh_460 li{list-style:none;display:flex;align-items:center;box-sizing:border-box;margin:16px;line-height:1;position:relative}._mindmap_6absh_460 li>ul._onlyone_6absh_550:before{opacity:0}._mindmap_6absh_460 li>ul._onlyone_6absh_550>li{margin-left:0}._mindmap_6absh_460 li>ul._onlyone_6absh_550>li:after{opacity:0}._mindmap_6absh_460 li>ul:before{content:"";border:1px solid #D7D8DD;border-top:none;border-left:none;width:14px;height:0px;position:absolute;left:0;top:50%}._mindmap_6absh_460 li:before{content:"";border:1px solid #D7D8DD;border-top:none;border-left:none;width:16px;height:0px;position:absolute;left:-17px}._mindmap_6absh_460 li:after{content:"";border:1px solid #D7D8DD;border-top:none;border-left:none;width:0px;height:calc(50% + 33px);position:absolute;left:-18px}._mindmap_6absh_460 li:first-of-type:after{top:50%}._mindmap_6absh_460 li:last-of-type:after{bottom:50%}._mindmap_6absh_460 li ul{padding:0 0 0 16px;position:relative}._mindmap_6absh_460>li:after,._mindmap_6absh_460>li:before{display:none}._mindmap_6absh_460 ._endLine_6absh_604{border-bottom:1px solid #D7D8DD;width:3000px;transition:width 1s ease-in-out}._showRight_6absh_609{position:fixed;top:80px;right:-10px;width:42px;cursor:pointer}._showRight_6absh_609 img{width:100%}@keyframes _ball-pulse_6absh_1{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}@keyframes _moveGradient_6absh_1{50%{background-position:100% 50%}}@keyframes _fadeIn_6absh_1{0%{width:0;opacity:0}to{width:auto;opacity:1}}@keyframes _unfold_6absh_1{0%{height:auto}to{height:0}}._loading99_6absh_654{margin:20px;position:relative;width:1px;height:1px}._loading99_6absh_654:before,._loading99_6absh_654:after{position:absolute;display:inline-block;width:15px;height:15px;content:"";border-radius:100%;background-color:#5551ff}._loading99_6absh_654:before{left:-15px;animation:_ball-pulse_6absh_1 infinite .75s -.4s cubic-bezier(.2,.68,.18,1.08)}._loading99_6absh_654:after{right:-15px;animation:_ball-pulse_6absh_1 infinite .75s cubic-bezier(.2,.68,.18,1.08)}@keyframes _ball-pulse_6absh_1{0%{transform:scale(1);opacity:1}50%{transform:scale(.1);opacity:.6}to{transform:scale(1);opacity:1}} diff --git a/dist/assets/index-legacy-f2aa4b0e.js b/dist/assets/index-legacy-f2aa4b0e.js deleted file mode 100644 index 36aa6f897426d3d1a2d3bec91777ab59e80631ab..0000000000000000000000000000000000000000 --- a/dist/assets/index-legacy-f2aa4b0e.js +++ /dev/null @@ -1,48 +0,0 @@ -!function(){var e=["children"];function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var e,n={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var a=t&&t.prototype instanceof E?t:E,i=Object.create(a.prototype),u=new O(r||[]);return o(i,"_invoke",{value:S(e,n,u)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",m="executing",g="completed",v={};function E(){}function D(){}function b(){}var y={};c(y,u,(function(){return this}));var C=Object.getPrototypeOf,_=C&&C(C(I([])));_&&_!==r&&a.call(_,u)&&(y=_);var T=b.prototype=E.prototype=Object.create(y);function F(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,o,i,u){var s=d(e[r],e,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==A(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,i,u)}),(function(e){n("throw",e,i,u)})):t.resolve(c).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,u)}))}u(s.arg)}var r;o(this,"_invoke",{value:function(e,a){function o(){return new t((function(t,r){n(e,a,t,r)}))}return r=r?r.then(o,o):o()}})}function S(t,n,r){var a=p;return function(o,i){if(a===m)throw Error("Generator is already running");if(a===g){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var s=x(u,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===p)throw a=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=m;var l=d(t,n,r);if("normal"===l.type){if(a=r.done?g:h,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(a=g,r.method="throw",r.arg=l.arg)}}}function x(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,x(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=d(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},n}function n(e,t,n,r,a,o,i){try{var u=e[o](i),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,a)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(a,o){var i=e.apply(t,r);function u(e){n(i,a,o,u,s,"next",e)}function s(e){n(i,a,o,u,s,"throw",e)}u(void 0)}))}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function T(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n>>1,o=e[r];if(!(0>>1;ra(s,n))la(c,s)?(e[r]=c,e[l]=n,r=l):(e[r]=s,e[u]=n,r=u);else{if(!(la(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===("undefined"==typeof performance?"undefined":A(performance))&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],l=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,E="undefined"!=typeof setImmediate?setImmediate:null;function D(e){for(var a=n(l);null!==a;){if(null===a.callback)r(l);else{if(!(a.startTime<=e))break;r(l),a.sortIndex=a.expirationTime,t(s,a)}a=n(l)}}function b(e){if(m=!1,D(e),!h)if(null!==n(s))h=!0,I(y);else{var t=n(l);null!==t&&R(b,t.startTime-e)}}function y(t,a){h=!1,m&&(m=!1,v(F),F=-1),p=!0;var o=d;try{for(D(a),f=n(s);null!==f&&(!(f.expirationTime>a)||t&&!x());){var i=f.callback;if("function"==typeof i){f.callback=null,d=f.priorityLevel;var u=i(f.expirationTime<=a);a=e.unstable_now(),"function"==typeof u?f.callback=u:f===n(s)&&r(s),D(a)}else r(s);f=n(s)}if(null!==f)var c=!0;else{var g=n(l);null!==g&&R(b,g.startTime-a),c=!1}return c}finally{f=null,d=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,_=!1,T=null,F=-1,k=5,S=-1;function x(){return!(e.unstable_now()-Se||125i?(r.sortIndex=o,t(l,r),null===n(s)&&r===n(l)&&(m?(v(F),F=-1):m=!0,R(b,o-i))):(r.sortIndex=u,t(s,r),h||p||(h=!0,I(y))),r},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(Ae),Ce.exports=Ae;var _e=Ce.exports,Te=oe,Fe=_e; -/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function ke(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Me(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){He[e]=new Me(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];He[t]=new Me(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){He[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){He[e]=new Me(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){He[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){He[e]=new Me(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){He[e]=new Me(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){He[e]=new Me(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){He[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Ue=/[\-:]([a-z])/g;function je(e){return e[1].toUpperCase()}function ze(e,t,n,r){var a=He.hasOwnProperty(t)?He[t]:null;(null!==a?0!==a.type:r||!(2--u||a[i]!==o[u]){var s="\n"+a[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=i&&0<=u);break}}}finally{st=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ut(e):""}function ct(e){switch(e.tag){case 5:return ut(e.type);case 16:return ut("Lazy");case 13:return ut("Suspense");case 19:return ut("SuspenseList");case 0:case 2:case 15:return e=lt(e.type,!1);case 11:return e=lt(e.type.render,!1);case 1:return e=lt(e.type,!0);default:return""}}function ft(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ye:return"Fragment";case We:return"Portal";case Xe:return"Profiler";case qe:return"StrictMode";case Ze:return"Suspense";case Je:return"SuspenseList"}if("object"===A(e))switch(e.$$typeof){case Ke:return(e.displayName||"Context")+".Consumer";case Qe:return(e._context.displayName||"Context")+".Provider";case $e:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case et:return null!==(t=e.displayName||null)?t:ft(e.type)||"Memo";case tt:t=e._payload,e=e._init;try{return ft(e(t))}catch(Gp){}}return null}function dt(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ft(t);case 8:return t===qe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function pt(e){switch(A(e)){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function mt(e){e._valueTracker||(e._valueTracker=function(e){var t=ht(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function vt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(zp){return e.body}}function Et(e,t){var n=t.checked;return it({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Dt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=pt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function bt(e,t){null!=(t=t.checked)&&ze(e,"checked",t,!1)}function yt(e,t){bt(e,t);var n=pt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?At(e,t.type,n):t.hasOwnProperty("defaultValue")&&At(e,t.type,pt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ct(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function At(e,t,n){"number"===t&&vt(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _t=Array.isArray;function Tt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Ot.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return It(e,t)}))}:It);function Bt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Pt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lt=["Webkit","ms","Moz","O"];function Mt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Pt.hasOwnProperty(e)&&Pt[e]?(""+t).trim():t+"px"}function Ht(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=Mt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Pt).forEach((function(e){Lt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pt[t]=Pt[e]}))}));var Ut=it({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function jt(e,t){if(t){if(Ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ke(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ke(60));if("object"!==A(t.dangerouslySetInnerHTML)||!("__html"in t.dangerouslySetInnerHTML))throw Error(ke(61))}if(null!=t.style&&"object"!==A(t.style))throw Error(ke(62))}}function zt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gt=null;function Vt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Wt=null,Yt=null,qt=null;function Xt(e){if(e=Go(e)){if("function"!=typeof Wt)throw Error(ke(280));var t=e.stateNode;t&&(t=Wo(t),Wt(e.stateNode,e.type,t))}}function Qt(e){Yt?qt?qt.push(e):qt=[e]:Yt=e}function Kt(){if(Yt){var e=Yt,t=qt;if(qt=Yt=null,Xt(e),t)for(e=0;e>>=0,0===e?32:31-(Nn(e)/On|0)|0},Nn=Math.log,On=Math.LN2;var In=64,Rn=4194304;function Bn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Pn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var u=i&~a;0!==u?r=Bn(u):0!==(o&=i)&&(r=Bn(o))}else 0!==(i=n&~a)?r=Bn(i):0!==o&&(r=Bn(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function jn(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wn(t)]=n}function zn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wn(n),a=1<=aa),ua=String.fromCharCode(32),sa=!1;function la(e,t){switch(e){case"keyup":return-1!==na.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ca(e){return"object"===A(e=e.detail)&&"data"in e?e.data:null}var fa=!1;var da={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!da[e.type]:"textarea"===t}function ha(e,t,n,r){Qt(r),0<(t=go(t,"onChange")).length&&(n=new Ir("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ma=null,ga=null;function va(e){uo(e,0)}function Ea(e){if(gt(Vo(e)))return e}function Da(e,t){if("change"===e)return t}var ba=!1;if(Oe){var ya;if(Oe){var Ca="oninput"in document;if(!Ca){var Aa=document.createElement("div");Aa.setAttribute("oninput","return;"),Ca="function"==typeof Aa.oninput}ya=Ca}else ya=!1;ba=ya&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Oa(r)}}function Ra(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ra(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Ba(){for(var e=window,t=vt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(Vp){n=!1}if(!n)break;t=vt((e=t.contentWindow).document)}return t}function Pa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function La(e){var t=Ba(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ra(n.ownerDocument.documentElement,n)){if(null!==r&&Pa(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=Ia(n,o);var i=Ia(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,Ha=null,Ua=null,ja=null,za=!1;function Ga(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;za||null==Ha||Ha!==vt(r)||("selectionStart"in(r=Ha)&&Pa(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ja&&Na(ja,r)||(ja=r,0<(r=go(Ua,"onSelect")).length&&(t=new Ir("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ha)))}function Va(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wa={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionend:Va("Transition","TransitionEnd")},Ya={},qa={};function Xa(e){if(Ya[e])return Ya[e];if(!Wa[e])return e;var t,n=Wa[e];for(t in n)if(n.hasOwnProperty(t)&&t in qa)return Ya[e]=n[t];return e}Oe&&(qa=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);var Qa=Xa("animationend"),Ka=Xa("animationiteration"),$a=Xa("animationstart"),Za=Xa("transitionend"),Ja=new Map,eo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function to(e,t){Ja.set(e,t),we(t,[e])}for(var no=0;noqo||(e.current=Yo[qo],Yo[qo]=null,qo--)}function Ko(e,t){qo++,Yo[qo]=e.current,e.current=t}var $o={},Zo=Xo($o),Jo=Xo(!1),ei=$o;function ti(e,t){var n=e.type.contextTypes;if(!n)return $o;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ni(e){return null!=(e=e.childContextTypes)}function ri(){Qo(Jo),Qo(Zo)}function ai(e,t,n){if(Zo.current!==$o)throw Error(ke(168));Ko(Zo,t),Ko(Jo,n)}function oi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(ke(108,dt(e)||"Unknown",a));return it({},n,r)}function ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$o,ei=Zo.current,Ko(Zo,e),Ko(Jo,Jo.current),!0}function ui(e,t,n){var r=e.stateNode;if(!r)throw Error(ke(169));n?(e=oi(e,t,ei),r.__reactInternalMemoizedMergedChildContext=e,Qo(Jo),Qo(Zo),Ko(Zo,e)):Qo(Jo),Ko(Jo,n)}var si=null,li=!1,ci=!1;function fi(e){null===si?si=[e]:si.push(e)}function di(){if(!ci&&null!==si){ci=!0;var e=0,t=Gn;try{var n=si;for(Gn=1;e>=i,a-=i,bi=1<<32-wn(t)+a|n<m?(g=h,h=null):g=h.sibling;var v=d(a,h,u[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(a,h),i=o(v,i,m),null===c?l=v:c.sibling=v,c=v,h=g}if(m===u.length)return n(a,h),Si&&Ci(a,m),l;if(null===h){for(;mm?(g=h,h=null):g=h.sibling;var E=d(a,h,v.value,s);if(null===E){null===h&&(h=g);break}e&&h&&null===E.alternate&&t(a,h),i=o(E,i,m),null===c?l=E:c.sibling=E,c=E,h=g}if(v.done)return n(a,h),Si&&Ci(a,m),l;if(null===h){for(;!v.done;m++,v=u.next())null!==(v=f(a,v.value,s))&&(i=o(v,i,m),null===c?l=v:c.sibling=v,c=v);return Si&&Ci(a,m),l}for(h=r(a,h);!v.done;m++,v=u.next())null!==(v=p(h,a,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=o(v,i,m),null===c?l=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(a,e)})),Si&&Ci(a,m),l}return function e(r,o,u,s){if("object"===A(u)&&null!==u&&u.type===Ye&&null===u.key&&(u=u.props.children),"object"===A(u)&&null!==u){switch(u.$$typeof){case Ve:e:{for(var l=u.key,c=o;null!==c;){if(c.key===l){if((l=u.type)===Ye){if(7===c.tag){n(r,c.sibling),(o=a(c,u.props.children)).return=r,r=o;break e}}else if(c.elementType===l||"object"===A(l)&&null!==l&&l.$$typeof===tt&&zi(l)===c.type){n(r,c.sibling),(o=a(c,u.props)).ref=Ui(r,c,u),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}u.type===Ye?((o=af(u.props.children,r.mode,s,u.key)).return=r,r=o):((s=rf(u.type,u.key,u.props,null,r.mode,s)).ref=Ui(r,o,u),s.return=r,r=s)}return i(r);case We:e:{for(c=u.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===u.containerInfo&&o.stateNode.implementation===u.implementation){n(r,o.sibling),(o=a(o,u.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=sf(u,r.mode,s)).return=r,r=o}return i(r);case tt:return e(r,o,(c=u._init)(u._payload),s)}if(_t(u))return h(r,o,u,s);if(at(u))return m(r,o,u,s);ji(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,u)).return=r,r=o):(n(r,o),(o=uf(u,r.mode,s)).return=r,r=o),i(r)):n(r,o)}}var Vi=Gi(!0),Wi=Gi(!1),Yi=Xo(null),qi=null,Xi=null,Qi=null;function Ki(){Qi=Xi=qi=null}function $i(e){var t=Yi.current;Qo(Yi),e._currentValue=t}function Zi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ji(e,t){qi=e,Qi=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(zs=!0),e.firstContext=null)}function eu(e){var t=e._currentValue;if(Qi!==e)if(e={context:e,memoizedValue:t,next:null},null===Xi){if(null===qi)throw Error(ke(308));Xi=e,qi.dependencies={lanes:0,firstContext:e}}else Xi=Xi.next=e;return t}var tu=null;function nu(e){null===tu?tu=[e]:tu.push(e)}function ru(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,nu(t)):(n.next=a.next,a.next=n),t.interleaved=n,au(e,r)}function au(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ou=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function su(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lu(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&$l){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,au(e,n)}return null===(a=r.interleaved)?(t.next=t,nu(r)):(t.next=a.next,a.next=t),r.interleaved=t,au(e,n)}function cu(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,zn(e,n)}}function fu(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function du(e,t,n,r){var a=e.updateQueue;ou=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,u=a.shared.pending;if(null!==u){a.shared.pending=null;var s=u,l=s.next;s.next=null,null===i?o=l:i.next=l,i=s;var c=e.alternate;null!==c&&((u=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===u?c.firstBaseUpdate=l:u.next=l,c.lastBaseUpdate=s))}if(null!==o){var f=a.baseState;for(i=0,c=l=s=null,u=o;;){var d=u.lane,p=u.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var h=e,m=u;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=it({},f,d);break e;case 2:ou=!0}}null!==u.callback&&0!==u.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[u]:d.push(u))}else p={eventTime:p,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(l=c=p,s=f):c=c.next=p,i|=d;if(null===(u=u.next)){if(null===(u=a.shared.pending))break;u=(d=u).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(s=f),a.baseState=s,a.firstBaseUpdate=l,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);oc|=i,e.lanes=i,e.memoizedState=f}}function pu(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tn?n:4,e(!0);var r=Su.transition;Su.transition={};try{e(!1),t()}finally{Gn=n,Su.transition=r}}function ms(){return zu().memoizedState}function gs(e,t,n){var r=_c(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e))Ds(t,n);else if(null!==(n=ru(e,t,n,r))){Tc(n,e,r,Ac()),bs(n,t,r)}}function vs(e,t,n){var r=_c(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Ds(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,u=o(i,n);if(a.hasEagerState=!0,a.eagerState=u,wa(u,i)){var s=t.interleaved;return null===s?(a.next=a,nu(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(Kp){}null!==(n=ru(e,t,a,r))&&(Tc(n,e,r,a=Ac()),bs(n,t,r))}}function Es(e){var t=e.alternate;return e===wu||null!==t&&t===wu}function Ds(e,t){Ru=Iu=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bs(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,zn(e,n)}}var ys={readContext:eu,useCallback:Lu,useContext:Lu,useEffect:Lu,useImperativeHandle:Lu,useInsertionEffect:Lu,useLayoutEffect:Lu,useMemo:Lu,useReducer:Lu,useRef:Lu,useState:Lu,useDebugValue:Lu,useDeferredValue:Lu,useTransition:Lu,useMutableSource:Lu,useSyncExternalStore:Lu,useId:Lu,unstable_isNewReconciler:!1},Cs={readContext:eu,useCallback:function(e,t){return ju().memoizedState=[e,void 0===t?null:t],e},useContext:eu,useEffect:as,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ns(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=ju();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ju();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=gs.bind(null,wu,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ju().memoizedState=e},useState:Ju,useDebugValue:cs,useDeferredValue:function(e){return ju().memoizedState=e},useTransition:function(){var e=Ju(!1),t=e[0];return e=hs.bind(null,e[1]),ju().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wu,a=ju();if(Si){if(void 0===n)throw Error(ke(407));n=n()}else{if(n=t(),null===Zl)throw Error(ke(349));30&xu||Xu(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,as(Ku.bind(null,r,o,e),[e]),r.flags|=2048,es(9,Qu.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ju(),t=Zl.identifierPrefix;if(Si){var n=yi;t=":"+t+"R"+(n=(bi&~(1<<32-wn(bi)-1)).toString(32)+n),0<(n=Bu++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Pu++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},As={readContext:eu,useCallback:fs,useContext:eu,useEffect:os,useImperativeHandle:ls,useInsertionEffect:is,useLayoutEffect:us,useMemo:ds,useReducer:Vu,useRef:ts,useState:function(){return Vu(Gu)},useDebugValue:cs,useDeferredValue:function(e){return ps(zu(),Nu.memoizedState,e)},useTransition:function(){return[Vu(Gu)[0],zu().memoizedState]},useMutableSource:Yu,useSyncExternalStore:qu,useId:ms,unstable_isNewReconciler:!1},_s={readContext:eu,useCallback:fs,useContext:eu,useEffect:os,useImperativeHandle:ls,useInsertionEffect:is,useLayoutEffect:us,useMemo:ds,useReducer:Wu,useRef:ts,useState:function(){return Wu(Gu)},useDebugValue:cs,useDeferredValue:function(e){var t=zu();return null===Nu?t.memoizedState=e:ps(t,Nu.memoizedState,e)},useTransition:function(){return[Wu(Gu)[0],zu().memoizedState]},useMutableSource:Yu,useSyncExternalStore:qu,useId:ms,unstable_isNewReconciler:!1};function Ts(e,t){if(e&&e.defaultProps){for(var n in t=it({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Fs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:it({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ks={isMounted:function(e){return!!(e=e._reactInternals)&&dn(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ac(),a=_c(e),o=su(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=lu(e,o,a))&&(Tc(t,e,a,r),cu(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ac(),a=_c(e),o=su(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=lu(e,o,a))&&(Tc(t,e,a,r),cu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ac(),r=_c(e),a=su(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=lu(e,a,r))&&(Tc(t,e,r,n),cu(t,e,r))}};function Ss(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!Na(n,r)||!Na(a,o))}function xs(e,t,n){var r=!1,a=$o,o=t.contextType;return"object"===A(o)&&null!==o?o=eu(o):(a=ni(t)?ei:Zo.current,o=(r=null!=(r=t.contextTypes))?ti(e,a):$o),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ks,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function ws(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ks.enqueueReplaceState(t,t.state,null)}function Ns(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},iu(e);var o=t.contextType;"object"===A(o)&&null!==o?a.context=eu(o):(o=ni(t)?ei:Zo.current,a.context=ti(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Fs(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ks.enqueueReplaceState(a,a.state,null),du(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Os(e,t){try{var n="",r=t;do{n+=ct(r),r=r.return}while(r);var a=n}catch(Yp){a="\nError generating stack: "+Yp.message+"\n"+Yp.stack}return{value:e,source:t,stack:a,digest:null}}function Is(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Rs(e,t){try{console.error(t.value)}catch(Gp){setTimeout((function(){throw Gp}))}}var Bs="function"==typeof WeakMap?WeakMap:Map;function Ps(e,t,n){(n=su(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pc||(pc=!0,hc=r),Rs(0,t)},n}function Ls(e,t,n){(n=su(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){Rs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){Rs(0,t),"function"!=typeof r&&(null===mc?mc=new Set([this]):mc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Bs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Xc.bind(null,e,t,n),t.then(e,e))}function Hs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Us(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=su(-1,1)).tag=2,lu(n,t,1))),n.lanes|=1),e)}var js=Ge.ReactCurrentOwner,zs=!1;function Gs(e,t,n,r){t.child=null===e?Wi(t,null,n,r):Vi(t,e.child,n,r)}function Vs(e,t,n,r,a){n=n.render;var o=t.ref;return Ji(t,a),r=Hu(e,t,n,r,o,a),n=Uu(),null===e||zs?(Si&&n&&_i(t),t.flags|=1,Gs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,pl(e,t,a))}function Ws(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||tf(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=rf(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ys(e,t,o,r,a))}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:Na)(i,r)&&e.ref===t.ref)return pl(e,t,a)}return t.flags|=1,(e=nf(o,r)).ref=t.ref,e.return=t,t.child=e}function Ys(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(Na(o,r)&&e.ref===t.ref){if(zs=!1,t.pendingProps=r=o,!(e.lanes&a))return t.lanes=e.lanes,pl(e,t,a);131072&e.flags&&(zs=!0)}}return Qs(e,t,n,r,a)}function qs(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ko(nc,tc),tc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ko(nc,tc),tc|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ko(nc,tc),tc|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ko(nc,tc),tc|=r;return Gs(e,t,a,n),t.child}function Xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qs(e,t,n,r,a){var o=ni(n)?ei:Zo.current;return o=ti(t,o),Ji(t,a),n=Hu(e,t,n,r,o,a),r=Uu(),null===e||zs?(Si&&r&&_i(t),t.flags|=1,Gs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,pl(e,t,a))}function Ks(e,t,n,r,a){if(ni(n)){var o=!0;ii(t)}else o=!1;if(Ji(t,a),null===t.stateNode)dl(e,t),xs(t,n,r),Ns(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,l=n.contextType;"object"===A(l)&&null!==l?l=eu(l):l=ti(t,l=ni(n)?ei:Zo.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||s!==l)&&ws(t,i,r,l),ou=!1;var d=t.memoizedState;i.state=d,du(t,r,i,a),s=t.memoizedState,u!==r||d!==s||Jo.current||ou?("function"==typeof c&&(Fs(t,n,c,r),s=t.memoizedState),(u=ou||Ss(t,n,u,r,d,s,l))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=l,r=u):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,uu(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Ts(t.type,u),i.props=l,f=t.pendingProps,d=i.context,"object"===A(s=n.contextType)&&null!==s?s=eu(s):s=ti(t,s=ni(n)?ei:Zo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==f||d!==s)&&ws(t,i,r,s),ou=!1,d=t.memoizedState,i.state=d,du(t,r,i,a);var h=t.memoizedState;u!==f||d!==h||Jo.current||ou?("function"==typeof p&&(Fs(t,n,p,r),h=t.memoizedState),(l=ou||Ss(t,n,l,r,d,h,s)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=l):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return $s(e,t,n,r,o,a)}function $s(e,t,n,r,a,o){Xs(e,t);var i=!!(128&t.flags);if(!r&&!i)return a&&ui(t,n,!1),pl(e,t,o);r=t.stateNode,js.current=t;var u=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Vi(t,e.child,null,o),t.child=Vi(t,null,u,o)):Gs(e,t,u,o),t.memoizedState=r.state,a&&ui(t,n,!0),t.child}function Zs(e){var t=e.stateNode;t.pendingContext?ai(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ai(0,t.context,!1),Du(e,t.containerInfo)}function Js(e,t,n,r,a){return Li(),Mi(a),t.flags|=256,Gs(e,t,n,r),t.child}var el,tl,nl,rl,al={dehydrated:null,treeContext:null,retryLane:0};function ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function il(e,t,n){var r,a=t.pendingProps,o=Au.current,i=!1,u=!!(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ko(Au,1&o),null===e)return Ii(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=a.children,e=a.fallback,i?(a=t.mode,i=t.child,u={mode:"hidden",children:u},1&a||null===i?i=of(u,a,0,null):(i.childLanes=0,i.pendingProps=u),e=af(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=ol(n),t.memoizedState=al,e):ul(t,u));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,i){if(n)return 256&t.flags?(t.flags&=-257,sl(e,t,i,r=Is(Error(ke(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=of({mode:"visible",children:r.children},a,0,null),(o=af(o,a,i,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&Vi(t,e.child,null,i),t.child.memoizedState=ol(i),t.memoizedState=al,o);if(!(1&t.mode))return sl(e,t,i,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var u=r.dgst;return r=u,sl(e,t,i,r=Is(o=Error(ke(419)),r,void 0))}if(u=!!(i&e.childLanes),zs||u){if(null!==(r=Zl)){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=a&(r.suspendedLanes|i)?0:a)&&a!==o.retryLane&&(o.retryLane=a,au(e,a),Tc(r,e,a,-1))}return Mc(),sl(e,t,i,r=Is(Error(ke(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Kc.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ki=Io(a.nextSibling),Fi=t,Si=!0,xi=null,null!==e&&(vi[Ei++]=bi,vi[Ei++]=yi,vi[Ei++]=Di,bi=e.id,yi=e.overflow,Di=t),t=ul(t,r.children),t.flags|=4096,t)}(e,t,u,a,r,o,n);if(i){i=a.fallback,u=t.mode,r=(o=e.child).sibling;var s={mode:"hidden",children:a.children};return 1&u||t.child===o?(a=nf(o,s)).subtreeFlags=14680064&o.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=s,t.deletions=null),null!==r?i=nf(r,i):(i=af(i,u,n,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,u=null===(u=e.child.memoizedState)?ol(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~n,t.memoizedState=al,a}return e=(i=e.child).sibling,a=nf(i,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function ul(e,t){return(t=of({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function sl(e,t,n,r){return null!==r&&Mi(r),Vi(t,e.child,null,n),(e=ul(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ll(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Zi(e.return,t,n)}function cl(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function fl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Gs(e,t,r.children,n),2&(r=Au.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ll(e,n,t);else if(19===e.tag)ll(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ko(Au,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===_u(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),cl(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===_u(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}cl(t,!0,n,null,o);break;case"together":cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function dl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),oc|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ke(153));if(null!==t.child){for(n=nf(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=nf(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function hl(e,t){if(!Si)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ml(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gl(e,t,n){var r=t.pendingProps;switch(Ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ml(t),null;case 1:case 17:return ni(t.type)&&ri(),ml(t),null;case 3:return r=t.stateNode,bu(),Qo(Jo),Qo(Zo),Fu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Bi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==xi&&(xc(xi),xi=null))),tl(e,t),ml(t),null;case 5:Cu(t);var a=Eu(vu.current);if(n=t.type,null!==e&&null!=t.stateNode)nl(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(ke(166));return ml(t),null}if(e=Eu(mu.current),Bi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Po]=t,r[Lo]=o,e=!!(1&t.mode),n){case"dialog":so("cancel",r),so("close",r);break;case"iframe":case"object":case"embed":so("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Po]=t,e[Lo]=r,el(e,t,!1,!1),t.stateNode=e;e:{switch(i=zt(n,r),n){case"dialog":so("cancel",e),so("close",e),a=r;break;case"iframe":case"object":case"embed":so("load",e),a=r;break;case"video":case"audio":for(a=0;afc&&(t.flags|=128,r=!0,hl(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=_u(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),hl(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!Si)return ml(t),null}else 2*yn()-o.renderingStartTime>fc&&1073741824!==n&&(t.flags|=128,r=!0,hl(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=o.last)?n.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=yn(),t.sibling=null,n=Au.current,Ko(Au,r?1&n|2:1&n),t):(ml(t),null);case 22:case 23:return Rc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&tc)&&(ml(t),6&t.subtreeFlags&&(t.flags|=8192)):ml(t),null;case 24:case 25:return null}throw Error(ke(156,t.tag))}function vl(e,t){switch(Ti(t),t.tag){case 1:return ni(t.type)&&ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bu(),Qo(Jo),Qo(Zo),Fu(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Cu(t),null;case 13:if(Qo(Au),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ke(340));Li()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Qo(Au),null;case 4:return bu(),null;case 10:return $i(t.type._context),null;case 22:case 23:return Rc(),null;default:return null}}el=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},tl=function(){},nl=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Eu(mu.current);var o,i=null;switch(n){case"input":a=Et(e,a),r=Et(e,r),i=[];break;case"select":a=it({},a,{value:void 0}),r=it({},r,{value:void 0}),i=[];break;case"textarea":a=Ft(e,a),r=Ft(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Ao)}for(l in jt(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l){var u=a[l];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(xe.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in r){var s=r[l];if(u=null!=a?a[l]:void 0,r.hasOwnProperty(l)&&s!==u&&(null!=s||null!=u))if("style"===l)if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(l,n)),n=s;else"dangerouslySetInnerHTML"===l?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(l,s)):"children"===l?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(l,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(xe.hasOwnProperty(l)?(null!=s&&"onScroll"===l&&so("scroll",e),i||u===s||(i=[])):(i=i||[]).push(l,s))}n&&(i=i||[]).push("style",n);var l=i;(t.updateQueue=l)&&(t.flags|=4)}},rl=function(e,t,n,r){n!==r&&(t.flags|=4)};var El=!1,Dl=!1,bl="function"==typeof WeakSet?WeakSet:Set,yl=null;function Cl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(Vp){qc(e,t,Vp)}else n.current=null}function Al(e,t,n){try{n()}catch(Vp){qc(e,t,Vp)}}var _l=!1;function Tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&Al(t,n,o)}a=a.next}while(a!==r)}}function Fl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Sl(e){var t=e.alternate;null!==t&&(e.alternate=null,Sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Po],delete t[Lo],delete t[Ho],delete t[Uo],delete t[jo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xl(e){return 5===e.tag||3===e.tag||4===e.tag}function wl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||xl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Nl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ao));else if(4!==r&&null!==(e=e.child))for(Nl(e,t,n),e=e.sibling;null!==e;)Nl(e,t,n),e=e.sibling}function Ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ol(e,t,n),e=e.sibling;null!==e;)Ol(e,t,n),e=e.sibling}var Il=null,Rl=!1;function Bl(e,t,n){for(n=n.child;null!==n;)Pl(e,t,n),n=n.sibling}function Pl(e,t,n){if(xn&&"function"==typeof xn.onCommitFiberUnmount)try{xn.onCommitFiberUnmount(Sn,n)}catch(qO){}switch(n.tag){case 5:Dl||Cl(n,t);case 6:var r=Il,a=Rl;Il=null,Bl(e,t,n),Rl=a,null!==(Il=r)&&(Rl?(e=Il,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Il.removeChild(n.stateNode));break;case 18:null!==Il&&(Rl?(e=Il,n=n.stateNode,8===e.nodeType?Oo(e.parentNode,n):1===e.nodeType&&Oo(e,n),dr(e)):Oo(Il,n.stateNode));break;case 4:r=Il,a=Rl,Il=n.stateNode.containerInfo,Rl=!0,Bl(e,t,n),Il=r,Rl=a;break;case 0:case 11:case 14:case 15:if(!Dl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(2&o||4&o)&&Al(n,t,i),a=a.next}while(a!==r)}Bl(e,t,n);break;case 1:if(!Dl&&(Cl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(qO){qc(n,t,qO)}Bl(e,t,n);break;case 21:Bl(e,t,n);break;case 22:1&n.mode?(Dl=(r=Dl)||null!==n.memoizedState,Bl(e,t,n),Dl=r):Bl(e,t,n);break;default:Bl(e,t,n)}}function Ll(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new bl),t.forEach((function(t){var r=$c.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;ra&&(a=i),r&=~o}if(r=a,10<(r=(120>(r=yn()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ql(r/1960))-r)){e.timeoutHandle=ko(Vc.bind(null,e,lc,dc),r);break}Vc(e,lc,dc);break;default:throw Error(ke(329))}}}return Fc(e,yn()),e.callbackNode===n?kc.bind(null,e):null}function Sc(e,t){var n=sc;return e.current.memoizedState.isDehydrated&&(Bc(e,t).flags|=256),2!==(e=Hc(e,t))&&(t=lc,lc=n,null!==t&&xc(t)),e}function xc(e){null===lc?lc=e:lc.push.apply(lc,e)}function wc(e,t){for(t&=~uc,t&=~ic,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===vc)var r=!1;else{if(e=vc,vc=null,Ec=0,6&$l)throw Error(ke(331));var a=$l;for($l|=4,yl=e.current;null!==yl;){var o=yl,i=o.child;if(16&yl.flags){var u=o.deletions;if(null!==u){for(var s=0;syn()-cc?Bc(e,0):uc|=n),Fc(e,t)}function Qc(e,t){0===t&&(1&e.mode?(t=Rn,!(130023424&(Rn<<=1))&&(Rn=4194304)):t=1);var n=Ac();null!==(e=au(e,t))&&(jn(e,t,n),Fc(e,n))}function Kc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Qc(e,n)}function $c(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ke(314))}null!==r&&r.delete(t),Qc(e,n)}function Zc(e,t){return vn(e,t)}function Jc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ef(e,t,n,r){return new Jc(e,t,n,r)}function tf(e){return!(!(e=e.prototype)||!e.isReactComponent)}function nf(e,t){var n=e.alternate;return null===n?((n=ef(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rf(e,t,n,r,a,o){var i=2;if(r=e,"function"==typeof e)tf(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ye:return af(n.children,a,o,t);case qe:i=8,a|=8;break;case Xe:return(e=ef(12,n,t,2|a)).elementType=Xe,e.lanes=o,e;case Ze:return(e=ef(13,n,t,a)).elementType=Ze,e.lanes=o,e;case Je:return(e=ef(19,n,t,a)).elementType=Je,e.lanes=o,e;case nt:return of(n,a,o,t);default:if("object"===A(e)&&null!==e)switch(e.$$typeof){case Qe:i=10;break e;case Ke:i=9;break e;case $e:i=11;break e;case et:i=14;break e;case tt:i=16,r=null;break e}throw Error(ke(130,null==e?e:A(e),""))}return(t=ef(i,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function af(e,t,n,r){return(e=ef(7,e,r,t)).lanes=n,e}function of(e,t,n,r){return(e=ef(22,e,r,t)).elementType=nt,e.lanes=n,e.stateNode={isHidden:!1},e}function uf(e,t,n){return(e=ef(6,e,null,t)).lanes=n,e}function sf(e,t,n){return(t=ef(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lf(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Un(0),this.expirationTimes=Un(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Un(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function cf(e,t,n,r,a,o,i,u,s){return e=new lf(e,t,n,u,s),1===t?(t=1,!0===o&&(t|=8)):t=0,o=ef(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(o),e}function ff(e){if(!e)return $o;e:{if(dn(e=e._reactInternals)!==e||1!==e.tag)throw Error(ke(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ke(171))}if(1===e.tag){var n=e.type;if(ni(n))return oi(e,n,t)}return t}function df(e,t,n,r,a,o,i,u,s){return(e=cf(n,r,!0,e,0,o,0,u,s)).context=ff(null),n=e.current,(o=su(r=Ac(),a=_c(n))).callback=null!=t?t:null,lu(n,o,a),e.current.lanes=a,jn(e,a,r),Fc(e,r),e}function pf(e,t,n,r){var a=t.current,o=Ac(),i=_c(a);return n=ff(n),null===t.context?t.context=n:t.pendingContext=n,(t=su(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=lu(a,t,i))&&(Tc(e,a,i,o),cu(e,a,i)),i}function hf(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function mf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function qf(e,t,n){void 0===n&&(n="/");var r=ud(("string"==typeof t?Yf(t):t).pathname||"/",n);if(null==r)return null;var a=Xf(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(a);for(var o=null,i=0;null==o&&i0&&(jf(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),Xf(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:rd(u,e.index),routesMeta:s})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=_(Qf(e.path));try{for(o.s();!(r=o.n()).done;){var i=r.value;a(e,t,i)}}catch(u){o.e(u)}finally{o.f()}}else a(e,t)})),t}function Qf(e){var t=e.split("/");if(0===t.length)return[];var n=D(t),r=n[0],a=n.slice(1),o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];var u=Qf(a.join("/")),s=[];return s.push.apply(s,E(u.map((function(e){return""===e?i:[i,e].join("/")})))),o&&s.push.apply(s,E(u)),s.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Mf||(Mf={}));var Kf=/^:[\w-]+$/,$f=3,Zf=2,Jf=1,ed=10,td=-2,nd=function(e){return"*"===e};function rd(e,t){var n=e.split("/"),r=n.length;return n.some(nd)&&(r+=td),t&&(r+=Zf),n.filter((function(e){return!nd(e)})).reduce((function(e,t){return e+(Kf.test(t)?$f:""===t?Jf:ed)}),r)}function ad(e,t){for(var n=e.routesMeta,r={},a="/",o=[],i=0;i and the router will parse it for you.'}function ld(e,t){var n=function(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}(e);return t?n.map((function(t,n){return n===e.length-1?t.pathname:t.pathnameBase})):n.map((function(e){return e.pathnameBase}))}function cd(e,t,n,r){var a;void 0===r&&(r=!1),"string"==typeof e?a=Yf(e):(jf(!(a=Lf({},e)).pathname||!a.pathname.includes("?"),sd("?","pathname","search",a)),jf(!a.pathname||!a.pathname.includes("#"),sd("#","pathname","hash",a)),jf(!a.search||!a.search.includes("#"),sd("#","search","hash",a)));var o,i=""===e||""===a.pathname,u=i?"/":a.pathname;if(null==u)o=n;else{var s=t.length-1;if(!r&&u.startsWith("..")){for(var l=u.split("/");".."===l[0];)l.shift(),s-=1;a.pathname=l.join("/")}o=s>=0?t[s]:"/"}var c=function(e,t){void 0===t&&(t="/");var n="string"==typeof e?Yf(e):e,r=n.pathname,a=n.search,o=void 0===a?"":a,i=n.hash,u=void 0===i?"":i,s=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:s,search:pd(o),hash:hd(u)}}(a,o),f=u&&"/"!==u&&u.endsWith("/"),d=(i||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}var fd=function(e){return e.join("/").replace(/\/\/+/g,"/")},dd=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},pd=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},hd=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};var md=["post","put","patch","delete"];new Set(md);var gd=["get"].concat(md); -/** - * React Router v6.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */ -function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||jf(!1),i=i.slice(0,Math.min(i.length,s+1))}var l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(var f=0;f=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight((function(e,r,a){var o,s,f=!1,d=null,p=null;n&&(o=u&&r.route.id?u[r.route.id]:void 0,d=r.route.errorElement||wd,l&&(c<0&&0===a?(s="route-fallback",!1||Pd[s]||(Pd[s]=!0),f=!0,p=null):c===a&&(f=!0,p=r.route.hydrateFallbackElement||null)));var h=t.concat(i.slice(0,a+1)),m=function(){var t;return t=o?d:f?p:r.route.Component?oe.createElement(r.route.Component,null):r.route.element?r.route.element:e,oe.createElement(Od,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?oe.createElement(Nd,{location:n.location,revalidation:n.revalidation,component:d,error:o,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}(g&&g.map((function(e){return Object.assign({},e,{params:Object.assign({},u,e.params),pathname:fd([s,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:fd([s,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),o,n,r);if(t&&v)return oe.createElement(yd.Provider,{value:{location:vd({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Of.Pop}},v);return v}(e,t)}function xd(){var e=function(){var e,t=oe.useContext(Ad),n=function(e){var t=oe.useContext(Dd);return t||jf(!1),t}(Rd.UseRouteError),r=Bd(Rd.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return oe.createElement(oe.Fragment,null,oe.createElement("h2",null,"Unexpected Application Error!"),oe.createElement("h3",{style:{fontStyle:"italic"}},t),n?oe.createElement("pre",{style:r},n):null,null)}var wd=oe.createElement(xd,null),Nd=function(e){function t(e){var n;return s(this,t),(n=d(this,t,[e])).state={location:e.location,revalidation:e.revalidation,error:e.error},n}return m(t,e),c(t,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return void 0!==this.state.error?oe.createElement(Cd.Provider,{value:this.props.routeContext},oe.createElement(Ad.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}])}(oe.Component);function Od(e){var t=e.routeContext,n=e.match,r=e.children,a=oe.useContext(Ed);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),oe.createElement(Cd.Provider,{value:t},r)}var Id=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Id||{}),Rd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Rd||{});function Bd(e){var t=function(e){var t=oe.useContext(Cd);return t||jf(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||jf(!1),n.route.id}var Pd={};function Ld(e){var t=e.to,n=e.replace,r=e.state,a=e.relative;_d()||jf(!1);var o=oe.useContext(bd),i=o.future,u=(o.static,oe.useContext(Cd).matches),s=Td().pathname,l=kd(),c=cd(t,ld(u,i.v7_relativeSplatPath),s,"path"===a),f=JSON.stringify(c);return oe.useEffect((function(){return l(JSON.parse(f),{replace:n,state:r,relative:a})}),[l,f,a,n,r]),null}function Md(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,a=void 0===r?null:r,o=e.location,i=e.navigationType,u=void 0===i?Of.Pop:i,s=e.navigator,l=e.static,c=void 0!==l&&l,f=e.future;_d()&&jf(!1);var d=n.replace(/^\/*/,"/"),p=oe.useMemo((function(){return{basename:d,navigator:s,static:c,future:vd({v7_relativeSplatPath:!1},f)}}),[d,f,s,c]);"string"==typeof o&&(o=Yf(o));var h=o,m=h.pathname,g=void 0===m?"/":m,v=h.search,E=void 0===v?"":v,D=h.hash,b=void 0===D?"":D,y=h.state,C=void 0===y?null:y,A=h.key,_=void 0===A?"default":A,T=oe.useMemo((function(){var e=ud(g,d);return null==e?null:{location:{pathname:e,search:E,hash:b,state:C,key:_},navigationType:u}}),[d,g,E,b,C,_,u]);return null==T?null:oe.createElement(bd.Provider,{value:p},oe.createElement(yd.Provider,{children:a,value:T}))}new Promise((function(){}));try{window.__reactRouterVersion="6"}catch(Wp){}var Hd,Ud,jd=ue.startTransition;function zd(e){var t=e.basename,n=e.children,r=e.future,a=e.window,o=oe.useRef();null==o.current&&(o.current=Uf({window:a,v5Compat:!0}));var i=o.current,u=v(oe.useState({action:i.action,location:i.location}),2),s=u[0],l=u[1],c=(r||{}).v7_startTransition,f=oe.useCallback((function(e){c&&jd?jd((function(){return l(e)})):l(e)}),[l,c]);return oe.useLayoutEffect((function(){return i.listen(f)}),[i,f]),oe.createElement(Md,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(Hd||(Hd={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ud||(Ud={}));var Gd="_mainPage_6absh_1",Vd="_chatContent_6absh_13",Wd="_top_6absh_25",Yd="_question_6absh_41",qd="_end_6absh_55",Xd="_node_6absh_65",Qd="_answer_6absh_91",Kd="_inner_6absh_96",$d="_mapArea_6absh_105",Zd="_response_6absh_121",Jd="_sendArea_6absh_159",ep="_notice_6absh_200",tp="_progressContent_6absh_215",np="_toggleIcon_6absh_238",rp="_titleNode_6absh_244",ap="_conclusion_6absh_251",op="_steps_6absh_260",ip="_title_6absh_244",up="_open_6absh_270",sp="_thinking_6absh_287",lp="_select_6absh_288",cp="_searchList_6absh_291",fp="_con_6absh_251",dp="_collapsed_6absh_304",pp="_subTitle_6absh_310",hp="_query_6absh_320",mp="_query-Item_6absh_324",gp="_thought_6absh_338",vp="_scrollCon_6absh_344",Ep="_searchItem_6absh_369",Dp="_highLight_6absh_376",bp="_summ_6absh_387",yp="_url_6absh_393",Cp="_draft_6absh_412",Ap="_loading_6absh_417",_p="_mindmap_6absh_460",Tp="_looping_6absh_490",Fp="_disabled_6absh_503",kp="_finished_6absh_508",Sp="_finishDot_6absh_511",xp="_init_6absh_520",wp="_onlyone_6absh_550",Np="_endLine_6absh_604",Op="_showRight_6absh_609",Ip="_loading99_6absh_654",Rp="_fadeIn_6absh_1",Bp={exports:{}}; -/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames - */ -!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t0&&(r.children&&r.children.length>0?ve("ul",{className:1===r.children.length?wp:"",children:r.children.map((function(t){return ve(e,{item:t,isEnd:a},t.name)}))}):null),a&&0===(null===(n=r.children)||void 0===n?void 0:n.length)&&ve("div",{className:Pp(Np,"endline")})]})};function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return ie.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ah(e)):rh.isFragment(e)&&e.props?n=n.concat(ah(e.props.children,t)):n.push(e))})),n}var oh={};function ih(e,t){}function uh(e,t){}function sh(e,t,n){t||oh[n]||(e(!1,n),oh[n]=!0)}function lh(e,t){sh(ih,e,t)}function ch(e){return ch="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ch(e)}function fh(e){var t=function(e,t){if("object"!=ch(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ch(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ch(t)?t:t+""}function dh(e,t,n){return(t=fh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t0},e.prototype.connect_=function(){_h&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Sh?(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(){_h&&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;kh.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}(),wh=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),zh="undefined"!=typeof WeakMap?new WeakMap:new Ah,Gh=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xh.getInstance(),r=new jh(t,n,this);zh.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Gh.prototype[e]=function(){var t;return(t=zh.get(this))[e].apply(t,arguments)}}));var Vh=void 0!==Th.ResizeObserver?Th.ResizeObserver:Gh,Wh=new Map;var Yh=new Vh((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Wh.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function qh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xh(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:1),t};function Em(e){if(Array.isArray(e))return e}function Dm(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bm(e,t){return Em(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,u=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw a}}return u}}(e,t)||cm(e,t)||Dm()}function ym(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Cm(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}vm.cancel=function(e){var t=mm.get(e);return gm(e),pm(t)};var Am="data-rc-order",_m="data-rc-priority",Tm="rc-util-key",Fm=new Map;function km(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Tm}function Sm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function xm(e){return Array.from((Fm.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function wm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Cm())return null;var n=t.csp,r=t.prepend,a=t.priority,o=void 0===a?0:a,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===i,s=document.createElement("style");s.setAttribute(Am,i),u&&o&&s.setAttribute(_m,"".concat(o)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=Sm(t),c=l.firstChild;if(r){if(u){var f=(t.styles||xm(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Am)))return!1;var t=Number(e.getAttribute(_m)||0);return o>=t}));if(f.length)return l.insertBefore(s,f[f.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function Nm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Sm(t);return(t.styles||xm(n)).find((function(n){return n.getAttribute(km(t))===e}))}function Om(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Nm(e,t);n&&Sm(t).removeChild(n)}function Im(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Sm(n),a=xm(r),o=hh(hh({},n),{},{styles:a});!function(e,t){var n=Fm.get(e);if(!n||!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}(document,n)){var r=wm("",t),a=r.parentNode;Fm.set(e,a),e.removeChild(r)}}(r,o);var i=Nm(t,o);if(i){var u,s,l;if(null!==(u=o.csp)&&void 0!==u&&u.nonce&&i.nonce!==(null===(s=o.csp)||void 0===s?void 0:s.nonce))i.nonce=null===(l=o.csp)||void 0===l?void 0:l.nonce;return i.innerHTML!==e&&(i.innerHTML=e),i}var c=wm(e,o);return c.setAttribute(km(o),t),c}function Rm(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Bm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.has(t);if(lh(!i,"Warning: There may be circular references"),i)return!1;if(t===a)return!0;if(n&&o>1)return!1;r.add(t);var u=o+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var s=0;s1&&void 0!==arguments[1]&&arguments[1],a={map:this.cache};return e.forEach((function(e){var t;a?a=null===(t=a)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):a=void 0})),null!==(t=a)&&void 0!==t&&t.value&&r&&(a.value[1]=this.cacheCallTimes++),null===(n=a)||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 a=this.keys.reduce((function(e,t){var n=bm(e,2)[1];return r.internalGet(t)[1]1&&void 0!==arguments[1]&&arguments[1],n=rg.get(e)||"";return n||(Object.keys(e).forEach((function(r){var a=e[r];n+=r,a instanceof Zm?n+=a.id:a&&"object"===ch(a)?n+=ag(a,t):n+=a})),t&&(n=ym(n)),rg.set(e,n)),n}function og(e,t){return ym("".concat(t,"_").concat(ag(e,!0)))}var ig=Cm();function ug(e){return"number"==typeof e?"".concat(e,"px"):e}function sg(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=hh(hh({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},dh(dh({},Hm,t),Um,n)),a=Object.keys(r).map((function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var lg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},cg=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=bm(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},fg=function(e,t,n){var r={},a={};return Object.entries(e).forEach((function(e){var t,o,i=bm(e,2),u=i[0],s=i[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[u])a[u]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(o=n.ignore)&&void 0!==o&&o[u])){var l,c=lg(u,null==n?void 0:n.prefix);r[c]="number"!=typeof s||null!=n&&null!==(l=n.unitless)&&void 0!==l&&l[u]?String(s):"".concat(s,"px"),a[u]="var(".concat(c,")")}})),[a,cg(r,t,{scope:null==n?void 0:n.scope})]},dg=Cm()?oe.useLayoutEffect:oe.useEffect,pg=function(e,t){var n=oe.useRef(!0);dg((function(){return e(n.current)}),t),dg((function(){return n.current=!1,function(){n.current=!0}}),[])},hg=function(e,t){pg((function(t){if(!t)return e()}),t)},mg=hh({},ue).useInsertionEffect,gg=mg?function(e,t,n){return mg((function(){return e(),t()}),n)}:function(e,t,n){oe.useMemo(e,n),pg((function(){return t(!0)}),n)},vg=void 0!==hh({},ue).useInsertionEffect?function(e){var t=[],n=!1;return oe.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 Eg(e,t,n,r,a){var o=oe.useContext(Gm).cache,i=Lm([e].concat(fm(t))),u=vg([i]),s=function(e){o.opUpdate(i,(function(t){var r=bm(t||[void 0,void 0],2),a=r[0],o=[void 0===a?0:a,r[1]||n()];return e?e(o):o}))};oe.useMemo((function(){s()}),[i]);var l=o.opGet(i)[1];return gg((function(){null==a||a(l)}),(function(e){return s((function(t){var n=bm(t,2),r=n[0],o=n[1];return e&&0===r&&(null==a||a(l)),[r+1,o]})),function(){o.opUpdate(i,(function(t){var n=bm(t||[],2),a=n[0],s=void 0===a?0:a,l=n[1];return 0===s-1?(u((function(){!e&&o.opGet(i)||null==r||r(l,!1)})),null):[s-1,l]}))}}),[i]),l}var Dg={},bg="css",yg=new Map;var Cg=0;function Ag(e,t){yg.set(e,(yg.get(e)||0)-1);var n=Array.from(yg.keys()),r=n.filter((function(e){return(yg.get(e)||0)<=0}));n.length-r.length>Cg&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Hm,'="').concat(e,'"]')).forEach((function(e){var n;e[jm]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),yg.delete(e)}))}var _g=function(e,t,n,r){var a=hh(hh({},n.getDerivativeToken(e)),t);return r&&(a=r(a)),a},Tg="token";function Fg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=oe.useContext(Gm),a=r.cache.instanceId,o=r.container,i=n.salt,u=void 0===i?"":i,s=n.override,l=void 0===s?Dg:s,c=n.formatToken,f=n.getComputedToken,d=n.cssVar,p=function(e,t){for(var n=tg,r=0;r0?Hg(Xg,--Yg):0,Vg--,10===qg&&(Vg=1,Gg--),qg}function $g(){return qg=Yg2||tv(qg)>3?"":" "}function av(e,t){for(;--t&&$g()&&!(qg<48||qg>102||qg>57&&qg<65||qg>70&&qg<97););return ev(e,Jg()+(t<6&&32==Zg()&&32==$g()))}function ov(e){for(;$g();)switch(qg){case e:return Yg;case 34:case 39:34!==e&&39!==e&&ov(qg);break;case 40:41===e&&ov(e);break;case 92:$g()}return Yg}function iv(e,t){for(;$g()&&e+qg!==57&&(e+qg!==84||47!==Zg()););return"/*"+ev(t,Yg-1)+"*"+Bg(47===e?e:$g())}function uv(e){for(;!tv(Zg());)$g();return ev(e,Yg)}function sv(e){return function(e){return Xg="",e}(lv("",null,null,null,[""],e=function(e){return Gg=Vg=1,Wg=jg(Xg=e),Yg=0,[]}(e),0,[0],e))}function lv(e,t,n,r,a,o,i,u,s){for(var l=0,c=0,f=i,d=0,p=0,h=0,m=1,g=1,v=1,E=0,D="",b=a,y=o,C=r,A=D;g;)switch(h=E,E=$g()){case 40:if(108!=h&&58==Hg(A,f-1)){-1!=Mg(A+=Lg(nv(E),"&","&\f"),"&\f",Rg(l?u[l-1]:0))&&(v=-1);break}case 34:case 39:case 91:A+=nv(E);break;case 9:case 10:case 13:case 32:A+=rv(h);break;case 92:A+=av(Jg()-1,7);continue;case 47:switch(Zg()){case 42:case 47:zg(fv(iv($g(),Jg()),t,n,s),s);break;default:A+="/"}break;case 123*m:u[l++]=jg(A)*v;case 125*m:case 59:case 0:switch(E){case 0:case 125:g=0;case 59+c:-1==v&&(A=Lg(A,/\f/g,"")),p>0&&jg(A)-f&&zg(p>32?dv(A+";",r,n,f-1,s):dv(Lg(A," ","")+";",r,n,f-2,s),s);break;case 59:A+=";";default:if(zg(C=cv(A,t,n,l,c,a,u,D,b=[],y=[],f,o),o),123===E)if(0===c)lv(A,t,C,C,b,o,f,u,y);else switch(99===d&&110===Hg(A,3)?100:d){case 100:case 108:case 109:case 115:lv(e,C,C,r&&zg(cv(e,C,C,0,0,a,u,D,a,b=[],f,y),y),a,y,f,u,r?b:y);break;default:lv(A,C,C,C,[""],y,0,u,y)}}l=c=p=0,m=v=1,D=A="",f=i;break;case 58:f=1+jg(A),p=h;default:if(m<1)if(123==E)--m;else if(125==E&&0==m++&&125==Kg())continue;switch(A+=Bg(E),E*m){case 38:v=c>0?1:(A+="\f",-1);break;case 44:u[l++]=(jg(A)-1)*v,v=1;break;case 64:45===Zg()&&(A+=nv($g())),d=Zg(),c=f=jg(D=A+=uv(Jg())),E++;break;case 45:45===h&&2==jg(A)&&(m=0)}}return o}function cv(e,t,n,r,a,o,i,u,s,l,c,f){for(var d=a-1,p=0===a?o:[""],h=function(e){return e.length}(p),m=0,g=0,v=0;m0?p[E]+" "+D:Lg(D,/&\f/g,p[E])))&&(s[v++]=b);return Qg(e,t,n,0===a?xg:u,s,l,c,f)}function fv(e,t,n,r){return Qg(e,t,n,Sg,Bg(qg),Ug(e,2,-2),0,r)}function dv(e,t,n,r,a){return Qg(e,t,n,wg,Ug(e,0,r),Ug(e,r+1,-1),r,a)}function pv(e,t){for(var n="",r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,u=n.hashId,s=n.layer;n.path;var l=n.hashPriority,c=n.transformers,f=void 0===c?[]:c;n.linters;var d="",p={};function h(t){var r=t.getName(u);if(!p[r]){var a=bm(e(t.style,n,{root:!1,parentSelectors:i}),1)[0];p[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var m=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]);return m.forEach((function(t){var r="string"!=typeof t||a?t:{};if("string"==typeof r)d+="".concat(r,"\n");else if(r._keyframe)h(r);else{var s=f.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(s).forEach((function(t){var r=s[t];if("object"!==ch(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===ch(e)&&e&&("_skip_check_"in e||bv in e)}(r)){var c;function y(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;kg[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(u)),d+="".concat(n,":").concat(r,";")}var f=null!==(c=null==r?void 0:r.value)&&void 0!==c?c:r;"object"===ch(r)&&null!=r&&r[bv]&&Array.isArray(f)?f.forEach((function(e){y(t,e)})):y(t,f)}else{var m=!1,g=t.trim(),v=!1;(a||o)&&u?g.startsWith("@")?m=!0:g=function(e,t,n){if(!t)return e;var r=".".concat(t),a="low"===n?":where(".concat(r,")"):r,o=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(o).concat(a).concat(r.slice(o.length))].concat(fm(n.slice(1))).join(" ")}));return o.join(",")}(t,u,l):!a||u||"&"!==g&&""!==g||(g="",v=!0);var E=bm(e(r,n,{root:v,injectHash:m,parentSelectors:[].concat(fm(i),[g])}),2),D=E[0],b=E[1];p=hh(hh({},p),b),d+="".concat(g).concat(D)}}))}})),a?s&&(d="@layer ".concat(s.name," {").concat(d,"}"),s.dependencies&&(p["@layer ".concat(s.name)]=s.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(s.name,";")})).join("\n"))):d="{".concat(d,"}"),[d,p]};function Av(e,t){return ym("".concat(e.join("%")).concat(t))}function _v(){return null}var Tv="style";function Fv(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,u=e.clientOnly,s=e.order,l=void 0===s?0:s,c=oe.useContext(Gm),f=c.autoClear;c.mock;var d=c.defaultCache,p=c.hashPriority,h=c.container,m=c.ssrInline,g=c.transformers,v=c.linters,E=c.cache,D=c.layer,b=n._tokenKey,y=[b];D&&y.push("layer"),y.push.apply(y,fm(r));var C=ig,A=Eg(Tv,y,(function(){var e=y.join("|");if(Dv(e)){var n=function(e){var t=mv[e],n=null;if(t&&Cm())if(Ev)n=vv;else{var r=document.querySelector("style[".concat(Um,'="').concat(mv[e],'"]'));r?n=r.innerHTML:delete mv[e]}return[n,t]}(e),i=bm(n,2),s=i[0],c=i[1];if(s)return[s,b,c,{},u,l]}var f=t(),d=bm(Cv(f,{hashId:a,hashPriority:p,layer:D?o:void 0,path:r.join("-"),transformers:g,linters:v}),2),h=d[0],m=d[1],E=yv(h),C=Av(y,E);return[E,b,C,m,u,l]}),(function(e,t){var n=bm(e,3)[2];(t||f)&&ig&&Om(n,{mark:Um})}),(function(e){var t=bm(e,4),n=t[0];t[1];var r=t[2],a=t[3];if(C&&n!==vv){var o={mark:Um,prepend:!D&&"queue",attachTo:h,priority:l},u="function"==typeof i?i():i;u&&(o.csp={nonce:u});var s=[],c=[];Object.keys(a).forEach((function(e){e.startsWith("@layer")?s.push(e):c.push(e)})),s.forEach((function(e){Im(yv(a[e]),"_layer-".concat(e),hh(hh({},o),{},{prepend:!0}))}));var f=Im(n,r,o);f[jm]=E.instanceId,f.setAttribute(Hm,b),c.forEach((function(e){Im(yv(a[e]),"_effect-".concat(e),o)}))}})),_=bm(A,3),T=_[0],F=_[1],k=_[2];return function(e){var t;return t=m&&!C&&d?oe.createElement("style",Mp({},dh(dh({},Hm,F),Um,k),{dangerouslySetInnerHTML:{__html:T}})):oe.createElement(_v,null),oe.createElement(oe.Fragment,null,t,e)}}var kv="cssVar";dh(dh(dh({},Tv,(function(e,t,n){var r=bm(e,6),a=r[0],o=r[1],i=r[2],u=r[3],s=r[4],l=r[5],c=(n||{}).plain;if(s)return null;var f=a,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)};return f=sg(a,o,i,d,c),u&&Object.keys(u).forEach((function(e){if(!t[e]){t[e]=!0;var n=sg(yv(u[e]),o,"_effect-".concat(e),d,c);e.startsWith("@layer")?f=n+f:f+=n}})),[l,i,f]})),Tg,(function(e,t,n){var r=bm(e,5),a=r[2],o=r[3],i=r[4],u=(n||{}).plain;if(!o)return null;var s=a._tokenKey;return[-999,s,sg(o,i,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},u)]})),kv,(function(e,t,n){var r=bm(e,4),a=r[1],o=r[2],i=r[3],u=(n||{}).plain;if(!a)return null;return[-999,o,sg(a,i,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},u)]}));var Sv=function(){function e(t,n){qh(this,e),dh(this,"name",void 0),dh(this,"style",void 0),dh(this,"_keyframe",!0),this.name=t,this.style=n}return Qh(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 xv(e){return e.notSplit=!0,e}xv(["borderTop","borderBottom"]),xv(["borderTop"]),xv(["borderBottom"]),xv(["borderLeft","borderRight"]),xv(["borderLeft"]),xv(["borderRight"]);var wv=oe.createContext({});function Nv(e,t){for(var n=e,r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Nv(e,t.slice(0,-1))?e:Ov(e,t,n,r)}function Rv(e){return Array.isArray(e)?[]:{}}var Bv="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Pv(){for(var e=arguments.length,t=new Array(e),n=0;n1)&&(e=1),e}function Zv(e){return e<=1?"".concat(100*Number(e),"%"):e}function Jv(e){return 1===e.length?"0"+e:String(e)}function eE(e,t,n){e=Qv(e,255),t=Qv(t,255),n=Qv(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,u=(r+a)/2;if(r===a)i=0,o=0;else{var s=r-a;switch(i=u>.5?s/(2-r-a):s/(r+a),r){case e:o=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nE(e,t,n){e=Qv(e,255),t=Qv(t,255),n=Qv(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,u=r-a,s=0===r?0:u/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/u+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var a=sE(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!==(r=n.format)&&void 0!==r?r: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 this.getBrightness()<128},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=$v(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=nE(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=nE(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=eE(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=eE(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),rE(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),function(e,t,n,r,a){var o=[Jv(Math.round(e).toString(16)),Jv(Math.round(t).toString(16)),Jv(Math.round(n).toString(16)),Jv(aE(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(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*Qv(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*Qv(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="#"+rE(this.r,this.g,this.b,!1),t=0,n=Object.entries(uE);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("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()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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=Kv(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(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Kv(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=Kv(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=Kv(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(),a=new e(t).toRgb(),o=n/100;return new e({r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},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,a=n.s,o=n.v,i=[],u=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+u)%1;return i},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(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a:a})},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,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?n?Math.round(e.h)-mE*t:Math.round(e.h)+mE*t:n?Math.round(e.h)+mE*t:Math.round(e.h)-mE*t)<0?r+=360:r>=360&&(r-=360),r}function FE(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-gE*t:t===yE?e.s+gE:e.s+vE*t)>1&&(r=1),n&&t===bE&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function kE(e,t,n){var r;return(r=n?e.v+EE*t:e.v-DE*t)>1&&(r=1),Number(r.toFixed(2))}function SE(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=sE(e),a=bE;a>0;a-=1){var o=AE(r),i=_E(sE({h:TE(o,a,!0),s:FE(o,a,!0),v:kE(o,a,!0)}));n.push(i)}n.push(_E(r));for(var u=1;u<=yE;u+=1){var s=AE(r),l=_E(sE({h:TE(s,u),s:FE(s,u),v:kE(s,u)}));n.push(l)}return"dark"===t.theme?CE.map((function(e){var r=e.index,a=e.opacity,o=_E(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(sE(t.backgroundColor||"#141414"),sE(n[r]),100*a));return o})):n}var xE={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"},wE={},NE={};Object.keys(xE).forEach((function(e){wE[e]=SE(xE[e]),wE[e].primary=wE[e][5],NE[e]=SE(xE[e],{theme:"dark",backgroundColor:"#141414"}),NE[e].primary=NE[e][5]}));var OE=wE.blue,IE={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},RE=Object.assign(Object.assign({},IE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var BE=function(e){var t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};var PE=function(e){var t=e.controlHeight;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function LE(e){return(e+8)/e}var ME=function(e){var t=function(e){var t=new Array(10).fill(null).map((function(t,n){var r=n-1,a=e*Math.pow(2.71828,r/5),o=n>1?Math.floor(a):Math.ceil(a);return 2*Math.floor(o/2)}));return t[1]=e,t.map((function(e){return{size:e,lineHeight:LE(e)}}))}(e),n=t.map((function(e){return e.size})),r=t.map((function(e){return e.lineHeight})),a=n[1],o=n[0],i=n[2],u=r[1],s=r[0],l=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:u,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(u*a),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(s*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};var HE=function(e,t){return new hE(e).setAlpha(t).toRgbString()},UE=function(e,t){return new hE(e).darken(t).toHexString()},jE=function(e){var t=SE(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},zE=function(e,t){var n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:HE(r,.88),colorTextSecondary:HE(r,.65),colorTextTertiary:HE(r,.45),colorTextQuaternary:HE(r,.25),colorFill:HE(r,.15),colorFillSecondary:HE(r,.06),colorFillTertiary:HE(r,.04),colorFillQuaternary:HE(r,.02),colorBgLayout:UE(n,4),colorBgContainer:UE(n,0),colorBgElevated:UE(n,0),colorBgSpotlight:HE(r,.85),colorBgBlur:"transparent",colorBorder:UE(n,15),colorBorderSecondary:UE(n,6)}};var GE=eg((function(e){var t=Object.keys(IE).map((function(t){var n=SE(e[t]);return new Array(10).fill(1).reduce((function(e,r,a){return e["".concat(t,"-").concat(a+1)]=n[a],e["".concat(t).concat(a+1)]=n[a],e}),{})})).reduce((function(e,t){return e=Object.assign(Object.assign({},e),t)}),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){var n=t.generateColorPalettes,r=t.generateNeutralColorPalettes,a=e.colorSuccess,o=e.colorWarning,i=e.colorError,u=e.colorInfo,s=e.colorPrimary,l=e.colorBgBase,c=e.colorTextBase,f=n(s),d=n(a),p=n(o),h=n(i),m=n(u),g=r(l,c),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new hE("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:jE,generateNeutralColorPalettes:zE})),ME(e.fontSize)),function(e){var t=e.sizeUnit,n=e.sizeStep;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),PE(e)),function(e){var t=e.motionUnit,n=e.motionBase,r=e.borderRadius,a=e.lineWidth;return Object.assign({motionDurationFast:"".concat((n+t).toFixed(1),"s"),motionDurationMid:"".concat((n+2*t).toFixed(1),"s"),motionDurationSlow:"".concat((n+3*t).toFixed(1),"s"),lineWidthBold:a+1},BE(r))}(e))})),VE={token:RE,override:{override:RE},hashed:!0},WE=ie.createContext(VE),YE="anticon",qE=oe.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},iconPrefixCls:YE}),XE="-ant-".concat(Date.now(),"-").concat(Math.random());function QE(e,t){var n=function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},a=function(e,t){var a=new hE(e),o=SE(a.toRgbString());n["".concat(t,"-color")]=r(a),n["".concat(t,"-color-disabled")]=o[1],n["".concat(t,"-color-hover")]=o[4],n["".concat(t,"-color-active")]=o[6],n["".concat(t,"-color-outline")]=a.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=o[0],n["".concat(t,"-color-deprecated-border")]=o[2]};if(t.primaryColor){a(t.primaryColor,"primary");var o=new hE(t.primaryColor),i=SE(o.toRgbString());i.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(o,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(o,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(o,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(o,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(o,(function(e){return e.setAlpha(.12*e.getAlpha())}));var u=new hE(i[0]);n["primary-color-active-deprecated-f-30"]=r(u,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(u,(function(e){return e.darken(2)}))}t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info");var s=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));return"\n :root {\n ".concat(s.join("\n"),"\n }\n ").trim()}(e,t);Cm()&&Im(n,"".concat(XE,"-dynamic-theme"))}var KE=oe.createContext(!1),$E=function(e){var t=e.children,n=e.disabled,r=oe.useContext(KE);return oe.createElement(KE.Provider,{value:null!=n?n:r},t)},ZE=KE,JE=oe.createContext(void 0),eD=function(e){var t=e.children,n=e.size,r=oe.useContext(JE);return oe.createElement(JE.Provider,{value:n||r},t)},tD=JE;var nD=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],rD="5.18.3";function aD(e){return e>=0&&e<=255}function oD(e,t){var n=new hE(e).toRgb(),r=n.r,a=n.g,o=n.b;if(n.a<1)return e;for(var i=new hE(t).toRgb(),u=i.r,s=i.g,l=i.b,c=.01;c<=1;c+=.01){var f=Math.round((r-u*(1-c))/c),d=Math.round((a-s*(1-c))/c),p=Math.round((o-l*(1-c))/c);if(aD(f)&&aD(d)&&aD(p))return new hE({r:f,g:d,b:p,a:Math.round(100*c)/100}).toRgbString()}return new hE({r:r,g:a,b:o,a:1}).toRgbString()}var iD=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a1e4){var t=Date.now();this.lastAccessBeat.forEach((function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))})),this.accessBeat=0}}}])}(),mD=new hD;function gD(e){var t=oe.useRef();t.current=e;var n=oe.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),a=0;a1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},yD=function(e){return{a:u(u(u({color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}},"&:active,\n &:hover",{textDecoration:e.linkHoverDecoration,outline:0}),"&:focus",{textDecoration:e.linkFocusDecoration,outline:0}),"&[disabled]",{color:e.colorTextDisabled,cursor:"not-allowed"})}},CD=function(e,t,n,r){var a='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),o=n?".".concat(n):a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),u({},o,Object.assign(Object.assign(Object.assign({},s),i),u({},a,i)))},AD=function(e){return{outline:"".concat(ug(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:1,transition:"outline-offset 0s, outline 0s"}};var _D="undefined"!=typeof CSSINJS_STATISTIC,TD=!0;function FD(){for(var e=arguments.length,t=new Array(e),n=0;n *":{lineHeight:1},svg:{display:"inline-block"}}),u({},".".concat(e," .").concat(e,"-icon"),{display:"block"})))]}))},wD=function(e,t,n){var r;return"function"==typeof n?n(FD(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},ND=function(e,t,n,r){var a=Object.assign({},t[e]);(null==r?void 0:r.deprecatedTokens)&&r.deprecatedTokens.forEach((function(e){var t,n=v(e,2),r=n[0],o=n[1];((null==a?void 0:a[r])||(null==a?void 0:a[o]))&&(null!==(t=a[o])&&void 0!==t||(a[o]=null==a?void 0:a[r]))}));var o=Object.assign(Object.assign({},n),a);return Object.keys(o).forEach((function(e){o[e]===t[e]&&delete o[e]})),o},OD=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function ID(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Array.isArray(e)?e:[e,e],o=v(a,1)[0],i=a.join("-");return function(e){var a,u,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,l=v(pD(),5),c=l[0],f=l[1],d=l[2],p=l[3],h=l[4],m=oe.useContext(qE),g=m.getPrefixCls,E=m.iconPrefixCls,D=m.csp,b=g(),y=h?"css":"js",C=(a=function(){var e=new Set;return h&&Object.keys(r.unitless||{}).forEach((function(t){e.add(lg(t,h.prefix)),e.add(lg(t,OD(o,h.prefix)))})),function(e,t){var n="css"===e?Xm:Qm;return function(e){return new n(e,t)}}(y,e)},u=[y,o,h&&h.prefix],ie.useMemo((function(){var e=mD.get(u);if(e)return e;var t=a();return mD.set(u,t),t}),u)),A=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:e,n=v(c(e,t),2)[1],r=v(f(t),2);return[r[0],n,r[1]]}};function PD(e,t){return nD.reduce((function(n,r){var a=e["".concat(r,"1")],o=e["".concat(r,"3")],i=e["".concat(r,"6")],u=e["".concat(r,"7")];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:u}))}),{})}var LD=Object.assign({},ue).useId,MD=void 0===LD?function(){return""}:LD;var HD=["children"],UD=oe.createContext({});function jD(e){var t=e.children,n=Rm(e,HD);return oe.createElement(UD.Provider,{value:n},t)}var zD=function(e){$h(n,e);var t=tm(n);function n(){return qh(this,n),t.apply(this,arguments)}return Qh(n,[{key:"render",value:function(){return this.props.children}}]),n}(oe.Component);var GD="none",VD="appear",WD="enter",YD="leave",qD="none",XD="prepare",QD="start",KD="active",$D="end",ZD="prepared";function JD(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 eb,tb,nb,rb=(eb=Cm(),tb="undefined"!=typeof window?window:{},nb={animationend:JD("Animation","AnimationEnd"),transitionend:JD("Transition","TransitionEnd")},eb&&("AnimationEvent"in tb||delete nb.animationend.animation,"TransitionEvent"in tb||delete nb.transitionend.transition),nb),ab={};if(Cm()){var ob=document.createElement("div");ab=ob.style}var ib={};function ub(e){if(ib[e])return ib[e];var t=rb[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:2;t();var o=vm((function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)}));e.current=o},t]}(),u=bm(i,2),s=u[0],l=u[1];var c=t?vb:gb;return mb((function(){if(a!==qD&&a!==$D){var e=c.indexOf(a),t=c[e+1],r=n(a);r===Eb?o(t,!0):t&&s((function(e){function n(){e.isCanceled()||o(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),oe.useEffect((function(){return function(){l()}}),[]),[function(){o(XD,!0)},a]};function Cb(e,t,n,r){var a,o,i,u,s=r.motionEnter,l=void 0===s||s,c=r.motionAppear,f=void 0===c||c,d=r.motionLeave,p=void 0===d||d,h=r.motionDeadline,m=r.motionLeaveImmediately,g=r.onAppearPrepare,v=r.onEnterPrepare,E=r.onLeavePrepare,D=r.onAppearStart,b=r.onEnterStart,y=r.onLeaveStart,C=r.onAppearActive,A=r.onEnterActive,_=r.onLeaveActive,T=r.onAppearEnd,F=r.onEnterEnd,k=r.onLeaveEnd,S=r.onVisibleChanged,x=bm(vD(),2),w=x[0],N=x[1],O=(a=GD,o=oe.useReducer((function(e){return e+1}),0),i=bm(o,2)[1],u=oe.useRef(a),[gD((function(){return u.current})),gD((function(e){u.current="function"==typeof e?e(u.current):e,i()}))]),I=bm(O,2),R=I[0],B=I[1],P=bm(vD(null),2),L=P[0],M=P[1],H=R(),U=oe.useRef(!1),j=oe.useRef(null);function z(){return n()}var G=oe.useRef(!1);function V(){B(GD),M(null,!0)}var W=gD((function(e){var t=R();if(t!==GD){var n=z();if(!e||e.deadline||e.target===n){var r,a=G.current;t===VD&&a?r=null==T?void 0:T(n,e):t===WD&&a?r=null==F?void 0:F(n,e):t===YD&&a&&(r=null==k?void 0:k(n,e)),a&&!1!==r&&V()}}})),Y=bm(hb(W),1)[0],q=function(e){switch(e){case VD:return dh(dh(dh({},XD,g),QD,D),KD,C);case WD:return dh(dh(dh({},XD,v),QD,b),KD,A);case YD:return dh(dh(dh({},XD,E),QD,y),KD,_);default:return{}}},X=oe.useMemo((function(){return q(H)}),[H]),Q=bm(yb(H,!e,(function(e){if(e===XD){var t=X[XD];return t?t(z()):Eb}var n;$ in X&&M((null===(n=X[$])||void 0===n?void 0:n.call(X,z(),null))||null);return $===KD&&H!==GD&&(Y(z()),h>0&&(clearTimeout(j.current),j.current=setTimeout((function(){W({deadline:!0})}),h))),$===ZD&&V(),Db})),2),K=Q[0],$=Q[1],Z=bb($);G.current=Z,mb((function(){N(t);var n,r=U.current;U.current=!0,!r&&t&&f&&(n=VD),r&&t&&l&&(n=WD),(r&&!t&&p||!r&&m&&!t&&p)&&(n=YD);var a=q(n);n&&(e||a[XD])?(B(n),K()):B(GD)}),[t]),oe.useEffect((function(){(H===VD&&!f||H===WD&&!l||H===YD&&!p)&&B(GD)}),[f,l,p]),oe.useEffect((function(){return function(){U.current=!1,clearTimeout(j.current)}}),[]);var J=oe.useRef(!1);oe.useEffect((function(){w&&(J.current=!0),void 0!==w&&H===GD&&((J.current||w)&&(null==S||S(w)),J.current=!0)}),[w,H]);var ee=L;return X[XD]&&$===QD&&(ee=hh({transition:"none"},ee)),[H,$,ee,null!=w?w:t]}var Ab=function(e){var t=e;"object"===ch(e)&&(t=e.transitionSupport);var n=oe.forwardRef((function(e,n){var r=e.visible,a=void 0===r||r,o=e.removeOnLeave,i=void 0===o||o,u=e.forceRender,s=e.children,l=e.motionName,c=e.leavedClassName,f=e.eventProps,d=function(e,n){return!(!e.motionName||!t||!1===n)}(e,oe.useContext(UD).motion),p=oe.useRef(),h=oe.useRef();var m=bm(Cb(d,a,(function(){try{return p.current instanceof HTMLElement?p.current:gh(h.current)}catch(Wp){return null}}),e),4),g=m[0],v=m[1],E=m[2],D=m[3],b=oe.useRef(D);D&&(b.current=!0);var y,C=oe.useCallback((function(e){p.current=e,Eh(n,e)}),[n]),A=hh(hh({},f),{},{visible:a});if(s)if(g===GD)y=D?s(hh({},A),C):!i&&b.current&&c?s(hh(hh({},A),{},{className:c}),C):u||!i&&!c?s(hh(hh({},A),{},{style:{display:"none"}}),C):null;else{var _;v===XD?_="prepare":bb(v)?_="active":v===QD&&(_="start");var T=pb(l,"".concat(g,"-").concat(_));y=s(hh(hh({},A),{},{className:Pp(pb(l,g),dh(dh({},T,T&&_),l,"string"==typeof l)),style:E}),C)}else y=null;oe.isValidElement(y)&&yh(y)&&(y.ref||(y=oe.cloneElement(y,{ref:C})));return oe.createElement(zD,{ref:h},y)}));return n.displayName="CSSMotion",n}(cb),_b="add",Tb="keep",Fb="remove",kb="removed";function Sb(e){var t;return hh(hh({},t=e&&"object"===ch(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function xb(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Sb)}var wb=["component","children","onVisibleChanged","onAllRemoved"],Nb=["status"],Ob=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var Ib=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ab,n=function(e){$h(r,e);var n=tm(r);function r(){var e;qh(this,r);for(var t=arguments.length,a=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,o=xb(e),i=xb(t);o.forEach((function(e){for(var t=!1,o=r;o1})).forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Fb})),n.forEach((function(t){t.key===e&&(t.status=Tb)}))})),n}(r,a);return{keyEntities:o.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==kb||e.status!==Fb}))}}}]),r}(oe.Component);return dh(n,"defaultProps",{component:"div"}),n}(cb);function Rb(e){var t=e.children,n=v(pD(),2)[1].motion,r=oe.useRef(!1);return r.current=r.current||!1===n,r.current?oe.createElement(jD,{motion:n},t):t}var Bb,Pb,Lb,Mb,Hb=function(){return null},Ub=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0&&(we=oe.createElement(Uv.Provider,{value:Ne},we)),u&&(we=oe.createElement(Xv,{locale:u,_ANT_MARK__:"internalMark"},we)),(Ae||_e)&&(we=oe.createElement(wv.Provider,{value:xe},we)),s&&(we=oe.createElement(eD,{size:s},we)),we=oe.createElement(Rb,null,we);var Oe=oe.useMemo((function(){var e=Te||{},t=e.algorithm,n=e.token,r=e.components,a=e.cssVar,o=Ub(e,["algorithm","token","components","cssVar"]),i=t&&(!Array.isArray(t)||t.length>0)?eg(t):GE,u={};Object.entries(r||{}).forEach((function(e){var t=v(e,2),n=t[0],r=t[1],a=Object.assign({},r);"algorithm"in a&&(!0===a.algorithm?a.theme=i:(Array.isArray(a.algorithm)||"function"==typeof a.algorithm)&&(a.theme=eg(a.algorithm)),delete a.algorithm),u[n]=a}));var s=Object.assign(Object.assign({},RE),n);return Object.assign(Object.assign({},o),{theme:i,token:s,components:u,override:Object.assign({override:s},u),cssVar:a})}),[Te]);return D&&(we=oe.createElement(WE.Provider,{value:Oe},we)),Se.warning&&(we=oe.createElement(Mv.Provider,{value:Se.warning},we)),void 0!==b&&(we=oe.createElement($E,{disabled:b},we)),oe.createElement(qE.Provider,{value:Se},we)},Wb=function(e){var t=oe.useContext(qE),n=oe.useContext(qv);return oe.createElement(Vb,Object.assign({parentContext:t,legacyLocale:n},e))};Wb.ConfigContext=qE,Wb.SizeContext=tD,Wb.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme,a=e.holderRender;void 0!==t&&(Bb=t),void 0!==n&&(Pb=n),"holderRender"in e&&(Mb=a),r&&(!function(e){return Object.keys(e).some((function(e){return e.endsWith("Color")}))}(r)?Lb=r:QE(zb(),r))},Wb.useConfig=function(){return{componentDisabled:oe.useContext(ZE),componentSize:oe.useContext(tD)}},Object.defineProperty(Wb,"SizeContext",{get:function(){return tD}});var Yb={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"};function qb(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Xb(e){return function(e){return qb(e)instanceof ShadowRoot}(e)?qb(e):null}function Qb(e,t){lh(e,"[@ant-design/icons] ".concat(t))}function Kb(e){return"object"===ch(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===ch(e.icon)||"function"==typeof e.icon)}function $b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=a;return t}),{})}function Zb(e,t,n){return n?ie.createElement(e.tag,hh(hh({key:t},$b(e.attrs)),n),(e.children||[]).map((function(n,r){return Zb(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):ie.createElement(e.tag,hh({key:t},$b(e.attrs)),(e.children||[]).map((function(n,r){return Zb(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Jb(e){return SE(e)[0]}function ey(e){return e?Array.isArray(e)?e:[e]:[]}var ty={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ny=function(e){var t=oe.useContext(wv),n=t.csp,r=t.prefixCls,a="\n.anticon {\n display: inline-flex;\n align-items: center;\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&&(a=a.replace(/anticon/g,r)),oe.useEffect((function(){var t=Xb(e.current);Im(a,"@ant-design-icons",{prepend:!0,csp:n,attachTo:t})}),[])},ry=["icon","className","onClick","style","primaryColor","secondaryColor"],ay={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var oy=function(e){var t=e.icon,n=e.className,r=e.onClick,a=e.style,o=e.primaryColor,i=e.secondaryColor,u=Rm(e,ry),s=oe.useRef(),l=ay;if(o&&(l={primaryColor:o,secondaryColor:i||Jb(o)}),ny(s),Qb(Kb(t),"icon should be icon definiton, but got ".concat(t)),!Kb(t))return null;var c=t;return c&&"function"==typeof c.icon&&(c=hh(hh({},c),{},{icon:c.icon(l.primaryColor,l.secondaryColor)})),Zb(c.icon,"svg-".concat(c.name),hh(hh({className:n,onClick:r,style:a,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:s}))};oy.displayName="IconReact",oy.getTwoToneColors=function(){return hh({},ay)},oy.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ay.primaryColor=t,ay.secondaryColor=n||Jb(t),ay.calculated=!!n};var iy=oy;function uy(e){var t=bm(ey(e),2),n=t[0],r=t[1];return iy.setTwoToneColors({primaryColor:n,secondaryColor:r})}var sy=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];uy(OE.primary);var ly=oe.forwardRef((function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,u=e.onClick,s=e.twoToneColor,l=Rm(e,sy),c=oe.useContext(wv),f=c.prefixCls,d=void 0===f?"anticon":f,p=c.rootClassName,h=Pp(p,d,dh(dh({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!a||"loading"===r.name),n),m=i;void 0===m&&u&&(m=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,v=bm(ey(s),2),E=v[0],D=v[1];return oe.createElement("span",Mp({role:"img","aria-label":r.name},l,{ref:t,tabIndex:m,onClick:u,className:h}),oe.createElement(iy,{icon:r,primaryColor:E,secondaryColor:D,style:g}))}));ly.displayName="AntdIcon",ly.getTwoToneColor=function(){var e=iy.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ly.setTwoToneColor=uy;var cy=ly,fy=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:Yb}))},dy=oe.forwardRef(fy),py={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"},hy=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:py}))},my=oe.forwardRef(hy),gy={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"},vy=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:gy}))},Ey=oe.forwardRef(vy),Dy={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"},by=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:Dy}))},yy=oe.forwardRef(by),Cy={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"},Ay=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:Cy}))},_y=oe.forwardRef(Ay),Ty="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Fy(e,t){return 0===e.indexOf(t)}function ky(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:hh({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Fy(n,"aria-"))||t.data&&Fy(n,"data-")||t.attr&&Ty.includes(n))&&(r[n]=e[n])})),r}function Sy(e){return e&&ie.isValidElement(e)&&e.type===ie.Fragment}var xy=function(e,t,n){return ie.isValidElement(e)?ie.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t};function wy(e,t){return xy(e,e,t)}var Ny=function(e){return v(pD(),5)[4]?"".concat(e,"-css-var"):""},Oy={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>=Oy.F1&&t<=Oy.F12)return!1;switch(t){case Oy.ALT:case Oy.CAPS_LOCK:case Oy.CONTEXT_MENU:case Oy.CTRL:case Oy.DOWN:case Oy.END:case Oy.ESC:case Oy.HOME:case Oy.INSERT:case Oy.LEFT:case Oy.MAC_FF_META:case Oy.META:case Oy.NUMLOCK:case Oy.NUM_CENTER:case Oy.PAGE_DOWN:case Oy.PAGE_UP:case Oy.PAUSE:case Oy.PRINT_SCREEN:case Oy.RIGHT:case Oy.SHIFT:case Oy.UP:case Oy.WIN_KEY:case Oy.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Oy.ZERO&&e<=Oy.NINE)return!0;if(e>=Oy.NUM_ZERO&&e<=Oy.NUM_MULTIPLY)return!0;if(e>=Oy.A&&e<=Oy.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Oy.SPACE:case Oy.QUESTION_MARK:case Oy.NUM_PLUS:case Oy.NUM_MINUS:case Oy.NUM_PERIOD:case Oy.NUM_DIVISION:case Oy.SEMICOLON:case Oy.DASH:case Oy.EQUALS:case Oy.COMMA:case Oy.PERIOD:case Oy.SLASH:case Oy.APOSTROPHE:case Oy.SINGLE_QUOTE:case Oy.OPEN_SQUARE_BRACKET:case Oy.BACKSLASH:case Oy.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Iy=oe.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=void 0===o?4.5:o,u=e.showProgress,s=e.pauseOnHover,l=void 0===s||s,c=e.eventKey,f=e.content,d=e.closable,p=e.closeIcon,h=void 0===p?"x":p,m=e.props,g=e.onClick,v=e.onNoticeClose,E=e.times,D=e.hovering,b=bm(oe.useState(!1),2),y=b[0],C=b[1],A=bm(oe.useState(0),2),_=A[0],T=A[1],F=bm(oe.useState(0),2),k=F[0],S=F[1],x=D||y,w=i>0&&u,N=function(){v(c)};oe.useEffect((function(){if(!x&&i>0){var e=Date.now()-k,t=setTimeout((function(){N()}),1e3*i-k);return function(){l&&clearTimeout(t),S(Date.now()-e)}}}),[i,x,E]),oe.useEffect((function(){if(!x&&w&&(l||0===k)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame((function(e){var r=e+k-t,a=Math.min(r/(1e3*i),1);T(100*a),a<1&&n()}))}(),function(){l&&cancelAnimationFrame(e)}}}),[i,k,x,w,E]);var O=oe.useMemo((function(){return"object"===ch(d)&&null!==d?d:d?{closeIcon:h}:{}}),[d,h]),I=ky(O,!0),R=100-(!_||_<0?0:_>100?100:_),B="".concat(n,"-notice");return oe.createElement("div",Mp({},m,{ref:t,className:Pp(B,a,dh({},"".concat(B,"-closable"),d)),style:r,onMouseEnter:function(e){var t;C(!0),null==m||null===(t=m.onMouseEnter)||void 0===t||t.call(m,e)},onMouseLeave:function(e){var t;C(!1),null==m||null===(t=m.onMouseLeave)||void 0===t||t.call(m,e)},onClick:g}),oe.createElement("div",{className:"".concat(B,"-content")},f),d&&oe.createElement("a",Mp({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Oy.ENTER||N()},"aria-label":"Close"},I,{onClick:function(e){e.preventDefault(),e.stopPropagation(),N()}}),O.closeIcon),w&&oe.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:R},R+"%"))})),Ry=ie.createContext({}),By=function(e){var t=e.children,n=e.classNames;return ie.createElement(Ry.Provider,{value:{classNames:n}},t)},Py=["className","style","classNames","styles"],Ly=function(e){var t,n,r,a,o,i=e.configList,u=e.placement,s=e.prefixCls,l=e.className,c=e.style,f=e.motion,d=e.onAllNoticeRemoved,p=e.onNoticeClose,h=e.stack,m=oe.useContext(Ry).classNames,g=oe.useRef({}),v=bm(oe.useState(null),2),E=v[0],D=v[1],b=bm(oe.useState([]),2),y=b[0],C=b[1],A=i.map((function(e){return{config:e,key:String(e.key)}})),_=bm((o={offset:8,threshold:3,gap:16},(t=h)&&"object"===ch(t)&&(o.offset=null!==(n=t.offset)&&void 0!==n?n:8,o.threshold=null!==(r=t.threshold)&&void 0!==r?r:3,o.gap=null!==(a=t.gap)&&void 0!==a?a:16),[!!t,o]),2),T=_[0],F=_[1],k=F.offset,S=F.threshold,x=F.gap,w=T&&(y.length>0||A.length<=S),N="function"==typeof f?f(u):f;return oe.useEffect((function(){T&&y.length>1&&C((function(e){return e.filter((function(e){return A.some((function(t){var n=t.key;return e===n}))}))}))}),[y,A,T]),oe.useEffect((function(){var e,t;T&&g.current[null===(e=A[A.length-1])||void 0===e?void 0:e.key]&&D(g.current[null===(t=A[A.length-1])||void 0===t?void 0:t.key])}),[A,T]),ie.createElement(Ib,Mp({key:u,className:Pp(s,"".concat(s,"-").concat(u),null==m?void 0:m.list,l,dh(dh({},"".concat(s,"-stack"),!!T),"".concat(s,"-stack-expanded"),w)),style:c,keys:A,motionAppear:!0},N,{onAllRemoved:function(){d(u)}}),(function(e,t){var n=e.config,r=e.className,a=e.style,o=e.index,i=n,l=i.key,c=i.times,f=String(l),d=n,h=d.className,v=d.style,D=d.classNames,b=d.styles,_=Rm(d,Py),F=A.findIndex((function(e){return e.key===f})),S={};if(T){var N=A.length-1-(F>-1?F:o-1),O="top"===u||"bottom"===u?"-50%":"0";if(N>0){var I,R,B;S.height=w?null===(I=g.current[f])||void 0===I?void 0:I.offsetHeight:null==E?void 0:E.offsetHeight;for(var P=0,L=0;L-1?g.current[f]=e:delete g.current[f]},prefixCls:s,classNames:D,styles:b,className:Pp(h,null==m?void 0:m.notice),style:v,times:c,key:l,eventKey:l,onNoticeClose:p,hovering:T&&y.length>0})))}))},My=oe.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,u=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,f=e.renderNotifications,d=bm(oe.useState([]),2),p=d[0],h=d[1],m=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};oe.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=fm(t),a=r.findIndex((function(t){return t.key===e.key})),o=hh({},e);a>=0?(o.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,r[a]=o):(o.times=0,r.push(o));return i>0&&r.length>i&&(r=r.slice(-i)),r}))},close:function(e){m(e)},destroy:function(){h([])}}}));var g=bm(oe.useState({}),2),v=g[0],E=g[1];oe.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(v).forEach((function(t){e[t]=e[t]||[]})),E(e)}),[p]);var D=function(e){E((function(t){var n=hh({},t);return(n[e]||[]).length||delete n[e],n}))},b=oe.useRef(!1);if(oe.useEffect((function(){Object.keys(v).length>0?b.current=!0:b.current&&(null==l||l(),b.current=!1)}),[v]),!a)return null;var y=Object.keys(v);return Sf.createPortal(oe.createElement(oe.Fragment,null,y.map((function(e){var t=v[e],n=oe.createElement(Ly,{key:e,configList:t,placement:e,prefixCls:r,className:null==u?void 0:u(e),style:null==s?void 0:s(e),motion:o,onNoticeClose:m,onAllNoticeRemoved:D,stack:c});return f?f(n,{prefixCls:r,key:e}):n}))),a)})),Hy=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Uy=function(){return document.body},jy=0;function zy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Uy:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,u=e.style,s=e.onAllRemoved,l=e.stack,c=e.renderNotifications,f=Rm(e,Hy),d=bm(oe.useState(),2),p=d[0],h=d[1],m=oe.useRef(),g=oe.createElement(My,{container:p,ref:m,prefixCls:a,motion:r,maxCount:o,className:i,style:u,onAllRemoved:s,stack:l,renderNotifications:c}),v=bm(oe.useState([]),2),E=v[0],D=v[1],b=oe.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r ").concat(n),{marginInlineEnd:p,fontSize:c}),"".concat(D,"-content"),{display:"inline-block",padding:v,background:E,borderRadius:m,boxShadow:r,pointerEvents:"all"}),"".concat(t,"-success > ").concat(n),{color:o}),"".concat(t,"-error > ").concat(n),{color:i}),"".concat(t,"-warning > ").concat(n),{color:s}),"".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n),{color:l});return[u({},t,Object.assign(Object.assign({},bD(e)),u(u(u(u(u(u({color:a,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g},"".concat(t,"-move-up"),{animationFillMode:"forwards"}),"\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n "),{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:f}),"\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n "),{animationPlayState:"running"}),"".concat(t,"-move-up-leave"),{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:f}),"".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active"),{animationPlayState:"running"}),"&-rtl",{direction:"rtl",span:{direction:"rtl"}}))),u({},t,u({},"".concat(D,"-wrapper"),Object.assign({},C))),u({},"".concat(t,"-notice-pure-panel"),Object.assign(Object.assign({},C),{padding:0,textAlign:"start"}))]},Zy=BD("Message",(function(e){var t=FD(e,{height:150});return[$y(t)]}),(function(e){return{zIndexPopup:e.zIndexPopupBase+1e3+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")}})),Jy=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;x(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function fC(e,t,n,r,a,o,i){try{var u=e[o](i),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,a)}function dC(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){fC(o,r,a,i,u,"next",e)}function u(e){fC(o,r,a,i,u,"throw",e)}i(void 0)}))}}var pC,hC=hh({},wf),mC=hC.version,gC=hC.render,vC=hC.unmountComponentAtNode;try{Number((mC||"").split(".")[0])>=18&&(pC=hC.createRoot)}catch(Wp){}function EC(e){var t=hC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===ch(t)&&(t.usingClientEntryPoint=e)}var DC="__rc_react_root__";function bC(e,t){pC?function(e,t){EC(!0);var n=t[DC]||pC(t);EC(!1),n.render(e),t[DC]=n}(e,t):function(e,t){gC(e,t)}(e,t)}function yC(e){return CC.apply(this,arguments)}function CC(){return(CC=dC(cC().mark((function e(t){return cC().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[DC])||void 0===e||e.unmount(),delete t[DC]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function AC(e){vC(e)}function _C(){return(_C=dC(cC().mark((function e(t){return cC().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===pC){e.next=2;break}return e.abrupt("return",yC(t));case 2:AC(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var TC=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)},FC=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 a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},kC=function(e){var t=e.componentCls,n=e.colorPrimary;return u({},t,{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)].join(",")}}})},SC=ID("Wave",(function(e){return[kC(e)]})),xC="".concat("ant","-wave-target");function wC(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){var 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}function NC(e){return Number.isNaN(e)?0:e}var OC=function(e){var t=e.className,n=e.target,r=e.component,a=oe.useRef(null),o=v(oe.useState(null),2),i=o[0],u=o[1],s=v(oe.useState([]),2),l=s[0],c=s[1],f=v(oe.useState(0),2),d=f[0],p=f[1],h=v(oe.useState(0),2),m=h[0],g=h[1],E=v(oe.useState(0),2),D=E[0],b=E[1],y=v(oe.useState(0),2),C=y[0],A=y[1],_=v(oe.useState(!1),2),T=_[0],F=_[1],k={left:d,top:m,width:D,height:C,borderRadius:l.map((function(e){return"".concat(e,"px")})).join(" ")};function S(){var e=getComputedStyle(n);u(function(e){var t=getComputedStyle(e),n=t.borderTopColor,r=t.borderColor,a=t.backgroundColor;return wC(n)?n:wC(r)?r:wC(a)?a:null}(n));var t="static"===e.position,r=e.borderLeftWidth,a=e.borderTopWidth;p(t?n.offsetLeft:NC(-parseFloat(r))),g(t?n.offsetTop:NC(-parseFloat(a))),b(n.offsetWidth),A(n.offsetHeight);var o=e.borderTopLeftRadius,i=e.borderTopRightRadius,s=e.borderBottomLeftRadius,l=e.borderBottomRightRadius;c([o,i,l,s].map((function(e){return NC(parseFloat(e))})))}if(i&&(k["--wave-color"]=i),oe.useEffect((function(){if(n){var e,t=vm((function(){S(),F(!0)}));return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(S)).observe(n),function(){vm.cancel(t),null==e||e.disconnect()}}}),[]),!T)return null;var x=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(xC));return oe.createElement(Ab,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:function(e,t){var n;if(t.deadline||"opacity"===t.propertyName){var r=null===(n=a.current)||void 0===n?void 0:n.parentElement;(function(e){return _C.apply(this,arguments)})(r).then((function(){null==r||r.remove()}))}return!1}},(function(e,n){var r=e.className;return oe.createElement("div",{ref:Dh(a,n),className:Pp(t,r,{"wave-quick":x}),style:k})}))},IC=function(e,t){var n;if("Checkbox"!==t.component||(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked)){var r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null==e||e.insertBefore(r,null==e?void 0:e.firstChild),bC(oe.createElement(OC,Object.assign({},t,{target:e})),r)}},RC=function(e,t,n){var r=oe.useContext(qE).wave,a=v(pD(),3),o=a[1],i=a[2],u=gD((function(a){var u=e.current;if(!(null==r?void 0:r.disabled)&&u){var s=u.querySelector(".".concat(xC))||u;((r||{}).showEffect||IC)(s,{className:t,token:o,component:n,event:a,hashId:i})}})),s=oe.useRef();return function(e){vm.cancel(s.current),s.current=vm((function(){u(e)}))}},BC=function(e){var t=e.children,n=e.disabled,r=e.component,a=oe.useContext(qE).getPrefixCls,o=oe.useRef(null),i=a("wave"),u=v(SC(i),2)[1],s=RC(o,Pp(i,u),r);return ie.useEffect((function(){var e=o.current;if(e&&1===e.nodeType&&!n){var t=function(t){!FC(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),function(){e.removeEventListener("click",t,!0)}}}),[n]),ie.isValidElement(t)?wy(t,{ref:yh(t)?Dh(t.ref,o):o}):null!=t?t:null},PC=function(e){var t=ie.useContext(tD);return ie.useMemo((function(){return e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t}),[e,t])};globalThis&&globalThis.__rest;var LC=oe.createContext(null),MC=function(e,t){var n=oe.useContext(LC),r=oe.useMemo((function(){if(!n)return"";var r=n.compactDirection,a=n.isFirstItem,o=n.isLastItem,i="vertical"===r?"-vertical-":"-";return Pp("".concat(e,"-compact").concat(i,"item"),u(u(u({},"".concat(e,"-compact").concat(i,"first-item"),a),"".concat(e,"-compact").concat(i,"last-item"),o),"".concat(e,"-compact").concat(i,"item-rtl"),"rtl"===t))}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},HC=function(e){var t=e.children;return oe.createElement(LC.Provider,{value:null},t)},UC=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a span, > ".concat(e),{"&:not(:last-child)":u({},"&, & > ".concat(e),{"&:not(:disabled)":{borderInlineEndColor:t}}),"&:not(:first-child)":u({},"&, & > ".concat(e),{"&:not(:disabled)":{borderInlineStartColor:t}})})},tA=function(e){var t=e.componentCls,n=e.fontSize,r=e.lineWidth,a=e.groupBorderColor,o=e.colorErrorHover;return u({},"".concat(t,"-group"),[u(u(u({position:"relative",display:"inline-flex"},"> span, > ".concat(t),{"&:not(:last-child)":u({},"&, & > ".concat(t),{borderStartEndRadius:0,borderEndEndRadius:0}),"&:not(:first-child)":u({marginInlineStart:e.calc(r).mul(-1).equal()},"&, & > ".concat(t),{borderStartStartRadius:0,borderEndStartRadius:0})}),t,u(u({position:"relative",zIndex:1},"&:hover,\n &:focus,\n &:active",{zIndex:2}),"&[disabled]",{zIndex:0})),"".concat(t,"-icon-only"),{fontSize:n}),eA("".concat(t,"-primary"),a),eA("".concat(t,"-danger"),o)])},nA=function(e){var t=e.paddingInline,n=e.onlyIconSize;return FD(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:e.paddingBlock,buttonIconOnlyFontSize:n})},rA=function(e){var t,n,r,a,o,i,u=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,l=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,c=null!==(a=e.contentLineHeight)&&void 0!==a?a:LE(u),f=null!==(o=e.contentLineHeightSM)&&void 0!==o?o:LE(s),d=null!==(i=e.contentLineHeightLG)&&void 0!==i?i:LE(l);return{fontWeight:400,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:u,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:c,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-u*c)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*d)/2-e.lineWidth,0)}},aA=function(e){var t=e.componentCls,n=e.iconCls,r=e.fontWeight;return u({},t,u(u(u(u(u(u({outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat(ug(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"}},"".concat(t,"-icon"),{lineHeight:1}),"> a",{color:"currentColor"}),"&:not(:disabled)",Object.assign({},function(e){return{"&:focus-visible":Object.assign({},AD(e))}}(e))),"&".concat(t,"-two-chinese-chars::first-letter"),{letterSpacing:"0.34em"}),"&".concat(t,"-two-chinese-chars > *:not(").concat(n,")"),{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"}),"&-icon-end",{flexDirection:"row-reverse"}))},oA=function(e,t,n){return u({},"&:not(:disabled):not(".concat(e,"-disabled)"),{"&:hover":t,"&:active":n})},iA=function(e){return{minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}},uA=function(e){return{borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}},sA=function(e,t,n,r,a,o,i,s){return u({},"&".concat(e,"-background-ghost"),Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},oA(e,Object.assign({background:t},i),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}}))},lA=function(e){return u({},"&:disabled, &".concat(e.componentCls,"-disabled"),Object.assign({},function(e){return{cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}}(e)))},cA=function(e){return Object.assign({},lA(e))},fA=function(e){return u({},"&:disabled, &".concat(e.componentCls,"-disabled"),{cursor:"not-allowed",color:e.colorTextDisabled})},dA=function(e){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cA(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),oA(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),sA(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),u({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},oA(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),sA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),lA(e))))},pA=function(e){var t=e.componentCls;return u(u(u(u(u(u({},"".concat(t,"-default"),dA(e)),"".concat(t,"-primary"),function(e){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cA(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),oA(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),sA(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),u({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},oA(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),sA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lA(e))))}(e)),"".concat(t,"-dashed"),function(e){return Object.assign(Object.assign({},dA(e)),{borderStyle:"dashed"})}(e)),"".concat(t,"-link"),function(e){return Object.assign(Object.assign(Object.assign({color:e.colorLink},oA(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),fA(e)),u({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign({color:e.colorError},oA(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),fA(e))))}(e)),"".concat(t,"-text"),function(e){return Object.assign(Object.assign(Object.assign({},oA(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),fA(e)),u({},"&".concat(e.componentCls,"-dangerous"),Object.assign(Object.assign({color:e.colorError},fA(e)),oA(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))))}(e)),"".concat(t,"-ghost"),sA(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder))},hA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.componentCls,r=e.controlHeight,a=e.fontSize,o=e.lineHeight,i=e.borderRadius,s=e.buttonPaddingHorizontal,l=e.iconCls,c=e.buttonPaddingVertical,f="".concat(n,"-icon-only");return[u({},"".concat(t),u(u(u({fontSize:a,lineHeight:o,height:r,padding:"".concat(ug(c)," ").concat(ug(s)),borderRadius:i},"&".concat(f),u(u(u({width:r,paddingInline:0},"&".concat(n,"-compact-item"),{flex:"none"}),"&".concat(n,"-round"),{width:"auto"}),l,{fontSize:e.buttonIconOnlyFontSize})),"&".concat(n,"-loading"),{opacity:e.opacityLoading,cursor:"default"}),"".concat(n,"-loading-icon"),{transition:"width ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut,", opacity ").concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)})),u({},"".concat(n).concat(n,"-circle").concat(t),iA(e)),u({},"".concat(n).concat(n,"-round").concat(t),uA(e))]},mA=function(e){var t=FD(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return hA(t,e.componentCls)},gA=function(e){var t=FD(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return hA(t,"".concat(e.componentCls,"-sm"))},vA=function(e){var t=FD(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return hA(t,"".concat(e.componentCls,"-lg"))},EA=function(e){var t=e.componentCls;return u({},t,u({},"&".concat(t,"-block"),{width:"100%"}))},DA=BD("Button",(function(e){var t=nA(e);return[aA(t),mA(t),gA(t),vA(t),EA(t),pA(t),tA(t)]}),rA,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function bA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},n=e.componentCls,r="".concat(n,"-compact");return u({},r,Object.assign(Object.assign({},function(e,t,n){var r=n.focusElCls,a=n.focus,o=n.borderElCls?"> *":"",i=["hover",a?"focus":null,"active"].filter(Boolean).map((function(e){return"&:".concat(e," ").concat(o)})).join(",");return u(u({},"&-item:not(".concat(t,"-last-item)"),{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()}),"&-item",Object.assign(Object.assign(u({},i,{zIndex:2}),r?u({},"&".concat(r),{zIndex:2}):{}),u({},"&[disabled] ".concat(o),{zIndex:0})))}(e,r,t)),function(e,t,n){var r=n.borderElCls,a=r?"> ".concat(r):"";return u(u(u({},"&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(a),{borderRadius:0}),"&-item:not(".concat(t,"-last-item)").concat(t,"-first-item"),u({},"& ".concat(a,", &").concat(e,"-sm ").concat(a,", &").concat(e,"-lg ").concat(a),{borderStartEndRadius:0,borderEndEndRadius:0})),"&-item:not(".concat(t,"-first-item)").concat(t,"-last-item"),u({},"& ".concat(a,", &").concat(e,"-sm ").concat(a,", &").concat(e,"-lg ").concat(a),{borderStartStartRadius:0,borderEndStartRadius:0}))}(n,r,t)))}function yA(e){var t,n,r="".concat(e.componentCls,"-compact-vertical");return u({},r,Object.assign(Object.assign({},function(e,t){return u(u({},"&-item:not(".concat(t,"-last-item)"),{marginBottom:e.calc(e.lineWidth).mul(-1).equal()}),"&-item",{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}})}(e,r)),(t=e.componentCls,u(u(u({},"&-item:not(".concat(n=r,"-first-item):not(").concat(n,"-last-item)"),{borderRadius:0}),"&-item".concat(n,"-first-item:not(").concat(n,"-last-item)"),u({},"&, &".concat(t,"-sm, &").concat(t,"-lg"),{borderEndEndRadius:0,borderEndStartRadius:0})),"&-item".concat(n,"-last-item:not(").concat(n,"-first-item)"),u({},"&, &".concat(t,"-sm, &").concat(t,"-lg"),{borderStartStartRadius:0,borderStartEndRadius:0})))))}var CA=function(e){var t=e.componentCls,n=e.calc;return u({},t,u(u({},"&-compact-item".concat(t,"-primary"),u({},"&:not([disabled]) + ".concat(t,"-compact-item").concat(t,"-primary:not([disabled])"),{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:"calc(100% + ".concat(ug(e.lineWidth)," * 2)"),backgroundColor:e.colorPrimaryHover,content:'""'}})),"&-compact-vertical-item",u({},"&".concat(t,"-primary"),u({},"&:not([disabled]) + ".concat(t,"-compact-vertical-item").concat(t,"-primary:not([disabled])"),{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:"calc(100% + ".concat(ug(e.lineWidth)," * 2)"),height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}))))},AA=function(e,t,n,r){var a=ID(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls;return a(t,void 0===n?t:n),null}}(["Button","compact"],(function(e){var t=nA(e);return[bA(t),yA(t),CA(t)]}),rA),_A=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a0?e=setTimeout((function(){e=null,ee(!0)}),$.delay):ee($.loading),function(){e&&(clearTimeout(e),e=null)}}),[$]),oe.useEffect((function(){if(ae&&ae.current&&z){var e=ae.current.textContent;ue&&VC(e)?ne||re(!0):ne&&re(!1)}}),[ae]);var se=function(t){var n=e.onClick;J||Q?t.preventDefault():null==n||n(t)},le=MC(G,U),ce=le.compactSize,fe=le.compactItemClassnames,de={large:"lg",small:"sm",middle:void 0},pe=PC((function(e){var t,n;return null!==(n=null!==(t=null!=m?m:ce)&&void 0!==t?t:K)&&void 0!==n?n:e})),he=pe&&de[pe]||"",me=J?"loading":C,ge=um(P,["navigate"]),ve=Pp(G,Y,q,(u(u(u(u(u(u(u(u(u(u(n={},"".concat(G,"-").concat(h),"default"!==h&&h),"".concat(G,"-").concat(L),L),"".concat(G,"-").concat(he),he),"".concat(G,"-icon-only"),!y&&0!==y&&!!me),"".concat(G,"-background-ghost"),k&&!YC(L)),"".concat(G,"-loading"),J),"".concat(G,"-two-chinese-chars"),ne&&z&&!J),"".concat(G,"-block"),x),"".concat(G,"-dangerous"),d),"".concat(G,"-rtl"),"rtl"===U),u(n,"".concat(G,"-icon-end"),"end"===T)),fe,D,b,null==j?void 0:j.className),Ee=Object.assign(Object.assign({},null==j?void 0:j.style),R),De=Pp(null==O?void 0:O.icon,null===(a=null==j?void 0:j.classNames)||void 0===a?void 0:a.icon),be=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==j?void 0:j.styles)||void 0===o?void 0:o.icon)||{}),ye=C&&!J?ie.createElement(QC,{prefixCls:G,className:De,style:be},C):ie.createElement(JC,{existIcon:!!C,prefixCls:G,loading:J}),Ce=y||0===y?qC(y,ue&&z):null;if(void 0!==ge.href)return W(ie.createElement("a",Object.assign({},ge,{className:Pp(ve,u({},"".concat(G,"-disabled"),Q)),href:Q?void 0:ge.href,style:Ee,onClick:se,ref:ae,tabIndex:Q?-1:0}),ye,Ce));var Ae=ie.createElement("button",Object.assign({},P,{type:N,className:ve,style:Ee,onClick:se,disabled:Q,ref:ae}),ye,Ce,!!fe&&ie.createElement(AA,{key:"compact",prefixCls:G}));return YC(L)||(Ae=ie.createElement(BC,{component:"Button",disabled:J},Ae)),W(Ae)})),FA=TA;FA.Group=zC,FA.__ANT_BUTTON=!0;var kA=FA,SA=oe.createContext(null),xA=[];function wA(e){return"undefined"!=typeof document&&e&&e instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,a,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",e){var i=getComputedStyle(e);o.scrollbarColor=i.scrollbarColor,o.scrollbarWidth=i.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(u.width,10),l=parseInt(u.height,10);try{var c=s?"width: ".concat(u.width,";"):"",f=l?"height: ".concat(u.height,";"):"";Im("\n#".concat(t,"::-webkit-scrollbar {\n").concat(c,"\n").concat(f,"\n}"),t)}catch(Wp){console.error(Wp),r=s,a=l}}document.body.appendChild(n);var d=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Om(t),{width:d,height:p}}(e):{width:0,height:0}}var NA="rc-util-locker-".concat(Date.now()),OA=0;function IA(e){var t=!!e,n=bm(oe.useState((function(){return OA+=1,"".concat(NA,"_").concat(OA)})),1)[0];pg((function(){if(t){var e=wA(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Im("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else Om(n);return function(){Om(n)}}),[t,n])}var RA=!1;var BA=function(e){return!1!==e&&(Cm()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},PA=oe.forwardRef((function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=void 0===o||o,u=e.children,s=bm(oe.useState(n),2),l=s[0],c=s[1],f=l||n;oe.useEffect((function(){(i||n)&&c(n)}),[n,i]);var d=bm(oe.useState((function(){return BA(a)})),2),p=d[0],h=d[1];oe.useEffect((function(){var e=BA(a);h(null!=e?e:null)}));var m=function(e,t){var n=bm(oe.useState((function(){return Cm()?document.createElement("div"):null})),1)[0],r=oe.useRef(!1),a=oe.useContext(SA),o=bm(oe.useState(xA),2),i=o[0],u=o[1],s=a||(r.current?void 0:function(e){u((function(t){return[e].concat(fm(t))}))});function l(){n.parentElement||document.body.appendChild(n),r.current=!0}function c(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return pg((function(){return e?a?a(l):l():c(),c}),[e]),pg((function(){i.length&&(i.forEach((function(e){return e()})),u(xA))}),[i]),[n,s]}(f&&!p),g=bm(m,2),v=g[0],E=g[1],D=null!=p?p:v;IA(r&&n&&Cm()&&(D===v||D===document.body));var b=null;u&&yh(u)&&t&&(b=u.ref);var y=bh(b,t);if(!f||!Cm()||void 0===p)return null;var C,A=!1===D||("boolean"==typeof C&&(RA=C),RA),_=u;return t&&(_=oe.cloneElement(u,{ref:y})),oe.createElement(SA.Provider,{value:E},A?_:Sf.createPortal(_,D))}));var LA=0,MA=hh({},ue).useId,HA=MA?function(e){var t=MA();return e||t}:function(e){var t=bm(oe.useState("ssr-id"),2),n=t[0],r=t[1];return oe.useEffect((function(){var e=LA;LA+=1,r("rc_unique_".concat(e))}),[]),e||n},UA="RC_FORM_INTERNAL_HOOKS",jA=function(){lh(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},zA=oe.createContext({getFieldValue:jA,getFieldsValue:jA,getFieldError:jA,getFieldWarning:jA,getFieldsError:jA,isFieldsTouched:jA,isFieldTouched:jA,isFieldValidating:jA,isFieldsValidating:jA,resetFields:jA,setFields:jA,setFieldValue:jA,setFieldsValue:jA,validateFields:jA,submit:jA,getInternalHooks:function(){return jA(),{dispatch:jA,initEntityValue:jA,registerField:jA,useSubscribe:jA,setInitialValues:jA,destroyForm:jA,setCallbacks:jA,registerWatch:jA,getFields:jA,setValidateMessages:jA,setPreserve:jA,getInitialValue:jA}}}),GA=oe.createContext(null);function VA(e){return null==e?[]:Array.isArray(e)?e:[e]}function WA(){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 YA=WA();function qA(e){var t="function"==typeof Map?new Map:void 0;return qA=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(Zp){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Jh())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Kh(a,n.prototype),a}(e,arguments,Zh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Kh(n,e)},qA(e)}var XA=/%[sdj%]/g,QA=function(){};function KA(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function $A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch(t){return"[Circular]"}break;default:return e}}));return i}return e}function ZA(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function JA(e,t,n){var r=0,a=e.length;!function o(i){if(i&&i.length)n(i);else{var u=r;r+=1,u()\[\]\\.,;:\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,}))$/,s_=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,l_={integer:function(e){return l_.number(e)&&parseInt(e,10)===e},float:function(e){return l_.number(e)&&!l_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(Wp){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"===ch(e)&&!l_.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(u_)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(a_)return a_;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(a.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),u=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(o,"$")),l=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(o).concat(t(e),")"),"g")};l.v4=function(e){return e&&e.exact?u:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(o).concat(t(e)),"g")};var c=l.v4().source,f=l.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(c,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return a_=new RegExp("(?:^".concat(d,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(s_)}},c_={required:i_,whitespace:function(e,t,n,r,a){(/^\s+$/.test(t)||""===t)&&r.push($A(a.messages.whitespace,e.fullField))},type:function(e,t,n,r,a){if(e.required&&void 0===t)i_(e,t,n,r,a);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?l_[o](t)||r.push($A(a.messages.types[o],e.fullField,e.type)):o&&ch(t)!==e.type&&r.push($A(a.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,a){var o="number"==typeof e.len,i="number"==typeof e.min,u="number"==typeof e.max,s=t,l=null,c="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(c?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==e.len&&r.push($A(a.messages[l].len,e.fullField,e.len)):i&&!u&&se.max?r.push($A(a.messages[l].max,e.fullField,e.max)):i&&u&&(se.max)&&r.push($A(a.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,a){e[o_]=Array.isArray(e[o_])?e[o_]:[],-1===e[o_].indexOf(t)&&r.push($A(a.messages[o_],e.fullField,e[o_].join(", ")))},pattern:function(e,t,n,r,a){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push($A(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push($A(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},f_=function(e,t,n,r,a){var o=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t,o)&&!e.required)return n();c_.required(e,t,r,i,a,o),ZA(t,o)||c_.type(e,t,r,i,a)}n(i)},d_={string:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t,"string")&&!e.required)return n();c_.required(e,t,r,o,a,"string"),ZA(t,"string")||(c_.type(e,t,r,o,a),c_.range(e,t,r,o,a),c_.pattern(e,t,r,o,a),!0===e.whitespace&&c_.whitespace(e,t,r,o,a))}n(o)},method:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&c_.type(e,t,r,o,a)}n(o)},number:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&(c_.type(e,t,r,o,a),c_.range(e,t,r,o,a))}n(o)},boolean:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&c_.type(e,t,r,o,a)}n(o)},regexp:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),ZA(t)||c_.type(e,t,r,o,a)}n(o)},integer:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&(c_.type(e,t,r,o,a),c_.range(e,t,r,o,a))}n(o)},float:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&(c_.type(e,t,r,o,a),c_.range(e,t,r,o,a))}n(o)},array:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();c_.required(e,t,r,o,a,"array"),null!=t&&(c_.type(e,t,r,o,a),c_.range(e,t,r,o,a))}n(o)},object:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&c_.type(e,t,r,o,a)}n(o)},enum:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a),void 0!==t&&c_.enum(e,t,r,o,a)}n(o)},pattern:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t,"string")&&!e.required)return n();c_.required(e,t,r,o,a),ZA(t,"string")||c_.pattern(e,t,r,o,a)}n(o)},date:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t,"date")&&!e.required)return n();var i;if(c_.required(e,t,r,o,a),!ZA(t,"date"))i=t instanceof Date?t:new Date(t),c_.type(e,i,r,o,a),i&&c_.range(e,i.getTime(),r,o,a)}n(o)},url:f_,hex:f_,email:f_,required:function(e,t,n,r,a){var o=[],i=Array.isArray(t)?"array":ch(t);c_.required(e,t,r,o,a,i),n(o)},any:function(e,t,n,r,a){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(ZA(t)&&!e.required)return n();c_.required(e,t,r,o,a)}n(o)}},p_=function(){function e(t){qh(this,e),dh(this,"rules",null),dh(this,"_messages",YA),this.define(t)}return Qh(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==ch(e)||Array.isArray(e))throw new 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]}))}},{key:"messages",value:function(e){return e&&(this._messages=r_(WA(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof a&&(o=a,a={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,r),Promise.resolve(r);if(a.messages){var i=this.messages();i===YA&&(i=WA()),r_(i,a.messages),a.messages=i}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var a=n.rules[e],o=r[e];a.forEach((function(a){var i=a;"function"==typeof i.transform&&(r===t&&(r=hh({},r)),null!=(o=r[e]=i.transform(o))&&(i.type=i.type||(Array.isArray(o)?"array":ch(o)))),(i="function"==typeof i?{validator:i}:hh({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),u[e]=u[e]||[],u[e].push({rule:i,value:o,source:r,field:e}))}))}));var s={};return t_(u,a,(function(t,n){var o,i=t.rule,u=!("object"!==i.type&&"array"!==i.type||"object"!==ch(i.fields)&&"object"!==ch(i.defaultField));function l(e,t){return hh(hh({},t),{},{fullField:"".concat(i.fullField,".").concat(e),fullFields:i.fullFields?[].concat(fm(i.fullFields),[e]):[e]})}function c(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=Array.isArray(o)?o:[o];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==i.message&&(c=[].concat(i.message));var f=c.map(n_(i,r));if(a.first&&f.length)return s[i.field]=1,n(f);if(u){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map(n_(i,r)):a.error&&(f=[a.error(i,$A(a.messages.required,i.field))]),n(f);var d={};i.defaultField&&Object.keys(t.value).map((function(e){d[e]=i.defaultField})),d=hh(hh({},d),t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.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,fm(f)),e&&e.length&&t.push.apply(t,fm(e)),n(t.length?t:null)}))}else n(f)}if(u=u&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)o=i.asyncValidator(i,t.value,c,t.source,a);else if(i.validator){try{o=i.validator(i,t.value,c,t.source,a)}catch(p){var f,d;null===(f=(d=console).error)||void 0===f||f.call(d,p),a.suppressValidatorError||setTimeout((function(){throw p}),0),c(p.message)}!0===o?c():!1===o?c("function"==typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):o instanceof Array?c(o):o instanceof Error&&c(o.message)}o&&o.then&&o.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){var t=[],n={};function a(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,fm(e)):t.push(e)}for(var i=0;i2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return k_(t,e,n)}))}function k_(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function S_(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===ch(t.target)&&e in t.target?t.target[e]:t}function x_(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(fm(e.slice(0,n)),[a],fm(e.slice(n,t)),fm(e.slice(t+1,r))):o<0?[].concat(fm(e.slice(0,t)),fm(e.slice(t+1,n+1)),[a],fm(e.slice(n+1,r))):e}var w_=["name"],N_=[];function O_(e,t,n,r,a,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var I_=function(e){$h(n,e);var t=tm(n);function n(e){var r;(qh(this,n),dh(em(r=t.call(this,e)),"state",{resetCount:0}),dh(em(r),"cancelRegisterFunc",null),dh(em(r),"mounted",!1),dh(em(r),"touched",!1),dh(em(r),"dirty",!1),dh(em(r),"validatePromise",void 0),dh(em(r),"prevValidating",void 0),dh(em(r),"errors",N_),dh(em(r),"warnings",N_),dh(em(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,a=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,__(a)),r.cancelRegisterFunc=null})),dh(em(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(fm(void 0===n?[]:n),fm(t)):[]})),dh(em(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,a=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(a):e}))})),dh(em(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),dh(em(r),"metaCache",null),dh(em(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=hh(hh({},r.getMeta()),{},{destroy:e});Bm(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),dh(em(r),"onStoreChange",(function(e,t,n){var a=r.props,o=a.shouldUpdate,i=a.dependencies,u=void 0===i?[]:i,s=a.onReset,l=n.store,c=r.getNamePath(),f=r.getValue(e),d=r.getValue(l),p=t&&F_(t,c);switch("valueUpdate"!==n.type||"external"!==n.source||Bm(f,d)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=N_,r.warnings=N_,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=N_,r.warnings=N_,r.triggerMetaEvent(),null==s||s(),void r.refresh();break;case"remove":if(o)return void r.reRender();break;case"setField":var h=n.data;if(p)return"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||N_),"warnings"in h&&(r.warnings=h.warnings||N_),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&F_(t,c,!0))return void r.reRender();if(o&&!c.length&&O_(o,e,l,f,d,n))return void r.reRender();break;case"dependenciesUpdate":if(u.map(__).some((function(e){return F_(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!u.length||c.length||o)&&O_(o,e,l,f,d,n))return void r.reRender()}!0===o&&r.reRender()})),dh(em(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),a=e||{},o=a.triggerName,i=a.validateOnly,u=void 0!==i&&i,s=Promise.resolve().then(dC(cC().mark((function a(){var i,u,l,c,f,d,p;return cC().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(r.mounted){a.next=2;break}return a.abrupt("return",[]);case 2:if(i=r.props,u=i.validateFirst,l=void 0!==u&&u,c=i.messageVariables,f=i.validateDebounce,d=r.getRules(),o&&(d=d.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||VA(t).includes(o)}))),!f||!o){a.next=10;break}return a.next=8,new Promise((function(e){setTimeout(e,f)}));case 8:if(r.validatePromise===s){a.next=10;break}return a.abrupt("return",[]);case 10:return(p=y_(t,n,d,e,l,c)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N_;if(r.validatePromise===s){var t;r.validatePromise=null;var n=[],a=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?N_:r;t?a.push.apply(a,fm(o)):n.push.apply(n,fm(o))})),r.errors=n,r.warnings=a,r.triggerMetaEvent(),r.reRender()}})),a.abrupt("return",p);case 13:case"end":return a.stop()}}),a)}))));return u||(r.validatePromise=s,r.dirty=!0,r.errors=N_,r.warnings=N_,r.triggerMetaEvent(),r.reRender()),s})),dh(em(r),"isFieldValidating",(function(){return!!r.validatePromise})),dh(em(r),"isFieldTouched",(function(){return r.touched})),dh(em(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(UA).getInitialValue)(r.getNamePath())})),dh(em(r),"getErrors",(function(){return r.errors})),dh(em(r),"getWarnings",(function(){return r.warnings})),dh(em(r),"isListField",(function(){return r.props.isListField})),dh(em(r),"isList",(function(){return r.props.isList})),dh(em(r),"isPreserve",(function(){return r.props.preserve})),dh(em(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}})),dh(em(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return hh(hh({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=ah(e);return 1===n.length&&oe.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),dh(em(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Nv(e||t(!0),n)})),dh(em(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,a=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,u=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,f=void 0!==o?o:c.validateTrigger,d=r.getNamePath(),p=c.getInternalHooks,h=c.getFieldsValue,m=p(UA).dispatch,g=r.getValue(),v=l||function(e){return dh({},s,e)},E=e[a],D=void 0!==n?v(g):{},b=hh(hh({},e),D);return b[a]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),a=0;a0&&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)}))}})),dh(this,"timeoutId",null),dh(this,"warningUnhooked",(function(){})),dh(this,"updateStore",(function(e){n.store=e})),dh(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),dh(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new L_;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),dh(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=__(e);return t.get(n)||{INVALIDATE_NAME_PATH:__(e)}}))})),dh(this,"getFieldsValue",(function(e,t){var r,a,o;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,a=t):e&&"object"===ch(e)&&(o=e.strict,a=e.filter),!0===r&&!a)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),u=[];return i.forEach((function(e){var t,n,i,s,l="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(o){if(null!==(i=(s=e).isList)&&void 0!==i&&i.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(a){var c="getMeta"in e?e.getMeta():null;a(c)&&u.push(l)}else u.push(l)})),T_(n.store,u.map(__))})),dh(this,"getFieldValue",(function(e){n.warningUnhooked();var t=__(e);return Nv(n.store,t)})),dh(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:__(e[n]),errors:[],warnings:[]}}))})),dh(this,"getFieldError",(function(e){n.warningUnhooked();var t=__(e);return n.getFieldsError([t])[0].errors})),dh(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=__(e);return n.getFieldsError([t])[0].warnings})),dh(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new L_,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var a=t.get(r)||new Set;a.add({entity:e,value:n}),t.set(r,a)}}));var a;e.entities?a=e.entities:e.namePathList?(a=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=a).push.apply(n,fm(fm(r).map((function(e){return e.entity}))))}))):a=r,a.forEach((function(r){if(void 0!==r.props.initialValue){var a=r.getNamePath();if(void 0!==n.getInitialValue(a))lh(!1,"Form already set 'initialValues' with path '".concat(a.join("."),"'. Field can not overwrite it."));else{var o=t.get(a);if(o&&o.size>1)lh(!1,"Multiple Field with path '".concat(a.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var i=n.getFieldValue(a);r.isListField()||e.skipExist&&void 0!==i||n.updateStore(Iv(n.store,a,fm(o)[0].value))}}}}))})),dh(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Pv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(__);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(Iv(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),dh(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var a=e.name,o=Rm(e,M_),i=__(a);r.push(i),"value"in o&&n.updateStore(Iv(n.store,i,o.value)),n.notifyObservers(t,[i],{type:"setField",data:e})})),n.notifyWatch(r)})),dh(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=hh(hh({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),dh(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Nv(n.store,r)&&n.updateStore(Iv(n.store,r,t))}})),dh(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),dh(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,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(a)&&(!r||o.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every((function(e){return!k_(e.getNamePath(),t)}))){var u=n.store;n.updateStore(Iv(u,t,i,!0)),n.notifyObservers(u,[t],{type:"remove"}),n.triggerDependenciesUpdate(u,t)}}n.notifyWatch([t])}})),dh(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var a=e.namePath,o=e.triggerName;n.validateFields([a],{triggerName:o})}})),dh(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var a=hh(hh({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,a)}))}else n.forceRootUpdate()})),dh(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(fm(r))}),r})),dh(this,"updateValue",(function(e,t){var r=__(e),a=n.store;n.updateStore(Iv(n.store,r,t)),n.notifyObservers(a,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(a,r),i=n.callbacks.onValuesChange;i&&i(T_(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(fm(o)))})),dh(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=Pv(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),dh(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),dh(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],a=new L_;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=__(t);a.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(a.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var a=n.getNamePath();n.isFieldDirty()&&a.length&&(r.push(a),e(a))}}))}(e),r})),dh(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var a=n.getFields();if(t){var o=new L_;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),a.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}var i=a.filter((function(t){var n=t.name;return F_(e,n)}));i.length&&r(i,a)}})),dh(this,"validateFields",(function(e,t){var r,a;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,a=t):a=e;var o=!!r,i=o?r.map(__):[],u=[],s=String(Date.now()),l=new Set,c=a||{},f=c.recursive,d=c.dirty;n.getFieldEntities(!0).forEach((function(e){if(o||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())){var t=e.getNamePath();if(l.add(t.join(s)),!o||F_(i,t,f)){var r=e.validateRules(hh({validateMessages:hh(hh({},m_),n.validateMessages)},a));u.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],a=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?a.push.apply(a,fm(n)):r.push.apply(r,fm(n))})),r.length?Promise.reject({name:t,errors:r,warnings:a}):{name:t,errors:r,warnings:a}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(a,o){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&o(r),a(r))}))}))})):Promise.resolve([])}(u);n.lastValidatePromise=p,p.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 h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var m=i.filter((function(e){return l.has(e.join(s))}));return n.triggerOnFieldsChange(m),h})),dh(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function U_(e){var t=oe.useRef(),n=bm(oe.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new H_((function(){n({})}));t.current=r.getForm()}return[t.current]}var j_=oe.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),z_=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],G_=function(e,t){var n=e.name,r=e.initialValues,a=e.fields,o=e.form,i=e.preserve,u=e.children,s=e.component,l=void 0===s?"form":s,c=e.validateMessages,f=e.validateTrigger,d=void 0===f?"onChange":f,p=e.onValuesChange,h=e.onFieldsChange,m=e.onFinish,g=e.onFinishFailed,v=e.clearOnDestroy,E=Rm(e,z_),D=oe.useRef(null),b=oe.useContext(j_),y=bm(U_(o),1)[0],C=y.getInternalHooks(UA),A=C.useSubscribe,_=C.setInitialValues,T=C.setCallbacks,F=C.setValidateMessages,k=C.setPreserve,S=C.destroyForm;oe.useImperativeHandle(t,(function(){return hh(hh({},y),{},{nativeElement:D.current})})),oe.useEffect((function(){return b.registerForm(n,y),function(){b.unregisterForm(n)}}),[b,y,n]),F(hh(hh({},b.validateMessages),c)),T({onValuesChange:p,onFieldsChange:function(e){if(b.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a=0&&t<=n.length?(l.keys=[].concat(fm(l.keys.slice(0,t)),[l.id],fm(l.keys.slice(t))),o([].concat(fm(n.slice(0,t)),[e],fm(n.slice(t))))):(l.keys=[].concat(fm(l.keys),[l.id]),o([].concat(fm(n),[e]))),l.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.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=s();e<0||e>=n.length||t<0||t>=n.length||(l.keys=x_(l.keys,e,t),o(x_(n,e,t)))}}},d=a||[];return Array.isArray(d)||(d=[]),r(d.map((function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}})),f,t)}))))},W_.useForm=U_,W_.useWatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]&&arguments[4]?"&":"";return u(u(u(u({},"\n ".concat(a).concat(e,"-enter,\n ").concat(a).concat(e,"-appear\n "),Object.assign(Object.assign({},function(e){return{animationDuration:e,animationFillMode:"both"}}(r)),{animationPlayState:"paused"})),"".concat(a).concat(e,"-leave"),Object.assign(Object.assign({},function(e){return{animationDuration:e,animationFillMode:"both"}}(r)),{animationPlayState:"paused"})),"\n ".concat(a).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(a).concat(e,"-appear").concat(e,"-appear-active\n "),{animationName:t,animationPlayState:"running"}),"".concat(a).concat(e,"-leave").concat(e,"-leave-active"),{animationName:n,animationPlayState:"running",pointerEvents:"none"})},K_=new Sv("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$_=new Sv("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Z_=new Sv("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),J_=new Sv("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),eT=new Sv("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),tT=new Sv("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),nT={zoom:{inKeyframes:K_,outKeyframes:$_},"zoom-big":{inKeyframes:Z_,outKeyframes:J_},"zoom-big-fast":{inKeyframes:Z_,outKeyframes:J_},"zoom-left":{inKeyframes:new Sv("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Sv("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Sv("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Sv("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:eT,outKeyframes:tT},"zoom-down":{inKeyframes:new Sv("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Sv("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},rT=function(e,t){var n=e.antCls,r="".concat(n,"-").concat(t),a=nT[t],o=a.inKeyframes,i=a.outKeyframes;return[Q_(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),u(u({},"\n ".concat(r,"-enter,\n ").concat(r,"-appear\n "),{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}}),"".concat(r,"-leave"),{animationTimingFunction:e.motionEaseInOutCirc})]},aT=ie.createContext({});function oT(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,u=o.content,s=a.x,l=void 0===s?0:s,c=a.y,f=void 0===c?0:c,d=oe.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],m=n.points[1],g=h[0],v=h[1],E=m[0],D=m[1];g!==E&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=f,v!==D&&["l","r"].includes(v)?"l"===v?p.left=0:p.right=0:p.left=l}return oe.createElement("div",{ref:d,className:Pp("".concat(t,"-arrow"),i),style:p},u)}function iT(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?oe.createElement(Ab,Mp({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return oe.createElement("div",{style:{zIndex:r},className:Pp("".concat(t,"-mask"),n)})})):null}var uT=oe.memo((function(e){return e.children}),(function(e,t){return t.cache})),sT=oe.forwardRef((function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,u=e.onVisibleChanged,s=e.open,l=e.keepDom,c=e.fresh,f=e.onClick,d=e.mask,p=e.arrow,h=e.arrowPos,m=e.align,g=e.motion,v=e.maskMotion,E=e.forceRender,D=e.getPopupContainer,b=e.autoDestroy,y=e.portal,C=e.zIndex,A=e.onMouseEnter,_=e.onMouseLeave,T=e.onPointerEnter,F=e.ready,k=e.offsetX,S=e.offsetY,x=e.offsetR,w=e.offsetB,N=e.onAlign,O=e.onPrepare,I=e.stretch,R=e.targetWidth,B=e.targetHeight,P="function"==typeof n?n():n,L=s||l,M=(null==D?void 0:D.length)>0,H=bm(oe.useState(!D||!M),2),U=H[0],j=H[1];if(pg((function(){!U&&M&&i&&j(!0)}),[U,M,i]),!U)return null;var z="auto",G={left:"-1000vw",top:"-1000vh",right:z,bottom:z};if(F||!s){var V,W=m.points,Y=m.dynamicInset||(null===(V=m._experimental)||void 0===V?void 0:V.dynamicInset),q=Y&&"r"===W[0][1],X=Y&&"b"===W[0][0];q?(G.right=x,G.left=z):(G.left=k,G.right=z),X?(G.bottom=w,G.top=z):(G.top=S,G.bottom=z)}var Q={};return I&&(I.includes("height")&&B?Q.height=B:I.includes("minHeight")&&B&&(Q.minHeight=B),I.includes("width")&&R?Q.width=R:I.includes("minWidth")&&R&&(Q.minWidth=R)),s||(Q.pointerEvents="none"),oe.createElement(y,{open:E||L,getContainer:D&&function(){return D(i)},autoDestroy:b},oe.createElement(iT,{prefixCls:a,open:s,zIndex:C,mask:d,motion:v}),oe.createElement(im,{onResize:N,disabled:!s},(function(e){return oe.createElement(Ab,Mp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:E,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:O,onEnterPrepare:O,visible:s,onVisibleChanged:function(e){var t;null==g||null===(t=g.onVisibleChanged)||void 0===t||t.call(g,e),u(e)}}),(function(n,i){var u=n.className,l=n.style,d=Pp(a,u,r);return oe.createElement("div",{ref:Dh(e,t,i),className:d,style:hh(hh(hh(hh({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),Q),l),{},{boxSizing:"border-box",zIndex:C},o),onMouseEnter:A,onMouseLeave:_,onPointerEnter:T,onClick:f},p&&oe.createElement(oT,{prefixCls:a,arrow:p,arrowPos:h,align:m}),oe.createElement(uT,{cache:!s&&!c},P))}))})))})),lT=oe.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=yh(n),o=oe.useCallback((function(e){Eh(t,r?r(e):e)}),[r]),i=bh(o,n.ref);return a?oe.cloneElement(n,{ref:i}):n})),cT=oe.createContext(null);function fT(e){return e?Array.isArray(e)?e:[e]:[]}function dT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function pT(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hT(e){return e.ownerDocument.defaultView}function mT(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var a=hT(n).getComputedStyle(n);[a.overflowX,a.overflowY,a.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function gT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function vT(e){return gT(parseFloat(e),0)}function ET(e,t){var n=hh({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=hT(e).getComputedStyle(e),r=t.overflow,a=t.overflowClipMargin,o=t.borderTopWidth,i=t.borderBottomWidth,u=t.borderLeftWidth,s=t.borderRightWidth,l=e.getBoundingClientRect(),c=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,h=vT(o),m=vT(i),g=vT(u),v=vT(s),E=gT(Math.round(l.width/d*1e3)/1e3),D=gT(Math.round(l.height/c*1e3)/1e3),b=(d-p-g-v)*E,y=(c-f-h-m)*D,C=h*D,A=m*D,_=g*E,T=v*E,F=0,k=0;if("clip"===r){var S=vT(a);F=S*E,k=S*D}var x=l.x+_-F,w=l.y+C-k,N=x+l.width+2*F-_-T-b,O=w+l.height+2*k-C-A-y;n.left=Math.max(n.left,x),n.top=Math.max(n.top,w),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,O)}})),n}function DT(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function bT(e,t){var n=bm(t||[],2),r=n[0],a=n[1];return[DT(e.width,r),DT(e.height,a)]}function yT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function CT(e,t){var n,r=t[0],a=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===a?e.x:"r"===a?e.x+e.width:e.x+e.width/2,y:n}}function AT(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 _T=["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","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var TT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PA,t=oe.forwardRef((function(t,n){var r=t.prefixCls,a=void 0===r?"rc-trigger-popup":r,o=t.children,i=t.action,u=void 0===i?"hover":i,s=t.showAction,l=t.hideAction,c=t.popupVisible,f=t.defaultPopupVisible,d=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,m=t.mouseLeaveDelay,g=void 0===m?.1:m,v=t.focusDelay,E=t.blurDelay,D=t.mask,b=t.maskClosable,y=void 0===b||b,C=t.getPopupContainer,A=t.forceRender,_=t.autoDestroy,T=t.destroyPopupOnHide,F=t.popup,k=t.popupClassName,S=t.popupStyle,x=t.popupPlacement,w=t.builtinPlacements,N=void 0===w?{}:w,O=t.popupAlign,I=t.zIndex,R=t.stretch,B=t.getPopupClassNameFromAlign,P=t.fresh,L=t.alignPoint,M=t.onPopupClick,H=t.onPopupAlign,U=t.arrow,j=t.popupMotion,z=t.maskMotion,G=t.popupTransitionName,V=t.popupAnimation,W=t.maskTransitionName,Y=t.maskAnimation,q=t.className,X=t.getTriggerDOMNode,Q=Rm(t,_T),K=_||T||!1,$=bm(oe.useState(!1),2),Z=$[0],J=$[1];pg((function(){J(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}())}),[]);var ee=oe.useRef({}),te=oe.useContext(cT),ne=oe.useMemo((function(){return{registerSubPopup:function(e,t){ee.current[e]=t,null==te||te.registerSubPopup(e,t)}}}),[te]),re=HA(),ae=bm(oe.useState(null),2),ie=ae[0],ue=ae[1],se=oe.useRef(null),le=gD((function(e){se.current=e,mh(e)&&ie!==e&&ue(e),null==te||te.registerSubPopup(re,e)})),ce=bm(oe.useState(null),2),fe=ce[0],de=ce[1],pe=oe.useRef(null),he=gD((function(e){mh(e)&&fe!==e&&(de(e),pe.current=e)})),me=oe.Children.only(o),ge=(null==me?void 0:me.props)||{},ve={},Ee=gD((function(e){var t,n,r=fe;return(null==r?void 0:r.contains(e))||(null===(t=Xb(r))||void 0===t?void 0:t.host)===e||e===r||(null==ie?void 0:ie.contains(e))||(null===(n=Xb(ie))||void 0===n?void 0:n.host)===e||e===ie||Object.values(ee.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),De=pT(a,j,V,G),be=pT(a,z,Y,W),ye=bm(oe.useState(f||!1),2),Ce=ye[0],Ae=ye[1],_e=null!=c?c:Ce,Te=gD((function(e){void 0===c&&Ae(e)}));pg((function(){Ae(c||!1)}),[c]);var Fe=oe.useRef(_e);Fe.current=_e;var ke=oe.useRef([]);ke.current=[];var Se=gD((function(e){var t;Te(e),(null!==(t=ke.current[ke.current.length-1])&&void 0!==t?t:_e)!==e&&(ke.current.push(e),null==d||d(e))})),xe=oe.useRef(),we=function(){clearTimeout(xe.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;we(),0===t?Se(e):xe.current=setTimeout((function(){Se(e)}),1e3*t)};oe.useEffect((function(){return we}),[]);var Oe=bm(oe.useState(!1),2),Ie=Oe[0],Re=Oe[1];pg((function(e){e&&!_e||Re(!0)}),[_e]);var Be=bm(oe.useState(null),2),Pe=Be[0],Le=Be[1],Me=bm(oe.useState([0,0]),2),He=Me[0],Ue=Me[1],je=function(e){Ue([e.clientX,e.clientY])},ze=function(e,t,n,r,a,o,i){var u=bm(oe.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),2),s=u[0],l=u[1],c=oe.useRef(0),f=oe.useMemo((function(){return t?mT(t):[]}),[t]),d=oe.useRef({});e||(d.current={});var p=gD((function(){if(t&&n&&e){var u,s,c,p=t,h=p.ownerDocument,m=hT(p).getComputedStyle(p),g=m.width,v=m.height,E=m.position,D=p.style.left,b=p.style.top,y=p.style.right,C=p.style.bottom,A=p.style.overflow,_=hh(hh({},a[r]),o),T=h.createElement("div");if(null===(u=p.parentElement)||void 0===u||u.appendChild(T),T.style.left="".concat(p.offsetLeft,"px"),T.style.top="".concat(p.offsetTop,"px"),T.style.position=E,T.style.height="".concat(p.offsetHeight,"px"),T.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))c={x:n[0],y:n[1],width:0,height:0};else{var F=n.getBoundingClientRect();c={x:F.x,y:F.y,width:F.width,height:F.height}}var k=p.getBoundingClientRect(),S=h.documentElement,x=S.clientWidth,w=S.clientHeight,N=S.scrollWidth,O=S.scrollHeight,I=S.scrollTop,R=S.scrollLeft,B=k.height,P=k.width,L=c.height,M=c.width,H={left:0,top:0,right:x,bottom:w},U={left:-R,top:-I,right:N-R,bottom:O-I},j=_.htmlRegion,z="visible",G="visibleFirst";"scroll"!==j&&j!==G&&(j=z);var V=j===G,W=ET(U,f),Y=ET(H,f),q=j===z?Y:W,X=V?Y:q;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var Q=p.getBoundingClientRect();p.style.left=D,p.style.top=b,p.style.right=y,p.style.bottom=C,p.style.overflow=A,null===(s=p.parentElement)||void 0===s||s.removeChild(T);var K=gT(Math.round(P/parseFloat(g)*1e3)/1e3),$=gT(Math.round(B/parseFloat(v)*1e3)/1e3);if(0===K||0===$||mh(n)&&!FC(n))return;var Z=_.offset,J=_.targetOffset,ee=bm(bT(k,Z),2),te=ee[0],ne=ee[1],re=bm(bT(c,J),2),ae=re[0],oe=re[1];c.x-=ae,c.y-=oe;var ie=bm(_.points||[],2),ue=ie[0],se=yT(ie[1]),le=yT(ue),ce=CT(c,se),fe=CT(k,le),de=hh({},_),pe=ce.x-fe.x+te,he=ce.y-fe.y+ne;function ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=k.x+e,a=k.y+t,o=r+P,i=a+B,u=Math.max(r,n.left),s=Math.max(a,n.top),l=Math.min(o,n.right),c=Math.min(i,n.bottom);return Math.max(0,(l-u)*(c-s))}var me,ge,ve,Ee,De=ut(pe,he),be=ut(pe,he,Y),ye=CT(c,["t","l"]),Ce=CT(k,["t","l"]),Ae=CT(c,["b","r"]),_e=CT(k,["b","r"]),Te=_.overflow||{},Fe=Te.adjustX,ke=Te.adjustY,Se=Te.shiftX,xe=Te.shiftY,we=function(e){return"boolean"==typeof e?e:e>=0};function st(){me=k.y+he,ge=me+B,ve=k.x+pe,Ee=ve+P}st();var Ne=we(ke),Oe=le[0]===se[0];if(Ne&&"t"===le[0]&&(ge>X.bottom||d.current.bt)){var Ie=he;Oe?Ie-=B-L:Ie=ye.y-_e.y-ne;var Re=ut(pe,Ie),Be=ut(pe,Ie,Y);Re>De||Re===De&&(!V||Be>=be)?(d.current.bt=!0,he=Ie,ne=-ne,de.points=[AT(le,0),AT(se,0)]):d.current.bt=!1}if(Ne&&"b"===le[0]&&(meDe||Le===De&&(!V||Me>=be)?(d.current.tb=!0,he=Pe,ne=-ne,de.points=[AT(le,0),AT(se,0)]):d.current.tb=!1}var He=we(Fe),Ue=le[1]===se[1];if(He&&"l"===le[1]&&(Ee>X.right||d.current.rl)){var je=pe;Ue?je-=P-M:je=ye.x-_e.x-te;var ze=ut(je,he),Ge=ut(je,he,Y);ze>De||ze===De&&(!V||Ge>=be)?(d.current.rl=!0,pe=je,te=-te,de.points=[AT(le,1),AT(se,1)]):d.current.rl=!1}if(He&&"r"===le[1]&&(veDe||We===De&&(!V||Ye>=be)?(d.current.lr=!0,pe=Ve,te=-te,de.points=[AT(le,1),AT(se,1)]):d.current.lr=!1}st();var qe=!0===Se?0:Se;"number"==typeof qe&&(veY.right&&(pe-=Ee-Y.right-te,c.x>Y.right-qe&&(pe+=c.x-Y.right+qe)));var Xe=!0===xe?0:xe;"number"==typeof Xe&&(meY.bottom&&(he-=ge-Y.bottom-ne,c.y>Y.bottom-Xe&&(he+=c.y-Y.bottom+Xe)));var Qe=k.x+pe,Ke=Qe+P,$e=k.y+he,Ze=$e+B,Je=c.x,et=Je+M,tt=c.y,nt=tt+L,rt=(Math.max(Qe,Je)+Math.min(Ke,et))/2-Qe,at=(Math.max($e,tt)+Math.min(Ze,nt))/2-$e;null==i||i(t,de);var ot=Q.right-k.x-(pe+k.width),it=Q.bottom-k.y-(he+k.height);1===K&&(pe=Math.round(pe),ot=Math.round(ot)),1===$&&(he=Math.round(he),it=Math.round(it)),l({ready:!0,offsetX:pe/K,offsetY:he/$,offsetR:ot/K,offsetB:it/$,arrowX:rt/K,arrowY:at/$,scaleX:K,scaleY:$,align:de})}})),h=function(){l((function(e){return hh(hh({},e),{},{ready:!1})}))};return pg(h,[r]),pg((function(){e||h()}),[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){c.current+=1;var e=c.current;Promise.resolve().then((function(){c.current===e&&p()}))}]}(_e,ie,L?He:fe,x,N,O,H),Ge=bm(ze,11),Ve=Ge[0],We=Ge[1],Ye=Ge[2],qe=Ge[3],Xe=Ge[4],Qe=Ge[5],Ke=Ge[6],$e=Ge[7],Ze=Ge[8],Je=Ge[9],et=Ge[10],tt=function(e,t,n,r){return oe.useMemo((function(){var a=fT(null!=n?n:t),o=fT(null!=r?r:t),i=new Set(a),u=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),u.has("hover")&&(u.delete("hover"),u.add("click"))),[i,u]}),[e,t,n,r])}(Z,u,s,l),nt=bm(tt,2),rt=nt[0],at=nt[1],ot=rt.has("click"),it=at.has("click")||at.has("contextMenu"),ut=gD((function(){Ie||et()}));!function(e,t,n,r,a){pg((function(){if(e&&t&&n){var o=n,i=mT(t),u=mT(o),s=hT(o),l=new Set([s].concat(fm(i),fm(u)));function c(){r(),a()}return l.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),s.addEventListener("resize",c,{passive:!0}),r(),function(){l.forEach((function(e){e.removeEventListener("scroll",c),s.removeEventListener("resize",c)}))}}}),[e,t,n])}(_e,fe,ie,ut,(function(){Fe.current&&L&&it&&Ne(!1)})),pg((function(){ut()}),[He,x]),pg((function(){!_e||null!=N&&N[x]||ut()}),[JSON.stringify(O)]);var st=oe.useMemo((function(){var e=function(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1?i-1:0),s=1;s1?n-1:0),a=1;a1?n-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:void 0,r=oe.useContext(X_);return[t=void 0!==e?e:!1===n?"borderless":null!=r?r:"outlined",ST.includes(t)]},wT={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"},NT=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:wT}))},OT=oe.forwardRef(NT);function IT(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.className,i=e.style;return oe.createElement("div",{className:Pp("".concat(n,"-content"),o),style:i},oe.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:a},"function"==typeof t?t():t))}var RT={shiftX:64,adjustY:1},BT={adjustX:1,shiftY:!0},PT=[0,0],LT={left:{points:["cr","cl"],overflow:BT,offset:[-4,0],targetOffset:PT},right:{points:["cl","cr"],overflow:BT,offset:[4,0],targetOffset:PT},top:{points:["bc","tc"],overflow:RT,offset:[0,-4],targetOffset:PT},bottom:{points:["tc","bc"],overflow:RT,offset:[0,4],targetOffset:PT},topLeft:{points:["bl","tl"],overflow:RT,offset:[0,-4],targetOffset:PT},leftTop:{points:["tr","tl"],overflow:BT,offset:[-4,0],targetOffset:PT},topRight:{points:["br","tr"],overflow:RT,offset:[0,-4],targetOffset:PT},rightTop:{points:["tl","tr"],overflow:BT,offset:[4,0],targetOffset:PT},bottomRight:{points:["tr","br"],overflow:RT,offset:[0,4],targetOffset:PT},rightBottom:{points:["bl","br"],overflow:BT,offset:[4,0],targetOffset:PT},bottomLeft:{points:["tl","bl"],overflow:RT,offset:[0,4],targetOffset:PT},leftBottom:{points:["br","bl"],overflow:BT,offset:[-4,0],targetOffset:PT}},MT=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],HT=function(e,t){var n=e.overlayClassName,r=e.trigger,a=void 0===r?["hover"]:r,o=e.mouseEnterDelay,i=void 0===o?0:o,u=e.mouseLeaveDelay,s=void 0===u?.1:u,l=e.overlayStyle,c=e.prefixCls,f=void 0===c?"rc-tooltip":c,d=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,m=e.transitionName,g=e.animation,v=e.motion,E=e.placement,D=void 0===E?"right":E,b=e.align,y=void 0===b?{}:b,C=e.destroyTooltipOnHide,A=void 0!==C&&C,_=e.defaultVisible,T=e.getTooltipContainer,F=e.overlayInnerStyle;e.arrowContent;var k=e.overlay,S=e.id,x=e.showArrow,w=void 0===x||x,N=Rm(e,MT),O=oe.useRef(null);oe.useImperativeHandle(t,(function(){return O.current}));var I=hh({},N);"visible"in e&&(I.popupVisible=e.visible);return oe.createElement(TT,Mp({popupClassName:n,prefixCls:f,popup:function(){return oe.createElement(IT,{key:"content",prefixCls:f,id:S,overlayInnerStyle:F},k)},action:a,builtinPlacements:LT,popupPlacement:D,ref:O,popupAlign:y,getPopupContainer:T,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:m,popupAnimation:g,popupMotion:v,defaultPopupVisible:_,autoDestroy:A,mouseLeaveDelay:s,popupStyle:l,mouseEnterDelay:i,arrow:w},I),d)},UT=oe.forwardRef(HT);var jT=function(e,t,n){var r=e.sizePopupArrow,a=e.arrowPolygon,o=e.arrowPath,i=e.arrowShadowWidth,u=e.borderRadiusXS;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:(0,e.calc)(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:"0 0 ".concat(ug(u)," 0")},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},zT=8;function GT(e){var t=e.contentRadius,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:e.limitVerticalRadius?zT:n}}function VT(e,t){return e?t:{}}function WT(e,t,n){var r=e.componentCls,a=e.boxShadowPopoverArrow,o=e.arrowOffsetVertical,i=e.arrowOffsetHorizontal,s=n||{},l=s.arrowDistance,c=void 0===l?0:l,f=s.arrowPlacement,d=void 0===f?{left:!0,right:!0,top:!0,bottom:!0}:f;return u({},r,Object.assign(Object.assign(Object.assign(Object.assign(u({},"".concat(r,"-arrow"),[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},jT(e,t,a)),{"&:before":{background:t}})]),VT(!!d.top,u(u(u(u({},["&-placement-top > ".concat(r,"-arrow"),"&-placement-topLeft > ".concat(r,"-arrow"),"&-placement-topRight > ".concat(r,"-arrow")].join(","),{bottom:c,transform:"translateY(100%) rotate(180deg)"}),"&-placement-top > ".concat(r,"-arrow"),{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"}),"&-placement-topLeft > ".concat(r,"-arrow"),{left:{_skip_check_:!0,value:i}}),"&-placement-topRight > ".concat(r,"-arrow"),{right:{_skip_check_:!0,value:i}}))),VT(!!d.bottom,u(u(u(u({},["&-placement-bottom > ".concat(r,"-arrow"),"&-placement-bottomLeft > ".concat(r,"-arrow"),"&-placement-bottomRight > ".concat(r,"-arrow")].join(","),{top:c,transform:"translateY(-100%)"}),"&-placement-bottom > ".concat(r,"-arrow"),{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"}),"&-placement-bottomLeft > ".concat(r,"-arrow"),{left:{_skip_check_:!0,value:i}}),"&-placement-bottomRight > ".concat(r,"-arrow"),{right:{_skip_check_:!0,value:i}}))),VT(!!d.left,u(u(u(u({},["&-placement-left > ".concat(r,"-arrow"),"&-placement-leftTop > ".concat(r,"-arrow"),"&-placement-leftBottom > ".concat(r,"-arrow")].join(","),{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"}),"&-placement-left > ".concat(r,"-arrow"),{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"}),"&-placement-leftTop > ".concat(r,"-arrow"),{top:o}),"&-placement-leftBottom > ".concat(r,"-arrow"),{bottom:o}))),VT(!!d.right,u(u(u(u({},["&-placement-right > ".concat(r,"-arrow"),"&-placement-rightTop > ".concat(r,"-arrow"),"&-placement-rightBottom > ".concat(r,"-arrow")].join(","),{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"}),"&-placement-right > ".concat(r,"-arrow"),{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"}),"&-placement-rightTop > ".concat(r,"-arrow"),{top:o}),"&-placement-rightBottom > ".concat(r,"-arrow"),{bottom:o}))))}var YT={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"]}},qT={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"]}},XT=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QT(e){var t=e.arrowWidth,n=e.autoAdjustOverflow,r=e.arrowPointAtCenter,a=e.offset,o=e.borderRadius,i=e.visibleFirst,u=t/2,s={};return Object.keys(YT).forEach((function(e){var l=r&&qT[e]||YT[e],c=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(s[e]=c,XT.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-u-a;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=u+a;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-u-a;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=u+a}var f=GT({contentRadius:o,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-f.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":c.offset[0]=f.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":c.offset[1]=-f.arrowOffsetHorizontal-u;break;case"leftBottom":case"rightBottom":c.offset[1]=f.arrowOffsetHorizontal+u}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};var a=r&&"object"===A(r)?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.arrowOffsetHorizontal+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=2*t.arrowOffsetVertical+n,o.shiftX=!0,o.adjustX=!0}var i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(e,f,t,n),i&&(c.htmlRegion="visibleFirst")})),s}var KT=function(e){var t=e.componentCls,n=e.tooltipMaxWidth,r=e.tooltipColor,a=e.tooltipBg,o=e.tooltipBorderRadius,i=e.zIndexPopup,s=e.controlHeight,l=e.boxShadowSecondary,c=e.paddingSM,f=e.paddingXS;return[u({},t,Object.assign(Object.assign(Object.assign(Object.assign({},bD(e)),u(u(u({position:"absolute",zIndex:i,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":a},"".concat(t,"-inner"),{minWidth:"1em",minHeight:s,padding:"".concat(ug(e.calc(c).div(2).equal())," ").concat(ug(f)),color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:"border-box"}),["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(","),u({},"".concat(t,"-inner"),{borderRadius:e.min(o,zT)})),"".concat(t,"-content"),{position:"relative"})),PD(e,(function(e,n){var r=n.darkColor;return u({},"&".concat(t,"-").concat(e),u(u({},"".concat(t,"-inner"),{backgroundColor:r}),"".concat(t,"-arrow"),{"--antd-arrow-background-color":r}))}))),{"&-rtl":{direction:"rtl"}})),WT(e,"var(--antd-arrow-background-color)"),u({},"".concat(t,"-pure"),{position:"relative",maxWidth:"none",margin:e.sizePopupArrow})]},$T=function(e){return Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},GT({contentRadius:e.borderRadius,limitVerticalRadius:!0})),function(e){var t=e.sizePopupArrow,n=e.borderRadiusXS,r=e.borderRadiusOuter,a=t/2,o=a,i=1*r/Math.sqrt(2),u=a-r*(1-1/Math.sqrt(2)),s=a-n*(1/Math.sqrt(2)),l=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),c=2*a-s,f=l,d=2*a-i,p=u,h=2*a-0,m=o,g=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1),E="polygon(".concat(v,"px 100%, 50% ").concat(v,"px, ").concat(2*a-v,"px 100%, ").concat(v,"px 100%)");return{arrowShadowWidth:g,arrowPath:"path('M ".concat(0," ").concat(o," A ").concat(r," ").concat(r," 0 0 0 ").concat(i," ").concat(u," L ").concat(s," ").concat(l," A ").concat(n," ").concat(n," 0 0 1 ").concat(c," ").concat(f," L ").concat(d," ").concat(p," A ").concat(r," ").concat(r," 0 0 0 ").concat(h," ").concat(m," Z')"),arrowPolygon:E}}(FD(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)})))},ZT=function(e){var t=BD("Tooltip",(function(e){var t=e.borderRadius,n=FD(e,{tooltipMaxWidth:250,tooltipColor:e.colorTextLightSolid,tooltipBorderRadius:t,tooltipBg:e.colorBgSpotlight});return[KT(n),rT(e,"zoom-big-fast")]}),$T,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},JT=nD.map((function(e){return"".concat(e,"-inverse")}));function eF(e,t){var n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?nD.includes(e):[].concat(fm(JT),fm(nD)).includes(e)}(t),r=Pp(u({},"".concat(e,"-").concat(t),t&&n)),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}var tF=function(e){var t=e.prefixCls,n=e.className,r=e.placement,a=void 0===r?"top":r,o=e.title,i=e.color,u=e.overlayInnerStyle,s=(0,oe.useContext(qE).getPrefixCls)("tooltip",t),l=v(ZT(s),3),c=l[0],f=l[1],d=l[2],p=eF(s,i),h=p.arrowStyle,m=Object.assign(Object.assign({},u),p.overlayStyle),g=Pp(f,d,s,"".concat(s,"-pure"),"".concat(s,"-placement-").concat(a),n,p.className);return c(oe.createElement("div",{className:g,style:h},oe.createElement("div",{className:"".concat(s,"-arrow")}),oe.createElement(IT,Object.assign({},e,{className:f,prefixCls:s,overlayInnerStyle:m}),o)))},nF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a input".concat(t),{padding:0}),"> input".concat(t,", > textarea").concat(t),{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}}),"&::before",{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}),"".concat(t),{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}})),function(e){var t=e.componentCls;return u({},"".concat(t,"-clear-icon"),{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 ".concat(ug(e.inputAffixPadding))}})}(e)),u({},"".concat(s).concat(t,"-password-icon"),{color:o,cursor:"pointer",transition:"all ".concat(a),"&:hover":{color:i}})))},CF=function(e){var t=e.componentCls,n=e.borderRadiusLG,r=e.borderRadiusSM;return u({},"".concat(t,"-group"),Object.assign(Object.assign(Object.assign({},bD(e)),function(e){var t,n,r=e.componentCls,a=e.antCls;return u(u(u(u(u(u(u(u(u(u(n={position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0},"&[class*='col-']",{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}}),"&-lg ".concat(r,", &-lg > ").concat(r,"-group-addon"),Object.assign({},vF(e))),"&-sm ".concat(r,", &-sm > ").concat(r,"-group-addon"),Object.assign({},EF(e))),"&-lg ".concat(a,"-select-single ").concat(a,"-select-selector"),{height:e.controlHeightLG}),"&-sm ".concat(a,"-select-single ").concat(a,"-select-selector"),{height:e.controlHeightSM}),"> ".concat(r),{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}}),"".concat(r,"-group"),u(u(u({},"&-addon, &-wrap",{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}}),"&-wrap > *",{display:"block !important"}),"&-addon",u(u({position:"relative",padding:"0 ".concat(ug(e.paddingInline)),color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:"all ".concat(e.motionDurationSlow),lineHeight:1},"".concat(a,"-select"),u(u({margin:"".concat(ug(e.calc(e.paddingBlock).add(1).mul(-1).equal())," ").concat(ug(e.calc(e.paddingInline).mul(-1).equal()))},"&".concat(a,"-select-single:not(").concat(a,"-select-customize-input):not(").concat(a,"-pagination-size-changer)"),u({},"".concat(a,"-select-selector"),{backgroundColor:"inherit",border:"".concat(ug(e.lineWidth)," ").concat(e.lineType," transparent"),boxShadow:"none"})),"&-open, &-focused",u({},"".concat(a,"-select-selector"),{color:e.colorPrimary}))),"".concat(a,"-cascader-picker"),u({margin:"-9px ".concat(ug(e.calc(e.paddingInline).mul(-1).equal())),backgroundColor:"transparent"},"".concat(a,"-cascader-input"),{textAlign:"start",border:0,boxShadow:"none"})))),"".concat(r),{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":u({zIndex:1,borderInlineEndWidth:1},"".concat(r,"-search-with-button &"),{zIndex:0})}),"> ".concat(r,":first-child, ").concat(r,"-group-addon:first-child"),u({borderStartEndRadius:0,borderEndEndRadius:0},"".concat(a,"-select ").concat(a,"-select-selector"),{borderStartEndRadius:0,borderEndEndRadius:0})),"> ".concat(r,"-affix-wrapper"),u(u({},"&:not(:first-child) ".concat(r),{borderStartStartRadius:0,borderEndStartRadius:0}),"&:not(:last-child) ".concat(r),{borderStartEndRadius:0,borderEndEndRadius:0})),u(u(u(n,"> ".concat(r,":last-child, ").concat(r,"-group-addon:last-child"),u({borderStartStartRadius:0,borderEndStartRadius:0},"".concat(a,"-select ").concat(a,"-select-selector"),{borderStartStartRadius:0,borderEndStartRadius:0})),"".concat(r,"-affix-wrapper"),u({"&:not(:last-child)":u({borderStartEndRadius:0,borderEndEndRadius:0},"".concat(r,"-search &"),{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius})},"&:not(:first-child), ".concat(r,"-search &:not(:first-child)"),{borderStartStartRadius:0,borderEndStartRadius:0})),"&".concat(r,"-group-compact"),Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),(u(u(u(u(u(u(u(u(u(u(t={},"".concat(r,"-group-addon, ").concat(r,"-group-wrap, > ").concat(r),{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}}),"& > *",{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0}),"\n & > ".concat(r,"-affix-wrapper,\n & > ").concat(r,"-number-affix-wrapper,\n & > ").concat(a,"-picker-range\n "),{display:"inline-flex"}),"& > *:not(:last-child)",{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth}),"".concat(r),{float:"none"}),"& > ".concat(a,"-select > ").concat(a,"-select-selector,\n & > ").concat(a,"-select-auto-complete ").concat(r,",\n & > ").concat(a,"-cascader-picker ").concat(r,",\n & > ").concat(r,"-group-wrapper ").concat(r),{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}}),"& > ".concat(a,"-select-focused"),{zIndex:1}),"& > ".concat(a,"-select > ").concat(a,"-select-arrow"),{zIndex:1}),"& > *:first-child,\n & > ".concat(a,"-select:first-child > ").concat(a,"-select-selector,\n & > ").concat(a,"-select-auto-complete:first-child ").concat(r,",\n & > ").concat(a,"-cascader-picker:first-child ").concat(r),{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}),"& > *:last-child,\n & > ".concat(a,"-select:last-child > ").concat(a,"-select-selector,\n & > ").concat(a,"-cascader-picker:last-child ").concat(r,",\n & > ").concat(a,"-cascader-picker-focused:last-child ").concat(r),{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius}),u(u(u(t,"& > ".concat(a,"-select-auto-complete ").concat(r),{verticalAlign:"top"}),"".concat(r,"-group-wrapper + ").concat(r,"-group-wrapper"),u({marginInlineStart:e.calc(e.lineWidth).mul(-1).equal()},"".concat(r,"-affix-wrapper"),{borderRadius:0})),"".concat(r,"-group-wrapper:not(:last-child)"),u({},"&".concat(r,"-search > ").concat(r,"-group"),u(u({},"& > ".concat(r,"-group-addon > ").concat(r,"-search-button"),{borderRadius:0}),"& > ".concat(r),{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}))))))}(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":u({},"".concat(t,"-group-addon"),{borderRadius:n,fontSize:e.inputFontSizeLG}),"&-sm":u({},"".concat(t,"-group-addon"),{borderRadius:r})},dF(e)),gF(e)),u(u(u(u({},"&:not(".concat(t,"-compact-first-item):not(").concat(t,"-compact-last-item)").concat(t,"-compact-item"),u({},"".concat(t,", ").concat(t,"-group-addon"),{borderRadius:0})),"&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-first-item"),u({},"".concat(t,", ").concat(t,"-group-addon"),{borderStartEndRadius:0,borderEndEndRadius:0})),"&:not(".concat(t,"-compact-first-item)").concat(t,"-compact-last-item"),u({},"".concat(t,", ").concat(t,"-group-addon"),{borderStartStartRadius:0,borderEndStartRadius:0})),"&:not(".concat(t,"-compact-last-item)").concat(t,"-compact-item"),u({},"".concat(t,"-affix-wrapper"),{borderStartEndRadius:0,borderEndEndRadius:0})))}))},AF=function(e){var t=e.componentCls,n=e.antCls,r="".concat(t,"-search");return u({},r,u(u(u(u(u(u(u(u(u({},"".concat(t),{"&:hover, &:focus":u({borderColor:e.colorPrimaryHover},"+ ".concat(t,"-group-addon ").concat(r,"-button:not(").concat(n,"-btn-primary)"),{borderInlineStartColor:e.colorPrimaryHover})}),"".concat(t,"-affix-wrapper"),{borderRadius:0}),"".concat(t,"-lg"),{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()}),"> ".concat(t,"-group"),u({},"> ".concat(t,"-group-addon:last-child"),u(u({insetInlineStart:-1,padding:0,border:0},"".concat(r,"-button"),{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"}),"".concat(r,"-button:not(").concat(n,"-btn-primary)"),u({color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive}},"&".concat(n,"-btn-loading::before"),{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0})))),"".concat(r,"-button"),{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}}),"&-large ".concat(r,"-button"),{height:e.controlHeightLG}),"&-small ".concat(r,"-button"),{height:e.controlHeightSM}),"&-rtl",{direction:"rtl"}),"&".concat(t,"-compact-item"),u(u(u(u({},"&:not(".concat(t,"-compact-last-item)"),u({},"".concat(t,"-group-addon"),u({},"".concat(t,"-search-button"),{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}))),"&:not(".concat(t,"-compact-first-item)"),u({},"".concat(t,",").concat(t,"-affix-wrapper"),{borderRadius:0})),"> ".concat(t,"-group-addon ").concat(t,"-search-button,\n > ").concat(t,",\n ").concat(t,"-affix-wrapper"),{"&:hover, &:focus, &:active":{zIndex:2}}),"> ".concat(t,"-affix-wrapper-focused"),{zIndex:2})))},_F=function(e){var t=e.componentCls,n=e.paddingLG,r="".concat(t,"-textarea");return u({},r,u(u({position:"relative","&-show-count":u(u({},"> ".concat(t),{height:"100%"}),"".concat(t,"-data-count"),{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"})},"\n &-allow-clear > ".concat(t,",\n &-affix-wrapper").concat(r,"-has-feedback ").concat(t,"\n "),{paddingInlineEnd:n}),"&-affix-wrapper".concat(t,"-affix-wrapper"),u(u({padding:0},"> textarea".concat(t),{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}}),"".concat(t,"-suffix"),u(u({margin:0,"> *:not(:last-child)":{marginInline:0}},"".concat(t,"-clear-icon"),{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS}),"".concat(r,"-suffix"),{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}))))},TF=function(e){var t=e.componentCls;return u({},"".concat(t,"-out-of-range"),u({},"&, & input, & textarea, ".concat(t,"-show-count-suffix, ").concat(t,"-data-count"),{color:e.colorError}))},FF=BD("Input",(function(e){var t=FD(e,iF(e));return[bF(t),_F(t),yF(t),CF(t),AF(t),TF(t),bA(t)]}),uF,{resetFont:!1});function kF(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function SF(e,t,n,r){if(n){var a=t;"click"!==t.type?"file"===e.type||void 0===r?n(a):n(a=kF(t,e,r)):n(a=kF(t,e,""))}}var xF=ie.forwardRef((function(e,t){var n,r,a=e.inputElement,o=e.children,i=e.prefixCls,u=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,f=e.className,d=e.style,p=e.disabled,h=e.readOnly,m=e.focused,g=e.triggerFocus,v=e.allowClear,E=e.value,D=e.handleReset,b=e.hidden,y=e.classes,C=e.classNames,A=e.dataAttrs,_=e.styles,T=e.components,F=null!=o?o:a,k=(null==T?void 0:T.affixWrapper)||"span",S=(null==T?void 0:T.groupWrapper)||"span",x=(null==T?void 0:T.wrapper)||"span",w=(null==T?void 0:T.groupAddon)||"span",N=oe.useRef(null),O=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),I=oe.cloneElement(F,{value:E,className:Pp(F.props.className,!O&&(null==C?void 0:C.variant))||null}),R=oe.useRef(null);if(ie.useImperativeHandle(t,(function(){return{nativeElement:R.current||N.current}})),O){var B,P=null;if(v){var L,M=!p&&!h&&E,H="".concat(i,"-clear-icon"),U="object"===ch(v)&&null!=v&&v.clearIcon?v.clearIcon:"✖";P=ie.createElement("span",{onClick:D,onMouseDown:function(e){return e.preventDefault()},className:Pp(H,(L={},dh(L,"".concat(H,"-hidden"),!M),dh(L,"".concat(H,"-has-suffix"),!!s),L)),role:"button",tabIndex:-1},U)}var j="".concat(i,"-affix-wrapper"),z=Pp(j,(dh(B={},"".concat(i,"-disabled"),p),dh(B,"".concat(j,"-disabled"),p),dh(B,"".concat(j,"-focused"),m),dh(B,"".concat(j,"-readonly"),h),dh(B,"".concat(j,"-input-with-clear-btn"),s&&v&&E),B),null==y?void 0:y.affixWrapper,null==C?void 0:C.affixWrapper,null==C?void 0:C.variant),G=(s||v)&&ie.createElement("span",{className:Pp("".concat(i,"-suffix"),null==C?void 0:C.suffix),style:null==_?void 0:_.suffix},P,s);I=ie.createElement(k,Mp({className:z,style:null==_?void 0:_.affixWrapper,onClick:function(e){var t;null!==(t=N.current)&&void 0!==t&&t.contains(e.target)&&(null==g||g())}},null==A?void 0:A.affixWrapper,{ref:N}),u&&ie.createElement("span",{className:Pp("".concat(i,"-prefix"),null==C?void 0:C.prefix),style:null==_?void 0:_.prefix},u),I,G)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var V="".concat(i,"-group"),W="".concat(V,"-addon"),Y="".concat(V,"-wrapper"),q=Pp("".concat(i,"-wrapper"),V,null==y?void 0:y.wrapper,null==C?void 0:C.wrapper),X=Pp(Y,dh({},"".concat(Y,"-disabled"),p),null==y?void 0:y.group,null==C?void 0:C.groupWrapper);I=ie.createElement(S,{className:X,ref:R},ie.createElement(x,{className:q},l&&ie.createElement(w,{className:W},l),I,c&&ie.createElement(w,{className:W},c)))}return ie.cloneElement(I,{className:Pp(null===(n=I.props)||void 0===n?void 0:n.className,f)||null,style:hh(hh({},null===(r=I.props)||void 0===r?void 0:r.style),d),hidden:b})})),wF=["show"];function NF(e,t){return oe.useMemo((function(){var n={};t&&(n.show="object"===ch(t)&&t.formatter?t.formatter:!!t);var r=n=hh(hh({},n),e),a=r.show,o=Rm(r,wF);return hh(hh({},o),{},{show:!!a,showFormatter:"function"==typeof a?a:void 0,strategy:o.strategy||function(e){return e.length}})}),[e,t])}var OF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],IF=oe.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,u=e.onKeyDown,s=e.prefixCls,l=void 0===s?"rc-input":s,c=e.disabled,f=e.htmlSize,d=e.className,p=e.maxLength,h=e.suffix,m=e.showCount,g=e.count,v=e.type,E=void 0===v?"text":v,D=e.classes,b=e.classNames,y=e.styles,C=e.onCompositionStart,A=e.onCompositionEnd,_=Rm(e,OF),T=bm(oe.useState(!1),2),F=T[0],k=T[1],S=oe.useRef(!1),x=oe.useRef(null),w=oe.useRef(null),N=function(e){x.current&&function(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)}}}}(x.current,e)},O=bm(DD(e.defaultValue,{value:e.value}),2),I=O[0],R=O[1],B=null==I?"":String(I),P=bm(oe.useState(null),2),L=P[0],M=P[1],H=NF(g,m),U=H.max||p,j=H.strategy(B),z=!!U&&j>U;oe.useImperativeHandle(t,(function(){var e;return{focus:N,blur:function(){var e;null===(e=x.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=x.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=x.current)||void 0===e||e.select()},input:x.current,nativeElement:(null===(e=w.current)||void 0===e?void 0:e.nativeElement)||x.current}})),oe.useEffect((function(){k((function(e){return(!e||!c)&&e}))}),[c]);var G=function(e,t,n){var a,o,i=t;if(!S.current&&H.exceedFormatter&&H.max&&H.strategy(t)>H.max)t!==(i=H.exceedFormatter(t,{max:H.max}))&&M([(null===(a=x.current)||void 0===a?void 0:a.selectionStart)||0,(null===(o=x.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;R(i),x.current&&SF(x.current,e,r,i)};oe.useEffect((function(){var e;L&&(null===(e=x.current)||void 0===e||e.setSelectionRange.apply(e,fm(L)))}),[L]);var V,W=function(e){G(e,e.target.value,{source:"change"})},Y=function(e){S.current=!1,G(e,e.currentTarget.value,{source:"compositionEnd"}),null==A||A(e)},q=function(e){i&&"Enter"===e.key&&i(e),null==u||u(e)},X=function(e){k(!0),null==a||a(e)},Q=function(e){k(!1),null==o||o(e)},K=z&&"".concat(l,"-out-of-range");return ie.createElement(xF,Mp({},_,{prefixCls:l,className:Pp(d,K),handleReset:function(e){R(""),N(),x.current&&SF(x.current,e,r)},value:B,focused:F,triggerFocus:N,suffix:function(){var e=Number(U)>0;if(h||H.show){var t=H.showFormatter?H.showFormatter({value:B,count:j,maxLength:U}):"".concat(j).concat(e?" / ".concat(U):"");return ie.createElement(ie.Fragment,null,H.show&&ie.createElement("span",{className:Pp("".concat(l,"-show-count-suffix"),dh({},"".concat(l,"-show-count-has-suffix"),!!h),null==b?void 0:b.count),style:hh({},null==y?void 0:y.count)},t),h)}return null}(),disabled:c,classes:D,classNames:b,styles:y}),(V=um(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),ie.createElement("input",Mp({autoComplete:n},V,{onChange:W,onFocus:X,onBlur:Q,onKeyDown:q,className:Pp(l,dh({},"".concat(l,"-disabled"),c),null==b?void 0:b.input),style:null==y?void 0:y.input,ref:x,size:f,type:E,onCompositionStart:function(e){S.current=!0,null==C||C(e)},onCompositionEnd:Y}))))})),RF=function(e){return e?ie.createElement(HC,null,ie.createElement(q_,{override:!0,status:!0},e)):null},BF=function(e){var t=oe.useContext(qE),n=t.getPrefixCls,r=t.direction,a=e.prefixCls,o=e.className,i=n("input-group",a),s=n("input"),l=v(FF(s),2),c=l[0],f=l[1],d=Pp(i,u(u(u(u({},"".concat(i,"-lg"),"large"===e.size),"".concat(i,"-sm"),"small"===e.size),"".concat(i,"-compact"),e.compact),"".concat(i,"-rtl"),"rtl"===r),f,o),p=oe.useContext(Y_),h=oe.useMemo((function(){return Object.assign(Object.assign({},p),{isFormItemInput:!1})}),[p]);return c(oe.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},oe.createElement(Y_.Provider,{value:h},e.children)))},PF=function(e){var t;return"object"===A(e)&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:ie.createElement(my,null)}),t};function LF(e,t){var n=oe.useRef([]),r=function(){n.current.push(setTimeout((function(){var t,n,r,a;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(a=e.current)||void 0===a||a.input.removeAttribute("value"))})))};return oe.useEffect((function(){return t&&r(),function(){return n.current.forEach((function(e){e&&clearTimeout(e)}))}}),[]),r}var MF=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a=0&&!n[o];o-=1)n.pop();var i=R(n.map((function(e){return e||" "})).join(""));return n=qF(i).map((function(e,t){return" "!==e||n[t]?e:n[t]})),n})),U=function(e,t){var n,r=H(e,t),o=Math.min(e+t.length,a-1);o!==e&&(null===(n=I.current[o])||void 0===n||n.focus()),M(r)},j=function(e){var t;null===(t=I.current[e])||void 0===t||t.focus()},z={variant:f,disabled:d,status:w,mask:m};return T(oe.createElement("div",Object.assign({},C,{ref:O,className:Pp(y,u(u(u({},"".concat(y,"-sm"),"small"===S),"".concat(y,"-lg"),"large"===S),"".concat(y,"-rtl"),"rtl"===b),k,F)}),oe.createElement(Y_.Provider,{value:N},Array.from({length:a}).map((function(e,t){var n="otp-".concat(t),r=P[t]||"";return oe.createElement(WF,Object.assign({ref:function(e){I.current[t]=e},key:n,index:t,size:S,htmlSize:1,className:"".concat(y,"-input"),onChange:U,value:r,onActiveChange:j,autoFocus:0===t&&h},z))})))))})),KF=QF,$F={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"},ZF=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:$F}))},JF=oe.forwardRef(ZF),ek={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"},tk=function(e,t){return oe.createElement(cy,Mp({},e,{ref:t,icon:ek}))},nk=oe.forwardRef(tk),rk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;XF||((XF=document.createElement("textarea")).setAttribute("tab-index","-1"),XF.setAttribute("aria-hidden","true"),document.body.appendChild(XF)),e.getAttribute("wrap")?XF.setAttribute("wrap",e.getAttribute("wrap")):XF.removeAttribute("wrap");var a=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&&dk[n])return dk[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=fk.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:u,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(dk[n]=s),s}(e,t),o=a.paddingSize,i=a.borderSize,u=a.boxSizing,s=a.sizingStyle;XF.setAttribute("style","".concat(s,";").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")),XF.value=e.value||e.placeholder||"";var l,c=void 0,f=void 0,d=XF.scrollHeight;if("border-box"===u?d+=i:"content-box"===u&&(d-=o),null!==n||null!==r){XF.value=" ";var p=XF.scrollHeight-o;null!==n&&(c=p*n,"border-box"===u&&(c=c+o+i),d=Math.max(c,d)),null!==r&&(f=p*r,"border-box"===u&&(f=f+o+i),l=d>f?"":"hidden",d=Math.min(f,d))}var h={height:d,overflowY:l,resize:"none"};return c&&(h.minHeight=c),f&&(h.maxHeight=f),h}var hk=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],mk=oe.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var a=n.defaultValue,o=n.value,i=n.autoSize,u=n.onResize,s=n.className,l=n.style,c=n.disabled,f=n.onChange;n.onInternalAutoSize;var d=Rm(n,hk),p=bm(DD(a,{value:o,postState:function(e){return null!=e?e:""}}),2),h=p[0],m=p[1],g=oe.useRef();oe.useImperativeHandle(t,(function(){return{textArea:g.current}}));var v=bm(oe.useMemo((function(){return i&&"object"===ch(i)?[i.minRows,i.maxRows]:[]}),[i]),2),E=v[0],D=v[1],b=!!i,y=bm(oe.useState(2),2),C=y[0],A=y[1],_=bm(oe.useState(),2),T=_[0],F=_[1],k=function(){A(0)};pg((function(){b&&k()}),[o,E,D,b]),pg((function(){if(0===C)A(1);else if(1===C){var e=pk(g.current,!1,E,D);A(2),F(e)}else!function(){try{if(document.activeElement===g.current){var e=g.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;g.current.setSelectionRange(t,n),g.current.scrollTop=r}}catch(Wp){}}()}),[C]);var S=oe.useRef(),x=function(){vm.cancel(S.current)};oe.useEffect((function(){return x}),[]);var w=b?T:null,N=hh(hh({},l),w);return 0!==C&&1!==C||(N.overflowY="hidden",N.overflowX="hidden"),oe.createElement(im,{onResize:function(e){2===C&&(null==u||u(e),i&&(x(),S.current=vm((function(){k()}))))},disabled:!(i||u)},oe.createElement("textarea",Mp({},d,{ref:g,style:N,className:Pp(r,s,dh({},"".concat(r,"-disabled"),c)),disabled:c,value:h,onChange:function(e){m(e.target.value),null==f||f(e)}})))})),gk=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","readOnly"],vk=ie.forwardRef((function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,u=e.onChange,s=e.allowClear,l=e.maxLength,c=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,p=e.prefixCls,h=void 0===p?"rc-textarea":p,m=e.showCount,g=e.count,v=e.className,E=e.style,D=e.disabled,b=e.hidden,y=e.classNames,C=e.styles,A=e.onResize,_=e.readOnly,T=Rm(e,gk),F=bm(DD(r,{value:a,defaultValue:r}),2),k=F[0],S=F[1],x=null==k?"":String(k),w=bm(ie.useState(!1),2),N=w[0],O=w[1],I=ie.useRef(!1),R=bm(ie.useState(null),2),B=R[0],P=R[1],L=oe.useRef(null),M=oe.useRef(null),H=function(){var e;return null===(e=M.current)||void 0===e?void 0:e.textArea},U=function(){H().focus()};oe.useImperativeHandle(t,(function(){var e;return{resizableTextArea:M.current,focus:U,blur:function(){H().blur()},nativeElement:(null===(e=L.current)||void 0===e?void 0:e.nativeElement)||H()}})),oe.useEffect((function(){O((function(e){return!D&&e}))}),[D]);var j=bm(ie.useState(null),2),z=j[0],G=j[1];ie.useEffect((function(){var e;z&&(e=H()).setSelectionRange.apply(e,fm(z))}),[z]);var V,W=NF(g,m),Y=null!==(n=W.max)&&void 0!==n?n:l,q=Number(Y)>0,X=W.strategy(x),Q=!!Y&&X>Y,K=function(e,t){var n=t;!I.current&&W.exceedFormatter&&W.max&&W.strategy(t)>W.max&&t!==(n=W.exceedFormatter(t,{max:W.max}))&&G([H().selectionStart||0,H().selectionEnd||0]),S(n),SF(e.currentTarget,e,u,n)},$=d;W.show&&(V=W.showFormatter?W.showFormatter({value:x,count:X,maxLength:Y}):"".concat(X).concat(q?" / ".concat(Y):""),$=ie.createElement(ie.Fragment,null,$,ie.createElement("span",{className:Pp("".concat(h,"-data-count"),null==y?void 0:y.count),style:null==C?void 0:C.count},V)));var Z=!T.autoSize&&!m&&!s;return ie.createElement(xF,{ref:L,value:x,allowClear:s,handleReset:function(e){S(""),U(),SF(H(),e,u)},suffix:$,prefixCls:h,classNames:hh(hh({},y),{},{affixWrapper:Pp(null==y?void 0:y.affixWrapper,dh(dh({},"".concat(h,"-show-count"),m),"".concat(h,"-textarea-allow-clear"),s))}),disabled:D,focused:N,className:Pp(v,Q&&"".concat(h,"-out-of-range")),style:hh(hh({},E),B&&!Z?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof V?V:void 0}},hidden:b,readOnly:_},ie.createElement(mk,Mp({},T,{maxLength:l,onKeyDown:function(e){var t=T.onPressEnter,n=T.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){K(e,e.target.value)},onFocus:function(e){O(!0),null==o||o(e)},onBlur:function(e){O(!1),null==i||i(e)},onCompositionStart:function(e){I.current=!0,null==c||c(e)},onCompositionEnd:function(e){I.current=!1,K(e,e.currentTarget.value),null==f||f(e)},className:Pp(null==y?void 0:y.textarea),style:hh(hh({},null==C?void 0:C.textarea),{},{resize:null==E?void 0:E.resize}),disabled:D,prefixCls:h,onResize:function(e){var t;null==A||A(e),null!==(t=H())&&void 0!==t&&t.style.height&&P(!0)},ref:M,readOnly:_})))})),Ek=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a1&&void 0!==arguments[1]?arguments[1]:0,r=e[n];if(t=r,Boolean("string"==typeof t&&t.length&&!Mk.has(t))){var a=document.createElement("script");a.setAttribute("src",r),a.setAttribute("data-namespace",r),e.length>n+1&&(a.onload=function(){Hk(e,n+1)},a.onerror=function(){Hk(e,n+1)}),Mk.add(r),document.body.appendChild(a)}}var Uk=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=void 0===n?{}:n;t&&"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&(Array.isArray(t)?Hk(t.reverse()):Hk([t]));var a=oe.forwardRef((function(e,t){var n=e.type,a=e.children,o=Rm(e,Lk),i=null;return e.type&&(i=oe.createElement("use",{xlinkHref:"#".concat(n)})),a&&(i=a),oe.createElement(Pk,Mp({},r,o,{ref:t}),i)}));return a.displayName="Iconfont",a}({scriptUrl:"//at.alicdn.com/t/c/font_3858115_p8dw9q83s0h.js"});function jk(e){for(var t=[],n=String(e||""),r=n.indexOf(","),a=0,o=!1;!o;){-1===r&&(r=n.length,o=!0);var i=n.slice(a,r).trim();!i&&o||t.push(i),a=r+1,r=n.indexOf(",",a)}return t}function zk(e,t){var n=t||{};return(""===e[e.length-1]?[].concat(E(e),[""]):e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}var Gk=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF59\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,Vk=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[\$\x2D0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u0870-\u0887\u0889-\u088E\u0898-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1715\u171F-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B4C\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA827\uA82C\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF65-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDEFD-\uDF1C\uDF27\uDF30-\uDF50\uDF70-\uDF85\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC75\uDC7F-\uDCBA\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDCE-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E-\uDC61\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39\uDF40-\uDF46]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF42\uDF50-\uDF59\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC40-\uDC55]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFE4\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAE\uDEC0-\uDEF9]|\uD839[\uDCD0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]|\uDB40[\uDD00-\uDDEF])*$/,Wk={};function Yk(e,t){return((t||Wk).jsx?Vk:Gk).test(e)}var qk=/[ \t\n\f\r]/g;function Xk(e){return""===e.replace(qk,"")}var Qk=c((function e(t,n,r){s(this,e),this.property=t,this.normal=n,r&&(this.space=r)}));function Kk(e,t){for(var n={},r={},a=-1;++a4&&"data"===n.slice(0,4)&&CS.test(t)){if("-"===t.charAt(4)){var o=t.slice(5).replace(AS,kS);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{var i=t.slice(4);if(!AS.test(i)){var u=i.replace(_S,FS);"-"!==u.charAt(0)&&(u="-"+u),t="data"+u}}a=cS}return new a(r,t)}function FS(e){return"-"+e.toLowerCase()}function kS(e){return e.charAt(1).toUpperCase()}var SS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xS=Kk([mS,hS,ES,DS,bS],"html"),wS=Kk([mS,hS,ES,DS,yS],"svg");function NS(e){var t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function OS(e){return e.join(" ").trim()}var IS={},RS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,BS=/\n/g,PS=/^\s*/,LS=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,MS=/^:\s*/,HS=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,US=/^[;\s]*/,jS=/^\s+|\s+$/g,zS="";function GS(e){return e?e.replace(jS,zS):zS}var VS=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(IS,"__esModule",{value:!0});var WS=VS((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(BS);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new i(e),l(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function u(a){var o=new Error(t.source+":"+n+":"+r+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function l(){s(PS)}function c(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;zS!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,zS===e.charAt(n-1))return u("End of comment missing");var i=e.slice(2,n-2);return r+=2,a(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function d(){var e=o(),t=s(LS);if(t){if(f(),!s(MS))return u("property missing ':'");var n=s(HS),r=e({type:"declaration",property:GS(t[0].replace(RS,zS)),value:n?GS(n[0].replace(RS,zS)):zS});return s(US),r}}return i.prototype.content=e,l(),function(){var e,t=[];for(c(t);e=d();)!1!==e&&(t.push(e),c(t));return t}()}));var YS=IS.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,WS.default)(e),a="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;a?t(r,o,e):o&&((n=n||{})[r]=o)}})),n},qS=YS.default||YS,XS=KS("end"),QS=KS("start");function KS(e){return function(t){var n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function $S(e){return e&&"object"===A(e)?"position"in e||"type"in e?JS(e.position):"start"in e||"end"in e?JS(e):"line"in e||"column"in e?ZS(e):"":""}function ZS(e){return ex(e&&e.line)+":"+ex(e&&e.column)}function JS(e){return ZS(e&&e.start)+"-"+ZS(e&&e.end)}function ex(e){return e&&"number"==typeof e?e:1}var tx=function(e){function t(e,n,r){var a;s(this,t),a=d(this,t),"string"==typeof n&&(r=n,n=void 0);var i="",u={},l=!1;if(n&&(u="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:o({},n)),"string"==typeof e?i=e:!u.cause&&e&&(l=!0,i=e.message,u.cause=e),!u.ruleId&&!u.source&&"string"==typeof r){var c=r.indexOf(":");-1===c?u.ruleId=r:(u.source=r.slice(0,c),u.ruleId=r.slice(c+1))}if(!u.place&&u.ancestors&&u.ancestors){var f=u.ancestors[u.ancestors.length-1];f&&(u.place=f.position)}var p=u.place&&"start"in u.place?u.place.start:u.place;return a.ancestors=u.ancestors||void 0,a.cause=u.cause||void 0,a.column=p?p.column:void 0,a.fatal=void 0,a.file,a.message=i,a.line=p?p.line:void 0,a.name=$S(u.place)||"1:1",a.place=u.place||void 0,a.reason=a.message,a.ruleId=u.ruleId||void 0,a.source=u.source||void 0,a.stack=l&&u.cause&&"string"==typeof u.cause.stack?u.cause.stack:"",a.actual,a.expected,a.note,a.url,a}return m(t,e),c(t)}(i(Error));tx.prototype.file="",tx.prototype.name="",tx.prototype.reason="",tx.prototype.message="",tx.prototype.stack="",tx.prototype.column=void 0,tx.prototype.line=void 0,tx.prototype.ancestors=void 0,tx.prototype.cause=void 0,tx.prototype.fatal=void 0,tx.prototype.place=void 0,tx.prototype.ruleId=void 0,tx.prototype.source=void 0;var nx={}.hasOwnProperty,rx=new Map,ax=/[A-Z]/g,ox=/-([a-z])/g,ix=new Set(["table","tbody","thead","tfoot","tr"]),ux=new Set(["td","th"]),sx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lx(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");var n,r=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=function(e,t){return n;function n(n,r,a,o){var i=Array.isArray(a.children),u=QS(n);return t(r,a,o,i,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}(r,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");n=function(e,t,n){return r;function r(e,r,a,o){var i=Array.isArray(a.children)?n:t;return o?i(r,a,o):i(r,a)}}(0,t.jsx,t.jsxs)}var a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?wS:xS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=cx(a,e,void 0);return o&&"string"!=typeof o?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function cx(e,t,n){return"element"===t.type?function(e,t,n){var r=e.schema,a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=wS,e.schema=a);e.ancestors.push(t);var o=mx(e,t.tagName,!1),i=function(e,t){var n,r,a={};for(r in t.properties)if("children"!==r&&nx.call(t.properties,r)){var o=hx(e,r,t.properties[r]);if(o){var i=v(o,2),u=i[0],s=i[1];e.tableCellAlignToStyle&&"align"===u&&"string"==typeof s&&ux.has(t.tagName)?n=s:a[u]=s}}if(n){(a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n}return a}(e,t),u=px(e,t);ix.has(t.tagName)&&(u=u.filter((function(e){return"string"!=typeof e||!("object"===A(t=e)?"text"===t.type&&Xk(t.value):Xk(t));var t})));return fx(e,i,o,t),dx(i,u),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){var n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}gx(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){var r=e.schema,a=r;"svg"===t.name&&"html"===r.space&&(a=wS,e.schema=a);e.ancestors.push(t);var o=null===t.name?e.Fragment:mx(e,t.name,!0),i=function(e,t){var n,r={},a=_(t.attributes);try{for(a.s();!(n=a.n()).done;){var o=n.value;if("mdxJsxExpressionAttribute"===o.type)if(o.data&&o.data.estree&&e.evaluater){var i=o.data.estree.body[0];i.type;var u=i.expression;u.type;var s=u.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else gx(e,t.position);else{var l=o.name,c=void 0;if(o.value&&"object"===A(o.value))if(o.value.data&&o.value.data.estree&&e.evaluater){var f=o.value.data.estree.body[0];f.type,c=e.evaluater.evaluateExpression(f.expression)}else gx(e,t.position);else c=null===o.value||o.value;r[l]=c}}}catch(d){a.e(d)}finally{a.f()}return r}(e,t),u=px(e,t);return fx(e,i,o,t),dx(i,u),e.ancestors.pop(),e.schema=r,e.create(t,o,i,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gx(e,t.position)}(e,t):"root"===t.type?function(e,t,n){var r={};return dx(r,px(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function fx(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function dx(e,t){if(t.length>0){var n=t.length>1?t:t[0];n&&(e.children=n)}}function px(e,t){for(var n=[],r=-1,a=e.passKeys?new Map:rx;++ro?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),e.splice.apply(e,E(a));else for(n&&e.splice(t,n);i0?(Fx(e,e.length,0,t),e):t}var Sx={}.hasOwnProperty;function xx(e,t){var n;for(n in t){var r=(Sx.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n],o=void 0;if(a)for(o in a){Sx.call(r,o)||(r[o]=[]);var i=a[o];wx(r[o],Array.isArray(i)?i:i?[i]:[])}}}function wx(e,t){for(var n=-1,r=[];++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Ox(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Ix=Wx(/[A-Za-z]/),Rx=Wx(/[\dA-Za-z]/),Bx=Wx(/[#-'*+\--9=?A-Z^-~]/);function Px(e){return null!==e&&(e<32||127===e)}var Lx=Wx(/\d/),Mx=Wx(/[\dA-Fa-f]/),Hx=Wx(/[!-/:-@[-`{-~]/);function Ux(e){return null!==e&&e<-2}function jx(e){return null!==e&&(e<0||32===e)}function zx(e){return-2===e||-1===e||32===e}var Gx=Wx(/(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F])|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA])/),Vx=Wx(/\s/);function Wx(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Yx(e){for(var t=[],n=-1,r=0,a=0;++n55295&&o<57344){var u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(i=String.fromCharCode(o,u),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function qx(e,t,n,r){var a=r?r-1:Number.POSITIVE_INFINITY,o=0;return function(r){if(zx(r))return e.enter(n),i(r);return t(r)};function i(r){return zx(r)&&o++r))return;for(var l,c,f=a.events.length,d=f;d--;)if("exit"===a.events[d][0]&&"chunkFlow"===a.events[d][1].type){if(l){c=a.events[d][1].end;break}l=!0}for(v(i),s=f;st;){var r=o[n];a.containerState=r[1],r[0].exit.call(a,e)}o.length=t}function E(){t.write([null]),n=void 0,t=void 0,a.containerState._closeFlow=void 0}}},Kx={tokenize:function(e,t,n){return qx(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function $x(e){return null===e||jx(e)||Vx(e)?1:Gx(e)?2:void 0}function Zx(e,t,n){for(var r=[],a=-1;++a1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;var f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);ew(f,-u),ew(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},i.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=kx(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=kx(s,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),s=kx(s,Zx(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=kx(s,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,s=kx(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,Fx(e,n-1,c-n+3,s),c=n+s.length-l-2;break}c=-1;for(;++c=u?(e.exit("codeFencedFenceSequence"),zx(t)?qx(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||Ux(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},i=0,u=0;return function(t){return function(t){var n=a.events[a.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===r?(u++,e.consume(t),s):u<3?n(t):(e.exit("codeFencedFenceSequence"),zx(t)?qx(e,l,"whitespace")(t):l(t))}function l(n){return null===n||Ux(n)?(e.exit("codeFencedFence"),a.interrupt?t(n):e.check(iw,p,E)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||Ux(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):zx(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),qx(e,f,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),c)}function f(t){return null===t||Ux(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Ux(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===r?n(t):(e.consume(t),d)}function p(t){return e.attempt(o,E,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&zx(t)?qx(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||Ux(t)?e.check(iw,p,E)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||Ux(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function E(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var sw={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),qx(e,a,"linePrefix",5)(t)};function a(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?u(t):Ux(t)?e.attempt(lw,o,u)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||Ux(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),i)}function u(n){return e.exit("codeIndented"),t(n)}}},lw={tokenize:function(e,t,n){var r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):Ux(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):qx(e,o,"linePrefix",5)(t)}function o(e){var o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Ux(e)?a(e):n(e)}},partial:!0};var cw={name:"codeText",tokenize:function(e,t,n){var r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),o++,i):(e.exit("codeTextSequence"),u(t))}function u(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),u):96===t?(a=e.enter("codeTextSequence"),r=0,l(t)):Ux(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Ux(t)?(e.exit("codeTextData"),u(t)):(e.consume(t),s)}function l(n){return 96===n?(e.consume(n),r++,l):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",s(n))}},resolve:function(e){var t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}},{key:"splice",value:function(e,t,n){var r=t||0;this.setCursor(Math.trunc(e));var a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&dw(this.left,n),a.reverse()}},{key:"pop",value:function(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}},{key:"push",value:function(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}},{key:"pushMany",value:function(e){this.setCursor(Number.POSITIVE_INFINITY),dw(this.left,e)}},{key:"unshift",value:function(e){this.setCursor(0),this.right.push(e)}},{key:"unshiftMany",value:function(e){this.setCursor(0),dw(this.right,e.reverse())}},{key:"setCursor",value:function(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}},partial:!0};function vw(e,t,n,r,a,o,i,u,s){var l=s||Number.POSITIVE_INFINITY,c=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||32===t||41===t||Px(t))return n(t);return e.enter(r),e.enter(i),e.enter(u),e.enter("chunkString",{contentType:"string"}),h(t)};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(u),f(t)):null===t||60===t||Ux(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(a){return c||null!==a&&41!==a&&!jx(a)?c999||null===f||91===f||93===f&&!i||94===f&&!s&&"_hiddenFootnoteSupport"in u.parser.constructs?n(f):93===f?(e.exit(o),e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):Ux(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||Ux(t)||s++>999?(e.exit("chunkString"),l(t)):(e.consume(t),i||(i=!zx(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function Dw(e,t,n,r,a,o){var i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,u;return n(t)};function u(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),s(n))}function s(t){return t===i?(e.exit(o),u(i)):null===t?n(t):Ux(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),qx(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===i||null===t||Ux(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:l)}function c(t){return t===i||92===t?(e.consume(t),l):l(t)}}function bw(e,t){var n;return function r(a){if(Ux(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(zx(a))return qx(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}var yw={name:"definition",tokenize:function(e,t,n){var r,a=this;return function(t){return e.enter("definition"),function(t){return Ew.call(a,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return r=Ox(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return jx(t)?bw(e,u)(t):u(t)}function u(t){return vw(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Cw,l,l)(t)}function l(t){return zx(t)?qx(e,c,"whitespace")(t):c(t)}function c(o){return null===o||Ux(o)?(e.exit("definition"),a.parser.defined.push(r),t(o)):n(o)}}},Cw={tokenize:function(e,t,n){return function(t){return jx(t)?bw(e,r)(t):n(t)};function r(t){return Dw(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return zx(t)?qx(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Ux(e)?t(e):n(e)}},partial:!0};var Aw={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Ux(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};var _w={name:"headingAtx",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||jx(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||Ux(n)?(e.exit("atxHeading"),t(n)):zx(n)?qx(e,o,"whitespace")(n):(e.enter("atxHeadingText"),u(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),o(t))}function u(t){return null===t||35===t||jx(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),u)}},resolve:function(e,t){var n,r,a=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);a-2>o&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4);a>o&&Fx(e,o,a-o+1,[["enter",n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},t],["enter",r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var Tw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fw=["pre","script","style","textarea"],kw={name:"htmlFlow",tokenize:function(e,t,n){var r,a,o,i,u,s=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(i){return 33===i?(e.consume(i),c):47===i?(e.consume(i),a=!0,p):63===i?(e.consume(i),r=3,s.interrupt?t:R):Ix(i)?(e.consume(i),o=String.fromCharCode(i),h):n(i)}function c(a){return 45===a?(e.consume(a),r=2,f):91===a?(e.consume(a),r=5,i=0,d):Ix(a)?(e.consume(a),r=4,s.interrupt?t:R):n(a)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:R):n(r)}function d(r){var a="CDATA[";return r===a.charCodeAt(i++)?(e.consume(r),6===i?s.interrupt?t:F:d):n(r)}function p(t){return Ix(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(i){if(null===i||47===i||62===i||jx(i)){var u=47===i,l=o.toLowerCase();return u||a||!Fw.includes(l)?Tw.includes(o.toLowerCase())?(r=6,u?(e.consume(i),m):s.interrupt?t(i):F(i)):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(i):a?g(i):v(i)):(r=1,s.interrupt?t(i):F(i))}return 45===i||Rx(i)?(e.consume(i),o+=String.fromCharCode(i),h):n(i)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:F):n(r)}function g(t){return zx(t)?(e.consume(t),g):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||Ix(t)?(e.consume(t),E):zx(t)?(e.consume(t),v):_(t)}function E(t){return 45===t||46===t||58===t||95===t||Rx(t)?(e.consume(t),E):D(t)}function D(t){return 61===t?(e.consume(t),b):zx(t)?(e.consume(t),D):v(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,y):zx(t)?(e.consume(t),b):C(t)}function y(t){return t===u?(e.consume(t),u=null,A):null===t||Ux(t)?n(t):(e.consume(t),y)}function C(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||jx(t)?D(t):(e.consume(t),C)}function A(e){return 47===e||62===e||zx(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||Ux(t)?F(t):zx(t)?(e.consume(t),T):n(t)}function F(t){return 45===t&&2===r?(e.consume(t),w):60===t&&1===r?(e.consume(t),N):62===t&&4===r?(e.consume(t),B):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),I):!Ux(t)||6!==r&&7!==r?null===t||Ux(t)?(e.exit("htmlFlowData"),k(t)):(e.consume(t),F):(e.exit("htmlFlowData"),e.check(Sw,P,k)(t))}function k(t){return e.check(xw,S,P)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),x}function x(t){return null===t||Ux(t)?k(t):(e.enter("htmlFlowData"),F(t))}function w(t){return 45===t?(e.consume(t),R):F(t)}function N(t){return 47===t?(e.consume(t),o="",O):F(t)}function O(t){if(62===t){var n=o.toLowerCase();return Fw.includes(n)?(e.consume(t),B):F(t)}return Ix(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),O):F(t)}function I(t){return 93===t?(e.consume(t),R):F(t)}function R(t){return 62===t?(e.consume(t),B):45===t&&2===r?(e.consume(t),R):F(t)}function B(t){return null===t||Ux(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),B)}function P(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Sw={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(nw,t,n)}},partial:!0},xw={tokenize:function(e,t,n){var r=this;return function(t){if(Ux(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};var ww={name:"htmlText",tokenize:function(e,t,n){var r,a,o,i=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u};function u(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),E):Ix(t)?(e.consume(t),A):n(t)}function s(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),a=0,p):Ix(t)?(e.consume(t),v):n(t)}function l(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):Ux(t)?(o=c,O(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?N(e):45===e?f(e):c(e)}function p(t){var r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),6===a?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Ux(t)?(o=h,O(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):h(t)}function v(t){return null===t||62===t?N(t):Ux(t)?(o=v,O(t)):(e.consume(t),v)}function E(t){return null===t?n(t):63===t?(e.consume(t),D):Ux(t)?(o=E,O(t)):(e.consume(t),E)}function D(e){return 62===e?N(e):E(e)}function b(t){return Ix(t)?(e.consume(t),y):n(t)}function y(t){return 45===t||Rx(t)?(e.consume(t),y):C(t)}function C(t){return Ux(t)?(o=C,O(t)):zx(t)?(e.consume(t),C):N(t)}function A(t){return 45===t||Rx(t)?(e.consume(t),A):47===t||62===t||jx(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),N):58===t||95===t||Ix(t)?(e.consume(t),T):Ux(t)?(o=_,O(t)):zx(t)?(e.consume(t),_):N(t)}function T(t){return 45===t||46===t||58===t||95===t||Rx(t)?(e.consume(t),T):F(t)}function F(t){return 61===t?(e.consume(t),k):Ux(t)?(o=F,O(t)):zx(t)?(e.consume(t),F):_(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):Ux(t)?(o=k,O(t)):zx(t)?(e.consume(t),k):(e.consume(t),x)}function S(t){return t===r?(e.consume(t),r=void 0,w):null===t?n(t):Ux(t)?(o=S,O(t)):(e.consume(t),S)}function x(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||jx(t)?_(t):(e.consume(t),x)}function w(e){return 47===e||62===e||jx(e)?_(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return zx(t)?qx(e,R,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),o(t)}}};var Nw={name:"labelEnd",tokenize:function(e,t,n){var r,a,o=this,i=o.events.length;for(;i--;)if(("labelImage"===o.events[i][1].type||"labelLink"===o.events[i][1].type)&&!o.events[i][1]._balanced){r=o.events[i][1];break}return function(t){if(!r)return n(t);if(r._inactive)return c(t);return a=o.parser.defined.includes(Ox(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),u};function u(t){return 40===t?e.attempt(Ow,l,a?l:c)(t):91===t?e.attempt(Iw,l,a?s:c)(t):a?l(t):c(t)}function s(t){return e.attempt(Rw,l,c)(t)}function l(e){return t(e)}function c(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){var n,r,a,o,i=e.length,u=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){u=2;break}}else"labelEnd"===n.type&&(a=i);var s={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[a][1].end)},c={type:"labelText",start:Object.assign({},e[r+u+2][1].end),end:Object.assign({},e[a-2][1].start)};return o=kx(o=[["enter",s,t],["enter",l,t]],e.slice(r+1,r+u+3)),o=kx(o,[["enter",c,t]]),o=kx(o,Zx(t.parser.constructs.insideSpan.null,e.slice(r+u+4,a-3),t)),o=kx(o,[["exit",c,t],e[a-2],e[a-1],["exit",l,t]]),o=kx(o,e.slice(a+1)),o=kx(o,[["exit",s,t]]),Fx(e,r,e.length,o),e},resolveAll:function(e){var t=-1;for(;++t=3&&(null===o||Ux(o))?(e.exit("thematicBreak"),t(o)):n(o)}function i(t){return t===r?(e.consume(t),a++,i):(e.exit("thematicBreakSequence"),zx(t)?qx(e,o,"whitespace")(t):o(t))}}};var Hw={name:"list",tokenize:function(e,t,n){var r=this,a=r.events[r.events.length-1],o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){var a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:Lx(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(Mw,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(t)}return n(t)};function u(t){return Lx(t)&&++i<10?(e.consume(t),u):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(nw,r.interrupt?n:l,e.attempt(Uw,f,c))}function l(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function c(t){return zx(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(nw,a,o);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,qx(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!zx(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jw,t,i)(n))}function i(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,qx(e,e.attempt(Hw,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)}},Uw={tokenize:function(e,t,n){var r=this;return qx(e,(function(e){var a=r.events[r.events.length-1];return!zx(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},jw={tokenize:function(e,t,n){var r=this;return qx(e,(function(e){var a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};var zw={name:"setextUnderline",tokenize:function(e,t,n){var r,a=this;return function(t){var i,u=a.events.length;for(;u--;)if("lineEnding"!==a.events[u][1].type&&"linePrefix"!==a.events[u][1].type&&"content"!==a.events[u][1].type){i="paragraph"===a.events[u][1].type;break}if(!a.parser.lazy[a.now().line]&&(a.interrupt||i))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===r?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),zx(t)?qx(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||Ux(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);var i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e}};var Gw={tokenize:function(e){var t=this,n=e.attempt(nw,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,qx(e,e.attempt(this.parser.constructs.flow,r,e.attempt(mw,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var Vw={resolveAll:Xw()},Ww=qw("string"),Yw=qw("text");function qw(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return s(e)?a(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),u;t.consume(e)}function u(e){return s(e)?(t.exit("data"),a(e)):(t.consume(e),u)}function s(e){if(null===e)return!0;var t=r[e],a=-1;if(t)for(;++a-1){var u=n[0];"string"==typeof u?n[0]=u.slice(a):n.shift()}i>0&&n.push(e[o].slice(0,i))}return n}(i,e)}function d(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function p(){for(var e;r._index0){var p=o.tokenStack[o.tokenStack.length-1];(p[1]||hN).call(o,void 0,p[0])}for(r.position={start:fN(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:fN(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f1:t}var EN=9,DN=32;function bN(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),a=0,o=[];r;)o.push(yN(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(yN(t.slice(a),a>0,!1)),o.join("")}function yN(e,t,n){var r=0,a=e.length;if(t)for(var o=e.codePointAt(r);o===EN||o===DN;)r++,o=e.codePointAt(r);if(n)for(var i=e.codePointAt(a-1);i===EN||i===DN;)a--,i=e.codePointAt(a-1);return a>r?e.slice(r,a):""}var CN={blockquote:function(e,t){var n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);var a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){var n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=Yx(a.toLowerCase()),i=e.footnoteOrder.indexOf(a),u=e.footnoteCounts.get(a);void 0===u?(u=0,e.footnoteOrder.push(a),n=e.footnoteOrder.length):n=i+1,u+=1,e.footnoteCounts.set(a,u);var s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);var l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){var n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){var n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gN(e,t);var a={src:Yx(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);var o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){var n={src:Yx(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return gN(e,t);var a={href:Yx(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);var o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){var n={href:Yx(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){var r=e.all(t),a=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}for(var l=-1;++l0){var i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=QS(t.children[1]),s=XS(t.children[t.children.length-1]);u&&s&&(i.position={start:u,end:s}),a.push(i)}var l={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length,u=-1,s=[];++u1&&void 0!==arguments[1]?arguments[1]:{},n=t.json,r=t.lossy,a=[];return function(e,t,n,r){var a=function(e,t){var a=r.push(e)-1;return n.set(t,a),a};return function r(o){if(n.has(o))return n.get(o);var i=v(xN(o),2),u=i[0],s=i[1];switch(u){case 0:var l=o;switch(s){case"bigint":u=8,l=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);l=null;break;case"undefined":return a([-1],o)}return a([u,l],o);case 1:if(s)return a([s,E(o)],o);var c,f=[],d=a([u,f],o),p=_(o);try{for(p.s();!(c=p.n()).done;){var h=c.value;f.push(r(h))}}catch(M){p.e(M)}finally{p.f()}return d;case 2:if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return r(o.toJSON());var m,g=[],D=a([u,g],o),b=_(SN(o));try{for(b.s();!(m=b.n()).done;){var y=m.value;!e&&wN(xN(o[y]))||g.push([r(y),r(o[y])])}}catch(M){b.e(M)}finally{b.f()}return D;case 3:return a([u,o.toISOString()],o);case 4:var C=o.source,A=o.flags;return a([u,{source:C,flags:A}],o);case 5:var T,F=[],k=a([u,F],o),S=_(o);try{for(S.s();!(T=S.n()).done;){var x=v(T.value,2),w=x[0],N=x[1];(e||!wN(xN(w))&&!wN(xN(N)))&&F.push([r(w),r(N)])}}catch(M){S.e(M)}finally{S.f()}return k;case 6:var O,I=[],R=a([u,I],o),B=_(o);try{for(B.s();!(O=B.n()).done;){var P=O.value;!e&&wN(xN(P))||I.push(r(P))}}catch(M){B.e(M)}finally{B.f()}return R}var L=o.message;return a([u,{name:s,message:L}],o)}}(!(n||r),!!n,new Map,a)(e),a},ON="function"==typeof structuredClone?function(e,t){return t&&("json"in t||"lossy"in t)?TN(NN(e,t)):structuredClone(e)}:function(e,t){return TN(NN(e,t))};function IN(e,t){var n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function RN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var BN=function(e){if(null==e)return MN;if("function"==typeof e)return LN(e);if("object"===A(e))return Array.isArray(e)?PN(e):function(e){var t=e;return LN(n);function n(n){var r,a=n;for(r in e)if(a[r]!==t[r])return!1;return!0}}(e);if("string"==typeof e)return function(e){return LN(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function PN(e){for(var t=[],n=-1;++n":"")+")"})}return f;function f(){var l,c,f,d=HN;if((!t||o(a,u,s[s.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[UN,e];return null==e?HN:[e]}(n(a,s)),d[0]===jN))return d;if("children"in a&&a.children){var p=a;if(p.children&&d[0]!==zN)for(c=(r?p.children.length:-1)+i,f=s.concat(p);c>-1&&c0&&n.push({type:"text",value:"\n"}),n}function ZN(e){for(var t=0,n=e.charCodeAt(t);9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function JN(e,t){var n=qN(e,t),r=n.one(e,void 0),a=function(e){for(var t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||IN,r=e.options.footnoteBackLabel||RN,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;++l0&&m.push({type:"text",value:" "});var v="string"==typeof n?n:n(l,h);"string"==typeof v&&(v={type:"text",value:v}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}var E=f[f.length-1];if(E&&"element"===E.type&&"p"===E.tagName){var D,b=E.children[E.children.length-1];b&&"text"===b.type?b.value+=" ":E.children.push({type:"text",value:" "}),(D=E.children).push.apply(D,m)}else f.push.apply(f,m);var y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(c,y),s.push(y)}}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:o(o({},ON(u)),{},{id:"footnote-label"}),children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:"\n"},a),i}function eO(e,n){return e&&"run"in e?function(){var a=r(t().mark((function r(a,i){var u;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=JN(a,o({file:i},n)),t.next=3,e.run(u,i);case 3:case"end":return t.stop()}}),r)})));return function(e,t){return a.apply(this,arguments)}}():function(t,r){return JN(t,o({file:r},n||e))}}function tO(e){if(e)throw e}var nO=Object.prototype.hasOwnProperty,rO=Object.prototype.toString,aO=Object.defineProperty,oO=Object.getOwnPropertyDescriptor,iO=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===rO.call(e)},uO=function(e){if(!e||"[object Object]"!==rO.call(e))return!1;var t,n=nO.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&nO.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||nO.call(e,t)},sO=function(e,t){aO&&"__proto__"===t.name?aO(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},lO=function(e,t){if("__proto__"===t){if(!nO.call(e,t))return;if(oO)return oO(e,t).value}return e[t]},cO=function e(){var t,n,r,a,o,i,u=arguments[0],s=1,l=arguments.length,c=!1;for("boolean"==typeof u&&(c=u,u=arguments[1]||{},s=2),(null==u||"object"!==A(u)&&"function"!=typeof u)&&(u={});s1?s-1:0),c=1;ca.length;l&&a.push(o);try{s=e.apply(this,a)}catch(r){if(l&&n)throw r;return o(r)}l||(s&&s.then&&"function"==typeof s.then?s.then(i,o):s instanceof Error?o(s):i(s))}function o(e){if(!n){n=!0;for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;oe.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";var i=-1,u=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),u>-1&&(e.codePointAt(o)===t.codePointAt(u--)?u<0&&(a=o):(u=-1,a=i));r===a?a=i:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(mO(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){mO(e);var t,n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){var u=e.codePointAt(n);if(47!==u)r<0&&(t=!0,r=n+1),46===u?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1);else if(t){a=n+1;break}}if(o<0||r<0||0===i||1===i&&o===r-1&&o===a+1)return"";return e.slice(o,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),a=0;a2){if((r=a.lastIndexOf("/"))!==a.length-1){r<0?(a="",o=0):o=(a=a.slice(0,r)).length-1-a.lastIndexOf("/"),i=s,u=0;continue}}else if(a.length>0){a="",o=0,i=s,u=0;continue}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,s):a=e.slice(i+1,s),o=s-i-1;i=s,u=0}else 46===n&&u>-1?u++:u=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function mO(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var gO={cwd:function(){return"/"}};function vO(e){return Boolean(null!==e&&"object"===A(e)&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function EO(e){if("string"==typeof e)e=new URL(e);else if(!vO(e)){var t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r1?r-1:0),o=1;o0){var o=D(n),i=o[0],u=o.slice(1),s=t[a][1];dO(s)&&dO(i)&&(i=fO(!0,s,i)),t[a]=[e,i].concat(E(u))}}}}])}(_O),kO=(new FO).freeze();function SO(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function xO(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function wO(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function NO(e){if(!dO(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function OO(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function IO(e){return function(e){return Boolean(e&&"object"===A(e)&&"message"in e&&"messages"in e)}(e)?e:new bO(e)}var RO=[],BO={allowDangerousHtml:!0},PO=/^(https?|ircs?|mailto|xmpp)$/i,LO=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function MO(e){var t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,u=e.disallowedElements,s=e.rehypePlugins||RO,l=e.remarkPlugins||RO,c=e.remarkRehypeOptions?o(o({},e.remarkRehypeOptions),BO):BO,f=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||HO,h=kO().use(mN).use(l).use(eO,c).use(s),m=new bO;"string"==typeof r&&(m.value=r);var g,v=_(LO);try{for(v.s();!(g=v.n()).done;){var D=g.value;Object.hasOwn(e,D.from)&&(D.from,D.to&&D.to,D.id)}}catch(C){v.e(C)}finally{v.f()}var b=h.parse(m),y=h.runSync(b,m);return a&&(y={type:"element",tagName:"div",properties:{className:a},children:"root"===y.type?y.children:[y]}),VN(y,(function(e,r,a){if("raw"===e.type&&a&&"number"==typeof r)return f?a.children.splice(r,1):a.children[r]={type:"text",value:e.value},r;var o;if("element"===e.type)for(o in bx)if(Object.hasOwn(bx,o)&&Object.hasOwn(e.properties,o)){var i=e.properties[o],s=bx[o];(null===s||s.includes(e.tagName))&&(e.properties[o]=p(String(i||""),o,e))}if("element"===e.type){var l=t?!t.includes(e.tagName):!!u&&u.includes(e.tagName);if(!l&&n&&"number"==typeof r&&(l=!n(e,r,a)),l&&a&&"number"==typeof r){var c;if(d&&e.children)(c=a.children).splice.apply(c,[r,1].concat(E(e.children)));else a.children.splice(r,1);return r}}})),lx(y,{Fragment:ge,components:i,ignoreInvalidStyle:!0,jsx:ve,jsxs:Ee,passKeys:!0,passNode:!0})}function HO(e){var t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||PO.test(e.slice(0,t))?e:""}var UO=/[#.]/g;var jO=new Set(["button","menu","reset","submit"]),zO={}.hasOwnProperty;function GO(e,t,n){var r=n&&function(e){var t={},n=-1;for(;++n2?u-2:0),l=2;l-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){var t=e&&e.line,r=e&&e.column;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){var a=(n[t-2]||0)+r-1||0;if(a>-1&&a1?u-1:0),l=1;l=55296&&e<=57343}function _I(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function TI(e){return e>=64976&&e<=65007||hI.has(e)}!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(gI=gI||(gI={}));var FI,kI=function(){return c((function e(t){s(this,e),this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}),[{key:"col",get:function(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}},{key:"offset",get:function(){return this.droppedBufferSize+this.pos}},{key:"getError",value:function(e){var t=this.line,n=this.col,r=this.offset;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}},{key:"_err",value:function(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}},{key:"_addGap",value:function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}},{key:"_processSurrogate",value:function(e){if(this.pos!==this.html.length-1){var t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,dI.EOF;return this._err(gI.surrogateInInputStream),e}},{key:"willDropParsedChunk",value:function(){return this.pos>this.bufferWaterline}},{key:"dropParsedChunk",value:function(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}},{key:"write",value:function(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}},{key:"insertHtmlAtCurrentPos",value:function(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}},{key:"startsWith",value:function(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(var n=0;n=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,dI.EOF;var n=this.html.charCodeAt(t);return n===dI.CARRIAGE_RETURN?dI.LINE_FEED:n}},{key:"advance",value:function(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,dI.EOF;var e=this.html.charCodeAt(this.pos);return e===dI.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,dI.LINE_FEED):e===dI.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,AI(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===dI.LINE_FEED||e===dI.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}},{key:"_checkForProblematicCharacters",value:function(e){_I(e)?this._err(gI.controlCharacterInInputStream):TI(e)&&this._err(gI.noncharacterInInputStream)}},{key:"retreat",value:function(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(FI=FI||(FI={}));var xI,wI,NI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)}))),OI=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)}))),II=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),RI=null!==(xI=String.fromCodePoint)&&void 0!==xI?xI:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(wI||(wI={}));var BI,PI,LI;function MI(e){return e>=wI.ZERO&&e<=wI.NINE}function HI(e){return e>=wI.UPPER_A&&e<=wI.UPPER_F||e>=wI.LOWER_A&&e<=wI.LOWER_F}function UI(e){return e===wI.EQUALS||function(e){return e>=wI.UPPER_A&&e<=wI.UPPER_Z||e>=wI.LOWER_A&&e<=wI.LOWER_Z||MI(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(BI||(BI={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(PI||(PI={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(LI||(LI={}));var jI,zI,GI,VI,WI,YI=function(){return c((function e(t,n,r){s(this,e),this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=PI.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=LI.Strict}),[{key:"startEntity",value:function(e){this.decodeMode=e,this.state=PI.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}},{key:"write",value:function(e,t){switch(this.state){case PI.EntityStart:return e.charCodeAt(t)===wI.NUM?(this.state=PI.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=PI.NamedEntity,this.stateNamedEntity(e,t));case PI.NumericStart:return this.stateNumericStart(e,t);case PI.NumericDecimal:return this.stateNumericDecimal(e,t);case PI.NumericHex:return this.stateNumericHex(e,t);case PI.NamedEntity:return this.stateNamedEntity(e,t)}}},{key:"stateNumericStart",value:function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===wI.LOWER_X?(this.state=PI.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=PI.NumericDecimal,this.stateNumericDecimal(e,t))}},{key:"addToNumericResult",value:function(e,t,n,r){if(t!==n){var a=n-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}},{key:"stateNumericHex",value:function(e,t){for(var n=t;t=55296&&e<=57343||e>1114111?65533:null!==(t=II.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==wI.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}},{key:"stateNamedEntity",value:function(e,t){for(var n=this.decodeTree,r=n[this.treeIndex],a=(r&BI.VALUE_LENGTH)>>14;t>14)){if(o===wI.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==LI.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}},{key:"emitNotTerminatedNamedEntity",value:function(){var e,t=this.result,n=(this.decodeTree[t]&BI.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}},{key:"emitNamedEntityData",value:function(e,t,n){var r=this.decodeTree;return this.emitCodePoint(1===t?r[e]&~BI.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}},{key:"end",value:function(){var e;switch(this.state){case PI.NamedEntity:return 0===this.result||this.decodeMode===LI.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case PI.NumericDecimal:return this.emitNumericEntity(0,2);case PI.NumericHex:return this.emitNumericEntity(0,3);case PI.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case PI.EntityStart:return 0}}}])}();function qI(e){var t="",n=new YI(e,(function(e){return t+=RI(e)}));return function(e,r){for(var a=0,o=0;(o=e.indexOf("&",o))>=0;){t+=e.slice(a,o),n.startEntity(r);var i=n.write(e,o+1);if(i<0){a=o+n.end();break}a=o+i,o=0===i?a+1:a}var u=t+e.slice(a);return t="",u}}function XI(e,t,n,r){var a=(t&BI.BRANCH_LENGTH)>>7,o=t&BI.JUMP_TABLE;if(0===a)return 0!==o&&r===o?n:-1;if(o){var i=r-o;return i<0||i>=a?-1:e[n+i]-1}for(var u=n,s=u+a-1;u<=s;){var l=u+s>>>1,c=e[l];if(cr))return e[l+a];s=l-1}}return-1}qI(NI),qI(OI),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(jI=jI||(jI={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(zI=zI||(zI={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(GI=GI||(GI={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(VI=VI||(VI={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(WI=WI||(WI={}));var QI=new Map([[VI.A,WI.A],[VI.ADDRESS,WI.ADDRESS],[VI.ANNOTATION_XML,WI.ANNOTATION_XML],[VI.APPLET,WI.APPLET],[VI.AREA,WI.AREA],[VI.ARTICLE,WI.ARTICLE],[VI.ASIDE,WI.ASIDE],[VI.B,WI.B],[VI.BASE,WI.BASE],[VI.BASEFONT,WI.BASEFONT],[VI.BGSOUND,WI.BGSOUND],[VI.BIG,WI.BIG],[VI.BLOCKQUOTE,WI.BLOCKQUOTE],[VI.BODY,WI.BODY],[VI.BR,WI.BR],[VI.BUTTON,WI.BUTTON],[VI.CAPTION,WI.CAPTION],[VI.CENTER,WI.CENTER],[VI.CODE,WI.CODE],[VI.COL,WI.COL],[VI.COLGROUP,WI.COLGROUP],[VI.DD,WI.DD],[VI.DESC,WI.DESC],[VI.DETAILS,WI.DETAILS],[VI.DIALOG,WI.DIALOG],[VI.DIR,WI.DIR],[VI.DIV,WI.DIV],[VI.DL,WI.DL],[VI.DT,WI.DT],[VI.EM,WI.EM],[VI.EMBED,WI.EMBED],[VI.FIELDSET,WI.FIELDSET],[VI.FIGCAPTION,WI.FIGCAPTION],[VI.FIGURE,WI.FIGURE],[VI.FONT,WI.FONT],[VI.FOOTER,WI.FOOTER],[VI.FOREIGN_OBJECT,WI.FOREIGN_OBJECT],[VI.FORM,WI.FORM],[VI.FRAME,WI.FRAME],[VI.FRAMESET,WI.FRAMESET],[VI.H1,WI.H1],[VI.H2,WI.H2],[VI.H3,WI.H3],[VI.H4,WI.H4],[VI.H5,WI.H5],[VI.H6,WI.H6],[VI.HEAD,WI.HEAD],[VI.HEADER,WI.HEADER],[VI.HGROUP,WI.HGROUP],[VI.HR,WI.HR],[VI.HTML,WI.HTML],[VI.I,WI.I],[VI.IMG,WI.IMG],[VI.IMAGE,WI.IMAGE],[VI.INPUT,WI.INPUT],[VI.IFRAME,WI.IFRAME],[VI.KEYGEN,WI.KEYGEN],[VI.LABEL,WI.LABEL],[VI.LI,WI.LI],[VI.LINK,WI.LINK],[VI.LISTING,WI.LISTING],[VI.MAIN,WI.MAIN],[VI.MALIGNMARK,WI.MALIGNMARK],[VI.MARQUEE,WI.MARQUEE],[VI.MATH,WI.MATH],[VI.MENU,WI.MENU],[VI.META,WI.META],[VI.MGLYPH,WI.MGLYPH],[VI.MI,WI.MI],[VI.MO,WI.MO],[VI.MN,WI.MN],[VI.MS,WI.MS],[VI.MTEXT,WI.MTEXT],[VI.NAV,WI.NAV],[VI.NOBR,WI.NOBR],[VI.NOFRAMES,WI.NOFRAMES],[VI.NOEMBED,WI.NOEMBED],[VI.NOSCRIPT,WI.NOSCRIPT],[VI.OBJECT,WI.OBJECT],[VI.OL,WI.OL],[VI.OPTGROUP,WI.OPTGROUP],[VI.OPTION,WI.OPTION],[VI.P,WI.P],[VI.PARAM,WI.PARAM],[VI.PLAINTEXT,WI.PLAINTEXT],[VI.PRE,WI.PRE],[VI.RB,WI.RB],[VI.RP,WI.RP],[VI.RT,WI.RT],[VI.RTC,WI.RTC],[VI.RUBY,WI.RUBY],[VI.S,WI.S],[VI.SCRIPT,WI.SCRIPT],[VI.SECTION,WI.SECTION],[VI.SELECT,WI.SELECT],[VI.SOURCE,WI.SOURCE],[VI.SMALL,WI.SMALL],[VI.SPAN,WI.SPAN],[VI.STRIKE,WI.STRIKE],[VI.STRONG,WI.STRONG],[VI.STYLE,WI.STYLE],[VI.SUB,WI.SUB],[VI.SUMMARY,WI.SUMMARY],[VI.SUP,WI.SUP],[VI.TABLE,WI.TABLE],[VI.TBODY,WI.TBODY],[VI.TEMPLATE,WI.TEMPLATE],[VI.TEXTAREA,WI.TEXTAREA],[VI.TFOOT,WI.TFOOT],[VI.TD,WI.TD],[VI.TH,WI.TH],[VI.THEAD,WI.THEAD],[VI.TITLE,WI.TITLE],[VI.TR,WI.TR],[VI.TRACK,WI.TRACK],[VI.TT,WI.TT],[VI.U,WI.U],[VI.UL,WI.UL],[VI.SVG,WI.SVG],[VI.VAR,WI.VAR],[VI.WBR,WI.WBR],[VI.XMP,WI.XMP]]);function KI(e){var t;return null!==(t=QI.get(e))&&void 0!==t?t:WI.UNKNOWN}var $I=WI,ZI=u(u(u(u(u(u({},jI.HTML,new Set([$I.ADDRESS,$I.APPLET,$I.AREA,$I.ARTICLE,$I.ASIDE,$I.BASE,$I.BASEFONT,$I.BGSOUND,$I.BLOCKQUOTE,$I.BODY,$I.BR,$I.BUTTON,$I.CAPTION,$I.CENTER,$I.COL,$I.COLGROUP,$I.DD,$I.DETAILS,$I.DIR,$I.DIV,$I.DL,$I.DT,$I.EMBED,$I.FIELDSET,$I.FIGCAPTION,$I.FIGURE,$I.FOOTER,$I.FORM,$I.FRAME,$I.FRAMESET,$I.H1,$I.H2,$I.H3,$I.H4,$I.H5,$I.H6,$I.HEAD,$I.HEADER,$I.HGROUP,$I.HR,$I.HTML,$I.IFRAME,$I.IMG,$I.INPUT,$I.LI,$I.LINK,$I.LISTING,$I.MAIN,$I.MARQUEE,$I.MENU,$I.META,$I.NAV,$I.NOEMBED,$I.NOFRAMES,$I.NOSCRIPT,$I.OBJECT,$I.OL,$I.P,$I.PARAM,$I.PLAINTEXT,$I.PRE,$I.SCRIPT,$I.SECTION,$I.SELECT,$I.SOURCE,$I.STYLE,$I.SUMMARY,$I.TABLE,$I.TBODY,$I.TD,$I.TEMPLATE,$I.TEXTAREA,$I.TFOOT,$I.TH,$I.THEAD,$I.TITLE,$I.TR,$I.TRACK,$I.UL,$I.WBR,$I.XMP])),jI.MATHML,new Set([$I.MI,$I.MO,$I.MN,$I.MS,$I.MTEXT,$I.ANNOTATION_XML])),jI.SVG,new Set([$I.TITLE,$I.FOREIGN_OBJECT,$I.DESC])),jI.XLINK,new Set),jI.XML,new Set),jI.XMLNS,new Set);function JI(e){return e===$I.H1||e===$I.H2||e===$I.H3||e===$I.H4||e===$I.H5||e===$I.H6}new Set([VI.STYLE,VI.SCRIPT,VI.XMP,VI.IFRAME,VI.NOEMBED,VI.NOFRAMES,VI.PLAINTEXT]);var eR,tR=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(eR||(eR={}));var nR={DATA:eR.DATA,RCDATA:eR.RCDATA,RAWTEXT:eR.RAWTEXT,SCRIPT_DATA:eR.SCRIPT_DATA,PLAINTEXT:eR.PLAINTEXT,CDATA_SECTION:eR.CDATA_SECTION};function rR(e){return e>=dI.DIGIT_0&&e<=dI.DIGIT_9}function aR(e){return e>=dI.LATIN_CAPITAL_A&&e<=dI.LATIN_CAPITAL_Z}function oR(e){return function(e){return e>=dI.LATIN_SMALL_A&&e<=dI.LATIN_SMALL_Z}(e)||aR(e)}function iR(e){return oR(e)||rR(e)}function uR(e){return e>=dI.LATIN_CAPITAL_A&&e<=dI.LATIN_CAPITAL_F}function sR(e){return e>=dI.LATIN_SMALL_A&&e<=dI.LATIN_SMALL_F}function lR(e){return e+32}function cR(e){return e===dI.SPACE||e===dI.LINE_FEED||e===dI.TABULATION||e===dI.FORM_FEED}function fR(e){return cR(e)||e===dI.SOLIDUS||e===dI.GREATER_THAN_SIGN}var dR,pR=function(){return c((function e(t,n){s(this,e),this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=eR.DATA,this.returnState=eR.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new kI(n),this.currentLocation=this.getCurrentLocation(-1)}),[{key:"_err",value:function(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}},{key:"getCurrentLocation",value:function(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}},{key:"_runParsingLoop",value:function(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;var e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}},{key:"write",value:function(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}},{key:"insertHtmlAtCurrentPos",value:function(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}},{key:"_ensureHibernation",value:function(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}},{key:"_consume",value:function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}},{key:"_unconsume",value:function(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}},{key:"_reconsumeInState",value:function(e,t){this.state=e,this._callState(t)}},{key:"_advanceBy",value:function(e){this.consumedAfterSnapshot+=e;for(var t=0;t0&&this._err(gI.endTagWithAttributes),e.selfClosing&&this._err(gI.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentComment",value:function(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentDoctype",value:function(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}},{key:"_emitCurrentCharacterToken",value:function(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case FI.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case FI.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case FI.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}},{key:"_emitEOFToken",value:function(){var e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:FI.EOF,location:e}),this.active=!1}},{key:"_appendCharToCurrentCharacterToken",value:function(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}},{key:"_emitCodePoint",value:function(e){var t=cR(e)?FI.WHITESPACE_CHARACTER:e===dI.NULL?FI.NULL_CHARACTER:FI.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}},{key:"_emitChars",value:function(e){this._appendCharToCurrentCharacterToken(FI.CHARACTER,e)}},{key:"_matchNamedCharacterReference",value:function(e){for(var t,n=null,r=0,a=!1,o=0,i=NI[0];o>=0&&!((o=XI(NI,i,o+1,e))<0);e=this._consume()){r+=1;var u=(i=NI[o])&BI.VALUE_LENGTH;if(u){var s=(u>>14)-1;if(e!==dI.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((t=this.preprocessor.peek(1))===dI.EQUALS_SIGN||iR(t))?(n=[dI.AMPERSAND],o+=s):(n=0===s?[NI[o]&~BI.VALUE_LENGTH]:1===s?[NI[++o]]:[NI[++o],NI[++o]],r=0,a=e!==dI.SEMICOLON),0===s){this._consume();break}}}return this._unconsume(r),a&&!this.preprocessor.endOfChunkHit&&this._err(gI.missingSemicolonAfterCharacterReference),this._unconsume(1),n}},{key:"_isCharacterReferenceInAttribute",value:function(){return this.returnState===eR.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===eR.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===eR.ATTRIBUTE_VALUE_UNQUOTED}},{key:"_flushCodePointConsumedAsCharacterReference",value:function(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}},{key:"_callState",value:function(e){switch(this.state){case eR.DATA:this._stateData(e);break;case eR.RCDATA:this._stateRcdata(e);break;case eR.RAWTEXT:this._stateRawtext(e);break;case eR.SCRIPT_DATA:this._stateScriptData(e);break;case eR.PLAINTEXT:this._statePlaintext(e);break;case eR.TAG_OPEN:this._stateTagOpen(e);break;case eR.END_TAG_OPEN:this._stateEndTagOpen(e);break;case eR.TAG_NAME:this._stateTagName(e);break;case eR.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case eR.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case eR.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case eR.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case eR.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case eR.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case eR.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case eR.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case eR.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case eR.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case eR.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case eR.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case eR.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case eR.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case eR.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case eR.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case eR.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case eR.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case eR.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case eR.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case eR.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case eR.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case eR.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case eR.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case eR.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case eR.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case eR.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case eR.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case eR.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case eR.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case eR.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case eR.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case eR.BOGUS_COMMENT:this._stateBogusComment(e);break;case eR.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case eR.COMMENT_START:this._stateCommentStart(e);break;case eR.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case eR.COMMENT:this._stateComment(e);break;case eR.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case eR.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case eR.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case eR.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case eR.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case eR.COMMENT_END:this._stateCommentEnd(e);break;case eR.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case eR.DOCTYPE:this._stateDoctype(e);break;case eR.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case eR.DOCTYPE_NAME:this._stateDoctypeName(e);break;case eR.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case eR.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case eR.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case eR.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case eR.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case eR.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case eR.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case eR.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case eR.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case eR.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case eR.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case eR.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case eR.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case eR.CDATA_SECTION:this._stateCdataSection(e);break;case eR.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case eR.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case eR.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case eR.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case eR.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case eR.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case eR.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case eR.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case eR.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case eR.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}},{key:"_stateData",value:function(e){switch(e){case dI.LESS_THAN_SIGN:this.state=eR.TAG_OPEN;break;case dI.AMPERSAND:this.returnState=eR.DATA,this.state=eR.CHARACTER_REFERENCE;break;case dI.NULL:this._err(gI.unexpectedNullCharacter),this._emitCodePoint(e);break;case dI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateRcdata",value:function(e){switch(e){case dI.AMPERSAND:this.returnState=eR.RCDATA,this.state=eR.CHARACTER_REFERENCE;break;case dI.LESS_THAN_SIGN:this.state=eR.RCDATA_LESS_THAN_SIGN;break;case dI.NULL:this._err(gI.unexpectedNullCharacter),this._emitChars(mI);break;case dI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateRawtext",value:function(e){switch(e){case dI.LESS_THAN_SIGN:this.state=eR.RAWTEXT_LESS_THAN_SIGN;break;case dI.NULL:this._err(gI.unexpectedNullCharacter),this._emitChars(mI);break;case dI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateScriptData",value:function(e){switch(e){case dI.LESS_THAN_SIGN:this.state=eR.SCRIPT_DATA_LESS_THAN_SIGN;break;case dI.NULL:this._err(gI.unexpectedNullCharacter),this._emitChars(mI);break;case dI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_statePlaintext",value:function(e){switch(e){case dI.NULL:this._err(gI.unexpectedNullCharacter),this._emitChars(mI);break;case dI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}},{key:"_stateTagOpen",value:function(e){if(oR(e))this._createStartTagToken(),this.state=eR.TAG_NAME,this._stateTagName(e);else switch(e){case dI.EXCLAMATION_MARK:this.state=eR.MARKUP_DECLARATION_OPEN;break;case dI.SOLIDUS:this.state=eR.END_TAG_OPEN;break;case dI.QUESTION_MARK:this._err(gI.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=eR.BOGUS_COMMENT,this._stateBogusComment(e);break;case dI.EOF:this._err(gI.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(gI.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=eR.DATA,this._stateData(e)}}},{key:"_stateEndTagOpen",value:function(e){if(oR(e))this._createEndTagToken(),this.state=eR.TAG_NAME,this._stateTagName(e);else switch(e){case dI.GREATER_THAN_SIGN:this._err(gI.missingEndTagName),this.state=eR.DATA;break;case dI.EOF:this._err(gI.eofBeforeTagName),this._emitChars("");break;case dI.NULL:this._err(gI.unexpectedNullCharacter),this.state=eR.SCRIPT_DATA_ESCAPED,this._emitChars(mI);break;case dI.EOF:this._err(gI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=eR.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}},{key:"_stateScriptDataEscapedLessThanSign",value:function(e){e===dI.SOLIDUS?this.state=eR.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:oR(e)?(this._emitChars("<"),this.state=eR.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=eR.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}},{key:"_stateScriptDataEscapedEndTagOpen",value:function(e){oR(e)?(this.state=eR.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case dI.NULL:this._err(gI.unexpectedNullCharacter),this.state=eR.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(mI);break;case dI.EOF:this._err(gI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=eR.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}},{key:"_stateScriptDataDoubleEscapedLessThanSign",value:function(e){e===dI.SOLIDUS?(this.state=eR.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=eR.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}},{key:"_stateScriptDataDoubleEscapeEnd",value:function(e){if(this.preprocessor.startsWith(bI,!1)&&fR(this.preprocessor.peek(bI.length))){this._emitCodePoint(e);for(var t=0;t1114111)this._err(gI.characterReferenceOutsideUnicodeRange),this.charRefCode=dI.REPLACEMENT_CHARACTER;else if(AI(this.charRefCode))this._err(gI.surrogateCharacterReference),this.charRefCode=dI.REPLACEMENT_CHARACTER;else if(TI(this.charRefCode))this._err(gI.noncharacterCharacterReference);else if(_I(this.charRefCode)||this.charRefCode===dI.CARRIAGE_RETURN){this._err(gI.controlCharacterReference);var t=tR.get(this.charRefCode);void 0!==t&&(this.charRefCode=t)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}])}(),hR=new Set([WI.DD,WI.DT,WI.LI,WI.OPTGROUP,WI.OPTION,WI.P,WI.RB,WI.RP,WI.RT,WI.RTC]),mR=new Set([].concat(E(hR),[WI.CAPTION,WI.COLGROUP,WI.TBODY,WI.TD,WI.TFOOT,WI.TH,WI.THEAD,WI.TR])),gR=new Map([[WI.APPLET,jI.HTML],[WI.CAPTION,jI.HTML],[WI.HTML,jI.HTML],[WI.MARQUEE,jI.HTML],[WI.OBJECT,jI.HTML],[WI.TABLE,jI.HTML],[WI.TD,jI.HTML],[WI.TEMPLATE,jI.HTML],[WI.TH,jI.HTML],[WI.ANNOTATION_XML,jI.MATHML],[WI.MI,jI.MATHML],[WI.MN,jI.MATHML],[WI.MO,jI.MATHML],[WI.MS,jI.MATHML],[WI.MTEXT,jI.MATHML],[WI.DESC,jI.SVG],[WI.FOREIGN_OBJECT,jI.SVG],[WI.TITLE,jI.SVG]]),vR=[WI.H1,WI.H2,WI.H3,WI.H4,WI.H5,WI.H6],ER=[WI.TR,WI.TEMPLATE,WI.HTML],DR=[WI.TBODY,WI.TFOOT,WI.THEAD,WI.TEMPLATE,WI.HTML],bR=[WI.TABLE,WI.TEMPLATE,WI.HTML],yR=[WI.TD,WI.TH],CR=function(){return c((function e(t,n,r){s(this,e),this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=WI.UNKNOWN,this.current=t}),[{key:"currentTmplContentOrNode",get:function(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}},{key:"_indexOf",value:function(e){return this.items.lastIndexOf(e,this.stackTop)}},{key:"_isInTemplate",value:function(){return this.currentTagId===WI.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===jI.HTML}},{key:"_updateCurrentElement",value:function(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}},{key:"push",value:function(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}},{key:"pop",value:function(){var e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}},{key:"replace",value:function(e,t){var n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}},{key:"insertAfter",value:function(e,t,n){var r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}},{key:"popUntilTagNamePopped",value:function(e){var t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==jI.HTML);this.shortenToLength(t<0?0:t)}},{key:"shortenToLength",value:function(e){for(;this.stackTop>=e;){var t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}},{key:"clearBackTo",value:function(e,t){var n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}},{key:"clearBackToTableContext",value:function(){this.clearBackTo(bR,jI.HTML)}},{key:"clearBackToTableBodyContext",value:function(){this.clearBackTo(DR,jI.HTML)}},{key:"clearBackToTableRowContext",value:function(){this.clearBackTo(ER,jI.HTML)}},{key:"remove",value:function(e){var t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}},{key:"tryPeekProperlyNestedBodyElement",value:function(){return this.stackTop>=1&&this.tagIDs[1]===WI.BODY?this.items[1]:null}},{key:"contains",value:function(e){return this._indexOf(e)>-1}},{key:"getCommonAncestor",value:function(e){var t=this._indexOf(e)-1;return t>=0?this.items[t]:null}},{key:"isRootHtmlElementCurrent",value:function(){return 0===this.stackTop&&this.tagIDs[0]===WI.HTML}},{key:"hasInScope",value:function(e){for(var t=this.stackTop;t>=0;t--){var n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===jI.HTML)return!0;if(gR.get(n)===r)return!1}return!0}},{key:"hasNumberedHeaderInScope",value:function(){for(var e=this.stackTop;e>=0;e--){var t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(JI(t)&&n===jI.HTML)return!0;if(gR.get(t)===n)return!1}return!0}},{key:"hasInListItemScope",value:function(e){for(var t=this.stackTop;t>=0;t--){var n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===jI.HTML)return!0;if((n===WI.UL||n===WI.OL)&&r===jI.HTML||gR.get(n)===r)return!1}return!0}},{key:"hasInButtonScope",value:function(e){for(var t=this.stackTop;t>=0;t--){var n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===jI.HTML)return!0;if(n===WI.BUTTON&&r===jI.HTML||gR.get(n)===r)return!1}return!0}},{key:"hasInTableScope",value:function(e){for(var t=this.stackTop;t>=0;t--){var n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===jI.HTML){if(n===e)return!0;if(n===WI.TABLE||n===WI.TEMPLATE||n===WI.HTML)return!1}}return!0}},{key:"hasTableBodyContextInTableScope",value:function(){for(var e=this.stackTop;e>=0;e--){var t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===jI.HTML){if(t===WI.TBODY||t===WI.THEAD||t===WI.TFOOT)return!0;if(t===WI.TABLE||t===WI.HTML)return!1}}return!0}},{key:"hasInSelectScope",value:function(e){for(var t=this.stackTop;t>=0;t--){var n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===jI.HTML){if(n===e)return!0;if(n!==WI.OPTION&&n!==WI.OPTGROUP)return!1}}return!0}},{key:"generateImpliedEndTags",value:function(){for(;hR.has(this.currentTagId);)this.pop()}},{key:"generateImpliedEndTagsThoroughly",value:function(){for(;mR.has(this.currentTagId);)this.pop()}},{key:"generateImpliedEndTagsWithExclusion",value:function(e){for(;this.currentTagId!==e&&mR.has(this.currentTagId);)this.pop()}}])}();!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(dR=dR||(dR={}));var AR={type:dR.Marker},_R=function(){return c((function e(t){s(this,e),this.treeAdapter=t,this.entries=[],this.bookmark=null}),[{key:"_getNoahArkConditionCandidates",value:function(e,t){for(var n=[],r=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e),i=0;i=3&&this.entries.splice(i.idx,1)}}}},{key:"insertMarker",value:function(){this.entries.unshift(AR)}},{key:"pushElement",value:function(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:dR.Element,element:e,token:t})}},{key:"insertElementAfterBookmark",value:function(e,t){var n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:dR.Element,element:e,token:t})}},{key:"removeEntry",value:function(e){var t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}},{key:"clearToLastMarker",value:function(){var e=this.entries.indexOf(AR);e>=0?this.entries.splice(0,e+1):this.entries.length=0}},{key:"getElementEntryInScopeWithTagName",value:function(e){var t=this,n=this.entries.find((function(n){return n.type===dR.Marker||t.treeAdapter.getTagName(n.element)===e}));return n&&n.type===dR.Element?n:null}},{key:"getElementEntry",value:function(e){return this.entries.find((function(t){return t.type===dR.Element&&t.element===e}))}}])}();function TR(e){return{nodeName:"#text",value:e,parentNode:null}}var FR={createDocument:function(){return{nodeName:"#document",mode:GI.NO_QUIRKS,childNodes:[]}},createDocumentFragment:function(){return{nodeName:"#document-fragment",childNodes:[]}},createElement:function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode:function(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild:function(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore:function(e,t,n){var r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent:function(e,t){e.content=t},getTemplateContent:function(e){return e.content},setDocumentType:function(e,t,n,r){var a=e.childNodes.find((function(e){return"#documentType"===e.nodeName}));if(a)a.name=t,a.publicId=n,a.systemId=r;else{var o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};FR.appendChild(e,o)}},setDocumentMode:function(e,t){e.mode=t},getDocumentMode:function(e){return e.mode},detachNode:function(e){if(e.parentNode){var t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText:function(e,t){if(e.childNodes.length>0){var n=e.childNodes[e.childNodes.length-1];if(FR.isTextNode(n))return void(n.value+=t)}FR.appendChild(e,TR(t))},insertTextBefore:function(e,t,n){var r=e.childNodes[e.childNodes.indexOf(n)-1];r&&FR.isTextNode(r)?r.value+=t:FR.insertBefore(e,TR(t),n)},adoptAttributes:function(e,t){for(var n=new Set(e.attrs.map((function(e){return e.name}))),r=0;r2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,e),this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=qR.INITIAL,this.originalInsertionMode=qR.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=o(o({},JR),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=n?n:this.treeAdapter.createDocument(),this.tokenizer=new pR(this.options,this),this.activeFormattingElements=new _R(this.treeAdapter),this.fragmentContextID=r?KI(this.treeAdapter.getTagName(r)):WI.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new CR(this.document,this.treeAdapter,this)}),[{key:"getFragment",value:function(){var e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}},{key:"_err",value:function(e,t,n){var r;if(this.onParseError){var a=null!==(r=e.location)&&void 0!==r?r:$R,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}}},{key:"onItemPush",value:function(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}},{key:"onItemPop",value:function(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){var a,o;if(0===this.openElements.stackTop&&this.fragmentContext)a=this.fragmentContext,o=this.fragmentContextID;else{var i=this.openElements;a=i.current,o=i.currentTagId}this._setContextModes(a,o)}}},{key:"_setContextModes",value:function(e,t){var n=e===this.document||this.treeAdapter.getNamespaceURI(e)===jI.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}},{key:"_switchToTextParsing",value:function(e,t){this._insertElement(e,jI.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=qR.TEXT}},{key:"switchToPlaintextParsing",value:function(){this.insertionMode=qR.TEXT,this.originalInsertionMode=qR.IN_BODY,this.tokenizer.state=nR.PLAINTEXT}},{key:"_getAdjustedCurrentElement",value:function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}},{key:"_findFormInFragmentContext",value:function(){for(var e=this.fragmentContext;e;){if(this.treeAdapter.getTagName(e)===VI.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}},{key:"_initTokenizerForFragmentParsing",value:function(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===jI.HTML)switch(this.fragmentContextID){case WI.TITLE:case WI.TEXTAREA:this.tokenizer.state=nR.RCDATA;break;case WI.STYLE:case WI.XMP:case WI.IFRAME:case WI.NOEMBED:case WI.NOFRAMES:case WI.NOSCRIPT:this.tokenizer.state=nR.RAWTEXT;break;case WI.SCRIPT:this.tokenizer.state=nR.SCRIPT_DATA;break;case WI.PLAINTEXT:this.tokenizer.state=nR.PLAINTEXT}}},{key:"_setDocumentType",value:function(e){var t=this,n=e.name||"",r=e.publicId||"",a=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),e.location){var o=this.treeAdapter.getChildNodes(this.document).find((function(e){return t.treeAdapter.isDocumentTypeNode(e)}));o&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}}},{key:"_attachElementToTree",value:function(e,t){if(this.options.sourceCodeLocationInfo){var n=t&&o(o({},t),{},{startTag:t});this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,e)}}},{key:"_appendElement",value:function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}},{key:"_insertElement",value:function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}},{key:"_insertFakeElement",value:function(e,t){var n=this.treeAdapter.createElement(e,jI.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}},{key:"_insertTemplate",value:function(e){var t=this.treeAdapter.createElement(e.tagName,jI.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}},{key:"_insertFakeRootElement",value:function(){var e=this.treeAdapter.createElement(VI.HTML,jI.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,WI.HTML)}},{key:"_appendCommentNode",value:function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}},{key:"_insertCharacters",value:function(e){var t,n;if(this._shouldFosterParentOnInsertion()){var r=this._findFosterParentingLocation();t=r.parent,(n=r.beforeElement)?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)}else t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars);if(e.location){var a=this.treeAdapter.getChildNodes(t),o=n?a.lastIndexOf(n):a.length,i=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){var u=e.location,s=u.endLine,l=u.endCol,c=u.endOffset;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:s,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}}},{key:"_adoptNodes",value:function(e,t){for(var n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},{key:"_setEndLocation",value:function(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){var n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===FI.END_TAG&&r===t.tagName?{endTag:o({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}},{key:"shouldProcessStartTagTokenInForeignContent",value:function(e){if(!this.currentNotInHTML)return!1;var t,n;if(0===this.openElements.stackTop&&this.fragmentContext)t=this.fragmentContext,n=this.fragmentContextID;else{var r=this.openElements;t=r.current,n=r.currentTagId}return(e.tagID!==WI.SVG||this.treeAdapter.getTagName(t)!==VI.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==jI.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===WI.MGLYPH||e.tagID===WI.MALIGNMARK)&&!this._isIntegrationPoint(n,t,jI.HTML))}},{key:"_processToken",value:function(e){switch(e.type){case FI.CHARACTER:this.onCharacter(e);break;case FI.NULL_CHARACTER:this.onNullCharacter(e);break;case FI.COMMENT:this.onComment(e);break;case FI.DOCTYPE:this.onDoctype(e);break;case FI.START_TAG:this._processStartTag(e);break;case FI.END_TAG:this.onEndTag(e);break;case FI.EOF:this.onEof(e);break;case FI.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}},{key:"_isIntegrationPoint",value:function(e,t,n){return YR(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}},{key:"_reconstructActiveFormattingElements",value:function(){var e=this,t=this.activeFormattingElements.entries.length;if(t)for(var n=this.activeFormattingElements.entries.findIndex((function(t){return t.type===dR.Marker||e.openElements.contains(t.element)})),r=n<0?t-1:n-1;r>=0;r--){var a=this.activeFormattingElements.entries[r];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}},{key:"_closeTableCell",value:function(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=qR.IN_ROW}},{key:"_closePElement",value:function(){this.openElements.generateImpliedEndTagsWithExclusion(WI.P),this.openElements.popUntilTagNamePopped(WI.P)}},{key:"_resetInsertionMode",value:function(){for(var e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case WI.TR:return void(this.insertionMode=qR.IN_ROW);case WI.TBODY:case WI.THEAD:case WI.TFOOT:return void(this.insertionMode=qR.IN_TABLE_BODY);case WI.CAPTION:return void(this.insertionMode=qR.IN_CAPTION);case WI.COLGROUP:return void(this.insertionMode=qR.IN_COLUMN_GROUP);case WI.TABLE:return void(this.insertionMode=qR.IN_TABLE);case WI.BODY:return void(this.insertionMode=qR.IN_BODY);case WI.FRAMESET:return void(this.insertionMode=qR.IN_FRAMESET);case WI.SELECT:return void this._resetInsertionModeForSelect(e);case WI.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case WI.HTML:return void(this.insertionMode=this.headElement?qR.AFTER_HEAD:qR.BEFORE_HEAD);case WI.TD:case WI.TH:if(e>0)return void(this.insertionMode=qR.IN_CELL);break;case WI.HEAD:if(e>0)return void(this.insertionMode=qR.IN_HEAD)}this.insertionMode=qR.IN_BODY}},{key:"_resetInsertionModeForSelect",value:function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.tagIDs[t];if(n===WI.TEMPLATE)break;if(n===WI.TABLE)return void(this.insertionMode=qR.IN_SELECT_IN_TABLE)}this.insertionMode=qR.IN_SELECT}},{key:"_isElementCausesFosterParenting",value:function(e){return ZR.has(e)}},{key:"_shouldFosterParentOnInsertion",value:function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}},{key:"_findFosterParentingLocation",value:function(){for(var e=this.openElements.stackTop;e>=0;e--){var t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case WI.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===jI.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case WI.TABLE:var n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}return{parent:this.openElements.items[0],beforeElement:null}}},{key:"_fosterParentElement",value:function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}},{key:"_isSpecialElement",value:function(e,t){var n=this.treeAdapter.getNamespaceURI(e);return ZI[n].has(t)}},{key:"onCharacter",value:function(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case qR.INITIAL:cB(this,e);break;case qR.BEFORE_HTML:fB(this,e);break;case qR.BEFORE_HEAD:dB(this,e);break;case qR.IN_HEAD:mB(this,e);break;case qR.IN_HEAD_NO_SCRIPT:gB(this,e);break;case qR.AFTER_HEAD:vB(this,e);break;case qR.IN_BODY:case qR.IN_CAPTION:case qR.IN_CELL:case qR.IN_TEMPLATE:bB(this,e);break;case qR.TEXT:case qR.IN_SELECT:case qR.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case qR.IN_TABLE:case qR.IN_TABLE_BODY:case qR.IN_ROW:xB(this,e);break;case qR.IN_TABLE_TEXT:RB(this,e);break;case qR.IN_COLUMN_GROUP:MB(this,e);break;case qR.AFTER_BODY:qB(this,e);break;case qR.AFTER_AFTER_BODY:XB(this,e)}}},{key:"onNullCharacter",value:function(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=mI,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case qR.INITIAL:cB(this,e);break;case qR.BEFORE_HTML:fB(this,e);break;case qR.BEFORE_HEAD:dB(this,e);break;case qR.IN_HEAD:mB(this,e);break;case qR.IN_HEAD_NO_SCRIPT:gB(this,e);break;case qR.AFTER_HEAD:vB(this,e);break;case qR.TEXT:this._insertCharacters(e);break;case qR.IN_TABLE:case qR.IN_TABLE_BODY:case qR.IN_ROW:xB(this,e);break;case qR.IN_COLUMN_GROUP:MB(this,e);break;case qR.AFTER_BODY:qB(this,e);break;case qR.AFTER_AFTER_BODY:XB(this,e)}}},{key:"onComment",value:function(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)sB(this,e);else switch(this.insertionMode){case qR.INITIAL:case qR.BEFORE_HTML:case qR.BEFORE_HEAD:case qR.IN_HEAD:case qR.IN_HEAD_NO_SCRIPT:case qR.AFTER_HEAD:case qR.IN_BODY:case qR.IN_TABLE:case qR.IN_CAPTION:case qR.IN_COLUMN_GROUP:case qR.IN_TABLE_BODY:case qR.IN_ROW:case qR.IN_CELL:case qR.IN_SELECT:case qR.IN_SELECT_IN_TABLE:case qR.IN_TEMPLATE:case qR.IN_FRAMESET:case qR.AFTER_FRAMESET:sB(this,e);break;case qR.IN_TABLE_TEXT:BB(this,e);break;case qR.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case qR.AFTER_AFTER_BODY:case qR.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}},{key:"onDoctype",value:function(e){switch(this.skipNextNewLine=!1,this.insertionMode){case qR.INITIAL:!function(e,t){e._setDocumentType(t);var n=t.forceQuirks?GI.QUIRKS:function(e){if(e.name!==kR)return GI.QUIRKS;var t=e.systemId;if(t&&t.toLowerCase()===xR)return GI.QUIRKS;var n=e.publicId;if(null!==n){if(n=n.toLowerCase(),OR.has(n))return GI.QUIRKS;var r=null===t?NR:wR;if(BR(n,r))return GI.QUIRKS;if(BR(n,r=null===t?IR:RR))return GI.LIMITED_QUIRKS}return GI.NO_QUIRKS}(t);(function(e){return e.name===kR&&null===e.publicId&&(null===e.systemId||e.systemId===SR)})(t)||e._err(t,gI.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=qR.BEFORE_HTML}(this,e);break;case qR.BEFORE_HEAD:case qR.IN_HEAD:case qR.IN_HEAD_NO_SCRIPT:case qR.AFTER_HEAD:this._err(e,gI.misplacedDoctype);break;case qR.IN_TABLE_TEXT:BB(this,e)}}},{key:"onStartTag",value:function(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,gI.nonVoidHtmlElementStartTagWithTrailingSolidus)}},{key:"_processStartTag",value:function(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(a=t,o=a.tagID,i=o===WI.FONT&&a.attrs.some((function(e){var t=e.name;return t===zI.COLOR||t===zI.SIZE||t===zI.FACE})),i||zR.has(o))QB(e),e._startTagOutsideForeignContent(t);else{var n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===jI.MATHML?GR(t):r===jI.SVG&&(!function(e){var t=jR.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=KI(e.tagName))}(t),VR(t)),WR(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}var a,o,i}(this,e):this._startTagOutsideForeignContent(e)}},{key:"_startTagOutsideForeignContent",value:function(e){switch(this.insertionMode){case qR.INITIAL:cB(this,e);break;case qR.BEFORE_HTML:!function(e,t){t.tagID===WI.HTML?(e._insertElement(t,jI.HTML),e.insertionMode=qR.BEFORE_HEAD):fB(e,t)}(this,e);break;case qR.BEFORE_HEAD:!function(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.HEAD:e._insertElement(t,jI.HTML),e.headElement=e.openElements.current,e.insertionMode=qR.IN_HEAD;break;default:dB(e,t)}}(this,e);break;case qR.IN_HEAD:pB(this,e);break;case qR.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.BASEFONT:case WI.BGSOUND:case WI.HEAD:case WI.LINK:case WI.META:case WI.NOFRAMES:case WI.STYLE:pB(e,t);break;case WI.NOSCRIPT:e._err(t,gI.nestedNoscriptInHead);break;default:gB(e,t)}}(this,e);break;case qR.AFTER_HEAD:!function(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.BODY:e._insertElement(t,jI.HTML),e.framesetOk=!1,e.insertionMode=qR.IN_BODY;break;case WI.FRAMESET:e._insertElement(t,jI.HTML),e.insertionMode=qR.IN_FRAMESET;break;case WI.BASE:case WI.BASEFONT:case WI.BGSOUND:case WI.LINK:case WI.META:case WI.NOFRAMES:case WI.SCRIPT:case WI.STYLE:case WI.TEMPLATE:case WI.TITLE:e._err(t,gI.abandonedHeadElementChild),e.openElements.push(e.headElement,WI.HEAD),pB(e,t),e.openElements.remove(e.headElement);break;case WI.HEAD:e._err(t,gI.misplacedStartTagForHeadElement);break;default:vB(e,t)}}(this,e);break;case qR.IN_BODY:TB(this,e);break;case qR.IN_TABLE:wB(this,e);break;case qR.IN_TABLE_TEXT:BB(this,e);break;case qR.IN_CAPTION:!function(e,t){var n=t.tagID;PB.has(n)?e.openElements.hasInTableScope(WI.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(WI.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=qR.IN_TABLE,wB(e,t)):TB(e,t)}(this,e);break;case qR.IN_COLUMN_GROUP:LB(this,e);break;case qR.IN_TABLE_BODY:HB(this,e);break;case qR.IN_ROW:jB(this,e);break;case qR.IN_CELL:!function(e,t){var n=t.tagID;PB.has(n)?(e.openElements.hasInTableScope(WI.TD)||e.openElements.hasInTableScope(WI.TH))&&(e._closeTableCell(),jB(e,t)):TB(e,t)}(this,e);break;case qR.IN_SELECT:GB(this,e);break;case qR.IN_SELECT_IN_TABLE:!function(e,t){var n=t.tagID;n===WI.CAPTION||n===WI.TABLE||n===WI.TBODY||n===WI.TFOOT||n===WI.THEAD||n===WI.TR||n===WI.TD||n===WI.TH?(e.openElements.popUntilTagNamePopped(WI.SELECT),e._resetInsertionMode(),e._processStartTag(t)):GB(e,t)}(this,e);break;case qR.IN_TEMPLATE:!function(e,t){switch(t.tagID){case WI.BASE:case WI.BASEFONT:case WI.BGSOUND:case WI.LINK:case WI.META:case WI.NOFRAMES:case WI.SCRIPT:case WI.STYLE:case WI.TEMPLATE:case WI.TITLE:pB(e,t);break;case WI.CAPTION:case WI.COLGROUP:case WI.TBODY:case WI.TFOOT:case WI.THEAD:e.tmplInsertionModeStack[0]=qR.IN_TABLE,e.insertionMode=qR.IN_TABLE,wB(e,t);break;case WI.COL:e.tmplInsertionModeStack[0]=qR.IN_COLUMN_GROUP,e.insertionMode=qR.IN_COLUMN_GROUP,LB(e,t);break;case WI.TR:e.tmplInsertionModeStack[0]=qR.IN_TABLE_BODY,e.insertionMode=qR.IN_TABLE_BODY,HB(e,t);break;case WI.TD:case WI.TH:e.tmplInsertionModeStack[0]=qR.IN_ROW,e.insertionMode=qR.IN_ROW,jB(e,t);break;default:e.tmplInsertionModeStack[0]=qR.IN_BODY,e.insertionMode=qR.IN_BODY,TB(e,t)}}(this,e);break;case qR.AFTER_BODY:!function(e,t){t.tagID===WI.HTML?TB(e,t):qB(e,t)}(this,e);break;case qR.IN_FRAMESET:!function(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.FRAMESET:e._insertElement(t,jI.HTML);break;case WI.FRAME:e._appendElement(t,jI.HTML),t.ackSelfClosing=!0;break;case WI.NOFRAMES:pB(e,t)}}(this,e);break;case qR.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.NOFRAMES:pB(e,t)}}(this,e);break;case qR.AFTER_AFTER_BODY:!function(e,t){t.tagID===WI.HTML?TB(e,t):XB(e,t)}(this,e);break;case qR.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.NOFRAMES:pB(e,t)}}(this,e)}}},{key:"onEndTag",value:function(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===WI.P||t.tagID===WI.BR)return QB(e),void e._endTagOutsideForeignContent(t);for(var n=e.openElements.stackTop;n>0;n--){var r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===jI.HTML){e._endTagOutsideForeignContent(t);break}var a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}},{key:"_endTagOutsideForeignContent",value:function(e){switch(this.insertionMode){case qR.INITIAL:cB(this,e);break;case qR.BEFORE_HTML:!function(e,t){var n=t.tagID;n!==WI.HTML&&n!==WI.HEAD&&n!==WI.BODY&&n!==WI.BR||fB(e,t)}(this,e);break;case qR.BEFORE_HEAD:!function(e,t){var n=t.tagID;n===WI.HEAD||n===WI.BODY||n===WI.HTML||n===WI.BR?dB(e,t):e._err(t,gI.endTagWithoutMatchingOpenElement)}(this,e);break;case qR.IN_HEAD:!function(e,t){switch(t.tagID){case WI.HEAD:e.openElements.pop(),e.insertionMode=qR.AFTER_HEAD;break;case WI.BODY:case WI.BR:case WI.HTML:mB(e,t);break;case WI.TEMPLATE:hB(e,t);break;default:e._err(t,gI.endTagWithoutMatchingOpenElement)}}(this,e);break;case qR.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case WI.NOSCRIPT:e.openElements.pop(),e.insertionMode=qR.IN_HEAD;break;case WI.BR:gB(e,t);break;default:e._err(t,gI.endTagWithoutMatchingOpenElement)}}(this,e);break;case qR.AFTER_HEAD:!function(e,t){switch(t.tagID){case WI.BODY:case WI.HTML:case WI.BR:vB(e,t);break;case WI.TEMPLATE:hB(e,t);break;default:e._err(t,gI.endTagWithoutMatchingOpenElement)}}(this,e);break;case qR.IN_BODY:kB(this,e);break;case qR.TEXT:!function(e,t){var n;t.tagID===WI.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case qR.IN_TABLE:NB(this,e);break;case qR.IN_TABLE_TEXT:BB(this,e);break;case qR.IN_CAPTION:!function(e,t){var n=t.tagID;switch(n){case WI.CAPTION:case WI.TABLE:e.openElements.hasInTableScope(WI.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(WI.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=qR.IN_TABLE,n===WI.TABLE&&NB(e,t));break;case WI.BODY:case WI.COL:case WI.COLGROUP:case WI.HTML:case WI.TBODY:case WI.TD:case WI.TFOOT:case WI.TH:case WI.THEAD:case WI.TR:break;default:kB(e,t)}}(this,e);break;case qR.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case WI.COLGROUP:e.openElements.currentTagId===WI.COLGROUP&&(e.openElements.pop(),e.insertionMode=qR.IN_TABLE);break;case WI.TEMPLATE:hB(e,t);break;case WI.COL:break;default:MB(e,t)}}(this,e);break;case qR.IN_TABLE_BODY:UB(this,e);break;case qR.IN_ROW:zB(this,e);break;case qR.IN_CELL:!function(e,t){var n=t.tagID;switch(n){case WI.TD:case WI.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=qR.IN_ROW);break;case WI.TABLE:case WI.TBODY:case WI.TFOOT:case WI.THEAD:case WI.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),zB(e,t));break;case WI.BODY:case WI.CAPTION:case WI.COL:case WI.COLGROUP:case WI.HTML:break;default:kB(e,t)}}(this,e);break;case qR.IN_SELECT:VB(this,e);break;case qR.IN_SELECT_IN_TABLE:!function(e,t){var n=t.tagID;n===WI.CAPTION||n===WI.TABLE||n===WI.TBODY||n===WI.TFOOT||n===WI.THEAD||n===WI.TR||n===WI.TD||n===WI.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(WI.SELECT),e._resetInsertionMode(),e.onEndTag(t)):VB(e,t)}(this,e);break;case qR.IN_TEMPLATE:!function(e,t){t.tagID===WI.TEMPLATE&&hB(e,t)}(this,e);break;case qR.AFTER_BODY:YB(this,e);break;case qR.IN_FRAMESET:!function(e,t){t.tagID!==WI.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===WI.FRAMESET||(e.insertionMode=qR.AFTER_FRAMESET))}(this,e);break;case qR.AFTER_FRAMESET:!function(e,t){t.tagID===WI.HTML&&(e.insertionMode=qR.AFTER_AFTER_FRAMESET)}(this,e);break;case qR.AFTER_AFTER_BODY:XB(this,e)}}},{key:"onEof",value:function(e){switch(this.insertionMode){case qR.INITIAL:cB(this,e);break;case qR.BEFORE_HTML:fB(this,e);break;case qR.BEFORE_HEAD:dB(this,e);break;case qR.IN_HEAD:mB(this,e);break;case qR.IN_HEAD_NO_SCRIPT:gB(this,e);break;case qR.AFTER_HEAD:vB(this,e);break;case qR.IN_BODY:case qR.IN_TABLE:case qR.IN_CAPTION:case qR.IN_COLUMN_GROUP:case qR.IN_TABLE_BODY:case qR.IN_ROW:case qR.IN_CELL:case qR.IN_SELECT:case qR.IN_SELECT_IN_TABLE:SB(this,e);break;case qR.TEXT:!function(e,t){e._err(t,gI.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case qR.IN_TABLE_TEXT:BB(this,e);break;case qR.IN_TEMPLATE:WB(this,e);break;case qR.AFTER_BODY:case qR.IN_FRAMESET:case qR.AFTER_FRAMESET:case qR.AFTER_AFTER_BODY:case qR.AFTER_AFTER_FRAMESET:lB(this,e)}}},{key:"onWhitespaceCharacter",value:function(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===dI.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case qR.IN_HEAD:case qR.IN_HEAD_NO_SCRIPT:case qR.AFTER_HEAD:case qR.TEXT:case qR.IN_COLUMN_GROUP:case qR.IN_SELECT:case qR.IN_SELECT_IN_TABLE:case qR.IN_FRAMESET:case qR.AFTER_FRAMESET:this._insertCharacters(e);break;case qR.IN_BODY:case qR.IN_CAPTION:case qR.IN_CELL:case qR.IN_TEMPLATE:case qR.AFTER_BODY:case qR.AFTER_AFTER_BODY:case qR.AFTER_AFTER_FRAMESET:DB(this,e);break;case qR.IN_TABLE:case qR.IN_TABLE_BODY:case qR.IN_ROW:xB(this,e);break;case qR.IN_TABLE_TEXT:IB(this,e)}}}],[{key:"parse",value:function(e,t){var n=new this(t);return n.tokenizer.write(e,!0),n.document}},{key:"getFragmentParser",value:function(e,t){var n=o(o({},JR),t);null!=e||(e=n.treeAdapter.createElement(VI.TEMPLATE,jI.HTML,[]));var r=n.treeAdapter.createElement("documentmock",jI.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===WI.TEMPLATE&&a.tmplInsertionModeStack.unshift(qR.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}}])}();function tB(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):FB(e,t),n}function nB(e,t){for(var n=null,r=e.openElements.stackTop;r>=0;r--){var a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function rB(e,t,n){for(var r=t,a=e.openElements.getCommonAncestor(t),o=0,i=a;i!==n;o++,i=a){a=e.openElements.getCommonAncestor(i);var u=e.activeFormattingElements.getElementEntry(i),s=u&&o>=KR;!u||s?(s&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(i)):(i=aB(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function aB(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function oB(e,t,n){var r=KI(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{var a=e.treeAdapter.getNamespaceURI(t);r===WI.TEMPLATE&&a===jI.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function iB(e,t,n){var r=e.treeAdapter.getNamespaceURI(n.element),a=n.token,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function uB(e,t){for(var n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){var a=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(a);if(o&&!o.endTag&&(e._setEndLocation(a,t),e.openElements.stackTop>=1)){var i=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(i);u&&!u.endTag&&e._setEndLocation(i,t)}}}}function cB(e,t){e._err(t,gI.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,GI.QUIRKS),e.insertionMode=qR.BEFORE_HTML,e._processToken(t)}function fB(e,t){e._insertFakeRootElement(),e.insertionMode=qR.BEFORE_HEAD,e._processToken(t)}function dB(e,t){e._insertFakeElement(VI.HEAD,WI.HEAD),e.headElement=e.openElements.current,e.insertionMode=qR.IN_HEAD,e._processToken(t)}function pB(e,t){switch(t.tagID){case WI.HTML:TB(e,t);break;case WI.BASE:case WI.BASEFONT:case WI.BGSOUND:case WI.LINK:case WI.META:e._appendElement(t,jI.HTML),t.ackSelfClosing=!0;break;case WI.TITLE:e._switchToTextParsing(t,nR.RCDATA);break;case WI.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,nR.RAWTEXT):(e._insertElement(t,jI.HTML),e.insertionMode=qR.IN_HEAD_NO_SCRIPT);break;case WI.NOFRAMES:case WI.STYLE:e._switchToTextParsing(t,nR.RAWTEXT);break;case WI.SCRIPT:e._switchToTextParsing(t,nR.SCRIPT_DATA);break;case WI.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=qR.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(qR.IN_TEMPLATE);break;case WI.HEAD:e._err(t,gI.misplacedStartTagForHeadElement);break;default:mB(e,t)}}function hB(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==WI.TEMPLATE&&e._err(t,gI.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(WI.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,gI.endTagWithoutMatchingOpenElement)}function mB(e,t){e.openElements.pop(),e.insertionMode=qR.AFTER_HEAD,e._processToken(t)}function gB(e,t){var n=t.type===FI.EOF?gI.openElementsLeftAfterEof:gI.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=qR.IN_HEAD,e._processToken(t)}function vB(e,t){e._insertFakeElement(VI.BODY,WI.BODY),e.insertionMode=qR.IN_BODY,EB(e,t)}function EB(e,t){switch(t.type){case FI.CHARACTER:bB(e,t);break;case FI.WHITESPACE_CHARACTER:DB(e,t);break;case FI.COMMENT:sB(e,t);break;case FI.START_TAG:TB(e,t);break;case FI.END_TAG:kB(e,t);break;case FI.EOF:SB(e,t)}}function DB(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function bB(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function yB(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,jI.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function CB(e){var t=SI(e,zI.TYPE);return null!=t&&t.toLowerCase()===XR}function AB(e,t){e._switchToTextParsing(t,nR.RAWTEXT)}function _B(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML)}function TB(e,t){switch(t.tagID){case WI.I:case WI.S:case WI.B:case WI.U:case WI.EM:case WI.TT:case WI.BIG:case WI.CODE:case WI.FONT:case WI.SMALL:case WI.STRIKE:case WI.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case WI.A:!function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(VI.A);n&&(uB(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case WI.H1:case WI.H2:case WI.H3:case WI.H4:case WI.H5:case WI.H6:!function(e,t){e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),JI(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,jI.HTML)}(e,t);break;case WI.P:case WI.DL:case WI.OL:case WI.UL:case WI.DIV:case WI.DIR:case WI.NAV:case WI.MAIN:case WI.MENU:case WI.ASIDE:case WI.CENTER:case WI.FIGURE:case WI.FOOTER:case WI.HEADER:case WI.HGROUP:case WI.DIALOG:case WI.DETAILS:case WI.ADDRESS:case WI.ARTICLE:case WI.SECTION:case WI.SUMMARY:case WI.FIELDSET:case WI.BLOCKQUOTE:case WI.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._insertElement(t,jI.HTML)}(e,t);break;case WI.LI:case WI.DD:case WI.DT:!function(e,t){e.framesetOk=!1;for(var n=t.tagID,r=e.openElements.stackTop;r>=0;r--){var a=e.openElements.tagIDs[r];if(n===WI.LI&&a===WI.LI||(n===WI.DD||n===WI.DT)&&(a===WI.DD||a===WI.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==WI.ADDRESS&&a!==WI.DIV&&a!==WI.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._insertElement(t,jI.HTML)}(e,t);break;case WI.BR:case WI.IMG:case WI.WBR:case WI.AREA:case WI.EMBED:case WI.KEYGEN:yB(e,t);break;case WI.HR:!function(e,t){e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._appendElement(t,jI.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case WI.RB:case WI.RTC:!function(e,t){e.openElements.hasInScope(WI.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,jI.HTML)}(e,t);break;case WI.RT:case WI.RP:!function(e,t){e.openElements.hasInScope(WI.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(WI.RTC),e._insertElement(t,jI.HTML)}(e,t);break;case WI.PRE:case WI.LISTING:!function(e,t){e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._insertElement(t,jI.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case WI.XMP:!function(e,t){e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,nR.RAWTEXT)}(e,t);break;case WI.SVG:!function(e,t){e._reconstructActiveFormattingElements(),VR(t),WR(t),t.selfClosing?e._appendElement(t,jI.SVG):e._insertElement(t,jI.SVG),t.ackSelfClosing=!0}(e,t);break;case WI.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case WI.BASE:case WI.LINK:case WI.META:case WI.STYLE:case WI.TITLE:case WI.SCRIPT:case WI.BGSOUND:case WI.BASEFONT:case WI.TEMPLATE:pB(e,t);break;case WI.BODY:!function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case WI.FORM:!function(e,t){var n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._insertElement(t,jI.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case WI.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(WI.NOBR)&&(uB(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,jI.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case WI.MATH:!function(e,t){e._reconstructActiveFormattingElements(),GR(t),WR(t),t.selfClosing?e._appendElement(t,jI.MATHML):e._insertElement(t,jI.MATHML),t.ackSelfClosing=!0}(e,t);break;case WI.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==GI.QUIRKS&&e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._insertElement(t,jI.HTML),e.framesetOk=!1,e.insertionMode=qR.IN_TABLE}(e,t);break;case WI.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,jI.HTML),CB(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case WI.PARAM:case WI.TRACK:case WI.SOURCE:!function(e,t){e._appendElement(t,jI.HTML),t.ackSelfClosing=!0}(e,t);break;case WI.IMAGE:!function(e,t){t.tagName=VI.IMG,t.tagID=WI.IMG,yB(e,t)}(e,t);break;case WI.BUTTON:!function(e,t){e.openElements.hasInScope(WI.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(WI.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML),e.framesetOk=!1}(e,t);break;case WI.APPLET:case WI.OBJECT:case WI.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case WI.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,nR.RAWTEXT)}(e,t);break;case WI.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===qR.IN_TABLE||e.insertionMode===qR.IN_CAPTION||e.insertionMode===qR.IN_TABLE_BODY||e.insertionMode===qR.IN_ROW||e.insertionMode===qR.IN_CELL?qR.IN_SELECT_IN_TABLE:qR.IN_SELECT}(e,t);break;case WI.OPTION:case WI.OPTGROUP:!function(e,t){e.openElements.currentTagId===WI.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,jI.HTML)}(e,t);break;case WI.NOEMBED:AB(e,t);break;case WI.FRAMESET:!function(e,t){var n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,jI.HTML),e.insertionMode=qR.IN_FRAMESET)}(e,t);break;case WI.TEXTAREA:!function(e,t){e._insertElement(t,jI.HTML),e.skipNextNewLine=!0,e.tokenizer.state=nR.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=qR.TEXT}(e,t);break;case WI.NOSCRIPT:e.options.scriptingEnabled?AB(e,t):_B(e,t);break;case WI.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(WI.P)&&e._closePElement(),e._insertElement(t,jI.HTML),e.tokenizer.state=nR.PLAINTEXT}(e,t);break;case WI.COL:case WI.TH:case WI.TD:case WI.TR:case WI.HEAD:case WI.FRAME:case WI.TBODY:case WI.TFOOT:case WI.THEAD:case WI.CAPTION:case WI.COLGROUP:break;default:_B(e,t)}}function FB(e,t){for(var n=t.tagName,r=t.tagID,a=e.openElements.stackTop;a>0;a--){var o=e.openElements.items[a],i=e.openElements.tagIDs[a];if(r===i&&(r!==WI.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,i))break}}function kB(e,t){switch(t.tagID){case WI.A:case WI.B:case WI.I:case WI.S:case WI.U:case WI.EM:case WI.TT:case WI.BIG:case WI.CODE:case WI.FONT:case WI.NOBR:case WI.SMALL:case WI.STRIKE:case WI.STRONG:uB(e,t);break;case WI.P:!function(e){e.openElements.hasInButtonScope(WI.P)||e._insertFakeElement(VI.P,WI.P),e._closePElement()}(e);break;case WI.DL:case WI.UL:case WI.OL:case WI.DIR:case WI.DIV:case WI.NAV:case WI.PRE:case WI.MAIN:case WI.MENU:case WI.ASIDE:case WI.BUTTON:case WI.CENTER:case WI.FIGURE:case WI.FOOTER:case WI.HEADER:case WI.HGROUP:case WI.DIALOG:case WI.ADDRESS:case WI.ARTICLE:case WI.DETAILS:case WI.SECTION:case WI.SUMMARY:case WI.LISTING:case WI.FIELDSET:case WI.BLOCKQUOTE:case WI.FIGCAPTION:!function(e,t){var n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case WI.LI:!function(e){e.openElements.hasInListItemScope(WI.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(WI.LI),e.openElements.popUntilTagNamePopped(WI.LI))}(e);break;case WI.DD:case WI.DT:!function(e,t){var n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case WI.H1:case WI.H2:case WI.H3:case WI.H4:case WI.H5:case WI.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case WI.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(VI.BR,WI.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case WI.BODY:!function(e,t){if(e.openElements.hasInScope(WI.BODY)&&(e.insertionMode=qR.AFTER_BODY,e.options.sourceCodeLocationInfo)){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case WI.HTML:!function(e,t){e.openElements.hasInScope(WI.BODY)&&(e.insertionMode=qR.AFTER_BODY,YB(e,t))}(e,t);break;case WI.FORM:!function(e){var t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(WI.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(WI.FORM):n&&e.openElements.remove(n))}(e);break;case WI.APPLET:case WI.OBJECT:case WI.MARQUEE:!function(e,t){var n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case WI.TEMPLATE:hB(e,t);break;default:FB(e,t)}}function SB(e,t){e.tmplInsertionModeStack.length>0?WB(e,t):lB(e,t)}function xB(e,t){if(ZR.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=qR.IN_TABLE_TEXT,t.type){case FI.CHARACTER:RB(e,t);break;case FI.WHITESPACE_CHARACTER:IB(e,t)}else OB(e,t)}function wB(e,t){switch(t.tagID){case WI.TD:case WI.TH:case WI.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(VI.TBODY,WI.TBODY),e.insertionMode=qR.IN_TABLE_BODY,HB(e,t)}(e,t);break;case WI.STYLE:case WI.SCRIPT:case WI.TEMPLATE:pB(e,t);break;case WI.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(VI.COLGROUP,WI.COLGROUP),e.insertionMode=qR.IN_COLUMN_GROUP,LB(e,t)}(e,t);break;case WI.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,jI.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case WI.TABLE:!function(e,t){e.openElements.hasInTableScope(WI.TABLE)&&(e.openElements.popUntilTagNamePopped(WI.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case WI.TBODY:case WI.TFOOT:case WI.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,jI.HTML),e.insertionMode=qR.IN_TABLE_BODY}(e,t);break;case WI.INPUT:!function(e,t){CB(t)?e._appendElement(t,jI.HTML):OB(e,t),t.ackSelfClosing=!0}(e,t);break;case WI.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,jI.HTML),e.insertionMode=qR.IN_CAPTION}(e,t);break;case WI.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,jI.HTML),e.insertionMode=qR.IN_COLUMN_GROUP}(e,t);break;default:OB(e,t)}}function NB(e,t){switch(t.tagID){case WI.TABLE:e.openElements.hasInTableScope(WI.TABLE)&&(e.openElements.popUntilTagNamePopped(WI.TABLE),e._resetInsertionMode());break;case WI.TEMPLATE:hB(e,t);break;case WI.BODY:case WI.CAPTION:case WI.COL:case WI.COLGROUP:case WI.HTML:case WI.TBODY:case WI.TD:case WI.TFOOT:case WI.TH:case WI.THEAD:case WI.TR:break;default:OB(e,t)}}function OB(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,EB(e,t),e.fosterParentingEnabled=n}function IB(e,t){e.pendingCharacterTokens.push(t)}function RB(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function BB(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===WI.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===WI.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===WI.OPTGROUP&&e.openElements.pop();break;case WI.OPTION:e.openElements.currentTagId===WI.OPTION&&e.openElements.pop();break;case WI.SELECT:e.openElements.hasInSelectScope(WI.SELECT)&&(e.openElements.popUntilTagNamePopped(WI.SELECT),e._resetInsertionMode());break;case WI.TEMPLATE:hB(e,t)}}function WB(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(WI.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):lB(e,t)}function YB(e,t){var n;if(t.tagID===WI.HTML){if(e.fragmentContext||(e.insertionMode=qR.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===WI.HTML){e._setEndLocation(e.openElements.items[0],t);var r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else qB(e,t)}function qB(e,t){e.insertionMode=qR.IN_BODY,EB(e,t)}function XB(e,t){e.insertionMode=qR.IN_BODY,EB(e,t)}function QB(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==jI.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}new Set([VI.AREA,VI.BASE,VI.BASEFONT,VI.BGSOUND,VI.BR,VI.COL,VI.EMBED,VI.FRAME,VI.HR,VI.IMG,VI.INPUT,VI.KEYGEN,VI.LINK,VI.META,VI.PARAM,VI.SOURCE,VI.TRACK,VI.WBR]);var KB=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),$B={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ZB(e,t){var n=function(e){var t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=oI("type",{handlers:{root:eP,element:tP,text:nP,comment:oP,doctype:rP,raw:iP},unknown:uP}),a={parser:n?new eB($B):eB.getFragmentParser(void 0,$B),handle:function(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),sP(a,QS());var o=function(e,t){var n=t||{};return JO({file:n.file||void 0,location:!1,schema:"svg"===n.space?wS:xS,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&VN(o,"comment",(function(e,t,n){var r=e;if(r.value.stitch&&n&&void 0!==t)return n.children[t]=r.value.stitch,t})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function JB(e,t){var n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);var n={type:FI.CHARACTER,chars:e.value,location:cP(e)};sP(t,QS(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function rP(e,t){var n={type:FI.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:cP(e)};sP(t,QS(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function aP(e,t){t.stitches=!0;var n=function(e){return ON("children"in e?o(o({},e),{},{children:[]}):e)}(e);if("children"in e&&"children"in n){var r=ZB({type:"root",children:e.children},t.options);n.children=r.children}oP({type:"comment",value:{stitch:n}},t)}function oP(e,t){var n=e.value,r={type:FI.COMMENT,data:n,location:cP(e)};sP(t,QS(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function iP(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,lP(t,QS(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;var n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function uP(e,t){var n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){var r="";throw KB.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}aP(n,t)}function sP(e,t){lP(e,t);var n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=nR.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function lP(e,t){if(t&&void 0!==t.offset){var n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function cP(e){var t=QS(e)||{line:void 0,column:void 0,offset:void 0},n=XS(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function fP(e){return function(t,n){return ZB(t,o(o({},e),{},{file:n}))}}function dP(e,t){return pP.apply(this,arguments)}function pP(){return(pP=r(t().mark((function e(n,r){var a,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.getReader();case 1:return e.next=3,a.read();case 3:if((o=e.sent).done){e.next=7;break}r(o.value),e.next=1;break;case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hP(e){var t,n,r,a=!1;return function(o){void 0===t?(t=o,n=0,r=-1):t=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(t,o);for(var i=t.length,u=0;n0){var u=a.decode(o.subarray(0,i)),s=i+(32===o[i+1]?2:1),l=a.decode(o.subarray(s));switch(u){case"data":r.data=r.data?r.data+"\n"+l:l;break;case"event":r.event=l;break;case"id":e(r.id=l);break;case"retry":var c=parseInt(l,10);isNaN(c)||t(r.retry=c)}}}}function gP(){return{data:"",event:"",id:"",retry:void 0}}var vP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a".concat(t,"")}))},CP=function(){var e;oe.useRef(null);var n=v(oe.useState(!1),2),a=n[0],i=n[1],u=v(oe.useState(""),2),s=u[0],l=u[1],c=v(oe.useState(""),2),f=c[0],d=c[1],p=v(oe.useState(!1),2),h=p[0],m=p[1],g=v(oe.useState(!1),2),D=g[0],b=g[1],y=v(oe.useState(""),2),C=y[0],A=y[1],_=v(oe.useState(!0),2),T=_[0],F=_[1],k=v(oe.useState(!1),2),S=(k[0],k[1]),x=v(oe.useState(""),2),w=x[0],N=x[1],O=v(oe.useState(""),2),I=O[0],R=O[1],B=v(oe.useState(!1),2),P=B[0],L=B[1],M=v(oe.useState(""),2),H=M[0],U=M[1],j=v(oe.useState(""),2),z=j[0],G=j[1],V=v(oe.useState([]),2),W=V[0],Y=V[1],q=v(oe.useState([]),2),X=q[0],Q=q[1],K=v(oe.useState([]),2),$=K[0],Z=K[1],J=v(oe.useState(null),2),ee=J[0],te=J[1];oe.useState(0);var ne=v(oe.useState(""),2),re=ne[0],ae=ne[1],ie=v(oe.useState(0),2),ue=ie[0],se=ie[1],le=v(oe.useState([!0,!0]),2),ce=le[0],fe=le[1],de=v(oe.useState(0),2),pe=de[0],he=de[1],me=v(oe.useState(!0),2),De=me[0],be=me[1],ye=v(oe.useState(!1),2),Ce=ye[0],Ae=ye[1],_e=v(oe.useState([]),2),Te=_e[0],Fe=_e[1],ke=v(oe.useState(""),2),Se=ke[0],xe=ke[1],we=oe.useRef(!1),Ne=oe.useRef(!1),Oe=oe.useRef(!1),Ie=v(oe.useState(null),2),Re=Ie[0],Be=Ie[1],Pe=v(oe.useState(!1),2),Le=Pe[0],Me=Pe[1],He=v(oe.useState([]),2),Ue=He[0],je=He[1],ze=function(){be(!De)},Ge=function e(t,n){return t.map((function(t){return 1===t.state&&0!==t.id?o(o({},t),{},{state:3}):t.name===n?o(o({},t),{},{state:1}):(t.children&&(t.children=e(t.children,n)),t)}))},Ve=function(e,t,n){var r=0,a=setInterval((function(){if("stepDraft-1"===t&&r+3>(null==e?void 0:e.length)&&(Oe.current=!0),r<(null==e?void 0:e.length)){var o=e.slice(r,Math.min(r+10,e.length));r+=o.length,"thought"===t?A(e.slice(0,r)):"stepDraft-0"===t?N(e.slice(0,r)):"stepDraft-1"===t?R(e.slice(0,r)):"conclusion"===t?U(e.slice(0,r)):"response"===t&&ae(e.slice(0,r))}else clearInterval(a),n&&n()}),20)},We=function(){Ae(!0);var e=function(){ee.actions[ue].result[0].content&&("BingBrowser.search"!==ee.actions[ue].type&&"BingBrowser"!==ee.actions[ue].type||function(){var e=0,t=JSON.parse(ee.actions[ue].result[0].content),n=Object.keys(t).map((function(e){return o({id:e},t[e])})),r=Object.keys(t).length,a=setInterval((function(){++ee.length&&(Ne.current=!0,L(!0)))}),[localStorage.getItem("nodeRes"),Oe.current,Le]),oe.useEffect((function(){var e,t,n,r,a,u,s;if(1!==(null==Re||null===(e=Re.response)||void 0===e||null===(t=e.nodes[Re.current_node])||void 0===t||null===(n=t.detail)||void 0===n?void 0:n.state)&&i(!0),0===(null==Re||null===(r=Re.response)||void 0===r||null===(a=r.nodes)||void 0===a||null===(u=a[Re.current_node].detail)||void 0===u?void 0:u.state)&&(null==ee?void 0:ee.current_node)===Re.current_node&&(console.log("node render end-----",Re),Me(!0)),null!=Re&&Re.current_node&&3===(null==Re||null===(s=Re.response)||void 0===s?void 0:s.state)){var l,c,f,d,p,h,m,g,v,E,D,b,y,C,A,_,T,F,k,S,x,w,N,O,I;if(2===(null===(l=Re.response.nodes[Re.current_node])||void 0===l||null===(c=l.detail)||void 0===c||null===(f=c.actions)||void 0===f?void 0:f.length)&&1===(null===(d=Re.response.nodes[Re.current_node])||void 0===d||null===(p=d.detail)||void 0===p?void 0:p.state)&&null!==(h=Re.response.nodes[Re.current_node])&&void 0!==h&&h.detail.response)window.localStorage.setItem("nodeRes",null===(F=Re.response.nodes[Re.current_node])||void 0===F?void 0:F.detail.response);if(Re.current_node&&1===(null===(m=Re.response.nodes[Re.current_node])||void 0===m||null===(g=m.detail)||void 0===g?void 0:g.state)&&null!==(v=Re.response.nodes[Re.current_node])&&void 0!==v&&null!==(E=v.detail)&&void 0!==E&&null!==(D=E.actions)&&void 0!==D&&D.length&&0===ue&&(null==ee?void 0:ee.current_node)!==(null==Re?void 0:Re.current_node))console.log("update current node----"),i(!1),te(o(o({},null===(k=Re.response.nodes[Re.current_node])||void 0===k?void 0:k.detail),{},{current_node:Re.current_node}));if(!Te.length&&"BingBrowser.select"===(null===(b=Re.response.nodes[Re.current_node])||void 0===b||null===(y=b.detail)||void 0===y||null===(C=y.actions)||void 0===C||null===(A=C[1])||void 0===A?void 0:A.type)&&1===(null===(_=Re.response.nodes[Re.current_node])||void 0===_||null===(T=_.detail)||void 0===T?void 0:T.state))Fe((null===(S=Re.response.nodes[Re.current_node])||void 0===S||null===(x=S.detail)||void 0===x||null===(w=x.actions)||void 0===w||null===(N=w[1])||void 0===N||null===(O=N.args)||void 0===O?void 0:O.select_ids)||[]),te(o(o({},null===(I=Re.response.nodes[Re.current_node])||void 0===I?void 0:I.detail),{},{current_node:Re.current_node}))}}),[Re]),oe.useEffect((function(){ee&&!Ce&&We()}),[ee,Ce,Te]),oe.useEffect((function(){!we.current&&Te.length&&2===(null==ee?void 0:ee.actions.length)&&function(e){Fe([]),se(ue+1);var t=E(X);t.forEach((function(t){e.includes(Number(t.id))&&(t.highLight=!0)})),t.sort((function(e,t){return e.highLight===t.highLight?0:e.highLight?-1:1})),Q(t),Ve(ee.actions[1].thought,"stepDraft-1",(function(){})),we.current=!0}(Te)}),[Te,ee]),oe.useEffect((function(){Se&&Se!==(null==ee?void 0:ee.current_node)&&P&&!h&&(qe(Se),he(function(){var e=document.querySelectorAll("article");if(null!=e&&e.length){var t=0;e.forEach((function(e,n){e.getBoundingClientRect().right>t&&(t=e.getBoundingClientRect().right)}));var n=e[0].getBoundingClientRect();return t-n.left+200>pe?t-n.left+200:pe}return 100}()))}),[Se,ee,P,h]);var Ye=oe.useRef(null);oe.useEffect((function(){return h?(Ye.current=setInterval((function(){!function(e,t){var n=t.offsetHeight;n>e.offsetHeight&&(e.scrollTop=n-e.offsetHeight)}(document.getElementById("chatArea"),document.getElementById("messageWindowId")),T&&clearInterval(Ye.current)}),500),setTimeout((function(){b(!0)}),300)):Ye.current&&(clearInterval(Ye.current),Ye.current=null),function(){Ye.current&&(clearInterval(Ye.current),Ye.current=null)}}),[h,T]),oe.useEffect((function(){Z([]),ae(""),A(""),m(!1),be(!0),window.localStorage.setItem("nodeRes",""),window.localStorage.setItem("finishedNodes","")}),[s]);var qe=function(e){"response"!==e&&(Ge($,e),console.log("reset node------",e,$),se(0),Y([]),Q([]),U(""),fe([!0,!0]),N(""),R(""),L(!1),te(null),Ae(!1),Fe([]),Me(!1),we.current=!1,Oe.current=!1,Ne.current=!1,window.localStorage.setItem("nodeRes",""))},Xe=function(){if(T){l(f),F(!1);var e={inputs:[{role:"user",content:f}]};new AbortController,function(e,n){var a=n.signal,o=n.headers,i=n.onopen,u=n.onmessage,s=n.onclose,l=n.onerror,c=n.openWhenHidden,f=n.fetch,d=vP(n,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);new Promise((function(n,p){var h,m=Object.assign({},o);function g(){h.abort(),document.hidden||C()}m.accept||(m.accept=EP),c||document.addEventListener("visibilitychange",g);var v=1e3,E=0;function D(){document.removeEventListener("visibilitychange",g),window.clearTimeout(E),h.abort()}null==a||a.addEventListener("abort",(function(){D(),n()}));var b=null!=f?f:window.fetch,y=null!=i?i:bP;function C(){return A.apply(this,arguments)}function A(){return A=r(t().mark((function r(){var a,o,i;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=new AbortController,t.prev=1,t.next=4,b(e,Object.assign(Object.assign({},d),{headers:m,signal:h.signal}));case 4:return o=t.sent,t.next=7,y(o);case 7:return t.next=9,dP(o.body,hP(mP((function(e){e?m[DP]=e:delete m[DP]}),(function(e){v=e}),u)));case 9:null==s||s(),D(),n(),t.next=17;break;case 14:if(t.prev=14,t.t0=t.catch(1),!h.signal.aborted)try{i=null!==(a=null==l?void 0:l(t.t0))&&void 0!==a?a:v,window.clearTimeout(E),E=window.setTimeout(C,i)}catch(r){D(),p(r)}case 17:case"end":return t.stop()}}),r,null,[[1,14]])}))),A.apply(this,arguments)}C()}))}("https://mindsearch.openxlab.org.cn/solve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),onmessage:function(e){!function(e){try{i(!1);var t=JSON.parse(e);if(!t.current_node&&0===t.response.state)return console.log("chat is over end-------"),void F(!0);if(!t.current_node&&9===t.response.state){be(!1),m(!0);var n=yP(t.response.response);return void ae(n)}if(t.current_node||1!==t.response.state||ee||(S(!1),A(t.response.response)),t.current_node||1===t.response.state&&0===t.response.state&&9===t.response.state||(S(!0),i(!0)),t.current_node&&3===t.response.state){var r;xe(t.current_node),Be(t);var a=null===(r=t.response)||void 0===r?void 0:r.adjacency_list;(null==a?void 0:a.length)>0&&je(a)}}catch(o){console.log("format error-----",o)}}(e.data)},onerror:function(e){console.log("sse error------",e)}})}else Ik.warning("有对话进行中!")};return Ee("div",{className:Gd,style:De?{}:{maxWidth:"1000px"},children:[Ee("div",{className:Vd,children:[ve("div",{className:Wd,id:"chatArea",children:Ee("div",{id:"messageWindowId",children:[s&&ve("div",{className:Yd,children:ve("span",{children:s})}),(C||re||(null==$?void 0:$.length)>0)&&Ee("div",{className:Qd,children:[(null==$?void 0:$.length)>0?ve("div",{className:Kd,children:ve("div",{className:$d,children:Ee("ul",{className:_p,id:"mindMap",style:h?{width:pe,overflow:"hidden"}:{},children:[$.map((function(e){return ve(Lp,{item:e,isEnd:h},e.name)})),D&&ve("div",{className:qd,style:function(){var e=document.getElementsByClassName("endline"),t=document.getElementById("mindMap");if(e.length>=2&&t){var n=e[0].getBoundingClientRect(),r=e[e.length-1].getBoundingClientRect(),a=null==t?void 0:t.getBoundingClientRect(),o=r.top-n.top;return{top:n.top-a.top,height:o+1}}return{top:"50%",height:0}}(),children:ve("div",{className:Xd,children:ve("article",{children:"最终回复"})})})]})})}):ve(ge,{}),!re&&ve("div",{className:Cp,children:ve(MO,{rehypePlugins:[fP],children:yP(C)})}),re&&ve("div",{className:Zd,children:ve(MO,{rehypePlugins:[fP],children:re})})]})]})}),Ee("div",{className:Jd,children:[ve(Ck,{type:"text",placeholder:"说点什么吧~ Shift+Enter 换行 ; Enter 发送",onChange:function(e){d(e.target.value)},onPressEnter:Xe}),Ee("button",{onClick:Xe,children:[ve("img",{src:"/assets/sendIcon-79e92e84.svg"}),"发送"]})]}),Ee("div",{className:ep,children:["如果想要更丝滑的体验,请在本地搭建-",Ee("a",{href:"https://github.com/InternLM/MindSearch",target:"_blank",children:["MindSearch ",ve(Uk,{type:"icon-GithubFilled"})]})]})]}),De&&Ee("div",{className:tp,children:[ee&&Ee(ge,{children:[ve("div",{className:np,onClick:ze,children:ve(oF,{placement:"top",title:"收起",children:ve("img",{src:"/assets/pack-up-ad0b3cbc.svg"})})}),ve("div",{className:rp,children:(null==ee?void 0:ee.content)||(null==ee?void 0:ee.node)}),null!=ee&&null!==(e=ee.actions)&&void 0!==e&&e.length?ve(ge,{children:ee.actions.map((function(e,t){return ue>=t&&Ee("div",{className:Pp(op,"BingBrowser.search"===e.type?sp:lp),children:[Ee("div",{className:ip,children:[ve("i",{}),"BingBrowser.search"===e.type?"思考":"BingBrowser.select"===e.type?"信息来源":"信息整合",ve("div",{className:up,onClick:function(){!function(e){var t=E(ce);t[e]=!t[e],fe(t)}(t)},children:ve(Uk,{type:ce[t]?"icon-shouqi":"icon-xiangxiazhankai"})})]}),Ee("div",{className:Pp(fp,ce[t]?"":dp),children:["BingBrowser.search"===e.type&&ve("div",{className:gp,children:ve(MO,{rehypePlugins:[fP],children:w})}),"BingBrowser.search"===e.type&&W.length>0&&Ee("div",{className:hp,children:[Ee("div",{className:pp,children:[ve(Uk,{type:"icon-SearchOutlined"}),"搜索关键词"]}),W.map((function(e,t){return ve("div",{className:Pp(mp,Rp),children:e},"query-item-".concat(e))}))]}),ue===t&&X.length>0&&Ee("div",{className:cp,children:["BingBrowser.search"===e.type&&Ee("div",{className:pp,children:[ve(Uk,{type:"icon-DocOutlined"}),"信息来源"]}),"BingBrowser.select"===e.type&&ve("div",{className:gp,children:ve(MO,{rehypePlugins:[fP],children:I})}),ve("div",{className:vp,style:X.length>5&&0===ue?{height:"300px"}:{},children:ve("div",{className:Kd,style:X.length>5&&0===ue?{position:"absolute",bottom:0,left:0}:{},children:X.map((function(e,n){return Ee("div",{className:Pp(Ep,e.highLight?Dp:""),children:[Ee("p",{className:bp,children:[e.id,". ",null==e?void 0:e.title]}),ve("p",{className:yp,children:null==e?void 0:e.url})]},"search-item-".concat(e.url,"-").concat(t))}))})})]})]})]},"step-".concat(t))}))}):ve(ge,{})]}),H&&Ee("div",{className:op,children:[Ee("div",{className:ip,children:[ve("i",{}),"信息整合"]}),ve("div",{className:ap,children:ve(MO,{rehypePlugins:[fP],children:H})})]}),a&&s&&ve("div",{className:Ip})]}),!De&&ve("div",{className:Op,onClick:ze,children:ve("img",{src:"/assets/show-right-icon-12c14da5.png"})})]})},AP=[{path:"/",needLogin:!1,element:ve(CP,{})},{path:"*",element:ve(Ld,{to:"/"})}],_P=function(){return Sd(AP.map((function(e){return e.needLogin?o(o({},e),{},{element:ve(ge,{})}):e})))};function TP(){return ve(zd,{children:Ee("div",{className:If,id:"app",children:[ve("div",{className:Bf,children:ve("div",{className:Pf,children:ve("img",{src:"/assets/logo-38417354.svg"})})}),ve("div",{className:Rf,children:ve(_P,{})})]})})}De.createRoot(document.getElementById("root")).render(ve(ie.StrictMode,{children:ve(TP,{})}))}}}))}(); diff --git a/dist/assets/pack-up-ad0b3cbc.svg b/dist/assets/pack-up-ad0b3cbc.svg deleted file mode 100644 index 15c53a9cfc70f0145475d917a3b3bd32036afd4d..0000000000000000000000000000000000000000 --- a/dist/assets/pack-up-ad0b3cbc.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/polyfills-legacy-0b55db5f.js b/dist/assets/polyfills-legacy-0b55db5f.js deleted file mode 100644 index b14dc27fddb1fcb6ecaf20e583302e8a0ba71152..0000000000000000000000000000000000000000 --- a/dist/assets/polyfills-legacy-0b55db5f.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math===Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n={},o=function(t){try{return!!t()}catch(e){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,a=Function.prototype.call,f=c?a.bind(a):function(){return a.apply(a,arguments)},s={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1);s.f=p?function(t){var e=h(this,t);return!!e&&e.enumerable}:l;var v,d,y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=u,m=Function.prototype,b=m.call,w=g&&m.bind.bind(b,b),S=g?w:function(t){return function(){return b.apply(t,arguments)}},O=S,x=O({}.toString),E=O("".slice),j=function(t){return E(x(t),8,-1)},P=o,T=j,I=Object,L=S("".split),R=P((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?L(t,""):I(t)}:I,A=function(t){return null==t},k=A,C=TypeError,_=function(t){if(k(t))throw new C("Can't call method on "+t);return t},F=R,N=_,M=function(t){return F(N(t))},D="object"==typeof document&&document.all,z=void 0===D&&void 0!==D?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},G=z,U=function(t){return"object"==typeof t?null!==t:G(t)},B=r,W=z,V=function(t,e){return arguments.length<2?(r=B[t],W(r)?r:void 0):B[t]&&B[t][e];var r},J=S({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=r,$=K,q=Y.process,H=Y.Deno,X=q&&q.versions||H&&H.version,Q=X&&X.v8;Q&&(d=(v=Q.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!d&&$&&(!(v=$.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=$.match(/Chrome\/(\d+)/))&&(d=+v[1]);var Z=d,tt=Z,et=o,rt=r.String,nt=!!Object.getOwnPropertySymbols&&!et((function(){var t=Symbol("symbol detection");return!rt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),ot=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it=V,ut=z,ct=J,at=Object,ft=ot?function(t){return"symbol"==typeof t}:function(t){var e=it("Symbol");return ut(e)&&ct(e.prototype,at(t))},st=String,lt=function(t){try{return st(t)}catch(e){return"Object"}},ht=z,pt=lt,vt=TypeError,dt=function(t){if(ht(t))return t;throw new vt(pt(t)+" is not a function")},yt=dt,gt=A,mt=function(t,e){var r=t[e];return gt(r)?void 0:yt(r)},bt=f,wt=z,St=U,Ot=TypeError,xt={exports:{}},Et=r,jt=Object.defineProperty,Pt=function(t,e){try{jt(Et,t,{value:e,configurable:!0,writable:!0})}catch(r){Et[t]=e}return e},Tt=r,It=Pt,Lt="__core-js_shared__",Rt=xt.exports=Tt[Lt]||It(Lt,{});(Rt.versions||(Rt.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var At=xt.exports,kt=At,Ct=function(t,e){return kt[t]||(kt[t]=e||{})},_t=_,Ft=Object,Nt=function(t){return Ft(_t(t))},Mt=Nt,Dt=S({}.hasOwnProperty),zt=Object.hasOwn||function(t,e){return Dt(Mt(t),e)},Gt=S,Ut=0,Bt=Math.random(),Wt=Gt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Wt(++Ut+Bt,36)},Jt=Ct,Kt=zt,Yt=Vt,$t=nt,qt=ot,Ht=r.Symbol,Xt=Jt("wks"),Qt=qt?Ht.for||Ht:Ht&&Ht.withoutSetter||Yt,Zt=function(t){return Kt(Xt,t)||(Xt[t]=$t&&Kt(Ht,t)?Ht[t]:Qt("Symbol."+t)),Xt[t]},te=f,ee=U,re=ft,ne=mt,oe=function(t,e){var r,n;if("string"===e&&wt(r=t.toString)&&!St(n=bt(r,t)))return n;if(wt(r=t.valueOf)&&!St(n=bt(r,t)))return n;if("string"!==e&&wt(r=t.toString)&&!St(n=bt(r,t)))return n;throw new Ot("Can't convert object to primitive value")},ie=TypeError,ue=Zt("toPrimitive"),ce=function(t,e){if(!ee(t)||re(t))return t;var r,n=ne(t,ue);if(n){if(void 0===e&&(e="default"),r=te(n,t,e),!ee(r)||re(r))return r;throw new ie("Can't convert object to primitive value")}return void 0===e&&(e="number"),oe(t,e)},ae=ft,fe=function(t){var e=ce(t,"string");return ae(e)?e:e+""},se=U,le=r.document,he=se(le)&&se(le.createElement),pe=function(t){return he?le.createElement(t):{}},ve=pe,de=!i&&!o((function(){return 7!==Object.defineProperty(ve("div"),"a",{get:function(){return 7}}).a})),ye=i,ge=f,me=s,be=y,we=M,Se=fe,Oe=zt,xe=de,Ee=Object.getOwnPropertyDescriptor;n.f=ye?Ee:function(t,e){if(t=we(t),e=Se(e),xe)try{return Ee(t,e)}catch(r){}if(Oe(t,e))return be(!ge(me.f,t,e),t[e])};var je={},Pe=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Te=U,Ie=String,Le=TypeError,Re=function(t){if(Te(t))return t;throw new Le(Ie(t)+" is not an object")},Ae=i,ke=de,Ce=Pe,_e=Re,Fe=fe,Ne=TypeError,Me=Object.defineProperty,De=Object.getOwnPropertyDescriptor,ze="enumerable",Ge="configurable",Ue="writable";je.f=Ae?Ce?function(t,e,r){if(_e(t),e=Fe(e),_e(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ue in r&&!r[Ue]){var n=De(t,e);n&&n[Ue]&&(t[e]=r.value,r={configurable:Ge in r?r[Ge]:n[Ge],enumerable:ze in r?r[ze]:n[ze],writable:!1})}return Me(t,e,r)}:Me:function(t,e,r){if(_e(t),e=Fe(e),_e(r),ke)try{return Me(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new Ne("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Be=je,We=y,Ve=i?function(t,e,r){return Be.f(t,e,We(1,r))}:function(t,e,r){return t[e]=r,t},Je={exports:{}},Ke=i,Ye=zt,$e=Function.prototype,qe=Ke&&Object.getOwnPropertyDescriptor,He=Ye($e,"name"),Xe={EXISTS:He,PROPER:He&&"something"===function(){}.name,CONFIGURABLE:He&&(!Ke||Ke&&qe($e,"name").configurable)},Qe=z,Ze=At,tr=S(Function.toString);Qe(Ze.inspectSource)||(Ze.inspectSource=function(t){return tr(t)});var er,rr,nr,or=Ze.inspectSource,ir=z,ur=r.WeakMap,cr=ir(ur)&&/native code/.test(String(ur)),ar=Vt,fr=Ct("keys"),sr=function(t){return fr[t]||(fr[t]=ar(t))},lr={},hr=cr,pr=r,vr=U,dr=Ve,yr=zt,gr=At,mr=sr,br=lr,wr="Object already initialized",Sr=pr.TypeError,Or=pr.WeakMap;if(hr||gr.state){var xr=gr.state||(gr.state=new Or);xr.get=xr.get,xr.has=xr.has,xr.set=xr.set,er=function(t,e){if(xr.has(t))throw new Sr(wr);return e.facade=t,xr.set(t,e),e},rr=function(t){return xr.get(t)||{}},nr=function(t){return xr.has(t)}}else{var Er=mr("state");br[Er]=!0,er=function(t,e){if(yr(t,Er))throw new Sr(wr);return e.facade=t,dr(t,Er,e),e},rr=function(t){return yr(t,Er)?t[Er]:{}},nr=function(t){return yr(t,Er)}}var jr={set:er,get:rr,has:nr,enforce:function(t){return nr(t)?rr(t):er(t,{})},getterFor:function(t){return function(e){var r;if(!vr(e)||(r=rr(e)).type!==t)throw new Sr("Incompatible receiver, "+t+" required");return r}}},Pr=S,Tr=o,Ir=z,Lr=zt,Rr=i,Ar=Xe.CONFIGURABLE,kr=or,Cr=jr.enforce,_r=jr.get,Fr=String,Nr=Object.defineProperty,Mr=Pr("".slice),Dr=Pr("".replace),zr=Pr([].join),Gr=Rr&&!Tr((function(){return 8!==Nr((function(){}),"length",{value:8}).length})),Ur=String(String).split("String"),Br=Je.exports=function(t,e,r){"Symbol("===Mr(Fr(e),0,7)&&(e="["+Dr(Fr(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Lr(t,"name")||Ar&&t.name!==e)&&(Rr?Nr(t,"name",{value:e,configurable:!0}):t.name=e),Gr&&r&&Lr(r,"arity")&&t.length!==r.arity&&Nr(t,"length",{value:r.arity});try{r&&Lr(r,"constructor")&&r.constructor?Rr&&Nr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Cr(t);return Lr(n,"source")||(n.source=zr(Ur,"string"==typeof e?e:"")),t};Function.prototype.toString=Br((function(){return Ir(this)&&_r(this).source||kr(this)}),"toString");var Wr=Je.exports,Vr=z,Jr=je,Kr=Wr,Yr=Pt,$r=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Vr(r)&&Kr(r,i,n),n.global)o?t[e]=r:Yr(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(u){}o?t[e]=r:Jr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},qr={},Hr=Math.ceil,Xr=Math.floor,Qr=Math.trunc||function(t){var e=+t;return(e>0?Xr:Hr)(e)},Zr=function(t){var e=+t;return e!=e||0===e?0:Qr(e)},tn=Zr,en=Math.max,rn=Math.min,nn=Zr,on=Math.min,un=function(t){var e=nn(t);return e>0?on(e,9007199254740991):0},cn=un,an=function(t){return cn(t.length)},fn=M,sn=function(t,e){var r=tn(t);return r<0?en(r+e,0):rn(r,e)},ln=an,hn=function(t){return function(e,r,n){var o=fn(e),i=ln(o);if(0===i)return!t&&-1;var u,c=sn(n,i);if(t&&r!=r){for(;i>c;)if((u=o[c++])!=u)return!0}else for(;i>c;c++)if((t||c in o)&&o[c]===r)return t||c||0;return!t&&-1}},pn={includes:hn(!0),indexOf:hn(!1)},vn=zt,dn=M,yn=pn.indexOf,gn=lr,mn=S([].push),bn=function(t,e){var r,n=dn(t),o=0,i=[];for(r in n)!vn(gn,r)&&vn(n,r)&&mn(i,r);for(;e.length>o;)vn(n,r=e[o++])&&(~yn(i,r)||mn(i,r));return i},wn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=bn,On=wn.concat("length","prototype");qr.f=Object.getOwnPropertyNames||function(t){return Sn(t,On)};var xn={};xn.f=Object.getOwnPropertySymbols;var En=V,jn=qr,Pn=xn,Tn=Re,In=S([].concat),Ln=En("Reflect","ownKeys")||function(t){var e=jn.f(Tn(t)),r=Pn.f;return r?In(e,r(t)):e},Rn=zt,An=Ln,kn=n,Cn=je,_n=o,Fn=z,Nn=/#|\.prototype\./,Mn=function(t,e){var r=zn[Dn(t)];return r===Un||r!==Gn&&(Fn(e)?_n(e):!!e)},Dn=Mn.normalize=function(t){return String(t).replace(Nn,".").toLowerCase()},zn=Mn.data={},Gn=Mn.NATIVE="N",Un=Mn.POLYFILL="P",Bn=Mn,Wn=r,Vn=n.f,Jn=Ve,Kn=$r,Yn=Pt,$n=function(t,e,r){for(var n=An(e),o=Cn.f,i=kn.f,u=0;uu;)yo.f(t,r=o[u++],n[r]);return t};var wo,So=V("document","documentElement"),Oo=Re,xo=fo,Eo=wn,jo=lr,Po=So,To=pe,Io="prototype",Lo="script",Ro=sr("IE_PROTO"),Ao=function(){},ko=function(t){return"<"+Lo+">"+t+""},Co=function(t){t.write(ko("")),t.close();var e=t.parentWindow.Object;return t=null,e},_o=function(){try{wo=new ActiveXObject("htmlfile")}catch(o){}var t,e,r;_o="undefined"!=typeof document?document.domain&&wo?Co(wo):(e=To("iframe"),r="java"+Lo+":",e.style.display="none",Po.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ko("document.F=Object")),t.close(),t.F):Co(wo);for(var n=Eo.length;n--;)delete _o[Io][Eo[n]];return _o()};jo[Ro]=!0;var Fo=Object.create||function(t,e){var r;return null!==t?(Ao[Io]=Oo(t),r=new Ao,Ao[Io]=null,r[Ro]=t):r=_o(),void 0===e?r:xo.f(r,e)},No={},Mo=S([].slice),Do=j,zo=M,Go=qr.f,Uo=Mo,Bo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];No.f=function(t){return Bo&&"Window"===Do(t)?function(t){try{return Go(t)}catch(e){return Uo(Bo)}}(t):Go(zo(t))};var Wo=Wr,Vo=je,Jo=function(t,e,r){return r.get&&Wo(r.get,e,{getter:!0}),r.set&&Wo(r.set,e,{setter:!0}),Vo.f(t,e,r)},Ko={},Yo=Zt;Ko.f=Yo;var $o=r,qo=$o,Ho=zt,Xo=Ko,Qo=je.f,Zo=f,ti=V,ei=Zt,ri=$r,ni=je.f,oi=zt,ii=Zt("toStringTag"),ui=function(t,e,r){t&&!r&&(t=t.prototype),t&&!oi(t,ii)&&ni(t,ii,{configurable:!0,value:e})},ci=j,ai=S,fi=function(t){if("Function"===ci(t))return ai(t)},si=dt,li=u,hi=fi(fi.bind),pi=function(t,e){return si(t),void 0===e?t:li?hi(t,e):function(){return t.apply(e,arguments)}},vi=j,di=Array.isArray||function(t){return"Array"===vi(t)},yi=S,gi=o,mi=z,bi=io,wi=or,Si=function(){},Oi=V("Reflect","construct"),xi=/^\s*(?:class|function)\b/,Ei=yi(xi.exec),ji=!xi.test(Si),Pi=function(t){if(!mi(t))return!1;try{return Oi(Si,[],t),!0}catch(e){return!1}},Ti=function(t){if(!mi(t))return!1;switch(bi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ji||!!Ei(xi,wi(t))}catch(e){return!0}};Ti.sham=!0;var Ii=!Oi||gi((function(){var t;return Pi(Pi.call)||!Pi(Object)||!Pi((function(){t=!0}))||t}))?Ti:Pi,Li=di,Ri=Ii,Ai=U,ki=Zt("species"),Ci=Array,_i=function(t){var e;return Li(t)&&(e=t.constructor,(Ri(e)&&(e===Ci||Li(e.prototype))||Ai(e)&&null===(e=e[ki]))&&(e=void 0)),void 0===e?Ci:e},Fi=pi,Ni=R,Mi=Nt,Di=an,zi=function(t,e){return new(_i(t))(0===e?0:e)},Gi=S([].push),Ui=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,c=5===t||i;return function(a,f,s,l){for(var h,p,v=Mi(a),d=Ni(v),y=Di(d),g=Fi(f,s),m=0,b=l||zi,w=e?b(a,y):r||u?b(a,0):void 0;y>m;m++)if((c||m in d)&&(p=g(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Gi(w,h)}else switch(t){case 4:return!1;case 7:Gi(w,h)}return i?-1:n||o?o:w}},Bi={forEach:Ui(0),map:Ui(1),filter:Ui(2),some:Ui(3),every:Ui(4),find:Ui(5),findIndex:Ui(6),filterReject:Ui(7)},Wi=Hn,Vi=r,Ji=f,Ki=S,Yi=i,$i=nt,qi=o,Hi=zt,Xi=J,Qi=Re,Zi=M,tu=fe,eu=ao,ru=y,nu=Fo,ou=ho,iu=qr,uu=No,cu=xn,au=n,fu=je,su=fo,lu=s,hu=$r,pu=Jo,vu=Ct,du=lr,yu=Vt,gu=Zt,mu=Ko,bu=function(t){var e=qo.Symbol||(qo.Symbol={});Ho(e,t)||Qo(e,t,{value:Xo.f(t)})},wu=function(){var t=ti("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=ei("toPrimitive");e&&!e[n]&&ri(e,n,(function(t){return Zo(r,this)}),{arity:1})},Su=ui,Ou=jr,xu=Bi.forEach,Eu=sr("hidden"),ju="Symbol",Pu="prototype",Tu=Ou.set,Iu=Ou.getterFor(ju),Lu=Object[Pu],Ru=Vi.Symbol,Au=Ru&&Ru[Pu],ku=Vi.RangeError,Cu=Vi.TypeError,_u=Vi.QObject,Fu=au.f,Nu=fu.f,Mu=uu.f,Du=lu.f,zu=Ki([].push),Gu=vu("symbols"),Uu=vu("op-symbols"),Bu=vu("wks"),Wu=!_u||!_u[Pu]||!_u[Pu].findChild,Vu=function(t,e,r){var n=Fu(Lu,e);n&&delete Lu[e],Nu(t,e,r),n&&t!==Lu&&Nu(Lu,e,n)},Ju=Yi&&qi((function(){return 7!==nu(Nu({},"a",{get:function(){return Nu(this,"a",{value:7}).a}})).a}))?Vu:Nu,Ku=function(t,e){var r=Gu[t]=nu(Au);return Tu(r,{type:ju,tag:t,description:e}),Yi||(r.description=e),r},Yu=function(t,e,r){t===Lu&&Yu(Uu,e,r),Qi(t);var n=tu(e);return Qi(r),Hi(Gu,n)?(r.enumerable?(Hi(t,Eu)&&t[Eu][n]&&(t[Eu][n]=!1),r=nu(r,{enumerable:ru(0,!1)})):(Hi(t,Eu)||Nu(t,Eu,ru(1,nu(null))),t[Eu][n]=!0),Ju(t,n,r)):Nu(t,n,r)},$u=function(t,e){Qi(t);var r=Zi(e),n=ou(r).concat(Qu(r));return xu(n,(function(e){Yi&&!Ji(qu,r,e)||Yu(t,e,r[e])})),t},qu=function(t){var e=tu(t),r=Ji(Du,this,e);return!(this===Lu&&Hi(Gu,e)&&!Hi(Uu,e))&&(!(r||!Hi(this,e)||!Hi(Gu,e)||Hi(this,Eu)&&this[Eu][e])||r)},Hu=function(t,e){var r=Zi(t),n=tu(e);if(r!==Lu||!Hi(Gu,n)||Hi(Uu,n)){var o=Fu(r,n);return!o||!Hi(Gu,n)||Hi(r,Eu)&&r[Eu][n]||(o.enumerable=!0),o}},Xu=function(t){var e=Mu(Zi(t)),r=[];return xu(e,(function(t){Hi(Gu,t)||Hi(du,t)||zu(r,t)})),r},Qu=function(t){var e=t===Lu,r=Mu(e?Uu:Zi(t)),n=[];return xu(r,(function(t){!Hi(Gu,t)||e&&!Hi(Lu,t)||zu(n,Gu[t])})),n};$i||(Ru=function(){if(Xi(Au,this))throw new Cu("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?eu(arguments[0]):void 0,e=yu(t),r=function(t){var n=void 0===this?Vi:this;n===Lu&&Ji(r,Uu,t),Hi(n,Eu)&&Hi(n[Eu],e)&&(n[Eu][e]=!1);var o=ru(1,t);try{Ju(n,e,o)}catch(i){if(!(i instanceof ku))throw i;Vu(n,e,o)}};return Yi&&Wu&&Ju(Lu,e,{configurable:!0,set:r}),Ku(e,t)},hu(Au=Ru[Pu],"toString",(function(){return Iu(this).tag})),hu(Ru,"withoutSetter",(function(t){return Ku(yu(t),t)})),lu.f=qu,fu.f=Yu,su.f=$u,au.f=Hu,iu.f=uu.f=Xu,cu.f=Qu,mu.f=function(t){return Ku(gu(t),t)},Yi&&(pu(Au,"description",{configurable:!0,get:function(){return Iu(this).description}}),hu(Lu,"propertyIsEnumerable",qu,{unsafe:!0}))),Wi({global:!0,constructor:!0,wrap:!0,forced:!$i,sham:!$i},{Symbol:Ru}),xu(ou(Bu),(function(t){bu(t)})),Wi({target:ju,stat:!0,forced:!$i},{useSetter:function(){Wu=!0},useSimple:function(){Wu=!1}}),Wi({target:"Object",stat:!0,forced:!$i,sham:!Yi},{create:function(t,e){return void 0===e?nu(t):$u(nu(t),e)},defineProperty:Yu,defineProperties:$u,getOwnPropertyDescriptor:Hu}),Wi({target:"Object",stat:!0,forced:!$i},{getOwnPropertyNames:Xu}),wu(),Su(Ru,ju),du[Eu]=!0;var Zu=nt&&!!Symbol.for&&!!Symbol.keyFor,tc=Hn,ec=V,rc=zt,nc=ao,oc=Ct,ic=Zu,uc=oc("string-to-symbol-registry"),cc=oc("symbol-to-string-registry");tc({target:"Symbol",stat:!0,forced:!ic},{for:function(t){var e=nc(t);if(rc(uc,e))return uc[e];var r=ec("Symbol")(e);return uc[e]=r,cc[r]=e,r}});var ac=Hn,fc=zt,sc=ft,lc=lt,hc=Zu,pc=Ct("symbol-to-string-registry");ac({target:"Symbol",stat:!0,forced:!hc},{keyFor:function(t){if(!sc(t))throw new TypeError(lc(t)+" is not a symbol");if(fc(pc,t))return pc[t]}});var vc=u,dc=Function.prototype,yc=dc.apply,gc=dc.call,mc="object"==typeof Reflect&&Reflect.apply||(vc?gc.bind(yc):function(){return gc.apply(yc,arguments)}),bc=di,wc=z,Sc=j,Oc=ao,xc=S([].push),Ec=Hn,jc=V,Pc=mc,Tc=f,Ic=S,Lc=o,Rc=z,Ac=ft,kc=Mo,Cc=function(t){if(wc(t))return t;if(bc(t)){for(var e=t.length,r=[],n=0;n=51||!Xc((function(){var e=[];return(e.constructor={})[Zc]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("filter")},{filter:function(t){return ta(this,t,arguments.length>1?arguments[1]:void 0)}});var ea,ra,na,oa,ia="process"===j(r.process),ua=S,ca=dt,aa=function(t,e,r){try{return ua(ca(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},fa=U,sa=function(t){return fa(t)||null===t},la=String,ha=TypeError,pa=aa,va=U,da=_,ya=function(t){if(sa(t))return t;throw new ha("Can't set "+la(t)+" as a prototype")},ga=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=pa(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return da(r),ya(n),va(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),ma=V,ba=Jo,wa=i,Sa=Zt("species"),Oa=function(t){var e=ma(t);wa&&e&&!e[Sa]&&ba(e,Sa,{configurable:!0,get:function(){return this}})},xa=J,Ea=TypeError,ja=function(t,e){if(xa(e,t))return t;throw new Ea("Incorrect invocation")},Pa=Ii,Ta=lt,Ia=TypeError,La=Re,Ra=function(t){if(Pa(t))return t;throw new Ia(Ta(t)+" is not a constructor")},Aa=A,ka=Zt("species"),Ca=function(t,e){var r,n=La(t).constructor;return void 0===n||Aa(r=La(n)[ka])?e:Ra(r)},_a=TypeError,Fa=/(?:ipad|iphone|ipod).*applewebkit/i.test(K),Na=r,Ma=mc,Da=pi,za=z,Ga=zt,Ua=o,Ba=So,Wa=Mo,Va=pe,Ja=function(t,e){if(ti;i++)if((c=g(t[i]))&&Ll(Fl,c))return c;return new _l(!1)}n=Rl(t,o)}for(a=h?t.next:n.next;!(f=El(a,n)).done;){try{c=g(f.value)}catch(wb){kl(n,"throw",wb)}if("object"==typeof c&&c&&Ll(Fl,c))return c}return new _l(!1)},Ml=Zt("iterator"),Dl=!1;try{var zl=0,Gl={next:function(){return{done:!!zl++}},return:function(){Dl=!0}};Gl[Ml]=function(){return this},Array.from(Gl,(function(){throw 2}))}catch(wb){}var Ul=function(t,e){try{if(!e&&!Dl)return!1}catch(wb){return!1}var r=!1;try{var n={};n[Ml]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(wb){}return r},Bl=Gf,Wl=rs.CONSTRUCTOR||!Ul((function(t){Bl.all(t).then(void 0,(function(){}))})),Vl=f,Jl=dt,Kl=ns,Yl=zf,$l=Nl;Hn({target:"Promise",stat:!0,forced:Wl},{all:function(t){var e=this,r=Kl.f(e),n=r.resolve,o=r.reject,i=Yl((function(){var r=Jl(e.resolve),i=[],u=0,c=1;$l(t,(function(t){var a=u++,f=!1;c++,Vl(r,e,t).then((function(t){f||(f=!0,i[a]=t,--c||n(i))}),o)})),--c||n(i)}));return i.error&&o(i.value),r.promise}});var ql=Hn,Hl=rs.CONSTRUCTOR,Xl=Gf,Ql=V,Zl=z,th=$r,eh=Xl&&Xl.prototype;if(ql({target:"Promise",proto:!0,forced:Hl,real:!0},{catch:function(t){return this.then(void 0,t)}}),Zl(Xl)){var rh=Ql("Promise").prototype.catch;eh.catch!==rh&&th(eh,"catch",rh,{unsafe:!0})}var nh=f,oh=dt,ih=ns,uh=zf,ch=Nl;Hn({target:"Promise",stat:!0,forced:Wl},{race:function(t){var e=this,r=ih.f(e),n=r.reject,o=uh((function(){var o=oh(e.resolve);ch(t,(function(t){nh(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var ah=ns;Hn({target:"Promise",stat:!0,forced:rs.CONSTRUCTOR},{reject:function(t){var e=ah.f(this);return(0,e.reject)(t),e.promise}});var fh=Re,sh=U,lh=ns,hh=function(t,e){if(fh(t),sh(e)&&e.constructor===t)return e;var r=lh.f(t);return(0,r.resolve)(e),r.promise},ph=Hn,vh=rs.CONSTRUCTOR,dh=hh;V("Promise"),ph({target:"Promise",stat:!0,forced:vh},{resolve:function(t){return dh(this,t)}});var yh=Hn,gh=Gf,mh=o,bh=V,wh=z,Sh=Ca,Oh=hh,xh=$r,Eh=gh&&gh.prototype;if(yh({target:"Promise",proto:!0,real:!0,forced:!!gh&&mh((function(){Eh.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=Sh(this,bh("Promise")),r=wh(t);return this.then(r?function(r){return Oh(e,t()).then((function(){return r}))}:t,r?function(r){return Oh(e,t()).then((function(){throw r}))}:t)}}),wh(gh)){var jh=bh("Promise").prototype.finally;Eh.finally!==jh&&xh(Eh,"finally",jh,{unsafe:!0})}var Ph=Zt,Th=Fo,Ih=je.f,Lh=Ph("unscopables"),Rh=Array.prototype;void 0===Rh[Lh]&&Ih(Rh,Lh,{configurable:!0,value:Th(null)});var Ah,kh,Ch,_h=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fh=zt,Nh=z,Mh=Nt,Dh=_h,zh=sr("IE_PROTO"),Gh=Object,Uh=Gh.prototype,Bh=Dh?Gh.getPrototypeOf:function(t){var e=Mh(t);if(Fh(e,zh))return e[zh];var r=e.constructor;return Nh(r)&&e instanceof r?r.prototype:e instanceof Gh?Uh:null},Wh=o,Vh=z,Jh=U,Kh=Bh,Yh=$r,$h=Zt("iterator"),qh=!1;[].keys&&("next"in(Ch=[].keys())?(kh=Kh(Kh(Ch)))!==Object.prototype&&(Ah=kh):qh=!0);var Hh=!Jh(Ah)||Wh((function(){var t={};return Ah[$h].call(t)!==t}));Hh&&(Ah={}),Vh(Ah[$h])||Yh(Ah,$h,(function(){return this}));var Xh={IteratorPrototype:Ah,BUGGY_SAFARI_ITERATORS:qh},Qh=Xh.IteratorPrototype,Zh=Fo,tp=y,ep=ui,rp=nl,np=function(){return this},op=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Zh(Qh,{next:tp(+!n,r)}),ep(t,o,!1),rp[o]=np,t},ip=Hn,up=f,cp=z,ap=op,fp=Bh,sp=ga,lp=ui,hp=Ve,pp=$r,vp=nl,dp=Xe.PROPER,yp=Xe.CONFIGURABLE,gp=Xh.IteratorPrototype,mp=Xh.BUGGY_SAFARI_ITERATORS,bp=Zt("iterator"),wp="keys",Sp="values",Op="entries",xp=function(){return this},Ep=function(t,e,r,n,o,i,u){ap(r,e,n);var c,a,f,s=function(t){if(t===o&&d)return d;if(!mp&&t&&t in p)return p[t];switch(t){case wp:case Sp:case Op:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,v=p[bp]||p["@@iterator"]||o&&p[o],d=!mp&&v||s(o),y="Array"===e&&p.entries||v;if(y&&(c=fp(y.call(new t)))!==Object.prototype&&c.next&&(fp(c)!==gp&&(sp?sp(c,gp):cp(c[bp])||pp(c,bp,xp)),lp(c,l,!0)),dp&&o===Sp&&v&&v.name!==Sp&&(yp?hp(p,"name",Sp):(h=!0,d=function(){return up(v,this)})),o)if(a={values:s(Sp),keys:i?d:s(wp),entries:s(Op)},u)for(f in a)(mp||h||!(f in p))&&pp(p,f,a[f]);else ip({target:e,proto:!0,forced:mp||h},a);return p[bp]!==d&&pp(p,bp,d,{name:o}),vp[e]=d,a},jp=function(t,e){return{value:t,done:e}},Pp=M,Tp=function(t){Rh[Lh][t]=!0},Ip=nl,Lp=jr,Rp=je.f,Ap=Ep,kp=jp,Cp=i,_p="Array Iterator",Fp=Lp.set,Np=Lp.getterFor(_p),Mp=Ap(Array,"Array",(function(t,e){Fp(this,{type:_p,target:Pp(t),index:0,kind:e})}),(function(){var t=Np(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,kp(void 0,!0);switch(t.kind){case"keys":return kp(r,!1);case"values":return kp(e[r],!1)}return kp([r,e[r]],!1)}),"values"),Dp=Ip.Arguments=Ip.Array;if(Tp("keys"),Tp("values"),Tp("entries"),Cp&&"values"!==Dp.name)try{Rp(Dp,"name",{value:"values"})}catch(wb){}var zp={exports:{}},Gp=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Up=o,Bp=U,Wp=j,Vp=Gp,Jp=Object.isExtensible,Kp=Up((function(){Jp(1)}))||Vp?function(t){return!!Bp(t)&&((!Vp||"ArrayBuffer"!==Wp(t))&&(!Jp||Jp(t)))}:Jp,Yp=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),$p=Hn,qp=S,Hp=lr,Xp=U,Qp=zt,Zp=je.f,tv=qr,ev=No,rv=Kp,nv=Yp,ov=!1,iv=Vt("meta"),uv=0,cv=function(t){Zp(t,iv,{value:{objectID:"O"+uv++,weakData:{}}})},av=zp.exports={enable:function(){av.enable=function(){},ov=!0;var t=tv.f,e=qp([].splice),r={};r[iv]=1,t(r).length&&(tv.f=function(r){for(var n=t(r),o=0,i=n.length;o1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),kv(i,r?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return c(this,0===t?0:t,e)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),Gv&&Av(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Wv(e),i=Wv(n);Mv(t,e,(function(t,e){Bv(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Dv("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,Dv(void 0,!0))}),r?"entries":"values",!r,!0),zv(e)}};Iv("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vv);var Jv=S,Kv=Map.prototype,Yv={Map:Map,set:Jv(Kv.set),get:Jv(Kv.get),has:Jv(Kv.has),remove:Jv(Kv.delete),proto:Kv},$v=Hn,qv=dt,Hv=_,Xv=Nl,Qv=o,Zv=Yv.Map,td=Yv.has,ed=Yv.get,rd=Yv.set,nd=S([].push);$v({target:"Map",stat:!0,forced:Qv((function(){return 1!==Zv.groupBy("ab",(function(t){return t})).get("a").length}))},{groupBy:function(t,e){Hv(t),qv(e);var r=new Zv,n=0;return Xv(t,(function(t){var o=e(t,n++);td(r,o)?nd(ed(r,o),t):rd(r,o,[t])})),r}});var od=io,id=Qn?{}.toString:function(){return"[object "+od(this)+"]"};Qn||$r(Object.prototype,"toString",id,{unsafe:!0});var ud=S,cd=Zr,ad=ao,fd=_,sd=ud("".charAt),ld=ud("".charCodeAt),hd=ud("".slice),pd=function(t){return function(e,r){var n,o,i=ad(fd(e)),u=cd(r),c=i.length;return u<0||u>=c?t?"":void 0:(n=ld(i,u))<55296||n>56319||u+1===c||(o=ld(i,u+1))<56320||o>57343?t?sd(i,u):n:t?hd(i,u,u+2):o-56320+(n-55296<<10)+65536}},vd={codeAt:pd(!1),charAt:pd(!0)},dd=vd.charAt,yd=ao,gd=jr,md=Ep,bd=jp,wd="String Iterator",Sd=gd.set,Od=gd.getterFor(wd);md(String,"String",(function(t){Sd(this,{type:wd,string:yd(t),index:0})}),(function(){var t,e=Od(this),r=e.string,n=e.index;return n>=r.length?bd(void 0,!0):(t=dd(r,n),e.index+=t.length,bd(t,!1))})),$o.Map,Iv("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vv);var xd=S,Ed=Set.prototype,jd={Set:Set,add:xd(Ed.add),has:xd(Ed.has),remove:xd(Ed.delete),proto:Ed},Pd=jd.has,Td=function(t){return Pd(t),t},Id=f,Ld=function(t,e,r){for(var n,o,i=r?t:t.iterator,u=t.next;!(n=Id(u,i)).done;)if(void 0!==(o=e(n.value)))return o},Rd=S,Ad=Ld,kd=jd.Set,Cd=jd.proto,_d=Rd(Cd.forEach),Fd=Rd(Cd.keys),Nd=Fd(new kd).next,Md=function(t,e,r){return r?Ad({iterator:Fd(t),next:Nd},e):_d(t,e)},Dd=Md,zd=jd.Set,Gd=jd.add,Ud=function(t){var e=new zd;return Dd(t,(function(t){Gd(e,t)})),e},Bd=aa(jd.proto,"size","get")||function(t){return t.size},Wd=dt,Vd=Re,Jd=f,Kd=Zr,Yd=function(t){return{iterator:t,next:t.next,done:!1}},$d="Invalid size",qd=RangeError,Hd=TypeError,Xd=Math.max,Qd=function(t,e){this.set=t,this.size=Xd(e,0),this.has=Wd(t.has),this.keys=Wd(t.keys)};Qd.prototype={getIterator:function(){return Yd(Vd(Jd(this.keys,this.set)))},includes:function(t){return Jd(this.has,this.set,t)}};var Zd=function(t){Vd(t);var e=+t.size;if(e!=e)throw new Hd($d);var r=Kd(e);if(r<0)throw new qd($d);return new Qd(t,r)},ty=Td,ey=Ud,ry=Bd,ny=Zd,oy=Md,iy=Ld,uy=jd.has,cy=jd.remove,ay=V,fy=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},sy=function(t){var e=ay("Set");try{(new e)[t](fy(0));try{return(new e)[t](fy(-1)),!1}catch(r){return!0}}catch(wb){return!1}},ly=function(t){var e=ty(this),r=ny(t),n=ey(e);return ry(e)<=r.size?oy(e,(function(t){r.includes(t)&&cy(n,t)})):iy(r.getIterator(),(function(t){uy(e,t)&&cy(n,t)})),n};Hn({target:"Set",proto:!0,real:!0,forced:!sy("difference")},{difference:ly});var hy=Td,py=Bd,vy=Zd,dy=Md,yy=Ld,gy=jd.Set,my=jd.add,by=jd.has,wy=o,Sy=function(t){var e=hy(this),r=vy(t),n=new gy;return py(e)>r.size?yy(r.getIterator(),(function(t){by(e,t)&&my(n,t)})):dy(e,(function(t){r.includes(t)&&my(n,t)})),n};Hn({target:"Set",proto:!0,real:!0,forced:!sy("intersection")||wy((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:Sy});var Oy=Td,xy=jd.has,Ey=Bd,jy=Zd,Py=Md,Ty=Ld,Iy=Ol,Ly=function(t){var e=Oy(this),r=jy(t);if(Ey(e)<=r.size)return!1!==Py(e,(function(t){if(r.includes(t))return!1}),!0);var n=r.getIterator();return!1!==Ty(n,(function(t){if(xy(e,t))return Iy(n,"normal",!1)}))};Hn({target:"Set",proto:!0,real:!0,forced:!sy("isDisjointFrom")},{isDisjointFrom:Ly});var Ry=Td,Ay=Bd,ky=Md,Cy=Zd,_y=function(t){var e=Ry(this),r=Cy(t);return!(Ay(e)>r.size)&&!1!==ky(e,(function(t){if(!r.includes(t))return!1}),!0)};Hn({target:"Set",proto:!0,real:!0,forced:!sy("isSubsetOf")},{isSubsetOf:_y});var Fy=Td,Ny=jd.has,My=Bd,Dy=Zd,zy=Ld,Gy=Ol,Uy=function(t){var e=Fy(this),r=Dy(t);if(My(e)1?arguments[1]:void 0)};Hn({target:"Array",proto:!0,forced:[].forEach!==ig},{forEach:ig});var ug=Hn,cg=i,ag=fo.f;ug({target:"Object",stat:!0,forced:Object.defineProperties!==ag,sham:!cg},{defineProperties:ag});var fg=Hn,sg=i,lg=je.f;fg({target:"Object",stat:!0,forced:Object.defineProperty!==lg,sham:!sg},{defineProperty:lg});var hg=Hn,pg=o,vg=M,dg=n.f,yg=i;hg({target:"Object",stat:!0,forced:!yg||pg((function(){dg(1)})),sham:!yg},{getOwnPropertyDescriptor:function(t,e){return dg(vg(t),e)}});var gg=i,mg=je,bg=y,wg=Ln,Sg=M,Og=n,xg=function(t,e,r){gg?mg.f(t,e,bg(0,r)):t[e]=r};Hn({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Sg(t),o=Og.f,i=wg(n),u={},c=0;i.length>c;)void 0!==(r=o(n,e=i[c++]))&&xg(u,e,r);return u}});var Eg=Nt,jg=ho;Hn({target:"Object",stat:!0,forced:o((function(){jg(1)}))},{keys:function(t){return jg(Eg(t))}});var Pg={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Tg=pe("span").classList,Ig=Tg&&Tg.constructor&&Tg.constructor.prototype,Lg=Ig===Object.prototype?void 0:Ig,Rg=r,Ag=Pg,kg=Lg,Cg=ig,_g=Ve,Fg=function(t){if(t&&t.forEach!==Cg)try{_g(t,"forEach",Cg)}catch(wb){t.forEach=Cg}};for(var Ng in Ag)Ag[Ng]&&Fg(Rg[Ng]&&Rg[Ng].prototype);Fg(kg);var Mg=r;Hn({global:!0,forced:Mg.globalThis!==Mg},{globalThis:Mg});var Dg,zg,Gg=U,Ug=j,Bg=Zt("match"),Wg=Re,Vg=function(){var t=Wg(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Jg=f,Kg=zt,Yg=J,$g=Vg,qg=RegExp.prototype,Hg=vd.charAt,Xg=o,Qg=r.RegExp,Zg=Xg((function(){var t=Qg("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),tm=Zg||Xg((function(){return!Qg("a","y").sticky})),em={BROKEN_CARET:Zg||Xg((function(){var t=Qg("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:tm,UNSUPPORTED_Y:Zg},rm=o,nm=r.RegExp,om=rm((function(){var t=nm(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),im=o,um=r.RegExp,cm=im((function(){var t=um("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),am=f,fm=S,sm=ao,lm=Vg,hm=em,pm=Fo,vm=jr.get,dm=om,ym=cm,gm=Ct("native-string-replace",String.prototype.replace),mm=RegExp.prototype.exec,bm=mm,wm=fm("".charAt),Sm=fm("".indexOf),Om=fm("".replace),xm=fm("".slice),Em=(zg=/b*/g,am(mm,Dg=/a/,"a"),am(mm,zg,"a"),0!==Dg.lastIndex||0!==zg.lastIndex),jm=hm.BROKEN_CARET,Pm=void 0!==/()??/.exec("")[1];(Em||Pm||jm||dm||ym)&&(bm=function(t){var e,r,n,o,i,u,c,a=this,f=vm(a),s=sm(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,e=am(bm,l,s),a.lastIndex=l.lastIndex,e;var h=f.groups,p=jm&&a.sticky,v=am(lm,a),d=a.source,y=0,g=s;if(p&&(v=Om(v,"y",""),-1===Sm(v,"g")&&(v+="g"),g=xm(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==wm(s,a.lastIndex-1))&&(d="(?: "+d+")",g=" "+g,y++),r=new RegExp("^(?:"+d+")",v)),Pm&&(r=new RegExp("^"+d+"$(?!\\s)",v)),Em&&(n=a.lastIndex),o=am(mm,p?r:a,g),p?o?(o.input=xm(o.input,y),o[0]=xm(o[0],y),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Em&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Pm&&o&&o.length>1&&am(gm,o[0],r,(function(){for(i=1;i=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=n.call(u,"catchLoc"),f=n.call(u,"finallyLoc");if(a&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var sb=r,lb=Pg,hb=Lg,pb=Mp,vb=Ve,db=ui,yb=Zt("iterator"),gb=pb.values,mb=function(t,e){if(t){if(t[yb]!==gb)try{vb(t,yb,gb)}catch(wb){t[yb]=gb}if(db(t,e,!0),lb[e])for(var r in pb)if(t[r]!==pb[r])try{vb(t,r,pb[r])}catch(wb){t[r]=pb[r]}}};for(var bb in lb)mb(sb[bb]&&sb[bb].prototype,bb);mb(hb,"DOMTokenList"),function(){function e(t,e){return(e||"")+" (SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+t+")"}function r(t,e){if(-1!==t.indexOf("\\")&&(t=t.replace(E,"/")),"/"===t[0]&&"/"===t[1])return e.slice(0,e.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){var r,n=e.slice(0,e.indexOf(":")+1);if(r="/"===e[n.length+1]?"file:"!==n?(r=e.slice(n.length+2)).slice(r.indexOf("/")+1):e.slice(8):e.slice(n.length+("/"===e[n.length])),"/"===t[0])return e.slice(0,e.length-r.length-1)+t;for(var o=r.slice(0,r.lastIndexOf("/")+1)+t,i=[],u=-1,c=0;cr.length&&"/"!==n[n.length-1]))return n+t.slice(r.length);a("W2",r,n)}}function a(t,r,n){console.warn(e(t,[n,r].join(", ")))}function f(t,e,r){for(var n=t.scopes,o=r&&u(r,n);o;){var i=c(e,n[o]);if(i)return i;o=u(o.slice(0,o.lastIndexOf("/")),n)}return c(e,t.imports)||-1!==e.indexOf(":")&&e}function s(){this[P]={}}function l(t,r,n,o){var i=t[P][r];if(i)return i;var u=[],c=Object.create(null);j&&Object.defineProperty(c,j,{value:"Module"});var a=Promise.resolve().then((function(){return t.instantiate(r,n,o)})).then((function(n){if(!n)throw Error(e(2,r));var o=n[1]((function(t,e){i.h=!0;var r=!1;if("string"==typeof t)t in c&&c[t]===e||(c[t]=e,r=!0);else{for(var n in t)e=t[n],n in c&&c[n]===e||(c[n]=e,r=!0);t&&t.__esModule&&(c.__esModule=t.__esModule)}if(r)for(var o=0;o-1){var r=document.createEvent("Event");r.initEvent("error",!1,!1),t.dispatchEvent(r)}return Promise.reject(e)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var r=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,priority:t.fetchPriority,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(r){return r.message=e("W4",t.src)+"\n"+r.message,console.warn(r),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;A=A.then((function(){return r})).then((function(r){!function(t,r,n){var o={};try{o=JSON.parse(r)}catch(c){console.warn(Error(e("W5")))}i(o,n,t)}(k,r,t.src||y)}))}}))}var y,g="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:t;if(b){var S=document.querySelector("base[href]");S&&(y=S.href)}if(!y&&"undefined"!=typeof location){var O=(y=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==O&&(y=y.slice(0,O+1))}var x,E=/\\/g,j=g&&Symbol.toStringTag,P=g?Symbol():"@",T=s.prototype;T.import=function(t,e,r){var n=this;return e&&"object"==typeof e&&(r=e,e=void 0),Promise.resolve(n.prepareImport()).then((function(){return n.resolve(t,e,r)})).then((function(t){var e=l(n,t,void 0,r);return e.C||p(n,e)}))},T.createContext=function(t){var e=this;return{url:t,resolve:function(r,n){return Promise.resolve(e.resolve(r,n||t))}}},T.register=function(t,e,r){x=[t,e,r]},T.getRegister=function(){var t=x;return x=void 0,t};var I=Object.freeze(Object.create(null));w.System=new s;var L,R,A=Promise.resolve(),k={imports:{},scopes:{},depcache:{},integrity:{}},C=b;if(T.prepareImport=function(t){return(C||t)&&(d(),C=!1),A},T.getImportMap=function(){return JSON.parse(JSON.stringify(k))},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(t,e){i(t,e||y,k)},b){window.addEventListener("error",(function(t){F=t.filename,N=t.error}));var _=location.origin}T.createScript=function(t){var e=document.createElement("script");e.async=!0,t.indexOf(_+"/")&&(e.crossOrigin="anonymous");var r=k.integrity[t];return r&&(e.integrity=r),e.src=t,e};var F,N,M={},D=T.register;T.register=function(t,e){if(b&&"loading"===document.readyState&&"string"!=typeof t){var r=document.querySelectorAll("script[src]"),n=r[r.length-1];if(n){L=t;var o=this;R=setTimeout((function(){M[n.src]=[t,e],o.import(n.src)}))}}else L=void 0;return D.call(this,t,e)},T.instantiate=function(t,r){var n=M[t];if(n)return delete M[t],n;var o=this;return Promise.resolve(T.createScript(t)).then((function(n){return new Promise((function(i,u){n.addEventListener("error",(function(){u(Error(e(3,[t,r].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),F===t)u(N);else{var e=o.getRegister(t);e&&e[0]===L&&clearTimeout(R),i(e)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var z=T.instantiate,G=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,r,n){var o=this;return this.shouldFetch(t,r,n)?this.fetch(t,{credentials:"same-origin",integrity:k.integrity[t],meta:n}).then((function(n){if(!n.ok)throw Error(e(7,[n.status,n.statusText,t,r].join(", ")));var i=n.headers.get("content-type");if(!i||!G.test(i))throw Error(e(4,i));return n.text().then((function(e){return e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL="+t),(0,eval)(e),o.getRegister(t)}))})):z.apply(this,arguments)},T.resolve=function(t,n){return f(k,r(t,n=n||y)||t,n)||function(t,r){throw Error(e(8,[t,r].join(", ")))}(t,n)};var U=T.instantiate;T.instantiate=function(t,e,r){var n=k.depcache[t];if(n)for(var o=0;o - - - - - - - - - - - - - -
- - - - - - diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000000000000000000000000000000000000..023afd3f6450e91e385a8e205c91170c5c3a38b7 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,125 @@ +# MSDL (MindSearch Docker Launcher) User Guide + +English | [简体中文](README_zh-CN.md) + +## Introduction + +MSDL (MindSearch Docker Launcher) is a command-line tool designed to simplify the deployment process of MindSearch. It helps users configure and launch the Docker environment for MindSearch through an interactive interface, reducing the complexity of deployment. MSDL primarily serves as a scaffold for deploying containers and does not involve optimization of MindSearch's core logic. + +## Prerequisites + +- Python 3.7 or higher +- Docker (Docker Compose included; most newer Docker versions have it integrated) +- Git (for cloning the repository) +- Stable internet connection +- Sufficient disk space (required space varies depending on the selected deployment option) + +## Installation Steps + +1. Clone the MindSearch repository: + ```bash + git clone https://github.com/InternLM/MindSearch.git # If you have already cloned the repository, you can skip this step. + cd MindSearch/docker + ``` + +2. Install MSDL: + ```bash + pip install -e . + ``` + +## Usage + +After installation, you can run the MSDL command from any directory: + +```bash +msdl +``` + +Follow the interactive prompts for configuration: +- Choose the language for the Agent (Chinese or English; this only affects the language of prompts). +- Select the model deployment type (local model or cloud model). +- Choose the model format: + - Currently, only `internlm_silicon` works properly for cloud models. + - For local models, only `internlm_server` has passed tests and runs correctly. +- Enter the necessary API keys (e.g., SILICON_API_KEY). + +MSDL will automatically perform the following actions: +- Copy and configure the necessary Dockerfile and docker-compose.yaml files. +- Build Docker images. +- Launch Docker containers. + +## Deployment Options Comparison + +### Cloud Model Deployment (Recommended) + +**Advantages**: +- Lightweight deployment with minimal disk usage (frontend around 510MB, backend around 839MB). +- No need for high-performance hardware. +- Easy to deploy and maintain. +- You can freely use the `internlm/internlm2_5-7b-chat` model via SiliconCloud. +- High concurrency, fast inference speed. + +**Instructions**: +- Select the "Cloud Model" option. +- Choose "internlm_silicon" as the model format. +- Enter the SiliconCloud API Key (register at https://cloud.siliconflow.cn/ to obtain it). + +**Important Notes**: +- The `internlm/internlm2_5-7b-chat` model is freely accessible on SiliconCloud. +- MindSearch has no financial relationship with SiliconCloud; this service is recommended solely because it provides valuable resources to the open-source community. + +### Local Model Deployment + +**Features**: +- Uses the `openmmlab/lmdeploy` image. +- Based on the PyTorch environment. +- Requires significant disk space (backend container 15GB+, model 15GB+, totaling 30GB+). +- Requires a powerful GPU (12GB or more of VRAM recommended). + +**Instructions**: +- Select the "Local Model" option. +- Choose "internlm_server" as the model format. + +**Relevant Links**: +- lmdeploy image: https://hub.docker.com/r/openmmlab/lmdeploy/tags +- InternLM2.5 project: https://huggingface.co/internlm/internlm2_5-7b-chat + +## Notes + +- Currently, only the `internlm_silicon` format works properly for cloud models, and only the `internlm_server` format has passed tests for local models. +- The language selection only affects the language of the Agent's prompts and does not change the language of the React frontend. +- The first run might take a long time to download necessary model files and Docker images. +- When using cloud models, ensure a stable network connection. + +## Troubleshooting + +1. Ensure the Docker service is running. +2. Check if there is sufficient disk space. +3. Ensure all necessary environment variables are set correctly. +4. Check if the network connection is stable. +5. Verify the validity of API keys (e.g., for cloud models). + +If problems persist, check the Issues section in the MindSearch GitHub repository or submit a new issue. + +## Privacy and Security + +MSDL is a locally executed tool and does not transmit any API keys or sensitive information. All configuration information is stored in the `msdl/temp/.env` file, used only to simplify the deployment process. + +## Updating MSDL + +To update MSDL to the latest version, follow these steps: + +1. Navigate to the MindSearch directory. +2. Pull the latest code: + ```bash + git pull origin main + ``` +3. Reinstall MSDL: + ```bash + cd docker + pip install -e . + ``` + +## Conclusion + +If you have any questions or suggestions, feel free to submit an issue on GitHub or contact us directly. Thank you for using MindSearch and MSDL! \ No newline at end of file diff --git a/docker/README_zh-CN.md b/docker/README_zh-CN.md new file mode 100644 index 0000000000000000000000000000000000000000..0ccfd0ce91c94f8d545bc627731570c68ede3011 --- /dev/null +++ b/docker/README_zh-CN.md @@ -0,0 +1,125 @@ +# MSDL (MindSearch Docker Launcher) 使用指南 + +[English](README.md) | 简体中文 + +## 简介 + +MSDL (MindSearch Docker Launcher) 是一个专为简化 MindSearch 部署过程而设计的命令行工具。它通过交互式界面帮助用户轻松配置和启动 MindSearch 的 Docker 环境,降低了部署的复杂性。MSDL 主要作为部署容器的脚手架,不涉及 MindSearch 核心逻辑的优化。 + +## 环境要求 + +- Python 3.7 或更高版本 +- Docker (需包含 Docker Compose,新版本的 Docker 通常已集成) +- Git (用于克隆仓库) +- 稳定的网络连接 +- 充足的磁盘空间(根据选择的部署方案,所需空间有所不同) + +## 安装步骤 + +1. 克隆 MindSearch 仓库: + ```bash + git clone https://github.com/InternLM/MindSearch.git # 已经克隆过的,可以忽略执行此步骤 + cd MindSearch/docker + ``` + +2. 安装 MSDL: + ```bash + pip install -e . + ``` + +## 使用方法 + +安装完成后,您可以在任意目录下运行 MSDL 命令: + +```bash +msdl +``` + +按照交互式提示进行配置: +- 选择 Agent 使用的语言(中文或英文,仅影响 Agent 的提示词语言) +- 选择模型部署类型(本地模型或云端模型) +- 选择模型格式 + - 云端模型目前只有 internlm_silicon 能够正常运行 + - 本地模型目前只有 internlm_server 通过测试,能正常运行 +- 输入必要的 API 密钥(如 SILICON_API_KEY) + +MSDL 将自动执行以下操作: +- 复制并配置必要的 Dockerfile 和 docker-compose.yaml 文件 +- 构建 Docker 镜像 +- 启动 Docker 容器 + +## 部署方案比较 + +### 云端模型部署(推荐) + +**优势**: +- 轻量级部署,磁盘占用小(前端约 510MB,后端约 839MB) +- 无需高性能硬件 +- 部署和维护简单 +- 使用 SiliconCloud 可免费调用 internlm/internlm2_5-7b-chat 模型 +- 高并发量,推理速度快 + +**使用说明**: +- 选择"云端模型"选项 +- 选择 "internlm_silicon" 作为模型格式 +- 输入 SiliconCloud API Key(需在 https://cloud.siliconflow.cn/ 注册获取) + +**重要说明**: +- internlm/internlm2_5-7b-chat 模型在 SiliconCloud 上可以免费调用,但 API Key 仍需妥善保管好。 +- MindSearch 项目与 SiliconCloud 并无利益关系,只是使用它能更好地体验 MindSearch 的效果,感谢 SiliconCloud 为开源社区所做的贡献。 + +### 本地模型部署 + +**特点**: +- 使用 openmmlab/lmdeploy 镜像 +- 基于 PyTorch 环境 +- 需要大量磁盘空间(后端容器 15GB+,模型 15GB+,总计 30GB 以上) +- 需要强大的 GPU(建议 12GB 或以上显存) + +**使用说明**: +- 选择"本地模型"选项 +- 选择 "internlm_server" 作为模型格式 + +**相关链接**: +- lmdeploy 镜像: https://hub.docker.com/r/openmmlab/lmdeploy/tags +- InternLM2.5 项目: https://huggingface.co/internlm/internlm2_5-7b-chat + +## 注意事项 + +- 云端模型目前只有 internlm_silicon 格式能够正常运行,本地模型只有 internlm_server 格式通过测试能正常运行。 +- 选择语言只会影响 Agent 的提示词语言,不会改变 React 前端的界面语言。 +- 首次运行可能需要较长时间来下载必要的模型文件和 Docker 镜像。 +- 使用云端模型时,请确保网络连接稳定。 + +## 故障排除 + +1. 确保 Docker 服务正在运行。 +2. 检查是否有足够的磁盘空间。 +3. 确保所有必要的环境变量已正确设置。 +4. 检查网络连接是否正常。 +5. 验证 API Key 是否有效(如使用云端模型)。 + +如果问题持续,请查看 MindSearch 的 GitHub 仓库中的 Issues 部分,或提交新的 Issue。 + +## 隐私和安全 + +MSDL 是纯本地执行的工具,不会上报任何 API Key 或其他敏感信息。所有配置信息存储在 `msdl/temp/.env` 文件中,仅用于简化部署过程。 + +## 更新 MSDL + +要更新 MSDL 到最新版本,请执行以下步骤: + +1. 进入 MindSearch 目录 +2. 拉取最新的代码: + ```bash + git pull origin main + ``` +3. 重新安装 MSDL: + ```bash + cd docker + pip install -e . + ``` + +## 结语 + +如有任何问题或建议,欢迎在 GitHub 上提交 Issue 或直接联系我们。感谢您使用 MindSearch 和 MSDL! \ No newline at end of file diff --git a/docker/msdl/__init__.py b/docker/msdl/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/docker/msdl/__main__.py b/docker/msdl/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..8ab5d6726d71f0ed6736937f5919d57b6dd6b1bc --- /dev/null +++ b/docker/msdl/__main__.py @@ -0,0 +1,107 @@ +# msdl/__main__.py +import signal +import sys +import argparse +import os +from pathlib import Path + +from msdl.config import ( + BACKEND_DOCKERFILE_DIR, + FRONTEND_DOCKERFILE_DIR, + PACKAGE_DIR, + PROJECT_ROOT, + REACT_DOCKERFILE, + TEMP_DIR, + TEMPLATE_FILES, +) +from msdl.docker_manager import ( + check_docker_install, + run_docker_compose, + stop_and_remove_containers, + update_docker_compose_paths, +) +from msdl.i18n import ( + setup_i18n, + t, +) +from msdl.utils import ( + copy_templates_to_temp, + copy_backend_dockerfile, + copy_frontend_dockerfile, + modify_docker_compose, +) +from msdl.user_interaction import get_user_choices + + +def signal_handler(signum, frame): + print(t("TERMINATION_SIGNAL")) + stop_and_remove_containers() + sys.exit(0) + + +def parse_args(): + parser = argparse.ArgumentParser(description=t("CLI_DESCRIPTION")) + parser.add_argument('--language', '-l', + help=t("LANGUAGE_HELP"), + choices=["en", "zh_CN"], + default=None) + parser.add_argument('--config-language', action='store_true', + help=t("CONFIG_LANGUAGE_HELP")) + return parser.parse_args() + + +def main(): + # Setup signal handler + signal.signal(signal.SIGINT, signal_handler) + signal.signal(signal.SIGTERM, signal_handler) + + # Initialize i18n + setup_i18n() + + # Parse command line arguments + args = parse_args() + if args.language: + # set_language(args.language) + # Reinitialize i18n with new language + setup_i18n() + + try: + # Check if TEMP_DIR exists, if not, create it + if not TEMP_DIR.exists(): + TEMP_DIR.mkdir(parents=True, exist_ok=True) + print(t("TEMP_DIR_CREATED", dir=str(TEMP_DIR))) + + check_docker_install() + + # Get user choices using the new module + backend_language, model, model_format, search_engine = get_user_choices() + + # Copy template files + copy_templates_to_temp(TEMPLATE_FILES) + + # Copy Dockerfiles + copy_backend_dockerfile(model) + copy_frontend_dockerfile() + + # Update paths in docker-compose.yml + update_docker_compose_paths() + + # Modify docker-compose.yml based on user choices + modify_docker_compose(model, backend_language, model_format, search_engine) + + stop_and_remove_containers() + run_docker_compose() + + print(t("DOCKER_LAUNCHER_COMPLETE")) + except KeyboardInterrupt: + print(t("KEYBOARD_INTERRUPT")) + # stop_and_remove_containers() + sys.exit(0) + except Exception as e: + print(t("UNEXPECTED_ERROR", error=str(e))) + # stop_and_remove_containers() + sys.exit(1) + + +if __name__ == "__main__": + main() diff --git a/docker/msdl/config.py b/docker/msdl/config.py new file mode 100644 index 0000000000000000000000000000000000000000..a3375e192c78ceb8ee48e8a2640e197a4cb9f445 --- /dev/null +++ b/docker/msdl/config.py @@ -0,0 +1,57 @@ +# msdl/config.py + +from pathlib import Path + + +class FileSystemManager: + + @staticmethod + def ensure_dir(dir_path): + """Ensure the directory exists, create if it doesn't""" + path = Path(dir_path) + if not path.exists(): + path.mkdir(parents=True, exist_ok=True) + return path + + @staticmethod + def ensure_file(file_path, default_content=""): + """Ensure the file exists, create if it doesn't""" + path = Path(file_path) + if not path.parent.exists(): + FileSystemManager.ensure_dir(path.parent) + if not path.exists(): + with open(path, "w") as f: + f.write(default_content) + return path + + +# Get the directory where the script is located +PACKAGE_DIR = Path(__file__).resolve().parent + +# Get the root directory of the MindSearch project +PROJECT_ROOT = PACKAGE_DIR.parent.parent + +# Get the temp directory path, which is actually the working directory for executing the docker compose up command +TEMP_DIR = FileSystemManager.ensure_dir(PACKAGE_DIR / "temp") + +# Configuration file name list +TEMPLATE_FILES = ["docker-compose.yaml"] + +# Backend Dockerfile directory +BACKEND_DOCKERFILE_DIR = "backend" + +# Backend Dockerfile name +CLOUD_LLM_DOCKERFILE = "cloud_llm.dockerfile" +LOCAL_LLM_DOCKERFILE = "local_llm.dockerfile" + +# Frontend Dockerfile directory +FRONTEND_DOCKERFILE_DIR = "frontend" + +# Frontend Dockerfile name +REACT_DOCKERFILE = "react.dockerfile" + +# i18n translations directory +TRANSLATIONS_DIR = FileSystemManager.ensure_dir(PACKAGE_DIR / "translations") + +# Get the path of the .env file +ENV_FILE_PATH = FileSystemManager.ensure_file(TEMP_DIR / ".env") diff --git a/docker/msdl/docker_manager.py b/docker/msdl/docker_manager.py new file mode 100644 index 0000000000000000000000000000000000000000..5a32d288f0da7195e8eb41f9e1d162d652234b99 --- /dev/null +++ b/docker/msdl/docker_manager.py @@ -0,0 +1,175 @@ +# msdl/docker_manager.py + +import os +import subprocess +import sys +from functools import lru_cache + +import yaml +from msdl.config import PROJECT_ROOT, TEMP_DIR +from msdl.i18n import t + + +@lru_cache(maxsize=1) +def get_docker_command(): + try: + subprocess.run( + ["docker", "compose", "version"], check=True, capture_output=True + ) + return ["docker", "compose"] + except subprocess.CalledProcessError: + try: + subprocess.run( + ["docker-compose", "--version"], check=True, capture_output=True + ) + return ["docker-compose"] + except subprocess.CalledProcessError: + print(t("DOCKER_COMPOSE_NOT_FOUND")) + sys.exit(1) + + +@lru_cache(maxsize=1) +def check_docker_install(): + try: + subprocess.run(["docker", "--version"], check=True, capture_output=True) + docker_compose_cmd = get_docker_command() + subprocess.run( + docker_compose_cmd + ["version"], check=True, capture_output=True + ) + print(t("DOCKER_INSTALLED")) + return True + except subprocess.CalledProcessError as e: + print(t("DOCKER_INSTALL_ERROR", error=str(e))) + return False + except FileNotFoundError: + print(t("DOCKER_NOT_FOUND")) + return False + + +def stop_and_remove_containers(): + docker_compose_cmd = get_docker_command() + compose_file = os.path.join(TEMP_DIR, "docker-compose.yaml") + + # Read the docker-compose.yaml file + try: + with open(compose_file, "r") as file: + compose_config = yaml.safe_load(file) + except Exception as e: + print(t("COMPOSE_FILE_READ_ERROR", error=str(e))) + return + + # Get project name and service names + project_name = compose_config.get("name", "mindsearch") + service_names = list(compose_config.get("services", {}).keys()) + + # Use only the project name as the container prefix + container_prefix = f"{project_name}_" + + try: + # 1. Try to stop containers using the current docker-compose.yaml + subprocess.run( + docker_compose_cmd + ["-f", compose_file, "down", "-v", "--remove-orphans"], + check=True, + ) + except subprocess.CalledProcessError: + print(t("CURRENT_COMPOSE_STOP_FAILED")) + + # 2. Attempt to clean up potentially existing containers, regardless of the success of the previous step + try: + # List all containers (including stopped ones) + result = subprocess.run( + ["docker", "ps", "-a", "--format", "{{.Names}}"], + check=True, + capture_output=True, + text=True, + ) + all_containers = result.stdout.splitlines() + + # 3. Filter out containers belonging to our project + project_containers = [ + c + for c in all_containers + if c.startswith(container_prefix) + or any(c == f"{project_name}-{service}" for service in service_names) + ] + + if project_containers: + # 4. Force stop and remove these containers + for container in project_containers: + try: + subprocess.run(["docker", "stop", container], check=True) + subprocess.run(["docker", "rm", "-f", container], check=True) + print(t("CONTAINER_STOPPED_AND_REMOVED", container=container)) + except subprocess.CalledProcessError as e: + print(t("CONTAINER_STOP_ERROR", container=container, error=str(e))) + + # 5. Clean up potentially leftover networks + try: + subprocess.run(["docker", "network", "prune", "-f"], check=True) + print(t("NETWORKS_PRUNED")) + except subprocess.CalledProcessError as e: + print(t("NETWORK_PRUNE_ERROR", error=str(e))) + + except subprocess.CalledProcessError as e: + print(t("DOCKER_LIST_ERROR", error=str(e))) + + print(t("CONTAINERS_STOPPED_AND_REMOVED")) + + +def run_docker_compose(): + docker_compose_cmd = get_docker_command() + try: + print(t("STARTING_CONTAINERS_WITH_BUILD")) + subprocess.run( + docker_compose_cmd + + [ + "-f", + os.path.join(TEMP_DIR, "docker-compose.yaml"), + "--env-file", + os.path.join(TEMP_DIR, ".env"), + "up", + "-d", + "--build", + ], + check=True, + ) + print(t("CONTAINERS_STARTED")) + except subprocess.CalledProcessError as e: + print(t("DOCKER_ERROR", error=str(e))) + print(t("DOCKER_OUTPUT")) + print(e.output.decode() if e.output else "No output") + stop_and_remove_containers() + sys.exit(1) + + +def update_docker_compose_paths(project_root=PROJECT_ROOT): + docker_compose_path = os.path.join(TEMP_DIR, "docker-compose.yaml") + with open(docker_compose_path, "r") as file: + compose_data = yaml.safe_load(file) + for service in compose_data["services"].values(): + if "build" in service: + if "context" in service["build"]: + if service["build"]["context"] == "..": + service["build"]["context"] = project_root + else: + service["build"]["context"] = os.path.join( + project_root, service["build"]["context"] + ) + if "dockerfile" in service["build"]: + dockerfile_name = os.path.basename(service["build"]["dockerfile"]) + service["build"]["dockerfile"] = os.path.join(TEMP_DIR, dockerfile_name) + with open(docker_compose_path, "w") as file: + yaml.dump(compose_data, file) + print(t("PATHS_UPDATED")) + + +def main(): + if check_docker_install(): + update_docker_compose_paths() + run_docker_compose() + else: + sys.exit(1) + + +if __name__ == "__main__": + main() diff --git a/docker/msdl/i18n.py b/docker/msdl/i18n.py new file mode 100644 index 0000000000000000000000000000000000000000..84faed9776631c65afb2784a65bde42677882f67 --- /dev/null +++ b/docker/msdl/i18n.py @@ -0,0 +1,64 @@ +# msdl/translations/i18n.py + +import os +import i18n +import locale +from dotenv import load_dotenv, set_key, find_dotenv +from msdl.config import TRANSLATIONS_DIR, ENV_FILE_PATH +from pathlib import Path + +# Load environment variables at module level +load_dotenv(ENV_FILE_PATH) + +def get_env_variable(var_name, default=None): + return os.getenv(var_name, default) + +def set_env_variable(var_name, value): + dotenv_file = find_dotenv(ENV_FILE_PATH) + set_key(dotenv_file, var_name, value) + # Reload environment variables after setting + os.environ[var_name] = value + +def get_system_language(): + try: + return locale.getlocale()[0].split("_")[0] + except: + return "en" + +def get_available_languages(): + """Get list of available language codes from translation files""" + translations_path = Path(TRANSLATIONS_DIR) + if not translations_path.exists(): + return ["en"] + return [f.stem for f in translations_path.glob("*.yaml")] + +def set_language(language_code): + """Set the interaction language and persist it to .env file""" + available_langs = get_available_languages() + if language_code not in available_langs: + print(f"Warning: Language '{language_code}' not available. Using 'en' instead.") + language_code = "en" + + set_env_variable("LAUNCHER_INTERACTION_LANGUAGE", language_code) + i18n.set("locale", language_code) + + +def setup_i18n(): + # Initialize i18n settings + i18n.load_path.append(TRANSLATIONS_DIR) + i18n.set("filename_format", "{locale}.{format}") + i18n.set("file_format", "yaml") + + # Get language from environment + env_language = get_env_variable("LAUNCHER_INTERACTION_LANGUAGE") + if not env_language: + # If no language is set, use English as default without saving to .env + env_language = "en" + + # Force reload translations + i18n.set("locale", None) # Clear current locale + i18n.set("locale", env_language) # Set new locale + + +def t(key, **kwargs): + return i18n.t(key, **kwargs) diff --git a/docker/msdl/templates/backend/cloud_llm.dockerfile b/docker/msdl/templates/backend/cloud_llm.dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..3dfb4a687c915b3a6fbcd827e0467d5220b8f110 --- /dev/null +++ b/docker/msdl/templates/backend/cloud_llm.dockerfile @@ -0,0 +1,25 @@ +# Use Python 3.11.9 as the base image +FROM python:3.11.9-slim + +# Set the working directory +WORKDIR /root + +# Install Git +RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/* + +# Install specified dependency packages +RUN pip install --no-cache-dir \ + duckduckgo_search==5.3.1b1 \ + einops \ + fastapi \ + janus \ + pyvis \ + sse-starlette \ + termcolor \ + uvicorn \ + griffe==0.48.0 \ + python-dotenv \ + lagent==0.5.0rc1 + +# Copy the mindsearch folder to the /root directory of the container +COPY mindsearch /root/mindsearch \ No newline at end of file diff --git a/docker/msdl/templates/backend/local_llm.dockerfile b/docker/msdl/templates/backend/local_llm.dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..64027c462ffaab4615cb481db7d582a0d18e74a0 --- /dev/null +++ b/docker/msdl/templates/backend/local_llm.dockerfile @@ -0,0 +1,30 @@ +# Use openmmlab/lmdeploy:latest-cu12 as the base image +# Note: Before using this Dockerfile, you should visit https://hub.docker.com/r/openmmlab/lmdeploy/tags +# to select a base image that's compatible with your specific GPU architecture. +# The 'latest-cu12' tag is used here as an example, but you should choose the most +# appropriate tag for your setup (e.g., cu11 for CUDA 11, cu12 for CUDA 12, etc.) +FROM openmmlab/lmdeploy:latest-cu12 + +# Set the working directory +WORKDIR /root + +# Install Git +RUN apt-get update && apt-get install -y git && apt-get clean && rm -rf /var/lib/apt/lists/* + +# Install specified dependency packages +# Note: lmdeploy dependency is already included in the base image, no need to reinstall +RUN pip install --no-cache-dir \ + duckduckgo_search==5.3.1b1 \ + einops \ + fastapi \ + janus \ + pyvis \ + sse-starlette \ + termcolor \ + uvicorn \ + griffe==0.48.0 \ + python-dotenv \ + lagent==0.5.0rc1 + +# Copy the mindsearch folder to the /root directory of the container +COPY mindsearch /root/mindsearch \ No newline at end of file diff --git a/docker/msdl/templates/docker-compose.yaml b/docker/msdl/templates/docker-compose.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b3b453eb1da65ec839feef03cda154d73a015a8b --- /dev/null +++ b/docker/msdl/templates/docker-compose.yaml @@ -0,0 +1,62 @@ +services: + backend: + container_name: mindsearch-backend + build: + context: . + dockerfile: backend.dockerfile + image: mindsearch/backend:latest + restart: unless-stopped + # Uncomment the following line to force using local build + # pull: never + ports: + - "8002:8002" + environment: + - PYTHONUNBUFFERED=1 + # - OPENAI_API_KEY=${OPENAI_API_KEY:-} + - OPENAI_API_BASE=${OPENAI_API_BASE:-https://api.openai.com/v1} + # - QWEN_API_KEY=${QWEN_API_KEY:-} + # - SILICON_API_KEY=${SILICON_API_KEY:-} + command: python -m mindsearch.app --lang ${LANG:-cn} --model_format ${MODEL_FORMAT:-internlm_server} + volumes: + - /root/.cache:/root/.cache + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu] + # GPU support explanation: + # The current configuration has been tested with NVIDIA GPUs. If you use other types of GPUs, you may need to adjust the configuration. + # For AMD GPUs, you can try using the ROCm driver by modifying the configuration as follows: + # deploy: + # resources: + # reservations: + # devices: + # - driver: amd + # count: 1 + # capabilities: [gpu] + # + # For other GPU types, you may need to consult the respective Docker GPU support documentation. + # In theory, any GPU supported by PyTorch should be configurable here. + # If you encounter issues, try the following steps: + # 1. Ensure the correct GPU drivers are installed on the host + # 2. Check if your Docker version supports your GPU type + # 3. Install necessary GPU-related libraries in the Dockerfile + # 4. Adjust the deploy configuration here to match your GPU type + # + # Note: After changing GPU configuration, you may need to rebuild the image. + + frontend: + container_name: mindsearch-frontend + build: + context: . + dockerfile: frontend.dockerfile + image: mindsearch/frontend:latest + restart: unless-stopped + # Uncomment the following line to force using local build + # pull: never + ports: + - "8080:8080" + depends_on: + - backend diff --git a/docker/msdl/templates/frontend/react.dockerfile b/docker/msdl/templates/frontend/react.dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..8762c2ce250dac56aa0b830ff1c15764e8eb41b9 --- /dev/null +++ b/docker/msdl/templates/frontend/react.dockerfile @@ -0,0 +1,35 @@ +# Use Node.js 18 as the base image +FROM node:18-alpine + +# Set the working directory +WORKDIR /app + +# Copy package files first to leverage Docker cache +COPY frontend/React/package*.json ./ + +# Install dependencies +RUN npm install + +# Copy source code after npm install to prevent unnecessary reinstalls +COPY frontend/React/ ./ + +# Modify vite.config.ts for Docker environment +# Beacuse we use Docker Compose to manage the backend and frontend services, we can use the service name as the hostname +RUN sed -i '/server: {/,/},/c\ + server: {\ + host: "0.0.0.0",\ + port: 8080,\ + proxy: {\ + "/solve": {\ + target: "http://backend:8002",\ + changeOrigin: true,\ + },\ + // "/solve": {\ + // target: "https://mindsearch.openxlab.org.cn",\ + // changeOrigin: true,\ + // },\ + },\ + },' vite.config.ts + +# Start the development server +CMD ["npm", "start"] \ No newline at end of file diff --git a/docker/msdl/translations/en.yaml b/docker/msdl/translations/en.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1d357486d6a3ca21bf48c3520d8dfb518082c208 --- /dev/null +++ b/docker/msdl/translations/en.yaml @@ -0,0 +1,77 @@ +en: + SCRIPT_DIR: "Script directory: %{dir}" + PROJECT_ROOT: "Project root directory: %{dir}" + TEMP_DIR: "Temporary directory: %{dir}" + DOCKER_LAUNCHER_START: "Starting Docker launcher process" + DOCKER_LAUNCHER_COMPLETE: "Docker launcher process completed" + DIR_CREATED: "Directory created: %{dir}" + FILE_COPIED: "Copied %{file} to the temp directory" + FILE_NOT_FOUND: "Error: %{file} not found in the templates directory" + CONTAINERS_STOPPED: "Existing containers and volumes stopped and removed" + CONTAINER_STOP_ERROR: "Error stopping and removing containers (this may be normal if there were no running containers): %{error}" + BUILDING_IMAGES: "Starting to build Docker images..." + IMAGES_BUILT: "Docker images built successfully" + STARTING_CONTAINERS: "Starting Docker containers..." + STARTING_CONTAINERS_WITH_BUILD: "Starting to build and start Docker containers..." + CONTAINERS_STARTED: "Docker containers started successfully" + DOCKER_ERROR: "Error while building or starting Docker containers: %{error}" + DOCKER_OUTPUT: "Docker command output:" + DOCKER_INSTALLED: "Docker and Docker Compose installed correctly" + DOCKER_INSTALL_ERROR: "Error: Docker or Docker Compose may not be installed correctly: %{error}" + DOCKER_NOT_FOUND: "Error: Docker or Docker Compose command not found. Please ensure they are correctly installed and added to the PATH." + DOCKER_COMPOSE_NOT_FOUND: "Error: Docker Compose command not found. Please ensure it is correctly installed and added to the PATH." + PATHS_UPDATED: "Paths updated in docker-compose.yaml" + COMPOSE_FILE_CONTENT: "docker-compose.yaml file content:" + COMPOSE_FILE_NOT_FOUND: "Error: %{file} file not found" + COMPOSE_FILE_READ_ERROR: "Error reading docker-compose.yaml file: %{error}" + TERMINATION_SIGNAL: "Termination signal caught. Exiting gracefully..." + KEYBOARD_INTERRUPT: "Keyboard interrupt caught. Exiting gracefully..." + UNEXPECTED_ERROR: "An unexpected error occurred: %{error}" + BACKEND_LANGUAGE_CHOICE: "Select MindSearch backend language (default is cn)" + CHINESE: "Chinese (cn)" + ENGLISH: "English (en)" + MODEL_DEPLOYMENT_TYPE: "Select model deployment type:" + CLOUD_MODEL: "Cloud model" + LOCAL_MODEL: "Local model" + MODEL_FORMAT_CHOICE: "Select model format:" + CONFIRM_USE_EXISTING_API_KEY: "Do you want to use the existing %{ENV_VAR_NAME} API key?" + CONFIRM_OVERWRITE_EXISTING_API_KEY: "Do you want to overwrite the existing %{ENV_VAR_NAME} API key?" + PLEASE_INPUT_NEW_API_KEY: "Please enter a new %{ENV_VAR_NAME} API key:" + PLEASE_INPUT_NEW_API_KEY_FROM_ZERO: "Please enter a new %{ENV_VAR_NAME} API key:" + INVALID_API_KEY_FORMAT: "Invalid API key format" + RETRY_API_KEY_INPUT: "Retry API key input" + API_KEY_INPUT_CANCELLED: "API key input cancelled" + UNKNOWN_API_KEY_TYPE: "Unknown API key type: %{KEY_TYPE}" + UNKNOWN_MODEL_FORMAT: "Unknown model format: %{MODEL_FORMAT}" + INVALID_API_KEY: "Invalid API key: %{KEY_TYPE}" + API_KEY_SAVED: "API key for %{ENV_VAR_NAME} saved" + UNKNOWN_DOCKERFILE: "Unknown Dockerfile: %{dockerfile}" + UNKNOWN_MODEL_TYPE: "Unknown model type: %{model_type}" + BACKEND_DOCKERFILE_COPIED: "Backend Dockerfile copied from %{source_path} to %{dest_path}" + FRONTEND_DOCKERFILE_COPIED: "Frontend Dockerfile copied from %{source_path} to %{dest_path}" + TEMP_DIR_CREATED: "Temporary directory created at %{dir}" + CURRENT_COMPOSE_STOP_FAILED: "Current containers stop failed" + CONTAINER_STOPPED_AND_REMOVED: "Container stopped and removed" + NETWORKS_PRUNED: "Corresponding Docker networks pruned" + NETWORK_PRUNE_ERROR: "Error pruning corresponding Docker networks: %{error}" + DOCKER_LIST_ERROR: "Error listing Docker containers: %{error}" + CONTAINERS_STOPPED_AND_REMOVED: "Docker containers stopped and removed" + CLI_DESCRIPTION: "MindSearch Docker Launcher - A tool to manage MindSearch docker containers" + LANGUAGE_HELP: "Set the msdl tool interface language (e.g. en, zh_CN)" + CONFIG_LANGUAGE_HELP: "Show language configuration prompt" + LANGUAGE_NOT_AVAILABLE: "Warning: Language '%{lang}' not available. Using English instead." + SELECT_INTERFACE_LANGUAGE: "Select msdl tool interface language" + SELECT_BACKEND_LANGUAGE: "Select MindSearch backend language (default is cn)" + LANGUAGE_CHANGED_RESTARTING: "Language changed, restarting msdl..." + SELECT_SEARCH_ENGINE: "Select search engine:" + NO_API_KEY_NEEDED: "No API key needed" + API_KEY_REQUIRED: "API key required" + SEARCH_ENGINE_GOOGLE: "Google Search" + SEARCH_ENGINE_BING: "Bing Search" + SEARCH_ENGINE_DUCKDUCKGO: "DuckDuckGo Search" + SEARCH_ENGINE_BRAVE: "Brave Search" + SEARCH_ENGINE_TENCENT: "Tencent Search" + TENCENT_ID_REQUIRED: "Please enter your Tencent Search Secret ID" + TENCENT_KEY_REQUIRED: "Please enter your Tencent Search Secret Key" + WEB_SEARCH_KEY_REQUIRED: "Please enter your Web Search API Key" + SEARCH_ENGINE_CONFIGURED: "Search engine %{engine} configured successfully" diff --git a/docker/msdl/translations/zh_CN.yaml b/docker/msdl/translations/zh_CN.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4e65c7d4e5fd03428af091710533878ed17c2e95 --- /dev/null +++ b/docker/msdl/translations/zh_CN.yaml @@ -0,0 +1,77 @@ +zh_CN: + SCRIPT_DIR: "脚本目录:%{dir}" + PROJECT_ROOT: "项目根目录:%{dir}" + TEMP_DIR: "临时目录:%{dir}" + DOCKER_LAUNCHER_START: "开始 Docker 启动器流程" + DOCKER_LAUNCHER_COMPLETE: "Docker 启动器流程完成" + DIR_CREATED: "创建目录:%{dir}" + FILE_COPIED: "已复制 %{file} 到 temp 目录" + FILE_NOT_FOUND: "错误:%{file} 在 templates 目录中不存在" + CONTAINERS_STOPPED: "已停止并删除现有容器和卷" + CONTAINER_STOP_ERROR: "停止和删除容器时出错(这可能是正常的,如果没有正在运行的容器):%{error}" + BUILDING_IMAGES: "开始构建Docker镜像..." + IMAGES_BUILT: "Docker镜像构建成功" + STARTING_CONTAINERS: "开始启动Docker容器..." + STARTING_CONTAINERS_WITH_BUILD: "开始构建并启动Docker容器..." + CONTAINERS_STARTED: "Docker 容器已成功启动" + DOCKER_ERROR: "构建或启动 Docker 容器时出错:%{error}" + DOCKER_OUTPUT: "Docker 命令输出:" + DOCKER_INSTALLED: "Docker 和 Docker Compose 安装正确" + DOCKER_INSTALL_ERROR: "错误:Docker 或 Docker Compose 可能没有正确安装:%{error}" + DOCKER_NOT_FOUND: "错误:Docker 或 Docker Compose 命令未找到。请确保它们已正确安装并添加到PATH中。" + DOCKER_COMPOSE_NOT_FOUND: "错误:Docker Compose 命令未找到。请确保它已正确安装并添加到PATH中。" + PATHS_UPDATED: "已更新 docker-compose.yaml 中的路径" + COMPOSE_FILE_CONTENT: "docker-compose.yaml 文件内容:" + COMPOSE_FILE_NOT_FOUND: "错误:%{file} 文件不存在" + COMPOSE_FILE_READ_ERROR: "读取 docker-compose.yaml 文件时出错:%{error}" + TERMINATION_SIGNAL: "捕获到终止信号。正在优雅地退出..." + KEYBOARD_INTERRUPT: "捕获到键盘中断。正在优雅地退出..." + UNEXPECTED_ERROR: "发生未预期的错误:%{error}" + BACKEND_LANGUAGE_CHOICE: "选择 MindSearch 后端语言(默认为中文)" + SELECT_INTERFACE_LANGUAGE: "选择 msdl 工具界面语言" + SELECT_BACKEND_LANGUAGE: "选择 MindSearch 后端语言(默认为中文)" + CHINESE: "中文 (cn)" + ENGLISH: "英文 (en)" + MODEL_DEPLOYMENT_TYPE: "选择模型部署类型:" + CLOUD_MODEL: "云端模型" + LOCAL_MODEL: "本地模型" + MODEL_FORMAT_CHOICE: "选择模型格式:" + CONFIRM_USE_EXISTING_API_KEY: "是否使用现有的 %{ENV_VAR_NAME} API 密钥?" + CONFIRM_OVERWRITE_EXISTING_API_KEY: "是否覆盖现有的 %{ENV_VAR_NAME} API 密钥?" + PLEASE_INPUT_NEW_API_KEY: "请输入新的 %{ENV_VAR_NAME} API 密钥:" + PLEASE_INPUT_NEW_API_KEY_FROM_ZERO: "请输入新的 %{ENV_VAR_NAME} API 密钥:" + INVALID_API_KEY_FORMAT: "无效的 API 密钥格式" + RETRY_API_KEY_INPUT: "重试 API 密钥输入" + API_KEY_INPUT_CANCELLED: "API 密钥输入已取消" + UNKNOWN_API_KEY_TYPE: "未知的 API 密钥类型:%{KEY_TYPE}" + UNKNOWN_MODEL_FORMAT: "未知的模型格式:%{MODEL_FORMAT}" + INVALID_API_KEY: "无效的 API 密钥:%{KEY_TYPE}" + API_KEY_SAVED: "%{ENV_VAR_NAME} 的 API 密钥已保存" + UNKNOWN_DOCKERFILE: "未知的 Dockerfile:%{dockerfile}" + UNKNOWN_MODEL_TYPE: "未知的模型类型:%{model_type}" + BACKEND_DOCKERFILE_COPIED: "后端 Dockerfile 已经从 %{source_path} 复制为 %{dest_path}" + FRONTEND_DOCKERFILE_COPIED: "前端 Dockerfile 已经从 %{source_path} 复制为 %{dest_path}" + TEMP_DIR_CREATED: "已在 %{dir} 创建临时目录" + CURRENT_COMPOSE_STOP_FAILED: "当前的容器停止失败" + CONTAINER_STOPPED_AND_REMOVED: "容器已停止并删除" + NETWORKS_PRUNED: "已清理对应的Docker网络" + NETWORK_PRUNE_ERROR: "清理对应的Docker网络时出错:%{error}" + DOCKER_LIST_ERROR: "列出 Docker 容器时出错:%{error}" + CONTAINERS_STOPPED_AND_REMOVED: "已停止并删除 Docker 容器" + CLI_DESCRIPTION: "MindSearch Docker 启动器 - 用于管理 MindSearch docker 容器的工具" + LANGUAGE_HELP: "设置 msdl 工具界面语言(例如:en, zh_CN)" + CONFIG_LANGUAGE_HELP: "显示语言配置提示" + LANGUAGE_NOT_AVAILABLE: "警告:语言'%{lang}'不可用。使用英语作为替代。" + LANGUAGE_CHANGED_RESTARTING: "语言已更改,正在重启 msdl..." + SELECT_SEARCH_ENGINE: "选择搜索引擎:" + NO_API_KEY_NEEDED: "无需 API 密钥" + API_KEY_REQUIRED: "需要 API 密钥" + SEARCH_ENGINE_DUCKDUCKGO: "DuckDuckGo 搜索" + SEARCH_ENGINE_BING: "必应搜索" + SEARCH_ENGINE_BRAVE: "Brave 搜索" + SEARCH_ENGINE_GOOGLE: "Google 搜索" + SEARCH_ENGINE_TENCENT: "腾讯搜索" + TENCENT_ID_REQUIRED: "请输入您的腾讯搜索 Secret ID" + TENCENT_KEY_REQUIRED: "请输入您的腾讯搜索 Secret Key" + WEB_SEARCH_KEY_REQUIRED: "请输入您的网页搜索 API 密钥" + SEARCH_ENGINE_CONFIGURED: "搜索引擎 %{engine} 配置成功" diff --git a/docker/msdl/user_interaction.py b/docker/msdl/user_interaction.py new file mode 100644 index 0000000000000000000000000000000000000000..1d405ea5cde2f7454dbca39910fc9661cb14b572 --- /dev/null +++ b/docker/msdl/user_interaction.py @@ -0,0 +1,253 @@ +from InquirerPy import inquirer +import sys +import os +from pathlib import Path + +from msdl.config import ( + CLOUD_LLM_DOCKERFILE, + LOCAL_LLM_DOCKERFILE, +) +from msdl.i18n import ( + t, + get_available_languages, + set_language, + get_env_variable, +) +from msdl.utils import ( + clean_api_key, + get_model_formats, + get_existing_api_key, + save_api_key_to_env, + validate_api_key, +) + +SEARCH_ENGINES = { + "DuckDuckGoSearch": { + "name": "DuckDuckGo", + "key": "DUCKDUCKGO", + "requires_key": False, + "env_var": None + }, + "BingSearch": { + "name": "Bing", + "key": "BING", + "requires_key": True, + "env_var": "BING_SEARCH_API_KEY" + }, + "BraveSearch": { + "name": "Brave", + "key": "BRAVE", + "requires_key": True, + "env_var": "BRAVE_SEARCH_API_KEY" + }, + "GoogleSearch": { + "name": "Google Serper", + "key": "GOOGLE", + "requires_key": True, + "env_var": "GOOGLE_SERPER_API_KEY" + }, + "TencentSearch": { + "name": "Tencent", + "key": "TENCENT", + "requires_key": True, + "env_vars": ["TENCENT_SEARCH_SECRET_ID", "TENCENT_SEARCH_SECRET_KEY"] + } +} + +def get_language_choice(): + """Get user's language preference""" + def _get_language_options(): + available_langs = get_available_languages() + lang_choices = { + "en": "English", + "zh_CN": "中文" + } + return [{"name": f"{lang_choices.get(lang, lang)}", "value": lang} for lang in available_langs] + + current_lang = get_env_variable("LAUNCHER_INTERACTION_LANGUAGE") + if not current_lang: + lang_options = _get_language_options() + language = inquirer.select( + message=t("SELECT_INTERFACE_LANGUAGE"), + choices=lang_options, + default="en" + ).execute() + + if language: + set_language(language) + sys.stdout.flush() + restart_program() + +def get_backend_language(): + """Get user's backend language preference""" + return inquirer.select( + message=t("SELECT_BACKEND_LANGUAGE"), + choices=[ + {"name": t("CHINESE"), "value": "cn"}, + {"name": t("ENGLISH"), "value": "en"}, + ], + default="cn", + ).execute() + +def get_model_choice(): + """Get user's model deployment type preference""" + model_deployment_type = [ + { + "name": t("CLOUD_MODEL"), + "value": CLOUD_LLM_DOCKERFILE + }, + { + "name": t("LOCAL_MODEL"), + "value": LOCAL_LLM_DOCKERFILE + }, + ] + + return inquirer.select( + message=t("MODEL_DEPLOYMENT_TYPE"), + choices=model_deployment_type, + ).execute() + +def get_model_format(model): + """Get user's model format preference""" + model_formats = get_model_formats(model) + return inquirer.select( + message=t("MODEL_FORMAT_CHOICE"), + choices=[{ + "name": format, + "value": format + } for format in model_formats], + ).execute() + +def _handle_api_key_input(env_var_name, message=None): + """Handle API key input and validation for a given environment variable""" + if message is None: + message = t("PLEASE_INPUT_NEW_API_KEY", ENV_VAR_NAME=env_var_name) + print(message) + + while True: + api_key = inquirer.secret( + message=t("PLEASE_INPUT_NEW_API_KEY_FROM_ZERO", ENV_VAR_NAME=env_var_name) + ).execute() + cleaned_api_key = clean_api_key(api_key) + + try: + save_api_key_to_env(env_var_name, cleaned_api_key, t) + break + except ValueError as e: + print(str(e)) + retry = inquirer.confirm( + message=t("RETRY_API_KEY_INPUT"), default=True + ).execute() + if not retry: + print(t("API_KEY_INPUT_CANCELLED")) + sys.exit(1) + +def handle_api_key_input(model, model_format): + """Handle API key input and validation""" + if model != CLOUD_LLM_DOCKERFILE: + return + + env_var_name = { + "internlm_silicon": "SILICON_API_KEY", + "gpt4": "OPENAI_API_KEY", + "qwen": "QWEN_API_KEY", + }.get(model_format) + + existing_api_key = get_existing_api_key(env_var_name) + + if existing_api_key: + use_existing = inquirer.confirm( + message=t("CONFIRM_USE_EXISTING_API_KEY", ENV_VAR_NAME=env_var_name), + default=True, + ).execute() + + if use_existing: + return + + print(t("CONFIRM_OVERWRITE_EXISTING_API_KEY", ENV_VAR_NAME=env_var_name)) + + try: + save_api_key_to_env(model_format, clean_api_key(inquirer.secret( + message=t("PLEASE_INPUT_NEW_API_KEY_FROM_ZERO", ENV_VAR_NAME=env_var_name) + ).execute()), t) + except ValueError as e: + print(str(e)) + retry = inquirer.confirm( + message=t("RETRY_API_KEY_INPUT"), default=True + ).execute() + if not retry: + print(t("API_KEY_INPUT_CANCELLED")) + sys.exit(1) + +def get_search_engine(): + """Get user's preferred search engine and handle API key if needed""" + search_engine = inquirer.select( + message=t("SELECT_SEARCH_ENGINE"), + choices=[{ + "name": f"{t(f'SEARCH_ENGINE_{info["key"]}')} ({t('NO_API_KEY_NEEDED') if not info['requires_key'] else t('API_KEY_REQUIRED')})", + "value": engine + } for engine, info in SEARCH_ENGINES.items()], + ).execute() + + engine_info = SEARCH_ENGINES[search_engine] + + if engine_info['requires_key']: + if search_engine == "TencentSearch": + # Handle Tencent's special case with two keys + for env_var in engine_info['env_vars']: + is_id = "ID" in env_var + message = t("TENCENT_ID_REQUIRED") if is_id else t("TENCENT_KEY_REQUIRED") + existing_key = get_existing_api_key(env_var) + if existing_key: + use_existing = inquirer.confirm( + message=t("CONFIRM_USE_EXISTING_API_KEY", ENV_VAR_NAME=env_var), + default=True, + ).execute() + if not use_existing: + _handle_api_key_input(env_var, message) + else: + _handle_api_key_input(env_var, message) + else: + # Handle standard case with single WEB_SEARCH_API_KEY + env_var = engine_info['env_var'] + existing_key = get_existing_api_key(env_var) + if existing_key: + use_existing = inquirer.confirm( + message=t("CONFIRM_USE_EXISTING_API_KEY", ENV_VAR_NAME=env_var), + default=True, + ).execute() + if not use_existing: + _handle_api_key_input(env_var, t("WEB_SEARCH_KEY_REQUIRED")) + else: + _handle_api_key_input(env_var, t("WEB_SEARCH_KEY_REQUIRED")) + + print(t("SEARCH_ENGINE_CONFIGURED", engine=engine_info['name'])) + return search_engine + +def restart_program(): + """Restart the current program with the same arguments""" + print(t("LANGUAGE_CHANGED_RESTARTING")) + python = sys.executable + os.execl(python, python, *sys.argv) + +def get_user_choices(): + """Get all user choices in a single function""" + # Get language preference + get_language_choice() + + # Get backend language + backend_language = get_backend_language() + + # Get model choice + model = get_model_choice() + + # Get model format + model_format = get_model_format(model) + + # Get search engine choice + search_engine = get_search_engine() + + # Handle API key if needed + handle_api_key_input(model, model_format) + + return backend_language, model, model_format, search_engine diff --git a/docker/msdl/utils.py b/docker/msdl/utils.py new file mode 100644 index 0000000000000000000000000000000000000000..aca0527a758e624ee4dbc70f93b0b18459e69d60 --- /dev/null +++ b/docker/msdl/utils.py @@ -0,0 +1,257 @@ +# msdl/utils.py + +import os +import re +import shutil +import sys +import yaml +from functools import lru_cache +from pathlib import Path +from msdl.config import ( + BACKEND_DOCKERFILE_DIR, + CLOUD_LLM_DOCKERFILE, + FRONTEND_DOCKERFILE_DIR, + LOCAL_LLM_DOCKERFILE, + PACKAGE_DIR, + REACT_DOCKERFILE, + TEMP_DIR, + ENV_FILE_PATH, +) +from msdl.i18n import t + + +@lru_cache(maxsize=None) +def get_env_variable(var_name, default=None): + if ENV_FILE_PATH.exists(): + with ENV_FILE_PATH.open("r") as env_file: + for line in env_file: + if line.startswith(f"{var_name}="): + return line.strip().split("=", 1)[1] + return os.getenv(var_name, default) + + +@lru_cache(maxsize=None) +def get_existing_api_key(env_var_name): + env_vars = read_env_file() + return env_vars.get(env_var_name) + + +@lru_cache(maxsize=None) +def read_env_file(): + env_vars = {} + if ENV_FILE_PATH.exists(): + with ENV_FILE_PATH.open("r") as env_file: + for line in env_file: + if "=" in line and not line.strip().startswith("#"): + key, value = line.strip().split("=", 1) + env_vars[key] = value.strip('"').strip("'") + return env_vars + + +def clean_api_key(api_key): + cleaned_key = api_key.strip() + cleaned_key = re.sub(r"\s+", "", cleaned_key) + return cleaned_key + + +@lru_cache(maxsize=None) +def validate_api_key(api_key, key_type, t): + basic_pattern = r"^sk-[A-Za-z0-9]+$" + web_search_pattern = r"^[A-Za-z0-9_\-\.]+$" + tencent_pattern = r"^[A-Za-z0-9]+$" + + validation_rules = { + # Model API Keys + "SILICON_API_KEY": basic_pattern, + "OPENAI_API_KEY": basic_pattern, + "QWEN_API_KEY": basic_pattern, + # Search Engine API Keys + "BING_SEARCH_API_KEY": web_search_pattern, + "BRAVE_SEARCH_API_KEY": web_search_pattern, + "GOOGLE_SERPER_API_KEY": web_search_pattern, + "TENCENT_SEARCH_SECRET_ID": tencent_pattern, + "TENCENT_SEARCH_SECRET_KEY": tencent_pattern, + # Legacy support + "WEB_SEARCH_API_KEY": web_search_pattern, + } + + if key_type not in validation_rules: + raise ValueError(t("UNKNOWN_API_KEY_TYPE", KEY_TYPE=key_type)) + + pattern = validation_rules[key_type] + return re.match(pattern, api_key) is not None + + +def save_api_key_to_env(key_type, api_key, t): + """Save API key to .env file + + Args: + key_type: Environment variable name or model format + api_key: API key value + t: Translation function + """ + # Convert model format to env var name if needed + env_var_name = { + "internlm_silicon": "SILICON_API_KEY", + "gpt4": "OPENAI_API_KEY", + "qwen": "QWEN_API_KEY", + }.get(key_type, key_type) # If not a model format, use key_type directly + + if not validate_api_key(api_key, env_var_name, t): + raise ValueError(t("INVALID_API_KEY", KEY_TYPE=env_var_name)) + + env_vars = read_env_file() + env_vars[env_var_name] = api_key + + with ENV_FILE_PATH.open("w") as env_file: + for key, value in env_vars.items(): + env_file.write(f"{key}={value}\n") + + print(t("API_KEY_SAVED", ENV_VAR_NAME=env_var_name)) + + +def ensure_directory(path): + path = Path(path) + if not path.exists(): + path.mkdir(parents=True, exist_ok=True) + print(t("DIR_CREATED", dir=path)) + + +def copy_templates_to_temp(template_files): + template_dir = PACKAGE_DIR / "templates" + + ensure_directory(TEMP_DIR) + + for filename in template_files: + src = template_dir / filename + dst = TEMP_DIR / filename + if src.exists(): + shutil.copy2(src, dst) + print(t("FILE_COPIED", file=filename)) + else: + print(t("FILE_NOT_FOUND", file=filename)) + sys.exit(1) + + +def modify_docker_compose(model_type, backend_language, model_format, search_engine): + """Modify docker-compose.yaml based on user choices""" + docker_compose_path = os.path.join(TEMP_DIR, "docker-compose.yaml") + with open(docker_compose_path, "r") as file: + compose_data = yaml.safe_load(file) + + # Set the name of the project + compose_data["name"] = "mindsearch" + + # Configure backend service + backend_service = compose_data["services"]["backend"] + + # Set environment variables + if "environment" not in backend_service: + backend_service["environment"] = [] + + # Add or update environment variables + env_vars = { + "LANG": backend_language, + "MODEL_FORMAT": model_format, + "SEARCH_ENGINE": search_engine + } + + # Ensure .env file is included + if "env_file" not in backend_service: + backend_service["env_file"] = [".env"] + elif ".env" not in backend_service["env_file"]: + backend_service["env_file"].append(".env") + + # Set command with all parameters + command = f"python -m mindsearch.app --lang {backend_language} --model_format {model_format} --search_engine {search_engine}" + backend_service["command"] = command + + # Convert environment variables to docker-compose format + backend_service["environment"] = [ + f"{key}={value}" for key, value in env_vars.items() + ] + + # Configure based on model type + if model_type == CLOUD_LLM_DOCKERFILE: + if "deploy" in backend_service: + del backend_service["deploy"] + # Remove volumes for cloud deployment + if "volumes" in backend_service: + del backend_service["volumes"] + elif model_type == LOCAL_LLM_DOCKERFILE: + # Add GPU configuration for local deployment + if "deploy" not in backend_service: + backend_service["deploy"] = { + "resources": { + "reservations": { + "devices": [ + {"driver": "nvidia", "count": 1, "capabilities": ["gpu"]} + ] + } + } + } + # Add volume for cache in local deployment + backend_service["volumes"] = ["/root/.cache:/root/.cache"] + else: + raise ValueError(t("UNKNOWN_DOCKERFILE", dockerfile=model_type)) + + # Save the modified docker-compose.yaml + with open(docker_compose_path, "w") as file: + yaml.dump(compose_data, file) + + print( + t( + "docker_compose_updated", + mode=(t("CLOUD") if model_type == CLOUD_LLM_DOCKERFILE else t("LOCAL")), + format=model_format, + ) + ) + + +def get_model_formats(model_type): + if model_type == CLOUD_LLM_DOCKERFILE: + return ["internlm_silicon", "qwen", "gpt4"] + elif model_type == LOCAL_LLM_DOCKERFILE: + return ["internlm_server", "internlm_client", "internlm_hf"] + else: + raise ValueError(t("UNKNOWN_MODEL_TYPE", model_type=model_type)) + + +def copy_backend_dockerfile(choice): + """Copy backend Dockerfile to temp directory based on user choice""" + source_file = Path(BACKEND_DOCKERFILE_DIR) / choice + dest_file = "backend.dockerfile" + source_path = PACKAGE_DIR / "templates" / source_file + dest_path = TEMP_DIR / dest_file + + if not source_path.exists(): + raise FileNotFoundError(t("FILE_NOT_FOUND", file=source_file)) + + dest_path.parent.mkdir(parents=True, exist_ok=True) + dest_path.write_text(source_path.read_text()) + print( + t( + "BACKEND_DOCKERFILE_COPIED", + source_path=str(source_path), + dest_path=str(dest_path), + )) + + +def copy_frontend_dockerfile(): + """Copy frontend Dockerfile to temp directory""" + source_file = Path(FRONTEND_DOCKERFILE_DIR) / REACT_DOCKERFILE + dest_file = "frontend.dockerfile" + source_path = PACKAGE_DIR / "templates" / source_file + dest_path = TEMP_DIR / dest_file + + if not source_path.exists(): + raise FileNotFoundError(t("FILE_NOT_FOUND", file=source_file)) + + dest_path.parent.mkdir(parents=True, exist_ok=True) + dest_path.write_text(source_path.read_text()) + print( + t( + "FRONTEND_DOCKERFILE_COPIED", + source_path=str(source_path), + dest_path=str(dest_path), + )) diff --git a/docker/setup.py b/docker/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..437d1c260a4bf0f7e92739b9b038dfae927134d6 --- /dev/null +++ b/docker/setup.py @@ -0,0 +1,24 @@ +from setuptools import find_packages, setup + +setup( + name="msdl", + version="0.1.1", + description="MindSearch Docker Launcher", + packages=find_packages(), + python_requires=">=3.7", + install_requires=[ + "pyyaml>=6.0", + "python-i18n>=0.3.9", + "inquirerpy>=0.3.4", + "python-dotenv>=0.19.1", + ], + entry_points={ + "console_scripts": [ + "msdl=msdl.__main__:main", + ], + }, + include_package_data=True, + package_data={ + "msdl": ["translations/*.yaml", "templates/*"], + }, +) diff --git a/frontend/React/.gitignore b/frontend/React/.gitignore index 32199e6549af63d1fd128531b862653690c61ca3..f40e912a0a1f520e881861125dd84503ac5f63a3 100644 --- a/frontend/React/.gitignore +++ b/frontend/React/.gitignore @@ -14,7 +14,12 @@ # misc .DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local npm-debug.log* yarn-debug.log* yarn-error.log* + \ No newline at end of file diff --git a/frontend/React/.prettierignore b/frontend/React/.prettierignore index 8b8d0950b81abec4e88832b902f9fd5593b97f60..040a24989943ac5f194acbde2d02c59497f8b801 100644 --- a/frontend/React/.prettierignore +++ b/frontend/React/.prettierignore @@ -4,4 +4,4 @@ values node_modules .gitignore .prettierignore -.husky +.husky \ No newline at end of file diff --git a/frontend/React/README.md b/frontend/React/README.md index b1a88933f4c047c2313e5ea636bab12c677f012e..6dcdf56519469ca43fa54565e0d88a3d81001ce5 100644 --- a/frontend/React/README.md +++ b/frontend/React/README.md @@ -1,132 +1,184 @@ -# 开始 -## 准备node.js开发环境 -Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境,允许你在服务器端运行 JavaScript。以下是在 Windows、Linux 和 macOS 上安装 Node.js 的详细步骤。 +# Notice +- If you leave the page (Make the page invisible) and come back again, it will cause sse to reconnect. +- the project requires Node.js version >= 18.0.0. -### 在 Windows 上安装 Node.js -- 步骤 1: 访问 Node.js 官网 +# Prepare your dev-environment for frontend +[Node.js](https://nodejs.org/en)® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts. -打开浏览器,访问 [Node.js](https://nodejs.org/zh-cn/download/prebuilt-installer) 官方网站。 +# Node.js Installation Guide (Windows, Linux, macOS) +## Windows Installation +- Step 1: Download Node.js -- 步骤 2: 下载 Node.js 安装包 + 1. Open your web browser and visit the [Node.js official website](https://nodejs.org/en). -选择你需要的nodejs版本,设备的类型,点击下载,示例如下图: -![windows install](./windows-.png) + 2. Navigate to the "Downloads" section. -- 步骤 3: 安装 Node.js + 3. Select the desired version (LTS recommended for long-term stability). As of August 2024, the latest LTS version might be v20.x.x. -双击下载的安装包开始安装。 + 4. Click on the "Windows Installer (.msi)" link to download the installation package. -跟随安装向导的指示进行安装。在安装过程中,你可以选择安装位置、是否将 Node.js 添加到系统 PATH 环境变量等选项。推荐选择“添加到 PATH”以便在任何地方都能通过命令行访问 Node.js。 -安装完成后,点击“Finish”结束安装。 +- Step 2: Install Node.js -- 步骤 4: 验证安装 + 1. Double-click the downloaded .msi file to start the installation wizard. -打开命令提示符(CMD)或 PowerShell。 -输入 node -v 并回车,如果系统返回了 Node.js 的版本号,说明安装成功。 -接着,输入 npm -v 并回车,npm 是 Node.js 的包管理器,如果返回了版本号,表示 npm 也已正确安装。 + 2. Click "Next" to proceed. -### 在 Linux 上安装 Node.js -注意: 由于 Linux 发行版众多,以下以 Ubuntu 为例说明,其他发行版(如 CentOS、Debian 等)的安装方式可能略有不同,可自行查询对应的安装办法。 + 3. Read and accept the license agreement by checking the "I accept the terms in the License Agreement" box. -- 步骤 1: 更新你的包管理器 + 4. Click "Next" again and select the installation directory. It's recommended to change the default location to avoid installing in the C drive. -打开终端。 + 5. Continue clicking "Next" to use the default settings until you reach the "Install" button. -输入 sudo apt update 并回车,以更新 Ubuntu 的包索引。 + 6. Click "Install" to start the installation process. -- 步骤 2: 安装 Node.js + 7. Wait for the installation to complete and click "Finish" to exit the installation wizard. -对于 Ubuntu 18.04 及更高版本,Node.js 可以直接从 Ubuntu 的仓库中安装。 -输入 sudo apt install nodejs npm 并回车。 -对于旧版本的 Ubuntu 或需要安装特定版本的 Node.js,你可能需要使用如 NodeSource 这样的第三方仓库。 +- Step 3: Verify Installation + 1. Open the Command Prompt (cmd) by pressing `Win + R`, typing `cmd`, and pressing Enter. + 2. Type `node -v` and press Enter. You should see the installed Node.js version displayed. + 3. Type `npm -v` and press Enter to verify the installed npm version. npm is the package manager that comes bundled with Node.js. -- 步骤 3: 验证安装 +- Step 4: Configure npm Global Path (Optional) + If you want to change the default global installation path for npm, follow these steps: -在终端中,输入 node -v 和 npm -v 来验证 Node.js 和 npm 是否已正确安装。 +1. Open the Command Prompt (cmd) as an administrator. -### 在 macOS 上安装 Node.js +2. Navigate to your Node.js installation directory (e.g., C:\Program Files\nodejs). -#### 下载安装 -- 步骤 1: 访问 Node.js 官网 +3. Create two new folders named node_global and node_cache. -打开浏览器,访问 Node.js 官方网站。 +4. Run the following commands to set the new paths: -- 步骤 2: 下载 Node.js 安装包 + ```bash + npm config set prefix "C:\Program Files\nodejs\node_global" + npm config set cache "C:\Program Files\nodejs\node_cache" + ``` -在首页找到 macOS 对应的安装包(通常是 .pkg 文件),点击下载。 +5. Open the Environment Variables settings in the System Properties. +6. Add `C:\Program Files\nodejs\node_global` to the `PATH` variable under User Variables. +7. Optionally, create a new system variable named `NODE_PATH` and set its value to ` C:\Program Files\nodejs\node_global\node_modules`. -- 步骤 3: 安装 Node.js +## Linux Installation +- Step 1: Update Your System + Before installing Node.js, ensure your Linux system is up-to-date: -找到下载的 .pkg 文件,双击打开。 -跟随安装向导的指示进行安装。 -安装完成后,点击“Close”结束安装。 + ```bash + sudo apt-get update + sudo apt-get upgrade + ``` -- 步骤 4: 验证安装 +- Step 2: Install Dependencies + Node.js requires certain dependencies to function properly: -打开终端。 +```bash +sudo apt-get install build-essential libssl-dev +``` -输入 node -v 和 npm -v 来验证 Node.js 和 npm 是否已正确安装。 +- Step 3: Download and Install Node.js + You can download the Node.js source code or use a package manager like `curl` or `wget` to download a pre-built binary. For simplicity, this guide assumes you're using a package manager. -#### 使用HomeBrew安装 -前提条件:确保你的macOS上已经安装了Homebrew。如果尚未安装,可以通过以下命令进行安装(以终端操作为例): -``` - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -``` -按照提示输入密码以确认安装。安装过程中,可能需要你同意许可协议等。 +1. Navigate to the Node.js download page for package managers. + Follow the instructions for your Linux distribution. For example, on Ubuntu, you can use: -- 打开终端: -在macOS上找到并打开“终端”应用程序。 + ```bash + curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - + sudo apt-get install -y nodejs + ``` -- 使用Homebrew安装Node.js: -在终端中输入以下命令来安装最新版本的Node.js -``` - brew install node -``` -Homebrew会自动下载Node.js的安装包,并处理相关的依赖项和安装过程。你需要等待一段时间,直到安装完成。 + Replace 20.x with the desired version number if you don't want the latest version. -- 验证安装: -安装完成后,你可以通过输入以下命令来验证Node.js是否成功安装: -``` - node -v -``` -如果终端输出了Node.js的版本号,那么表示安装成功。同时,你也可以通过输入npm -v来验证npm(Node.js的包管理器)是否也成功安装。 +- Step 4: Verify Installation + 1. Open a terminal. + 2. Type `node -v` and press Enter to check the Node.js version. + 3. Type `npm -v` and press Enter to verify the npm version. + + +## Installing Node.js on macOS + +Installing Node.js on macOS is a straightforward process that can be accomplished using the official installer from the Node.js website or through package managers like Homebrew. This guide will cover both methods. + +### Method 1: Using the Official Installer +- Visit the Node.js Website + - Open your web browser and navigate to https://nodejs.org/. +- Download the Installer + - Scroll down to the "Downloads" section. + - Click on the "macOS Installer" button to download the .pkg file. Ensure you download the latest version, which as of August 2024, might be v20.x.x or higher. +- Install Node.js + - Once the download is complete, locate the .pkg file in your Downloads folder. + - Double-click the file to start the installation process. + - Follow the on-screen instructions. Typically, you'll need to agree to the license agreement, select an installation location (the default is usually fine), and click "Continue" or "Install" until the installation is complete. +- Verify the Installation + - Open the Terminal application by going to "Finder" > "Applications" > "Utilities" > "Terminal" or using Spotlight Search (press `Cmd + Space` and type "Terminal"). + - Type `node -v` and press Enter. This command should display the installed version of Node.js. + - Type `npm -v` and press Enter to verify that npm, the Node.js package manager, is also installed. + +### Method 2: Using Homebrew +If you prefer to use a package manager, Homebrew is a popular choice for macOS. -完成以上步骤后,你应该能在你的 Windows、Linux 或 macOS 系统上成功安装并运行 Node.js。 +- Install Homebrew (if not already installed) -### 更多 -如需了解更多,可参照:https://nodejs.org/en + - Open the Terminal. -如环境已经准备好,跳转下一步 + - Copy and paste the following command into the Terminal and press Enter: + ```bash + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + ``` -## 安装依赖 -进入前端项目根目录 + - Follow the on-screen instructions to complete the Homebrew installation. + +- Install Node.js with Homebrew + - Once Homebrew is installed, update your package list by running brew update in the Terminal. + - To install Node.js, run the following command in the Terminal: + ```bash + brew install node + ``` + - Homebrew will download and install the latest version of Node.js and npm. +- Verify the Installation + - As with the official installer method, you can verify the installation by typing node -v and npm -v in the Terminal and pressing Enter. + +### Additional Configuration (Optional) +- Configure npm's Global Installation Path (if desired): + - You may want to change the default location where globally installed npm packages are stored. Follow the steps outlined in the Node.js documentation or search for guides online to configure this. +- Switch to a Different Node.js Version (if needed): + - If you need to switch between multiple Node.js versions, consider using a version manager like nvm (Node Version Manager). Follow the instructions on the nvm GitHub page to install and use it. + + +By following these steps, you should be able to successfully install Node.js on your system. Remember to keep your Node.js and npm versions up-to-date to take advantage of the latest features and security updates. + +If your env has been prepared, you can + +# Installation and Setup Instructions + +## Installation ``` npm install ``` -## 启动 +## Start Server ``` npm start ``` -启动成功后,界面将出现可访问的本地url +## Visit Server +``` + http://localhost:8080 +``` + +pay attention to the real port in your terminal.maybe it won`t be 8080. -## 配置 -### 接口请求配置 -- 如您需要配置的服务支持跨域,可至/src/config/cgi.ts中修改请求链接,请求链接为http://ip:port/path; -- 如您需要配置的服务不支持跨域,可至vite.config.ts中配置proxy,示例如下: +# Config +## How to modify the request URL + +- Open the file `vite.config.ts`, modify the target like: ``` server: { port: 8080, proxy: { "/solve": { - target: "https://example.com", + target: "{HOST}:{PORT}", changeOrigin: true, } } } - ``` - -## 知悉 -- 前端服务基于react开发,如需了解react相关知识,可参考:https://react.dev/ + ``` \ No newline at end of file diff --git a/frontend/React/README_zh-CN.md b/frontend/React/README_zh-CN.md new file mode 100644 index 0000000000000000000000000000000000000000..1ec1810c880400ee130a592d5dc8da854b71d3b8 --- /dev/null +++ b/frontend/React/README_zh-CN.md @@ -0,0 +1,135 @@ +# Notice +问题回答过程中离开页面后再回到页面,会导致sse重连! +# 开始 +## 请使用大于18.0.0的node版本 +## 准备node.js开发环境 +Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境,允许你在服务器端运行 JavaScript。以下是在 Windows、Linux 和 macOS 上安装 Node.js 的详细步骤。 + +### 在 Windows 上安装 Node.js +- 步骤 1: 访问 Node.js 官网 + +打开浏览器,访问 [Node.js](https://nodejs.org/zh-cn/download/prebuilt-installer) 官方网站。 + +- 步骤 2: 下载 Node.js 安装包 + +选择你需要的nodejs版本,设备的类型,点击下载,示例如下图: +![windows install](./windows-.png) + +- 步骤 3: 安装 Node.js + +双击下载的安装包开始安装。 + +跟随安装向导的指示进行安装。在安装过程中,你可以选择安装位置、是否将 Node.js 添加到系统 PATH 环境变量等选项。推荐选择“添加到 PATH”以便在任何地方都能通过命令行访问 Node.js。 +安装完成后,点击“Finish”结束安装。 + +- 步骤 4: 验证安装 + +打开命令提示符(CMD)或 PowerShell。 +输入 node -v 并回车,如果系统返回了 Node.js 的版本号,说明安装成功。 +接着,输入 npm -v 并回车,npm 是 Node.js 的包管理器,如果返回了版本号,表示 npm 也已正确安装。 + +### 在 Linux 上安装 Node.js +注意: 由于 Linux 发行版众多,以下以 Ubuntu 为例说明,其他发行版(如 CentOS、Debian 等)的安装方式可能略有不同,可自行查询对应的安装办法。 + +- 步骤 1: 更新你的包管理器 + +打开终端。 + +输入 sudo apt update 并回车,以更新 Ubuntu 的包索引。 + +- 步骤 2: 安装 Node.js + +对于 Ubuntu 18.04 及更高版本,Node.js 可以直接从 Ubuntu 的仓库中安装。 +输入 sudo apt install nodejs npm 并回车。 +对于旧版本的 Ubuntu 或需要安装特定版本的 Node.js,你可能需要使用如 NodeSource 这样的第三方仓库。 + +- 步骤 3: 验证安装 + +在终端中,输入 node -v 和 npm -v 来验证 Node.js 和 npm 是否已正确安装。 + +### 在 macOS 上安装 Node.js + +#### 下载安装 +- 步骤 1: 访问 Node.js 官网 + +打开浏览器,访问 Node.js 官方网站。 + +- 步骤 2: 下载 Node.js 安装包 + +在首页找到 macOS 对应的安装包(通常是 .pkg 文件),点击下载。 + +- 步骤 3: 安装 Node.js + +找到下载的 .pkg 文件,双击打开。 +跟随安装向导的指示进行安装。 +安装完成后,点击“Close”结束安装。 + +- 步骤 4: 验证安装 + +打开终端。 + +输入 node -v 和 npm -v 来验证 Node.js 和 npm 是否已正确安装。 + +#### 使用HomeBrew安装 +前提条件:确保你的macOS上已经安装了Homebrew。如果尚未安装,可以通过以下命令进行安装(以终端操作为例): +``` + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` +按照提示输入密码以确认安装。安装过程中,可能需要你同意许可协议等。 + +- 打开终端: +在macOS上找到并打开“终端”应用程序。 + +- 使用Homebrew安装Node.js: +在终端中输入以下命令来安装最新版本的Node.js +``` + brew install node +``` +Homebrew会自动下载Node.js的安装包,并处理相关的依赖项和安装过程。你需要等待一段时间,直到安装完成。 + +- 验证安装: +安装完成后,你可以通过输入以下命令来验证Node.js是否成功安装: +``` + node -v +``` +如果终端输出了Node.js的版本号,那么表示安装成功。同时,你也可以通过输入npm -v来验证npm(Node.js的包管理器)是否也成功安装。 + +完成以上步骤后,你应该能在你的 Windows、Linux 或 macOS 系统上成功安装并运行 Node.js。 + +### 更多 +如需了解更多,可参照:https://nodejs.org/en + +如环境已经准备好,跳转下一步 + +## 安装依赖 +进入前端项目根目录 +``` + npm install +``` + +## 启动 +``` + npm start +``` + +启动成功后,界面将出现可访问的本地url + +## 配置 +### 接口请求配置 + +- 在vite.config.ts中配置proxy,示例如下: + + ``` + server: { + port: 8080, + proxy: { + "/solve": { + target: "{HOST}:{PORT}", + changeOrigin: true, + } + } + } + ``` + +## 知悉 +- 前端服务基于react开发,如需了解react相关知识,可参考:https://react.dev/ \ No newline at end of file diff --git a/frontend/React/package.json b/frontend/React/package.json index 2b00425b2e0c1d50cba6199593b7e73c0fdca409..65480fe15ff91ff616e36063f1a51490a56b215a 100644 --- a/frontend/React/package.json +++ b/frontend/React/package.json @@ -5,7 +5,13 @@ "type": "module", "scripts": { "start": "vite --host --mode dev", + "start:dev": "vite --host --mode dev", + "start:staging": "vite --host --mode staging", + "start:prod": "vite --host --mode production", "build": "tsc && vite build", + "build:dev": "tsc && vite build --mode dev", + "build:staging": "tsc && vite build --mode staging", + "build:prod": "tsc && vite build --mode production", "preview": "vite preview", "prettier": "prettier --write ." }, diff --git a/frontend/React/src/App.module.less b/frontend/React/src/App.module.less index d23de93256fe9be9df1e78daec57339f9e23dbd6..3ba67bf84a5028ce11cf91daf58c273ffb14ab45 100644 --- a/frontend/React/src/App.module.less +++ b/frontend/React/src/App.module.less @@ -8,12 +8,10 @@ } .content { - padding-top: 64px; + padding: 64px 0 16px 0; width: 100%; height: 100%; box-sizing: border-box; - // display: flex; - // justify-content: center; } .header { @@ -51,4 +49,4 @@ display: flex; align-items: center; } -} +} \ No newline at end of file diff --git a/frontend/React/src/App.tsx b/frontend/React/src/App.tsx index 62cc6d4f65c028c7e6a5f2808e51d451475fafbc..990ae735cc6b1255913cf3325b8ec30c9c44c241 100644 --- a/frontend/React/src/App.tsx +++ b/frontend/React/src/App.tsx @@ -1,7 +1,8 @@ import style from "./App.module.less"; -import Logo from "@/assets/logo.svg"; + import { BrowserRouter } from "react-router-dom"; import RouterRoutes from "@/routes/routes"; +import Logo from "@/assets/logo.svg"; function App() { return ( @@ -12,6 +13,7 @@ function App() { +
diff --git a/frontend/React/src/assets/background.png b/frontend/React/src/assets/background.png index 3c732cb6bbf084415e5cc309934a144e9bc6b5eb..4c5825019d315ddbb21096506f6c507cbc8cbcdd 100644 Binary files a/frontend/React/src/assets/background.png and b/frontend/React/src/assets/background.png differ diff --git a/frontend/React/src/assets/show-right-icon.png b/frontend/React/src/assets/show-right-icon.png index e10f112d27c422825730433607aa7a195607c5c4..c92bb37cd5185e216585ac8ec5ff2b5ff6066ef9 100644 Binary files a/frontend/React/src/assets/show-right-icon.png and b/frontend/React/src/assets/show-right-icon.png differ diff --git a/frontend/React/src/components/iconfont/index.tsx b/frontend/React/src/components/iconfont/index.tsx deleted file mode 100644 index f7b2a034284f32bb5cc187353df585569dc49d99..0000000000000000000000000000000000000000 --- a/frontend/React/src/components/iconfont/index.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import { createFromIconfontCN } from "@ant-design/icons"; - -const IconFont = createFromIconfontCN({ - scriptUrl: "//at.alicdn.com/t/c/font_3858115_p8dw9q83s0h.js" -}); - -export default IconFont; diff --git a/frontend/React/src/config/cgi.ts b/frontend/React/src/config/cgi.ts deleted file mode 100644 index fe7ba7f1b03ef91172dca325e65b817f802ed601..0000000000000000000000000000000000000000 --- a/frontend/React/src/config/cgi.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const mode = import.meta.env.MODE; -export const GET_SSE_DATA = '/solve'; diff --git a/frontend/React/src/global.d.ts b/frontend/React/src/global.d.ts index aadc7d3943065c532b5527eb8bb89f6d8fb83a9a..8bb1c8044274233c5326da8dc026430a3a75d71e 100644 --- a/frontend/React/src/global.d.ts +++ b/frontend/React/src/global.d.ts @@ -1 +1 @@ -declare module 'event-source-polyfill'; +declare module 'event-source-polyfill'; \ No newline at end of file diff --git a/frontend/React/src/index.less b/frontend/React/src/index.less index a0714ec8927ccfb3d9ee3f3f29b168f367d07442..f48ba612b38d44c2d54eeef18fc78a8991717fde 100644 --- a/frontend/React/src/index.less +++ b/frontend/React/src/index.less @@ -59,4 +59,4 @@ li> :nth-last-child(1).f { line-height: 14px; position: relative; top: -2px; -} +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/assets/bookmark-icon.svg b/frontend/React/src/pages/mindsearch/assets/bookmark-icon.svg new file mode 100644 index 0000000000000000000000000000000000000000..f5d688881764b81718b4877f9d4c62d0755c1478 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/bookmark-icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/React/src/pages/mindsearch/assets/empty-chat-right.svg b/frontend/React/src/pages/mindsearch/assets/empty-chat-right.svg new file mode 100644 index 0000000000000000000000000000000000000000..6057c0cba0e2e3c6d7a52c07c40ed17fccf8c04f --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/empty-chat-right.svg @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/React/src/pages/mindsearch/assets/fold-icon.svg b/frontend/React/src/pages/mindsearch/assets/fold-icon.svg new file mode 100644 index 0000000000000000000000000000000000000000..4268b8d691be4d6c719538d15e4734ad6b436e52 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/fold-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/React/src/pages/mindsearch/assets/logo.svg b/frontend/React/src/pages/mindsearch/assets/logo.svg new file mode 100644 index 0000000000000000000000000000000000000000..45c8f0acce7996c928cae1871f6f50b9b25ee9b2 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/logo.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/React/src/pages/mindsearch/assets/logo1.svg b/frontend/React/src/pages/mindsearch/assets/logo1.svg new file mode 100644 index 0000000000000000000000000000000000000000..535164348c0575893ab293d056d5886b7923806c --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/logo1.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/React/src/pages/mindsearch/assets/mindsearch-avatar.svg b/frontend/React/src/pages/mindsearch/assets/mindsearch-avatar.svg new file mode 100644 index 0000000000000000000000000000000000000000..1c6eb040085866c182951d7c7357c9a4056c193e --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/mindsearch-avatar.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/frontend/React/src/pages/mindsearch/assets/pack-up-disabled.svg b/frontend/React/src/pages/mindsearch/assets/pack-up-disabled.svg new file mode 100644 index 0000000000000000000000000000000000000000..d1620eeab66d3bf53b3db0f831c596f54d2520e8 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/pack-up-disabled.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/React/src/pages/mindsearch/assets/pack-up.svg b/frontend/React/src/pages/mindsearch/assets/pack-up.svg new file mode 100644 index 0000000000000000000000000000000000000000..c76af2075d645cdf2f27cb8a1fc0cab1ed718b9f --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/pack-up.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/dist/assets/sendIcon-79e92e84.svg b/frontend/React/src/pages/mindsearch/assets/sendIcon.svg similarity index 100% rename from dist/assets/sendIcon-79e92e84.svg rename to frontend/React/src/pages/mindsearch/assets/sendIcon.svg diff --git a/frontend/React/src/pages/mindsearch/assets/think-progress-icon.svg b/frontend/React/src/pages/mindsearch/assets/think-progress-icon.svg new file mode 100644 index 0000000000000000000000000000000000000000..73ebf9b4eca3794448c323a6368ad0541c2d717c --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/think-progress-icon.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/frontend/React/src/pages/mindsearch/assets/unflod-icon.svg b/frontend/React/src/pages/mindsearch/assets/unflod-icon.svg new file mode 100644 index 0000000000000000000000000000000000000000..55428281c7aca88f2e7139385cc3321bf6fb4cc5 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/assets/unflod-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/React/src/pages/mindsearch/components/answer/index.module.less b/frontend/React/src/pages/mindsearch/components/answer/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..a4df3ba89163aa6069af2cedc13df69dc17b8a37 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/answer/index.module.less @@ -0,0 +1,110 @@ +.answer { + display: flex; + justify-content: flex-start; + align-items: flex-start; + width: 100%; + + .avatar { + width: 32px; + height: 32px; + margin-right: 16px; + border-radius: 50%; + flex-shrink: 0; + + img { + width: 100%; + } + } + + .reaponseAarea { + display: flex; + flex-direction: column; + width: calc(100% - 48px); + background-color: #F4F5F9; + padding: 12px 16px; + border-radius: 16px; + overflow-x: hidden; + } + + .inner { + width: 100%; + overflow-x: hidden; + background-color: #fff; + border-radius: 16px; + border: 1px solid var(----line-2, #EBECF0); + box-sizing: border-box; + transition: all 0.5s ease; + margin-bottom: 16px; + position: relative; + } + + .graphIcon { + padding: 2px 8px; + display: flex; + justify-content: center; + align-items: center; + border-radius: 8px; + border: 1px solid var(----line-2, #EBECF0); + background: var(---fill-0, #FFF); + color: #121316CC; + font-size: 14px; + line-height: 24px; + cursor: pointer; + + svg { + margin-left: 4px; + } + + &:hover { + background-color: #D7D8DD; + color: #121316CC; + + svg path { + fill: #121316CC; + } + } + } + + .showGraph { + width: 118px; + margin-bottom: 16px; + border-radius: 8px; + border: 1px solid var(----line-2, #EBECF0); + background: var(---fill-0, #FFF); + } + + .closeGraph { + position: absolute; + right: 12px; + bottom: 12px; + } + + .reaponse { + color: #121316; + font-size: 14px; + line-height: 24px; + padding: 18px 42px; + } + + // h3 { + // font-size: 24px; + // font-weight: 600; + // line-height: 36px; + // margin: 0 0 16px 0; + // } + + // h4 { + // font-size: 20px; + // font-weight: 600; + // line-height: 30px; + // margin: 0 0 8px 0; + // } +} + +.draft { + width: 100%; + white-space: wrap; + display: flex; + justify-content: flex-start; + align-items: flex-start; +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/answer/index.tsx b/frontend/React/src/pages/mindsearch/components/answer/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..131216a40fa4ec0f2df8b1ea420be5649ae58841 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/answer/index.tsx @@ -0,0 +1,108 @@ +import styles from './index.module.less'; +import MindMapGraph from '../mind-map'; +import { MindsearchContext } from '../../provider/context'; +import MindSearchAvatar from '../../assets/mindsearch-avatar.svg'; +import CustomMarkdown from '../custom-markdown'; +import { useState, useEffect, useContext } from 'react'; +import classNames from 'classnames'; + +interface IProps { + adjList: any; + isEnd: boolean; + response: string; + refList: any; + listId: number; + question: string; + handleNodeClick: (info: any, idx: number) => void; +} + +const Answer = ({ refList = null, adjList, isEnd, response = '', listId, handleNodeClick, question = '' }: IProps) => { + const { chatIsOver } = useContext(MindsearchContext); + const [showGraph, setShowGraph] = useState(true); + // 整体的渲染树 + const [renderData, setRenderData] = useState([]); + + const toggleGraph = () => { + setShowGraph(!showGraph); + }; + + const handleClick = (node: string) => { + handleNodeClick(node, listId); + }; + + const generateMapData = (arr: []) => { + const tempArr: any[] = arr.map((item: { name: string; id: number; state: number }) => { + if (item.name && adjList[item.name]) { + return { + ...item, + children: generateMapData(adjList?.[item.name]), + }; + } + }); + return tempArr; + }; + + const convertTreeData = () => { + const root: any = { + id: 0, + name: '原始问题', + state: 3, + children: generateMapData(adjList?.root || []), + }; + + // 返回包含根节点的数组 + // console.log('renderData-----------', [root]); + setRenderData([root]); + }; + + useEffect(() => { + if (!adjList || Object.keys(adjList)?.length < 2) { + setRenderData([]); + return; + }; + convertTreeData(); + }, [adjList]); + + return
+
+ mindsearch-avatar +
+
+ { + showGraph ? <> + { + (renderData?.length > 0) &&
+ +
+ 收起 + + + +
+
+ } + + :
+ 查看思考节点 + + + +
+ } + + {response && ( +
+ +
+ )} +
+
+}; + +export default Answer; diff --git a/frontend/React/src/pages/mindsearch/components/answer/loading-animation/index.module.less b/frontend/React/src/pages/mindsearch/components/answer/loading-animation/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..6ecaa90255716915f706ea4cc1425eff09000e99 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/answer/loading-animation/index.module.less @@ -0,0 +1,47 @@ +.loading, +.loading > div { + position: relative; + box-sizing: border-box; +} + +.loading { + display: flex; + justify-content: center; + align-items: center; + font-size: 0; + color: #fff; + background-color: #f90; + width: 20px; + height: 20px; + border-radius: 50%; + margin-right: 3px; + flex-shrink: 0; + margin-top: 4px; +} + +.loading > div { + display: inline-block; + float: none; + background-color: currentColor; + border: 0 solid currentColor; +} + +.loading > div:nth-child(1) { + animation-delay: -200ms; +} + +.loading > div:nth-child(2) { + animation-delay: -100ms; +} + +.loading > div:nth-child(3) { + animation-delay: 0ms; +} + +.loading > div { + width: 3px; + height: 3px; + margin: 2px 1px; + border-radius: 100%; + animation: ball-pulse 1s ease infinite; +} diff --git a/frontend/React/src/pages/mindsearch/components/answer/loading-animation/index.tsx b/frontend/React/src/pages/mindsearch/components/answer/loading-animation/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..a470734932cb3bc46d839320695df63dd1a73b4b --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/answer/loading-animation/index.tsx @@ -0,0 +1,13 @@ +import styles from './index.module.less'; + +const LoadingAnimation = () => { + return ( +
+
+
+
+
+ ); +}; + +export default LoadingAnimation; diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/components/empty-placeholder/index.module.less b/frontend/React/src/pages/mindsearch/components/chat-right/components/empty-placeholder/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..7abee9a1f1a02a4de70fcfcf3a0473cf41cdbbcc --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/components/empty-placeholder/index.module.less @@ -0,0 +1,27 @@ +.emptyDiv { + width: 280px; + height: 100%; + margin: auto; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + + .pic { + margin-bottom: 8px; + } + + p { + color: var(--80-text-4, rgba(18, 19, 22, 0.80)); + text-align: center; + font-feature-settings: 'liga' off, 'clig' off; + + /* 段落正文/常规text-1-paragraph-regular */ + font-family: "PingFang SC"; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 24px; + /* 171.429% */ + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/components/empty-placeholder/index.tsx b/frontend/React/src/pages/mindsearch/components/chat-right/components/empty-placeholder/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..b7b20386dc27ebf761d90e537f1d619982d34609 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/components/empty-placeholder/index.tsx @@ -0,0 +1,17 @@ +import styles from './index.module.less'; +import EmptyRightChatImg from '../../../../assets/empty-chat-right.svg'; + +const EmptyPlaceHolder = () => { + return <> +
+
+ +
+

+ 请在节点图中选择节点后查看哦~ +

+
+ +}; + +export default EmptyPlaceHolder; \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/components/query-item/index.module.less b/frontend/React/src/pages/mindsearch/components/chat-right/components/query-item/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..02b8bdee68122748fa0e2916e260c66b7048688e --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/components/query-item/index.module.less @@ -0,0 +1,30 @@ +.query { + &-Item { + display: inline-flex; + padding: 6px 12px 6px 0; + margin-right: 12px; + margin-bottom: 8px; + color: rgba(18, 19, 22, 0.8); + font-size: 14px; + line-height: 24px; + box-sizing: border-box; + overflow: hidden; + position: relative; + + &:last-child { + &::after { + display: none; + } + } + + &::after { + position: absolute; + right: 0; + top: 10px; + width: 1px; + height: 16px; + border-right: 1px solid #ebecf0; + content: ''; + } + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/components/query-item/index.tsx b/frontend/React/src/pages/mindsearch/components/chat-right/components/query-item/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..5a6888f668645f020606eb6a3f21c5d9c9a93284 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/components/query-item/index.tsx @@ -0,0 +1,11 @@ +import classNames from 'classnames'; +import styles from './index.module.less'; + +interface IQueryItemProps { + item: string; +} +const QueryItem = ({ item }: IQueryItemProps) => { + return
{item}
; +}; + +export default QueryItem; diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/components/search-item/index.module.less b/frontend/React/src/pages/mindsearch/components/chat-right/components/search-item/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..43383e8c6794d093dd3d5e619f992b4bc426d681 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/components/search-item/index.module.less @@ -0,0 +1,101 @@ +.searchItem { + border-radius: 12px; + margin-bottom: 4px; + padding: 8px; + transition: all 0.5s ease-in-out; + display: flex; + justify-content: flex-start; + align-items: flex-start; + cursor: pointer; + + .inner { + width: 100%; + overflow: hidden; + } + + &:hover { + background-color: #ebecf0; + } + + .num { + color: var(--60-text-3, rgba(18, 19, 22, 0.6)); + font-size: 12px; + font-weight: 600; + line-height: 18px; + margin-right: 7px; + } + + p { + white-space: wrap; + max-width: 95%; + overflow: hidden; + text-overflow: ellipsis; + margin: 0 !important; + } + + // .origin { + // display: flex; + // justify-content: flex-start; + // align-items: center; + // margin-bottom: 2px; + + // .icon { + // width: 16px; + // height: 16px; + // border-radius: 4px; + // background-color: #6f7f9b; + // margin-right: 2px; + // } + + // span { + // color: var(--60-text-3, rgba(18, 19, 22, 0.60)); + // font-size: 12px; + // font-weight: 400; + // line-height: 18px; + // } + // } + + p.title { + overflow: hidden; + color: var(---Brand1-5, #3477eb); + text-overflow: ellipsis; + font-size: 14px; + line-height: 24px; + margin-bottom: 2px; + font-weight: normal; + + a { + text-decoration: none; + color: var(---Brand1-5, #3477eb); + font-weight: normal; + } + } + + p.url { + color: var(--60-text-3, rgba(18, 19, 22, 0.6)); + font-size: 12px; + line-height: 18px; + height: 18px; + overflow: hidden; + } + + p.summ { + color: rgba(18, 19, 22, 0.8); + font-size: 13px; + line-height: 20px; + white-space: wrap; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; + } + + &.highLight { + background: var(--brand-11, #e6f2ff); + + &:hover { + background-color: #b3d6ff; + } + } +} diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/components/search-item/index.tsx b/frontend/React/src/pages/mindsearch/components/chat-right/components/search-item/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..aa215dc67c2feeccd60d6ca29f58f6bed0119dae --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/components/search-item/index.tsx @@ -0,0 +1,30 @@ +import classNames from 'classnames'; +import styles from './index.module.less'; + +interface ISearchItemProps { + item: any; +} + +const SearchItem = ({ item }: ISearchItemProps) => { + const openLink = (url: string) => { + window.open(url); + }; + return ( +
{ + openLink(item.url); + }} + > +
{item.id}
+
+

{item?.url}

+

{item?.title}

+

{item?.summ}

+
+
+ ); +}; + +export default SearchItem; diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/index.module.less b/frontend/React/src/pages/mindsearch/components/chat-right/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..d0fd3448f90c405b0bb7b2760e8749cc28265370 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/index.module.less @@ -0,0 +1,231 @@ +.rightContent { + width: 44.44%; + max-width: 800px; + flex-shrink: 0; + box-sizing: border-box; + padding: 24px 0 24px 24px; + border-radius: 16px; + border: 1px solid var(----line-2, #ebecf0); + background: var(---fill-0, #fff); + height: 100%; + overflow: hidden; + position: relative; + display: flex; + justify-content: flex-start; + flex-direction: column; + + .toggleIcon { + position: absolute; + right: 24px; + top: 28px; + cursor: pointer; + } + + .titleNode { + color: #121316; + font-size: 24px; + font-weight: 600; + line-height: 30px; + margin-bottom: 32px; + max-width: calc(100% - 40px); + } + + .nodeInfo { + height: 100%; + overflow-y: auto; + padding-right: 24px; + + &.forbidScroll { + overflow-y: hidden; + } + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + &::-webkit-scrollbar-thumb { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + } + + .conclusion { + padding-top: 8px; + color: #121316; + font-size: 14px; + line-height: 24px; + + ul { + padding-left: 24px; + } + } + + .steps { + .title { + color: var(--100-text-5, #121316); + font-size: 20px; + font-weight: 600; + line-height: 30px; + display: flex; + justify-content: flex-start; + align-items: center; + position: relative; + + .open { + position: absolute; + right: 0; + font-size: 20px; + font-weight: normal; + cursor: pointer; + + span { + color: #121316; + // opacity: 0.6; + } + } + + i { + width: 12px; + height: 12px; + border-radius: 50%; + background-color: #3477EB; + margin-right: 12px; + } + } + + &.thinking, + &.select { + margin-bottom: 24px; + } + + &.select { + .searchList { + margin-top: 0 !important; + border-radius: 8px; + background: var(--fill-2, #f4f5f9); + padding: 8px; + } + } + + .con { + margin-left: 5px; + padding-top: 12px; + padding-left: 15px; + margin-bottom: 24px; + border-left: 1px solid #D7D8DD; + height: auto; + + &.limitHeight { + max-height: calc(100vh - 320px); + overflow-y: auto; + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + &::-webkit-scrollbar-thumb { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + } + + .draft { + margin-bottom: 20px; + } + + p { + margin: 0; + line-height: 24px; + } + + &.collapsed { + overflow: hidden; + height: 0; + padding-top: 24px; + margin-bottom: 0 !important; + + // transition: all 1s; + + } + } + + &:last-child { + .collapsed { + padding-top: 0; + } + } + } + + .query, + >.searchList { + margin-top: 24px; + margin-bottom: 24px; + } + + .subTitle { + color: var(--100-text-5, #121316); + font-size: 14px; + font-weight: 600; + line-height: 24px; + margin-bottom: 12px; + + span { + margin-right: 4px; + } + } + + .searchList { + margin-top: 0 !important; + border-radius: 16px; + background: var(--fill-2, #f4f5f9); + padding: 8px; + } + + .searchList { + .thought { + color: rgba(18, 19, 22, 0.8); + font-size: 14px; + line-height: 24px; + margin-bottom: 16px; + } + + .scrollCon { + padding-right: 6px; + height: auto; + max-height: 542px; + overflow-y: auto; + position: relative; + } + + .scrollCon::-webkit-scrollbar { + width: 6px; + } + + .scrollCon::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + .scrollCon::-webkit-scrollbar-thumb { + background-color: #ebecf0; + border-radius: 20px; + } + + .inner { + width: 100%; + border-radius: 8px; + transition: all 0.5s ease; + box-sizing: border-box; + } + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/chat-right/index.tsx b/frontend/React/src/pages/mindsearch/components/chat-right/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..7ba9fc21e8955735925bbb4653a56fd9a48d1487 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/chat-right/index.tsx @@ -0,0 +1,272 @@ +import { useEffect, useState, useRef } from 'react'; +import styles from './index.module.less'; +import classNames from 'classnames'; +import CustomMarkdown from '../custom-markdown'; +import IconFont from '../iconfont'; +import PackIcon from '../../assets/pack-up.svg'; +import PackDisableIcon from '../../assets/pack-up-disabled.svg'; +import { Tooltip } from 'antd'; +import QueryItem from './components/query-item'; +import SearchItem from './components/search-item'; +import Loading from '../loading'; +import EmptyPlaceHolder from './components/empty-placeholder'; + +interface IProps { + nodeInfo: any; + stashInfo?: any; + historyNode?: any; + toggleRight: () => void; + chatIsOver?: Boolean; +} + +const ChatRight = ({ nodeInfo, historyNode = null, toggleRight, chatIsOver = false }: IProps) => { + const [subQuestion, setSubQuestion] = useState(''); + const [queries, setQuries] = useState([]); + const [searchList, setSearchList] = useState([]); + const [conclusionRef, setConclusionRef] = useState(null); + const [isLoading, setIsLoading] = useState(false); + const [selectedIds, setSelectedIds] = useState([]); + const [currentStep, setCurrentStep] = useState(0); + const [conclusion, setConclusion] = useState(''); + const [thinkingData, setThinking] = useState(null); + const [readingData, setReading] = useState(null); + const [isOutputing, setIsOutputing] = useState(false); + + // steps展开收起的信息 + const [collapseInfo, setCollapseInfo] = useState([true, true, true]); + const [currentNode, setCurrentNode] = useState(); + // 展开收起 + const toggleCard = (index: number) => { + const arr = [...collapseInfo]; + arr[index] = !arr[index]; + setCollapseInfo(arr); + }; + // 高亮searchList + const highLightSearchList = (ids: any) => { + setCurrentStep(2); + const highlightArr: any = [...searchList]; + highlightArr.forEach((item: any) => { + if (ids.includes(Number(item.id))) { + item.highLight = true; + } + }); + highlightArr.sort((item1: any, item2: any) => { + if (item1.highLight === item2.highLight) { + return 0; + } + // 如果item1是highlight,放在前面 + if (item1.highLight) { + return -1; + } + // 如果item2是highlight,放在后面 + return 1; + }); + setSearchList(highlightArr); + setCollapseInfo([false, false, true]); + }; + + const handleReceiveHistory = () => { + setCurrentNode(2); + setCollapseInfo([false, false, true]); + setIsLoading(false); + setThinking(historyNode.thinkingData); + setConclusion(historyNode.conclusion); + setReading(historyNode.readingData); + setQuries(historyNode.queries); + setSearchList(historyNode.searchList); + setConclusionRef(historyNode.conclusionRef); + setSelectedIds(historyNode.selectedIds); + setSubQuestion(historyNode.subQuestion); + }; + + const resetStatus = () => { + // 初始化组件状态 + console.log('reset status-------'); + setCurrentStep(0); + setCollapseInfo([true, true, true]); + setSelectedIds([]); + setSearchList([]); + setConclusionRef(null); + setThinking(null); + setReading(null); + setConclusion(''); + setSubQuestion(''); + }; + + const hideRight = () => { + if (isOutputing) return; + toggleRight(); + }; + + useEffect(() => { + if (!historyNode) return; + handleReceiveHistory(); + }, [historyNode]); + + useEffect(() => { + if (!selectedIds.length) return; + highLightSearchList(selectedIds); + }, [selectedIds]); + + useEffect(() => { + if (historyNode) return; // 有历史记录,不处理 + try { + if (nodeInfo?.current_node !== currentNode) { + setCurrentNode(nodeInfo?.current_node); + resetStatus(); + } + setIsOutputing(nodeInfo?.outputing); + if (!subQuestion && nodeInfo?.subQuestion) { + setSubQuestion(nodeInfo.subQuestion); + } + if (nodeInfo?.thinkingData) { + setThinking(nodeInfo.thinkingData); + } + if (nodeInfo?.readingData) { + setReading(nodeInfo.readingData); + } + if (nodeInfo?.queries?.length) { + setQuries(nodeInfo.queries); + } + if (nodeInfo?.searchList && !searchList?.length) { + setSearchList(nodeInfo.searchList); + setCurrentStep(1); + setCollapseInfo([false, true, true]); + } + if (nodeInfo?.selectedIds && !selectedIds?.length) { + setSelectedIds(nodeInfo.selectedIds); + } + if (nodeInfo?.conclusion) { + setConclusion(nodeInfo.conclusion); + } + if (nodeInfo?.conclusionRef) { + setConclusionRef(nodeInfo.conclusionRef); + } + } catch (err) { + console.log('[chat right]--error from nodeinfo---', err); + } + }, [nodeInfo, currentStep]); + + return
+
+ +
+ { + currentNode ? <> +
{subQuestion}
+
+ {thinkingData && ( +
+
+ 思考 +
{ + toggleCard(0); + }} + > + +
+
+
+
+ +
+ {queries.length > 0 && ( +
+
+ + 搜索关键词 +
+ {queries.map((item: string, index: number) => ( + + ))} +
+ )} + {searchList.length > 0 && currentStep === 0 && ( +
+
+ + 信息来源 +
+
5 ? { height: '542px' } : {}}> +
5 ? {} : {}}> + {searchList.map((item: any) => ( + + ))} +
+
+
+ )} +
+
+ )} + {currentStep > 0 && readingData && ( +
+
+ 信息来源 +
{ + toggleCard(1); + }} + > + +
+
+
+
+ +
+ {searchList.length > 0 && ( +
+
5 ? { height: '542px' } : {}}> +
5 ? {} : {}}> + {searchList.map((item: any) => ( + + ))} +
+
+
+ )} +
+
+ )} + { + conclusion && ( +
+
+ 信息整合 +
{ + toggleCard(2); + }} + > + +
+
+
+
+ +
+
+
+ )} + {isLoading && } +
: + } +
+}; + +export default ChatRight; diff --git a/frontend/React/src/pages/mindsearch/components/custom-markdown/index.module.less b/frontend/React/src/pages/mindsearch/components/custom-markdown/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..2cb64242d3631235a42d807ea7a82239a0886e40 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/custom-markdown/index.module.less @@ -0,0 +1,168 @@ +.markdownCon { + display: flex; + flex-direction: column; + justify-content: flex-start; + + h1 { + font-size: 26px; + } + + h2 { + font-size: 24px; + } + + h3 { + font-size: 20px; + } + + h4 { + font-size: 18px; + } + + h5, + h6 { + font-size: 16px; + } + + p { + color: rgba(18, 19, 22, 0.8); + font-size: 16px; + font-weight: 400; + line-height: 28px; + margin: 0 0 16px 0; + } + + ul { + margin-bottom: 8px; + padding-left: 22px; + } + + li { + color: rgba(18, 19, 22, 0.8); + font-size: 16px; + font-weight: 400; + line-height: 28px; + + p { + margin-bottom: 4px; + } + } + + >p:last-child { + margin-bottom: 0; + } +} + +.footerFlag { + width: 18px; + height: 18px; + display: inline-flex; + justify-content: center; + align-items: center; + border-radius: 4px; + background: var(--fill-2, #f4f5f9); + color: var(--35-text-2, rgba(18, 19, 22, 0.35)); + font-size: 12px; + font-weight: 600; + margin-left: 2px; + cursor: pointer; + font-style: normal; + + /* 150% */ + &:hover { + background: var(---Brand1-5, #3477eb); + color: #fff; + + svg path { + fill: #fff; + fill-opacity: 1; + } + } +} + +// .mergeQuoLi { +// margin-bottom: 12px; +// } + +li { + cursor: pointer; + + .url { + color: var(--60-text-3, rgba(18, 19, 22, 0.6)); + font-size: 12px; + font-weight: 400; + line-height: 18px; + max-width: 100%; + height: 18px; + overflow: hidden; + text-overflow: ellipsis; + } + + .title { + color: var(---Brand1-5, #3477eb); + font-size: 14px; + line-height: 21px; + } + + .summ { + white-space: wrap; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; + } +} + +.line { + margin: 4px 8px; + border: 1px solid #ebecf0; + transform: scaleY(0.5); +} + +:global { + .iQuoPopover { + max-width: 420px; + } + + .mergeQuoPopover { + border-radius: 12px; + border: 1px solid var(----line-2, #ebecf0); + background: var(---fill-0, #fff); + box-shadow: 1px 3px 8px 0px rgba(0, 0, 0, 0.06); + max-height: 240px; + max-width: 420px; + overflow-y: auto; + + .ant-popover-inner { + padding: 8px !important; + } + + .ant-popover-inner-content .line:last-child { + display: none; + } + + li { + border-radius: 8px; + padding: 8px; + + &:hover { + background-color: #f4f5f9; + } + } + } + + .mergeQuoPopover::-webkit-scrollbar { + width: 6px; + } + + .mergeQuoPopover::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + .mergeQuoPopover::-webkit-scrollbar-thumb { + background-color: #ebecf0; + border-radius: 20px; + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/custom-markdown/index.tsx b/frontend/React/src/pages/mindsearch/components/custom-markdown/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..7a94dacbf814b25f3b5387a9e7a4a9b663868e45 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/custom-markdown/index.tsx @@ -0,0 +1,116 @@ +import ReactMarkdown from 'react-markdown'; +import rehypeRaw from 'rehype-raw'; +import { replaceStr, mergeReplaceToDiv } from '../../utils/tools'; +import { Popover } from 'antd'; +import classNames from 'classnames'; +import styles from './index.module.less'; +import { useEffect } from 'react'; + +interface IMarkdownProps { + source: string; + refList?: any; + quoType?: string; + chatIsOver?: boolean; +} + +const CustomMarkdown = ({ source, refList = null, quoType = 'single', chatIsOver = false }: IMarkdownProps) => { + const linkToExtend = (url: string) => { + window.open(url); + }; + + const CustomI = ({ children, className, ...props }: any) => { + const content = refList + ? Object.keys(refList).map((item) => { + if (Number(item) === Number(children)) { + return ( +
  • { + linkToExtend(refList[item].url); + }} + > +
    {refList[item].url}
    +
    {refList[item].title}
    +
    {refList[item].summ}
    +
  • + ); + } else { + return null; + } + }) + : null; + return className.includes('custom') ? ( + + {children} + + ) : ( + {children} + ); + }; + + const CustomDiv = ({ children, className, ...props }: any) => { + const list = props['data-ids'].split(','); + const content = refList + ? Object.keys(refList).map((item) => { + if (list.includes(String(item))) { + return ( + <> +
  • { + linkToExtend(refList[item].url); + }} + > +
    {refList[item].url}
    +
    {refList[item].title}
    +
  • +
    + + ); + } else { + return null; + } + }) + : null; + return className.includes('mergeQuo') ? ( + + + + + + + + + ) : ( + {children} + ); + }; + + return ( +
    + + { + refList ? + quoType === 'merge' ? mergeReplaceToDiv(source) : + replaceStr(source) : + source + } + +
    + ); +}; + +export default CustomMarkdown; diff --git a/frontend/React/src/pages/mindsearch/components/iconfont/index.tsx b/frontend/React/src/pages/mindsearch/components/iconfont/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..4bc211e47b90279ee57fbc36efeb7b75e4a00e38 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/iconfont/index.tsx @@ -0,0 +1,9 @@ +import { createFromIconfontCN } from '@ant-design/icons'; + +// //at.alicdn.com/t/c/font_3858115_yl9vl04f0jc.js +const IconFont = createFromIconfontCN({ + // scriptUrl: "//static.openxlab.org.cn/cmg-animation-upload/iconfont.js", + scriptUrl: '//at.alicdn.com/t/c/font_3858115_p8dw9q83s0h.js', +}); + +export default IconFont; diff --git a/frontend/React/src/pages/mindsearch/components/loading/index.module.less b/frontend/React/src/pages/mindsearch/components/loading/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..67e69887f4545734bd337ff4c57e2ebfa7e95791 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/loading/index.module.less @@ -0,0 +1,44 @@ +.loading99 { + margin: 20px; + position: relative; + width: 1px; + height: 1px; +} + +.loading99:before, +.loading99:after { + position: absolute; + display: inline-block; + width: 15px; + height: 15px; + content: ''; + border-radius: 100%; + background-color: #5551ff; +} + +.loading99:before { + left: -15px; + animation: ball-pulse infinite 0.75s -0.4s cubic-bezier(0.2, 0.68, 0.18, 1.08); +} + +.loading99:after { + right: -15px; + animation: ball-pulse infinite 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08); +} + +@keyframes ball-pulse { + 0% { + transform: scale(1); + opacity: 1; + } + + 50% { + transform: scale(0.1); + opacity: 0.6; + } + + 100% { + transform: scale(1); + opacity: 1; + } +} diff --git a/frontend/React/src/pages/mindsearch/components/loading/index.tsx b/frontend/React/src/pages/mindsearch/components/loading/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..a946864886711b8fe935b19fab7f5a7cdc042576 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/loading/index.tsx @@ -0,0 +1,6 @@ +import styles from './index.module.less'; + +const Loading = () => { + return
    ; +}; +export default Loading; diff --git a/frontend/React/src/pages/mindsearch/components/mind-map-item/index.module.less b/frontend/React/src/pages/mindsearch/components/mind-map-item/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..8b93032eb167e8e314d8ad2e11e25ecf0507ab98 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/mind-map-item/index.module.less @@ -0,0 +1,150 @@ +article { + padding: 6px 16px; + border-radius: 8px; + height: 38px; + border: 1px solid transparent; + background: #fff; + color: #121316; + text-align: center; + font-size: 14px; + line-height: 24px; + position: relative; + box-sizing: border-box; + + &.loading { + line-height: 20px; + border-radius: 8px; + overflow: hidden; + border: 1px solid transparent; + padding: 4px; + + span { + color: #3477eb; + background-color: #fff; + border-radius: 4px; + line-height: 24px; + padding: 2px 12px; + } + + .looping { + --border-width: 4px; + --follow-panel-linear-border: linear-gradient(90deg, #3477eb 0.58%, #FFB4BA 100.36%); + + position: absolute; + top: 0; + left: 0; + width: calc(100% + var(--border-width) * 3 - 8px); + height: 100%; + background: var(--follow-panel-linear-border); + background-size: 300% 300%; + background-position: 0 50%; + animation: moveGradient 4s linear infinite; + } + } + + &.disabled { + border-radius: 8px; + border: 1px solid #d7d8dd; + color: rgba(18, 19, 22, 0.35); + } + + &.finished { + cursor: pointer; + border: 1px solid #3477EB; + + &:hover { + background-color: #E6F2FF; + } + + .finishDot { + position: absolute; + top: 6px; + right: 6px; + width: 6px; + height: 6px; + background-color: #3477EB; + border-radius: 50%; + } + } + + &.forbidden { + cursor: not-allowed; + } + + &.emptyNode { + padding: 0 !important; + border: 0; + } + + &.active { + border-radius: 8px; + border: 1px solid var(---Brand1-5, #3477EB); + background: var(---Brand1-5, #3477EB); + color: #fff; + + &:hover { + border: 1px solid var(---Brand1-5, #3477EB); + background: var(---Brand1-5, #3477EB); + color: #fff; + } + + .dot { + position: absolute; + top: 6px; + right: 6px; + width: 6px; + height: 6px; + background-color: #fff; + border-radius: 50%; + } + } + + &.init { + border: 1px solid transparent; + cursor: auto; + } + + span { + display: block; + white-space: nowrap; + max-width: 160px; + overflow: hidden; + text-overflow: ellipsis; + position: relative; + z-index: 20; + } + + span.status { + color: #4082fe; + } +} + +ul.onlyone { + &:before { + opacity: 0; + } + + >li { + margin-left: 0px; + } + + &>li:after { + opacity: 0; + } + + &>li:before { + // left: 0; + } +} + +.endLine { + border-bottom: 1px solid #d7d8dd; + width: 3000px; + transition: width 1s ease-in-out; +} + +@keyframes moveGradient { + 50% { + background-position: 100% 50%; + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/mind-map-item/index.tsx b/frontend/React/src/pages/mindsearch/components/mind-map-item/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..42a0affc3b19ece55bfac9c1dfab905f17b2eec6 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/mind-map-item/index.tsx @@ -0,0 +1,54 @@ +import styles from './index.module.less'; +import classNames from 'classnames'; +import { useEffect, useContext } from 'react'; +import { MindsearchContext } from '../../provider/context'; + +// 递归组件用于渲染mindMap中的节点 +const MindMapItem = ({ item, isEnd, selectNode }: any) => { + const { activeNode, chatIsOver } = useContext(MindsearchContext); + // console.log('[ms item------]', item, isEnd, currentNodeName) + // 递归渲染子节点 + const renderChildren = () => { + if (item?.children?.length > 0) { + return ( +
      + {item.children.map((child: any, idx: number) => ( + + ))} +
    + ); + } + return null; + }; + + const handleClick = () => { + if (item?.state === 0 || (item?.name === '原始问题' || item?.name === '最终回复')) { + return; + } + selectNode(item?.name); + }; + + return ( +
  • +
    + {item?.name} + {item?.state === 1 &&
    } + {item?.id !== 0 &&
    } + {item?.name && item?.name === activeNode ?
    : ''} +
    + {item?.children?.length > 0 && renderChildren()} + {isEnd && (item?.children?.length === 0 || !item?.children) &&
    } +
  • + ); +}; + +export default MindMapItem; diff --git a/frontend/React/src/pages/mindsearch/components/mind-map/index.module.less b/frontend/React/src/pages/mindsearch/components/mind-map/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..50cde52e57e53908cc88489003251d222e08604c --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/mind-map/index.module.less @@ -0,0 +1,256 @@ +.mapArea { + width: 100%; + overflow-x: auto; + overflow-y: hidden; + // transition: all 0.2s linear; + + &::-webkit-scrollbar { + height: 6px; + } + + &::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 10px; + } + + &::-webkit-scrollbar-thumb { + background-color: #d7d8dd; + border-radius: 100px; + } +} + +.end { + position: absolute; + right: 0; + background-color: #fff; + display: flex; + justify-content: center; + align-items: center; + border-left: 1px solid #d7d8dd; + padding-left: 16px; + + .node { + position: relative; + + &::before { + content: ''; + border: 1px solid #d7d8dd; + border-top: none; + border-left: none; + width: 14px; + height: 0px; + position: absolute; + left: -16px; + top: 50%; + // transform: translateY(-50%); + } + + article { + padding: 8px 16px; + border-radius: 8px; + border: 1px solid transparent; + color: #3477eb; + text-align: center; + font-size: 14px; + line-height: 24px; + box-sizing: border-box; + background: #e6f2ff; + } + } +} + +.mindmap { + position: relative; + margin-right: 16px; + + article { + padding: 6px 16px; + border-radius: 8px; + height: 38px; + border: 1px solid transparent; + background: #fff; + color: #121316; + text-align: center; + font-size: 14px; + line-height: 24px; + position: relative; + box-sizing: border-box; + + &.loading { + line-height: 20px; + border-radius: 8px; + overflow: hidden; + border: 1px solid transparent; + padding: 4px; + + span { + color: #2126c0; + background-color: #fff; + border-radius: 4px; + line-height: 24px; + padding: 2px 12px; + } + + .looping { + --border-width: 4px; + --follow-panel-linear-border: linear-gradient(91deg, #5551ff 0.58%, #ff87de 100.36%); + + position: absolute; + top: 0; + left: 0; + width: calc(100% + var(--border-width) * 2 - 8px); + height: calc(100%); + background: var(--follow-panel-linear-border); + background-size: 300% 300%; + background-position: 0 50%; + animation: moveGradient 4s alternate infinite; + } + } + + &.disabled { + border-radius: 8px; + border: 1px solid #d7d8dd; + color: rgba(18, 19, 22, 0.35); + } + + &.finished { + cursor: pointer; + border: 1px solid #2126c0; + + .finishDot { + position: absolute; + top: 6px; + right: 6px; + width: 6px; + height: 6px; + background-color: #c9c0fe; + border-radius: 50%; + } + } + + &.init { + border: 1px solid transparent; + cursor: auto; + } + + span { + display: block; + white-space: nowrap; + max-width: 160px; + overflow: hidden; + text-overflow: ellipsis; + position: relative; + z-index: 20; + } + + span.status { + color: #4082fe; + } + } + + // 第一个article,起始节点 + >li { + >article { + border-radius: 8px; + background: #e6f2ff; + color: #3477eb; + } + } + + li { + list-style: none; + display: flex; + align-items: center; + box-sizing: border-box; + margin: 16px; + line-height: 1; + position: relative; + + &>ul.onlyone { + &:before { + opacity: 0; + } + + >li { + margin-left: 0px; + } + + &>li:after { + opacity: 0; + } + + &>li:before { + // left: 0; + } + } + + &>ul:before { + content: ''; + border: 1px solid #d7d8dd; + border-top: none; + border-left: none; + width: calc(16px - 2px); + height: 0px; + position: absolute; + left: 0; + top: 50%; + // transform: translateY(-50%); + } + + &:before { + content: ''; + border: 1px solid #d7d8dd; + border-top: none; + border-left: none; + width: 16px; + height: 0px; + position: absolute; + left: calc(-16px - 1px); + } + + &:after { + content: ''; + border: 1px solid #d7d8dd; + border-top: none; + border-left: none; + width: 0px; + height: calc(100% / 2 + 33px); + position: absolute; + left: calc(-16px - 2px); + } + + &:first-of-type:after { + top: 50%; + } + + &:last-of-type:after { + bottom: 50%; + } + + ul { + padding: 0 0 0 16px; + position: relative; + margin-bottom: 0; + } + } + + &>li { + + &:after, + &:before { + display: none; + } + } + + .endLine { + border-bottom: 1px solid #d7d8dd; + width: 3000px; + transition: width 1s ease-in-out; + } +} + +@keyframes moveGradient { + 50% { + background-position: 100% 50%; + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/mind-map/index.tsx b/frontend/React/src/pages/mindsearch/components/mind-map/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..2442953553b7607cd6ef8c688f3d6b3ba79f58d6 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/mind-map/index.tsx @@ -0,0 +1,103 @@ +import styles from './index.module.less'; +import { useState, useEffect } from 'react'; +import MindMapItem from '../mind-map-item'; + +interface IEndStyle { + top: string; + height: number; +} +const MindMapGraph = (props: any) => { + const { isEnd, renderData, handleNodeClick } = props; + const [mapId] = useState(Date.now()); + const [showEndNode, setShowEndNode] = useState(false); + const [mapWidth, setMapWidth] = useState(0); + const [endStyle, setEndStyle] = useState({ + top: '50%', + height: 0, + }); + const generateWidth = () => { + const articles = document.getElementById(`mindMap-${mapId}`)?.querySelectorAll('article'); + // 确保至少有两个元素 + if (articles?.length) { + let maxRight = 0; + articles.forEach((item, index) => { + if (item.getBoundingClientRect().right > maxRight) { + maxRight = item.getBoundingClientRect().right; + } + }); + const firstArticle = articles[0].getBoundingClientRect(); + if (maxRight - firstArticle.left + 200 > mapWidth) { + return maxRight - firstArticle.left + 200; + } else { + return mapWidth; + } + } else { + return 100; + } + }; + + const generateEndStyle = () => { + // 获取所有class为endline的div元素 + const mindMap = document.getElementById(`mindMap-${mapId}`); + const endlineDivs = document.getElementById(`mindMap-${mapId}`)?.querySelectorAll('.endline') || []; + // console.log('generateEndStyle-----', mapId, `mindMap-${mapId}`, document.getElementById(`mindMap-${mapId}`), mindMap, endlineDivs, endlineDivs?.length); + // 确保至少有两个元素 + if (endlineDivs?.length >= 2 && mindMap) { + // 获取第一个和最后一个元素的边界框(bounding rectangle) + const firstRect = endlineDivs?.[0].getBoundingClientRect(); + const lastRect = endlineDivs?.[endlineDivs.length - 1].getBoundingClientRect(); + const mindMapRect = mindMap?.getBoundingClientRect(); + // 计算y值的差值 + const yDiff = lastRect.top - firstRect.top; + // const top = firstRect.top - mindMapRect.top; + // 如果需要包含元素的完整高度(不仅仅是顶部位置),可以加上元素的高度 + // const yDiffWithHeight = yDiff + (lastRect.height - firstRect.height); + return { + top: firstRect.top - mindMapRect.top, + height: yDiff + 1, + }; + } else { + return { + top: '50%', + height: 0, + }; + } + }; + + useEffect(() => { + setMapWidth(generateWidth()); + }, [renderData.length]); + + useEffect(() => { + if (!isEnd) return; + setMapWidth(generateWidth()); + setTimeout(() => { + setEndStyle(generateEndStyle() as IEndStyle); + setShowEndNode(true); + }, 200); + }, [isEnd]); + + return ( +
    +
      + {renderData.map((item: any) => ( + + ))} + {showEndNode && ( +
      +
      +
      最终回复
      +
      +
      + )} +
    +
    + ); +}; + +export default MindMapGraph; diff --git a/frontend/React/src/pages/mindsearch/components/notice/index.module.less b/frontend/React/src/pages/mindsearch/components/notice/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..0d5021ec7f26e19c7f1ace0b9edfc6437156aead --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/notice/index.module.less @@ -0,0 +1,19 @@ +.notice { + color: #12131659; + padding-top: 8px; + text-align: center; + font-weight: 400; + font-size: 12px; + line-height: 18px; + + a { + text-decoration: none; + color: #444; + display: inline-flex; + align-items: center; + + span { + font-size: 18px; + } + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/notice/index.tsx b/frontend/React/src/pages/mindsearch/components/notice/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..6c69d4ff34c1e91e6720589d99a286498ca887e7 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/notice/index.tsx @@ -0,0 +1,10 @@ +import styles from './index.module.less'; +import IconFont from '../iconfont'; + +const Notice = () => { + return <> +
    +
    Powered by InternLM2.5, this service has been specifically optimized for Chinese. For a better experience in English, you can build it locally.
    + ; +}; +export default Notice; \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/session-item/index.module.less b/frontend/React/src/pages/mindsearch/components/session-item/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..3202dac060dcc4f9295432c2cadc5bc6bda0aaf1 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/session-item/index.module.less @@ -0,0 +1,33 @@ +.questionArea { + display: flex; + justify-content: flex-start; + margin-bottom: 40px; + + .avatar { + width: 32px; + height: 32px; + margin-right: 16px; + border-radius: 50%; + background-color: #ddd; + flex-shrink: 0; + margin-top: 7px; + overflow: hidden; + + img { + width: 100%; + } + } + + .question { + padding: 12px 16px; + background: #E6F2FF; + max-width: 93.75%; + border-radius: 16px; + + span { + color: #121316cc; + font-size: 16px; + line-height: 28px; + } + } +} \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/components/session-item/index.tsx b/frontend/React/src/pages/mindsearch/components/session-item/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..437187882216a276c4fad8da9b25fd51ffbcfa09 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/components/session-item/index.tsx @@ -0,0 +1,26 @@ +import { useEffect, useState, useRef, useMemo, useContext } from 'react'; +import styles from './index.module.less'; +import Answer from '../answer'; + +const SessionItem = ({ item, handleNodeClick, idx }: any) => { + return <> +
    +
    +
    + {item.question} +
    +
    + + +}; + +export default SessionItem; \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/index.module.less b/frontend/React/src/pages/mindsearch/index.module.less new file mode 100644 index 0000000000000000000000000000000000000000..3bb245c2be3c06edfb465a385ee218fe6a25bd39 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/index.module.less @@ -0,0 +1,465 @@ +// inspired by https://www.youtube.com/watch?v=Pl1Gw14pS2I +@import '@/styles/fn.less'; + +.mainPage { + display: flex; + justify-content: flex-start; + align-items: flex-start; + height: 100%; + // overflow: hidden; + position: relative; + max-width: 1640px; + margin: 2px auto; + + .input { + border: 1px solid var(--grey-4); + border-radius: 16px; + background: var(--grey-1); + padding: 14px 4px 14px 16px; + position: relative; + + &:hover { + background: var(--grey-3); + } + + &.focus { + background: var(--white); + box-shadow: 0px 2px 10px 0px var(--dark-1); + } + + &-main { + width: 100%; + display: flex; + align-items: flex-end; + + &-box { + flex: 1; + position: relative; + + .textarea { + color: var(--dark-8); + font-size: 16px; + line-height: 24px; + padding: 0; + padding-right: 48px; + caret-color: var(--theme-color); + .custom-scroll(); + } + + .send { + position: absolute; + bottom: 0; + right: 8px; + color: var(--theme-color); + display: flex; + align-items: center; + + i { + font-size: 24px; + } + + &.disabled { + color: var(--dark-2); + + &:hover, + &:active { + color: var(--dark-2); + } + } + + &:hover { + color: var(--blue-3); + } + + &:active { + color: var(--blue-4); + } + } + } + } + } + + .chatContent { + position: relative; + display: flex; + justify-content: space-between; + flex-direction: column; + flex-grow: 1; + margin-right: 40px; + max-width: 800px; + height: 100%; + // overflow-y: hidden; + padding: 0; + box-sizing: border-box; + + .top { + height: 100%; + overflow-y: auto; + + &.mb12 { + margin-bottom: 12px; + } + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + &::-webkit-scrollbar-thumb { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + } + + .sendArea { + display: flex; + width: 100%; + box-sizing: border-box; + height: 52px; + border-radius: 16px !important; + + :global { + .ant-input { + &:focus { + box-shadow: none !important; + outline: 0 !important; + } + } + } + + input { + height: 36px; + line-height: 36px; + flex-grow: 1; + border: 0; + outline: 0; + + &:focus { + border: 0; + outline: 0; + } + } + + button { + display: flex; + justify-content: flex-start; + align-items: center; + border: 0; + background-color: #fff; + cursor: pointer; + padding: 8px; + width: 65px; + flex-shrink: 0; + + img { + margin-right: 4px; + } + } + } + + .notice { + color: #12131659; + padding-top: 8px; + text-align: center; + font-weight: 400; + font-size: 12px; + line-height: 18px; + + a { + text-decoration: none; + color: #444; + display: inline-flex; + align-items: center; + + span { + font-size: 18px; + } + } + } + } + + .progressContent { + max-width: 800px; + flex-shrink: 1; + box-sizing: border-box; + padding: 24px; + border-radius: 8px; + border: rgba(33, 38, 192, 0.1); + background: rgba(255, 255, 255, 0.8); + height: calc(100% - 60px); + overflow-y: auto; + position: relative; + + &::-webkit-scrollbar { + width: 6px; + } + + &::-webkit-scrollbar-track { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + &::-webkit-scrollbar-thumb { + background-color: rgba(255, 255, 255, 0); + border-radius: 100px; + } + + .toggleIcon { + position: absolute; + right: 24px; + top: 28px; + cursor: pointer; + } + } +} + +pre { + margin: 0; + padding-top: 8px; + color: #121316; + font-size: 14px; + line-height: 24px; + font-family: 'PingFang SC', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; + white-space: wrap; +} + +ul { + margin: 0; + padding: 0; +} + +.draft { + width: 100%; + white-space: wrap; + // display: flex; + // justify-content: flex-start; + // align-items: flex-start; + + .loading, + .loading>div { + position: relative; + box-sizing: border-box; + } + + .loading { + display: flex; + justify-content: center; + align-items: center; + font-size: 0; + color: #fff; + background-color: #f90; + width: 20px; + height: 20px; + border-radius: 50%; + margin-right: 3px; + flex-shrink: 0; + } + + .loading>div { + display: inline-block; + float: none; + background-color: currentColor; + border: 0 solid currentColor; + } + + .loading>div:nth-child(1) { + animation-delay: -200ms; + } + + .loading>div:nth-child(2) { + animation-delay: -100ms; + } + + .loading>div:nth-child(3) { + animation-delay: 0ms; + } + + .loading>div { + width: 3px; + height: 3px; + margin: 2px 1px; + border-radius: 100%; + animation: ball-pulse 1s ease infinite; + } +} + +.qaItem { + width: 100%; + margin-bottom: 40px; +} + +.newChatTip { + width: 100%; + display: flex; + justify-content: center; + align-items: center; + color: var(--35-text-2, rgba(18, 19, 22, 0.35)); + font-size: 14px; + font-weight: 400; + line-height: 24px; + position: relative; + margin-bottom: 80px; + + span { + background-color: #fff; + position: relative; + z-index: 10; + padding: 0 16px; + } + + &::before { + position: absolute; + width: 100%; + left: 0; + top: calc(50% - 1px); + height: 1px; + content: ''; + background-color: #d7d8dd; + } + + a { + padding: 0 4px; + color: #3477eb; + text-decoration: none; + cursor: pointer; + } +} + +.showRight { + position: fixed; + top: 45px; + right: 24px; + width: 32px; + cursor: pointer; + z-index: 100; + + .actionIcon { + width: 32px; + height: 32px; + border-radius: 4px; + padding: 3px; + margin-bottom: 12px; + box-sizing: border-box; + + &.forbidden { + cursor: not-allowed; + opacity: 0.5; + } + + &.robotIcon { + display: flex; + justify-content: center; + align-items: center; + + img { + width: 17px; + } + } + + &:hover { + background-color: #f4f5f9; + } + } + + img { + width: 100%; + } +} + +@keyframes ball-pulse { + + 0%, + 60%, + 100% { + opacity: 1; + transform: scale(1); + } + + 30% { + opacity: 0.1; + transform: scale(0.01); + } +} + +@keyframes moveGradient { + 50% { + background-position: 100% 50%; + } +} + +@keyframes fadeIn { + 0% { + width: 0; + opacity: 0; + } + + 100% { + width: auto; + opacity: 1; + } +} + +@keyframes unfold { + 0% { + height: auto; + } + + 100% { + height: 0; + } +} + +.loading99 { + margin: 20px; + position: relative; + width: 1px; + height: 1px; +} + +.loading99:before, +.loading99:after { + position: absolute; + display: inline-block; + width: 15px; + height: 15px; + content: ''; + border-radius: 100%; + background-color: #5551ff; +} + +.loading99:before { + left: -15px; + animation: ball-pulse infinite 0.75s -0.4s cubic-bezier(0.2, 0.68, 0.18, 1.08); +} + +.loading99:after { + right: -15px; + animation: ball-pulse infinite 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08); +} + +@keyframes ball-pulse { + 0% { + transform: scale(1); + opacity: 1; + } + + 50% { + transform: scale(0.1); + opacity: 0.6; + } + + 100% { + transform: scale(1); + opacity: 1; + } +} + +// @media (max-width: 1360px) { +// .mainPage { +// padding: 0 60px 0 120px; +// } +// } \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/index.tsx b/frontend/React/src/pages/mindsearch/index.tsx new file mode 100644 index 0000000000000000000000000000000000000000..6a6febe638731138999a0d42615a9c0841748e5b --- /dev/null +++ b/frontend/React/src/pages/mindsearch/index.tsx @@ -0,0 +1,514 @@ +import styles from './index.module.less'; +import { useEffect, useState, useRef, useMemo, useContext } from 'react'; +import { Input, message, Tooltip } from 'antd'; +import ShowRightIcon from './assets/think-progress-icon.svg'; +import { MindsearchContext } from './provider/context'; +import ChatRight from './components/chat-right'; +import { useNavigate, useParams } from 'react-router-dom'; +import { fetchEventSource } from '@microsoft/fetch-event-source'; +import SessionItem from './components/session-item'; +import classNames from 'classnames'; +import Notice from './components/notice'; + +interface INodeInfo { + isEnd?: boolean; // 该节点是否结束 + current_node?: string; + thinkingData?: string; // step1 思考 + queries?: []; + readingData?: string; // step2 思考 + searchList?: []; + conclusion?: string; // 节点的结论 + selectedIds?: number[]; + subQuestion?: string; // 节点的标题 + conclusionRef: any[]; + outputing?: boolean; +}; + +interface IFormattedData { + question?: string; + nodes?: any; + adjacency_list?: object; + response?: string; + responseRefList?: any[]; + chatIsOver?: boolean; +}; + +interface INodeItem { + id: string; + name: string; + state: number; +}; + +class FatalError extends Error { }; +class RetriableError extends Error { }; + +const MindSearchCon = () => { + const navigate = useNavigate(); + const params = useParams<{ id: string; robotId: string }>(); + const [qaList, setQaList] = useState([]); + const [formatted, setFormatted] = useState({}); + const [question, setQuestion] = useState(''); + const [stashedQuestion, setStashedQuestion] = useState(''); + const [newChatTip, setNewChatTip] = useState(false); + const [singleObj, setSingleObj] = useState(null); + const [isEnd, setIsEnd] = useState(false); + const [inputFocused, setFocused] = useState(false); + // 一轮完整对话结束 + const [chatIsOver, setChatIsOver] = useState(true); + + const [currentNodeInfo, setCurrentNode] = useState(null); + const [currentNodeName, setCurrentNodeName] = useState(''); + const [activeNode, setActiveNode] = useState(''); + // 是否展示右侧内容 + const [showRight, setShowRight] = useState(false); + const [adjList, setAdjList] = useState({}); + const [historyNode, setHistoryNode] = useState(null); + + const [hasNewChat, setHasNewChat] = useState(false); + + // 新开会话 + const openNewChat = () => { + location.reload(); + }; + + const toggleRight = () => { + setShowRight(!showRight); + }; + + // 渲染过程中保持渲染文字可见 + const keepScrollTop = () => { + const divA = document.getElementById('chatArea') as HTMLDivElement; + const divB = document.getElementById('messageWindowId') as HTMLDivElement; + // 获取 divB 的当前高度 + const bHeight = divB.offsetHeight; + + // 检查 divA 是否需要滚动(即 divB 的高度是否大于 divA 的可视高度) + if (bHeight > divA.offsetHeight) { + // 滚动到 divB 的底部在 divA 的可视区域内 + divA.scrollTop = bHeight - divA.offsetHeight + 30; + } + }; + + const initPageState = () => { + setSingleObj(null); + setCurrentNodeName(''); + setCurrentNode(null); + setFormatted({}); + setAdjList({}); + setShowRight(false); + setIsEnd(false); + }; + + const responseTimer: any = useRef(null); + + useEffect(() => { + // console.log('[ms]---', formatted, chatIsOver, responseTimer.current); + if (chatIsOver && formatted?.response) { + // 一轮对话结束 + setQaList((pre) => { + return pre.concat(formatted); + }); + initPageState(); + setCurrentNodeName('customer-0'); + } + if (!chatIsOver && !responseTimer.current) { + responseTimer.current = setInterval(() => { + keepScrollTop(); + }, 50); + } + if (responseTimer.current && chatIsOver) { + // 如果 isEnd 变为 false,清除定时器 + clearInterval(responseTimer.current); + responseTimer.current = null; + } + }, [formatted?.response, chatIsOver, responseTimer.current, newChatTip]); + + useEffect(() => { + if (formatted?.question) { + setHistoryNode(null); + setChatIsOver(false); + } + }, [formatted?.question]); + + // 存储节点信息 + const stashNodeInfo = (fullInfo: any, nodeName: string) => { + // console.log('stash node info------', fullInfo, fullInfo?.response?.stream_state); + const content = JSON.parse(fullInfo?.response?.content || '{}') || {}; + const searchListStashed: any = Object.keys(content).map((item) => { + return { id: item, ...content[item] }; + }); + const stashedList = JSON.parse(localStorage?.stashedNodes || '{}'); + const nodeInfo = stashedList[nodeName] || {}; + + if (fullInfo?.content) { + nodeInfo.subQuestion = fullInfo.content; + } + if (fullInfo?.response?.formatted?.thought) { + // step1 思考 + if (!nodeInfo?.readingData && !nodeInfo?.queries?.length) { + nodeInfo.thinkingData = fullInfo?.response?.formatted?.thought; + } + + // step2 思考 + if (nodeInfo?.thinkingData && nodeInfo?.queries?.length && nodeInfo?.searchList?.length && !nodeInfo?.selectedIds?.length && !nodeInfo?.conclusion) { + nodeInfo.readingData = fullInfo?.response?.formatted?.thought; + } + + // conclusion + if (nodeInfo?.startConclusion && fullInfo?.response?.stream_state === 1) { + nodeInfo.conclusion = fullInfo?.response?.formatted?.thought; + } + } + if (fullInfo?.response?.formatted?.action?.parameters?.query?.length && !nodeInfo.queries?.length) { + nodeInfo.queries = fullInfo?.response?.formatted.action.parameters.query; + } + + if (searchListStashed?.length && !nodeInfo.conclusionRef) { + nodeInfo.searchList = searchListStashed; + nodeInfo.conclusionRef = content; + } + + if (Array.isArray(fullInfo?.response?.formatted?.action?.parameters?.select_ids) && !nodeInfo?.selectedIds?.length) { + nodeInfo.selectedIds = fullInfo?.response?.formatted.action.parameters.select_ids; + nodeInfo.startConclusion = true; + } + + if (fullInfo?.response?.stream_state) { + nodeInfo.outputing = true; + } else { + nodeInfo.outputing = false; + } + + const nodesList: any = {}; + nodesList[nodeName] = { + current_node: nodeName, + ...nodeInfo, + }; + window.localStorage.stashedNodes = JSON.stringify({ ...stashedList, ...nodesList }); + }; + + const formatData = (obj: any) => { + // 嫦娥6号上有哪些国际科学载荷?它们的作用分别是什么? + try { + // 更新邻接表 + if (obj?.response?.formatted?.adjacency_list) { + setAdjList(obj.response?.formatted?.adjacency_list); + } + + if (!obj?.current_node && obj?.response?.formatted?.thought && obj?.response?.stream_state === 1) { + // 有thought,没有node, planner思考过程 + setFormatted((pre: IFormattedData) => { + return { + ...pre, + response: obj.response.formatted.thought, + }; + }); + } + if (obj?.response?.formatted?.ref2url && !formatted?.responseRefList) { + setFormatted((pre: IFormattedData) => { + return { + ...pre, + responseRefList: obj?.response?.formatted?.ref2url, + }; + }); + } + if (obj?.current_node || obj?.response?.formatted?.node) { + // 有node, 临时存储node信息 + stashNodeInfo(obj?.response?.formatted?.node?.[obj.current_node], obj.current_node); + } + } catch (err) { + console.log(err); + } + }; + + const handleError = (errCode: number, msg: string) => { + message.warning(msg || '请求出错了,请稍后再试'); + if (errCode === -20032 || errCode === -20033 || errCode === -20039) { + // 敏感词校验失败, 新开会话 + openNewChat(); + return; + } + console.log('handle error------', msg); + setChatIsOver(true); + initPageState(); + }; + + const startEventSource = () => { + console.log('start event--------'); + if (qaList?.length > 4) { + setNewChatTip(true); + message.warning('对话数已达上限,请在新对话中聊天'); + keepScrollTop(); + return; + } + setFormatted({ ...formatted, question }); + setQuestion(''); + setChatIsOver(false); + const ctrl = new AbortController(); + const url = '/solve'; + // const queryData = { + // cancel: true, + // prompt: question, + // }; + const postData = { + inputs: question + } + fetchEventSource(url, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify(postData), + openWhenHidden: true, + signal: ctrl.signal, + onmessage(ev) { + try { + const res = (ev?.data && JSON.parse(ev.data)) || null; + if (res?.response?.stream_state === 0) { + setChatIsOver(true); + setFormatted((pre: IFormattedData) => { + return { + ...pre, + chatIsOver: true, + }; + }); + } else { + formatData(res); + setSingleObj(res); + } + } catch (err) { + console.log('error on sse---', err); + handleError(0, '请求出错了,请稍后再试!'); + } + }, + onerror(err) { + console.log('error on sse---', err); + handleError(0, ''); + ctrl.abort(); + if (err instanceof FatalError) { + throw err; + } + }, + onclose() { + // params?.id && handleUpdateHistoryItem(params?.id); + } + }); + }; + + // 点击节点 + const handleNodeClick = (node: string, idx: number) => { + if (isEnd && !chatIsOver) return; // 当节点输出完成,最终response进行中,不允许点击按钮,点击无效 + const isFromHistory = qaList?.[idx]?.nodes?.[node]; + setShowRight(true); + setActiveNode(node); + + if (isFromHistory) { + const info = qaList?.[idx]?.nodes?.[node]; + + if (!info) { + message.error('没有读取到节点信息'); + } + setHistoryNode(info); + } else { + setCurrentNodeName(node); + } + }; + + // 解析历史记录或者搜索返回的数据 + const formatHistoryNode = (originNodeInfo: any) => { + // console.log('format history node--------', originNodeInfo); + const searchContent = JSON.parse(originNodeInfo?.memory?.[1]?.content || '{}') || {}; + const searchListStashed: any = Object.keys(searchContent).map((item) => { + return { id: item, ...searchContent[item] }; + }); + + const nodeInfo: INodeInfo = { + current_node: originNodeInfo?.current_node || String(Date.now()), + thinkingData: originNodeInfo?.memory?.[0]?.formatted?.thought || '', // step1 思考 + queries: originNodeInfo?.memory?.[0]?.formatted?.action?.parameters?.query || [], + readingData: originNodeInfo?.memory?.[2]?.formatted?.thought || '', // step2 思考 + searchList: searchListStashed, + conclusionRef: searchContent, + conclusion: originNodeInfo?.memory?.[4]?.formatted?.thought || '', // 节点的结论 + selectedIds: originNodeInfo?.memory?.[2]?.formatted?.action?.parameters?.select_ids || [], + subQuestion: originNodeInfo?.content, // 节点的标题 + isEnd: true, + outputing: false + }; + return nodeInfo; + }; + + const createSseChat = () => { + if (submitDisabled) { + return; + } + setQuestion(stashedQuestion); + setStashedQuestion(''); + setCurrentNodeName('customer-0'); + }; + + const checkNodesOutputFinish = () => { + const adjListStr = JSON.stringify(adjList); + // 服务端没有能准确描述所有节点输出完成的状态,前端从邻接表信息中寻找response信息,不保证完全准确,因为也可能不返回 + if (adjListStr.includes('"name":"response"')) { + setIsEnd(true); + } + }; + + useEffect(() => { + if (!adjList) return; + if (isEnd) { + // 所有节点输出完成时收起右侧 + setShowRight(false); + } else { + checkNodesOutputFinish(); + } + setFormatted((pre: IFormattedData) => { + return { + ...pre, + adjacency_list: adjList, + }; + }); + }, [adjList, isEnd]); + + useEffect(() => { + const findStashNode = localStorage?.stashedNodes && JSON.parse(localStorage?.stashedNodes || '{}'); + if (!findStashNode || !currentNodeName) return; + currentNodeName === 'customer-0' ? setCurrentNode(null) : setCurrentNode(findStashNode?.[currentNodeName]); + currentNodeName !== 'customer-0' && setShowRight(true); + }, [currentNodeName, localStorage?.stashedNodes]); + + useEffect(() => { + if (!singleObj) return; + if ((!currentNodeName || currentNodeName === 'customer-0') && singleObj?.current_node) { + setCurrentNodeName(singleObj?.current_node); + } + }, [singleObj, currentNodeName]); + + useEffect(() => { + if (question) { + startEventSource(); + } + }, [question]); + + useEffect(() => { + if (!showRight) { + setActiveNode(''); + } + }, [showRight]); + + useEffect(() => { + localStorage.stashedNodes = ''; + localStorage.reformatStashedNodes = ''; + + return () => { + // 返回清理函数,确保组件卸载时清除定时器 + if (responseTimer.current) { + clearInterval(responseTimer.current); + responseTimer.current = null; + } + }; + }, []); + + const submitDisabled = useMemo(() => { + return newChatTip || !stashedQuestion || !chatIsOver; + }, [newChatTip, stashedQuestion, chatIsOver]); + + return ( + +
    +
    +
    +
    + {qaList.length > 0 && + qaList.map((item: IFormattedData, idx) => { + return ( +
    + { + item.question && + } +
    + ); + }) + } + { + formatted?.question && + + } +
    + {newChatTip && ( +
    + + 对话数已达上限,请在 新对话 中聊天 + +
    + )} +
    +
    +
    +
    + { + setStashedQuestion(e.target.value); + }} + onPressEnter={createSseChat} + onFocus={() => { setFocused(true) }} + onBlur={() => { setFocused(false) }} + /> +
    + +
    +
    +
    +
    + +
    + {showRight ? ( + + ) : ( +
    +
    + + + +
    +
    + )} +
    +
    + ); +}; + +export default MindSearchCon; diff --git a/frontend/React/src/pages/mindsearch/provider/context.tsx b/frontend/React/src/pages/mindsearch/provider/context.tsx new file mode 100644 index 0000000000000000000000000000000000000000..b83318a8fd3303d0f2c747c1f3b1fc0c02c85383 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/provider/context.tsx @@ -0,0 +1,10 @@ +import React, { createContext, useCallback, useContext, useMemo, useRef, useState } from 'react'; + +export const MindsearchContext = createContext( + {} as { + activeNode: string; + isEnd: boolean; + chatIsOver: boolean; + setActiveNode?: () => void; + }, +); \ No newline at end of file diff --git a/frontend/React/src/pages/mindsearch/utils/tools.ts b/frontend/React/src/pages/mindsearch/utils/tools.ts new file mode 100644 index 0000000000000000000000000000000000000000..cddaab39ba28fd3f4d0f7dacea3a5a5db2ba1cc6 --- /dev/null +++ b/frontend/React/src/pages/mindsearch/utils/tools.ts @@ -0,0 +1,44 @@ +export const getQueryString = (search: string, name: string) => { + if (!search) return ''; + const reg = new RegExp(`(^|&)${name}=([^&]*)(&|$)`); + const result = search.substring(1).match(reg); + if (result != null) return result[2]; + return ''; +}; + +export const isInWhiteList = (url = '', list: string[] = []) => { + const baseUrl = url.split('?')[0]; + for (const whiteApi of list) { + if (baseUrl.endsWith(whiteApi)) { + return true; + } + } + return false; +}; + +export const mergeReplaceToDiv = (str: string) => { + // 优化后的正则表达式,使用非捕获组和正向断言来确保匹配的是连续的[[数字]]序列 + const regexOptimized = /\[\[(\d+)\]](?:\s*\[\[(\d+)\]])*/g; + + // 替换函数(优化版),直接处理整个匹配到的字符串 + function replaceWithDivSpanOptimized(match: any) { + // 提取出所有数字,由于我们已经知道匹配的是连续的[[数字]]序列,所以可以直接分割字符串 + const numbers = match + .slice(2, -2) + .split(']][[') + .map((num: any) => parseInt(num, 10)); + return `${numbers.map((num: number) => `${num}`).join('')}`; + } + + // 使用优化后的正则表达式和替换函数处理Markdown字符串 + const resultOptimized = str.replace(regexOptimized, replaceWithDivSpanOptimized); + + return resultOptimized; +}; + +export const replaceStr = (str: string) => { + return str.replace(/\[\[(\d+)\]\]/g, (match: any, number: any) => { + // 创建一个带有class为'f'的span元素,并将数字作为文本内容 + return `${number}`; + }); +}; diff --git a/frontend/React/src/pages/render/index.module.less b/frontend/React/src/pages/render/index.module.less deleted file mode 100644 index 0486986ad449b7bb326096fd41a5c68e1b047b7e..0000000000000000000000000000000000000000 --- a/frontend/React/src/pages/render/index.module.less +++ /dev/null @@ -1,848 +0,0 @@ -// inspired by https://www.youtube.com/watch?v=Pl1Gw14pS2I -.mainPage { - display: flex; - justify-content: flex-start; - align-items: flex-start; - padding: 0 60px 60px; - height: 100%; - overflow: hidden; - position: relative; - min-width: 1280px; - max-width: 1920px; - margin: 0 auto; - - .chatContent { - position: relative; - display: flex; - justify-content: flex-start; - flex-direction: column; - flex-grow: 1; - margin-right: 40px; - height: calc(100% - 60px); - overflow-y: hidden; - padding: 32px 0; - box-sizing: border-box; - - .top { - height: calc(100% - 110px); - overflow-y: auto; - margin-bottom: 40px; - } - - .top::-webkit-scrollbar { - width: 6px; - } - - .top::-webkit-scrollbar-track { - background-color: rgba(255, 255, 255, 0); - border-radius: 100px; - } - - .top::-webkit-scrollbar-thumb { - background-color: rgba(255, 255, 255, 0); - border-radius: 100px; - } - - .question { - display: flex; - justify-content: flex-end; - margin-bottom: 40px; - - span { - padding: 12px 20px; - color: #121316; - font-size: 14px; - line-height: 24px; - border-radius: 8px; - background: #FFF; - max-width: 93.75%; - } - } - - .end { - position: absolute; - right: 0; - background-color: #fff; - display: flex; - justify-content: center; - align-items: center; - border-left: 1px solid #D7D8DD; - padding-left: 16px; - - .node { - position: relative; - - &::before { - content: ""; - border: 1px solid #D7D8DD; - border-top: none; - border-left: none; - width: calc(16px - 2px); - height: 0px; - position: absolute; - left: -16px; - top: 50%; - // transform: translateY(-50%); - } - - article { - padding: 8px 16px; - border-radius: 8px; - border: 1px solid transparent; - color: #4082FE; - text-align: center; - font-size: 14px; - line-height: 24px; - box-sizing: border-box; - background: rgba(232, 233, 249); - color: #2126C0; - } - } - } - - .answer { - border-radius: 8px; - background: rgba(33, 38, 192, 0.10); - padding: 12px; - - .inner { - width: 100%; - background-color: #fff; - border-radius: 4px; - padding: 8px; - box-sizing: border-box; - transition: all 0.5s ease; - margin-bottom: 18px; - - .mapArea { - width: 100%; - overflow-x: auto; - overflow-y: hidden; - - &::-webkit-scrollbar { - height: 6px; - } - - &::-webkit-scrollbar-track { - background-color: rgba(255, 255, 255, 0); - border-radius: 10px; - } - - &::-webkit-scrollbar-thumb { - background-color: #d7d8dd; - border-radius: 100px; - } - } - - } - - - .response { - color: #121316; - font-size: 14px; - line-height: 24px; - padding: 18px 42px; - - h3 { - font-size: 24px; - font-weight: 600; - line-height: 36px; - margin: 0 0 16px 0; - } - - h4 { - font-size: 20px; - font-weight: 600; - line-height: 30px; - margin: 0 0 8px 0; - } - - p { - color: rgba(18, 19, 22, 0.80); - font-size: 16px; - font-weight: 400; - line-height: 28px; - margin: 0 0 16px 0; - } - - ul { - margin-bottom: 8px; - padding-left: 22px; - } - - li { - color: rgba(18, 19, 22, 0.80); - font-size: 16px; - font-weight: 400; - line-height: 28px; - - p { - margin-bottom: 4px; - } - } - } - } - - .sendArea { - display: flex; - width: 100%; - box-sizing: border-box; - padding: 10px 12px 10px 24px; - justify-content: space-between; - align-items: center; - border-radius: 8px; - border: 2px solid var(--fill-5, #464A53); - background: #FFF; - position: relative; - - :global { - .ant-input { - &:focus { - box-shadow: none !important; - outline: 0 !important; - } - } - } - - input { - height: 36px; - line-height: 36px; - flex-grow: 1; - border: 0; - outline: 0; - - &:focus { - border: 0; - outline: 0; - } - } - - button { - display: flex; - justify-content: flex-start; - align-items: center; - border: 0; - background-color: #fff; - cursor: pointer; - padding: 8px; - width: 65px; - flex-shrink: 0; - - img { - margin-right: 4px; - } - } - } - - .notice { - color: #12131659; - padding-top: 8px; - text-align: center; - font-weight: 400; - - a { - text-decoration: none; - color: #444; - display: inline-flex; - align-items: center; - - span { - font-size: 18px; - } - } - } - } - - .progressContent { - width: 44.44%; - flex-shrink: 0; - box-sizing: border-box; - padding: 24px; - border-radius: 8px; - border: rgba(33, 38, 192, 0.10); - background: rgba(255, 255, 255, 0.80); - height: calc(100% - 60px); - overflow-y: auto; - position: relative; - - &::-webkit-scrollbar { - width: 6px; - } - - &::-webkit-scrollbar-track { - background-color: rgba(255, 255, 255, 0); - border-radius: 100px; - } - - &::-webkit-scrollbar-thumb { - background-color: rgba(255, 255, 255, 0); - border-radius: 100px; - } - - .toggleIcon { - position: absolute; - right: 24px; - top: 28px; - cursor: pointer; - } - - .titleNode { - color: #121316; - font-size: 24px; - font-weight: 600; - line-height: 36px; - margin-bottom: 24px; - } - - .conclusion { - padding-top: 8px; - color: #121316; - font-size: 14px; - line-height: 24px; - - ul { - padding-left: 24px; - } - } - - .steps { - .title { - color: var(--100-text-5, #121316); - font-size: 20px; - font-weight: 600; - line-height: 30px; - display: flex; - justify-content: flex-start; - align-items: center; - position: relative; - - .open { - position: absolute; - right: 0; - font-size: 20px; - font-weight: normal; - - span { - color: #121316; - opacity: 0.6; - } - } - - i { - width: 12px; - height: 12px; - border-radius: 50%; - background-color: #2126C0; - margin-right: 8px; - } - } - - &.thinking, - &.select { - margin-bottom: 24px; - } - - &.select { - .searchList { - margin-top: 0 !important; - border-radius: 8px; - background: var(--fill-2, #F4F5F9); - padding: 8px; - } - } - - .con { - margin-left: 5px; - padding-top: 8px; - padding-left: 15px; - border-left: 1px solid rgba(33, 38, 192, 0.20); - height: auto; - - &.collapsed { - overflow: hidden; - height: 0; - padding-top: 0; - transition: all 1s; - } - - .subTitle { - color: var(--100-text-5, #121316); - font-size: 14px; - font-weight: 600; - line-height: 24px; - margin-bottom: 4px; - - span { - margin-right: 4px; - } - } - - .query, - >.searchList { - margin-top: 24px; - // margin-bottom: 24px; - } - - .query { - &-Item { - display: inline-flex; - padding: 4px 8px; - margin-right: 4px; - margin-bottom: 4px; - border-radius: 4px; - border: 1px solid #EBECF0; - color: rgba(18, 19, 22, 0.80); - font-size: 14px; - line-height: 24px; - height: 32px; - box-sizing: border-box; - overflow: hidden; - // animation: fadeIn linear 2s; - } - } - - .searchList { - .thought { - color: rgba(18, 19, 22, 0.80); - font-size: 14px; - line-height: 24px; - margin-bottom: 16px; - } - - .scrollCon { - padding-right: 6px; - max-height: 300px; - overflow-y: auto; - position: relative; - } - - .scrollCon::-webkit-scrollbar { - width: 6px; - } - - .scrollCon::-webkit-scrollbar-track { - background-color: rgba(255, 255, 255, 0); - border-radius: 100px; - } - - .scrollCon::-webkit-scrollbar-thumb { - background-color: #d7d8dd; - border-radius: 100px; - } - - .inner { - width: 100%; - border-radius: 8px; - background: var(--fill-2, #F4F5F9); - transition: all 0.5s ease; - box-sizing: border-box; - padding: 8px; - } - - .searchItem { - border-radius: 8px; - background: var(---fill-0, #FFF); - margin-bottom: 6px; - padding: 4px 8px; - transition: all 0.5s ease-in-out; - - &.highLight { - border: 1px solid var(---Success-6, #00B365); - background: linear-gradient(0deg, rgba(218, 242, 228, 0.40) 0%, rgba(218, 242, 228, 0.40) 100%), #FFF; - } - - p { - white-space: nowrap; - max-width: 95%; - overflow: hidden; - text-overflow: ellipsis; - margin: 0; - } - - p.summ { - color: rgba(18, 19, 22, 0.80); - font-size: 13px; - line-height: 20px; - margin-bottom: 2px; - } - - p.url { - color: var(--60-text-3, rgba(18, 19, 22, 0.60)); - font-size: 12px; - line-height: 18px; - padding-left: 20px; - } - } - } - - - } - } - } -} - -pre { - margin: 0; - padding-top: 8px; - color: #121316; - font-size: 14px; - line-height: 24px; - font-family: 'PingFang SC', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; - white-space: wrap; -} - -ul { - margin: 0; - padding: 0; -} - -.draft { - width: 100%; - white-space: wrap; - // display: flex; - // justify-content: flex-start; - // align-items: flex-start; - position: relative; - - .loading, - .loading>div { - position: relative; - box-sizing: border-box; - } - - .loading { - display: flex; - justify-content: center; - align-items: center; - font-size: 0; - color: #fff; - background-color: #f90; - width: 20px; - height: 20px; - border-radius: 50%; - margin-right: 3px; - flex-shrink: 0; - position: absolute; - top: 0; - left: 0; - } - - .loading>div { - display: inline-block; - float: none; - background-color: currentColor; - border: 0 solid currentColor; - } - - .loading>div:nth-child(1) { - animation-delay: -200ms; - } - - .loading>div:nth-child(2) { - animation-delay: -100ms; - } - - .loading>div:nth-child(3) { - animation-delay: 0ms; - } - - .loading>div { - width: 3px; - height: 3px; - margin: 2px 1px; - border-radius: 100%; - animation: ball-pulse 1s ease infinite; - } -} - -.mindmap { - position: relative; - - article { - padding: 6px 16px; - border-radius: 8px; - height: 38px; - border: 1px solid transparent; - background: #FFF; - color: #121316; - text-align: center; - font-size: 14px; - line-height: 24px; - position: relative; - box-sizing: border-box; - - &.loading { - line-height: 20px; - border-radius: 8px; - overflow: hidden; - border: 1px solid transparent; - padding: 4px; - - span { - color: #2126C0; - background-color: #fff; - border-radius: 4px; - line-height: 24px; - padding: 2px 12px; - } - - .looping { - --border-width: 4px; - --follow-panel-linear-border: linear-gradient(91deg, - #5551FF 0.58%, - #FF87DE 100.36%); - - position: absolute; - top: 0; - left: 0; - width: calc(100% + var(--border-width) * 2 - 8px); - height: calc(100%); - background: var(--follow-panel-linear-border); - background-size: 300% 300%; - background-position: 0 50%; - animation: moveGradient 4s alternate infinite; - } - } - - &.disabled { - border-radius: 8px; - border: 1px solid #D7D8DD; - color: rgba(18, 19, 22, 0.35); - } - - &.finished { - // cursor: pointer; - border: 1px solid #2126C0; - - .finishDot { - position: absolute; - top: 6px; - right: 6px; - width: 6px; - height: 6px; - background-color: #C9C0FE; - border-radius: 50%; - } - } - - &.init { - border: 1px solid transparent; - cursor: auto; - } - - span { - display: block; - white-space: nowrap; - max-width: 160px; - overflow: hidden; - text-overflow: ellipsis; - position: relative; - z-index: 20; - } - - span.status { - color: #4082FE; - } - - } - - // 第一个article,起始节点 - >li { - >article { - border-radius: 8px; - background: rgba(33, 38, 192, 0.10); - color: #2126C0; - } - } - - li { - list-style: none; - display: flex; - align-items: center; - box-sizing: border-box; - margin: 16px; - line-height: 1; - position: relative; - - &>ul.onlyone { - &:before { - opacity: 0; - } - - >li { - margin-left: 0px; - } - - &>li:after { - opacity: 0; - } - - &>li:before { - // left: 0; - } - } - - &>ul:before { - content: ""; - border: 1px solid #D7D8DD; - border-top: none; - border-left: none; - width: calc(16px - 2px); - height: 0px; - position: absolute; - left: 0; - top: 50%; - // transform: translateY(-50%); - } - - &:before { - content: ""; - border: 1px solid #D7D8DD; - border-top: none; - border-left: none; - width: 16px; - height: 0px; - position: absolute; - left: calc(-16px - 1px); - } - - &:after { - content: ""; - border: 1px solid #D7D8DD; - border-top: none; - border-left: none; - width: 0px; - height: calc(100% / 2 + 33px); - position: absolute; - left: calc(-16px - 2px); - } - - &:first-of-type:after { - top: 50%; - } - - &:last-of-type:after { - bottom: 50%; - } - - ul { - padding: 0 0 0 16px; - position: relative; - } - } - - &>li { - - &:after, - &:before { - display: none; - } - } - - .endLine { - border-bottom: 1px solid #D7D8DD; - width: 3000px; - transition: width 1s ease-in-out; - } -} - -.showRight { - position: fixed; - top: 80px; - right: -10px; - width: 42px; - cursor: pointer; - - img { - width: 100%; - } -} - -@keyframes ball-pulse { - - 0%, - 60%, - 100% { - opacity: 1; - transform: scale(1); - } - - 30% { - opacity: 0.1; - transform: scale(0.01); - } -} - -@keyframes moveGradient { - 50% { - background-position: 100% 50%; - } -} - -@keyframes fadeIn { - 0% { - width: 0; - opacity: 0; - } - - 100% { - width: auto; - opacity: 1; - } -} - -@keyframes unfold { - 0% { - height: auto; - } - - 100% { - height: 0; - } -} - - -.loading99 { - margin: 20px; - position: relative; - width: 1px; - height: 1px; -} - -.loading99:before, -.loading99:after { - position: absolute; - display: inline-block; - width: 15px; - height: 15px; - content: ""; - border-radius: 100%; - background-color: #5551FF; -} - -.loading99:before { - left: -15px; - animation: ball-pulse infinite 0.75s -0.4s cubic-bezier(0.2, 0.68, 0.18, 1.08); -} - -.loading99:after { - right: -15px; - animation: ball-pulse infinite 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08); -} - -@keyframes ball-pulse { - 0% { - transform: scale(1); - opacity: 1; - } - - 50% { - transform: scale(0.1); - opacity: 0.6; - } - - 100% { - transform: scale(1); - opacity: 1; - } -} diff --git a/frontend/React/src/pages/render/index.tsx b/frontend/React/src/pages/render/index.tsx deleted file mode 100644 index d37bbe08c9a111f56710a3b62c065f64565ab33d..0000000000000000000000000000000000000000 --- a/frontend/React/src/pages/render/index.tsx +++ /dev/null @@ -1,681 +0,0 @@ -import styles from './index.module.less'; -import { useEffect, useState, useRef, Children } from 'react'; -import MindMapItem from './mindMapItem'; -import PackIcon from '@/assets/pack-up.svg'; -import SendIcon from '@/assets/sendIcon.svg'; -import { Tooltip, Input, message } from 'antd'; -import IconFont from '@/components/iconfont'; -import ReactMarkdown from "react-markdown"; -import ShowRightIcon from "@/assets/show-right-icon.png"; -import rehypeRaw from 'rehype-raw'; -import classNames from 'classnames'; -import { fetchEventSource } from '@microsoft/fetch-event-source'; -import { GET_SSE_DATA } from '@/config/cgi'; -import { replaceStr } from '@/utils/tools'; - -const RenderTest = () => { - let eventSource: any = null; - let sseTimer: any = useRef(null); - const [isWaiting, setIsWaiting] = useState(false); - const [question, setQuestion] = useState(""); - const [stashQuestion, setStashQuestion] = useState(""); - const [isEnd, setIsEnd] = useState(false); - const [showEndNode, setShowEndNode] = useState(false); - // 一组节点的渲染草稿 - const [draft, setDraft] = useState(''); - // 一轮完整对话结束 - const [chatIsOver, setChatIsOver] = useState(true); - // 一组节点的思考草稿是不是打印结束 - const [draftEnd, setDraftEnd] = useState(false); - - const [progress1, setProgress1] = useState(''); - const [progress2, setProgress2] = useState(''); - const [progressEnd, setProgressEnd] = useState(false); - - const [conclusion, setConclusion] = useState(''); - const [stashConclusion, setstashConclusion] = useState(''); - - const [query, setQuery] = useState([]); - const [searchList, setSearchList] = useState([]); - // 整体的渲染树 - const [renderData, setRenderData] = useState([]); - const [currentNode, setCurrentNode] = useState(null); - // 渲染minddata里的第几个item - const [renderIndex, setRenderIndex] = useState(0); - const [response, setResponse] = useState(""); - const [currentStep, setCurrentStep] = useState(0); - // steps展开收起的信息 - const [collapseInfo, setCollapseInfo] = useState([true, true]); - const [mapWidth, setMapWidth] = useState(0); - // 是否展示右侧内容 - const [showRight, setShowRight] = useState(true); - - const [currentNodeRendering, setCurrentNodeRendering] = useState(false); - const [selectedIds, setSelectedIds] = useState([]); - const [nodeName, setNodeName] = useState(''); - const hasHighlight = useRef(false); - const conclusionRender = useRef(false); - const nodeDraftRender = useRef(false); - const [obj, setObj] = useState(null); - const [nodeOutputEnd, setNodeEnd] = useState(false); - const [adjList, setAdjList] = useState([]); - - const TEXT_INTERVAL = 20; - const SEARCHLIST_INTERVAL = 80; - - - const toggleRight = () => { - setShowRight(!showRight); - }; - - const findAndUpdateStatus = (nodes: any[], targetNode: any) => { - return nodes.map((node) => { - if (node.state === 1 && node.id !== 0) { - return { ...node, state: 3 }; - } - - if (node.name === targetNode) { - return { ...node, state: 1 }; - } - - if (node.children) { - // 递归地在子节点中查找 - node.children = findAndUpdateStatus(node.children, targetNode); - } - - return node; - }); - } - - const generateEndStyle = () => { - // 获取所有class为endline的div元素 - const endlineDivs = document.getElementsByClassName('endline'); - const mindMap = document.getElementById("mindMap"); - // 确保至少有两个元素 - if (endlineDivs.length >= 2 && mindMap) { - // 获取第一个和最后一个元素的边界框(bounding rectangle) - const firstRect = endlineDivs[0].getBoundingClientRect(); - const lastRect = endlineDivs[endlineDivs.length - 1].getBoundingClientRect(); - const mindMapRect = mindMap?.getBoundingClientRect(); - // 计算y值的差值 - const yDiff = lastRect.top - firstRect.top; - // const top = firstRect.top - mindMapRect.top; - // 如果需要包含元素的完整高度(不仅仅是顶部位置),可以加上元素的高度 - // const yDiffWithHeight = yDiff + (lastRect.height - firstRect.height); - return { - top: firstRect.top - mindMapRect.top, - height: yDiff + 1 - }; - } else { - return { - top: '50%', - height: 0 - }; - } - }; - - const generateWidth = () => { - const articles = document.querySelectorAll('article'); - // 确保至少有两个元素 - if (articles?.length) { - let maxRight = 0; - articles.forEach((item, index) => { - if (item.getBoundingClientRect().right > maxRight) { - maxRight = item.getBoundingClientRect().right; - } - }) - const firstArticle = articles[0].getBoundingClientRect(); - if (maxRight - firstArticle.left + 200 > mapWidth) { - return maxRight - firstArticle.left + 200 - } else { - return mapWidth; - } - } else { - return 100; - } - }; - - // 逐字渲染 - const renderDraft = (str: string, type: string, endCallback: () => void) => { - // 已经输出的字符数量 - let outputIndex = 0; - - // 输出字符的函数 - const outputText = () => { - // 给出高亮后draft输出的结束标志 - if (type === 'stepDraft-1' && outputIndex + 3 > str?.length) { - nodeDraftRender.current = true; - } - // 如果还有字符未输出 - if (outputIndex < str?.length) { - // 获取接下来要输出的1个字符(或剩余字符,如果不足3个) - let chunk = str.slice(outputIndex, Math.min(outputIndex + 10, str.length)); - // 更新已输出字符的索引 - outputIndex += chunk.length; - if (type === 'thought') { - setDraft(str.slice(0, outputIndex)); - } else if (type === "stepDraft-0") { - setProgress1(str.slice(0, outputIndex)); - } else if (type === "stepDraft-1") { - setProgress2(str.slice(0, outputIndex)); - } else if (type === "conclusion") { - setConclusion(str.slice(0, outputIndex)); - } else if (type === "response") { - setResponse(str.slice(0, outputIndex)); - } - } else { - // 如果没有更多字符需要输出,则清除定时器 - clearInterval(intervalId); - endCallback && endCallback() - } - } - - // 设定定时器ID - let intervalId = setInterval(outputText, TEXT_INTERVAL); - } - - // 渲染搜索结果renderSearchList - const renderSearchList = () => { - let outputIndex = 0; - const content = JSON.parse(currentNode.actions[currentStep].result[0].content); - - const arr: any = Object.keys(content).map(item => { - return { id: item, ...content[item] }; - }); - const len = Object.keys(content).length; - const outputText = () => { - outputIndex++; - if (outputIndex < len + 1) { - setSearchList(arr.slice(0, outputIndex)); - } else { - clearInterval(intervalId); - } - }; - // 设定定时器ID - let intervalId = setInterval(outputText, SEARCHLIST_INTERVAL); - }; - - // 高亮searchList - const highLightSearchList = (ids: any) => { - setSelectedIds([]); - const newStep = currentStep + 1; - setCurrentStep(newStep); - const highlightArr: any = [...searchList]; - highlightArr.forEach((item: any) => { - if (ids.includes(Number(item.id))) { - item.highLight = true; - } - }) - highlightArr.sort((item1: any, item2: any) => { - if (item1.highLight === item2.highLight) { - return 0; - } - // 如果item1是highlight,放在前面 - if (item1.highLight) { - return -1; - } - // 如果item2是highlight,放在后面 - return 1; - }) - setSearchList(highlightArr); - renderDraft(currentNode.actions[1].thought, `stepDraft-1`, () => { }); - hasHighlight.current = true; // 标记为高亮已执行 - }; - - // 渲染结论 - const renderConclusion = () => { - const res = window.localStorage.getItem('nodeRes') || ''; - const replaced = replaceStr(res); - // setTimeout(() => { setCollapseInfo([false, false]); }, 2000); - setCollapseInfo([false, false]); - setConclusion(replaced); - setstashConclusion(res); - // 给出conclusion结束的条件 - if (stashConclusion.length + 5 > res.length) { - conclusionRender.current = true; - setProgressEnd(true); - } - }; - - // 渲染query - const renderQuery = (endCallback: () => void) => { - const queries = currentNode.actions[currentStep]?.args?.query; - setQuery(queries); - endCallback && endCallback(); - }; - - const renderSteps = () => { - setCurrentNodeRendering(true); - const queryEndCallback = () => { - if (currentNode.actions[currentStep].result[0].content) { - if (currentNode.actions[currentStep].type === "BingBrowser.search" || currentNode.actions[currentStep].type === "BingBrowser") { - renderSearchList(); - } - } - }; - const thoughtEndCallback = () => { - if (currentNode.actions[currentStep]?.args?.query?.length) { - renderQuery(queryEndCallback); - } else { - queryEndCallback(); - } - }; - if (currentNode.actions[currentStep].thought) { - renderDraft(currentNode.actions[currentStep].thought, `stepDraft-${currentStep}`, thoughtEndCallback); - } - } - - // 展开收起 - const toggleCard = (index: number) => { - const arr = [...collapseInfo]; - arr[index] = !arr[index]; - setCollapseInfo(arr); - }; - - // 渲染过程中保持渲染文字可见 - const keepScrollTop = (divA: any, divB: any) => { - // 获取 divB 的当前高度 - const bHeight = divB.offsetHeight; - - // 检查 divA 是否需要滚动(即 divB 的高度是否大于 divA 的可视高度) - if (bHeight > divA.offsetHeight) { - // 滚动到 divB 的底部在 divA 的可视区域内 - divA.scrollTop = bHeight - divA.offsetHeight; - } - }; - - useEffect(() => { - setRenderData([ - { - id: 0, - state: 3, - name: '原始问题', - children: adjList - } - ]) - }, [JSON.stringify(adjList)]); - - useEffect(() => { - console.log('render data changed-----', renderData); - }, [renderData]); - - useEffect(() => { - if (currentStep === 1) { - setCollapseInfo([false, true]); - } - }, [currentStep]); - - useEffect(() => { - if (nodeOutputEnd && !localStorage.getItem('nodeRes')) { - // 如果节点输出结束了,但是response还没有结束,认为节点渲染已结束 - conclusionRender.current = true; - setProgressEnd(true); - return; - } - if (nodeDraftRender.current && localStorage.getItem('nodeRes')) { - renderConclusion(); - } - }, [localStorage.getItem('nodeRes'), nodeDraftRender.current, nodeOutputEnd]); - - useEffect(() => { - if (obj?.response?.nodes[obj.current_node]?.detail?.state !== 1) { - setIsWaiting(true); - } - if (obj?.response?.nodes?.[obj.current_node].detail?.state === 0 && currentNode?.current_node === obj.current_node) { - console.log('node render end-----', obj); - setNodeEnd(true); - } - - if (obj?.current_node && obj?.response?.state === 3) { - // 当node节点的数据可以开始渲染时,给currentnode赋值 - // update conclusion - if (obj.response.nodes[obj.current_node]?.detail?.actions?.length === 2 && - obj.response.nodes[obj.current_node]?.detail?.state === 1 && - obj.response.nodes[obj.current_node]?.detail.response) { - window.localStorage.setItem('nodeRes', obj.response.nodes[obj.current_node]?.detail.response); - } - if (obj.current_node && - (obj.response.nodes[obj.current_node]?.detail?.state === 1) && - obj.response.nodes[obj.current_node]?.detail?.actions?.length && - currentStep === 0 && - currentNode?.current_node !== obj?.current_node - ) { - // 更新当前渲染节点 - console.log('update current node----'); - setIsWaiting(false); - setCurrentNode({ ...obj.response.nodes[obj.current_node]?.detail, current_node: obj.current_node }); - } - - // 设置highlight - if (!selectedIds.length && - obj.response.nodes[obj.current_node]?.detail?.actions?.[1]?.type === 'BingBrowser.select' && - (obj.response.nodes[obj.current_node]?.detail?.state === 1)) { - setSelectedIds(obj.response.nodes[obj.current_node]?.detail?.actions?.[1]?.args?.select_ids || []); - setCurrentNode({ ...obj.response.nodes[obj.current_node]?.detail, current_node: obj.current_node }); - } - } - }, [obj]); - - useEffect(() => { - // 输出思考过程 - if (!currentNode || currentNodeRendering) { return; } - renderSteps(); - }, [currentNode, currentNodeRendering, selectedIds]); - - useEffect(() => { - if (!hasHighlight.current && selectedIds.length && currentNode?.actions.length === 2) { - // 渲染高亮的search信息 - highLightSearchList(selectedIds); - } - }, [selectedIds, currentNode]); - - useEffect(() => { - // 当前节点渲染结束 - if (nodeName && nodeName !== currentNode?.current_node && progressEnd && !isEnd) { - resetNode(nodeName); - setMapWidth(generateWidth()); - } - }, [nodeName, currentNode, progressEnd, isEnd]); - - let responseTimer: any = useRef(null); - useEffect(() => { - if (isEnd) { - responseTimer.current = setInterval(() => { - const divA = document.getElementById('chatArea') as HTMLDivElement; - const divB = document.getElementById('messageWindowId') as HTMLDivElement; - keepScrollTop(divA, divB); - if (chatIsOver) { - clearInterval(responseTimer.current); - } - }, 500); - setTimeout(() => { - setShowEndNode(true); - }, 300); - } else if (responseTimer.current) { - // 如果 isEnd 变为 false,清除定时器 - clearInterval(responseTimer.current); - responseTimer.current = null; - } - - // 返回清理函数,确保组件卸载时清除定时器 - return () => { - if (responseTimer.current) { - clearInterval(responseTimer.current); - responseTimer.current = null; - } - }; - }, [isEnd, chatIsOver]); - - useEffect(() => { - setRenderData([]); - setResponse(''); - setDraft(''); - setIsEnd(false); - setShowRight(true); - window.localStorage.setItem('nodeRes', ''); - window.localStorage.setItem('finishedNodes', ''); - }, [question]); - - const resetNode = (targetNode: string) => { - if (targetNode === 'response') return; // 如果开始response了,所有节点都渲染完了,不需要reset - // 渲染下一个节点前,初始化状态 - const newData = findAndUpdateStatus(renderData, targetNode); - console.log('reset node------', targetNode, renderData); - setCurrentStep(0); - setQuery([]); - setSearchList([]); - setConclusion(''); - setCollapseInfo([true, true]); - setProgress1(''); - setProgress2(''); - setProgressEnd(false); - setCurrentNode(null); - setCurrentNodeRendering(false); - setSelectedIds([]); - setNodeEnd(false); - hasHighlight.current = false; - nodeDraftRender.current = false; - conclusionRender.current = false; - window.localStorage.setItem('nodeRes', ''); - }; - - const formatData = (data: any) => { - try { - setIsWaiting(false); - const obj = JSON.parse(data); - if (!obj.current_node && obj.response.state === 0) { - console.log('chat is over end-------'); - setChatIsOver(true); - return; - } - if (!obj.current_node && obj.response.state === 9) { - setShowRight(false); - setIsEnd(true); - const replaced = replaceStr(obj.response.response); - setResponse(replaced); - return; - } - if (!obj.current_node && obj.response.state === 1 && !currentNode) { - // 有thought,没有node - setDraftEnd(false); - setDraft(obj.response.response); - } - if (!obj.current_node && (obj.response.state !== 1 || obj.response.state !== 0 || obj.response.state !== 9)) { - // 有thought,没有node, 不用处理渲染 - //console.log('loading-------------', obj); - setDraftEnd(true); - setIsWaiting(true); - } - if (obj.current_node && obj.response.state === 3) { - setNodeName(obj.current_node); - // 有node - setObj(obj); - const newAdjList = obj.response?.adjacency_list; - if (newAdjList?.length > 0) { - setAdjList(newAdjList); - } - } - } catch (err) { - console.log('format error-----', err); - } - }; - - const startEventSource = () => { - if (!chatIsOver) { - message.warning('有对话进行中!'); - return; - } - setQuestion(stashQuestion); - setChatIsOver(false); - const postData = { - inputs: [ - { - role: 'user', - content: stashQuestion - } - ] - } - const ctrl = new AbortController(); - eventSource = fetchEventSource(GET_SSE_DATA, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(postData), - onmessage(ev) { - formatData(ev.data); - }, - onerror(err) { - console.log('sse error------', err); - }, - // signal: ctrl.signal, - }); - }; - - const abortEventSource = () => { - if (eventSource) { - eventSource.close(); // 或使用其他方法关闭连接,具体取决于库的API - eventSource = null; - console.log('EventSource connection aborted due to timeout.'); - message.error('连接中断,2s后即将刷新页面---'); - setTimeout(() => { - location.reload(); - }, 2000); - } - }; - - return
    -
    -
    -
    - { - question &&
    - {question} -
    - } - { - (draft || response || renderData?.length > 0) && -
    - { - renderData?.length > 0 ?
    -
    -
      - {renderData.map((item: any) => ( - - ))} - {showEndNode && -
      -
      -
      最终回复
      -
      -
      - } -
    -
    -
    : <> - } - { - !response &&
    - {/* {!draftEnd && draft &&
    -
    -
    -
    -
    } */} - {replaceStr(draft)} -
    - } - {response &&
    - {response} -
    } -
    - } -
    -
    -
    - { setStashQuestion(e.target.value) }} - onPressEnter={startEventSource} /> - -
    -
    如果想要更丝滑的体验,请在本地搭建-MindSearch
    -
    - {showRight &&
    - { - currentNode && <> -
    - - -
    -
    {currentNode?.content || currentNode?.node}
    - { - currentNode?.actions?.length ? <> - { - currentNode.actions.map((item: any, idx: number) => ( - currentStep >= idx &&
    -
    - {item.type === "BingBrowser.search" ? "思考" : item.type === "BingBrowser.select" ? "信息来源" : "信息整合"} -
    { toggleCard(idx) }}> - -
    -
    -
    - { - item.type === "BingBrowser.search" &&
    - {progress1} -
    - } - { - item.type === "BingBrowser.search" && query.length > 0 &&
    -
    搜索关键词
    - { - query.map((item, index) => (
    - {item} -
    )) - } -
    - } - { - currentStep === idx && searchList.length > 0 &&
    - {item.type === "BingBrowser.search" &&
    信息来源
    } - { - item.type === "BingBrowser.select" &&
    - {progress2} -
    - } -
    5 && currentStep === 0) ? { height: '300px' } : {}}> - -
    5 && currentStep === 0) ? { position: 'absolute', bottom: 0, left: 0 } : {}}> - - { - searchList.map((item: any, num: number) => ( -
    -

    {item.id}. {item?.title}

    -

    {item?.url}

    -
    - )) - } -
    -
    -
    - } -
    -
    - )) - } - : <> - } - - } - { - conclusion &&
    -
    - 信息整合 -
    -
    - {conclusion} -
    -
    - } - {isWaiting && question &&
    } -
    } - { - !showRight &&
    - -
    - } - -
    -}; - -export default RenderTest; diff --git a/frontend/React/src/pages/render/mindMapItem.tsx b/frontend/React/src/pages/render/mindMapItem.tsx deleted file mode 100644 index 79aa17f9c2c518da1a7e3923c15ef4f57a2e9f9d..0000000000000000000000000000000000000000 --- a/frontend/React/src/pages/render/mindMapItem.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import styles from './index.module.less'; -import classNames from 'classnames'; - -// 递归组件用于渲染mindMap中的节点 -const MindMapItem = ({ item, isEnd }: any) => { - // 递归渲染子节点 - const renderChildren = () => { - if (item.children && item.children.length > 0) { - return ( -
      - {item.children.map((child: any) => ( - - ))} -
    - ); - } - return null; - }; - - return ( -
  • -
    - {item.name} - {item.state === 1 &&
    } - {item.id !== 0 &&
    } -
    - {item.children.length > 0 && renderChildren()} - { - isEnd && item.children?.length === 0 &&
    - } -
  • - ); -}; - -export default MindMapItem; diff --git a/frontend/React/src/routes/routes.tsx b/frontend/React/src/routes/routes.tsx index 42b8f9c415c8c132c2fc773653b752dc3cde556f..2c232f3c42880dd77a57fedcb5581b70f7c5377d 100644 --- a/frontend/React/src/routes/routes.tsx +++ b/frontend/React/src/routes/routes.tsx @@ -1,8 +1,6 @@ -import RenderTest from "@/pages/render"; - +import MindSearchCon from '@/pages/mindsearch'; import { ReactElement } from "react"; import { Navigate, useRoutes } from "react-router-dom"; - interface RouteItem { path: string; needLogin?: boolean; @@ -13,7 +11,7 @@ const routes: RouteItem[] = [ { path: "/", needLogin: false, - element: , + element: , }, { path: "*", @@ -24,12 +22,6 @@ const routes: RouteItem[] = [ const WrapperRoutes = () => { return useRoutes( routes.map((item: RouteItem) => { - if (item.needLogin) { - return { - ...item, - element: <>, - }; - } return item; }), ); diff --git a/frontend/React/src/styles/fn.less b/frontend/React/src/styles/fn.less new file mode 100644 index 0000000000000000000000000000000000000000..c508c30119390abbd85e86bf324f784057e69764 --- /dev/null +++ b/frontend/React/src/styles/fn.less @@ -0,0 +1,86 @@ +@import './var.less'; + +// 单行省略 +.singleLine() { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +// 多行文本省略 +.ellispsis(@line) { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + /* autoprefixer: off */ + -webkit-box-orient: vertical; + /* autoprefixer: on */ + -webkit-line-clamp: @line; +} + +// 自定义滚动条 +.custom-scroll(@bg: transparent, @thumbBg: var(--grey-4)) { + &::-webkit-scrollbar { + width: 4px; + background: @bg; + height: 0px; + } + &::-webkit-scrollbar-thumb { + border-radius: 20px; + background: @bg; + } + &::-webkit-scrollbar-track { + border-radius: 20px; + background: @bg; + opacity: 0; + } + &:hover::-webkit-scrollbar-thumb { + background: @thumbBg; + } +} + +.common-button(@hoverBgColor:var( --blue-3),@bgColor:var(--theme-color),@radius:8px,@color:var(--white-95)) { + border-radius: @radius; + background-color: @bgColor; + display: flex; + align-items: center; + justify-content: center; + color: @color; + + &:hover { + background-color: @hoverBgColor; + cursor: pointer; + } +} + +.diyScroll(@bg: var(--white), @thumbBg: @thumbGrey,@width:@scrollWidth) { + &::-webkit-scrollbar { + width: @width; + background: @bg; + } + &::-webkit-scrollbar-thumb { + border-radius: 90px; + background: @bg; + } + &::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 4px @bg; + border-radius: 90px; + background: @bg; + opacity: 0; + } + &:hover::-webkit-scrollbar-thumb { + background: @thumbBg; + } +} + +.cursorBlink() { + &::after { + content: ''; + border: 1px solid var(--black); + margin-left: 0px; + flex: 1; + -webkit-animation: + typing 3s steps(16) forwards, + cursor 1s infinite; + } +} diff --git a/frontend/React/src/styles/var.less b/frontend/React/src/styles/var.less new file mode 100644 index 0000000000000000000000000000000000000000..b9c5ff0360a9f9b6414b60a887fba6667d16b118 --- /dev/null +++ b/frontend/React/src/styles/var.less @@ -0,0 +1,85 @@ +body { + // theme color ------start + --theme-color: rgba(52, 119, 235, 1); //#3477EB + --theme-color-9: rgba(52, 119, 235, 0.9); + --theme-color-8: rgba(52, 119, 235, 0.8); + --theme-color-7: rgba(52, 119, 235, 0.7); + --theme-color-6: rgba(52, 119, 235, 0.6); + --theme-color-5: rgba(52, 119, 235, 0.5); + --theme-color-4: rgba(52, 119, 235, 0.4); + --theme-color-3: rgba(52, 119, 235, 0.3); + --theme-color-2: rgba(52, 119, 235, 0.2); + --theme-color-1: rgba(52, 119, 235, 0.1); + --theme-color-0: rgba(52, 119, 235, 0); + + --dark: rgba(18, 19, 22, 1); + --dark-9: rgba(18, 19, 22, 0.9); + --dark-8: rgba(18, 19, 22, 0.8); + --dark-7: rgba(18, 19, 22, 0.7); + --dark-6: rgba(18, 19, 22, 0.6); + --dark-5: rgba(18, 19, 22, 0.5); + --dark-4: rgba(18, 19, 22, 0.4); + --dark-35: rgba(18, 19, 22, 0.35); + --dark-3: rgba(18, 19, 22, 0.3); + --dark-2: rgba(18, 19, 22, 0.2); + --dark-1: rgba(18, 19, 22, 0.1); + + --black: rgba(0, 0, 0, 1); + --black-9: rgba(0, 0, 0, 0.9); + --black-8: rgba(0, 0, 0, 0.8); + --black-7: rgba(0, 0, 0, 0.7); + --black-6: rgba(0, 0, 0, 0.6); + --black-5: rgba(0, 0, 0, 0.5); + --black-4: rgba(0, 0, 0, 0.4); + --black-3: rgba(0, 0, 0, 0.3); + --black-2: rgba(0, 0, 0, 0.2); + --black-1: rgba(0, 0, 0, 0.1); + --black-06: rgba(0, 0, 0, 0.06); + + --white: rgba(255, 255, 255, 1); + --white-95: rgba(255, 255, 255, 0.95); + --white-9: rgba(255, 255, 255, 0.9); + --white-8: rgba(255, 255, 255, 0.8); + --white-7: rgba(255, 255, 255, 0.7); + --white-6: rgba(255, 255, 255, 0.6); + --white-5: rgba(255, 255, 255, 0.5); + --white-4: rgba(255, 255, 255, 0.4); + --white-3: rgba(255, 255, 255, 0.3); + --white-2: rgba(255, 255, 255, 0.2); + --white-1: rgba(255, 255, 255, 0.1); + + --blue-1: rgba(230, 242, 255, 1); + --blue-2: rgba(179, 214, 255, 1); + --blue-3: rgba(94, 155, 247, 1); + --blue-4: rgba(13, 83, 222, 1); + --blue-5: rgba(2, 56, 184, 1); + --blue-6: rgba(52, 119, 235, 1); + + --grey-1: rgba(248, 249, 250, 1); + --grey-2: rgba(249, 249, 249, 1); + --grey-3: rgba(244, 245, 249, 1); + --grey-4: rgba(235, 236, 240, 1); + --grey-5: rgba(215, 216, 221, 1); + --grey-6: rgba(180, 182, 188, 1); + --grey-7: rgba(147, 150, 157, 1); + --grey-8: rgba(70, 74, 83, 1); + --grey-9: rgba(129, 135, 149, 1); + + --red-1: rgba(255, 117, 102, 1); + --red-2: rgba(207, 45, 39, 1); + --red-3: rgba(255, 136, 0, 1); + --red-4: rgba(245, 72, 59, 1); + + --yellow-1: rgba(255, 239, 158, 1); + // theme color ------end + + // size -------start + --screen-min-width: 1200px; + --screen-min-height: 540px; + --sidebar-mini: 56px; + --sidebar-normal: 152px; + --header-height: 44px; + // size -------end +} + +@scrollWidth: 8px; diff --git a/frontend/React/src/utils/tools.ts b/frontend/React/src/utils/tools.ts deleted file mode 100644 index cc7864fd93961ccc98ac9fcad43c728ec7933d00..0000000000000000000000000000000000000000 --- a/frontend/React/src/utils/tools.ts +++ /dev/null @@ -1,24 +0,0 @@ -export const getQueryString = (search: string, name: string) => { - if (!search) return ""; - const reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); - const result = search.substring(1).match(reg); - if (result != null) return result[2]; - return ""; -}; - -export const isInWhiteList = (url: string = "", list: string[] = []) => { - const baseUrl = url.split("?")[0]; - for (let whiteApi of list) { - if (baseUrl.endsWith(whiteApi)) { - return true; - } - } - return false; -}; - -export const replaceStr = (str: string) => { - return str.replace(/\[\[(\d+)\]\]/g, (match: any, number: any) => { - // 创建一个带有class为'fnn2'的span元素,并将数字作为文本内容 - return `${number}`; - }); -}; diff --git a/frontend/React/vite.config.ts b/frontend/React/vite.config.ts index 7eaf133fa30b642c5b9446728e93362017495189..7b7ecdce9d9f8a03baca0a5df45faa6d1f40e58b 100644 --- a/frontend/React/vite.config.ts +++ b/frontend/React/vite.config.ts @@ -51,12 +51,12 @@ export default defineConfig({ }, }, server: { - port: 7860, + port: 8080, proxy: { - // "/solve": { - // target: "...", - // changeOrigin: true, - // }, + "/solve": { + target: "", + changeOrigin: true, + }, }, }, }); diff --git a/frontend/React/windows-.png b/frontend/React/windows-.png deleted file mode 100644 index 33c8aa8bf4c411937fe2b2a2b09d3f8eaa483592..0000000000000000000000000000000000000000 Binary files a/frontend/React/windows-.png and /dev/null differ diff --git a/frontend/css/gradio_front.css b/frontend/css/gradio_front.css new file mode 100644 index 0000000000000000000000000000000000000000..1cb4671dd3f58eecacf09acbd89854935880ba19 --- /dev/null +++ b/frontend/css/gradio_front.css @@ -0,0 +1,82 @@ +.gradio-container.gradio-container-4-44-0.svelte-wpkpf6.app { + + /* /* background-image:url('https://images.unsplash.com/photo-1577563908411-5077b6dc7624?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&dl=volodymyr-hryshchenko-V5vqWC9gyEU-unsplash.jpg&w=2400'); */ + background-image: url('https://github.com/InternLM/MindSearch/blob/main/frontend/React/src/assets/background.png?raw=true'); + background-size: cover; + /*整张图片覆盖页面*/ + background-position: center; + background-repeat: no-repeat; + background-color: #f9fafb; +} + +.logo { + width: 150px; +} + +.chatbot-container { + height: auto; + max-height: 600px; + /* Maximum height for chatbots */ + overflow-y: auto; +} + +/* Style the main chat bar container */ +.chat-box { + background-color: #f9fafb; + border-radius: 8px; + padding: 10px; + display: flex; + align-items: center; +} + +/* Style the text input area */ +.editor { + border: none; + background-color: transparent; + padding: 5px; + width: 100%; + font-size: 16px; + flex: 9; + /* Allow the input to grow */ +} + + + +.toolbarButton { + padding: 5px 10px; + /* Reduce padding to make buttons smaller */ + font-size: 14px; + /* Adjust font size if needed */ + margin-left: 10px; + /* Add spacing between buttons */ +} + +.examples-container { + margin-top: 2px; + /* Reduced margin */ +} + +.flex-wrap.user.svelte-1e1jlin.svelte-1e1jlin.svelte-1e1jlin { + background-color: #93c5fd; +} + +#component-10 { + color: #f9fafb; + gap: 0px; +} + +#component-16 { + gap: 0px; +} + +#component-9 { + color: #f9fafb; +} + +#component-1 { + color: #f9fafb; +} + +.gradio-app.gradio-container.gradio-container-4-44-0.contain.chat-box { + background-color: #f9fafb; +} \ No newline at end of file diff --git a/frontend/gradio_agentchatbot/__init__.py b/frontend/gradio_agentchatbot/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..65046ce8d0da52bc2d450b170c4fa66ae044baeb --- /dev/null +++ b/frontend/gradio_agentchatbot/__init__.py @@ -0,0 +1,15 @@ +# This component is modified from gradio_agentchatbot: +# - https://huggingface.co/spaces/freddyaboulton/gradio_agentchatbot/tree/main/src/backend/gradio_agentchatbot + +from .agentchatbot import AgentChatbot, ChatbotData +from .utils import ChatFileMessage, ChatMessage, Message, ThoughtMetadata + +__all__ = [ + "AgentChatbot", + "ChatbotData", + "stream_from_transformers_agent", + "ChatMessage", + "ThoughtMetadata", + "ChatFileMessage", + "Message", +] diff --git a/frontend/gradio_agentchatbot/agentchatbot.py b/frontend/gradio_agentchatbot/agentchatbot.py new file mode 100644 index 0000000000000000000000000000000000000000..5ed1131788c5b98a4349dd77bdc504030a009215 --- /dev/null +++ b/frontend/gradio_agentchatbot/agentchatbot.py @@ -0,0 +1,192 @@ +"""gr.Chatbot() component.""" + +from __future__ import annotations + +from pathlib import Path +from typing import Any, Callable, Literal + +from gradio import utils +from gradio.components.base import Component +from gradio.events import Events +from gradio.processing_utils import move_resource_to_block_cache +from gradio_client import utils as client_utils + +from .utils import ChatbotData, ChatFileMessage, ChatMessage, FileData + + +class AgentChatbot(Component): + """ + Creates a chatbot that displays user-submitted messages and responses. Supports a subset of Markdown including bold, italics, code, tables. + Also supports audio/video/image files, which are displayed in the AgentChatbot, and other kinds of files which are displayed as links. This + component is usually used as an output component. + + Demos: chatbot_simple, chatbot_multimodal + Guides: creating-a-chatbot + """ + + EVENTS = [Events.change] + data_model = ChatbotData + + def __init__( + self, + value: list[dict[str, Any]] | Callable | None = None, + *, + label: str | None = None, + every: float | None = None, + show_label: bool | None = None, + container: bool = True, + scale: int | None = None, + min_width: int = 160, + visible: bool = True, + elem_id: str | None = None, + elem_classes: list[str] | str | None = None, + render: bool = True, + key: int | str | None = None, + height: int | str | None = None, + latex_delimiters: list[dict[str, str | bool]] | None = None, + rtl: bool = False, + show_share_button: bool | None = None, + show_copy_button: bool = False, + avatar_images: tuple[str | Path | None, str | Path | None] | None = None, + sanitize_html: bool = True, + render_markdown: bool = True, + bubble_full_width: bool = True, + line_breaks: bool = True, + likeable: bool = False, + layout: Literal["panel", "bubble"] | None = None, + placeholder: str | None = None, + ): + """ + Parameters: + value: Default value to show in chatbot. If callable, the function will be called whenever the app loads to set the initial value of the component. + label: The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to. + every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute. + show_label: if True, will display label. + container: If True, will place the component in a container - providing some extra padding around the border. + scale: relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True. + min_width: minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first. + visible: If False, component will be hidden. + elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles. + elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles. + render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later. + key: if assigned, will be used to assume identity across a re-render. Components that have the same key across a re-render will have their value preserved. + height: The height of the component, specified in pixels if a number is passed, or in CSS units if a string is passed. + latex_delimiters: A list of dicts of the form {"left": open delimiter (str), "right": close delimiter (str), "display": whether to display in newline (bool)} that will be used to render LaTeX expressions. If not provided, `latex_delimiters` is set to `[{ "left": "$$", "right": "$$", "display": True }]`, so only expressions enclosed in $$ delimiters will be rendered as LaTeX, and in a new line. Pass in an empty list to disable LaTeX rendering. For more information, see the [KaTeX documentation](https://katex.org/docs/autorender.html). + rtl: If True, sets the direction of the rendered text to right-to-left. Default is False, which renders text left-to-right. + show_share_button: If True, will show a share icon in the corner of the component that allows user to share outputs to Hugging Face Spaces Discussions. If False, icon does not appear. If set to None (default behavior), then the icon appears if this Gradio app is launched on Spaces, but not otherwise. + show_copy_button: If True, will show a copy button for each chatbot message. + avatar_images: Tuple of two avatar image paths or URLs for user and bot (in that order). Pass None for either the user or bot image to skip. Must be within the working directory of the Gradio app or an external URL. + sanitize_html: If False, will disable HTML sanitization for chatbot messages. This is not recommended, as it can lead to security vulnerabilities. + render_markdown: If False, will disable Markdown rendering for chatbot messages. + bubble_full_width: If False, the chat bubble will fit to the content of the message. If True (default), the chat bubble will be the full width of the component. + line_breaks: If True (default), will enable Github-flavored Markdown line breaks in chatbot messages. If False, single new lines will be ignored. Only applies if `render_markdown` is True. + likeable: Whether the chat messages display a like or dislike button. Set automatically by the .like method but has to be present in the signature for it to show up in the config. + layout: If "panel", will display the chatbot in a llm style layout. If "bubble", will display the chatbot with message bubbles, with the user and bot messages on alterating sides. Will default to "bubble". + placeholder: a placeholder message to display in the chatbot when it is empty. Centered vertically and horizontally in the AgentChatbot. Supports Markdown and HTML. If None, no placeholder is displayed. + """ + self.likeable = likeable + self.height = height + self.rtl = rtl + if latex_delimiters is None: + latex_delimiters = [{"left": "$$", "right": "$$", "display": True}] + self.latex_delimiters = latex_delimiters + self.show_share_button = ( + (utils.get_space() is not None) if show_share_button is None else show_share_button + ) + self.render_markdown = render_markdown + self.show_copy_button = show_copy_button + self.sanitize_html = sanitize_html + self.bubble_full_width = bubble_full_width + self.line_breaks = line_breaks + self.layout = layout + super().__init__( + label=label, + every=every, + show_label=show_label, + container=container, + scale=scale, + min_width=min_width, + visible=visible, + elem_id=elem_id, + elem_classes=elem_classes, + render=render, + key=key, + value=value, + ) + self.avatar_images: list[dict | None] = [None, None] + if avatar_images is None: + pass + else: + self.avatar_images = [ + self.serve_static_file(avatar_images[0]), + self.serve_static_file(avatar_images[1]), + ] + self.placeholder = placeholder + + def preprocess( + self, + payload: ChatbotData | None, + ) -> list[ChatMessage | ChatFileMessage] | None: + """ + Parameters: + payload: data as a ChatbotData object + Returns: + Passes the messages in the chatbot as a `list[list[str | None | tuple]]`, i.e. a list of lists. The inner list has 2 elements: the user message and the response message. Each message can be (1) a string in valid Markdown, (2) a tuple if there are displayed files: (a filepath or URL to a file, [optional string alt text]), or (3) None, if there is no message displayed. + """ + return payload.root + + def _postprocess_chat_messages(self, chat_message: ChatMessage) -> list[ChatMessage]: + if chat_message is None: + return None + + if isinstance(chat_message, ChatFileMessage): + chat_message.file.path = move_resource_to_block_cache( + chat_message.file.path, block=self + ) + return [chat_message] + + # extract file path from message + new_messages = [] + # for word in chat_message.content.split(" "): + # if (filepath := Path(word)).exists() and filepath.is_file(): + # filepath = move_resource_to_block_cache(filepath, block=self) + # mime_type = client_utils.get_mimetype(filepath) + # new_messages.append( + # ChatFileMessage( + # role=chat_message.role, + # thought=chat_message.thought, + # thought_metadata=chat_message.thought_metadata, + # file=FileData(path=filepath, mime_type=mime_type), + # ) + # ) + + return [chat_message, *new_messages] + + def postprocess( + self, + value: list[ChatMessage | ChatFileMessage] | None, + ) -> ChatbotData: + """ + Parameters: + value: expects a `list[list[str | None | tuple]]`, i.e. a list of lists. The inner list should have 2 elements: the user message and the response message. The individual messages can be (1) strings in valid Markdown, (2) tuples if sending files: (a filepath or URL to a file, [optional string alt text]) -- if the file is image/video/audio, it is displayed in the AgentChatbot, or (3) None, in which case the message is not displayed. + Returns: + an object of type ChatbotData + """ + if value is None: + return ChatbotData(root=[]) + processed_messages = [ + msg for message in value for msg in self._postprocess_chat_messages(message) + ] + return ChatbotData(root=processed_messages) + + def example_payload(self) -> Any: + return [ + ChatMessage(role="user", content="Hello!").model_dump(), + ChatMessage(role="assistant", content="How can I help you?").model_dump(), + ] + + def example_value(self) -> Any: + return [ + ChatMessage(role="user", content="Hello!"), + ChatMessage(role="assistant", content="How can I help you?"), + ] diff --git a/frontend/gradio_agentchatbot/chat_interface.py b/frontend/gradio_agentchatbot/chat_interface.py new file mode 100644 index 0000000000000000000000000000000000000000..e29a2df59521bbcdefcd2792c338af07fcef8e86 --- /dev/null +++ b/frontend/gradio_agentchatbot/chat_interface.py @@ -0,0 +1,695 @@ +""" +This file defines a useful high-level abstraction to build Gradio chatbots: ChatInterface. +""" + +from __future__ import annotations + +import inspect +from typing import AsyncGenerator, Callable, Generator, Literal, Protocol, Union, cast + +import anyio +from gradio.blocks import Blocks +from gradio.components import ( + JSON, + Button, + Chatbot, + Component, + Markdown, + MultimodalTextbox, + State, + Textbox, + get_component_instance, +) +from gradio.components.multimodal_textbox import MultimodalData +from gradio.events import Dependency, on +from gradio.exceptions import Error +from gradio.helpers import create_examples as Examples # noqa: N812 +from gradio.helpers import special_args +from gradio.layouts import Accordion, Group, Row +from gradio.routes import Request +from gradio.themes import ThemeClass as Theme +from gradio.utils import SyncToAsyncIterator, async_iteration, async_lambda +from gradio_client.documentation import document + +from .agentchatbot import AgentChatbot +from .utils import ApiReturnObj, FileDataDict, Message, MessageDict + +History = list[MessageDict | Message | ApiReturnObj] + +# class ChatInterfaceFn(Protocol): +# def __call__( +# self, message: str, history: list[MessageDict], *args, **kwargs +# ) -> MessageDict | ApiReturnObj | Message: ... + +# class ChatInterfaceGeneratorFn(Protocol): +# def __call__( +# self, message: str, history: list[MessageDict], *args, **kwargs +# ) -> Generator[MessageDict | ApiReturnObj | Message, None, None]: ... + +# class ChatInterfaceAsyncGeneratorFn(Protocol): +# async def __call__( +# self, message: str, history: list[MessageDict], *args, **kwargs +# ) -> AsyncGenerator[MessageDict | ApiReturnObj | Message, None]: ... + +# class ChatInterfaceAsyncFn(Protocol): +# async def __call__( +# self, message: str, history: list[MessageDict], *args, **kwargs +# ) -> MessageDict | ApiReturnObj | Message: ... + + +@document() +class ChatInterface(Blocks): + """ + ChatInterface is Gradio's high-level abstraction for creating chatbot UIs, and allows you to create + a web-based demo around a chatbot model in a few lines of code. Only one parameter is required: fn, which + takes a function that governs the response of the chatbot based on the user input and chat history. Additional + parameters can be used to control the appearance and behavior of the demo. + + Example: + import gradio as gr + + def echo(message, history): + return message + + demo = gr.ChatInterface(fn=echo, examples=["hello", "hola", "merhaba"], title="Echo Bot") + demo.launch() + Demos: chatinterface_multimodal, chatinterface_random_response, chatinterface_streaming_echo + Guides: creating-a-chatbot-fast, sharing-your-app + """ + + def __init__( + self, + fn: ChatInterfaceFn + | ChatInterfaceGeneratorFn + | ChatInterfaceAsyncFn + | ChatInterfaceAsyncGeneratorFn, + *, + multimodal: bool = False, + chatbot: Chatbot | None = None, + textbox: Textbox | MultimodalTextbox | None = None, + additional_inputs: str | Component | list[str | Component] | None = None, + additional_inputs_accordion_name: str | None = None, + additional_inputs_accordion: str | Accordion | None = None, + examples: list[str] | list[dict[str, str | list]] | list[list] | None = None, + cache_examples: bool | Literal["lazy"] | None = None, + examples_per_page: int = 10, + title: str | None = None, + description: str | None = None, + theme: Theme | str | None = None, + css: str | None = None, + js: str | None = None, + head: str | None = None, + analytics_enabled: bool | None = None, + submit_btn: str | None | Button = "Submit", + stop_btn: str | None | Button = "Stop", + retry_btn: str | None | Button = "🔄 Retry", + undo_btn: str | None | Button = "↩️ Undo", + clear_btn: str | None | Button = "🗑️ Clear", + autofocus: bool = True, + concurrency_limit: int | None | Literal["default"] = "default", + fill_height: bool = True, + delete_cache: tuple[int, int] | None = None, + ): + """ + Parameters: + fn: The function to wrap the chat interface around. Should accept two parameters: a string input message and list of two-element lists of the form [[user_message, bot_message], ...] representing the chat history, and return a string response. See the Chatbot documentation for more information on the chat history format. + multimodal: If True, the chat interface will use a gr.MultimodalTextbox component for the input, which allows for the uploading of multimedia files. If False, the chat interface will use a gr.Textbox component for the input. + chatbot: An instance of the gr.Chatbot component to use for the chat interface, if you would like to customize the chatbot properties. If not provided, a default gr.Chatbot component will be created. + textbox: An instance of the gr.Textbox or gr.MultimodalTextbox component to use for the chat interface, if you would like to customize the textbox properties. If not provided, a default gr.Textbox or gr.MultimodalTextbox component will be created. + additional_inputs: An instance or list of instances of gradio components (or their string shortcuts) to use as additional inputs to the chatbot. If components are not already rendered in a surrounding Blocks, then the components will be displayed under the chatbot, in an accordion. + additional_inputs_accordion_name: Deprecated. Will be removed in a future version of Gradio. Use the `additional_inputs_accordion` parameter instead. + additional_inputs_accordion: If a string is provided, this is the label of the `gr.Accordion` to use to contain additional inputs. A `gr.Accordion` object can be provided as well to configure other properties of the container holding the additional inputs. Defaults to a `gr.Accordion(label="Additional Inputs", open=False)`. This parameter is only used if `additional_inputs` is provided. + examples: Sample inputs for the function; if provided, appear below the chatbot and can be clicked to populate the chatbot input. Should be a list of strings if `multimodal` is False, and a list of dictionaries (with keys `text` and `files`) if `multimodal` is True. + cache_examples: If True, caches examples in the server for fast runtime in examples. The default option in HuggingFace Spaces is True. The default option elsewhere is False. + examples_per_page: If examples are provided, how many to display per page. + title: a title for the interface; if provided, appears above chatbot in large font. Also used as the tab title when opened in a browser window. + description: a description for the interface; if provided, appears above the chatbot and beneath the title in regular font. Accepts Markdown and HTML content. + theme: Theme to use, loaded from gradio.themes. + css: Custom css as a string or path to a css file. This css will be included in the demo webpage. + js: Custom js as a string or path to a js file. The custom js should be in the form of a single js function. This function will automatically be executed when the page loads. For more flexibility, use the head parameter to insert js inside