diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml new file mode 100644 index 0000000..a0c4cfa --- /dev/null +++ b/.github/workflows/docker-hub.yml @@ -0,0 +1,47 @@ +name: CI to Docker Hub + +on: + push: + tags: + - v*.*.* + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + context: ./ + file: ./Dockerfile + builder: ${{ steps.buildx.outputs.name }} + push: true + tags: ${{ secrets.DOCKER_HUB_USERNAME }}/blrec:latest,${{ secrets.DOCKER_HUB_USERNAME }}/blrec:${{ github.ref_name }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache + + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml new file mode 100644 index 0000000..b4ceabb --- /dev/null +++ b/.github/workflows/ghcr.yml @@ -0,0 +1,48 @@ +name: CI to GHCR + +on: + push: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + + - name: Login to ghcr + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + context: ./ + file: ./Dockerfile + builder: ${{ steps.buildx.outputs.name }} + push: true + tags: ghcr.io/${{ github.repository_owner }}/blrec:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache + + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/portable.yml b/.github/workflows/portable.yml new file mode 100644 index 0000000..0a65550 --- /dev/null +++ b/.github/workflows/portable.yml @@ -0,0 +1,105 @@ +name: Windows portable + +on: + push: + tags: + - v*.*.* + +env: + FFMPEG_ARCHIVE_URL: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n5.0-latest-win64-lgpl-shared-5.0.zip + FFMPEG_ARCHIVE_NAME: ffmpeg-n5.0-latest-win64-lgpl-shared-5.0.zip + PYTHON_ARCHIVE_URL: https://www.python.org/ftp/python/3.10.4/python-3.10.4-embed-amd64.zip + +jobs: + + build: + name: Build Windows portable distributions + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Download ffmpeg archive + run: Invoke-WebRequest -Uri $($env:FFMPEG_ARCHIVE_URL) -OutFile ffmpeg.zip + + - name: Download python archive + run: Invoke-WebRequest -Uri $($env:PYTHON_ARCHIVE_URL) -OutFile python.zip + + - name: Create build directory and dist directory + run: New-Item -Path @("build", "dist") -ItemType Directory + + - name: Unzip ffmpeg archive + run: Expand-Archive -LiteralPath "ffmpeg.zip" -DestinationPath "build" + + - name: Unzip Python archive + run: Expand-Archive -LiteralPath "python.zip" -DestinationPath "build\python" + + - name: Enter build directory + run: | + Set-Location -Path "build" + ls + + - name: Rename ffmpeg directory + working-directory: build + run: Rename-Item -Path $($env:FFMPEG_ARCHIVE_NAME).Substring(0, $($env:FFMPEG_ARCHIVE_NAME).Length - 4) "ffmpeg" + + - name: Sliming ffmpeg + working-directory: build + run: | + Get-ChildItem -Path "ffmpeg" -Exclude @("LICENSE.txt", "bin") | Remove-Item -Recurse + ls ffmpeg + + - name: Create venv + working-directory: build + run: python -m venv venv + + - name: Install packages + working-directory: build + run: | + ls ${{ github.workspace }} + .\venv\Scripts\activate + pip install ${{ github.workspace }} + ls venv\Lib\site-packages + + - name: Copy site-packages + shell: cmd + working-directory: build + run: (robocopy venv\Lib\site-packages python\Lib\site-packages /mir /xd __pycache__* pip* setuptools*) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0 + # https://ss64.com/nt/robocopy-exit.html + # https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code + # https://social.msdn.microsoft.com/Forums/en-US/d599833c-dcea-46f5-85e9-b1f028a0fefe/robocopy-exits-with-error-code-1 + + - name: Add search path + working-directory: build + run: Add-Content -Path "python\python310._pth" "Lib\site-packages" + + - name: Copy run.bat + working-directory: build + run: Copy-Item "${{ github.workspace }}\run.bat" -Destination ".\run.bat" + + - name: Exit build directory + working-directory: build + run: | + ls + Set-Location -Path ".." + + - name: Zip files + run: | + ls build + Compress-Archive -Path @("build\run.bat", "build\python", "build\ffmpeg") -DestinationPath "dist\blrec-${{ github.ref_name }}-win64.zip" + ls dist + + - name: Upload distributions to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: dist\* + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..c39e353 --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,31 @@ +name: CI to PyPI + +on: + push: + tags: + - v*.*.* + +jobs: + build-and-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v3 + with: + python-version: 3.8 + + - name: Install pypa/build + run: python -m pip install build --user + + - name: Build a binary wheel and a source tarball + run: python -m build --sdist --wheel --outdir dist/ . + + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@v1.5.0 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 86a51cd..ee86606 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # 更新日志 +## 1.6.0 + +- 更新 Pushplus 消息推送 url (issue #26) +- 邮箱通知支持 STARTTLS (issue #35) +- 超时没接收到推流事件弹幕自动开始录制流 (issue #31, #36) +- 增加一个源文件删除策略 +- 添加并优先使用 APP API (缓解被 ban 的几率) +- 改进启动时任务加载 (不用等加载完才可访问) +- 支持录制 HLS 直播流 (实验性) +- 去掉一行最多显示 3 个任务卡片的限制 (网格布局自适应) +- 在任务卡片上显示录制信息 (从任务卡片右下角菜单打开) +- 任务详情页面添加网络详情和图表 + +### P.S. + +支持录制 HLS 直播流需要 ffmpeg,获取直播流信息需要 ffprobe。 + +从命令行运行需自行安装 ffmpeg 和 ffprobe, docker 和绿色版已内置不需要安装。 + ## 1.6.0-alpha - REST API 支持获取正在录制的 flv 文件的路径和元数据 diff --git a/Dockerfile b/Dockerfile index 4b19bf4..921d231 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,13 @@ WORKDIR /app VOLUME ["/cfg", "/log", "/rec"] COPY src src/ -COPY setup.py setup.cfg . +COPY setup.py setup.cfg ./ -RUN apt-get update \ - && apt-get install -y --no-install-recommends build-essential python3-dev \ - && rm -rf /var/lib/apt/lists/* \ - && pip3 install --no-cache-dir -e . \ - && apt-get purge -y --auto-remove build-essential python3-dev +RUN apt-get update && \ + apt-get install -y --no-install-recommends ffmpeg build-essential python3-dev && \ + rm -rf /var/lib/apt/lists/* && \ + pip3 install --no-cache-dir -e . && \ + apt-get purge -y --auto-remove build-essential python3-dev # ref: https://github.com/docker-library/python/issues/60#issuecomment-134322383 ENV DEFAULT_SETTINGS_FILE=/cfg/settings.toml diff --git a/Dockerfile.mirrors b/Dockerfile.mirrors index f7b5349..94e8ec7 100644 --- a/Dockerfile.mirrors +++ b/Dockerfile.mirrors @@ -6,15 +6,15 @@ WORKDIR /app VOLUME ["/cfg", "/log", "/rec"] COPY src src/ -COPY setup.py setup.cfg . +COPY setup.py setup.cfg ./ -RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list \ - && sed -i "s/security.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list \ - && apt-get update \ - && apt-get install -y --no-install-recommends build-essential python3-dev \ - && rm -rf /var/lib/apt/lists/* \ - && pip3 install -i https://mirrors.aliyun.com/pypi/simple --no-cache-dir -e . \ - && apt-get purge -y --auto-remove build-essential python3-dev +RUN sed -i "s/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list && \ + sed -i "s/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends ffmpeg build-essential python3-dev && \ + rm -rf /var/lib/apt/lists/* && \ + pip3 install -i https://mirrors.aliyun.com/pypi/simple --no-cache-dir -e . && \ + apt-get purge -y --auto-remove build-essential python3-dev # ref: https://github.com/docker-library/python/issues/60#issuecomment-134322383 ENV DEFAULT_SETTINGS_FILE=/cfg/settings.toml diff --git a/README.md b/README.md index 78cbe64..dc0583a 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ ## 先决条件 Python 3.8+ - ffmpeg (如果需要转换 flv 为 mp4) + ffmpeg、 ffprobe ## 安装 diff --git a/run.bat b/run.bat new file mode 100644 index 0000000..7e582ae --- /dev/null +++ b/run.bat @@ -0,0 +1,22 @@ +@echo off +chcp 65001 + +set PATH=.\ffmpeg\bin;.\python;%PATH% + +REM 不使用代理 +set no_proxy=* + +REM 默认本地主机和端口绑定 +set host=localhost +set port=2233 + +REM 服务器主机和端口绑定,去掉注释并按照自己的情况修改。 +REM set host=0.0.0.0 +REM set port=80 + +set DEFAULT_LOG_DIR=日志文件 +set DEFAULT_OUT_DIR=录播文件 + +python -m blrec -c settings.toml --open --host %host% --port %port% + +pause diff --git a/setup.cfg b/setup.cfg index 5281270..81c93d3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,6 +38,7 @@ install_requires = typing-extensions >= 3.10.0.0 fastapi >= 0.70.0, < 0.71.0 email_validator >= 1.1.3, < 2.0.0 + click < 8.1.0 typer >= 0.4.0, < 0.5.0 aiohttp >= 3.8.1, < 4.0.0 requests >= 2.24.0, < 3.0.0 @@ -49,6 +50,8 @@ install_requires = attrs >= 21.2.0, < 22.0.0 lxml >= 4.6.4, < 5.0.0 toml >= 0.10.2, < 0.11.0 + m3u8 >= 1.0.0, < 2.0.0 + jsonpath == 0.82 psutil >= 5.8.0, < 6.0.0 rx >= 3.2.0, < 4.0.0 bitarray >= 2.2.5, < 3.0.0 diff --git a/src/blrec/__init__.py b/src/blrec/__init__.py index 41a7897..38dd5de 100644 --- a/src/blrec/__init__.py +++ b/src/blrec/__init__.py @@ -1,4 +1,4 @@ __prog__ = 'blrec' -__version__ = '1.6.0-alpha' +__version__ = '1.6.0' __github__ = 'https://github.com/acgnhiki/blrec' diff --git a/src/blrec/application.py b/src/blrec/application.py index 12d0507..e4c5c52 100644 --- a/src/blrec/application.py +++ b/src/blrec/application.py @@ -8,6 +8,7 @@ import psutil from . import __prog__, __version__ from .flv.data_analyser import MetaData +from .core.stream_analyzer import StreamProfile from .disk_space import SpaceMonitor, SpaceReclaimer from .bili.helpers import ensure_room_id from .task import ( @@ -17,7 +18,7 @@ from .task import ( VideoFileDetail, DanmakuFileDetail, ) -from .exception import ExistsError, ExceptionHandler +from .exception import ExistsError, ExceptionHandler, exception_callback from .event.event_submitters import SpaceEventSubmitter from .setting import ( SettingsManager, @@ -103,8 +104,9 @@ class Application: async def launch(self) -> None: self._setup() - await self._task_manager.load_all_tasks() logger.info(f'Launched Application v{__version__}') + task = asyncio.create_task(self._task_manager.load_all_tasks()) + task.add_done_callback(exception_callback) async def exit(self) -> None: await self._exit() @@ -130,68 +132,104 @@ class Application: async def add_task(self, room_id: int) -> int: room_id = await ensure_room_id(room_id) - if self._settings_manager.has_task_settings(room_id): + if self._task_manager.has_task(room_id): raise ExistsError( - f"a task for the room {room_id} is already existed" + f'a task for the room {room_id} is already existed' ) - settings = await self._settings_manager.add_task_settings(room_id) + settings = self._settings_manager.find_task_settings(room_id) + if not settings: + settings = await self._settings_manager.add_task_settings(room_id) + await self._task_manager.add_task(settings) - logger.info(f'Added task: {room_id}') return room_id async def remove_task(self, room_id: int) -> None: + logger.info(f'Removing task {room_id}...') await self._task_manager.remove_task(room_id) await self._settings_manager.remove_task_settings(room_id) - logger.info(f'Removed task: {room_id}') + logger.info(f'Successfully removed task {room_id}') async def remove_all_tasks(self) -> None: + logger.info('Removing all tasks...') await self._task_manager.remove_all_tasks() await self._settings_manager.remove_all_task_settings() - logger.info('Removed all tasks') + logger.info('Successfully removed all tasks') async def start_task(self, room_id: int) -> None: + logger.info(f'Starting task {room_id}...') await self._task_manager.start_task(room_id) await self._settings_manager.mark_task_enabled(room_id) - logger.info(f'Started task: {room_id}') + logger.info(f'Successfully started task {room_id}') async def stop_task(self, room_id: int, force: bool = False) -> None: + logger.info(f'Stopping task {room_id}...') await self._task_manager.stop_task(room_id, force) await self._settings_manager.mark_task_disabled(room_id) - logger.info(f'Stopped task: {room_id}') + logger.info(f'Successfully stopped task {room_id}') async def start_all_tasks(self) -> None: + logger.info('Starting all tasks...') await self._task_manager.start_all_tasks() await self._settings_manager.mark_all_tasks_enabled() - logger.info('Started all tasks') + logger.info('Successfully started all tasks') async def stop_all_tasks(self, force: bool = False) -> None: + logger.info('Stopping all tasks...') await self._task_manager.stop_all_tasks(force) await self._settings_manager.mark_all_tasks_disabled() - logger.info('Stopped all tasks') + logger.info('Successfully stopped all tasks') + + async def enable_task_monitor(self, room_id: int) -> None: + logger.info(f'Enabling monitor for task {room_id}...') + await self._task_manager.enable_task_monitor(room_id) + await self._settings_manager.mark_task_monitor_enabled(room_id) + logger.info(f'Successfully enabled monitor for task {room_id}') + + async def disable_task_monitor(self, room_id: int) -> None: + logger.info(f'Disabling monitor for task {room_id}...') + await self._task_manager.disable_task_monitor(room_id) + await self._settings_manager.mark_task_monitor_disabled(room_id) + logger.info(f'Successfully disabled monitor for task {room_id}') + + async def enable_all_task_monitors(self) -> None: + logger.info('Enabling monitors for all tasks...') + await self._task_manager.enable_all_task_monitors() + await self._settings_manager.mark_all_task_monitors_enabled() + logger.info('Successfully enabled monitors for all tasks') + + async def disable_all_task_monitors(self) -> None: + logger.info('Disabling monitors for all tasks...') + await self._task_manager.disable_all_task_monitors() + await self._settings_manager.mark_all_task_monitors_disabled() + logger.info('Successfully disabled monitors for all tasks') async def enable_task_recorder(self, room_id: int) -> None: + logger.info(f'Enabling recorder for task {room_id}...') await self._task_manager.enable_task_recorder(room_id) await self._settings_manager.mark_task_recorder_enabled(room_id) - logger.info(f'Enabled task recorder: {room_id}') + logger.info(f'Successfully enabled recorder for task {room_id}') async def disable_task_recorder( self, room_id: int, force: bool = False ) -> None: + logger.info(f'Disabling recorder for task {room_id}...') await self._task_manager.disable_task_recorder(room_id, force) await self._settings_manager.mark_task_recorder_disabled(room_id) - logger.info(f'Disabled task recorder: {room_id}') + logger.info(f'Successfully disabled recorder for task {room_id}') async def enable_all_task_recorders(self) -> None: + logger.info('Enabling recorders for all tasks...') await self._task_manager.enable_all_task_recorders() await self._settings_manager.mark_all_task_recorders_enabled() - logger.info('Enabled all task recorders') + logger.info('Successfully enabled recorders for all tasks') async def disable_all_task_recorders(self, force: bool = False) -> None: + logger.info('Disabling recorders for all tasks...') await self._task_manager.disable_all_task_recorders(force) await self._settings_manager.mark_all_task_recorders_disabled() - logger.info('Disabled all task recorders') + logger.info('Successfully disabled recorders for all tasks') def get_task_data(self, room_id: int) -> TaskData: return self._task_manager.get_task_data(room_id) @@ -205,6 +243,9 @@ class Application: def get_task_metadata(self, room_id: int) -> Optional[MetaData]: return self._task_manager.get_task_metadata(room_id) + def get_task_stream_profile(self, room_id: int) -> StreamProfile: + return self._task_manager.get_task_stream_profile(room_id) + def get_task_video_file_details( self, room_id: int ) -> Iterator[VideoFileDetail]: @@ -222,10 +263,14 @@ class Application: return self._task_manager.cut_stream(room_id) async def update_task_info(self, room_id: int) -> None: + logger.info(f'Updating info for task {room_id}...') await self._task_manager.update_task_info(room_id) + logger.info(f'Successfully updated info for task {room_id}') async def update_all_task_infos(self) -> None: + logger.info('Updating info for all tasks...') await self._task_manager.update_all_task_infos() + logger.info('Successfully updated info for all tasks') def get_settings( self, diff --git a/src/blrec/bili/api.py b/src/blrec/bili/api.py index fc9fb1f..958087a 100644 --- a/src/blrec/bili/api.py +++ b/src/blrec/bili/api.py @@ -1,4 +1,8 @@ -from typing import Any, Final +from abc import ABC +import hashlib +from urllib.parse import urlencode +from datetime import datetime +from typing import Mapping, Dict, Any, Final import aiohttp from tenacity import ( @@ -11,26 +15,10 @@ from .typing import QualityNumber, JsonResponse, ResponseData from .exceptions import ApiRequestError -__all__ = 'WebApi', +__all__ = 'AppApi', 'WebApi' -class WebApi: - BASE_API_URL: Final[str] = 'https://api.bilibili.com' - BASE_LIVE_API_URL: Final[str] = 'https://api.live.bilibili.com' - - GET_USER_INFO_URL: Final[str] = BASE_API_URL + '/x/space/acc/info' - - GET_DANMU_INFO_URL: Final[str] = BASE_LIVE_API_URL + \ - '/xlive/web-room/v1/index/getDanmuInfo' - ROOM_INIT_URL: Final[str] = BASE_LIVE_API_URL + '/room/v1/Room/room_init' - GET_INFO_URL: Final[str] = BASE_LIVE_API_URL + '/room/v1/Room/get_info' - GET_INFO_BY_ROOM_URL: Final[str] = BASE_LIVE_API_URL + \ - '/xlive/web-room/v1/index/getInfoByRoom' - GET_ROOM_PLAY_INFO_URL: Final[str] = BASE_LIVE_API_URL + \ - '/xlive/web-room/v2/index/getRoomPlayInfo' - GET_TIMESTAMP_URL: Final[str] = BASE_LIVE_API_URL + \ - '/av/v1/Time/getTimestamp?platform=pc' - +class BaseApi(ABC): def __init__(self, session: aiohttp.ClientSession): self._session = session self.timeout = 10 @@ -58,6 +46,135 @@ class WebApi: self._check_response(json_res) return json_res + +class AppApi(BaseApi): + # taken from https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/other/API_sign.md # noqa + _appkey = '1d8b6e7d45233436' + _appsec = '560c52ccd288fed045859ed18bffd973' + + _headers = { + 'User-Agent': 'Mozilla/5.0 BiliDroid/6.64.0 (bbcallen@gmail.com) os/android model/Unknown mobi_app/android build/6640400 channel/bili innerVer/6640400 osVer/6.0.1 network/2', # noqa + 'Connection': 'Keep-Alive', + 'Accept-Encoding': 'gzip', + } + + @classmethod + def signed(cls, params: Mapping[str, Any]) -> Dict[str, Any]: + if isinstance(params, Mapping): + params = dict(sorted({**params, 'appkey': cls._appkey}.items())) + else: + raise ValueError(type(params)) + query = urlencode(params, doseq=True) + sign = hashlib.md5((query + cls._appsec).encode()).hexdigest() + params.update(sign=sign) + return params + + async def get_room_play_info( + self, + room_id: int, + qn: QualityNumber = 10000, + *, + only_video: bool = False, + only_audio: bool = False, + ) -> ResponseData: + url = 'https://api.live.bilibili.com/xlive/app-room/v2/index/getRoomPlayInfo' # noqa + + params = self.signed({ + 'actionKey': 'appkey', + 'build': '6640400', + 'channel': 'bili', + 'codec': '0,1', # 0: avc, 1: hevc + 'device': 'android', + 'device_name': 'Unknown', + 'disable_rcmd': '0', + 'dolby': '1', + 'format': '0,1,2', # 0: flv, 1: ts, 2: fmp4 + 'free_type': '0', + 'http': '1', + 'mask': '0', + 'mobi_app': 'android', + 'need_hdr': '0', + 'no_playurl': '0', + 'only_audio': '1' if only_audio else '0', + 'only_video': '1' if only_video else '0', + 'platform': 'android', + 'play_type': '0', + 'protocol': '0,1', + 'qn': qn, + 'room_id': room_id, + 'ts': int(datetime.utcnow().timestamp()), + }) + + r = await self._get(url, params=params, headers=self._headers) + return r['data'] + + async def get_info_by_room(self, room_id: int) -> ResponseData: + url = 'https://api.live.bilibili.com/xlive/app-room/v1/index/getInfoByRoom' # noqa + + params = self.signed({ + 'actionKey': 'appkey', + 'build': '6640400', + 'channel': 'bili', + 'device': 'android', + 'mobi_app': 'android', + 'platform': 'android', + 'room_id': room_id, + 'ts': int(datetime.utcnow().timestamp()), + }) + + r = await self._get(url, params=params) + return r['data'] + + async def get_user_info(self, uid: int) -> ResponseData: + url = 'https://app.bilibili.com/x/v2/space' + + params = self.signed({ + 'build': '6640400', + 'channel': 'bili', + 'mobi_app': 'android', + 'platform': 'android', + 'ts': int(datetime.utcnow().timestamp()), + 'vmid': uid, + }) + + r = await self._get(url, params=params) + return r['data'] + + async def get_danmu_info(self, room_id: int) -> ResponseData: + url = 'https://api.live.bilibili.com/xlive/app-room/v1/index/getDanmuInfo' # noqa + + params = self.signed({ + 'actionKey': 'appkey', + 'build': '6640400', + 'channel': 'bili', + 'device': 'android', + 'mobi_app': 'android', + 'platform': 'android', + 'room_id': room_id, + 'ts': int(datetime.utcnow().timestamp()), + }) + + r = await self._get(url, params=params) + return r['data'] + + +class WebApi(BaseApi): + BASE_API_URL: Final[str] = 'https://api.bilibili.com' + BASE_LIVE_API_URL: Final[str] = 'https://api.live.bilibili.com' + + GET_USER_INFO_URL: Final[str] = BASE_API_URL + '/x/space/acc/info' + + GET_DANMU_INFO_URL: Final[str] = BASE_LIVE_API_URL + \ + '/xlive/web-room/v1/index/getDanmuInfo' + ROOM_INIT_URL: Final[str] = BASE_LIVE_API_URL + '/room/v1/Room/room_init' + GET_INFO_URL: Final[str] = BASE_LIVE_API_URL + '/room/v1/Room/get_info' + GET_INFO_BY_ROOM_URL: Final[str] = BASE_LIVE_API_URL + \ + '/xlive/web-room/v1/index/getInfoByRoom' + GET_ROOM_PLAY_INFO_URL: Final[str] = BASE_LIVE_API_URL + \ + '/xlive/web-room/v2/index/getRoomPlayInfo' + GET_TIMESTAMP_URL: Final[str] = BASE_LIVE_API_URL + \ + '/av/v1/Time/getTimestamp?platform=pc' + async def room_init(self, room_id: int) -> ResponseData: r = await self._get(self.ROOM_INIT_URL, params={'id': room_id}) return r['data'] diff --git a/src/blrec/bili/danmaku_client.py b/src/blrec/bili/danmaku_client.py index 5660dc7..b6bc6fd 100644 --- a/src/blrec/bili/danmaku_client.py +++ b/src/blrec/bili/danmaku_client.py @@ -15,7 +15,7 @@ from tenacity import ( retry_if_exception_type, ) -from .api import WebApi +from .api import AppApi, WebApi from .typing import Danmaku from ..event.event_emitter import EventListener, EventEmitter from ..exception import exception_callback @@ -52,14 +52,16 @@ class DanmakuClient(EventEmitter[DanmakuListener], AsyncStoppableMixin): def __init__( self, session: ClientSession, - api: WebApi, + appapi: AppApi, + webapi: WebApi, room_id: int, *, max_retries: int = 10, ) -> None: super().__init__() self.session = session - self.api = api + self.appapi = appapi + self.webapi = webapi self._room_id = room_id self._host_index: int = 0 @@ -151,7 +153,10 @@ class DanmakuClient(EventEmitter[DanmakuListener], AsyncStoppableMixin): raise ValueError(f'Unexpected code: {code}') async def _update_danmu_info(self) -> None: - self._danmu_info = await self.api.get_danmu_info(self._room_id) + try: + self._danmu_info = await self.appapi.get_danmu_info(self._room_id) + except Exception: + self._danmu_info = await self.webapi.get_danmu_info(self._room_id) logger.debug('Danmu info updated') async def _disconnect(self) -> None: @@ -177,7 +182,10 @@ class DanmakuClient(EventEmitter[DanmakuListener], AsyncStoppableMixin): async def _send_heartbeat(self) -> None: data = Frame.encode(WS.OP_HEARTBEAT, '') while True: - await self._ws.send_bytes(data) + try: + await self._ws.send_bytes(data) + except Exception as exc: + logger.debug(f'Failed to send heartbeat due to: {repr(exc)}') await asyncio.sleep(self._HEARTBEAT_INTERVAL) async def _create_message_loop(self) -> None: diff --git a/src/blrec/bili/exceptions.py b/src/blrec/bili/exceptions.py index 55da075..0581127 100644 --- a/src/blrec/bili/exceptions.py +++ b/src/blrec/bili/exceptions.py @@ -20,5 +20,17 @@ class LiveRoomEncrypted(Exception): pass -class NoStreamUrlAvailable(Exception): +class NoStreamAvailable(Exception): + pass + + +class NoStreamFormatAvailable(Exception): + pass + + +class NoStreamCodecAvailable(Exception): + pass + + +class NoStreamQualityAvailable(Exception): pass diff --git a/src/blrec/bili/helpers.py b/src/blrec/bili/helpers.py index 5c18e59..92bab07 100644 --- a/src/blrec/bili/helpers.py +++ b/src/blrec/bili/helpers.py @@ -2,7 +2,7 @@ import aiohttp from .api import WebApi -from .typing import ResponseData +from .typing import ResponseData, QualityNumber from .exceptions import ApiRequestError from ..exception import NotFoundError @@ -27,3 +27,16 @@ async def ensure_room_id(room_id: int) -> int: raise else: return result['room_id'] + + +def get_quality_name(qn: QualityNumber) -> str: + QUALITY_MAPPING = { + 20000: '4K', + 10000: '原画', + 401: '蓝光(杜比)', + 400: '蓝光', + 250: '超清', + 150: '高清', + 80: '流畅', + } + return QUALITY_MAPPING.get(qn, '') diff --git a/src/blrec/bili/live.py b/src/blrec/bili/live.py index cd7be48..481400c 100644 --- a/src/blrec/bili/live.py +++ b/src/blrec/bili/live.py @@ -1,10 +1,10 @@ - -import asyncio import re import json +import asyncio from typing import Dict, List, cast import aiohttp +from jsonpath import jsonpath from tenacity import ( retry, wait_exponential, @@ -13,11 +13,12 @@ from tenacity import ( ) -from .api import WebApi +from .api import AppApi, WebApi from .models import LiveStatus, RoomInfo, UserInfo -from .typing import QualityNumber, StreamFormat, ResponseData +from .typing import StreamFormat, QualityNumber, StreamCodec, ResponseData from .exceptions import ( - LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamUrlAvailable + LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamAvailable, + NoStreamFormatAvailable, NoStreamCodecAvailable, NoStreamQualityAvailable, ) @@ -63,8 +64,9 @@ class Live: return { 'Referer': 'https://live.bilibili.com/', 'Connection': 'Keep-Alive', + 'Accept-Encoding': 'gzip', 'User-Agent': self._user_agent, - 'cookie': self._cookie, + 'Cookie': self._cookie, } @property @@ -72,8 +74,12 @@ class Live: return self._session @property - def api(self) -> WebApi: - return self._api + def appapi(self) -> AppApi: + return self._appapi + + @property + def webapi(self) -> WebApi: + return self._webapi @property def room_id(self) -> int: @@ -89,11 +95,13 @@ class Live: async def init(self) -> None: self._session = aiohttp.ClientSession( + connector=aiohttp.TCPConnector(limit=200), headers=self.headers, raise_for_status=True, trust_env=True, ) - self._api = WebApi(self._session) + self._appapi = AppApi(self._session) + self._webapi = WebApi(self._session) self._room_info = await self.get_room_info() self._user_info = await self.get_user_info(self._room_info.uid) @@ -125,28 +133,19 @@ class Live: async def update_info(self) -> None: await asyncio.wait([self.update_user_info(), self.update_room_info()]) - @retry( - reraise=True, - retry=retry_if_exception_type(( - asyncio.TimeoutError, aiohttp.ClientError, - )), - wait=wait_exponential(max=10), - stop=stop_after_delay(60), - ) async def update_user_info(self) -> None: self._user_info = await self.get_user_info(self._room_info.uid) + async def update_room_info(self) -> None: + self._room_info = await self.get_room_info() + @retry( - reraise=True, retry=retry_if_exception_type(( asyncio.TimeoutError, aiohttp.ClientError, )), wait=wait_exponential(max=10), stop=stop_after_delay(60), ) - async def update_room_info(self) -> None: - self._room_info = await self.get_room_info() - async def get_room_info(self) -> RoomInfo: try: # frequent requests will be intercepted by the server's firewall! @@ -154,44 +153,54 @@ class Live: except Exception: # more cpu consumption room_info_data = await self._get_room_info_via_html_page() - return RoomInfo.from_data(room_info_data) + @retry( + retry=retry_if_exception_type(( + asyncio.TimeoutError, aiohttp.ClientError, + )), + wait=wait_exponential(max=10), + stop=stop_after_delay(60), + ) async def get_user_info(self, uid: int) -> UserInfo: - user_info_data = await self._api.get_user_info(uid) - return UserInfo.from_data(user_info_data) + try: + user_info_data = await self._appapi.get_user_info(uid) + return UserInfo.from_app_api_data(user_info_data) + except Exception: + user_info_data = await self._webapi.get_user_info(uid) + return UserInfo.from_web_api_data(user_info_data) async def get_server_timestamp(self) -> int: # the timestamp on the server at the moment in seconds - return await self._api.get_timestamp() + return await self._webapi.get_timestamp() async def get_live_stream_urls( self, qn: QualityNumber = 10000, - format: StreamFormat = 'flv', + stream_format: StreamFormat = 'flv', + stream_codec: StreamCodec = 'avc', ) -> List[str]: try: - data = await self._api.get_room_play_info(self._room_id, qn) + info = await self._appapi.get_room_play_info(self._room_id, qn) except Exception: - # fallback to the html page global info - data = await self._get_room_play_info_via_html_page() - self._check_room_play_info(data) - stream = data['playurl_info']['playurl']['stream'] - if stream[0]['format'][0]['codec'][0]['current_qn'] != qn: - raise - else: - self._check_room_play_info(data) + info = await self._webapi.get_room_play_info(self._room_id, qn) + + self._check_room_play_info(info) + + streams = jsonpath(info, '$.playurl_info.playurl.stream[*]') + if not streams: + raise NoStreamAvailable(qn, stream_format, stream_codec) + formats = jsonpath(streams, f'$[*].format[?(@.format_name == "{stream_format}")]') # noqa + if not formats: + raise NoStreamFormatAvailable(qn, stream_format, stream_codec) + codecs = jsonpath(formats, f'$[*].codec[?(@.codec_name == "{stream_codec}")]') # noqa + if not codecs: + raise NoStreamCodecAvailable(qn, stream_format, stream_codec) + codec = codecs[0] - streams = list(filter( - lambda s: s['format'][0]['format_name'] == format, - data['playurl_info']['playurl']['stream'] - )) - codec = streams[0]['format'][0]['codec'][0] accept_qn = cast(List[QualityNumber], codec['accept_qn']) - - if qn not in accept_qn: - return [] - assert codec['current_qn'] == qn + if qn not in accept_qn or codec['current_qn'] != qn: + raise NoStreamQualityAvailable(qn, stream_format, stream_codec) return [ i['host'] + codec['base_url'] + i['extra'] @@ -199,16 +208,12 @@ class Live: ] def _check_room_play_info(self, data: ResponseData) -> None: - if data['is_hidden']: + if data.get('is_hidden'): raise LiveRoomHidden() - if data['is_locked']: + if data.get('is_locked'): raise LiveRoomLocked() - if data['encrypted'] and not data['pwd_verified']: + if data.get('encrypted') and not data.get('pwd_verified'): raise LiveRoomEncrypted() - try: - data['playurl_info']['playurl']['stream'][0] - except Exception: - raise NoStreamUrlAvailable() async def _get_live_status_via_api(self) -> int: room_info_data = await self._get_room_info_via_api() @@ -216,10 +221,14 @@ class Live: async def _get_room_info_via_api(self) -> ResponseData: try: - room_info_data = await self._api.get_info(self._room_id) - except Exception: - info_data = await self._api.get_info_by_room(self._room_id) + info_data = await self._appapi.get_info_by_room(self._room_id) room_info_data = info_data['room_info'] + except Exception: + try: + info_data = await self._webapi.get_info_by_room(self._room_id) + room_info_data = info_data['room_info'] + except Exception: + room_info_data = await self._webapi.get_info(self._room_id) return room_info_data diff --git a/src/blrec/bili/models.py b/src/blrec/bili/models.py index c5aab9d..45696d2 100644 --- a/src/blrec/bili/models.py +++ b/src/blrec/bili/models.py @@ -86,7 +86,7 @@ class UserInfo: sign: str @staticmethod - def from_data(data: ResponseData) -> 'UserInfo': + def from_web_api_data(data: ResponseData) -> 'UserInfo': return UserInfo( name=data['name'], gender=data['sex'], @@ -95,3 +95,15 @@ class UserInfo: level=data['level'], sign=data['sign'], ) + + @staticmethod + def from_app_api_data(data: ResponseData) -> 'UserInfo': + card = data['card'] + return UserInfo( + name=card['name'], + gender=card['sex'], + face=ensure_scheme(card['face'], 'https'), + uid=card['mid'], + level=card['level_info']['current_level'], + sign=card['sign'], + ) diff --git a/src/blrec/bili/typing.py b/src/blrec/bili/typing.py index 1a93e05..d585260 100644 --- a/src/blrec/bili/typing.py +++ b/src/blrec/bili/typing.py @@ -19,5 +19,10 @@ StreamFormat = Literal[ 'fmp4', ] +StreamCodec = Literal[ + 'avc', + 'hevc', +] + JsonResponse = Dict[str, Any] ResponseData = Dict[str, Any] diff --git a/src/blrec/core/stream_recorder.py b/src/blrec/core/base_stream_recorder.py similarity index 59% rename from src/blrec/core/stream_recorder.py rename to src/blrec/core/base_stream_recorder.py index 247bc83..1fa620a 100644 --- a/src/blrec/core/stream_recorder.py +++ b/src/blrec/core/base_stream_recorder.py @@ -1,590 +1,572 @@ -import io -import os -import re -import time -import errno -import asyncio -import logging -from threading import Thread -from datetime import datetime, timezone, timedelta -from collections import OrderedDict - -from typing import Any, BinaryIO, Dict, Iterator, Optional, Tuple - -import aiohttp -import requests -import urllib3 -from tqdm import tqdm -from rx.subject import Subject -from rx.core import Observable -from tenacity import ( - retry, - wait_none, - wait_fixed, - wait_chain, - wait_exponential, - stop_after_delay, - stop_after_attempt, - retry_if_result, - retry_if_exception_type, - retry_if_not_exception_type, - Retrying, - TryAgain, -) - -from .. import __version__, __prog__, __github__ -from .retry import wait_exponential_for_same_exceptions, before_sleep_log -from .statistics import StatisticsCalculator -from ..event.event_emitter import EventListener, EventEmitter -from ..bili.live import Live -from ..bili.typing import QualityNumber -from ..flv.data_analyser import MetaData -from ..flv.stream_processor import StreamProcessor, BaseOutputFileManager -from ..utils.mixins import AsyncCooperationMix, AsyncStoppableMixin -from ..path import escape_path -from ..flv.exceptions import FlvDataError, FlvStreamCorruptedError -from ..bili.exceptions import ( - LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamUrlAvailable -) - - -__all__ = 'StreamRecorderEventListener', 'StreamRecorder' - - -logger = logging.getLogger(__name__) -logging.getLogger(urllib3.__name__).setLevel(logging.WARNING) - - -class StreamRecorderEventListener(EventListener): - async def on_video_file_created( - self, path: str, record_start_time: int - ) -> None: - ... - - async def on_video_file_completed(self, path: str) -> None: - ... - - async def on_stream_recording_stopped(self) -> None: - ... - - -class StreamRecorder( - EventEmitter[StreamRecorderEventListener], - AsyncCooperationMix, - AsyncStoppableMixin, -): - def __init__( - self, - live: Live, - out_dir: str, - path_template: str, - *, - quality_number: QualityNumber = 10000, - buffer_size: Optional[int] = None, - read_timeout: Optional[int] = None, - disconnection_timeout: Optional[int] = None, - filesize_limit: int = 0, - duration_limit: int = 0, - ) -> None: - super().__init__() - - self._live = live - self._progress_bar: Optional[tqdm] = None - self._stream_processor: Optional[StreamProcessor] = None - self._calculator = StatisticsCalculator() - self._file_manager = OutputFileManager( - live, out_dir, path_template, buffer_size - ) - - self._quality_number = quality_number - self._real_quality_number: Optional[QualityNumber] = None - self.buffer_size = buffer_size or io.DEFAULT_BUFFER_SIZE # bytes - self.read_timeout = read_timeout or 3 # seconds - self.disconnection_timeout = disconnection_timeout or 600 # seconds - - self._filesize_limit = filesize_limit or 0 - self._duration_limit = duration_limit or 0 - - def on_file_created(args: Tuple[str, int]) -> None: - logger.info(f"Video file created: '{args[0]}'") - self._emit_event('video_file_created', *args) - - def on_file_closed(path: str) -> None: - logger.info(f"Video file completed: '{path}'") - self._emit_event('video_file_completed', path) - - self._file_manager.file_creates.subscribe(on_file_created) - self._file_manager.file_closes.subscribe(on_file_closed) - - @property - def data_count(self) -> int: - return self._calculator.count - - @property - def data_rate(self) -> float: - return self._calculator.rate - - @property - def elapsed(self) -> float: - return self._calculator.elapsed - - @property - def out_dir(self) -> str: - return self._file_manager.out_dir - - @out_dir.setter - def out_dir(self, value: str) -> None: - self._file_manager.out_dir = value - - @property - def path_template(self) -> str: - return self._file_manager.path_template - - @path_template.setter - def path_template(self, value: str) -> None: - self._file_manager.path_template = value - - @property - def quality_number(self) -> QualityNumber: - return self._quality_number - - @quality_number.setter - def quality_number(self, value: QualityNumber) -> None: - self._quality_number = value - self._real_quality_number = None - - @property - def real_quality_number(self) -> QualityNumber: - return self._real_quality_number or 10000 - - @property - def filesize_limit(self) -> int: - if self._stream_processor is not None: - return self._stream_processor.filesize_limit - else: - return self._filesize_limit - - @filesize_limit.setter - def filesize_limit(self, value: int) -> None: - self._filesize_limit = value - if self._stream_processor is not None: - self._stream_processor.filesize_limit = value - - @property - def duration_limit(self) -> int: - if self._stream_processor is not None: - return self._stream_processor.duration_limit - else: - return self._duration_limit - - @duration_limit.setter - def duration_limit(self, value: int) -> None: - self._duration_limit = value - if self._stream_processor is not None: - self._stream_processor.duration_limit = value - - @property - def recording_path(self) -> Optional[str]: - return self._file_manager.curr_path - - @property - def metadata(self) -> Optional[MetaData]: - if self._stream_processor is not None: - return self._stream_processor.metadata - else: - return None - - def has_file(self) -> bool: - return self._file_manager.has_file() - - def get_files(self) -> Iterator[str]: - yield from self._file_manager.get_files() - - def clear_files(self) -> None: - self._file_manager.clear_files() - - def can_cut_stream(self) -> bool: - if self._stream_processor is None: - return False - return self._stream_processor.can_cut_stream() - - def cut_stream(self) -> bool: - if self._stream_processor is None: - return False - return self._stream_processor.cut_stream() - - def update_progress_bar_info(self) -> None: - if self._progress_bar is not None: - self._progress_bar.set_postfix_str(self._make_pbar_postfix()) - - async def _do_start(self) -> None: - self._thread = Thread( - target=self._run, name=f'StreamRecorder::{self._live.room_id}' - ) - self._thread.start() - logger.debug('Started stream recorder') - - async def _do_stop(self) -> None: - logger.debug('Stopping stream recorder...') - if self._stream_processor is not None: - self._stream_processor.cancel() - await self._loop.run_in_executor(None, self._thread.join) - logger.debug('Stopped stream recorder') - - def _run(self) -> None: - self._calculator.reset() - self._use_candidate_stream: bool = False - try: - with tqdm( - desc='Recording', - unit='B', - unit_scale=True, - unit_divisor=1024, - postfix=self._make_pbar_postfix(), - ) as progress_bar: - self._progress_bar = progress_bar - - def update_size(size: int) -> None: - progress_bar.update(size) - self._calculator.submit(size) - - self._stream_processor = StreamProcessor( - self._file_manager, - filesize_limit=self._filesize_limit, - duration_limit=self._duration_limit, - metadata=self._make_metadata(), - analyse_data=True, - dedup_join=True, - save_extra_metadata=True, - ) - self._stream_processor.size_updates.subscribe(update_size) - - with requests.Session() as self._session: - self._main_loop() - except TryAgain: - pass - except Exception as e: - self._handle_exception(e) - finally: - if self._stream_processor is not None: - self._stream_processor.finalize() - self._stream_processor = None - self._progress_bar = None - self._calculator.freeze() - self._emit_event('stream_recording_stopped') - - def _main_loop(self) -> None: - for attempt in Retrying( - reraise=True, - retry=( - retry_if_result(lambda r: not self._stopped) | - retry_if_not_exception_type((OSError, NotImplementedError)) - ), - wait=wait_exponential_for_same_exceptions(max=60), - before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), - ): - with attempt: - try: - self._streaming_loop() - except NoStreamUrlAvailable: - logger.debug('No stream url available') - if not self._stopped: - raise TryAgain - except OSError as e: - if e.errno == errno.ENOSPC: - # OSError(28, 'No space left on device') - raise - logger.critical(repr(e), exc_info=e) - raise TryAgain - except LiveRoomHidden: - logger.error('The live room has been hidden!') - self._stopped = True - except LiveRoomLocked: - logger.error('The live room has been locked!') - self._stopped = True - except LiveRoomEncrypted: - logger.error('The live room has been encrypted!') - self._stopped = True - except Exception as e: - logger.exception(e) - self._handle_exception(e) - raise - - def _streaming_loop(self) -> None: - url = self._get_live_stream_url() - - while not self._stopped: - try: - self._streaming(url) - except requests.exceptions.HTTPError as e: - # frequently occurred when the live just started or ended. - logger.debug(repr(e)) - self._defer_retry(1, 'streaming_loop') - # the url may has been forbidden or expired - # when the status code is 404 or 403 - if e.response.status_code in (403, 404): - url = self._get_live_stream_url() - except requests.exceptions.Timeout as e: - logger.warning(repr(e)) - except urllib3.exceptions.TimeoutError as e: - logger.warning(repr(e)) - except urllib3.exceptions.ProtocolError as e: - # ProtocolError('Connection broken: IncompleteRead( - logger.warning(repr(e)) - except requests.exceptions.ConnectionError as e: - logger.warning(repr(e)) - logger.info( - f'Waiting {self.disconnection_timeout} seconds ' - 'for connection recovery... ' - ) - try: - self._wait_connection_recovered(self.disconnection_timeout) - except TimeoutError as e: - logger.error(repr(e)) - self._stopped = True - else: - logger.debug('Connection recovered') - except FlvDataError as e: - logger.warning(repr(e)) - self._use_candidate_stream = not self._use_candidate_stream - url = self._get_live_stream_url() - except FlvStreamCorruptedError as e: - logger.warning(repr(e)) - url = self._get_live_stream_url() - - def _streaming(self, url: str) -> None: - logger.debug('Getting the live stream...') - with self._session.get( - url, - headers=self._live.headers, - stream=True, - timeout=self.read_timeout, - ) as response: - logger.debug('Response received') - response.raise_for_status() - - if self._stopped: - return - - assert self._stream_processor is not None - self._stream_processor.process_stream( - io.BufferedReader( - ResponseProxy(response.raw), buffer_size=8192 - ) - ) - - @retry( - reraise=True, - retry=retry_if_exception_type(( - asyncio.TimeoutError, aiohttp.ClientError, - )), - wait=wait_chain(wait_none(), wait_fixed(1)), - stop=stop_after_attempt(300), - ) - def _get_live_stream_url(self) -> str: - qn = self._real_quality_number or self.quality_number - logger.debug( - 'Getting the live stream url... ' - f'qn: {qn}, use_candidate_stream: {self._use_candidate_stream}' - ) - urls = self._run_coroutine(self._live.get_live_stream_urls(qn, 'flv')) - - if self._real_quality_number is None: - if not urls: - logger.info( - f'The specified video quality ({qn}) is not available, ' - 'using the original video quality (10000) instead.' - ) - self._real_quality_number = 10000 - raise TryAgain - else: - logger.info(f'The specified video quality ({qn}) is available') - self._real_quality_number = self.quality_number - - if not self._use_candidate_stream: - url = urls[0] - else: - try: - url = urls[1] - except IndexError: - logger.debug( - 'no candidate stream url available, ' - 'using the primary stream url instead.' - ) - url = urls[0] - logger.debug(f"Got live stream url: '{url}'") - - return url - - def _defer_retry(self, seconds: float, name: str = '') -> None: - if seconds <= 0: - return - logger.debug(f'Retry {name} after {seconds} seconds') - time.sleep(seconds) - - def _wait_connection_recovered( - self, timeout: Optional[int] = None, check_interval: int = 3 - ) -> None: - timebase = time.monotonic() - while not self._run_coroutine(self._live.check_connectivity()): - if timeout is not None and time.monotonic() - timebase > timeout: - raise TimeoutError( - f'Connection not recovered in {timeout} seconds' - ) - time.sleep(check_interval) - - def _make_pbar_postfix(self) -> str: - return '{room_id} - {user_name}: {room_title}'.format( - room_id=self._live.room_info.room_id, - user_name=self._live.user_info.name, - room_title=self._live.room_info.title, - ) - - def _make_metadata(self) -> Dict[str, Any]: - live_start_time = datetime.fromtimestamp( - self._live.room_info.live_start_time, timezone(timedelta(hours=8)) - ) - - return { - 'Title': self._live.room_info.title, - 'Artist': self._live.user_info.name, - 'Date': str(live_start_time), - 'Comment': f'''\ -B站直播录像 -主播:{self._live.user_info.name} -标题:{self._live.room_info.title} -分区:{self._live.room_info.parent_area_name} - {self._live.room_info.area_name} -房间号:{self._live.room_info.room_id} -开播时间:{live_start_time} -录制程序:{__prog__} v{__version__} {__github__}''', - 'description': OrderedDict({ - 'UserId': str(self._live.user_info.uid), - 'UserName': self._live.user_info.name, - 'RoomId': str(self._live.room_info.room_id), - 'RoomTitle': self._live.room_info.title, - 'Area': self._live.room_info.area_name, - 'ParentArea': self._live.room_info.parent_area_name, - 'LiveStartTime': str(live_start_time), - 'Recorder': f'{__prog__} v{__version__} {__github__}', - }) - } - - def _emit_event(self, name: str, *args: Any, **kwds: Any) -> None: - self._run_coroutine(super()._emit(name, *args, **kwds)) - - -class ResponseProxy(io.RawIOBase): - def __init__(self, response: urllib3.HTTPResponse) -> None: - self._response = response - - @property - def closed(self) -> bool: - # always return False to avoid that `ValueError: read of closed file`, - # raised from `CHECK_CLOSED(self, "read of closed file")`, - # result in losing data those remaining in the buffer. - # ref: `https://gihub.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Modules/_io/bufferedio.c#L882` # noqa - return False - - def readable(self) -> bool: - return True - - def read(self, size: int = -1) -> bytes: - return self._response.read(size) - - def tell(self) -> int: - return self._response.tell() - - def readinto(self, b: Any) -> int: - return self._response.readinto(b) - - def close(self) -> None: - self._response.close() - - -class OutputFileManager(BaseOutputFileManager, AsyncCooperationMix): - def __init__( - self, - live: Live, - out_dir: str, - path_template: str, - buffer_size: Optional[int] = None, - ) -> None: - super().__init__(buffer_size) - self._live = live - - self.out_dir = out_dir - self.path_template = path_template - - self._file_creates = Subject() - self._file_closes = Subject() - - @property - def file_creates(self) -> Observable: - return self._file_creates - - @property - def file_closes(self) -> Observable: - return self._file_closes - - def create_file(self) -> BinaryIO: - self._start_time = self._get_timestamp() - file = super().create_file() - self._file_creates.on_next((self._curr_path, self._start_time)) - return file - - def close_file(self) -> None: - path = self._curr_path - super().close_file() - self._file_closes.on_next(path) - - def _get_timestamp(self) -> int: - try: - return self._get_server_timestamp() - except Exception as e: - logger.warning(f'Failed to get server timestamp: {repr(e)}') - return self._get_local_timestamp() - - def _get_local_timestamp(self) -> int: - return int(time.time()) - - @retry( - reraise=True, - retry=retry_if_exception_type(( - asyncio.TimeoutError, aiohttp.ClientError, - )), - wait=wait_exponential(multiplier=0.1, max=1), - stop=stop_after_delay(3), - ) - def _get_server_timestamp(self) -> int: - return self._run_coroutine(self._live.get_server_timestamp()) - - def _make_path(self) -> str: - date_time = datetime.fromtimestamp(self._start_time) - relpath = self.path_template.format( - roomid=self._live.room_id, - uname=escape_path(self._live.user_info.name), - title=escape_path(self._live.room_info.title), - area=escape_path(self._live.room_info.area_name), - parent_area=escape_path(self._live.room_info.parent_area_name), - year=date_time.year, - month=str(date_time.month).rjust(2, '0'), - day=str(date_time.day).rjust(2, '0'), - hour=str(date_time.hour).rjust(2, '0'), - minute=str(date_time.minute).rjust(2, '0'), - second=str(date_time.second).rjust(2, '0'), - ) - - pathname = os.path.abspath( - os.path.expanduser(os.path.join(self.out_dir, relpath) + '.flv') - ) - os.makedirs(os.path.dirname(pathname), exist_ok=True) - while os.path.exists(pathname): - root, ext = os.path.splitext(pathname) - m = re.search(r'_\((\d+)\)$', root) - if m is None: - root += '_(1)' - else: - root = re.sub(r'\(\d+\)$', f'({int(m.group(1)) + 1})', root) - pathname = root + ext - - return pathname +import io +import os +import re +import time +import asyncio +import logging +from abc import ABC, abstractmethod +from threading import Thread, Event +from datetime import datetime, timezone, timedelta +from collections import OrderedDict + +from typing import Any, BinaryIO, Dict, Iterator, Optional, Tuple + +import aiohttp +import urllib3 +from tqdm import tqdm +from rx.subject import Subject +from rx.core import Observable +from tenacity import ( + retry, + wait_none, + wait_fixed, + wait_chain, + wait_exponential, + stop_after_delay, + stop_after_attempt, + retry_if_exception_type, + TryAgain, +) + +from .. import __version__, __prog__, __github__ +from .stream_remuxer import StreamRemuxer +from .stream_analyzer import StreamProfile +from .statistics import StatisticsCalculator +from ..event.event_emitter import EventListener, EventEmitter +from ..bili.live import Live +from ..bili.typing import StreamFormat, QualityNumber +from ..bili.helpers import get_quality_name +from ..flv.data_analyser import MetaData +from ..flv.stream_processor import StreamProcessor, BaseOutputFileManager +from ..utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin +from ..path import escape_path +from ..logging.room_id import aio_task_with_room_id +from ..bili.exceptions import ( + NoStreamFormatAvailable, NoStreamCodecAvailable, NoStreamQualityAvailable, +) + + +__all__ = 'BaseStreamRecorder', 'StreamRecorderEventListener', 'StreamProxy' + + +logger = logging.getLogger(__name__) +logging.getLogger(urllib3.__name__).setLevel(logging.WARNING) + + +class StreamRecorderEventListener(EventListener): + async def on_video_file_created( + self, path: str, record_start_time: int + ) -> None: + ... + + async def on_video_file_completed(self, path: str) -> None: + ... + + async def on_stream_recording_stopped(self) -> None: + ... + + +class BaseStreamRecorder( + EventEmitter[StreamRecorderEventListener], + AsyncCooperationMixin, + AsyncStoppableMixin, + ABC, +): + def __init__( + self, + live: Live, + out_dir: str, + path_template: str, + *, + stream_format: StreamFormat = 'flv', + quality_number: QualityNumber = 10000, + buffer_size: Optional[int] = None, + read_timeout: Optional[int] = None, + disconnection_timeout: Optional[int] = None, + filesize_limit: int = 0, + duration_limit: int = 0, + ) -> None: + super().__init__() + + self._live = live + self._progress_bar: Optional[tqdm] = None + self._stream_remuxer: Optional[StreamRemuxer] = None + self._stream_processor: Optional[StreamProcessor] = None + self._dl_calculator = StatisticsCalculator() + self._rec_calculator = StatisticsCalculator() + self._file_manager = OutputFileManager( + live, out_dir, path_template, buffer_size + ) + + self._stream_format = stream_format + self._quality_number = quality_number + self._real_stream_format: Optional[StreamFormat] = None + self._real_quality_number: Optional[QualityNumber] = None + self._use_candidate_stream: bool = False + self.buffer_size = buffer_size or io.DEFAULT_BUFFER_SIZE # bytes + self.read_timeout = read_timeout or 3 # seconds + self.disconnection_timeout = disconnection_timeout or 600 # seconds + + self._filesize_limit = filesize_limit or 0 + self._duration_limit = duration_limit or 0 + + self._stream_url: str = '' + self._stream_host: str = '' + self._stream_profile: StreamProfile = {} + + self._connection_recovered = Event() + + def on_file_created(args: Tuple[str, int]) -> None: + logger.info(f"Video file created: '{args[0]}'") + self._emit_event('video_file_created', *args) + + def on_file_closed(path: str) -> None: + logger.info(f"Video file completed: '{path}'") + self._emit_event('video_file_completed', path) + + self._file_manager.file_creates.subscribe(on_file_created) + self._file_manager.file_closes.subscribe(on_file_closed) + + @property + def stream_url(self) -> str: + return self._stream_url + + @property + def stream_host(self) -> str: + return self._stream_host + + @property + def dl_total(self) -> int: + return self._dl_calculator.count + + @property + def dl_rate(self) -> float: + return self._dl_calculator.rate + + @property + def rec_elapsed(self) -> float: + return self._rec_calculator.elapsed + + @property + def rec_total(self) -> int: + return self._rec_calculator.count + + @property + def rec_rate(self) -> float: + return self._rec_calculator.rate + + @property + def out_dir(self) -> str: + return self._file_manager.out_dir + + @out_dir.setter + def out_dir(self, value: str) -> None: + self._file_manager.out_dir = value + + @property + def path_template(self) -> str: + return self._file_manager.path_template + + @path_template.setter + def path_template(self, value: str) -> None: + self._file_manager.path_template = value + + @property + def stream_format(self) -> StreamFormat: + return self._stream_format + + @stream_format.setter + def stream_format(self, value: StreamFormat) -> None: + self._stream_format = value + self._real_stream_format = None + + @property + def quality_number(self) -> QualityNumber: + return self._quality_number + + @quality_number.setter + def quality_number(self, value: QualityNumber) -> None: + self._quality_number = value + self._real_quality_number = None + + @property + def real_stream_format(self) -> StreamFormat: + return self._real_stream_format or self.stream_format + + @property + def real_quality_number(self) -> QualityNumber: + return self._real_quality_number or self.quality_number + + @property + def filesize_limit(self) -> int: + if self._stream_processor is not None: + return self._stream_processor.filesize_limit + else: + return self._filesize_limit + + @filesize_limit.setter + def filesize_limit(self, value: int) -> None: + self._filesize_limit = value + if self._stream_processor is not None: + self._stream_processor.filesize_limit = value + + @property + def duration_limit(self) -> int: + if self._stream_processor is not None: + return self._stream_processor.duration_limit + else: + return self._duration_limit + + @duration_limit.setter + def duration_limit(self, value: int) -> None: + self._duration_limit = value + if self._stream_processor is not None: + self._stream_processor.duration_limit = value + + @property + def recording_path(self) -> Optional[str]: + return self._file_manager.curr_path + + @property + def metadata(self) -> Optional[MetaData]: + if self._stream_processor is not None: + return self._stream_processor.metadata + else: + return None + + @property + def stream_profile(self) -> StreamProfile: + return self._stream_profile + + def has_file(self) -> bool: + return self._file_manager.has_file() + + def get_files(self) -> Iterator[str]: + yield from self._file_manager.get_files() + + def clear_files(self) -> None: + self._file_manager.clear_files() + + def can_cut_stream(self) -> bool: + if self._stream_processor is None: + return False + return self._stream_processor.can_cut_stream() + + def cut_stream(self) -> bool: + if self._stream_processor is None: + return False + return self._stream_processor.cut_stream() + + def update_progress_bar_info(self) -> None: + if self._progress_bar is not None: + self._progress_bar.set_postfix_str(self._make_pbar_postfix()) + + async def _do_start(self) -> None: + logger.debug('Starting stream recorder...') + self._dl_calculator.reset() + self._rec_calculator.reset() + self._stream_url = '' + self._stream_host = '' + self._stream_profile = {} + self._use_candidate_stream = False + self._connection_recovered.clear() + self._thread = Thread( + target=self._run, name=f'StreamRecorder::{self._live.room_id}' + ) + self._thread.start() + logger.debug('Started stream recorder') + + async def _do_stop(self) -> None: + logger.debug('Stopping stream recorder...') + if self._stream_processor is not None: + self._stream_processor.cancel() + await self._loop.run_in_executor(None, self._thread.join) + logger.debug('Stopped stream recorder') + + @abstractmethod + def _run(self) -> None: + raise NotImplementedError() + + @retry( + reraise=True, + retry=retry_if_exception_type(( + asyncio.TimeoutError, aiohttp.ClientError, + )), + wait=wait_chain(wait_none(), wait_fixed(1)), + stop=stop_after_attempt(300), + ) + def _get_live_stream_url(self) -> str: + qn = self._real_quality_number or self.quality_number + fmt = self._real_stream_format or self.stream_format + logger.info( + f'Getting the live stream url... qn: {qn}, format: {fmt}, ' + f'use_candidate_stream: {self._use_candidate_stream}' + ) + try: + urls = self._run_coroutine( + self._live.get_live_stream_urls(qn, fmt) + ) + except NoStreamQualityAvailable: + logger.info( + f'The specified stream quality ({qn}) is not available, ' + 'will using the original stream quality (10000) instead.' + ) + self._real_quality_number = 10000 + raise TryAgain + except NoStreamFormatAvailable: + if fmt == 'fmp4': + logger.info( + 'The specified stream format (fmp4) is not available, ' + 'falling back to stream format (ts).' + ) + self._real_stream_format = 'ts' + elif fmt == 'ts': + logger.info( + 'The specified stream format (ts) is not available, ' + 'falling back to stream format (flv).' + ) + self._real_stream_format = 'flv' + else: + raise NotImplementedError(fmt) + raise TryAgain + except NoStreamCodecAvailable as e: + logger.warning(repr(e)) + raise TryAgain + else: + logger.info( + f'Adopted the stream format ({fmt}) and quality ({qn})' + ) + self._real_quality_number = qn + self._real_stream_format = fmt + + if not self._use_candidate_stream: + url = urls[0] + else: + try: + url = urls[1] + except IndexError: + logger.info( + 'No candidate stream url available, ' + 'will using the primary stream url instead.' + ) + url = urls[0] + logger.info(f"Got live stream url: '{url}'") + + return url + + def _defer_retry(self, seconds: float, name: str = '') -> None: + if seconds <= 0: + return + logger.debug(f'Retry {name} after {seconds} seconds') + time.sleep(seconds) + + def _wait_for_connection_error(self) -> None: + Thread( + target=self._conectivity_checker, + name=f'ConectivityChecker::{self._live.room_id}', + daemon=True, + ).start() + self._connection_recovered.wait() + self._connection_recovered.clear() + + def _conectivity_checker(self, check_interval: int = 3) -> None: + timeout = self.disconnection_timeout + logger.info(f'Waiting {timeout} seconds for connection recovery... ') + timebase = time.monotonic() + while not self._run_coroutine(self._live.check_connectivity()): + if timeout is not None and time.monotonic() - timebase > timeout: + logger.error(f'Connection not recovered in {timeout} seconds') + self._stopped = True + self._connection_recovered.set() + time.sleep(check_interval) + else: + logger.info('Connection recovered') + self._connection_recovered.set() + + def _make_pbar_postfix(self) -> str: + return '{room_id} - {user_name}: {room_title}'.format( + room_id=self._live.room_info.room_id, + user_name=self._live.user_info.name, + room_title=self._live.room_info.title, + ) + + def _make_metadata(self) -> Dict[str, Any]: + live_start_time = datetime.fromtimestamp( + self._live.room_info.live_start_time, timezone(timedelta(hours=8)) + ) + + assert self._real_quality_number is not None + stream_quality = '{} ({}{})'.format( + get_quality_name(self._real_quality_number), + self._real_quality_number, + ', bluray' if '_bluray' in self._stream_url else '', + ) + + return { + 'Title': self._live.room_info.title, + 'Artist': self._live.user_info.name, + 'Date': str(live_start_time), + 'Comment': f'''\ +B站直播录像 +主播:{self._live.user_info.name} +标题:{self._live.room_info.title} +分区:{self._live.room_info.parent_area_name} - {self._live.room_info.area_name} +房间号:{self._live.room_info.room_id} +开播时间:{live_start_time} +流主机: {self._stream_host} +流格式:{self._real_stream_format} +流画质:{stream_quality} +录制程序:{__prog__} v{__version__} {__github__}''', + 'description': OrderedDict({ + 'UserId': str(self._live.user_info.uid), + 'UserName': self._live.user_info.name, + 'RoomId': str(self._live.room_info.room_id), + 'RoomTitle': self._live.room_info.title, + 'Area': self._live.room_info.area_name, + 'ParentArea': self._live.room_info.parent_area_name, + 'LiveStartTime': str(live_start_time), + 'StreamHost': self._stream_host, + 'StreamFormat': self._real_stream_format, + 'StreamQuality': stream_quality, + 'Recorder': f'{__prog__} v{__version__} {__github__}', + }) + } + + def _emit_event(self, name: str, *args: Any, **kwds: Any) -> None: + self._run_coroutine(self._emit(name, *args, **kwds)) + + @aio_task_with_room_id + async def _emit(self, *args: Any, **kwds: Any) -> None: # type: ignore + await super()._emit(*args, **kwds) + + +class StreamProxy(io.RawIOBase): + def __init__(self, stream: io.BufferedIOBase) -> None: + self._stream = stream + self._offset = 0 + self._size_updates = Subject() + + @property + def size_updates(self) -> Observable: + return self._size_updates + + @property + def closed(self) -> bool: + # always return False to avoid that `ValueError: read of closed file`, + # raised from `CHECK_CLOSED(self, "read of closed file")`, + # result in losing data those remaining in the buffer. + # ref: `https://gihub.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Modules/_io/bufferedio.c#L882` # noqa + return False + + def fileno(self) -> int: + return self._stream.fileno() + + def readable(self) -> bool: + return True + + def read(self, size: int = -1) -> bytes: + data = self._stream.read(size) + self._offset += len(data) + self._size_updates.on_next(len(data)) + return data + + def tell(self) -> int: + return self._offset + + def readinto(self, b: Any) -> int: + n = self._stream.readinto(b) + self._offset += n + self._size_updates.on_next(n) + return n + + def close(self) -> None: + self._stream.close() + + +class OutputFileManager(BaseOutputFileManager, AsyncCooperationMixin): + def __init__( + self, + live: Live, + out_dir: str, + path_template: str, + buffer_size: Optional[int] = None, + ) -> None: + super().__init__(buffer_size) + self._live = live + + self.out_dir = out_dir + self.path_template = path_template + + self._file_creates = Subject() + self._file_closes = Subject() + + @property + def file_creates(self) -> Observable: + return self._file_creates + + @property + def file_closes(self) -> Observable: + return self._file_closes + + def create_file(self) -> BinaryIO: + self._start_time = self._get_timestamp() + file = super().create_file() + self._file_creates.on_next((self._curr_path, self._start_time)) + return file + + def close_file(self) -> None: + path = self._curr_path + super().close_file() + self._file_closes.on_next(path) + + def _get_timestamp(self) -> int: + try: + return self._get_server_timestamp() + except Exception as e: + logger.warning(f'Failed to get server timestamp: {repr(e)}') + return self._get_local_timestamp() + + def _get_local_timestamp(self) -> int: + return int(time.time()) + + @retry( + reraise=True, + retry=retry_if_exception_type(( + asyncio.TimeoutError, aiohttp.ClientError, + )), + wait=wait_exponential(multiplier=0.1, max=1), + stop=stop_after_delay(3), + ) + def _get_server_timestamp(self) -> int: + return self._run_coroutine(self._live.get_server_timestamp()) + + def _make_path(self) -> str: + date_time = datetime.fromtimestamp(self._start_time) + relpath = self.path_template.format( + roomid=self._live.room_id, + uname=escape_path(self._live.user_info.name), + title=escape_path(self._live.room_info.title), + area=escape_path(self._live.room_info.area_name), + parent_area=escape_path(self._live.room_info.parent_area_name), + year=date_time.year, + month=str(date_time.month).rjust(2, '0'), + day=str(date_time.day).rjust(2, '0'), + hour=str(date_time.hour).rjust(2, '0'), + minute=str(date_time.minute).rjust(2, '0'), + second=str(date_time.second).rjust(2, '0'), + ) + + pathname = os.path.abspath( + os.path.expanduser(os.path.join(self.out_dir, relpath) + '.flv') + ) + os.makedirs(os.path.dirname(pathname), exist_ok=True) + while os.path.exists(pathname): + root, ext = os.path.splitext(pathname) + m = re.search(r'_\((\d+)\)$', root) + if m is None: + root += '_(1)' + else: + root = re.sub(r'\(\d+\)$', f'({int(m.group(1)) + 1})', root) + pathname = root + ext + + return pathname diff --git a/src/blrec/core/danmaku_dumper.py b/src/blrec/core/danmaku_dumper.py index 762ddda..739ca11 100644 --- a/src/blrec/core/danmaku_dumper.py +++ b/src/blrec/core/danmaku_dumper.py @@ -12,7 +12,9 @@ from tenacity import ( from .. import __version__, __prog__, __github__ from .danmaku_receiver import DanmakuReceiver, DanmuMsg -from .stream_recorder import StreamRecorder, StreamRecorderEventListener +from .base_stream_recorder import ( + BaseStreamRecorder, StreamRecorderEventListener +) from .statistics import StatisticsCalculator from ..bili.live import Live from ..exception import exception_callback, submit_exception @@ -49,7 +51,7 @@ class DanmakuDumper( def __init__( self, live: Live, - stream_recorder: StreamRecorder, + stream_recorder: BaseStreamRecorder, danmaku_receiver: DanmakuReceiver, *, danmu_uname: bool = False, @@ -75,7 +77,7 @@ class DanmakuDumper( self._calculator = StatisticsCalculator(interval=60) @property - def danmu_count(self) -> int: + def danmu_total(self) -> int: return self._calculator.count @property @@ -90,6 +92,14 @@ class DanmakuDumper( def dumping_path(self) -> Optional[str]: return self._path + def change_stream_recorder( + self, stream_recorder: BaseStreamRecorder + ) -> None: + self._stream_recorder.remove_listener(self) + self._stream_recorder = stream_recorder + self._stream_recorder.add_listener(self) + logger.debug('Changed stream recorder') + def _do_enable(self) -> None: self._stream_recorder.add_listener(self) logger.debug('Enabled danmaku dumper') diff --git a/src/blrec/core/flv_stream_recorder.py b/src/blrec/core/flv_stream_recorder.py new file mode 100644 index 0000000..dbf82f2 --- /dev/null +++ b/src/blrec/core/flv_stream_recorder.py @@ -0,0 +1,214 @@ +import io +import errno +import logging +from urllib.parse import urlparse + +from typing import Optional + +import urllib3 +import requests +from tqdm import tqdm +from tenacity import ( + retry_if_result, + retry_if_not_exception_type, + Retrying, + TryAgain, +) + +from .stream_analyzer import StreamProfile +from .base_stream_recorder import BaseStreamRecorder, StreamProxy +from .retry import wait_exponential_for_same_exceptions, before_sleep_log +from ..bili.live import Live +from ..bili.typing import StreamFormat, QualityNumber +from ..flv.stream_processor import StreamProcessor +from ..utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin +from ..flv.exceptions import FlvDataError, FlvStreamCorruptedError +from ..bili.exceptions import ( + LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamAvailable, +) + + +__all__ = 'FLVStreamRecorder', + + +logger = logging.getLogger(__name__) + + +class FLVStreamRecorder( + BaseStreamRecorder, + AsyncCooperationMixin, + AsyncStoppableMixin, +): + def __init__( + self, + live: Live, + out_dir: str, + path_template: str, + *, + stream_format: StreamFormat = 'flv', + quality_number: QualityNumber = 10000, + buffer_size: Optional[int] = None, + read_timeout: Optional[int] = None, + disconnection_timeout: Optional[int] = None, + filesize_limit: int = 0, + duration_limit: int = 0, + ) -> None: + super().__init__( + live=live, + out_dir=out_dir, + path_template=path_template, + stream_format=stream_format, + quality_number=quality_number, + buffer_size=buffer_size, + read_timeout=read_timeout, + disconnection_timeout=disconnection_timeout, + filesize_limit=filesize_limit, + duration_limit=duration_limit, + ) + + def _run(self) -> None: + logger.debug('Stream recorder thread started') + try: + with tqdm( + desc='Recording', + unit='B', + unit_scale=True, + postfix=self._make_pbar_postfix(), + ) as progress_bar: + self._progress_bar = progress_bar + + self._stream_processor = StreamProcessor( + self._file_manager, + filesize_limit=self._filesize_limit, + duration_limit=self._duration_limit, + analyse_data=True, + dedup_join=True, + save_extra_metadata=True, + ) + + def update_size(size: int) -> None: + progress_bar.update(size) + self._rec_calculator.submit(size) + + def update_stream_profile(profile: StreamProfile) -> None: + self._stream_profile = profile + + self._stream_processor.size_updates.subscribe(update_size) + self._stream_processor.stream_profile_updates.subscribe( + update_stream_profile + ) + + with requests.Session() as self._session: + self._main_loop() + except TryAgain: + pass + except Exception as e: + self._handle_exception(e) + finally: + if self._stream_processor is not None: + self._stream_processor.finalize() + self._stream_processor = None + self._progress_bar = None + self._dl_calculator.freeze() + self._rec_calculator.freeze() + self._emit_event('stream_recording_stopped') + logger.debug('Stream recorder thread stopped') + + def _main_loop(self) -> None: + for attempt in Retrying( + reraise=True, + retry=( + retry_if_result(lambda r: not self._stopped) | + retry_if_not_exception_type((OSError, NotImplementedError)) + ), + wait=wait_exponential_for_same_exceptions(max=60), + before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), + ): + with attempt: + try: + self._streaming_loop() + except NoStreamAvailable as e: + logger.warning(f'No stream available: {repr(e)}') + if not self._stopped: + raise TryAgain + except OSError as e: + logger.critical(repr(e), exc_info=e) + if e.errno == errno.ENOSPC: + # OSError(28, 'No space left on device') + self._handle_exception(e) + self._stopped = True + raise TryAgain + except LiveRoomHidden: + logger.error('The live room has been hidden!') + self._stopped = True + except LiveRoomLocked: + logger.error('The live room has been locked!') + self._stopped = True + except LiveRoomEncrypted: + logger.error('The live room has been encrypted!') + self._stopped = True + except Exception as e: + logger.exception(e) + self._handle_exception(e) + self._stopped = True + + def _streaming_loop(self) -> None: + url = self._get_live_stream_url() + + while not self._stopped: + try: + self._streaming(url) + except requests.exceptions.HTTPError as e: + # frequently occurred when the live just started or ended. + logger.warning(repr(e)) + self._defer_retry(1, 'streaming_loop') + # the url may has been forbidden or expired + # when the status code is 404 or 403 + if e.response.status_code in (403, 404): + url = self._get_live_stream_url() + except requests.exceptions.Timeout as e: + logger.warning(repr(e)) + except urllib3.exceptions.TimeoutError as e: + logger.warning(repr(e)) + except urllib3.exceptions.ProtocolError as e: + # ProtocolError('Connection broken: IncompleteRead( + logger.warning(repr(e)) + except requests.exceptions.ConnectionError as e: + logger.warning(repr(e)) + self._wait_for_connection_error() + except FlvDataError as e: + logger.warning(repr(e)) + self._use_candidate_stream = not self._use_candidate_stream + url = self._get_live_stream_url() + except FlvStreamCorruptedError as e: + logger.warning(repr(e)) + url = self._get_live_stream_url() + + def _streaming(self, url: str) -> None: + logger.debug(f'Requesting live stream... {url}') + self._stream_url = url + self._stream_host = urlparse(url).hostname or '' + + with self._session.get( + url, + stream=True, + headers=self._live.headers, + timeout=self.read_timeout, + ) as response: + logger.debug('Response received') + response.raise_for_status() + + if self._stopped: + return + + assert self._stream_processor is not None + self._stream_processor.set_metadata(self._make_metadata()) + + stream_proxy = StreamProxy(response.raw) + stream_proxy.size_updates.subscribe( + lambda n: self._dl_calculator.submit(n) + ) + + self._stream_processor.process_stream( + io.BufferedReader(stream_proxy, buffer_size=8192) + ) diff --git a/src/blrec/core/hls_stream_recorder.py b/src/blrec/core/hls_stream_recorder.py new file mode 100644 index 0000000..6af0612 --- /dev/null +++ b/src/blrec/core/hls_stream_recorder.py @@ -0,0 +1,442 @@ +import io +import time +import errno +import logging +from queue import Queue, Empty +from threading import Thread, Event, Lock +from datetime import datetime +from contextlib import suppress +from urllib.parse import urlparse + +from typing import Set, Optional + +import urllib3 +import requests +import m3u8 +from m3u8.model import Segment +from tqdm import tqdm +from tenacity import ( + retry, + wait_exponential, + stop_after_delay, + retry_if_result, + retry_if_exception_type, + retry_if_not_exception_type, + Retrying, + TryAgain, + RetryError, +) + +from .stream_remuxer import StreamRemuxer +from .stream_analyzer import ffprobe, StreamProfile +from .base_stream_recorder import BaseStreamRecorder, StreamProxy +from .retry import wait_exponential_for_same_exceptions, before_sleep_log +from ..bili.live import Live +from ..bili.typing import StreamFormat, QualityNumber +from ..flv.stream_processor import StreamProcessor +from ..utils.mixins import ( + AsyncCooperationMixin, AsyncStoppableMixin, SupportDebugMixin +) +from ..bili.exceptions import ( + LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamAvailable, +) + + +__all__ = 'HLSStreamRecorder', + + +logger = logging.getLogger(__name__) + + +class HLSStreamRecorder( + BaseStreamRecorder, + AsyncCooperationMixin, + AsyncStoppableMixin, + SupportDebugMixin, +): + def __init__( + self, + live: Live, + out_dir: str, + path_template: str, + *, + stream_format: StreamFormat = 'flv', + quality_number: QualityNumber = 10000, + buffer_size: Optional[int] = None, + read_timeout: Optional[int] = None, + disconnection_timeout: Optional[int] = None, + filesize_limit: int = 0, + duration_limit: int = 0, + ) -> None: + super().__init__( + live=live, + out_dir=out_dir, + path_template=path_template, + stream_format=stream_format, + quality_number=quality_number, + buffer_size=buffer_size, + read_timeout=read_timeout, + disconnection_timeout=disconnection_timeout, + filesize_limit=filesize_limit, + duration_limit=duration_limit, + ) + self._init_for_debug(self._live.room_id) + self._stream_analysed_lock = Lock() + self._last_segment_uris: Set[str] = set() + + def _run(self) -> None: + logger.debug('Stream recorder thread started') + try: + if self._debug: + path = '{}/playlist-{}-{}.m3u8'.format( + self._debug_dir, + self._live.room_id, + datetime.now().strftime('%Y-%m-%d-%H%M%S-%f'), + ) + self._playlist_debug_file = open(path, 'wt', encoding='utf-8') + + with StreamRemuxer(self._live.room_id) as self._stream_remuxer: + with requests.Session() as self._session: + self._session.headers.update(self._live.headers) + + self._segment_queue: Queue[Segment] = Queue(maxsize=1000) + self._segment_data_queue: Queue[bytes] = Queue(maxsize=100) + self._stream_host_available = Event() + + self._segment_fetcher_thread = Thread( + target=self._run_segment_fetcher, + name=f'SegmentFetcher::{self._live.room_id}', + daemon=True, + ) + self._segment_fetcher_thread.start() + + self._segment_data_feeder_thread = Thread( + target=self._run_segment_data_feeder, + name=f'SegmentDataFeeder::{self._live.room_id}', + daemon=True, + ) + self._segment_data_feeder_thread.start() + + self._stream_processor_thread = Thread( + target=self._run_stream_processor, + name=f'StreamProcessor::{self._live.room_id}', + daemon=True, + ) + self._stream_processor_thread.start() + + try: + self._main_loop() + finally: + if self._stream_processor is not None: + self._stream_processor.cancel() + self._segment_fetcher_thread.join(timeout=10) + self._segment_data_feeder_thread.join(timeout=10) + self._last_segment_uris.clear() + del self._segment_queue + del self._segment_data_queue + except TryAgain: + pass + except Exception as e: + self._handle_exception(e) + finally: + with suppress(Exception): + self._stream_processor_thread.join(timeout=10) + with suppress(Exception): + self._playlist_debug_file.close() + self._emit_event('stream_recording_stopped') + logger.debug('Stream recorder thread stopped') + + def _main_loop(self) -> None: + for attempt in Retrying( + reraise=True, + retry=( + retry_if_result(lambda r: not self._stopped) | + retry_if_not_exception_type((OSError, NotImplementedError)) + ), + wait=wait_exponential_for_same_exceptions(max=60), + before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), + ): + with attempt: + try: + self._streaming_loop() + except NoStreamAvailable as e: + logger.warning(f'No stream available: {repr(e)}') + if not self._stopped: + raise TryAgain + except OSError as e: + logger.critical(repr(e), exc_info=e) + if e.errno == errno.ENOSPC: + # OSError(28, 'No space left on device') + self._handle_exception(e) + self._stopped = True + raise TryAgain + except LiveRoomHidden: + logger.error('The live room has been hidden!') + self._stopped = True + except LiveRoomLocked: + logger.error('The live room has been locked!') + self._stopped = True + except LiveRoomEncrypted: + logger.error('The live room has been encrypted!') + self._stopped = True + except Exception as e: + logger.exception(e) + self._handle_exception(e) + self._stopped = True + + def _streaming_loop(self) -> None: + url = self._get_live_stream_url() + + while not self._stopped: + try: + self._playlist_fetcher(url) + except requests.exceptions.HTTPError as e: + # frequently occurred when the live just started or ended. + logger.warning(repr(e)) + self._defer_retry(1, 'streaming_loop') + # the url may has been forbidden or expired + # when the status code is 404 or 403 + if e.response.status_code in (403, 404): + url = self._get_live_stream_url() + except requests.exceptions.ConnectionError as e: + logger.warning(repr(e)) + self._wait_for_connection_error() + except RetryError as e: + logger.warning(repr(e)) + + def _playlist_fetcher(self, url: str) -> None: + self._stream_url = url + self._stream_host = urlparse(url).hostname or '' + self._stream_host_available.set() + with self._stream_analysed_lock: + self._stream_analysed = False + + while not self._stopped: + content = self._fetch_playlist(url) + playlist = m3u8.loads(content, uri=url) + + if self._debug: + self._playlist_debug_file.write(content + '\n') + + if playlist.is_variant: + url = sorted( + playlist.playlists, + key=lambda p: p.stream_info.bandwidth + )[-1].absolute_uri + logger.debug(f'playlist changed to variant playlist: {url}') + self._stream_url = url + self._stream_host = urlparse(url).hostname or '' + with self._stream_analysed_lock: + self._stream_analysed = False + continue + + uris: Set[str] = set() + for seg in playlist.segments: + uris.add(seg.uri) + if seg.uri not in self._last_segment_uris: + self._segment_queue.put(seg, timeout=60) + + if ( + self._last_segment_uris and + not uris.intersection(self._last_segment_uris) + ): + logger.debug( + 'segments broken!\n' + f'last segments: {self._last_segment_uris}\n' + f'current segments: {uris}' + ) + with self._stream_analysed_lock: + self._stream_analysed = False + + self._last_segment_uris = uris + + if playlist.is_endlist: + logger.debug('playlist ended') + self._stopped = True + break + + time.sleep(1) + + def _run_segment_fetcher(self) -> None: + logger.debug('Segment fetcher thread started') + try: + self._segment_fetcher() + except Exception as e: + logger.exception(e) + self._handle_exception(e) + finally: + self._dl_calculator.freeze() + logger.debug('Segment fetcher thread stopped') + + def _segment_fetcher(self) -> None: + assert self._stream_remuxer is not None + init_section = None + self._init_section_data = None + + while not self._stopped: + try: + seg = self._segment_queue.get(timeout=1) + except Empty: + continue + for attempt in Retrying( + reraise=True, + retry=( + retry_if_result(lambda r: not self._stopped) | + retry_if_not_exception_type((OSError, NotImplementedError)) + ), + ): + if attempt.retry_state.attempt_number > 3: + break + with attempt: + try: + if ( + getattr(seg, 'init_section', None) and + ( + not init_section or + seg.init_section.uri != init_section.uri + ) + ): + data = self._fetch_segment( + seg.init_section.absolute_uri + ) + init_section = seg.init_section + self._init_section_data = data + self._segment_data_queue.put(data, timeout=60) + data = self._fetch_segment(seg.absolute_uri) + self._segment_data_queue.put(data, timeout=60) + except requests.exceptions.HTTPError as e: + logger.warning(f'Failed to fetch segment: {repr(e)}') + if e.response.status_code in (403, 404, 599): + break + except requests.exceptions.ConnectionError as e: + logger.warning(repr(e)) + self._connection_recovered.wait() + except RetryError as e: + logger.warning(repr(e)) + break + else: + break + + def _run_segment_data_feeder(self) -> None: + logger.debug('Segment data feeder thread started') + try: + self._segment_data_feeder() + except Exception as e: + logger.exception(e) + self._handle_exception(e) + finally: + logger.debug('Segment data feeder thread stopped') + + def _segment_data_feeder(self) -> None: + assert self._stream_remuxer is not None + bytes_io = io.BytesIO() + segment_count = 0 + + def on_next(profile: StreamProfile) -> None: + self._stream_profile = profile + + def on_error(e: Exception) -> None: + logger.warning(f'Failed to analyse stream: {repr(e)}') + + while not self._stopped: + try: + data = self._segment_data_queue.get(timeout=1) + except Empty: + continue + else: + with self._stream_analysed_lock: + if not self._stream_analysed: + if self._init_section_data and not bytes_io.getvalue(): + bytes_io.write(self._init_section_data) + else: + bytes_io.write(data) + segment_count += 1 + + if segment_count >= 3: + ffprobe(bytes_io.getvalue()).subscribe( + on_next, on_error + ) + bytes_io = io.BytesIO() + segment_count = 0 + self._stream_analysed = True + try: + self._stream_remuxer.input.write(data) + except BrokenPipeError: + return + + def _run_stream_processor(self) -> None: + logger.debug('Stream processor thread started') + assert self._stream_remuxer is not None + + with tqdm( + desc='Recording', + unit='B', + unit_scale=True, + postfix=self._make_pbar_postfix(), + ) as progress_bar: + self._progress_bar = progress_bar + + def update_size(size: int) -> None: + progress_bar.update(size) + self._rec_calculator.submit(size) + + self._stream_processor = StreamProcessor( + self._file_manager, + filesize_limit=self._filesize_limit, + duration_limit=self._duration_limit, + analyse_data=True, + dedup_join=True, + save_extra_metadata=True, + ) + self._stream_processor.size_updates.subscribe(update_size) + + try: + self._stream_host_available.wait() + self._stream_processor.set_metadata(self._make_metadata()) + self._stream_processor.process_stream( + StreamProxy(self._stream_remuxer.output), # type: ignore + ) + except Exception as e: + if not self._stopped: + logger.exception(e) + self._handle_exception(e) + finally: + self._stream_processor.finalize() + self._progress_bar = None + self._rec_calculator.freeze() + logger.debug('Stream processor thread stopped') + + @retry( + retry=retry_if_exception_type(( + requests.exceptions.Timeout, + urllib3.exceptions.TimeoutError, + urllib3.exceptions.ProtocolError, + )), + wait=wait_exponential(multiplier=0.1, max=1), + stop=stop_after_delay(10), + ) + def _fetch_playlist(self, url: str) -> str: + response = self._session.get(url, timeout=3) + response.raise_for_status() + response.encoding = 'utf-8' + return response.text + + @retry( + retry=retry_if_exception_type(( + requests.exceptions.Timeout, + urllib3.exceptions.TimeoutError, + urllib3.exceptions.ProtocolError, + )), + wait=wait_exponential(multiplier=0.1, max=5), + stop=stop_after_delay(60), + ) + def _fetch_segment(self, url: str) -> bytes: + with self._session.get(url, stream=True, timeout=10) as response: + response.raise_for_status() + + bytes_io = io.BytesIO() + for chunk in response: + bytes_io.write(chunk) + self._dl_calculator.submit(len(chunk)) + + return bytes_io.getvalue() diff --git a/src/blrec/core/raw_danmaku_dumper.py b/src/blrec/core/raw_danmaku_dumper.py index 39bf204..62d4bbf 100644 --- a/src/blrec/core/raw_danmaku_dumper.py +++ b/src/blrec/core/raw_danmaku_dumper.py @@ -12,7 +12,10 @@ from tenacity import ( ) from .raw_danmaku_receiver import RawDanmakuReceiver -from .stream_recorder import StreamRecorder, StreamRecorderEventListener +from .base_stream_recorder import ( + BaseStreamRecorder, StreamRecorderEventListener +) +from ..bili.live import Live from ..exception import exception_callback, submit_exception from ..event.event_emitter import EventListener, EventEmitter from ..path import raw_danmaku_path @@ -41,13 +44,23 @@ class RawDanmakuDumper( ): def __init__( self, - stream_recorder: StreamRecorder, + live: Live, + stream_recorder: BaseStreamRecorder, danmaku_receiver: RawDanmakuReceiver, ) -> None: super().__init__() + self._live = live # @aio_task_with_room_id self._stream_recorder = stream_recorder self._receiver = danmaku_receiver + def change_stream_recorder( + self, stream_recorder: BaseStreamRecorder + ) -> None: + self._stream_recorder.remove_listener(self) + self._stream_recorder = stream_recorder + self._stream_recorder.add_listener(self) + logger.debug('Changed stream recorder') + def _do_enable(self) -> None: self._stream_recorder.add_listener(self) logger.debug('Enabled raw danmaku dumper') diff --git a/src/blrec/core/recorder.py b/src/blrec/core/recorder.py index 7f4fc78..5f54f88 100644 --- a/src/blrec/core/recorder.py +++ b/src/blrec/core/recorder.py @@ -1,7 +1,8 @@ from __future__ import annotations +import asyncio import logging from datetime import datetime -from typing import Iterator, Optional +from typing import Iterator, Optional, Type import aiohttp import aiofiles @@ -12,14 +13,19 @@ from .danmaku_receiver import DanmakuReceiver from .danmaku_dumper import DanmakuDumper, DanmakuDumperEventListener from .raw_danmaku_receiver import RawDanmakuReceiver from .raw_danmaku_dumper import RawDanmakuDumper, RawDanmakuDumperEventListener -from .stream_recorder import StreamRecorder, StreamRecorderEventListener +from .base_stream_recorder import ( + BaseStreamRecorder, StreamRecorderEventListener +) +from .stream_analyzer import StreamProfile +from .flv_stream_recorder import FLVStreamRecorder +from .hls_stream_recorder import HLSStreamRecorder from ..event.event_emitter import EventListener, EventEmitter from ..flv.data_analyser import MetaData from ..bili.live import Live from ..bili.models import RoomInfo from ..bili.danmaku_client import DanmakuClient from ..bili.live_monitor import LiveMonitor, LiveEventListener -from ..bili.typing import QualityNumber +from ..bili.typing import StreamFormat, QualityNumber from ..utils.mixins import AsyncStoppableMixin from ..path import cover_path from ..logging.room_id import aio_task_with_room_id @@ -88,9 +94,13 @@ class Recorder( out_dir: str, path_template: str, *, + stream_format: StreamFormat = 'flv', + quality_number: QualityNumber = 10000, buffer_size: Optional[int] = None, read_timeout: Optional[int] = None, disconnection_timeout: Optional[int] = None, + filesize_limit: int = 0, + duration_limit: int = 0, danmu_uname: bool = False, record_gift_send: bool = False, record_free_gifts: bool = False, @@ -98,8 +108,6 @@ class Recorder( record_super_chat: bool = False, save_cover: bool = False, save_raw_danmaku: bool = False, - filesize_limit: int = 0, - duration_limit: int = 0, ) -> None: super().__init__() @@ -110,11 +118,19 @@ class Recorder( self.save_raw_danmaku = save_raw_danmaku self._recording: bool = False + self._stream_available: bool = False - self._stream_recorder = StreamRecorder( + cls: Type[BaseStreamRecorder] + if stream_format == 'flv': + cls = FLVStreamRecorder + else: + cls = HLSStreamRecorder + self._stream_recorder = cls( self._live, out_dir=out_dir, path_template=path_template, + stream_format=stream_format, + quality_number=quality_number, buffer_size=buffer_size, read_timeout=read_timeout, disconnection_timeout=disconnection_timeout, @@ -135,6 +151,7 @@ class Recorder( ) self._raw_danmaku_receiver = RawDanmakuReceiver(danmaku_client) self._raw_danmaku_dumper = RawDanmakuDumper( + self._live, self._stream_recorder, self._raw_danmaku_receiver, ) @@ -147,6 +164,14 @@ class Recorder( def recording(self) -> bool: return self._recording + @property + def stream_format(self) -> StreamFormat: + return self._stream_recorder.stream_format + + @stream_format.setter + def stream_format(self, value: StreamFormat) -> None: + self._stream_recorder.stream_format = value + @property def quality_number(self) -> QualityNumber: return self._stream_recorder.quality_number @@ -155,6 +180,10 @@ class Recorder( def quality_number(self, value: QualityNumber) -> None: self._stream_recorder.quality_number = value + @property + def real_stream_format(self) -> StreamFormat: + return self._stream_recorder.real_stream_format + @property def real_quality_number(self) -> QualityNumber: return self._stream_recorder.real_quality_number @@ -224,20 +253,36 @@ class Recorder( self._danmaku_dumper.record_super_chat = value @property - def elapsed(self) -> float: - return self._stream_recorder.elapsed + def stream_url(self) -> str: + return self._stream_recorder.stream_url @property - def data_count(self) -> int: - return self._stream_recorder.data_count + def stream_host(self) -> str: + return self._stream_recorder.stream_host @property - def data_rate(self) -> float: - return self._stream_recorder.data_rate + def dl_total(self) -> int: + return self._stream_recorder.dl_total @property - def danmu_count(self) -> int: - return self._danmaku_dumper.danmu_count + def dl_rate(self) -> float: + return self._stream_recorder.dl_rate + + @property + def rec_elapsed(self) -> float: + return self._stream_recorder.rec_elapsed + + @property + def rec_total(self) -> int: + return self._stream_recorder.rec_total + + @property + def rec_rate(self) -> float: + return self._stream_recorder.rec_rate + + @property + def danmu_total(self) -> int: + return self._danmaku_dumper.danmu_total @property def danmu_rate(self) -> float: @@ -283,26 +328,9 @@ class Recorder( def metadata(self) -> Optional[MetaData]: return self._stream_recorder.metadata - async def _do_start(self) -> None: - self._live_monitor.add_listener(self) - self._danmaku_dumper.add_listener(self) - self._raw_danmaku_dumper.add_listener(self) - self._stream_recorder.add_listener(self) - logger.debug('Started recorder') - - self._print_live_info() - if self._live.is_living(): - await self._start_recording(stream_available=True) - else: - self._print_waiting_message() - - async def _do_stop(self) -> None: - await self._stop_recording() - self._live_monitor.remove_listener(self) - self._danmaku_dumper.remove_listener(self) - self._raw_danmaku_dumper.remove_listener(self) - self._stream_recorder.remove_listener(self) - logger.debug('Stopped recorder') + @property + def stream_profile(self) -> StreamProfile: + return self._stream_recorder.stream_profile def get_recording_files(self) -> Iterator[str]: if self._stream_recorder.recording_path is not None: @@ -329,17 +357,19 @@ class Recorder( async def on_live_ended(self, live: Live) -> None: logger.info('The live has ended') + self._stream_available = False await self._stop_recording() self._print_waiting_message() async def on_live_stream_available(self, live: Live) -> None: logger.debug('The live stream becomes available') + self._stream_available = True await self._stream_recorder.start() async def on_live_stream_reset(self, live: Live) -> None: logger.warning('The live stream has been reset') if not self._recording: - await self._start_recording(stream_available=True) + await self._start_recording() async def on_room_changed(self, room_info: RoomInfo) -> None: self._print_changed_room_info(room_info) @@ -371,9 +401,32 @@ class Recorder( logger.debug('Stream recording stopped') await self._stop_recording() - async def _start_recording(self, stream_available: bool = False) -> None: + async def _do_start(self) -> None: + self._live_monitor.add_listener(self) + self._danmaku_dumper.add_listener(self) + self._raw_danmaku_dumper.add_listener(self) + self._stream_recorder.add_listener(self) + logger.debug('Started recorder') + + self._print_live_info() + if self._live.is_living(): + self._stream_available = True + await self._start_recording() + else: + self._print_waiting_message() + + async def _do_stop(self) -> None: + await self._stop_recording() + self._live_monitor.remove_listener(self) + self._danmaku_dumper.remove_listener(self) + self._raw_danmaku_dumper.remove_listener(self) + self._stream_recorder.remove_listener(self) + logger.debug('Stopped recorder') + + async def _start_recording(self) -> None: if self._recording: return + self._change_stream_recorder() self._recording = True if self.save_raw_danmaku: @@ -383,8 +436,10 @@ class Recorder( self._danmaku_receiver.start() await self._prepare() - if stream_available: + if self._stream_available: await self._stream_recorder.start() + else: + asyncio.create_task(self._guard()) logger.info('Started recording') await self._emit('recording_started', self) @@ -414,23 +469,82 @@ class Recorder( self._danmaku_dumper.clear_files() self._stream_recorder.clear_files() - @retry(wait=wait_fixed(1), stop=stop_after_attempt(3)) + @aio_task_with_room_id + async def _guard(self, timeout: float = 60) -> None: + await asyncio.sleep(timeout) + if not self._recording: + return + if self._stream_available: + return + logger.debug( + f'Stream not available in {timeout} seconds, the event maybe lost.' + ) + + await self._live.update_info() + if self._live.is_living(): + logger.debug('The live is living now') + self._stream_available = True + if self._stream_recorder.stopped: + await self._stream_recorder.start() + else: + logger.debug('The live has ended before streaming') + self._stream_available = False + if not self._stream_recorder.stopped: + await self.stop() + + def _change_stream_recorder(self) -> None: + if self._recording: + logger.debug('Can not change stream recorder while recording') + return + + cls: Type[BaseStreamRecorder] + if self.stream_format == 'flv': + cls = FLVStreamRecorder + else: + cls = HLSStreamRecorder + + if self._stream_recorder.__class__ == cls: + return + + self._stream_recorder.remove_listener(self) + self._stream_recorder = cls( + self._live, + out_dir=self.out_dir, + path_template=self.path_template, + stream_format=self.stream_format, + quality_number=self.quality_number, + buffer_size=self.buffer_size, + read_timeout=self.read_timeout, + disconnection_timeout=self.disconnection_timeout, + filesize_limit=self.filesize_limit, + duration_limit=self.duration_limit, + ) + self._stream_recorder.add_listener(self) + + self._danmaku_dumper.change_stream_recorder(self._stream_recorder) + self._raw_danmaku_dumper.change_stream_recorder(self._stream_recorder) + + logger.debug(f'Changed stream recorder to {cls.__name__}') + @aio_task_with_room_id async def _save_cover_image(self, video_path: str) -> None: - await self._live.update_info() + try: + await self._live.update_info() + url = self._live.room_info.cover + ext = url.rsplit('.', 1)[-1] + path = cover_path(video_path, ext) + await self._save_file(url, path) + except Exception as e: + logger.error(f'Failed to save cover image: {repr(e)}') + else: + logger.info(f'Saved cover image: {path}') + + @retry(reraise=True, wait=wait_fixed(1), stop=stop_after_attempt(3)) + async def _save_file(self, url: str, path: str) -> None: async with aiohttp.ClientSession(raise_for_status=True) as session: - try: - url = self._live.room_info.cover - async with session.get(url) as response: - ext = url.rsplit('.', 1)[-1] - path = cover_path(video_path, ext) - async with aiofiles.open(path, 'wb') as file: - await file.write(await response.read()) - except Exception as e: - logger.error(f'Failed to save cover image: {repr(e)}') - raise - else: - logger.info(f'Saved cover image: {path}') + async with session.get(url) as response: + async with aiofiles.open(path, 'wb') as file: + await file.write(await response.read()) def _print_waiting_message(self) -> None: logger.info('Waiting... until the live starts') diff --git a/src/blrec/core/stream_analyzer.py b/src/blrec/core/stream_analyzer.py new file mode 100644 index 0000000..8f72a14 --- /dev/null +++ b/src/blrec/core/stream_analyzer.py @@ -0,0 +1,54 @@ +import json +import logging +from subprocess import Popen, PIPE +from typing import Dict, Any, Optional + +from rx import create +from rx.core import Observable +from rx.core.typing import Observer, Scheduler, Disposable +from rx.scheduler.newthreadscheduler import NewThreadScheduler + + +logger = logging.getLogger(__name__) + + +__all__ = 'ffprobe', 'StreamProfile' + + +StreamProfile = Dict[str, Any] + + +def ffprobe(data: bytes) -> Observable: + def subscribe( + observer: Observer[StreamProfile], + scheduler: Optional[Scheduler] = None, + ) -> Disposable: + _scheduler = scheduler or NewThreadScheduler() + + def action(scheduler, state): # type: ignore + args = [ + 'ffprobe', + '-show_streams', + '-show_format', + '-print_format', + 'json', + 'pipe:0', + ] + + with Popen( + args, stdin=PIPE, stdout=PIPE, stderr=PIPE + ) as process: + try: + stdout, stderr = process.communicate(data, timeout=10) + except Exception as e: + process.kill() + process.wait() + observer.on_error(e) + else: + profile = json.loads(stdout) + observer.on_next(profile) + observer.on_completed() + + return _scheduler.schedule(action) + + return create(subscribe) diff --git a/src/blrec/core/stream_remuxer.py b/src/blrec/core/stream_remuxer.py new file mode 100644 index 0000000..1cfea20 --- /dev/null +++ b/src/blrec/core/stream_remuxer.py @@ -0,0 +1,142 @@ +import os +import io +import errno +import shlex +import logging +from threading import Thread, Event +from subprocess import Popen, PIPE, CalledProcessError +from typing import List, Optional, cast + + +from ..utils.mixins import StoppableMixin, SupportDebugMixin + + +logger = logging.getLogger(__name__) + + +__all__ = 'StreamRemuxer', + + +class StreamRemuxer(StoppableMixin, SupportDebugMixin): + def __init__(self, room_id: int, bufsize: int = 1024 * 1024) -> None: + super().__init__() + self._room_id = room_id + self._bufsize = bufsize + self._exception: Optional[Exception] = None + self._subprocess_setup = Event() + self._MAX_ERROR_MESSAGES = 10 + self._error_messages: List[str] = [] + self._env = None + + self._init_for_debug(room_id) + if self._debug: + self._env = os.environ.copy() + path = os.path.join(self._debug_dir, f'ffreport-{room_id}-%t.log') + self._env['FFREPORT'] = f'file={path}:level=48' + + @property + def input(self) -> io.BufferedWriter: + assert self._subprocess.stdin is not None + return cast(io.BufferedWriter, self._subprocess.stdin) + + @property + def output(self) -> io.BufferedReader: + assert self._subprocess.stdout is not None + return cast(io.BufferedReader, self._subprocess.stdout) + + @property + def exception(self) -> Optional[Exception]: + return self._exception + + def __enter__(self): # type: ignore + self.start() + self.wait_for_subprocess() + return self + + def __exit__(self, exc_type, value, traceback): # type: ignore + self.stop() + self.raise_for_exception() + + def wait_for_subprocess(self) -> None: + self._subprocess_setup.wait() + + def raise_for_exception(self) -> None: + if not self.exception: + return + raise self.exception + + def _do_start(self) -> None: + logger.debug('Starting stream remuxer...') + self._thread = Thread( + target=self._run, + name=f'StreamRemuxer::{self._room_id}', + daemon=True, + ) + self._thread.start() + + def _do_stop(self) -> None: + logger.debug('Stopping stream remuxer...') + if hasattr(self, '_subprocess'): + self._subprocess.kill() + self._subprocess.wait(timeout=10) + if hasattr(self, '_thread'): + self._thread.join(timeout=10) + + def _run(self) -> None: + logger.debug('Started stream remuxer') + self._exception = None + self._error_messages.clear() + self._subprocess_setup.clear() + try: + self._run_subprocess() + except BrokenPipeError: + pass + except Exception as e: + # OSError: [Errno 22] Invalid argument + # https://stackoverflow.com/questions/23688492/oserror-errno-22-invalid-argument-in-subprocess + if isinstance(e, OSError) and e.errno == errno.EINVAL: + pass + else: + self._exception = e + logger.exception(e) + finally: + logger.debug('Stopped stream remuxer') + + def _run_subprocess(self) -> None: + cmd = 'ffmpeg -i pipe:0 -c copy -f flv pipe:1' + args = shlex.split(cmd) + + with Popen( + args, stdin=PIPE, stdout=PIPE, stderr=PIPE, + bufsize=self._bufsize, env=self._env, + ) as self._subprocess: + self._subprocess_setup.set() + assert self._subprocess.stderr is not None + + while not self._stopped: + data = self._subprocess.stderr.readline() + if not data: + if self._subprocess.poll() is not None: + break + else: + continue + line = data.decode('utf-8', errors='backslashreplace') + if self._debug: + logger.debug('ffmpeg: %s', line) + self._check_error(line) + + if not self._stopped and self._subprocess.returncode not in (0, 255): + # 255: Exiting normally, received signal 2. + raise CalledProcessError( + self._subprocess.returncode, + cmd=cmd, + output='\n'.join(self._error_messages), + ) + + def _check_error(self, line: str) -> None: + if 'error' not in line.lower() and 'failed' not in line.lower(): + return + logger.warning(f'ffmpeg error: {line}') + self._error_messages.append(line) + if len(self._error_messages) > self._MAX_ERROR_MESSAGES: + self._error_messages.remove(self._error_messages[0]) diff --git a/src/blrec/data/webapp/3rdpartylicenses.txt b/src/blrec/data/webapp/3rdpartylicenses.txt index 4f45dcd..7751c9f 100644 --- a/src/blrec/data/webapp/3rdpartylicenses.txt +++ b/src/blrec/data/webapp/3rdpartylicenses.txt @@ -84,6 +84,232 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +echarts +Apache-2.0 + + 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 [yyyy] [name of copyright owner] + + 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. + + + + + +======================================================================== +Apache ECharts Subcomponents: + +The Apache ECharts project contains subcomponents with separate copyright +notices and license terms. Your use of the source code for these +subcomponents is also subject to the terms and conditions of the following +licenses. + +BSD 3-Clause (d3.js): +The following files embed [d3.js](https://github.com/d3/d3) BSD 3-Clause: + `/src/chart/treemap/treemapLayout.ts`, + `/src/chart/tree/layoutHelper.ts`, + `/src/chart/graph/forceHelper.ts`, + `/src/util/number.ts` +See `/licenses/LICENSE-d3` for details of the license. + + filesize BSD-3-Clause Copyright (c) 2021, Jason Mulligan @@ -170,6 +396,31 @@ terms above. ng-zorro-antd MIT +ngx-echarts +MIT +MIT License + +Copyright (c) 2017 Xie, Ziyu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ngx-logger MIT The MIT License @@ -450,3 +701,36 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +zrender +BSD-3-Clause +BSD 3-Clause License + +Copyright (c) 2017, Baidu Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/src/blrec/data/webapp/45.c90c3cea2bf1a66e.js b/src/blrec/data/webapp/45.c90c3cea2bf1a66e.js new file mode 100644 index 0000000..7bc14e7 --- /dev/null +++ b/src/blrec/data/webapp/45.c90c3cea2bf1a66e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[45],{8045:(Yq,Nm,Gt)=>{Gt.r(Nm),Gt.d(Nm,{Axis:()=>ur,ChartView:()=>Et,ComponentModel:()=>mt,ComponentView:()=>zt,List:()=>xe,Model:()=>Rt,PRIORITY:()=>gb,SeriesModel:()=>Ot,color:()=>av,connect:()=>TV,dataTool:()=>PV,dependencies:()=>oV,disConnect:()=>Pb,disconnect:()=>CV,dispose:()=>AV,env:()=>Tt,extendChartView:()=>nz,extendComponentModel:()=>ez,extendComponentView:()=>rz,extendSeriesModel:()=>az,format:()=>fv,getCoordinateSystemDimensions:()=>DV,getInstanceByDom:()=>hd,getInstanceById:()=>MV,getMap:()=>IV,graphic:()=>uv,helper:()=>ov,init:()=>wV,innerDrawElementOnCanvas:()=>jp,matrix:()=>nv,number:()=>sv,parseGeoJSON:()=>Ed,parseGeoJson:()=>Ed,registerAction:()=>Lr,registerCoordinateSystem:()=>kb,registerLayout:()=>Ob,registerLoading:()=>gd,registerLocale:()=>$c,registerMap:()=>Vb,registerPostInit:()=>Rb,registerPostUpdate:()=>Eb,registerPreprocessor:()=>cd,registerProcessor:()=>pd,registerTheme:()=>vd,registerTransform:()=>Bb,registerUpdateLifecycle:()=>kf,registerVisual:()=>qa,setCanvasCreator:()=>LV,setPlatformAPI:()=>Fm,throttle:()=>_f,time:()=>lv,use:()=>vt,util:()=>hv,vector:()=>rv,version:()=>iV,zrUtil:()=>ev,zrender:()=>iv});var ev={};Gt.r(ev),Gt.d(ev,{HashMap:()=>Km,RADIAN_TO_DEGREE:()=>Vo,assert:()=>pe,bind:()=>Y,clone:()=>$,concatArray:()=>ql,createCanvas:()=>pP,createHashMap:()=>q,createObject:()=>No,curry:()=>nt,defaults:()=>Q,disableUserSelect:()=>_v,each:()=>A,eqNaN:()=>Si,extend:()=>B,filter:()=>It,find:()=>Ym,guid:()=>gv,hasOwn:()=>Z,indexOf:()=>ut,inherits:()=>yv,isArray:()=>z,isArrayLike:()=>fe,isBuiltInObject:()=>mv,isDom:()=>_i,isFunction:()=>j,isGradientObject:()=>ko,isImagePatternObject:()=>Zm,isNumber:()=>Ct,isObject:()=>J,isPrimitive:()=>xi,isRegExp:()=>Xm,isString:()=>W,isStringSafe:()=>Yl,isTypedArray:()=>Pe,keys:()=>yt,logError:()=>Wl,map:()=>G,merge:()=>it,mergeAll:()=>Ul,mixin:()=>Ut,noop:()=>qt,normalizeCssArray:()=>Xl,reduce:()=>qe,retrieve:()=>ee,retrieve2:()=>lt,retrieve3:()=>Rr,setAsPrimitive:()=>Oo,slice:()=>Zl,trim:()=>Ke});var rv={};Gt.r(rv),Gt.d(rv,{add:()=>xv,applyTransform:()=>oe,clone:()=>Er,copy:()=>de,create:()=>Ca,dist:()=>ra,distSquare:()=>Ma,distance:()=>Jl,distanceSquare:()=>t0,div:()=>xP,dot:()=>bP,len:()=>Bo,lenSquare:()=>bv,length:()=>mP,lengthSquare:()=>_P,lerp:()=>zo,max:()=>na,min:()=>aa,mul:()=>SP,negate:()=>wP,normalize:()=>bi,scale:()=>Ql,scaleAndAdd:()=>jl,set:()=>$m,sub:()=>Aa});var av={};Gt.r(av),Gt.d(av,{fastLerp:()=>Zo,fastMapToColor:()=>i2,lerp:()=>Fv,lift:()=>ou,lum:()=>qo,mapToColor:()=>o2,modifyAlpha:()=>Xo,modifyHSL:()=>Di,parse:()=>we,random:()=>s2,stringify:()=>mr,toHex:()=>n2});var nv={};Gt.r(nv),Gt.d(nv,{clone:()=>U0,copy:()=>gu,create:()=>Ge,identity:()=>$o,invert:()=>cn,mul:()=>Or,rotate:()=>Ea,scale:()=>yu,translate:()=>Sr});var iv={};Gt.r(iv),Gt.d(iv,{dispose:()=>Z2,disposeAll:()=>X2,getInstance:()=>q2,init:()=>fc,registerPainter:()=>$0,version:()=>K2});var hn={};Gt.r(hn),Gt.d(hn,{Arc:()=>lf,BezierCurve:()=>ks,BoundingRect:()=>ht,Circle:()=>Cr,CompoundPath:()=>uf,Ellipse:()=>of,Group:()=>tt,Image:()=>le,IncrementalDisplayable:()=>_x,Line:()=>ne,LinearGradient:()=>to,OrientedBoundingRect:()=>vf,Path:()=>pt,Point:()=>ot,Polygon:()=>Me,Polyline:()=>De,RadialGradient:()=>Bp,Rect:()=>_t,Ring:()=>Es,Sector:()=>Ae,Text:()=>St,applyTransform:()=>Mr,clipPointsByRect:()=>Hp,clipRectByRect:()=>Cx,createIcon:()=>eo,extendPath:()=>xx,extendShape:()=>Sx,getShapeClass:()=>df,getTransform:()=>Ya,groupTransition:()=>Ns,initProps:()=>Bt,isElementRemoved:()=>zi,lineLineIntersect:()=>Ax,linePolygonIntersect:()=>Vs,makeImage:()=>Gp,makePath:()=>Os,mergePath:()=>Ye,registerShape:()=>or,removeElement:()=>Ga,removeElementWithFadeOut:()=>ys,resizePath:()=>Fp,setTooltipConfig:()=>ro,subPixelOptimize:()=>gf,subPixelOptimizeLine:()=>$O,subPixelOptimizeRect:()=>tN,transformDirection:()=>yf,traverseElements:()=>Za,updateProps:()=>xt});var ov={};Gt.r(ov),Gt.d(ov,{createDimensions:()=>YV,createList:()=>kB,createScale:()=>NB,createSymbol:()=>Kt,createTextStyle:()=>BB,dataStack:()=>OB,enableHoverEmphasis:()=>za,getECData:()=>at,getLayoutRect:()=>Jt,mixinAxisModelCommonMethods:()=>VB});var sv={};Gt.r(sv),Gt.d(sv,{MAX_SAFE_INTEGER:()=>vc,asc:()=>He,getPercentWithPrecision:()=>a_,getPixelPrecision:()=>hc,getPrecision:()=>br,getPrecisionSafe:()=>r_,isNumeric:()=>gc,isRadianAroundZero:()=>ns,linearMap:()=>Dt,nice:()=>pc,numericToNumber:()=>Vr,parseDate:()=>We,quantile:()=>Tu,quantity:()=>n_,quantityExponent:()=>wu,reformIntervals:()=>dc,remRadian:()=>cc,round:()=>Ht});var lv={};Gt.r(lv),Gt.d(lv,{format:()=>xs,parse:()=>We});var uv={};Gt.r(uv),Gt.d(uv,{Arc:()=>lf,BezierCurve:()=>ks,BoundingRect:()=>ht,Circle:()=>Cr,CompoundPath:()=>uf,Ellipse:()=>of,Group:()=>tt,Image:()=>le,IncrementalDisplayable:()=>_x,Line:()=>ne,LinearGradient:()=>to,Polygon:()=>Me,Polyline:()=>De,RadialGradient:()=>Bp,Rect:()=>_t,Ring:()=>Es,Sector:()=>Ae,Text:()=>St,clipPointsByRect:()=>Hp,clipRectByRect:()=>Cx,createIcon:()=>eo,extendPath:()=>xx,extendShape:()=>Sx,getShapeClass:()=>df,getTransform:()=>Ya,initProps:()=>Bt,makeImage:()=>Gp,makePath:()=>Os,mergePath:()=>Ye,registerShape:()=>or,resizePath:()=>Fp,updateProps:()=>xt});var fv={};Gt.r(fv),Gt.d(fv,{addCommas:()=>ip,capitalFirst:()=>$E,encodeHTML:()=>ke,formatTime:()=>JE,formatTpl:()=>up,getTextRect:()=>UB,getTooltipMarker:()=>zS,normalizeCssArray:()=>Vn,toCamelCase:()=>op,truncateText:()=>__});var hv={};Gt.r(hv),Gt.d(hv,{bind:()=>Y,clone:()=>$,curry:()=>nt,defaults:()=>Q,each:()=>A,extend:()=>B,filter:()=>It,indexOf:()=>ut,inherits:()=>yv,isArray:()=>z,isFunction:()=>j,isObject:()=>J,isString:()=>W,map:()=>G,merge:()=>it,reduce:()=>qe});var vv=function(r,e){return(vv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])})(r,e)};function O(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}vv(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var rP=function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},vn=new function r(){this.browser=new rP,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(vn.wxa=!0,vn.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?vn.worker=!0:"undefined"==typeof navigator?(vn.node=!0,vn.svgSupported=!0):function nP(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}(navigator.userAgent,vn);const Tt=vn;var r,e,Gm="sans-serif",Ta="12px "+Gm,uP=function lP(r){var e={};if("undefined"==typeof JSON)return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}(e,i),s=function IP(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?e0(s,o):e0(o,s))}(o,i,n);if(s)return s(r,t,a),!0}return!1}function a0(r){return"CANVAS"===r.nodeName.toUpperCase()}var PP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Av=[],RP=Tt.browser.firefox&&+Tt.browser.version.split(".")[0]<39;function Mv(r,e,t,a){return t=t||{},a?n0(r,e,t):RP&&null!=e.layerX&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):null!=e.offsetX?(t.zrX=e.offsetX,t.zrY=e.offsetY):n0(r,e,t),t}function n0(r,e,t){if(Tt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(a0(r)){var i=r.getBoundingClientRect();return t.zrX=a-i.left,void(t.zrY=n-i.top)}if(Cv(Av,r,a,n))return t.zrX=Av[0],void(t.zrY=Av[1])}t.zrX=t.zrY=0}function Dv(r){return r||window.event}function Qe(r,e,t){if(null!=(e=Dv(e)).zrX)return e;var a=e.type;if(a&&a.indexOf("touch")>=0){var o="touchend"!==a?e.targetTouches[0]:e.changedTouches[0];o&&Mv(r,o,e,t)}else{Mv(r,e,e,t);var i=function EP(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;return null==t||null==a?e:3*Math.abs(0!==a?a:t)*(a>0?-1:a<0?1:t>0?-1:1)}(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&PP.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Lv(r,e,t,a){r.addEventListener(e,t,a)}function kP(r,e,t,a){r.removeEventListener(e,t,a)}var ia=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function i0(r){return 2===r.which||3===r.which}var OP=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=o0(a)/o0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=function NP(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function BP(){ia(this.event)}var zP=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.handler=null,t}return Vt(e,r),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(je),Go=function r(e,t){this.x=e,this.y=t},GP=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],l0=function(r){function e(t,a,n,i){var o=r.call(this)||this;return o._hovered=new Go(0,0),o.storage=t,o.painter=a,o.painterRoot=i,n=n||new zP,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new CP(o),o}return Vt(e,r),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(GP,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=u0(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var l=this._hovered=i?new Go(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;"only_globalout"!==a&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==a&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Go(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+a,s=function VP(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:BP}}(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){"function"==typeof l[o]&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){for(var i=this.storage.getDisplayList(),o=new Go(t,a),s=i.length-1;s>=0;s--){var l=void 0;if(i[s]!==n&&!i[s].ignore&&(l=FP(i[s],t,a))&&(!o.topTarget&&(o.topTarget=i[s]),"silent"!==l)){o.target=i[s];break}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new OP);var n=this._gestureMgr;"start"===a&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===a&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Go;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(je);function FP(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}a=a.__hostTarget||a.parent}return!n||"silent"}return!1}function u0(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){l0.prototype[r]=function(e){var i,o,t=e.zrX,a=e.zrY,n=u0(this,t,a);if(("mouseup"!==r||!n)&&(o=(i=this.findHover(t,a)).target),"mousedown"===r)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===r)this._upEl=o;else if("click"===r){if(this._downEl!==this._upEl||!this._downPoint||ra(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});const HP=l0;function v0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function c0(r,e,t,a,n){for(a===e&&a++;a>>1])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Pv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Rv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function $l(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<32)return void c0(r,t,a,t+(i=v0(r,t,a,e)),e);var o=function YP(r,e){var o,s,t=7,l=0,u=[];function c(g){var y=o[g],m=s[g],_=o[g+1],S=s[g+1];s[g]=m+S,g===l-3&&(o[g+1]=o[g+2],s[g+1]=s[g+2]),l--;var b=Rv(r[_],r,y,m,0,e);y+=b,0!=(m-=b)&&0!==(S=Pv(r[y+m-1],r,_,S,S-1,e))&&(m<=S?function p(g,y,m,_){var S=0;for(S=0;S=7||D>=7);if(M)break;T<0&&(T=0),T+=2}if((t=T)<1&&(t=1),1===y){for(S=0;S<_;S++)r[w+S]=r[x+S];r[w+_]=u[b]}else{if(0===y)throw new Error;for(S=0;S=0;S--)r[C+S]=r[T+S];if(0===y){I=!0;break}}if(r[w--]=u[x--],1==--_){I=!0;break}if(0!=(L=_-Pv(r[b],u,0,_,_-1,e))){for(_-=L,C=1+(w-=L),T=1+(x-=L),S=0;S=7||L>=7);if(I)break;D<0&&(D=0),D+=2}if((t=D)<1&&(t=1),1===_){for(C=1+(w-=y),T=1+(b-=y),S=y-1;S>=0;S--)r[C+S]=r[T+S];r[w]=u[x]}else{if(0===_)throw new Error;for(T=w-(_-1),S=0;S<_;S++)r[T+S]=u[S]}}else{for(C=1+(w-=y),T=1+(b-=y),S=y-1;S>=0;S--)r[C+S]=r[T+S];r[w]=u[x]}else for(T=w-(_-1),S=0;S<_;S++)r[T+S]=u[S]}(y,m,_,S))}return o=[],s=[],{mergeRuns:function h(){for(;l>1;){var g=l-2;if(g>=1&&s[g-1]<=s[g]+s[g+1]||g>=2&&s[g-2]<=s[g]+s[g-1])s[g-1]s[g+1])break;c(g)}},forceMergeRuns:function v(){for(;l>1;){var g=l-2;g>0&&s[g-1]=32;)e|=1&r,r>>=1;return r+e}(n);do{if((i=v0(r,t,a,e))s&&(l=s),c0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(0!==n);o.forceMergeRuns()}}var p0=!1;function Ev(){p0||(p0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var ZP=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d0}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ev(),f.z=0),isNaN(f.z2)&&(Ev(),f.z2=0),isNaN(f.zlevel)&&(Ev(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)}},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const XP=ZP;var g0;g0=Tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const kv=g0;var tu={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return.5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return 0===r?0:Math.pow(1024,r-1)},exponentialOut:function(r){return 1===r?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return 0===r?0:1===r?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(2-Math.pow(2,-10*(r-1)))},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),-t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4))},elasticOut:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4)*-.5:t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?r*r*((e+1)*r-e)*.5:.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-tu.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?.5*tu.bounceIn(2*r):.5*tu.bounceOut(2*r-1)+.5}};const y0=tu;var eu=Math.pow,Da=Math.sqrt,_0=Da(3),au=1/3,kr=Ca(),Je=Ca(),Ci=Ca();function La(r){return r>-1e-8&&r<1e-8}function S0(r){return r>1e-8||r<-1e-8}function re(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function x0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function nu(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-2*e+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(La(f)&&La(h))La(s)?i[0]=0:(p=-l/s)>=0&&p<=1&&(i[c++]=p);else{var d=h*h-4*f*v;if(La(d)){var g=h/f,y=-g/2;(p=-s/o+g)>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Da(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);(p=(-s-((_=_<0?-eu(-_,au):eu(_,au))+(S=S<0?-eu(-S,au):eu(S,au))))/(3*o))>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Da(f*f*f)),x=Math.acos(b)/3,w=Da(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),C=(y=(-s+w*(T+_0*Math.sin(x)))/(3*o),(-s+w*(T-_0*Math.sin(x)))/(3*o));p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function b0(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(La(o))S0(i)&&(u=-s/i)>=0&&u<=1&&(n[l++]=u);else{var f=i*i-4*o*s;if(La(f))n[0]=-i/(2*o);else if(f>0){var u,h=Da(f),v=(-i-h)/(2*o);(u=(-i+h)/(2*o))>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ia(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function w0(r,e,t,a,n,i,o,s,l,u,f){var h,p,d,g,y,v=.005,c=1/0;kr[0]=l,kr[1]=u;for(var m=0;m<1;m+=.05)Je[0]=re(r,t,n,o,m),Je[1]=re(e,a,i,s,m),(g=Ma(kr,Je))=0&&g=0&&c=1?1:nu(0,a,i,1,l,s)&&re(0,n,o,1,s[0])}}}var JP=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||qt,this.ondestroy=e.ondestroy||qt,this.onrestart=e.onrestart||qt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=e-n%a,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=j(e)?e:y0[e]||Nv(e)},r}();const $P=JP;var A0=function r(e){this.value=e},t2=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new A0(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),e2=function(){function r(e){this._list=new t2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(null==n[e]){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new A0(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(null!=t)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Uo=e2;var M0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function yr(r){return(r=Math.round(r))<0?0:r>255?255:r}function Yo(r){return r<0?0:r>1?1:r}function Vv(r){var e=r;return e.length&&"%"===e.charAt(e.length-1)?yr(parseFloat(e)/100*255):yr(parseInt(e,10))}function Ai(r){var e=r;return e.length&&"%"===e.charAt(e.length-1)?Yo(parseFloat(e)/100):Yo(parseFloat(e))}function Bv(r,e,t){return t<0?t+=1:t>1&&(t-=1),6*t<1?r+(e-r)*t*6:2*t<1?e:3*t<2?r+(e-r)*(2/3-t)*6:r}function Pa(r,e,t){return r+(e-r)*t}function $e(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function zv(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var D0=new Uo(20),iu=null;function Mi(r,e){iu&&zv(iu,e),iu=D0.put(r,iu||e.slice())}function we(r,e){if(r){e=e||[];var t=D0.get(r);if(t)return zv(e,t);var a=(r+="").replace(/ /g,"").toLowerCase();if(a in M0)return zv(e,M0[a]),Mi(r,e),e;var i,n=a.length;if("#"===a.charAt(0))return 4===n||5===n?(i=parseInt(a.slice(1,4),16))>=0&&i<=4095?($e(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===n?parseInt(a.slice(4),16)/15:1),Mi(r,e),e):void $e(e,0,0,0,1):7===n||9===n?(i=parseInt(a.slice(1,7),16))>=0&&i<=16777215?($e(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===n?parseInt(a.slice(7),16)/255:1),Mi(r,e),e):void $e(e,0,0,0,1):void 0;var o=a.indexOf("("),s=a.indexOf(")");if(-1!==o&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?$e(e,+u[0],+u[1],+u[2],1):$e(e,0,0,0,1);f=Ai(u.pop());case"rgb":return 3!==u.length?void $e(e,0,0,0,1):($e(e,Vv(u[0]),Vv(u[1]),Vv(u[2]),f),Mi(r,e),e);case"hsla":return 4!==u.length?void $e(e,0,0,0,1):(u[3]=Ai(u[3]),Gv(u,e),Mi(r,e),e);case"hsl":return 3!==u.length?void $e(e,0,0,0,1):(Gv(u,e),Mi(r,e),e);default:return}}$e(e,0,0,0,1)}}function Gv(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Ai(r[1]),n=Ai(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=2*n-i;return $e(e=e||[],yr(255*Bv(o,i,t+1/3)),yr(255*Bv(o,i,t)),yr(255*Bv(o,i,t-1/3)),1),4===r.length&&(e[3]=r[3]),e}function ou(r,e){var t=we(r);if(t){for(var a=0;a<3;a++)t[a]=e<0?t[a]*(1-e)|0:(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return mr(t,4===t.length?"rgba":"rgb")}}function n2(r){var e=we(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Zo(r,e,t){if(e&&e.length&&r>=0&&r<=1){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=yr(Pa(o[0],s[0],l)),t[1]=yr(Pa(o[1],s[1],l)),t[2]=yr(Pa(o[2],s[2],l)),t[3]=Yo(Pa(o[3],s[3],l)),t}}var i2=Zo;function Fv(r,e,t){if(e&&e.length&&r>=0&&r<=1){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=we(e[n]),s=we(e[i]),l=a-n,u=mr([yr(Pa(o[0],s[0],l)),yr(Pa(o[1],s[1],l)),yr(Pa(o[2],s[2],l)),Yo(Pa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var o2=Fv;function Di(r,e,t,a){var n=we(r);if(r)return n=function a2(r){if(r){var l,u,e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2;if(0===o)l=0,u=0;else{u=s<.5?o/(i+n):o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[360*l,u,s];return null!=r[3]&&c.push(r[3]),c}}(n),null!=e&&(n[0]=function r2(r){return(r=Math.round(r))<0?0:r>360?360:r}(e)),null!=t&&(n[1]=Ai(t)),null!=a&&(n[2]=Ai(a)),mr(Gv(n),"rgba")}function Xo(r,e){var t=we(r);if(t&&null!=e)return t[3]=Yo(e),mr(t,"rgba")}function mr(r,e){if(r&&r.length){var t=r[0]+","+r[1]+","+r[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(t+=","+r[3]),e+"("+t+")"}}function qo(r,e){var t=we(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function s2(){return mr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Ko=Math.round;function Li(r){var e;if(r&&"transparent"!==r){if("string"==typeof r&&r.indexOf("rgba")>-1){var t=we(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}}else r="none";return{color:r,opacity:null==e?1:e}}function Ra(r){return r<1e-4&&r>-1e-4}function su(r){return Ko(1e3*r)/1e3}function Hv(r){return Ko(1e4*r)/1e4}var u2={left:"start",right:"end",center:"middle",middle:"middle"};function I0(r){return r&&!!r.image}function P0(r){return"linear"===r.type}function R0(r){return"radial"===r.type}function lu(r){return"url(#"+r+")"}function E0(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function k0(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Vo,n=lt(r.scaleX,1),i=lt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(1!==n||1!==i)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Ko(o*Vo)+"deg, "+Ko(s*Vo)+"deg)"),l.join(" ")}var g2=Tt.hasGlobalWindow&&j(window.btoa)?function(r){return window.btoa(unescape(r))}:"undefined"!=typeof Buffer?function(r){return Buffer.from(r).toString("base64")}:function(r){return null},Wv=Array.prototype.slice;function oa(r,e,t){return(e-r)*t+r}function Uv(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=6,l=t;if(fe(t)){var u=function S2(r){return fe(r&&r[0])?2:1}(t);s=u,(1===u&&!Ct(t[0])||2===u&&!Ct(t[0][0]))&&(o=!0)}else if(Ct(t)&&!Si(t))s=0;else if(W(t))if(isNaN(+t)){var f=we(t);f&&(l=f,s=3)}else s=0;else if(ko(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:we(c.color)}}),P0(t)?s=4:R0(t)&&(s=5),l=h}0===i?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=j(a)?a:y0[a]||Nv(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=cu(n),u=B0(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=0===g?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?Jo:e[l];if((cu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(cu(i))1===i?Uv(m,c[n],p[n],y):function y2(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o0&&l.addKeyframe(0,jo(u),n),this._trackKeys.push(s)}l.addKeyframe(e,jo(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();const Xv=b2;function Ii(){return(new Date).getTime()}var w2=function(r){function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,a.stage=(t=t||{}).stage||{},a}return Vt(e,r),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Ii()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next;i.step(a,n)&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,kv(function a(){t._running&&(kv(a),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Ii(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ii(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ii()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Xv(t,a.loop);return this.addAnimator(n),n},e}(je);const T2=w2;var qv=Tt.domSupported,Kv=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:r,touch:["touchstart","touchend","touchmove"],pointer:G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n})}}(),z0_mouse=["mousemove","mouseup"],z0_pointer=["pointermove","pointerup"],G0=!1;function jv(r){var e=r.pointerType;return"pen"===e||"touch"===e}function Qv(r){r&&(r.zrByTouch=!0)}function F0(r,e){for(var t=e,a=!1;t&&9!==t.nodeType&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var D2=function r(e,t){this.stopPropagation=qt,this.stopImmediatePropagation=qt,this.preventDefault=qt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},_r={mousedown:function(r){r=Qe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Qe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Qe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){F0(this,(r=Qe(this.dom,r)).toElement||r.relatedTarget)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){G0=!0,r=Qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){G0||(r=Qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){Qv(r=Qe(this.dom,r)),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_r.mousemove.call(this,r),_r.mousedown.call(this,r)},touchmove:function(r){Qv(r=Qe(this.dom,r)),this.handler.processGesture(r,"change"),_r.mousemove.call(this,r)},touchend:function(r){Qv(r=Qe(this.dom,r)),this.handler.processGesture(r,"end"),_r.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<300&&_r.click.call(this,r)},pointerdown:function(r){_r.mousedown.call(this,r)},pointermove:function(r){jv(r)||_r.mousemove.call(this,r)},pointerup:function(r){_r.mouseup.call(this,r)},pointerout:function(r){jv(r)||_r.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){_r[r]=function(e){e=Qe(this.dom,e),this.trigger(r,e)}});var Jv={pointermove:function(r){jv(r)||Jv.mousemove.call(this,r)},pointerup:function(r){Jv.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function pu(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Lv(r.domTarget,e,t,a)}function $v(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&kP(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var H0=function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},P2=function(r){function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new H0(t,_r),qv&&(n._globalHandlerScope=new H0(document,Jv)),function L2(r,e){var t=e.domHandlers;Tt.pointerEventsSupported?A(Kv.pointer,function(a){pu(e,a,function(n){t[a].call(r,n)})}):(Tt.touchEventsSupported&&A(Kv.touch,function(a){pu(e,a,function(n){t[a].call(r,n),function A2(r){r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}(e)})}),A(Kv.mouse,function(a){pu(e,a,function(n){n=Dv(n),e.touching||t[a].call(r,n)})}))}(n,n._localHandlerScope),n}return Vt(e,r),e.prototype.dispose=function(){$v(this._localHandlerScope),qv&&$v(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,qv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?function I2(r,e){function t(a){pu(e,a,function n(i){i=Dv(i),F0(r,i.target)||(i=function M2(r,e){return Qe(r.dom,new D2(r,e),!0)}(r,i),e.domHandlers[a].call(r,i))},{capture:!0})}Tt.pointerEventsSupported?A(z0_pointer,t):Tt.touchEventsSupported||A(z0_mouse,t)}(this,a):$v(a)}},e}(je);const R2=P2;var W0=1;Tt.hasGlobalWindow&&(W0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var du=W0,ec="#333",rc="#ccc";function Ge(){return[1,0,0,1,0,0]}function $o(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function gu(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Or(r,e,t){var n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=e[0]*t[0]+e[2]*t[1],r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Sr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Ea(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function yu(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function cn(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(r[0]=o*(l=1/l),r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function U0(r){var e=[1,0,0,1,0,0];return gu(e,r),e}var Y0=$o;function pn(r){return r>5e-5||r<-5e-5}var dn=[],Pi=[],ac=[1,0,0,1,0,0],nc=Math.abs,k2=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return pn(this.rotation)||pn(this.x)||pn(this.y)||pn(this.scaleX-1)||pn(this.scaleY-1)||pn(this.skewX)||pn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;t||e?(a=a||[1,0,0,1,0,0],t?this.getLocalTransform(a):Y0(a),e&&(t?Or(a,e,a):gu(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)):a&&Y0(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(dn);var a=dn[0]<0?-1:1,n=dn[1]<0?-1:1,i=((dn[0]-a)*t+a)/dn[0]||0,o=((dn[1]-n)*t+n)/dn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],cn(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Or(Pi,e.invTransform,t),t=Pi);var a=this.originX,n=this.originY;(a||n)&&(ac[4]=a,ac[5]=n,Or(Pi,t,ac),Pi[4]-=a,Pi[5]-=n,t=Pi),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&oe(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&oe(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&nc(e[0]-1)>1e-10&&nc(e[3]-1)>1e-10?Math.sqrt(nc(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){X0(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&Ea(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),Nr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function X0(r,e){for(var t=0;tp&&(p=_,ot.set(es,dp&&(p=S,ot.set(es,0,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return 0===this.width||0===this.height},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(a){if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],s=a[5];return e.x=t.x*n+a[4],e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}gn.x=mn.x=t.x,gn.y=_n.y=t.y,yn.x=_n.x=t.x+t.width,yn.y=mn.y=t.y+t.height,gn.transform(a),_n.transform(a),yn.transform(a),mn.transform(a),e.x=mu(gn.x,yn.x,mn.x,_n.x),e.y=mu(gn.y,yn.y,mn.y,_n.y);var l=_u(gn.x,yn.x,mn.x,_n.x),u=_u(gn.y,yn.y,mn.y,_n.y);e.width=l-e.x,e.height=u-e.y}else e!==t&&r.copy(e,t)},r}();const ht=N2;var q0={};function Fe(r,e){var t=q0[e=e||Ta];t||(t=q0[e]=new Uo(500));var a=t.get(r);return null==a&&(a=gr.measureText(r,e).width,t.put(r,a)),a}function K0(r,e,t,a){var n=Fe(r,e),i=Su(e),o=as(0,n,t),s=Ri(0,i,a);return new ht(o,s,n,i)}function rs(r,e,t,a){var n=((r||"")+"").split("\n");if(1===n.length)return K0(n[0],e,t,a);for(var o=new ht(0,0,0,0),s=0;s=0?parseFloat(r)/100*e:parseFloat(r):r}function xu(r,e,t){var a=e.position||"inside",n=null!=e.distance?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=xr(a[0],t.width),u+=xr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom"}return(r=r||{}).x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ic="__zr_normal__",oc=Nr.concat(["ignore"]),V2=qe(Nr,function(r,e){return r[e]=!0,r},{ignore:!1}),Ei={},B2=new ht(0,0,0,0),sc=function(){function r(e){this.id=gv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),null!=a.position){var f=B2;f.copy(a.layoutRect?a.layoutRect:this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ei,a,f):xu(Ei,a,f),i.x=Ei.x,i.y=Ei.y,o=Ei.align,s=Ei.verticalAlign;var h=a.origin;if(h&&null!=a.rotation){var v=void 0,c=void 0;"center"===h?(v=.5*f.width,c=.5*f.height):(v=xr(h[0],f.width),c=xr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}null!=a.rotation&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=null==a.inside?"string"==typeof a.position&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(m=a.insideStroke,(null==(y=a.insideFill)||"auto"===y)&&(y=this.getInsideTextFill()),(null==m||"auto"===m)&&(m=this.getInsideTextStroke(y),_=!0)):(m=a.outsideStroke,(null==(y=a.outsideFill)||"auto"===y)&&(y=this.getOutsideFill()),(null==m||"auto"===m)&&(m=this.getOutsideStroke(y),_=!0)),((y=y||"#000")!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=1,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rc:ec},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a="string"==typeof t&&we(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,mr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(J(e))for(var n=yt(e),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(ic,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===ic;if(this.hasState()||!i){var s=this.currentStates,l=this.stateTransition;if(!(ut(s,e)>=0)||!t&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i)return void Wl("State "+e+" not exists.");i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(e,t,a){if(e.length){var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s)for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=ut(n,e),o=ut(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var a,t={},n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var b,T=void 0,C=void 0,D=void 0;if(s)for(C={},v&&(T={}),S=0;S<_;S++)C[y=d[S]]=t[y],v?T[y]=a[y]:t[y]=a[y];else if(v)for(D={},S=0;S<_;S++){var y;D[y=d[S]]=jo(t[y]),G2(t,a,y)}(b=new Xv(t,!1,!1,h?It(p,function(L){return L.targetName===e}):null)).targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),D&&b.whenWithKeys(0,D,d),b.whenWithKeys(null==u?500:u,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}Ut(sc,je),Ut(sc,sa);const Q0=sc;var J0=function(r){function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return Vt(e,r),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=ut(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=ut(n,t);return i<0||(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},r.prototype.resize=function(e){this.painter.resize((e=e||{}).width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%"}return W(r)?function j2(r){return r.replace(/^\s+|\s+$/g,"")}(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):null==r?NaN:+r}function Ht(r,e,t){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),r=(+r).toFixed(e),t?r:+r}function He(r){return r.sort(function(e,t){return e-t}),r}function br(r){if(r=+r,isNaN(r))return 0;if(r>1e-14)for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t;return r_(r)}function r_(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf(".");return Math.max(0,(i<0?0:n-1-i)-a)}function hc(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function a_(r,e,t){if(!r[e])return 0;var a=qe(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(0===a)return 0;for(var n=Math.pow(10,t),i=G(r,function(p){return(isNaN(p)?0:p)/a*n*100}),o=100*n,s=G(i,function(p){return Math.floor(p)}),l=qe(s,function(p,d){return p+d},0),u=G(i,function(p,d){return p-s[d]});lf&&(f=u[v],h=v);++s[h],u[h]=0,++l}return s[e]/n}function Q2(r,e){var t=Math.max(br(r),br(e)),a=r+e;return t>20?a:Ht(a,t)}var vc=9007199254740991;function cc(r){var e=2*Math.PI;return(r%e+e)%e}function ns(r){return r>-1e-4&&r<1e-4}var J2=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function We(r){if(r instanceof Date)return r;if(W(r)){var e=J2.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==r?new Date(NaN):new Date(Math.round(r))}function n_(r){return Math.pow(10,wu(r))}function wu(r){if(0===r)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function pc(r,e){var t=wu(r),a=Math.pow(10,t),n=r/a;return r=(e?n<1.5?1:n<2.5?2:n<4?3:n<7?5:10:n<1?1:n<2?2:n<3?3:n<5?5:10)*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Tu(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function dc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a=0||i&&ut(i,l)<0)){var u=a.getShallow(l,e);null!=u&&(o[r[s][0]]=u)}}return o}}var wR=Tn([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),TR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return wR(this,e,t)},r}(),xc=new Uo(50);function CR(r){if("string"==typeof r){var e=xc.get(r);return e&&e.image}return r}function bc(r,e,t,a,n){if(r){if("string"==typeof r){if(e&&e.__zrImageSrc===r||!t)return e;var i=xc.get(r),o={hostEl:t,cb:a,cbPayload:n};if(i)!Au(e=i.image)&&i.pending.push(o);else{var s=gr.loadImage(r,m_,m_);s.__zrImageSrc=r,xc.put(r,s.__cachedImgObj={image:s,pending:[o]})}return e}return r}return e}function m_(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Fe(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function x_(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=Fe(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=0===o?AR(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;i=Fe(r=r.substr(0,s),a)}return""===r&&(r=e.placeholder),r}function AR(r,e,t,a){for(var n=0,i=0,o=r.length;i0&&p+a.accumWidth>a.width&&(f=e.split("\n"),u=!0),a.accumWidth=p}else{var d=w_(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split("\n");for(var g=0;g=33&&e<=383}(r)||!!RR[r]}function w_(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;ht:n+f+c>t)?f?(s||l)&&(p?(s||(s=l,l="",f=u=0),i.push(s),o.push(f-u),l+=v,s="",f=u+=c):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c)):(f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v))}else l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),1===i.length&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Cc="__zr_style_"+Math.round(10*Math.random()),Cn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cn[Cc]=!0;var T_=["z","z2","invisible"],kR=["invisible"],OR=function(r){function e(t){return r.call(this,t)||this}return Vt(e,r),e.prototype._init=function(t){for(var a=yt(t),n=0;n1e-4)return s[0]=r-t,s[1]=e-a,l[0]=r+t,void(l[1]=e+a);if(Du[0]=Lc(n)*t+r,Du[1]=Dc(n)*a+e,Lu[0]=Lc(i)*t+r,Lu[1]=Dc(i)*a+e,u(s,Du,Lu),f(l,Du,Lu),(n%=An)<0&&(n+=An),(i%=An)<0&&(i+=An),n>i&&!o?i+=An:nn&&(Iu[0]=Lc(c)*t+r,Iu[1]=Dc(c)*a+e,u(s,Iu,s),f(l,Iu,l))}var kt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Mn=[],Dn=[],zr=[],ka=[],Gr=[],Fr=[],Ic=Math.min,Pc=Math.max,Ln=Math.cos,In=Math.sin,la=Math.abs,Rc=Math.PI,Oa=2*Rc,Ec="undefined"!=typeof Float32Array,us=[];function kc(r){return Math.round(r/Rc*1e8)/1e8%2*Rc}var FR=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){(a=a||0)>0&&(this._ux=la(a/du/e)||0,this._uy=la(a/du/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(kt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=la(e-this._xi),n=la(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(kt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(kt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(kt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){return this._drawPendingPt(),us[0]=n,us[1]=i,function GR(r,e){var t=kc(r[0]);t<0&&(t+=Oa);var n=r[1];n+=t-r[0],!e&&n-t>=Oa?n=t+Oa:e&&t-n>=Oa?n=t-Oa:!e&&t>n?n=t+(Oa-kc(t-n)):e&&tf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){zr[0]=zr[1]=Gr[0]=Gr[1]=Number.MAX_VALUE,ka[0]=ka[1]=Fr[0]=Fr[1]=-Number.MAX_VALUE;var o,e=this.data,t=0,a=0,n=0,i=0;for(o=0;oa||la(_)>n||v===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break;case kt.C:var S=e[v++],b=e[v++],y=(g=e[v++],e[v++]),x=e[v++],w=e[v++];d=qP(i,o,S,b,g,y,x,w,10),i=x,o=w;break;case kt.Q:d=jP(i,o,S=e[v++],b=e[v++],g=e[v++],y=e[v++],10),i=g,o=y;break;case kt.A:var T=e[v++],C=e[v++],D=e[v++],M=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,v++,p&&(s=Ln(L)*D+T,l=In(L)*M+C),d=Pc(D,M)*Ic(Oa,Math.abs(I)),i=Ln(P)*D+T,o=In(P)*M+C;break;case kt.R:s=i=e[v++],l=o=e[v++],d=2*e[v++]+2*e[v++];break;case kt.Z:var m=s-i;_=l-o,d=Math.sqrt(m*m+_*_),i=s,o=l}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var s,l,u,f,h,v,p,m,S,b,a=this.data,n=this._ux,i=this._uy,o=this._len,c=t<1,g=0,y=0,_=0;if(!c||(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=t*this._pathLen))t:for(var x=0;x0&&(e.lineTo(S,b),_=0),w){case kt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case kt.L:h=a[x++],v=a[x++];var C=la(h-u),D=la(v-f);if(C>n||D>i){if(c){if(g+(M=p[y++])>m){e.lineTo(u*(1-(L=(m-g)/M))+h*L,f*(1-L)+v*L);break t}g+=M}e.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+D*D;I>_&&(S=h,b=v,_=I)}break;case kt.C:var P=a[x++],R=a[x++],E=a[x++],N=a[x++],k=a[x++],V=a[x++];if(c){if(g+(M=p[y++])>m){Ia(u,P,E,k,L=(m-g)/M,Mn),Ia(f,R,N,V,L,Dn),e.bezierCurveTo(Mn[1],Dn[1],Mn[2],Dn[2],Mn[3],Dn[3]);break t}g+=M}e.bezierCurveTo(P,R,E,N,k,V),u=k,f=V;break;case kt.Q:if(P=a[x++],R=a[x++],E=a[x++],N=a[x++],c){if(g+(M=p[y++])>m){Wo(u,P,E,L=(m-g)/M,Mn),Wo(f,R,N,L,Dn),e.quadraticCurveTo(Mn[1],Dn[1],Mn[2],Dn[2]);break t}g+=M}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break;case kt.A:var F=a[x++],U=a[x++],X=a[x++],et=a[x++],ct=a[x++],Lt=a[x++],Mt=a[x++],dt=!a[x++],rt=X>et?X:et,gt=la(X-et)>.001,ft=ct+Lt,K=!1;if(c&&(g+(M=p[y++])>m&&(ft=ct+Lt*(m-g)/M,K=!0),g+=M),gt&&e.ellipse?e.ellipse(F,U,X,et,Mt,ct,ft,dt):e.arc(F,U,rt,ct,ft,dt),K)break t;T&&(s=Ln(ct)*X+F,l=In(ct)*et+U),u=Ln(ft)*X+F,f=In(ft)*et+U;break;case kt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var st=a[x++],Ft=a[x++];if(c){if(g+(M=p[y++])>m){var bt=m-g;e.moveTo(h,v),e.lineTo(h+Ic(bt,st),v),(bt-=st)>0&&e.lineTo(h+st,v+Ic(bt,Ft)),(bt-=Ft)>0&&e.lineTo(h+Pc(st-bt,0),v+Ft),(bt-=st)>0&&e.lineTo(h,v+Pc(Ft-bt,0));break t}g+=M}e.rect(h,v,st,Ft);break;case kt.Z:if(c){var M;if(g+(M=p[y++])>m){var L;e.lineTo(u*(1-(L=(m-g)/M))+s*L,f*(1-L)+l*L);break t}g+=M}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=kt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();const Hr=FR;function Na(r,e,t,a,n,i,o){if(0===n)return!1;var l,s=n;if(o>e+s&&o>a+s||or+s&&i>t+s||ie+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>t+h&&u>n+h&&u>o+h||ue+u&&l>a+u&&l>i+u||lr+u&&s>t+u&&s>n+u||st||f+un&&(n+=fs);var v=Math.atan2(l,s);return v<0&&(v+=fs),v>=a&&v<=n||v+fs>=a&&v+fs<=n}function ua(r,e,t,a,n,i){if(i>e&&i>a||in?s:0}var Ba=Hr.CMD,Pn=2*Math.PI,Te=[-1,-1,-1],er=[-1,-1];function ZR(){var r=er[0];er[0]=er[1],er[1]=r}function XR(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u1&&ZR(),c=re(e,a,i,s,er[0]),v>1&&(p=re(e,a,i,s,er[1]))),h+=2===v?ge&&s>a&&s>i||s=0&&u<=1&&(n[l++]=u);else{var f=o*o-4*i*s;if(La(f))(u=-o/(2*i))>=0&&u<=1&&(n[l++]=u);else if(f>0){var u,h=Da(f),v=(-o-h)/(2*i);(u=(-o+h)/(2*i))>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}(e,a,i,s,Te);if(0===l)return 0;var u=T0(e,a,i);if(u>=0&&u<=1){for(var f=0,h=se(e,a,i,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Te[0]=-l,Te[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Pn-1e-4){a=0,n=Pn;var f=i?1:-1;return o>=Te[0]+r&&o<=Te[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Pn,n+=Pn);for(var v=0,c=0;c<2;c++){var p=Te[c];if(p+r>o){var d=Math.atan2(s,p);f=i?1:-1,d<0&&(d=Pn+d),(d>=a&&d<=n||d+Pn>=a&&d+Pn<=n)&&(d>Math.PI/2&&d<1.5*Math.PI&&(f=-f),v+=f)}}return v}function I_(r,e,t,a,n){for(var v,c,i=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,p=0;p1&&(t||(s+=ua(l,u,f,h,a,n))),g&&(f=l=i[p],h=u=i[p+1]),d){case Ba.M:l=f=i[p++],u=h=i[p++];break;case Ba.L:if(t){if(Na(l,u,i[p],i[p+1],e,a,n))return!0}else s+=ua(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Ba.C:if(t){if(HR(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=XR(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Ba.Q:if(t){if(D_(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=qR(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Ba.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=ua(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(WR(y,m,S,b,b+x,w,e,T,n))return!0}else s+=KR(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Ba.R:if(f=l=i[p++],h=u=i[p++],v=f+i[p++],c=h+i[p++],t){if(Na(f,h,v,h,e,a,n)||Na(v,h,v,c,e,a,n)||Na(v,c,f,c,e,a,n)||Na(f,c,f,h,e,a,n))return!0}else s+=ua(v,h,v,c,a,n),s+=ua(f,c,f,h,a,n);break;case Ba.Z:if(t){if(Na(l,u,f,h,e,a,n))return!0}else s+=ua(l,u,f,h,a,n);l=f,u=h}}return!t&&!function YR(r,e){return Math.abs(r-e)<1e-4}(u,h)&&(s+=ua(l,u,f,h,a,n)||0),0!==s}var Ru=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cn),JR={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mu.style)},Oc=Nr.concat(["invisible","culling","z","z2","zlevel","parent"]),$R=function(r){function e(t){return r.call(this,t)||this}return Vt(e,r),e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?ec:a>.2?"#eee":rc}if(t)return rc}return ec},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(W(a)){var n=this.__zr;if(!(!n||!n.isDarkMode())==qo(t,0)<.4)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Hr(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(null==a||"none"===a||!(t.lineWidth>0))},e.prototype.hasFill=function(){var a=this.style.fill;return null!=a&&"none"!==a},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||4&this.__dirty)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,null==f?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(i.contain(t=n[0],a=n[1])){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),function QR(r,e,t,a){return I_(r,e,!0,t,a)}(s,l/u,t,a)))return!0}if(this.hasFill())return function jR(r,e,t){return I_(r,0,!1,e,t)}(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){"shape"===t?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=a:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return No(Ru,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=B({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var u,l=!(a&&i);if(a&&a.shape?o?i?u=a.shape:(u=B({},n.shape),B(u,a.shape)):(u=B({},i?this.shape:n.shape),B(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=yt(u),v=0;v0},e.prototype.hasFill=function(){var a=this.style.fill;return null!=a&&"none"!==a},e.prototype.createStyle=function(t){return No(tE,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;null!=a?a+="":a="";var n=rs(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(tr);P_.prototype.type="tspan";const hs=P_;var eE=Q({x:0,y:0},Cn),rE={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mu.style)},R_=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return Vt(e,r),e.prototype.createStyle=function(t){return No(eE,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(null!=n)return n;var i=function aE(r){return!!(r&&"string"!=typeof r&&r.width&&r.height)}(a.image)?a.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",s=a[o];return null==s?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return rE},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ht(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(tr);R_.prototype.type="image";const le=R_;var Oi=Math.round;function E_(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Oi(2*a)===Oi(2*n)&&(r.x1=r.x2=Rn(a,s,!0)),Oi(2*i)===Oi(2*o)&&(r.y1=r.y2=Rn(i,s,!0))),r}}function k_(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Rn(a,s,!0),r.y=Rn(n,s,!0),r.width=Math.max(Rn(a+i,s,!1)-r.x,0===i?0:1),r.height=Math.max(Rn(n+o,s,!1)-r.y,0===o?0:1)),r}}function Rn(r,e,t){if(!e)return r;var a=Oi(2*r);return(a+Oi(e))%2==0?a/2:(a+(t?1:-1))/2}var iE=function r(){this.x=0,this.y=0,this.width=0,this.height=0},oE={},O_=function(r){function e(t){return r.call(this,t)||this}return Vt(e,r),e.prototype.getDefaultShape=function(){return new iE},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=k_(oE,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?function nE(r,e){var s,l,u,f,h,t=e.x,a=e.y,n=e.width,i=e.height,o=e.r;n<0&&(t+=n,n=-n),i<0&&(a+=i,i=-i),"number"==typeof o?s=l=u=f=o:o instanceof Array?1===o.length?s=l=u=f=o[0]:2===o.length?(s=u=o[0],l=f=o[1]):3===o.length?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0,s+l>n&&(s*=n/(h=s+l),l*=n/h),u+f>n&&(u*=n/(h=u+f),f*=n/h),l+u>i&&(l*=i/(h=l+u),u*=i/h),s+f>i&&(s*=i/(h=s+f),f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),0!==l&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),0!==u&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),0!==f&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),0!==s&&r.arc(t+s,a+s,s,Math.PI,1.5*Math.PI)}(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(pt);O_.prototype.type="rect";const _t=O_;var N_={fill:"#000"},sE={style:Q({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Mu.style)},B_=function(r){function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=N_,a.attr(t),a}return Vt(e,r),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;tc&&u){var p=Math.floor(c/s);h=h.slice(0,p)}if(r&&i&&null!=f)for(var d=S_(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g0,L=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=o.calculatedLineHeight,P=0;Ps&&Tc(t,r.substring(s,u),e,o),Tc(t,l[2],e,o,l[1]),s=wc.lastIndex}sn){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=w.width,I=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))x.percentWidth=L,f.push(x),x.contentWidth=Fe(x.text,D);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&Au(R=CR(R))&&(x.width=Math.max(x.width,R.width*M/R.height))}var E=p&&null!=a?a-S:null;null!=E&&E=0&&"right"===(P=x[I]).align;)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(M+=(i-(M-g)-(m-L)-C)/2;D<=I;)this._placeToken(P=x[D],t,T,y,M+P.width/2,"center",_),M+=P.width,D++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;"top"===f?h=i+t.height/2:"bottom"===f&&(h=i+n-t.height/2),!t.isLineHolder&&Nc(u)&&this._renderBackground(u,a,"right"===s?o-t.width:"center"===s?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Z_(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(hs),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Y_("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=U_("stroke"in u?u.stroke:"stroke"in a?a.stroke:c||l||y.autoStroke&&!m?null:(_=2,y.stroke)),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Ta,g.opacity=Rr(u.opacity,a.opacity,1),F_(g,u),b&&(g.lineWidth=Rr(u.lineWidth,a.lineWidth,_),g.lineDash=lt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ht(as(g.x,w,g.textAlign),Ri(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var d,g,m,l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this;if(v||t.lineHeight||u&&f){(d=this._getOrCreateChild(_t)).useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v)(m=d.style).fill=l||null,m.fillOpacity=lt(t.fillOpacity,1);else if(h){(g=this._getOrCreateChild(le)).onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}u&&f&&((m=d.style).lineWidth=u,m.stroke=f,m.strokeOpacity=lt(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2));var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Rr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return H_(t)&&(a=[t.fontStyle,t.fontWeight,G_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Ke(a)||t.textFont||t.font},e}(tr),lE={left:!0,right:1,center:1},uE={top:1,bottom:1,middle:1},z_=["fontStyle","fontWeight","fontSize","fontFamily"];function G_(r){return"string"!=typeof r||-1===r.indexOf("px")&&-1===r.indexOf("rem")&&-1===r.indexOf("em")?isNaN(+r)?"12px":r+"px":r}function F_(r,e){for(var t=0;t=0,i=!1;if(r instanceof pt){var o=j_(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Vi(s)||Vi(l)){var u=(a=a||{}).style||{};"inherit"===u.fill?(i=!0,a=B({},a),(u=B({},u)).fill=s):!Vi(u.fill)&&Vi(s)?(i=!0,a=B({},a),(u=B({},u)).fill=J_(s)):!Vi(u.stroke)&&Vi(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=J_(l)),a.style=u}}if(a&&null==a.z2){i||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(null!=f?f:10)}return a}(this,0,e,t);if("blur"===r)return function yE(r,e,t){var a=ut(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:function pE(r,e,t,a){for(var n=r.style,i={},o=0;o0){var l={dataIndex:s,seriesIndex:t.seriesIndex};null!=o&&(l.dataType=o),e.push(l)}})}),e}function za(r,e,t){On(r,!0),fa(r,kn),Yc(r,e,t)}function Yt(r,e,t,a){a?function wE(r){On(r,!1)}(r):za(r,e,t)}function Yc(r,e,t){var a=at(r);null!=e?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var vS=["emphasis","blur","select"],TE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function he(r,e,t,a){t=t||"itemStyle";for(var n=0;n0){var p={duration:f.duration,delay:f.delay||0,easing:f.easing,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function xt(r,e,t,a,n,i){Xc("update",r,e,t,a,n,i)}function Bt(r,e,t,a,n,i){Xc("enter",r,e,t,a,n,i)}function zi(r){if(!r.__zr)return!0;for(var e=0;e-1?"ZH":"EN";function $c(r,e){r=r.toUpperCase(),Jc[r]=new Rt(e),Fu[r]=e}function tp(r){return Jc[r]}$c("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),$c("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var _s=36e5,rr=24*_s,MS=365*rr,Ss={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Hu="{yyyy}-{MM}-{dd}",DS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hu,hour:Hu+" "+Ss.hour,minute:Hu+" "+Ss.minute,second:Hu+" "+Ss.second,millisecond:Ss.none},ap=["year","month","day","hour","minute","second","millisecond"],LS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ue(r,e){return"0000".substr(0,e-(r+="").length)+r}function Hi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function YE(r){return r===Hi(r)}function xs(r,e,t,a){var n=We(r),i=n[np(t)](),o=n[Wi(t)]()+1,s=Math.floor((o-1)/4)+1,l=n[Wu(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[bs(t)](),h=(f-1)%12+1,v=n[Uu(t)](),c=n[Yu(t)](),p=n[Zu(t)](),g=(a instanceof Rt?a:tp(a||AS)||function UE(){return Jc.EN}()).getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ue(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ue(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ue(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ue(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Ue(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ue(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ue(p,3)).replace(/{S}/g,p+"")}function IS(r,e){var t=We(r),a=t[Wi(e)]()+1,n=t[Wu(e)](),i=t[bs(e)](),o=t[Uu(e)](),s=t[Yu(e)](),u=0===t[Zu(e)](),f=u&&0===s,h=f&&0===o,v=h&&0===i,c=v&&1===n;return c&&1===a?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function PS(r,e,t){var a=Ct(r)?We(r):r;switch(e=e||IS(r,t)){case"year":return a[np(t)]();case"half-year":return a[Wi(t)]()>=6?1:0;case"quarter":return Math.floor((a[Wi(t)]()+1)/4);case"month":return a[Wi(t)]();case"day":return a[Wu(t)]();case"half-day":return a[bs(t)]()/24;case"hour":return a[bs(t)]();case"minute":return a[Uu(t)]();case"second":return a[Yu(t)]();case"millisecond":return a[Zu(t)]()}}function np(r){return r?"getUTCFullYear":"getFullYear"}function Wi(r){return r?"getUTCMonth":"getMonth"}function Wu(r){return r?"getUTCDate":"getDate"}function bs(r){return r?"getUTCHours":"getHours"}function Uu(r){return r?"getUTCMinutes":"getMinutes"}function Yu(r){return r?"getUTCSeconds":"getSeconds"}function Zu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function qE(r){return r?"setUTCFullYear":"setFullYear"}function RS(r){return r?"setUTCMonth":"setMonth"}function ES(r){return r?"setUTCDate":"setDate"}function kS(r){return r?"setUTCHours":"setHours"}function OS(r){return r?"setUTCMinutes":"setMinutes"}function NS(r){return r?"setUTCSeconds":"setSeconds"}function VS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function ip(r){if(!gc(r))return W(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function op(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Vn=Xl,KE=/([&<>"'])/g,jE={"&":"&","<":"<",">":">",'"':""","'":"'"};function ke(r){return null==r?"":(r+"").replace(KE,function(e,t){return jE[t]})}function sp(r,e,t){function n(f){return f&&Ke(f)?f:"-"}function i(f){return!(null==f||isNaN(f)||!isFinite(f))}var o="time"===e,s=r instanceof Date;if(o||s){var l=o?We(r):r;if(!isNaN(+l))return xs(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",t);if(s)return"-"}if("ordinal"===e)return Yl(r)?n(r):Ct(r)&&i(r)?r+"":"-";var u=Vr(r);return i(u)?ip(u):Yl(r)?n(r):"boolean"==typeof r?r+"":"-"}var BS=["a","b","c","d","e","f","g"],lp=function(r,e){return"{"+r+(null==e?"":e)+"}"};function up(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i':'':{renderMode:i,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:""}function JE(r,e,t){("week"===r||"month"===r||"quarter"===r||"half-year"===r||"year"===r)&&(r="MM-dd\nyyyy");var a=We(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),f=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r.replace("MM",Ue(o,2)).replace("M",o).replace("yyyy",i).replace("yy",i%100+"").replace("dd",Ue(s,2)).replace("d",s).replace("hh",Ue(l,2)).replace("h",l).replace("mm",Ue(u,2)).replace("m",u).replace("ss",Ue(f,2)).replace("s",f).replace("SSS",Ue(h,3))}function $E(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Bn(r,e){return e=e||"transparent",W(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Xu(r,e){if("_blank"===e||"blank"===e){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var qu=A,GS=["left","right","top","bottom","width","height"],zn=[["width","left","right"],["height","top","bottom"]];function fp(r,e,t,a,n){var i=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var s=0;e.eachChild(function(l,u){var c,p,f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect();if("horizontal"===r){var d=f.width+(v?-v.x+f.x:0);(c=i+d)>a||l.newline?(i=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);(p=o+g)>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),"horizontal"===r?i=c+t:o=p+t)})}var Gn=fp;function Jt(r,e,t){t=Vn(t||0);var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),null!=c&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=.8*a:f=.8*n),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ht(i+t[3],o+t[0],u,f);return p.margin=t,p}function Ku(r,e,t,a,n,i){var u,o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if((i=i||r).x=r.x,i.y=r.y,!o&&!s)return!1;if("raw"===l)u="group"===r.type?new ht(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();(u=u.clone()).applyTransform(f)}var h=Jt(Q({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return"raw"===l?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function ws(r){var e=r.layoutMode||r.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function Ha(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(zn[0],0),i=o(zn[1],1);function o(f,h){var v={},c=0,p={},d=0;if(qu(f,function(_){p[_]=r[_]}),qu(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(2===d||!c)return p;if(c>=2)return v;for(var y=0;y=0;l--)s=it(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Id";return ls(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((t=e.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",void(t.componentIndex=0)),e;var t}(Rt);y_(Yi,Rt),Cu(Yi),function zE(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Br(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Br(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}(Yi),function GE(r,e){function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}r.topologicalTravel=function(i,o,s,l){if(i.length){var u=function t(i){var o={},s=[];return A(i,function(l){var u=a(o,l),h=function n(i,o){var s=[];return A(i,function(l){ut(o,l)>=0&&s.push(l)}),s}(u.originalDeps=e(l),i);u.entryCount=h.length,0===u.entryCount&&s.push(l),A(h,function(v){ut(u.predecessor,v)<0&&u.predecessor.push(v);var c=a(o,v);ut(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}(o),f=u.graph,h=u.noEntryList,v={};for(A(i,function(m){v[m]=!0});h.length;){var c=h.pop(),p=f[c],d=!!v[c];d&&(s.call(l,c,p.originalDeps.slice()),delete v[c]),A(p.successor,d?y:g)}A(v,function(){throw new Error("")})}function g(m){f[m].entryCount--,0===f[m].entryCount&&h.push(m)}function y(m){v[m]=!0,g(m)}}}(Yi,function ak(r){var e=[];return A(Yi.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return Br(t).main}),"dataset"!==r&&ut(e,"dataset")<=0&&e.unshift("dataset"),e});const mt=Yi;var HS="";"undefined"!=typeof navigator&&(HS=navigator.platform||"");var Zi="rgba(0, 0, 0, 0.2)";const nk={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:HS.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var WS=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ar="original",ye="arrayRows",nr="objectRows",Yr="keyedColumns",ha="typedArray",US="unknown",Zr="column",Xi="row",YS=wt();function ZS(r,e,t){var a={},n=vp(e);if(!n||!r)return a;var f,h,i=[],o=[],l=YS(e.ecModel).datasetMap,u=n.uid+"_"+t.seriesLayoutBy;A(r=r.slice(),function(d,g){var y=J(d)?d:r[g]={name:d};"ordinal"===y.type&&null==f&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}(a,o):t;if((f=f||t)&&f.length){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}var ju,Ts,QS,JS="\0_ec_inner",t1=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Rt(i),this._locale=new Rt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=a1(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,a1(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var o=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(o,a)):QS(this,o),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||"recreate"===t||"media"===t){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;(function ik(r){YS(r).datasetMap=q()})(this),A(t,function(h,v){null!=h&&(mt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=null==n[v]?$(h):it(n[v],h,!0))}),u&&u.each(function(h,v){mt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),mt.topologicalTravel(s,mt.getAllClassMainTypes(),function f(h){var v=function lk(r,e,t){var a=cp.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}(this,h,Pt(t[h])),c=i.get(h),d=v_(c,v,c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll");(function sR(r,e,t){A(r,function(a){var n=a.newOption;J(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=function lR(r,e,t,a){return e.type?e.type:t?t.subType:a.determineSubType(r,e)}(e,n,a.existing,t))})})(d,h,mt),n[h]=null,i.set(h,null),o.set(h,0);var _,g=[],y=[],m=0;A(d,function(b,x){var w=b.existing,T=b.newOption;if(T){var D=mt.getClass(h,b.keyInfo.subType,!("series"===h));if(!D)return;if("tooltip"===h){if(_)return;_=!0}if(w&&w.constructor===D)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=B({componentIndex:x},b.keyInfo);B(w=new D(T,this,this,I),I),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}else w&&(w.mergeOption({},this),w.optionUpdated({},!1));w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),"series"===h&&ju(this)},this),this._seriesIndices||ju(this)},e.prototype.getOption=function(){var t=$(this.option);return A(t,function(a,n){if(mt.hasClass(n)){for(var i=Pt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!os(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[JS],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(null==a)for(var o=0;o=e:"max"===t?r<=e:r===e})(a[u],i,l)||(n=!1)}}),n}const Ck=Sk;var Tr=A,Cs=J,o1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yp(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=o1.length;t=0;d--){var g=r[d];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,v)),c>=0){var y=g.data.getByRawIndex(g.stackResultDimension,c);if(h>=0&&y>0||h<=0&&y<0){h=Q2(h,y),p=y;break}}}return a[0]=h,a[1]=p,a})})}var Qu=function r(e){this.data=e.data||(e.sourceFormat===Yr?{}:[]),this.sourceFormat=e.sourceFormat||US,this.seriesLayoutBy=e.seriesLayoutBy||Zr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;ad&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};function i(o){for(var s=0;s=0&&(d=o.interpolatedValue[g])}return null!=d?d+"":""}):void 0},r.prototype.getRawValue=function(e,t){return Ki(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function C1(r){var e,t;return J(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ds(r){return new Hk(r)}var Hk=function(){function r(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var i,t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var h,o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;function f(m){return!(m>=1)&&(m=1),m}(o!==l||s!==u)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(null!=v?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},Xk=function(){function r(e,t){Ct(t)||At(""),this._opFn=L1[e],this._rvalFloat=Vr(t)}return r.prototype.evaluate=function(e){return Ct(e)?this._opFn(e,this._rvalFloat):this._opFn(Vr(e),this._rvalFloat)},r}(),I1=function(){function r(e,t){var a="desc"===e;this._resultLT=a?1:-1,null==t&&(t=a?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Ct(e)?e:Vr(e),n=Ct(t)?t:Vr(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=W(e),l=W(t);s&&(a=l?e:0),l&&(n=s?t:0)}return an?-this._resultLT:0},r}(),qk=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Vr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&("number"===a||"number"===this._rvalTypeof)&&(t=Vr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function Kk(r,e){return"eq"===r||"ne"===r?new qk("eq"===r,e):Z(L1,r)?new Xk(r,e):null}var jk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Wa(e,t)},r}();function Jk(r){return Ap(r.sourceFormat)||At(""),r.data}function $k(r){var e=r.sourceFormat,t=r.data;if(Ap(e)||At(""),e===ye){for(var n=[],i=0,o=t.length;i65535?iO:oO}function sO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function O1(r,e,t,a,n){var i=k1[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(null!=a&&ae))return o;i=o-1}}return-1},r.prototype.indicesOfNearest=function(e,t,a){var i=this._chunks[e],o=[];if(!i)return o;null==a&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=this._count;if((a=t.constructor)===Array){e=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=d),d++;p=!0}else if(2===i){g=c[n[0]];var _=c[n[1]],S=e[n[1]][0],b=e[n[1]][1];for(y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(1===i)for(y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(y=0;ye[D][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=g)}}},r.prototype.lttbDownSample=function(e,t){var f,h,v,a=this.clone([e],!0),i=a._chunks[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c=new(Ls(this._rawCount))(Math.min(2*(Math.ceil(o/l)+2),o));c[s++]=u;for(var p=1;pf&&(f=h,v=S)}M>0&&Mf-p&&(s.length=l=f-p);for(var d=0;dh[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return this._extent[e]=o=[s,l],o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Wa(t[i],this._dimensions[i])}Mp={arrayRows:e,objectRows:function(t,a,n,i){return Wa(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(null==t.value?t:t.value);return Wa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}();const Dp=lO;var N1=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var n,i,e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length;if($u(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),s=(u=f.getSource()).data,l=u.sourceFormat,i=[f._getVersionSign()]}else l=Pe(s=o.get("data",!0))?ha:ar,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=lt(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=lt(h.sourceHeader,v.sourceHeader),d=lt(h.dimensions,v.dimensions);n=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d?[Sp(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else n=[Sp(y.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);null!=n&&1!==e.length&&B1("");var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0);null!=n&&!f&&B1(""),s.push(f),l.push(u._getVersionSign())}),a?o=function aO(r,e,t){var a=Pt(r),n=a.length;n||At("");for(var o=0,s=n;o1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=H1(n);i>=e&&(e=i+ +(a&&(!i||Lp(n)&&!n.noHeader)))}),e}return 0}function hO(r,e,t,a){var n=e.noHeader,i=function cO(r){return{html:uO[r],richText:fO[r]}}(H1(e)),o=[],s=e.blocks||[];pe(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new I1(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else"seriesDesc"===l&&s.reverse()}A(s,function(p,d){var g=e.valueFormatter,y=F1(p)(g?B(B({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);null!=y&&o.push(y)});var h="richText"===r.renderMode?o.join(i.richText):Ip(o.join(""),n?t:i.html);if(n)return h;var v=sp(e.header,"ordinal",r.useUTC),c=G1(a,r.renderMode).nameStyle;return"richText"===r.renderMode?U1(r,v,c)+i.richText+h:Ip('
'+ke(v)+"
"+h,t)}function vO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return G(S=z(S)?S:[S],function(b,x){return sp(b,z(c)?c[x]:c,u)})};if(!i||!o){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":sp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value),d=!s||!i,g=!s&&i,y=G1(a,n),m=y.nameStyle,_=y.valueStyle;return"richText"===n?(s?"":h)+(i?"":U1(r,v,m))+(o?"":function gO(r,e,t,a,n){var i=[n];return t&&i.push({padding:[0,0,0,a?10:20],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,i)}(r,p,d,g,_)):Ip((s?"":h)+(i?"":function pO(r,e,t){return''+ke(r)+""}(v,!s,m))+(o?"":function dO(r,e,t,a){return''+G(r=z(r)?r:[r],function(o){return ke(o)}).join("  ")+""}(p,d,g,_)),t)}}function W1(r,e,t,a,n,i){if(r)return F1(r)({useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter},r,0,i)}function Ip(r,e){return'
'+r+'
'}function U1(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Y1(r,e){return Bn(r.getData().getItemVisual(e,"style")[r.visualDrawType])}function Z1(r,e){var t=r.get("padding");return null!=t?t:"richText"===e?[8,10]:10}var Pp=function(){function r(){this.richTextStyles={},this._nextStyleNameId=i_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n="richText"===a?this._generateStyleName():null,i=zS({color:t,type:e,renderMode:a,markerId:n});return W(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?A(t,function(i){return B(a,i)}):B(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function X1(r){var f,h,v,c,e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=Y1(e,t);if(o>1||l&&!o){var p=function yO(r,e,t,a,n){var i=e.getData(),o=qe(r,function(h,v,c){var p=i.getDimensionInfo(c);return h||p&&!1!==p.tooltip&&null!=p.displayName},!1),s=[],l=[],u=[];function f(h,v){var c=i.getDimensionInfo(v);!c||!1===c.otherDims.tooltip||(o?u.push(ae("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return a.length?A(a,function(h){f(Ki(i,t,h),h)}):A(r,f),{inlineValues:s,inlineValueTypes:l,blocks:u}}(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=Ki(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=yc(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ae("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ae("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ke(_),value:f,valueType:h})].concat(v||[])})}var Ua=wt();function tf(r,e){return r.getName(e)||r.getId(e)}var ef="__universalTransitionEnabled",rf=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return O(e,r),e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ds({count:_O,reset:SO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ua(this).sourceManager=new N1(this)).prepareSource();var o=this.getInitialData(t,n);K1(o,this),this.dataTask.context.data=o,Ua(this).dataBeforeProcessed=o,q1(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=ws(this),i=n?Ui(t):{},o=this.subType;mt.hasClass(o)&&(o+="Series"),it(t,a.getTheme().get(this.subType)),it(t,this.getDefaultOption()),xn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ha(t,i,n)},e.prototype.mergeOption=function(t,a){t=it(this.option,t,!0),this.fillDataTextStyle(t.data);var n=ws(this);n&&Ha(this.option,t,n);var i=Ua(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);K1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ua(this).dataBeforeProcessed=o,q1(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Pe(t))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=pp.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return("all"===n||n[tf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[ef])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(s&&l)if("series"===s)o.selectedMap="all";else if("multiple"===s){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(t,a)}},e.registerClass=function(t){return mt.registerClass(t)},e.protoInitialize=((t=e.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",void(t.visualDrawType="fill")),e;var t}(mt);function q1(r){var e=r.name;yc(r)||(r.name=function mO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}(r)||e)}function _O(r){return r.model.getRawData().count()}function SO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),xO}function xO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function K1(r,e){A(ql(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,nt(bO,e))})}function bO(r,e){var t=Rp(r);return t&&t.setOutputEnd((e||this).count()),e}function Rp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}Ut(rf,Tp),Ut(rf,pp),y_(rf,mt);const Ot=rf;var Ep=function(){function r(){this.group=new tt,this.uid=Fi("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.blurSeries=function(e,t){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Sc(Ep),Cu(Ep);const zt=Ep;function Qi(){var r=wt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!(!a||!a.large),s=t.progressiveRender=!(!a||!a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Ji=Hr.CMD,wO=[[],[],[]],j1=Math.sqrt,TO=Math.atan2;function Q1(r,e){if(e){var n,i,o,s,l,u,t=r.data,a=r.len(),f=Ji.M,h=Ji.C,v=Ji.L,c=Ji.R,p=Ji.A,d=Ji.Q;for(o=0,s=0;o1&&(o*=kp(p),s*=kp(p));var d=(n===i?-1:1)*kp((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+nf(h)*g-af(h)*y,_=(e+a)/2+af(h)*g+nf(h)*y,S=$1([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=$1(b,x);if(Op(b,x)<=-1&&(w=Is),Op(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Is*1e6)/1e6;w=2*Is+T%2*Is}f.addData(u,m,_,o,s,S,w,h,i)}var CO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,AO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ex=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return Vt(e,r),e.prototype.applyTransform=function(t){},e}(pt);function rx(r){return null!=r.setData}function ax(r,e){var t=function MO(r){var e=new Hr;if(!r)return e;var o,t=0,a=0,n=t,i=a,s=Hr.CMD,l=r.match(CO);if(!l)return e;for(var u=0;uP*P+R*R&&(T=D,C=M),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(n/b-1),y1:C*(n/b-1)}}var NO=function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},ux=function(r){function e(t){return r.call(this,t)||this}return Vt(e,r),e.prototype.getDefaultShape=function(){return new NO},e.prototype.buildPath=function(t,a){!function OO(r,e){var t,a=Rs(e.r,0),n=Rs(e.r0||0,0),i=a>0;if(i||n>0){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var f=e.cx,h=e.cy,v=!!e.clockwise,c=lx(u-l),p=c>Vp&&c%Vp;if(p>Ar&&(c=p),a>Ar)if(c>Vp-Ar)r.moveTo(f+a*$i(l),h+a*Un(l)),r.arc(f,h,a,l,u,!v),n>Ar&&(r.moveTo(f+n*$i(u),h+n*Un(u)),r.arc(f,h,n,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,D=void 0,M=void 0,L=void 0,I=void 0,P=void 0,R=a*$i(l),E=a*Un(l),N=n*$i(u),k=n*Un(u),V=c>Ar;if(V){var F=e.cornerRadius;F&&(t=function kO(r){var e;if(z(r)){var t=r.length;if(!t)return r;e=1===t?[r[0],r[0],0,0]:2===t?[r[0],r[0],r[1],r[1]]:3===t?r.concat(r[2]):r}else e=[r,r,r,r];return e}(F),d=t[0],g=t[1],y=t[2],m=t[3]);var U=lx(a-n)/2;if(_=Xr(U,y),S=Xr(U,m),b=Xr(U,d),x=Xr(U,g),C=w=Rs(_,S),D=T=Rs(b,x),(w>Ar||T>Ar)&&(M=a*$i(u),L=a*Un(u),I=n*$i(l),P=n*Un(l),cAr){var gt=Xr(y,C),ft=Xr(m,C),K=sf(I,P,R,E,a,gt,v),st=sf(M,L,N,k,a,ft,v);r.moveTo(f+K.cx+K.x0,h+K.cy+K.y0),C0&&r.arc(f+K.cx,h+K.cy,gt,_e(K.y0,K.x0),_e(K.y1,K.x1),!v),r.arc(f,h,a,_e(K.cy+K.y1,K.cx+K.x1),_e(st.cy+st.y1,st.cx+st.x1),!v),ft>0&&r.arc(f+st.cx,h+st.cy,ft,_e(st.y1,st.x1),_e(st.y0,st.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);else r.moveTo(f+R,h+E);n>Ar&&V?D>Ar?(gt=Xr(d,D),K=sf(N,k,M,L,n,-(ft=Xr(g,D)),v),st=sf(R,E,I,P,n,-gt,v),r.lineTo(f+K.cx+K.x0,h+K.cy+K.y0),D0&&r.arc(f+K.cx,h+K.cy,ft,_e(K.y0,K.x0),_e(K.y1,K.x1),!v),r.arc(f,h,n,_e(K.cy+K.y1,K.cx+K.x1),_e(st.cy+st.y1,st.cx+st.x1),v),gt>0&&r.arc(f+st.cx,h+st.cy,gt,_e(st.y1,st.x1),_e(st.y0,st.x0),!v))):(r.lineTo(f+N,h+k),r.arc(f,h,n,u,l,v)):r.lineTo(f+N,h+k)}else r.moveTo(f,h);r.closePath()}}}(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(pt);ux.prototype.type="sector";const Ae=ux;var VO=function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0},fx=function(r){function e(t){return r.call(this,t)||this}return Vt(e,r),e.prototype.getDefaultShape=function(){return new VO},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=2*Math.PI;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(pt);fx.prototype.type="ring";const Es=fx;function hx(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=function BO(r,e,t,a){var l,u,f,h,n=[],i=[],o=[],s=[];if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;vZn[1]){if(s=!1,i)return s;var f=Math.abs(Zn[0]-Yn[1]),h=Math.abs(Yn[0]-Zn[1]);Math.min(f,h)>n.len()&&ot.scale(n,u,fMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Tx(r){return!r.isGroup}function Ns(r,e,t){if(r&&e){var i=function a(o){var s={};return o.traverse(function(l){Tx(l)&&l.anid&&(s[l.anid]=l)}),s}(r);e.traverse(function(o){if(Tx(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),xt(o,l,t,at(o).dataIndex)}}})}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function eN(r){return null!=r.shape}(o)&&(s.shape=B({},o.shape)),s}}function Hp(r,e){return G(r,function(t){var a=t[0];a=cf(a,e.x),a=pf(a,e.x+e.width);var n=t[1];return n=cf(n,e.y),[a,n=pf(n,e.y+e.height)]})}function Cx(r,e){var t=cf(r.x,e.x),a=pf(r.x+r.width,e.x+e.width),n=cf(r.y,e.y),i=pf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function eo(r,e,t){var a=B({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return 0===r.indexOf("image://")?(n.image=r.slice(8),Q(n,t),new le(a)):Os(r.replace("path://",""),a,t,"center")}function Vs(r,e,t,a,n){for(var i=0,o=n[n.length-1];i=-1e-6}(v))return!1;var c=r-n,p=e-i,d=Wp(c,p,l,u)/v;if(d<0||d>1)return!1;var g=Wp(c,p,f,h)/v;return!(g<0||g>1)}function Wp(r,e,t,a){return r*a-t*e}function ro(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=W(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(yt(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=at(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Q({content:a,formatterParams:s},n)}}function Mx(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Za(r,e){if(r)if(z(r))for(var t=0;t=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function ao(r,e,t,a){var n=r[e];if(n){var i=n[mf]||n;if(n[Px]!==t||n[Rx]!==a){if(null==t||!a)return r[e]=i;(n=r[e]=_f(i,t,"debounce"===a))[mf]=i,n[Rx]=a,n[Px]=t}return n}}function Bs(r,e){var t=r[e];t&&t[mf]&&(t.clear&&t.clear(),r[e]=t[mf])}var Ex=wt(),kx={itemStyle:Tn(CS,!0),lineStyle:Tn(TS,!0)},sN={lineStyle:"stroke",itemStyle:"fill"};function Ox(r,e){return r.visualStyleMapper||kx[e]||(console.warn("Unkown style type '"+e+"'."),kx.itemStyle)}function Nx(r,e){return r.visualDrawType||sN[e]||(console.warn("Unkown style type '"+e+"'."),"fill")}var lN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),o=Ox(r,a)(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Nx(r,a),u=o[l],f=j(u)?u:null;if(!o[l]||f||"auto"===o.fill||"auto"===o.stroke){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||j(o.fill)?v:o.fill,o.stroke="auto"===o.stroke||j(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=B({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},zs=new Rt,uN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData&&!e.isSeriesFiltered(r)){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Ox(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){zs.option=l[a];var u=n(zs);B(o.ensureUniqueItemVisual(s,"style"),u),zs.option.decal&&(o.setItemVisual(s,"decal",zs.option.decal),zs.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},fN={performRawSeries:!0,overallReset:function(r){var e=q();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||e.set(n,i={}),Ex(t).scope=i}}),r.eachSeries(function(t){if(!t.isColorBySeries()&&!r.isSeriesFiltered(t)){var a=t.getRawData(),n={},i=t.getData(),o=Ex(t).scope,l=Nx(t,t.visualStyleAccessPath||"itemStyle");i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u];if(i.getItemVisual(f,"colorFromPalette")){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Sf=Math.PI,vN=function(){function r(e,t,a,n){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,o=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex?a.step:null,s=n&&n.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),i=e.getData().count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=q();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{});pe(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}A(e,function(l,u){if(!n.visualType||n.visualType===l.visualType){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,n.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}}),this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=q(),l=e.seriesType,u=e.getTargetSeries;function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Ds({plan:yN,reset:mN,count:SN}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f)},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Ds({reset:cN});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1;function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,Ds({reset:pN,onDirty:gN})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,i._pipe(d,y)}pe(!e.createOnAllSeries,""),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):(h=!1,A(a.getSeries(),p)),v&&o.dirty()},r.prototype._pipe=function(e,t){var n=this._pipelineMap.get(e.uid);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return j(e)&&(e={overallReset:e,seriesType:xN(e)}),e.uid=Fi("stageHandler"),t&&(e.visualType=t),e},r}();function cN(r){r.overallReset(r.ecModel,r.api,r.payload)}function pN(r){return r.overallProgress&&dN}function dN(){this.agent.dirty(),this.getDownstream().dirty()}function gN(){this.agent&&this.agent.dirty()}function yN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function mN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Pt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return Vx(a)}):_N}var _N=Vx(0);function Vx(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i0&&c===u.length-v.length){var p=u.slice(0,c);"data"!==p&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,p){return null==h[c]||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Yp=["symbol","symbolSize","symbolRotate","symbolOffset"],Yx=Yp.concat(["symbolKeepAspect"]),CN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),r.hasSymbolVisual){for(var a={},n={},i=!1,o=0;o0&&function WN(r,e){return r&&"solid"!==r&&e>0?"dashed"===r?[4*e,2*e]:"dotted"===r?[e]:Ct(r)?[r]:z(r)?r:null:null}(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&1!==n&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var UN=new Hr(!0);function Cf(r){var e=r.stroke;return!(null==e||"none"===e||!(r.lineWidth>0))}function qx(r){return"string"==typeof r&&"none"!==r}function Af(r){var e=r.fill;return null!=e&&"none"!==e}function Kx(r,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function jx(r,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Kp(r,e,t){var a=bc(e.image,e.__image,t);if(Au(a)){var n=r.createPattern(a,e.repeat||"repeat");if("function"==typeof DOMMatrix&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Vo),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}var Qx=["shadowBlur","shadowOffsetX","shadowOffsetY"],Jx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $x(r,e,t,a,n){var i=!1;if(!a&&e===(t=t||{}))return!1;if(a||e.opacity!==t.opacity){Ne(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?Cn.opacity:o}(a||e.blend!==t.blend)&&(i||(Ne(r,n),i=!0),r.globalCompositeOperation=e.blend||Cn.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[Se]){if(this._disposed)return;var i,o,s;if(J(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Se]=!0,!this._model||a){var l=new Ck(this._api),u=this._theme,f=this._model=new n1;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},ld);var h={seriesTransition:s,optionChanged:!0};if(n)this[Ve]={silent:i,updateParams:h},this[Se]=!1,this.getZr().wakeUp();else{try{lo(this),Xa.update.call(this,null,h)}catch(v){throw this[Ve]=null,this[Se]=!1,v}this._ssr||this._zr.flush(),this[Ve]=null,this[Se]=!1,Ys.call(this,i),Zs.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nV&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},e.prototype.getSvgDataURL=function(){if(Tt.svgSupported){var t=this._zr;return A(t.storage.getDisplayList(),function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var n=this._model,i=[],o=this;A((t=t||{}).excludeComponents,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var a="svg"===t.type,n=this.group,i=Math.min,o=Math.max,s=1/0;if(Ef[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(qn,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}});var p=(f*=c)-(l*=c),d=(h*=c)-(u*=c),g=gr.createCanvas(),y=fc(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(v,function(_){m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new _t({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),A(v,function(_){var S=new le({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,a){return rd(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return rd(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){var i;if(!this._disposed)return A(ss(this._model,t),function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if("seriesModels"===l){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var i=ss(this._model,t,{defaultMainType:"series"}),s=i.seriesModel.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=l?Zp(s,l,a):Fs(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(SV,function(a){var n=function(i){var l,o=t.getModel(),s=i.target;if("globalout"===a?l={}:s&&io(s,function(p){var d=at(p);if(d&&null!=d.dataIndex){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}if(d.eventData)return l=B({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;("markLine"===f||"markPoint"===f||"markArea"===f)&&(f="series",h=l.seriesIndex);var v=f&&null!=h&&o.getComponent(f,h),c=v&&t["series"===v.mainType?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),A(Xs,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),function MN(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(no("map","selectchanged",e,n,a),no("pie","selectchanged",e,n,a)):"select"===a.fromAction?(no("map","selected",e,n,a),no("pie","selected",e,n,a)):"unselect"===a.fromAction&&(no("map","unselected",e,n,a),no("pie","unselected",e,n,a))})}(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&p_(this.getDom(),fd,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete qn[a.id]}},e.prototype.resize=function(t){if(!this[Se]){if(this._disposed)return;this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),a){var n=a.resetOption("media"),i=t&&t.silent;this[Ve]&&(null==i&&(i=this[Ve].silent),n=!0,this[Ve]=null),this[Se]=!0;try{n&&lo(this),Xa.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)})}catch(o){throw this[Se]=!1,o}this[Se]=!1,Ys.call(this,i),Zs.call(this,i)}}},e.prototype.showLoading=function(t,a){if(!this._disposed&&(J(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),ud[t])){var n=ud[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var a=B({},t);return a.type=Xs[t.type],a},e.prototype.dispatchAction=function(t,a){if(!this._disposed&&(J(a)||(a={silent:!!a}),Pf[t.type]&&this._model)){if(this[Se])return void this._pendingActions.push(t);var n=a.silent;nd.call(this,t,n);var i=a.flush;i?this._zr.flush():!1!==i&&Tt.browser.weChat&&this._throttledZrFlush(),Ys.call(this,n),Zs.call(this,n)}},e.prototype.updateLabelLayout=function(){Dr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(!this._disposed){var a=t.seriesIndex;this.getModel().getSeriesByIndex(a).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){for(var v=[],c=h.currentStates,p=0;p0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(zi(y))return;if(y instanceof pt&&function ME(r){var e=j_(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}lo=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),ed(h,!0),ed(h,!1),v.plan()},ed=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!Tt.node&&!Tt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}(h,v),Dr.trigger("series:afterupdate",v,c,d)},sr=function(h){h[$p]=!0,h.getZr().wakeUp()},Lb=function(h){!h[$p]||(h.getZr().storage.traverse(function(v){zi(v)||n(v)}),h[$p]=!1)},Mb=function(h){return new(function(v){function c(){return null!==v&&v.apply(this,arguments)||this}return O(c,v),c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(null!=d)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){Wr(p,d),sr(h)},c.prototype.leaveEmphasis=function(p,d){Ur(p,d),sr(h)},c.prototype.enterBlur=function(p){iS(p),sr(h)},c.prototype.leaveBlur=function(p){oS(p),sr(h)},c.prototype.enterSelect=function(p){sS(p),sr(h)},c.prototype.leaveSelect=function(p){lS(p),sr(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(i1))(h)},Db=function(h){function v(c,p){for(var d=0;d=0)){Nb.push(t);var i=Gx.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function gd(r,e){ud[r]=e}function LV(r){Fm({createCanvas:r})}function Vb(r,e,t){var a=vb("registerMap");a&&a(r,e,t)}function IV(r){var e=vb("getMap");return e&&e(r)}var Bb=function rO(r){var e=(r=$(r)).type;e||At("");var a=e.split(":");2!==a.length&&At("");var n=!1;"echarts"===a[0]&&(e=a[1],n=!0),r.__isBuiltIn=n,P1.set(e,r)};qa(2e3,lN),qa(4500,uN),qa(4500,fN),qa(2e3,CN),qa(4500,AN),qa(7e3,function eV(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");s&&(a.ensureUniqueItemVisual(o,"style").decal=Us(s,e))});var n=a.getVisual("decal");n&&(a.getVisual("style").decal=Us(n,e))}})}),cd(v1),pd(900,function Ek(r){var e=q();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(kk)}),gd("default",function hN(r,e){Q(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new tt,a=new _t({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var o,n=new St({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new _t({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return t.add(i),e.showSpinner&&((o=new lf({shape:{startAngle:-Sf/2,endAngle:-Sf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Sf/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*Sf/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-2*l-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:2*l,height:2*l}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}),Lr({type:En,event:En,update:En},qt),Lr({type:ku,event:ku,update:ku},qt),Lr({type:ps,event:ps,update:ps},qt),Lr({type:Ou,event:Ou,update:Ou},qt),Lr({type:ds,event:ds,update:ds},qt),vd("light",bN),vd("dark",wN);var PV={},zb=[],RV={registerPreprocessor:cd,registerProcessor:pd,registerPostInit:Rb,registerPostUpdate:Eb,registerUpdateLifecycle:kf,registerAction:Lr,registerCoordinateSystem:kb,registerLayout:Ob,registerVisual:qa,registerTransform:Bb,registerLoading:gd,registerMap:Vb,registerImpl:function aV(r,e){hb[r]=e},PRIORITY:gb,ComponentModel:mt,ComponentView:zt,SeriesModel:Ot,ChartView:Et,registerComponentModel:function(r){mt.registerClass(r)},registerComponentView:function(r){zt.registerClass(r)},registerSeriesModel:function(r){Ot.registerClass(r)},registerChartView:function(r){Et.registerClass(r)},registerSubTypeDefaulter:function(r,e){mt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){$0(r,e)}};function vt(r){z(r)?A(r,function(e){vt(e)}):ut(zb,r)>=0||(zb.push(r),j(r)&&(r={install:r}),r.install(RV))}function qs(r){return null==r?0:r.length||1}function Gb(r){return r}var EV=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Gb,this._newKeyGetter=n||Gb,this.context=i,this._diffModeMultiple="multiple"===o}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();1===l.length&&(a[s]=l[0]),this._update&&this._update(f,o)}else 1===u?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._new,a={},n={},i=[],o=[];this._initIndexMap(this._old,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(1===h&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(1===h&&1===v)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var Xb,Vf,js,Qs,md,Bf,_d,Ks=J,Ka=G,GV="undefined"==typeof Int32Array?Array:Int32Array,HV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],WV=["_approximateExtent"],UV=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;Hb(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===ar&&!n.pure)for(var u=[],f=e;f0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return null==i&&(z(i=this.getVisual(t))?i=i.slice():Ks(i)&&(i=B({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,Ks(t)?B(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ks(e)?B(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?B(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){Vc(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Ka(this.dimensions,this._getDimInfo,this),this.hostModel)),md(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!j(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(Zl(arguments)))})},r.internalField=(Xb=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new GV(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[t]=l}})),r}();const xe=UV;function YV(r,e){return uo(r,e).dimensions}function uo(r,e){_p(r)||(r=xp(r));var t=(e=e||{}).coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=function XV(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;J(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Yb(o),l=a===r.dimensionsDefine,u=l?Ub(r):Wb(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=q(f),v=new R1(o),c=0;c0&&(a.name=n+(i-1)),i++,e.set(n,i)}}(i),new Fb({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function qV(r,e,t){var a=e.data;if(t||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return e.set(r,!0),r}var KV=function r(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e},QV={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Qt).models[0],i=r.getReferringComponents("yAxis",Qt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),fo(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),fo(i)&&(a.set("y",i),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Qt).models[0];e.coordSysDims=["single"],t.set("single",n),fo(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Qt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),fo(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),fo(o)&&(a.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),fo(u)&&(a.set(f,u),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=l))})}};function fo(r){return"category"===r.get("type")}function qb(r,e,t){var i,o,s,a=(t=t||{}).byIndex,n=t.stackedCoordDimension;!function JV(r){return!Hb(r.schema)}(e)?(i=(o=e.schema).dimensions,s=e.store):i=e;var u,f,h,v,l=!(!r||!r.get("stack"));if(A(i,function(m,_){W(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&"ordinal"!==m.type&&"time"!==m.type&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;A(i,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function pa(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Sd(r,e){return pa(r,e)?r.getCalculationInfo("stackResultDimension"):e}const qr=function eB(r,e,t){t=t||{};var n,a=e.getSourceManager(),i=!1;r?(i=!0,n=xp(r)):i=(n=a.getSource()).sourceFormat===ar;var o=function jV(r){var e=r.get("coordinateSystem"),t=new KV(e),a=QV[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}(e),s=function $V(r,e){var n,t=r.get("coordinateSystem"),a=qi.get(t);return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Of(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(e,o),l=t.useEncodeDefaulter,u=j(l)?l:l?nt(ZS,s,e):null,h=uo(n,{coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i}),v=function tB(r,e,t){var a,n;return t&&A(r,function(i,o){var l=t.categoryAxisMap.get(i.coordDim);l&&(null==a&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(n=!0)}),!n&&null!=a&&(r[a].otherDims.itemName=0),a}(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=qb(e,{schema:h,store:c}),d=new xe(h,e);d.setCalculationInfo(p);var g=null!=v&&function rB(r){if(r.sourceFormat===ar){var e=function aB(r){for(var e=0;et[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Cu(Kb);const da=Kb;var nB=0,iB=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++nB}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,oB);return new r({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!W(e)&&!a)return e;if(a&&!this._deduplication)return this.categories[t=this.categories.length]=e,t;var n=this._getOrCreateMap();return null==(t=n.get(e))&&(a?(this.categories[t=this.categories.length]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function oB(r){return J(r)&&null!=r.value?r.value:r+""}const xd=iB;function bd(r){return"interval"===r.type||"log"===r.type}function wd(r){var e=Math.pow(10,wu(r)),t=r/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Ht(t*e)}function jb(r){return br(r)+2}function Qb(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function zf(r,e){return r>=e[0]&&r<=e[1]}function Gf(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Ff(r,e){return r*(e[1]-e[0])+e[0]}var Jb=function(r){function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new xd({})),z(n)&&(n=new xd({categories:G(n,function(i){return J(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return O(e,r),e.prototype.parse=function(t){return W(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return zf(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Gf(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Ff(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(da);da.registerClass(Jb);const Td=Jb;var Kn=Ht,$b=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return O(e,r),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zf(t,this._extent)},e.prototype.normalize=function(t){return Gf(t,this._extent)},e.prototype.scale=function(t){return Ff(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=jb(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;n[0]1e4)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&s.push(t?{value:Kn(f+a,o)}:{value:n[1]}),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&ca&&(o=n.interval=a);var s=n.intervalPrecision=jb(o);return function lB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Qb(r,0,e),Qb(r,1,e),r[0]>r[1]&&(r[0]=r[1])}(n.niceTickExtent=[Ht(Math.ceil(r[0]/o)*o,s),Ht(Math.floor(r[1]/o)*o,s)],r),n}(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(0!==a[0]){var n=a[0];t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;isFinite(a[1]-a[0])||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Kn(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Kn(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e}(da);da.registerClass($b);const ja=$b;var tw="undefined"!=typeof Float32Array,uB=tw?Float32Array:Array;function Kr(r){return z(r)?tw?new Float32Array(r):r:new uB(r)}var Cd="__ec_stack_";function Ad(r){return r.get("stack")||Cd+r.seriesIndex}function Md(r){return r.dim+r.index}function ew(r,e){var t=[];return e.eachSeriesByType(r,function(a){ow(a)&&t.push(a)}),t}function rw(r){var e=function hB(r){var e={};A(r,function(l){var f=l.coordinateSystem.getBaseAxis();if("time"===f.type||"value"===f.type)for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),p=h.getStore(),d=0,g=p.count();d0&&(i=null===i?s:Math.min(i,s))}t[a]=i}}return t}(r),t=[];return A(r,function(a){var s,i=a.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)s=i.getBandWidth();else if("value"===i.type||"time"===i.type){var u=e[i.dim+"_"+i.index],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=H(a.get("barWidth"),s),d=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(sw(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Md(i),stackId:Ad(a)})}),aw(t)}function aw(r){var e={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;null!=c&&(s.gap=c);var p=a.barCategoryGap;null!=p&&(s.categoryGap=p)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(null==s){var l=yt(i).length;s=Math.max(35-4*l,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else S=c,m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d,p=0;A(i,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;A(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function nw(r,e){var t=ew(r,e),a=rw(t);A(t,function(n){var i=n.getData(),s=n.coordinateSystem.getBaseAxis(),l=Ad(n),u=a[Md(s)][l];i.setLayout({bandWidth:u.bandWidth,offset:u.offset,size:u.width})})}function iw(r){return{seriesType:r,plan:Qi(),reset:function(e){if(ow(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=pa(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=function cB(r,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),p=sw(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var M,b=_.count,x=p&&Kr(3*b),w=p&&l&&Kr(3*b),T=p&&Kr(b),C=a.master.getRect(),D=v?C.width:C.height,L=S.getStore(),I=0;null!=(M=_.next());){var P=L.get(h?g:o,M),R=L.get(s,M),E=c,N=void 0;h&&(N=+P-L.get(o,M));var k=void 0,V=void 0,F=void 0,U=void 0;if(v){var X=a.dataToPoint([P,R]);h&&(E=a.dataToPoint([N,R])[0]),k=E,V=X[1]+m,F=X[0]-E,U=y,Math.abs(F)0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=null==r.level?0:r.level>=0?r.level:i.length+r.level;i=i[h=Math.min(h,i.length-1)]}}return xs(new Date(r.value),i,n,a)}(t,a,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var a=this._extent,n=[];if(!this._interval)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=function xB(r,e,t,a){var i=LS,o=0;function s(D,M,L,I,P,R,E){for(var N=new Date(M),k=M,V=N[I]();k1&&0===R&&L.unshift({value:L[0].value-k})}}for(R=0;R=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>1.5*_&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}var S=It(G(u,function(D){return It(D,function(M){return M.value>=a[0]&&M.value<=a[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],x=S.length-1;for(c=0;cn&&(this._approxInterval=n);var s=Hf.length,l=Math.min(function(r,e,t,a){for(;t>>1;r[n][1]16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function yB(r){return(r/=2592e6)>6?6:r>3?3:r>2?2:1}function mB(r){return(r/=_s)>12?12:r>6?6:r>3.5?4:r>2?2:1}function uw(r,e){return(r/=e?6e4:1e3)>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function _B(r){return pc(r,!0)}function SB(r,e,t){var a=new Date(r);switch(Hi(e)){case"year":case"month":a[RS(t)](0);case"day":a[ES(t)](1);case"hour":a[kS(t)](0);case"minute":a[OS(t)](0);case"second":a[NS(t)](0),a[VS(t)](0)}return a.getTime()}da.registerClass(lw);const fw=lw;var hw=da.prototype,Js=ja.prototype,bB=Ht,wB=Math.floor,TB=Math.ceil,Wf=Math.pow,lr=Math.log,Dd=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new ja,t._interval=0,t}return O(e,r),e.prototype.getTicks=function(t){var n=this._extent,i=this._originalScale.getExtent();return G(Js.getTicks.call(this,t),function(s){var l=s.value,u=Ht(Wf(this.base,l));return u=l===n[0]&&this._fixMin?Uf(u,i[0]):u,{value:u=l===n[1]&&this._fixMax?Uf(u,i[1]):u}},this)},e.prototype.setExtent=function(t,a){var n=this.base;t=lr(t)/lr(n),a=lr(a)/lr(n),Js.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=hw.getExtent.call(this);a[0]=Wf(t,a[0]),a[1]=Wf(t,a[1]);var i=this._originalScale.getExtent();return this._fixMin&&(a[0]=Uf(a[0],i[0])),this._fixMax&&(a[1]=Uf(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=lr(t[0])/lr(a),t[1]=lr(t[1])/lr(a),hw.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=n_(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Ht(TB(a[0]/i)*i),Ht(wB(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Js.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zf(t=lr(t)/lr(this.base),this._extent)},e.prototype.normalize=function(t){return Gf(t=lr(t)/lr(this.base),this._extent)},e.prototype.scale=function(t){return t=Ff(t,this._extent),Wf(this.base,t)},e.type="log",e}(da),vw=Dd.prototype;function Uf(r,e){return bB(r,br(e))}vw.getMinorTicks=Js.getMinorTicks,vw.getLabel=Js.getLabel,da.registerClass(Dd);const CB=Dd;var AB=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return null!=v&&(s=v,u=!0),null!=c&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[DB[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){this[MB[e]]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),MB={min:"_determinedMin",max:"_determinedMax"},DB={min:"_dataMin",max:"_dataMax"};function cw(r,e,t){var a=r.rawExtentInfo;return a||(a=new AB(r,e,t),r.rawExtentInfo=a,a)}function Yf(r,e){return null==e?null:Si(e)?NaN:r.parse(e)}function pw(r,e){var t=r.type,a=cw(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&"time"===t){var s=ew("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=rw(s),f=function LB(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=function vB(r,e,t){if(r&&e){var a=r[Md(e)];return null!=a&&null!=t?a[Ad(t)]:a}}(a,t.axis);if(void 0===o)return{min:r,max:e};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,v=f/(1-(s+l)/i)-f;return{min:r-=v*(s/u),max:e+=v*(l/u)}}(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function jn(r,e){var t=e,a=pw(r,t),n=a.extent,i=t.get("splitNumber");r instanceof CB&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l="interval"===o||"time"===o;r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),null!=s&&r.setInterval&&r.setInterval(s)}function $s(r,e){if(e=e||r.get("type"))switch(e){case"category":return new Td({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new fw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(da.getClass(e)||ja)}}function tl(r){var a,e=r.getLabelModel().get("formatter"),t="category"===r.type?r.scale.getExtent()[0]:null;return"time"===r.scale.type?(a=e,function(n,i){return r.scale.getFormattedLabel(n,i,a)}):W(e)?function(a){return function(n){var i=r.scale.getLabel(n);return a.replace("{value}",null!=i?i:"")}}(e):j(e)?function(a){return function(n,i){return null!=t&&(i=n.value-t),a(Ld(r,n),i,null!=n.level?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function Ld(r,e){return"category"===r.type?r.scale.getLabel(e):e.value}function RB(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t));return new ht(r.x,r.y,i,o)}function Id(r){var e=r.get("interval");return null==e?"auto":e}function dw(r){return"category"===r.type&&0===Id(r.getLabelModel())}function Zf(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[Sd(r,a)]=!0}),yt(t)}var ho=function(){function r(){}return r.prototype.getNeedCrossZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}();function kB(r){return qr(null,r)}var OB={isDimensionStacked:pa,enableDataStack:qb,getStackedDimension:Sd};function NB(r,e){var t=e;e instanceof Rt||(t=new Rt(e));var a=$s(t);return a.setExtent(r[0],r[1]),jn(a,t),a}function VB(r){Ut(r,ho)}function BB(r,e){return Zt(r,null,null,"normal"!==(e=e||{}).state)}function gw(r,e){return Math.abs(r-e)<1e-8}function Qn(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;in&&(a=o,n=l)}if(a)return function FB(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),n=s+=n,i=l+=i,a.push([s/t,l/t])}return a}function Ed(r,e){return r=function WB(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;return null==t&&(t=1024),A(e.features,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=bw(s,o,t);break;case"Polygon":case"MultiLineString":Rd(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return Rd(l,o[u],t)})}}),e.UTF8Encoding=!1,e}(r),G(It(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new _w(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new _w(l[0],l.slice(1)))});break;case"LineString":i.push(new Sw([n.coordinates]));break;case"MultiLineString":i.push(new Sw(n.coordinates))}var s=new xw(a[e||"name"],i,a.cp);return s.properties=a,s})}function UB(r,e,t,a,n,i,o,s){return new St({style:{text:r,font:e,align:t,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}var el=wt();function ww(r,e){var i,o,t=Tw(r,"labels"),a=Id(e);return Cw(t,a)||(j(a)?i=Dw(r,a):(o="auto"===a?function jB(r){var e=el(r).autoInterval;return null!=e?e:el(r).autoInterval=r.calculateCategoryInterval()}(r):a,i=Mw(r,o)),Aw(t,a,{labels:i,labelCategoryInterval:o}))}function Tw(r,e){return el(r)[e]||(el(r)[e]=[])}function Cw(r,e){for(var t=0;t1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=dw(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return c&&p-l!==i[1]&&d(i[1]),s}function Dw(r,e,t){var a=r.scale,n=tl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Lw=[0,1],$B=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return hc(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&Iw(a=a.slice(),n.count()),Dt(e,Lw,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&Iw(a=a.slice(),n.count());var i=Dt(e,a,Lw,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),i=G(function ZB(r,e){return"category"===r.type?function qB(r,e){var i,o,t=Tw(r,"ticks"),a=Id(e),n=Cw(t,a);if(n)return n;if((!e.get("show")||r.scale.isBlank())&&(i=[]),j(a))i=Dw(r,a,!0);else if("auto"===a){var s=ww(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else i=Mw(r,o=a,!0);return Aw(t,a,{ticks:i,tickCategoryInterval:o})}(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}(this,t).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function tz(r,e,t,a){var n=e.length;if(r.onBand&&!t&&n){var o,i=r.getExtent();if(1===n)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var u=(e[n-1].coord-e[0].coord)/(e[n-1].tickValue-e[0].tickValue);A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();e.push(o={coord:e[n-1].coord+u*(1+f[1]-e[n-1].tickValue)})}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]})}function v(c,p){return c=Ht(c),p=Ht(p),h?c>p:c0&&t<100||(t=5),G(this.scale.getMinorTicks(t),function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},r.prototype.getViewLabels=function(){return function YB(r){return"category"===r.type?function XB(r){var e=r.getLabelModel(),t=ww(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}(r):function KB(r){var e=r.scale.getTicks(),t=tl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}(r)}(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);0===a&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return function QB(r){var e=function JB(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(r),t=tl(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d,g=rs(t({value:l}),e.font,"center","top");d=1.3*g.height,v=Math.max(v,1.3*g.width,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=el(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return null!=x&&null!=w&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}(this)},r}();function Iw(r,e){var n=(r[1]-r[0])/e/2;r[0]+=n,r[1]-=n}const ur=$B;function ez(r){var e=mt.extend(r);return mt.registerClass(e),e}function rz(r){var e=zt.extend(r);return zt.registerClass(e),e}function az(r){var e=Ot.extend(r);return Ot.registerClass(e),e}function nz(r){var e=Et.extend(r);return Et.registerClass(e),e}var rl=2*Math.PI,Jn=Hr.CMD,iz=["top","right","bottom","left"];function oz(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0)}}function sz(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*t+r,h=(s/=u)*t+e;if(Math.abs(a-n)%rl<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=Va(n),n=Va(v)}else a=Va(a),n=Va(n);a>n&&(n+=rl);var c=Math.atan2(s,o);if(c<0&&(c+=rl),c>=a&&c<=n||c+rl>=a&&c+rl<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Xf(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h),p=(l*(f/=v)+u*(h/=v))/v;s&&(p=Math.min(Math.max(p,0),1));var d=o[0]=r+(p*=v)*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function Pw(r,e,t,a,n,i,o){t<0&&(r+=t,t=-t),a<0&&(e+=a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Ir=[];function lz(r,e,t){var a=Pw(e.x,e.y,e.width,e.height,r.x,r.y,Ir);return t.set(Ir[0],Ir[1]),a}function uz(r,e,t){for(var s,l,a=0,n=0,i=0,o=0,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,Pr.fromArray(r[0]),Nt.fromArray(r[1]),jt.fromArray(r[2]),ot.sub(jr,Pr,Nt),ot.sub(Qr,jt,Nt);var t=jr.len(),a=Qr.len();if(!(t<.001||a<.001)){jr.scale(1/t),Qr.scale(1/a);var n=jr.dot(Qr);if(Math.cos(e)1&&ot.copy(Ie,jt),Ie.toArray(r[1])}}}}function fz(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Pr.fromArray(r[0]),Nt.fromArray(r[1]),jt.fromArray(r[2]),ot.sub(jr,Nt,Pr),ot.sub(Qr,jt,Nt);var a=jr.len(),n=Qr.len();if(!(a<.001||n<.001)&&(jr.scale(1/a),Qr.scale(1/n),jr.dot(e)=l)ot.copy(Ie,jt);else{Ie.scaleAndAdd(Qr,s/Math.tan(Math.PI/2-f));var h=jt.x!==Nt.x?(Ie.x-Nt.x)/(jt.x-Nt.x):(Ie.y-Nt.y)/(jt.y-Nt.y);if(isNaN(h))return;h<0?ot.copy(Ie,Nt):h>1&&ot.copy(Ie,jt)}Ie.toArray(r[1])}}}function kw(r,e,t,a){var n="normal"===t,i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function hz(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=ra(a[0],a[1]),i=ra(a[1],a[2]);if(!n||!i)return r.lineTo(a[1][0],a[1][1]),void r.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*t,s=zo([],a[1],a[0],o/n),l=zo([],a[1],a[2],o/i),u=zo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&x(-h/o,0,o);var m,_,g=r[0],y=r[o-1];return S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_),u}function S(){m=g.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,D,M){if(C<0){var L=Math.min(D,-C);if(L>0){x(L*M,0,o);var I=L+C;I<0&&w(-I*M,1)}else w(-C*M,1)}}function x(C,D,M){0!==C&&(u=!0);for(var L=D;L0)for(I=0;I0;I--)x(-M[I-1]*E,I,o)}}function T(C){var D=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(o-1)),L=0;L0?x(M,0,L+1):x(-M,o-L-1,o),(C-=M)<=0)return}}function Vw(r,e,t,a){return Nw(r,"y","height",e,t,a)}function Bw(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ht(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");null==g.ignore&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),ut(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),xt(a,u,t,l)}else if(a.attr(u),!Gi(a).valueAnimation){var h=lt(a.style.opacity,1);a.style.opacity=0,Bt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};Kf(c,u,jf),Kf(c,a.states.select,jf)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};Kf(p,u,jf),Kf(p,a.states.emphasis,jf)}wS(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=dz(n),d={points:n.shape.points};(o=i.oldLayout)?(n.attr({shape:o}),xt(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Bt(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const yz=gz;var Vd=wt();function Gw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Vd(t).labelManager;n||(n=Vd(t).labelManager=new yz),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Vd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function Fw(r,e,t){var a=gr.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}vt(Gw);var mz=function(r){function e(t,a,n){var o,i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,n=n||du,"string"==typeof t?o=Fw(t,a,n):J(t)&&(t=(o=t).id),i.id=t,i.dom=o;var s=o.style;return s&&(_v(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return Vt(e,r),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Fw("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var g,o=[],s=this.maxRepaintRectCount,l=!1,u=new ht(0,0,0,0);function f(m){if(m.isFinite()&&!m.isZero())if(0===o.length)(_=new ht(0,0,0,0)).copy(m),o.push(_);else{for(var S=!1,b=1/0,x=0,w=0;w=s)}}for(var h=this.__startIndex;h15)break}P.prevElClipPaths&&y.restore()};if(m)if(0===m.length)T=g.__endIndex;else for(var D=c.dpr,M=0;M0&&e>n[0]){for(l=0;le);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n0?.01:0),this._needsManuallyCompositing),f.__builtin__||Wl("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.__drawIndex=f.incremental?-1:l,t(l),i=f),1&n.__dirty&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?it(a[e],t,!0):a[e]=t;for(var n=0;n=ti:-u>=ti),c=u>0?u%ti:u%ti+ti;p=!!v||!Ra(h)&&c>=Ww==!!f;var d=e+a*Gd(o),g=t+n*zd(o);this._start&&this._add("M",d,g);var y=Math.round(i*Cz);if(v){var m=1/this._p,_=(f?1:-1)*(ti-m);this._add("A",a,n,y,1,+f,e+a*Gd(o+_),t+n*zd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*Gd(s),b=t+n*zd(s);this._add("A",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}(o,n.attrs)+(n.text||"")+(i?""+t+G(i,function(l){return a(l)}).join(t)+t:"")+function Oz(r){return""}(o)}(r)}function Wd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function qw(r,e,t,a){return ie("svg","root",{width:r,height:e,xmlns:Yw,"xmlns:xlink":Zw,version:"1.1",baseProfile:"full",viewBox:!!a&&"0 0 "+r+" "+e},t)}var Kw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ei="transform-origin";function Vz(r,e,t){var a=B({},r.shape);B(a,e),r.buildPath(t,a);var n=new Uw;return n.reset(E0(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function Bz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[ei]=t+"px "+a+"px")}var zz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function jw(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function Qw(r){return W(r)?Kw[r]?"cubic-bezier("+Kw[r]+")":Nv(r)?r:"":""}function Jf(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof uf){var s=function Gz(r,e,t){var i,o,n={};if(A(r.shape.paths,function(l){var u=Wd(t.zrId);u.animation=!0,Jf(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=yt(f),c=v.length;if(c){var p=f[o=v[c-1]];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),i){e.d=!1;var s=jw(n,t);return i.replace(o,s)}}(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length)return jw(w,t)+" "+m[0]+" both"}for(var g in l)(s=d(l[g]))&&o.push(s);if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var nl=Math.round;function Jw(r){return r&&W(r.src)}function $w(r){return r&&j(r.toDataURL)}function Ud(r,e,t,a){(function Pz(r,e,t,a){var n=null==e.opacity?1:e.opacity;if(t instanceof le)r("opacity",n);else{if(function Dz(r){var e=r.fill;return null!=e&&e!==al}(e)){var i=Li(e.fill);r("fill",i.color);var o=null!=e.fillOpacity?e.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r("fill-opacity",o)}else r("fill",al);if(function Lz(r){var e=r.stroke;return null!=e&&e!==al}(e)){var s=Li(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*n:s.opacity*n,h=e.strokeFirst;if((a||1!==u)&&r("stroke-width",u),(a||h)&&r("paint-order",h?"stroke":"fill"),(a||f<1)&&r("stroke-opacity",f),e.lineDash){var v=qp(t),c=v[0],p=v[1];c&&(p=Mz(p||0),r("stroke-dasharray",c.join(",")),(p||a)&&r("stroke-dashoffset",p))}else a&&r("stroke-dasharray",al);for(var d=0;di?hT(r,null==t[l+1]?null:t[l+1].elm,t,n,l):$f(r,e,a,i))}(t,a,n):Jr(n)?(Jr(r.text)&&Zd(t,""),hT(t,null,n,0,n.length-1)):Jr(a)?$f(t,a,0,a.length-1):Jr(r.text)&&Zd(t,""):r.text!==e.text&&(Jr(a)&&$f(t,a,0,a.length-1),Zd(t,e.text)))}var r5=0,a5=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=t,this._opts=a=B({},a),this.root=e,this._id="zr"+r5++,this._oldVNode=qw(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Xw("svg");qd(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function e5(r,e){if(il(r,e))vo(r,e);else{var t=r.elm,a=lT(t);ol(e),null!==a&&(ri(a,e.elm,uT(t)),$f(a,[r],0,0))}}(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return nT(e,Wd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._backgroundColor,n=this._width,i=this._height,o=Wd(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var s=[];if(a&&"none"!==a){var l=Li(a);this._bgVNode=ie("rect","bg",{width:n,height:i,x:"0",y:"0",id:"0",fill:l.color,"fill-opacity":l.opacity}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=ie("g","main",{},[]);this._paintList(t,o,h?h.children:s),h&&s.push(h);var v=G(yt(o.defs),function(d){return o.defs[d]});if(v.length&&s.push(ie("defs","defs",{},v)),e.animation){var c=function Nz(r,e,t){var a=(t=t||{}).newline?"\n":"",n=" {"+a,i=a+"}",o=G(yt(r),function(l){return l+n+G(yt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(yt(e),function(l){return"@keyframes "+l+n+G(yt(e[l]),function(u){return u+n+G(yt(e[l][u]),function(f){var h=e[l][u][f];return"d"===f&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return o||s?[""].join(a):""}(o.cssNodes,o.cssAnims,{newline:!0});if(c){var p=ie("style","stl",{},[],c);s.push(p)}}return qw(n,i,s,e.useViewBox)},r.prototype.renderToString=function(e){return Hd(this.renderToVNode({animation:lt((e=e||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:lt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var a=Li(e),i=a.opacity;t.elm.setAttribute("fill",a.color),i<1&&t.elm.setAttribute("fill-opacity",i)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var s,l,n=e.length,i=[],o=0,u=0,f=0;f=0&&(!v||!l||v[d]!==l[d]);d--);for(var g=p-1;g>d;g--)s=i[--o-1];for(var y=d+1;y-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ot);const s5=o5;function co(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(1===a){var n=Ki(r,e,t[0]);return null!=n?n+"":null}if(a){for(var i=[],o=0;o=0&&a.push(e[i])}return a.join(" ")}var l5=function(r){function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return O(e,r),e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Kt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=u5,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Wr(this.childAt(0))},e.prototype.downplay=function(){Ur(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t){var a=this.childAt(0);a.draggable=t,a.cursor=t?"move":a.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{(v=this.childAt(0)).silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):xt(v,c,s,a),wr(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);f||(c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}},v.scaleX=v.scaleY=0,v.style.opacity=0,Bt(v,c,s,a))}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var u,f,h,v,c,p,d,g,y,s=this.childAt(0),l=t.hostModel;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ue(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=oo(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof le){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.useStyle(s.__isEmptyBrush?B({},x):x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),D=this._z2;null!=C?null==D&&(this._z2=s.z2,s.z2+=C):null!=D&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;ge(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:function L(R){return M?t.getName(R):co(t,R)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");if(I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f,g){var P=Math.max(1.1,3/this._sizeY);I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P}this.setSymbolScale(1),Yt(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=at(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Ga(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ga(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Hs(t.getItemVisual(a,"symbolSize"))},e}(tt);function u5(r,e){this.parent.drift(r,e)}const sl=l5;function Kd(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&"none"!==r.getItemVisual(t,"symbol")}function pT(r){return null!=r&&!J(r)&&(r={isIgnore:r}),r||{}}function dT(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ue(e),cursorStyle:e.get("cursor")}}var f5=function(){function r(e){this.group=new tt,this._SymbolCtor=e||sl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=pT(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=dT(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(Kd(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(Kd(e,p,h,t)){var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),(c=new o(e,h,l,u)).setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):xt(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}else a.remove(c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=dT(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],a=pT(a);for(var i=e.start;i0?t=a[0]:a[1]<0&&(t=a[1]),t}(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f="x"===s||"radius"===s?1:0,h=G(r.dimensions,function(p){return e.mapDimension(p)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return pa(e,h[0])&&(v=!0,h[0]=c),pa(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yT(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}var Qa=Math.min,Ja=Math.max;function ai(r,e){return isNaN(r)||isNaN(e)}function jd(r,e,t,a,n,i,o,s,l){for(var u,f,h,v,c,p,d=t,g=0;g=n||d<0)break;if(ai(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[2*b],w=e[2*b+1];x===y&&w===m&&g=a||ai(x,w))c=y,p=m;else{D=x-u,M=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,k=void 0,V=void 0;if("x"===s){var F=D>0?1:-1;c=y-F*(k=Math.abs(P))*o,p=m,L=y+F*(V=Math.abs(R))*o,I=m}else if("y"===s){var U=M>0?1:-1;c=y,p=m-U*(k=Math.abs(E))*o,L=y,I=m+U*(V=Math.abs(N))*o}else k=Math.sqrt(P*P+E*E),c=y-D*o*(1-(C=(V=Math.sqrt(R*R+N*N))/(V+k))),p=m-M*o*(1-C),I=m+M*o*C,L=Qa(L=y+D*o*C,Ja(x,y)),I=Qa(I,Ja(w,m)),L=Ja(L,Qa(x,y)),p=m-(M=(I=Ja(I,Qa(w,m)))-m)*k/V,c=Qa(c=y-(D=L-y)*k/V,Ja(u,y)),p=Qa(p,Ja(f,m)),L=y+(D=y-(c=Ja(c,Qa(u,y))))*V/k,I=m+(M=m-(p=Ja(p,Qa(f,m))))*V/k}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var mT=function r(){this.smooth=0,this.smoothConstraint=!0},p5=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mT},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&ai(n[2*o-2],n[2*o-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?nu(s,c,d,y,t,f):nu(l,p,g,m,t,f);if(b>0)for(var x=0;x=0)return S=u?re(l,p,g,m,w):re(s,c,d,y,w),u?[t,S]:[S,t]}s=y,l=m}}},e}(pt),d5=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e}(mT),_T=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return O(e,r),e.prototype.getDefaultShape=function(){return new d5},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&ai(n[2*s-2],n[2*s-1]);s--);for(;oa)return!1;return!0}(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}(t,l,o),D=this._data;D&&D.eachItemGraphicEl(function(Mt,dt){Mt.__temp&&(s.remove(Mt),D.setItemGraphicEl(dt,null))}),w||p.remove(),s.add(y);var L,M=!v&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(L=o.getArea()).width?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=function m5(r,e,t){var a=r.getVisual("visualMeta");if(a&&a.length&&r.count()&&"cartesian2d"===e.type){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if("x"===(n=s&&s.coordDim)||"y"===n){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=function y5(r,e){var n,i,t=[],a=r.length;function o(f,h,v){var c=f.coord;return{coord:v,color:Fv((v-c)/(h.coord-c),[f.color,h.color])}}for(var s=0;se){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}}return t}(u,"x"===n?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=v[0].coord-10,g=v[c-1].coord+10,y=g-d;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new to(0,0,0,0,v,!0);return m[n]=d,m[n+"2"]=g,m}}}(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(d&&c.type===o.type&&M===this._step){_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Bn(I));var P=y.getClipPath();P?Bt(P,{shape:Qd(this,o,!1,t).shape},t):y.setClipPath(Qd(this,o,!0,t)),w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Mt){return[h[2*Mt],h[2*Mt+1]]}}),(!bT(this._stackedOnPoints,x)||!bT(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,n,M,S,T):(M&&(h=$a(h,o,M,T),x&&(x=$a(x,o,M,T))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}else w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Mt){return[h[2*Mt],h[2*Mt+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),M&&(h=$a(h,o,M,T),x&&(x=$a(x,o,M,T))),d=this._newPolyline(h),_&&(g=this._newPolygon(h,x)),v||this._initOrUpdateEndLabel(t,o,Bn(I)),y.setClipPath(Qd(this,o,!0,t));var E=t.getModel("emphasis"),N=E.get("focus"),k=E.get("blurScope"),V=E.get("disabled");d.useStyle(Q(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),he(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),at(d).seriesIndex=t.seriesIndex,Yt(d,N,k,V);var U=CT(t.get("smooth")),X=t.get("smoothMonotone");if(d.setShape({smooth:U,smoothMonotone:X,connectNulls:T}),g){var et=l.getCalculationInfo("stackedOnSeries"),ct=0;g.useStyle(Q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),et&&(ct=CT(et.get("smooth"))),g.setShape({smooth:U,stackedOnSmooth:ct,smoothMonotone:X,connectNulls:T}),he(g,t,"areaStyle"),at(g).seriesIndex=t.seriesIndex,Yt(g,N,k,V)}var Lt=function(Mt){i._changePolyState(Mt)};l.eachItemGraphicEl(function(Mt){Mt&&(Mt.onHoverStateChange=Lt)}),this._polyline.onHoverStateChange=Lt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){at(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=bn(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&null!=s&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[2*s],h=l[2*s+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel"),c=t.get("z");(u=new sl(o,s)).x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=bn(o,i);if(this._changePolyState("normal"),null!=s&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Vu(this._polyline,t),a&&Vu(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new p5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new _T({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;"cartesian2d"===a.type?(i=s.isHorizontal(),o=!1):"polar"===a.type&&(i="angle"===s.dim,o=!0);var u=t.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=j(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord([c.x,c.y]);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else i?(y=n.x,m=n.x+n.width,_=c.x):(y=n.y+n.height,m=n.y,_=c.y);var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=j(h)?h(p):f*w+v,C=d.getSymbolPath(),D=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(MT(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new St({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=function b5(r){for(var e=r.length/2;e>0&&x5(r[2*e-2],r[2*e-1]);e--);return e-1}(l);f>=0&&(ge(s,ue(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return null!=c?cT(o,c):co(o,h)},enableTextSetter:!0},function T5(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&null==i.originalX&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=function w5(r,e,t){for(var i,o,a=r.length/2,n="x"===t?0:1,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}(h,S,w),C=T.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!c){var L=AT(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=v.getRawValue(C[0]))}else{(L=f.getPointOn(S,w))&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(M=d_(n,p,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=1===t||i.lastFrameIndex>0?C[0]:0;L=AT(h,R),o&&(M=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}o&&Gi(u).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=function c5(r,e,t,a,n,i,o,s){for(var l=function v5(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=gT(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_3e3||f&&TT(p,g)>3e3)return u.stopAnimation(),u.setShape({points:d}),void(f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g})));u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),xt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),xt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++)if("="===_[S].cmd){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;Te&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t10&&"cartesian2d"===o.type&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){"lttb"===i&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;W(i)?p=M5[i]:j(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,D5))}}}}}var LT=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(t,a){return qr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(t)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size");return n[a.getBaseAxis().isHorizontal()?0:1]+=o+s/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ot);Ot.registerClass(LT);const eh=LT;var I5=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(){return qr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Fa(eh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(eh);const P5=I5;var R5=function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},E5=function(r){function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return O(e,r),e.prototype.getDefaultShape=function(){return new R5},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=.5*(s-o),u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=2*Math.PI,p=v?h-fs)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){ys(i,t,at(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Et),IT={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=Jd(e.x,r.x),s=$d(e.x+e.width,n),l=Jd(e.y,r.y),u=$d(e.y+e.height,i),f=sn?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=$d(e.r,r.r),i=Jd(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;return t<0&&(a=e.r,e.r=e.r0,e.r0=a),o}},PT={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new _t({shape:B({},a),z2:1});return u.__dataIndex=t,u.name="item",i&&(u.shape[n?"height":"width"]=0),u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?rh:Ae,f=new u({shape:a,z2:1});f.name="item";var h=OT(n);if(f.calculateTextPosition=function k5(r,e){var t=(e=e||{}).isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return xu(a,n,i);var s=r(o),l=null!=n.distance?n.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,p=(v+c)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(d),x=h+v*S(d),w="left",T="top";switch(s){case"startArc":b=f+(c-l)*_(y),x=h+(c-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(c+l)*_(y),x=h+(c+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+p*_(d)+ah(d,l+m,!1),x=h+p*S(d)+nh(d,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+p*_(d)+ah(d,-l+m,!1),x=h+p*S(d)+nh(d,-l+m,!1),w="left",T="middle";break;case"middle":b=f+p*_(y),x=h+p*S(y),w="center",T="middle";break;case"endArc":b=f+(v+l)*_(y),x=h+(v+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(v-l)*_(y),x=h+(v-l)*S(y),w="center",T="top";break;case"endAngle":b=f+p*_(g)+ah(g,l+m,!0),x=h+p*S(g)+nh(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+p*_(g)+ah(g,-l+m,!0),x=h+p*S(g)+nh(g,-l+m,!0),w="right",T="middle";break;default:return xu(a,n,i)}return(a=a||{}).x=b,a.y=x,a.align=w,a.verticalAlign=T,a}}(h,{isRoundCap:u===rh}),i){var c=n?"r":"endAngle",p={};f.shape[c]=n?0:a.startAngle,p[c]=a[c],(s?xt:Bt)(f,{shape:p},i)}return f}};function RT(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?xt:Bt)(t,{shape:l},e,n,null),(o?xt:Bt)(t,{shape:u},e?r.baseAxis.model:null,n)}function ET(r,e){for(var t=0;t0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function OT(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function NT(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",h=ue(a);ge(r,h,{labelFetcher:i,labelDataIndex:t,defaultText:co(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var c=a.get(["label","position"]);r.textConfig.inside="middle"===c||null,function O5(r,e,t,a){if(Ct(a))r.setTextConfig({rotation:a});else if(z(e))r.setTextConfig({rotation:0});else{var l,n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:return void r.setTextConfig({rotation:0})}var f=1.5*Math.PI-l;"middle"===u&&f>Math.PI/2&&f<1.5*Math.PI&&(f-=Math.PI),r.setTextConfig({rotation:f})}}(r,"outside"===c?f:c,OT(o),a.get(["label","rotate"]))}bS(v,h,i.getRawValue(t),function(d){return cT(e,d)});var p=a.getModel(["emphasis"]);Yt(r,p.get("focus"),p.get("blurScope"),p.get("disabled")),he(r,a),function F5(r){return null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle}(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(d){d.style&&(d.style.fill=d.style.stroke="none")}))}var W5=function r(){},VT=function(r){function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return O(e,r),e.prototype.getDefaultShape=function(){return new W5},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}(this,r.offsetX,r.offsetY);at(this).dataIndex=t>=0?t:null},30,!1);function GT(r,e,t){if(ga(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}return{cx:(n=t.getArea()).cx,cy:n.cy,r0:r?n.r0:e.r0,r:r?n.r:e.r,startAngle:r?e.startAngle:0,endAngle:r?e.endAngle:2*Math.PI}}const Z5=V5;var oh=2*Math.PI,FT=Math.PI/180;function HT(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function WT(r,e){var t=HT(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]),z(a)||(a=[a,a]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o);return{cx:H(a[0],i)+t.x,cy:H(a[1],o)+t.y,r0:H(n[0],s/2),r:H(n[1],s/2)}}function q5(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=HT(a,t),s=WT(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*FT,c=a.get("minAngle")*FT,p=0;n.each(i,function(D){!isNaN(D)&&p++});var d=n.getSum(i),g=Math.PI/(d||p)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var b=oh,x=0,w=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(D,M){var L;if(isNaN(D))n.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});else{(L="area"!==m?0===d&&_?g:D*g:oh/p)t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null)}var d=a.getBoundingRect();i.width=d.width,i.height=d.height+((a.style.margin||0)+2.1),i.y-=(i.height-h)/2}}}function tg(r){return"center"===r.position}function po(r,e,t){var a=r.get("borderRadius");if(null==a)return t?{cornerRadius:0}:null;z(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(a,function(i){return xr(i,n)})}}var J5=function(r){function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new St;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return O(e,r),e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),h=B(po(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle))o.setShape(h);else{if(i){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):"scale"===v?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,a)):null!=n?(o.setShape({startAngle:n,endAngle:n}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,xt(o,{shape:{endAngle:f.endAngle}},s,a))}else wr(o),xt(o,{shape:h},s,a);o.useStyle(t.getItemVisual(a,"style")),he(o,l);var c=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=B({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},po(u.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:d,y:g,shape:po(l.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:po(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:d,y:g}),B(_.ensureState("select"),{x:d,y:g}),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;ge(i,ue(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=t.get(["label","position"]);if("outside"!==v&&"outer"!==v)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new De,this.setTextGuideLine(c)),kd(this,Od(o),{stroke:u,opacity:Rr(s.get(["lineStyle","opacity"]),f,1)})}},e}(Ae),$5=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n,i){var u,o=t.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h0?"right":"left":X>0?"left":"right"}var Xt=Math.PI,Wt=0,be=L.get("rotate");if(Ct(be))Wt=be*(Xt/180);else if("center"===I)Wt=0;else if("radial"===be||!0===be)Wt=X<0?-U+Xt:-U;else if("tangential"===be&&"outside"!==I&&"outer"!==I){var Be=Math.atan2(X,et);Be<0&&(Be=2*Xt+Be),et>0&&(Be=Xt+Be),Wt=Be-Xt}if(i=!!Wt,C.x=ct,C.y=Lt,C.rotation=Wt,C.setStyle({verticalAlign:"middle"}),rt){C.setStyle({align:dt});var Om=C.states.select;Om&&(Om.x+=C.x,Om.y+=C.y)}else{var fn=C.getBoundingRect().clone();fn.applyTransform(C.getComputedTransform());var $I=(C.style.margin||0)+2.1;fn.y-=$I/2,fn.height+=$I,t.push({label:C,labelLine:D,position:I,len:V,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new ot(X,et),linePoints:Mt,textAlign:dt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:fn,unconstrainedWidth:fn.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:rt})}}),!i&&r.get("avoidLabelOverlap")&&function j5(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v=i.r0}},e.type="pie",e}(Et);const tG=$5;function go(r,e,t){e=z(e)&&{coordDimensions:e}||B({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=uo(a,e).dimensions,i=new xe(n,r);return i.initData(a,t),i}var eG=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},r.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},r.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},r}();const hl=eG;var rG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new hl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return go(this,{coordDimensions:["value"],encodeDefaulter:nt(hp,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=[];return a.each(a.mapDimension("value"),function(o){i.push(o)}),n.percent=a_(i,t,a.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){xn(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ot);const aG=rG;var oG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){return qr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ot);const sG=oG;var lG=function r(){},uG=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.getDefaultShape=function(){return new lG},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var h,n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,f=this.softClipShape;if(l&&i[0]<4)this._ctx=l;else{for(this._ctx=null,h=this._off;h=0;u--){var f=2*u,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const hG=fG;var vG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=ul("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,o=a.pipelineContext.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new hG:new ll,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Et);const cG=vG;var pG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(mt);const dG=pG;var eg=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qt).models[0]},e.type="cartesian2dAxis",e}(mt);Ut(eg,ho);var XT={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},gG=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},XT),rg=it({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},XT);const qT={category:gG,value:rg,time:it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rg),log:Q({logBase:10},rg)};var _G={value:1,category:1,time:1,log:1};function yo(r,e,t,a){A(_G,function(n,i){var o=it(it({},qT[i],!0),a,!0),s=function(l){function u(){var f=null!==l&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return O(u,l),u.prototype.mergeDefaultAndTheme=function(f,h){var v=ws(this),c=v?Ui(f):{};it(f,h.getTheme().get(i+"Axis")),it(f,this.getDefaultOption()),f.type=KT(f),v&&Ha(f,c,v)},u.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=xd.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if("category"===h.type)return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",KT)}function KT(r){return r.type||(r.data?"category":"value")}var SG=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),ag=["x","y"];function jT(r){return"interval"===r.type||"time"===r.type}var bG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ag,t}return O(e,r),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(jT(t)&&jT(a)){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(l&&u){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=this._transform=[f,0,0,h,o[0]-n[0]*f,o[1]-i[0]*h];this._invTransform=cn([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return oe(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return(a=a||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return oe(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new ht(n,i,o,s)},e}(SG);const wG=bG;var TG=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return O(e,r),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ur);const CG=TG;function ng(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p="x"===u?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=["y"===u?p[v[l]]:h[0],"x"===u?p[v[l]]:h[3]],i.rotation=Math.PI/2*("x"===u?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ee(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===l?-y:y,i.z2=1,i}function QT(r){return"cartesian2d"===r.get("coordinateSystem")}function JT(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Qt).models[0];e[a]=i}),e}var ig=Math.log;function $T(r,e,t){var a=ja.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=pw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if("log"===r.type){var v=ig(r.base);u=[ig(u[0])/v,ig(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;gu[0]&&isFinite(d)&&isFinite(u[0]);)p=wd(p),d=u[1]-p*o;else{r.getTicks().length-1>o&&(p=wd(p));var m=p*o;(d=Ht((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(d=0,g=Ht(m)):g>0&&u[1]<=0&&(g=0,d=-Ht(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var AG=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ag,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;function n(o){var s,l=yt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=o[+l[h]],p=c.model,d=c.scale;bd(d)&&p.get("alignTicks")&&null==p.get("interval")?f.push(c):(jn(d,p),bd(d)&&(s=c))}f.length&&(s||jn((s=f.pop()).scale,s.model),A(f,function(g){$T(g.scale,g.model,s.scale)}))}}this._updateScale(e,this.model),n(a.x),n(a.y);var i={};A(a.x,function(o){tC(a,"y",o,i)}),A(a.y,function(o){tC(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=Jt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),function MG(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord="x"===r.dim?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord="x"===r.dim?function(n){return n-e}:function(n){return a-n+e}}(u,f?o.x:o.y)})}l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=function PB(r){var t=r.scale;if(r.model.get(["axisLabel","show"])&&!t.isBlank()){var a,n,i=t.getExtent();n=t instanceof Td?t.count():(a=t.getTicks()).length;var l,o=r.getLabelModel(),s=tl(r),u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f0&&a>0||t<0&&a<0)}(r)}const DG=AG;var tn=Math.PI,ni=function(){function r(e,t){this.group=new tt,this.opt=t,this.axisModel=e,Q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new tt({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!rC[e]},r.prototype.add=function(e){rC[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var i,o,n=cc(t-e);return ns(n)?(o=a>0?"top":"bottom",i="center"):ns(n-tn)?(o=a>0?"bottom":"top",i="center"):(o="middle",i=n>0&&n0?"right":"left":a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),rC={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if("auto"===n&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0];o&&(oe(s,s,o),oe(l,l,o));var u=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ne({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",t.add(f);var h=e.get(["axisLine","symbol"]);if(null!=h){var v=e.get(["axisLine","symbolSize"]);W(h)&&(h=[h,h]),(W(v)||Ct(v))&&(v=[v,v]);var c=oo(e.get(["axisLine","symbolOffset"])||0,v),p=v[0],d=v[1];A([{rotate:r.rotation+Math.PI/2,offset:c[0],r:0},{rotate:r.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if("none"!==h[y]&&null!=h[y]){var m=Kt(h[y],-p/2,-d/2,p,d,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(m)}})}}},axisTickLabel:function(r,e,t,a){var n=function PG(r,e,t,a){var n=t.axis,i=t.getModel("axisTick"),o=i.get("show");if("auto"===o&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),o&&!n.scale.isBlank()){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),f=iC(n.getTicksCoords(),e.transform,l,Q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hu[1]?-1:1,h=["start"===i?u[0]-f*l:"end"===i?u[1]+f*l:(u[0]+u[1])/2,nC(i)?r.labelOffset+o*l:0],c=e.get("nameRotate");null!=c&&(c=c*tn/180),nC(i)?v=ni.innerTextLayout(r.rotation,null!=c?c:r.rotation,o):(v=function LG(r,e,t,a){var i,o,n=cc(t-r),s=a[0]>a[1],l="start"===e&&!s||"start"!==e&&s;return ns(n-tn/2)?(o=l?"bottom":"top",i="center"):ns(n-1.5*tn)?(o=l?"top":"bottom",i="center"):(o="middle",i=n<1.5*tn&&n>tn/2?l?"left":"right":l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}(r.rotation,i,c||0,u),null!=(p=r.axisNameAvailableWidth)&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ee(r.nameTruncateMaxWidth,g.maxWidth,p),_=new St({x:h[0],y:h[1],rotation:v.rotation,silent:ni.isLabelSilent(e),style:Zt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(ro({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=ni.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,at(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function fr(r){r&&(r.ignore=!0)}function aC(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(t&&a){var n=$o([]);return Ea(n,n,-r.rotation),t.applyTransform(Or([],n,r.getLocalTransform())),a.applyTransform(Or([],n,e.getLocalTransform())),t.intersect(a)}}function nC(r){return"middle"===r||"center"===r}function iC(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===e}function zG(r){var e=lg(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");null!=o&&(o=a.parse(o));var s=ug(t);null==i&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=l;null!=p.color&&(d=Q({color:p.color},l));var g=it($(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(u||(g.name=""),W(f)){var y=g.name;g.name=f.replace("{value}",null!=y?y:"")}else j(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return Ut(m,ho.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:it({lineStyle:{color:"#bbb"}},cl.axisLine),axisLabel:sh(cl.axisLabel,!1),axisTick:sh(cl.axisTick,!1),splitLine:sh(cl.splitLine,!0),splitArea:sh(cl.splitArea,!0),indicator:[]},e}(mt);const eF=tF;var rF=["axisLine","axisTickLabel","axisName"],aF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem;A(G(a.getIndicatorAxes(),function(o){var s=o.model.get("showName")?o.name:"";return new ya(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(o){A(rF,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];if("circle"===i)for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++)f&&g[m(g,p,x)].push(new Cr({shape:{cx:S,cy:b,r:_[x].coord}})),h&&x<_.length-1&&y[m(y,d,x)].push(new Es({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}));else{var T,C=G(n,function(R,E){var N=R.getTicksCoords();return T=null==T?N.length-1:Math.min(N.length-1,T),G(N,function(k){return a.coordToPoint(k.coord,E)})}),D=[];for(x=0;x<=T;x++){for(var M=[],L=0;L3?1.4:o>1?1.2:1.1;vg(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i);vg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){gC(this._zr,"globalPan")||vg(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(je);function vg(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(ia(a.event),yC(r,e,t,a,n))}function yC(r,e,t,a,n){n.isAvailableBehavior=Y(lh,null,t,a),r.trigger(e,n)}function lh(r,e,t){var a=t[r];return!r||a&&(!W(a)||e.event[a+"Key"])}const pl=cF;function cg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function pg(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0;o=Math.max(Math.min(i.max||1/0,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var pF={axisPointer:1,tooltip:1,brush:1};function uh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!pF.hasOwnProperty(a.mainType)&&n&&n.model!==t}function mC(r){W(r)&&(r=(new DOMParser).parseFromString(r,"text/xml"));var t=r;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var dg,fh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},_C=yt(fh),hh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},SC=yt(hh),dF=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=mC(e);this._defsUsePending=[];var n=new tt;this._root=n;var f,h,i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xe(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;if(function mF(r,e){for(var t=0;t=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&null!=s&&null!=l&&(h=DC(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;(n=new tt).add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&null!=s&&null!=l&&n.setClipPath(new _t({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var l,s=e.nodeName.toLowerCase(),u=n;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)l=t;else{if(!i){var f=dg[s];if(f&&Z(dg,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),"g"===s&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=xC[s];if(c&&Z(xC,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,l,a,u,i,o):3===g.nodeType&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new hs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),function gF(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;a&&"auto"!==a&&"baseline"!==a?"before-edge"===a||"text-before-edge"===a?n="top":"after-edge"===a||"text-after-edge"===a?n="bottom":("central"===a||"mathematical"===a)&&(n="middle"):n="alphabetic",r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&("middle"===o&&(s="center"),r.style.textAlign=s)}}(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=void(dg={g:function(e,t){var a=new tt;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new _t;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Cr;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new ne;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new of;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var n,a=e.getAttribute("points");a&&(n=TC(a));var i=new Me({shape:{points:n||[]},silent:!0});return hr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,a=e.getAttribute("points");a&&(n=TC(a));var i=new De({shape:{points:n||[]},silent:!0});return hr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new le;return hr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new tt;return hr(t,s),Xe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");null!=a&&(this._textX=parseFloat(a)),null!=n&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new tt;return hr(t,s),Xe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=nx(e.getAttribute("d")||"");return hr(t,n),Xe(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),r}(),xC={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new to(e,t,a,n);return bC(r,i),wC(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Bp(e,t,a);return bC(r,n),wC(r,n),n}};function bC(r,e){"userSpaceOnUse"===r.getAttribute("gradientUnits")&&(e.global=!0)}function wC(r,e){for(var t=r.firstChild;t;){if(1===t.nodeType&&"stop"===t.nodeName.toLocaleLowerCase()){var n,a=t.getAttribute("offset");n=a&&a.indexOf("%")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};MC(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function hr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,r.__inheritedStyle))}function TC(r){for(var e=vh(r),t=[],a=0;a0;i-=2){var s=a[i-1],l=vh(a[i]);switch(n=n||[1,0,0,1,0,0],s){case"translate":Sr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":yu(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ea(n,n,-parseFloat(l[0])*gg);break;case"skewX":Or(n,[1,0,Math.tan(parseFloat(l[0])*gg),1,0,0],n);break;case"skewY":Or(n,[1,Math.tan(parseFloat(l[0])*gg),0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5])}}e.setLocalTransform(n)}}(r,e),MC(r,o,s),a||function bF(r,e,t){for(var a=0;a<_C.length;a++)null!=(i=r.getAttribute(n=_C[a]))&&(e[fh[n]]=i);for(a=0;a0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};"geoJSON"===l.resourceType?this._buildGeoJSON(g):"geoSVG"===l.resourceType&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=q(),a=q(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ge(e,ue(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(IC(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function kC(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):at(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function OC(r,e,t,a,n){r.data||ro({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function NC(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Yt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&function CE(r,e,t){var a=at(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}(e,n,t),o}function VC(r,e,t){var n,a=[];function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Ot);const UF=WF;function ZF(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),A(e,function(t,a){for(var n=function YF(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=Jt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}var QF=function(){function r(){this.dimensions=FC}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new UC(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=YC,u.resize(o,t)}),e.eachSeries(function(o){if("geo"===o.get("coordinateSystem")){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new UC(s,s,B({nameMap:Ul(l)},n(o[0])));u.zoomLimit=ee.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=YC,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,function jF(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=q(),s=0;s=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,a+=i.hierNode.shift+(n+=i.hierNode.change)}}(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=function f3(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Sg(s),i=xg(i),s&&i;){n=Sg(n),o=xg(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(v3(h3(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Sg(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!xg(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function s3(r){r.setLayout({x:r.hierNode.prelim+r.parentNode.hierNode.modifier},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function KC(r){return arguments.length?r:c3}function yl(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Sg(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function xg(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function h3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function v3(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function c3(r,e){return r.parentNode===e.parentNode?1:2}var p3=function r(){this.parentPoint=[],this.childPoints=[]},d3=function(r){function e(t){return r.call(this,t)||this}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new p3},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(s[0],s[1]);var u=a.orient,f="TB"===u||"BT"===u?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x)||(S-=Math.PI);var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),D=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:null==C?-S:D,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I="ancestor"===L?o.getAncestorsIndices():"descendant"===L?o.getDescendantIndices():null;I&&(at(t).focus=I),function y3(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if("curve"===u)e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new ks({shape:bg(f,h,v,n,n)})),xt(d,{shape:bg(f,h,v,i,o)},r));else if("polyline"===u&&"orthogonal"===f&&e!==t&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var g=e.children,y=[],m=0;mt&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var a=t.getData().tree.root,n=r.targetNode;if(W(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function aA(r){for(var e=[];r;)(r=r.parentNode)&&e.push(r);return e.reverse()}function Cg(r,e){return ut(aA(r),e)>=0}function ph(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var L3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return O(e,r),e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=new Rt(t.leaves||{},this,this.ecModel),o=Tg.createTree(a,this,function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}),l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var f=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&null!=v.collapsed?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ae("nameValue",{name:u,value:l,noValue:isNaN(l)||null==l})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=ph(n,this),a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Ot);const I3=L3;function _l(r,e){for(var a,t=[r];a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function R3(r,e){r.eachSeriesByType("tree",function(t){!function E3(r,e){var t=function l3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;"radial"===a?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=KC(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=KC());var s=r.getData().tree.root,l=s.children[0];if(l){(function i3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a,n,t=[e];a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var o=n.length-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}})(s),function P3(r,e,t){for(var i,a=[r],n=[];i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if("radial"===a)p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),_l(l,function(_){var S=yl(g=(_.getLayout().x+c)*p,y=(_.depth-1)*d);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();"RL"===m||"LR"===m?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),_l(l,function(_){y=(_.getLayout().x+c)*d,_.setLayout({x:g="LR"===m?(_.depth-1)*p:n-(_.depth-1)*p,y},!0)})):("TB"===m||"BT"===m)&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),_l(l,function(_){g=(_.getLayout().x+c)*p,_.setLayout({x:g,y:y="TB"===m?(_.depth-1)*d:i-(_.depth-1)*d},!0)}))}}}(t,e)})}function k3(r){r.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(n){var o=n.getModel().getModel("itemStyle").getItemStyle();B(t.ensureUniqueItemVisual(n.dataIndex,"style"),o)})})}var nA=["treemapZoomToNode","treemapRender","treemapMove"];function iA(r){var e=r.getData(),a={};e.tree.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=dp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var B3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};oA(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);i=t.levels=function z3(r,e){var t=Pt(e.get("color")),a=Pt(e.get(["aria","decal","decals"]));if(t){var n,i;A(r=r||[],function(s){var l=new Rt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&"none"!==u)&&(n=!0),(l.get(["itemStyle","decal"])||f&&"none"!==f)&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}(i,a);var l=G(i||[],function(h){return new Rt(h,s,a)},this),u=Tg.createTree(n,this,function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c);return v.parentModel=(p?l[p.depth]:null)||s,v})});return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t);return ae("nameValue",{name:i.getName(t),value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=ph(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=q(),this._idIndexMapCount=0);var n=a.get(t);return null==n&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){iA(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ot);function oA(r){var e=0;A(r.children,function(a){oA(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const G3=B3;var H3=function(){function r(e){this.group=new tt,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&a){var s=i.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,u,l),this._renderContent(e,u,s,l,n),Ku(o,u.pos,u.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=te(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=s+8,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i){for(var o=0,s=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=function tk(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Vn(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}(t.pos,t.box),f=t.totalWidth,h=t.renderList,v=h.length-1;v>=0;v--){var c=h[v],p=c.node,d=c.width,g=c.text;f>u.width&&(f-=d-s,d=s,g=null);var y=new Me({shape:{points:W3(o,0,d,l,v===h.length-1,0===v)},style:Q(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new St({style:{text:g,fill:n.getTextColor(),font:n.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:nt(i,p)});y.disableLabelAnimation=!0,this.group.add(y),U3(y,e,p),o+=d+8}},r.prototype.remove=function(){this.group.removeAll()},r}();function W3(r,e,t,a,n,i){var o=[[n?r:r-5,e],[r+t,e],[r+t,e+a],[n?r:r-5,e+a]];return!i&&o.splice(2,0,[r+t+5,e+a/2]),!n&&o.push([r,e+a/2]),o}function U3(r,e,t){at(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&ph(t,e)}}const Y3=H3;var Z3=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n3||Math.abs(t.dy)>3)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo,u=[1,0,0,1,0,0];Sr(u,u,[-(a-=l.x),-(n-=l.y)]),yu(u,u,[t.scale,t.scale]),Sr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if("ready"===a._state){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if("zoomToNode"===i)a._zoomToNode(o);else if("link"===i){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Xu(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Y3(this.group))).render(t,a,n.node,function(o){"animating"!==i._state&&(Cg(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(!(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height))return!1;n={node:o,offsetX:l[0],offsetY:l[1]}}},this),n},e.type="treemap",e}(Et);const tH=Q3;var xl=A,eH=J,Dg=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=$(e);this.type=a,this.mappingMethod=t,this._normalizeData=nH[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],"piecewise"===t?(Lg(n),function rH(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,null!=t.visual&&(r.hasSpecialVisual=!0)})}(n)):"category"===t?n.categories?function aH(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(xl(e,function(o,s){t[o]=s}),!z(a)){var n=[];J(a)?xl(a,function(o,s){var l=t[s];n[null!=l?l:-1]=o}):n[-1]=a,a=pA(r,n)}for(var i=e.length-1;i>=0;i--)null==a[i]&&(delete t[e[i]],e.pop())}(n):Lg(n,!0):(pe("linear"!==t||n.dataExtent),Lg(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return yt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){J(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:J(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var a,t={};return e&&xl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else{if(!eH(e))return[];var t=[];xl(e,function(a,n){t.push(n)}),e=t}return e.sort(function(a,n){return"color"===n&&"color"!==a&&0===a.indexOf("color")?1:-1}),e},r.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;ou[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==f&&"id"!==f?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var v=new ce(h);return dA(v).drColorMappingBy=f,v}}}(0,n,i,0,l,c);A(c,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=function fH(r,e,t,a,n,i){var o=B({},e);if(n){var s=n.type,l="color"===s&&dA(n).drColorMappingBy,u="index"===l?a:"id"===l?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}(n,l,d,g,p,a);gA(d,y,t,a)}})}else v=yA(l),u.fill=v}}function yA(r){var e=Rg(r,"color");if(e){var t=Rg(r,"colorAlpha"),a=Rg(r,"colorSaturation");return a&&(e=Di(e,null,null,a)),t&&(e=Xo(e,t)),e}}function Rg(r,e){var t=r[e];if(null!=t&&"none"!==t)return t}function Eg(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}var Tl=Math.max,_h=Math.min,mA=ee,kg=A,_A=["itemStyle","borderWidth"],hH=["itemStyle","gapWidth"],vH=["upperLabel","show"],cH=["upperLabel","height"];const pH={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Jt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(mA(s.width,l[0]),n),f=H(mA(s.height,l[1]),i),h=a&&a.type,c=ml(a,["treemapZoomToNode","treemapRootToNode"],r),p="treemapRender"===h||"treemapMove"===h?a.rootRect:null,d=r.getViewRoot(),g=aA(d);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function SH(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,h=s.children,v=0,c=h.length;vvc&&(u=vc),i=s}us[1]&&(s[1]=u)})):s=[NaN,NaN],{sum:a,dataExtent:s}}(e,o,s);if(0===u.sum)return r.viewChildren=[];if(u.sum=function gH(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n["asc"===a?o-l-1:l].getValue();u/t*ea&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Tl(u*a/l,l/(u*n)):1/0}function xA(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;ha&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function c(D,M){var L=D.__specifiedRotation;if(null==L){var I=l.tangentAt(M);D.attr("rotation",(1===M?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else D.attr("rotation",L)}},e}(tt);const Wg=GH;var FH=function(){function r(e){this.group=new tt,this._LineCtor=e||Wg}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=kA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=kA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){function a(s){!s.isGroup&&!function HH(r){return r.animators&&r.animators.length>0}(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n=0?s+=u:s-=u:p>=0?s-=u:s+=u}return s}function jg(r,e){var t=[],a=Wo,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[Er(u[0]),Er(u[1])],u[2]&&u.__original.push(Er(u[2])));var v=u.__original;if(null!=u[2]){if(de(n[0],v[0]),de(n[1],v[2]),de(n[2],v[1]),f&&"none"!==f){var c=Ml(s.node1),p=VA(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}h&&"none"!==h&&(c=Ml(s.node2),p=VA(n,v[1],c*e),a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]),de(u[0],n[0]),de(u[1],n[2]),de(u[2],n[1])}else de(i[0],v[0]),de(i[1],v[1]),Aa(o,i[1],i[0]),bi(o,o),f&&"none"!==f&&(c=Ml(s.node1),jl(i[0],i[0],o,c*e)),h&&"none"!==h&&(c=Ml(s.node2),jl(i[1],i[1],o,-c*e)),de(u[0],i[0]),de(u[1],i[1])})}function BA(r){return"view"===r.type}var WH=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){var n=new ll,i=new Yg,o=this.group;this._controller=new pl(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(BA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):xt(u,f,t)}jg(t.getGraph(),Al(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p),h.graph.eachNode(function(m){var _=m.dataIndex,S=m.getGraphicEl(),b=m.getModel();if(S){S.off("drag").off("dragend");var x=b.get("draggable");x&&S.on("drag",function(){c&&(c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(_),h.setItemLayout(_,[S.x,S.y]))}).on("dragend",function(){c&&c.setUnfixed(_)}),S.setDraggable(x&&!!c),"adjacency"===b.get(["emphasis","focus"])&&(at(S).focus=m.getAdjacentDataIndices())}}),h.graph.eachEdge(function(m){var _=m.getGraphicEl(),S=m.getModel().get(["emphasis","focus"]);!_||"adjacency"===S&&(at(_).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var d="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=h.getLayout("cx"),y=h.getLayout("cy");h.eachItemGraphicEl(function(m,_){var b=h.getItemModel(_).get(["label","rotate"])||0,x=m.getSymbolPath();if(d){var w=h.getItemLayout(_),T=Math.atan2(w[1]-y,w[0]-g);T<0&&(T=2*Math.PI+T);var C=w[0]=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof fi||(t=this._nodesMap[xo(t)]),t){for(var i="out"===a?"outEdges":"in"===a?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0}),i=0,o=n.length;i=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Ut(fi,GA("hostGraph","data")),Ut(zA,GA("hostGraph","edgeData"));const ZH=YH;function FA(r,e,t,a,n){for(var i=new ZH(a),o=0;o "+v)),u++)}var p,c=t.get("coordinateSystem");if("cartesian2d"===c||"polar"===c)p=qr(r,t);else{var d=qi.get(c),g=d&&d.dimensions||[];ut(g,"value")<0&&g.concat(["value"]);var y=uo(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;(p=new xe(y,t)).initData(r)}var m=new xe(["value"],t);return m.initData(l,s),n&&n(p,m),rA({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var XH=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new hl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),xn(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){!function DH(r){!xh(r)||(r.__curvenessList=[],r.__edgeMap={},TA(r))}(this);var s=FA(i,n,this,!0,function l(u,f){u.wrapMethod("getItemModel",function(p){var y=o._categoriesModels[p.getShallow("category")];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Rt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}function c(p){if(p&&("label"===p[0]||"label"===p[1])){var d=p.slice();return"label"===p[0]?d[0]="edgeLabel":"label"===p[1]&&(d[1]="edgeLabel"),d}return p}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p})});return A(s.edges,function(u){!function LH(r,e,t,a){if(xh(t)){var n=Cl(r,e,t),i=t.__edgeMap,o=i[CA(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}(u.node1,u.node2,this,u.dataIndex)},this),s.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),ae("nameValue",{name:f.join(" > "),value:o.value,noValue:null==o.value})}return X1({series:this,dataIndex:t,multipleSeries:a})},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return null!=n.value?n:B({value:0},n)}),a=new xe(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ot);const qH=XH;var KH={type:"graphRoam",event:"graphRoam",update:"none"},QH=function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},JH=function(r){function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return O(e,r),e.prototype.getDefaultShape=function(){return new QH},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(pt);const $H=JH;function bh(r,e){var t=null==r?"":r+"";return e&&(W(e)?t=e.replace("{value}",t):j(e)&&(t=e(r))),t}var Qg=2*Math.PI,e4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=function t4(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n);return{cx:H(t[0],e.getWidth()),cy:H(t[1],e.getHeight()),r:H(r.get("radius"),i/2)}}(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){for(var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),c=h.get("roundCap")?rh:Ae,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=(f-u)%Qg||f===u?(f-u)%Qg:Qg,m=u,_=0;p&&_=T&&(0===C?0:i[C-1][0]).8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0}))}if(m.get("show")&&E!==S){N=(N=m.get("distance"))?N+f:f;for(var U=0;U<=b;U++){P=Math.cos(T),R=Math.sin(T);var X=new ne({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});"auto"===L.stroke&&X.setStyle({stroke:i((E+U/b)/S)}),h.add(X),T+=D}T-=D}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(D,M){var U,I=m.getItemModel(D).getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),k=H(N[0],o.r),V=H(N[1],o.r),F=I.get("keepAspect");return(U=E?Kt(E,k-P/2,V-R,P,R,null,F):new $H({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:V}})).rotation=-(M+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function C(D,M){var I=g.get("roundCap")?rh:Ae,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),k=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:P?o.r-R:o.r-(D+1)*R,r:P?o.r:o.r-D*R}});return P&&(k.z2=b-m.get(_,D)%b),k}(y||d)&&(m.diff(v).add(function(D){var M=m.get(_,D);if(d){var L=T(D,s);Bt(L,{rotation:-((isNaN(+M)?w[0]:Dt(M,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(D,L)}if(y){var I=C(D,s),P=g.get("clip");Bt(I,{shape:{endAngle:Dt(M,x,w,P)}},t),h.add(I),Vc(t.seriesIndex,m.dataType,D,I),p[D]=I}}).update(function(D,M){var L=m.get(_,D);if(d){var I=v.getItemGraphicEl(M),P=I?I.rotation:s,R=T(D,P);R.rotation=P,xt(R,{rotation:-((isNaN(+L)?w[0]:Dt(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(D,R)}if(y){var E=c[M],k=C(D,E?E.shape.endAngle:s),V=g.get("clip");xt(k,{shape:{endAngle:Dt(L,x,w,V)}},t),h.add(k),Vc(t.seriesIndex,m.dataType,D,k),p[D]=k}}).execute(),m.each(function(D){var M=m.getItemModel(D),L=M.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var E=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),k=N.fill;if(E instanceof le){var V=E.style;E.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else E.useStyle(N),"pointer"!==E.type&&E.setColor(k);E.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===E.style.fill&&E.setStyle("fill",i(Dt(m.get(_,D),x,[0,1],!0))),E.z2EmphasisLift=0,he(E,M),Yt(E,I,P,R)}if(y){var F=p[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,he(F,M),Yt(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor");if(n.get("show")){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=Kt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new tt,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new St({silent:!0}),p[y]=new St({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new tt,b=i(Dt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r);(D=c[y]).attr({z2:g?0:2,style:Zt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(D)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(M.get("width"),o.r),E=H(M.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,D=p[y],k=M.get("formatter");D.attr({z2:g?0:2,style:Zt(M,{x:I,y:P,text:bh(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),bS(D,{normal:M},_,function(F){return bh(F,k)}),d&&wS(D,y,l,t,{getFormattedLabel:function(F,U,X,et,ct,Lt){return bh(Lt?Lt.interpolatedValue:_,k)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Et);const r4=e4;var a4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return O(e,r),e.prototype.getInitialData=function(t,a){return go(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ot);const n4=a4;var o4=["itemStyle","opacity"],s4=function(r){function e(t,a){var n=r.call(this)||this,i=n,o=new De,s=new St;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return O(e,r),e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(o4);f=null==f?1:f,n||wr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Bt(i,{style:{opacity:f}},o,a)):xt(i,{style:{opacity:f},shape:{points:l.points}},o,a),he(i,s),this._updateLabel(t,a),Yt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),f=t.getItemLayout(a).label,h=t.getItemVisual(a,"style"),v=h.fill;ge(o,ue(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ot(c[0][0],c[0][1]):null},xt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),kd(n,Od(l),{stroke:v})},e}(Me),l4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new s4(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){ys(o.getItemGraphicEl(l),t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Et);const u4=l4;var f4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new hl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return go(this,{coordDimensions:["value"],encodeDefaulter:nt(hp,this)})},e.prototype._defaultLabelLine=function(t){xn(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ot);const h4=f4;function d4(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=function v4(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),s=t.get("orient"),l=o.width,u=o.height,f=function c4(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i="ascending"===e,o=0,s=r.count();o5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!this._mouseDownPoint&&$g(this,"mousemove")){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===a?null:{duration:0}})}}};function $g(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const O4=E4;var N4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&it(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return null!=n&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[];A(It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this),function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(mt);const V4=N4;var B4=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return O(e,r),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(ur);const z4=B4;function hi(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(null!=n&&(n=bo(n,[0,o])),null!=i&&(i=Math.max(i,null!=n?n:0)),"all"===a){var s=Math.abs(e[1]-e[0]);s=bo(s,[0,o]),n=i=bo(s,[n,i]),a=0}e[0]=bo(e[0],t),e[1]=bo(e[1],t);var l=ty(e,a);e[a]+=r;var h,u=n||0,f=t.slice();return l.sign<0?f[0]+=u:f[1]-=u,e[a]=bo(e[a],f),h=ty(e,a),null!=n&&(h.sign!==l.sign||h.spani&&(e[1-a]=e[a]+h.sign*i),e}function ty(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function bo(r,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,r))}var ey=A,YA=Math.min,ZA=Math.max,XA=Math.floor,G4=Math.ceil,qA=Ht,F4=Math.PI,H4=function(){function r(e,t,a){this.type="parallel",this._axesMap=q(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.parallelAxisIndex;ey(e.dimensions,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new z4(o,$s(u),[0,0],u.get("type"),l));f.onBand="category"===f.type&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();ey(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),jn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Jt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var p,e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o="horizontal"===i?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=wh(e.get("axisExpandWidth"),l),h=wh(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow");c?(p=wh(c[1]-c[0],l),c[1]=c[0]+p):(p=wh(f*(h-1),l),(c=[f*(e.get("axisExpandCenter")||XA(u/2))-p/2])[1]=c[0]+p);var g=(s-p)/(u-h);g<3&&(g=0);var y=[XA(qA(c[0]/f,1))+1,G4(qA(c[1]/f,1))-1];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:g/f*c[0]}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ey(a,function(o,s){var l=(n.axisExpandable?U4:W4)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},h=[u[i].x+e.x,u[i].y+e.y],v={horizontal:F4/2,vertical:0}[i],c=[1,0,0,1,0,0];Ea(c,c,v),Sr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){null==a&&(a=0),null==n&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),(l*=t.axisExpandWidth/f)?hi(l,n,o,"all"):u="none";else{var c=n[1]-n[0];(n=[ZA(0,o[1]*s/c-c/2)])[1]=YA(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function wh(r,e){return YA(ZA(r,e[0]),e[1])}function W4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function U4(r,e){var s,f,a=e.axisExpandWidth,i=e.axisCollapseWidth,o=e.winInnerIndices,l=i,u=!1;return r=0;n--)He(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===a.length){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i6}(r)||n){if(i&&!n){"single"===o.brushMode&&iy(r);var l=$(o);l.brushType=hM(l.brushType,i),l.panelId=i===vi?null:i.panelId,n=r._creatingCover=$A(r,l),r._covers.push(n)}if(n){var u=Th[hM(r._brushType,i)];n.__brushOption.range=u.getCreatingRange(uy(r,n,r._track)),a&&(tM(r,n),u.updateCommon(r,n)),eM(r,n),s={isEnd:a}}}else a&&"single"===o.brushMode&&o.removeOnClick&&ny(r,e,t)&&iy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function hM(r,e){return"auto"===r?e.defaultBrushType:r}var uW={mousedown:function(r){if(this._dragging)vM(this,r);else if(!r.target||!r.target.draggable){fy(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null,(this._creatingPanel=ny(this,r,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var a=this.group.transformCoordToLocal(r.offsetX,r.offsetY);if(function lW(r,e,t){if(r._brushType&&!function fW(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}(r,e.offsetX,e.offsetY)){var a=r._zr,n=r._covers,i=ny(r,e,t);if(!r._dragging)for(var o=0;o=0&&(s[o[l].depth]=new Rt(o[l],this,a));if(i&&n)return FA(i,n,this,!0,function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var m=d.levelModels[g.depth];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,y=d.getGraph().getEdgeByIndex(p).node1.getLayout();if(y){var _=d.levelModels[y.depth];_&&(c.parentModel=_)}return c})}).data},e.prototype.setNodePosition=function(t,a){var i=(this.option.data||this.option.nodes)[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||null==c}if("edge"===n){var o=this.getDataParams(t,n),s=o.data,l=o.value;return ae("nameValue",{name:s.source+" -- "+s.target,value:l,noValue:i(l)})}var h=this.getGraph().getNodeByIndex(t).getLayout().value,v=this.getDataParams(t,n).data.name;return ae("nameValue",{name:null!=v?v+"":null,value:h,noValue:i(h)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(null==n.value&&"node"===a){var o=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Ot);const MW=AW;function DW(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=function LW(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;!function PW(r){A(r,function(e){var t=rn(e.outEdges,Ch),a=rn(e.inEdges,Ch),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}(u),function IW(r,e,t,a,n,i,o,s,l){(function RW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),d.setLayout("vertical"===i?{dy:t}:{dx:t},!0);for(var m=0;mh-1?c:h-1;o&&"left"!==o&&function EW(r,e,t,a){if("right"===e){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)zW(s,l*=.99,o),py(s,n,t,a,o),UW(s,l,o),py(s,n,t,a,o)}(r,e,i,n,a,o,s),function YW(r,e){var t="vertical"===e?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}(r,s)}(u,f,a,n,o,s,0!==It(u,function(d){return 0===d.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function mM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return null!=e.depth&&e.depth>=0}function py(r,e,t,a,n){var i="vertical"===n?"x":"y";A(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,h=o.length,v="vertical"===n?"dx":"dy",c=0;c0&&(s=l.getLayout()[i]+u,l.setLayout("vertical"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;if((u=f-e-("vertical"===n?a:t))>0)for(s=l.getLayout()[i]-u,l.setLayout("vertical"===n?{x:s}:{y:s},!0),f=s,c=h-2;c>=0;--c)(u=(l=o[c]).getLayout()[i]+l.getLayout()[v]+e-f)>0&&(s=l.getLayout()[i]-u,l.setLayout("vertical"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]})}function zW(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=rn(n.outEdges,GW,t)/rn(n.outEdges,Ch);if(isNaN(i)){var o=n.outEdges.length;i=o?rn(n.outEdges,FW,t)/o:0}if("vertical"===t){var s=n.getLayout().x+(i-en(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-en(n,t))*e;n.setLayout({y:l},!0)}}})})}function GW(r,e){return en(r.node2,e)*r.getValue()}function FW(r,e){return en(r.node2,e)}function HW(r,e){return en(r.node1,e)*r.getValue()}function WW(r,e){return en(r.node1,e)}function en(r,e){return"vertical"===e?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Ch(r){return r.getValue()}function rn(r,e,t){for(var a=0,n=r.length,i=-1;++ii&&(i=s)}),A(a,function(o){var l=new ce({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:e.get("color")}).mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);null!=u?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}var _M=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,l,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type");"category"===o?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):"category"===s?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f="horizontal"===e.layout?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?((x=B({},S)).value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Of(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Of(d),dimsDef:m.slice()}];return go(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:nt(ZS,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),SM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return O(e,r),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Ot);Ut(SM,_M,!0);const qW=SM;var KW=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l="horizontal"===t.get("layout")?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var h=xM(i.getItemLayout(u),i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(i.hasValue(u)){var v=i.getItemLayout(u);h?(wr(h),bM(v,h,i,u)):h=xM(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}else o.remove(h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Et),jW=function r(){},QW=function(r){function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return O(e,r),e.prototype.getDefaultShape=function(){return new jW},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();id)&&a.push([y,_])}}return{boxData:t,outliers:a}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},l6=["color","borderColor"],u6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Za(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&wM(u,h))return;var v=dy(h,0,!0);Bt(v,{shape:{points:h.ends}},t,f),gy(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(a.hasValue(f)){var c=a.getItemLayout(f);s&&wM(u,c)?i.remove(v):(v?(xt(v,{shape:{points:c.ends}},t,f),wr(v)):v=dy(c),gy(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v))}else i.remove(v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),CM(t,this.group);var a=t.get("clip",!0)?th(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var o,n=a.getData(),i=n.getLayout("isSimpleBox");null!=(o=t.next());){var l=dy(n.getItemLayout(o));gy(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){CM(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Et),f6=function r(){},h6=function(r){function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return O(e,r),e.prototype.getDefaultShape=function(){return new f6},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(pt);function dy(r,e,t){var a=r.ends;return new h6({shape:{points:t?v6(a,r):a},z2:100})}function wM(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]),i=t.getModel("itemStyle").getItemStyle(l6);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const p6=u6;var MM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return O(e,r),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ot);Ut(MM,_M,!0);const d6=MM;function g6(r){!r||!z(r.series)||A(r.series,function(e){J(e)&&"k"===e.type&&(e.type="candlestick")})}var y6=["itemStyle","borderColor"],m6=["itemStyle","borderColor0"],_6=["itemStyle","color"],S6=["itemStyle","color0"],x6={seriesType:"candlestick",plan:Qi(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?_6:S6)}function a(i,o){return o.get(i>0?y6:m6)}if(!e.isSeriesFiltered(r))return!r.pipelineContext.large&&{progress:function(i,o){for(var s;null!=(s=i.next());){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill,B(o.ensureUniqueItemVisual(s,"style"),f)}}}}};const b6=x6;var w6={seriesType:"candlestick",plan:Qi(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=function T6(r,e){var a,t=r.getBaseAxis(),n="category"===t.type?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(lt(r.get("barMaxWidth"),n),n),o=H(lt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return null!=s?H(s,n):Math.max(Math.min(n/2,i),o)}(r,t),o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[0])),l=G(t.mapDimensionsAll(o[1]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),!(s<0||l.length<4))return{progress:r.pipelineContext.large?function p(d,g){for(var _,x,y=Kr(4*d.count),m=0,S=[],b=[],w=g.getStore();null!=(x=d.next());){var T=w.get(s,x),C=w.get(u,x),D=w.get(f,x),M=w.get(h,x),L=w.get(v,x);isNaN(T)||isNaN(M)||isNaN(L)?(y[m++]=NaN,m+=3):(y[m++]=DM(w,x,C,D,f),S[0]=T,S[1]=M,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[1]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN)}g.setLayout("largePoints",y)}:function c(d,g){for(var y,m=g.getStore();null!=(y=d.next());){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),C=Math.max(S,b),D=R(T,_),M=R(C,_),L=R(x,_),I=R(w,_),P=[];E(P,M,0),E(P,D,1),P.push(k(I),k(M),k(L),k(D)),g.setItemLayout(y,{sign:DM(m,y,S,b,f),initBaseline:S>b?M[1]:D[1],ends:P,brushRect:(V=x,F=w,U=_,X=void 0,et=void 0,X=R(V,U),et=R(F,U),X[0]-=a/2,et[0]-=a/2,{x:X[0],y:X[1],width:a,height:et[1]-X[1]})})}var V,F,U,X,et;function R(V,F){var U=[];return U[0]=F,U[1]=V,isNaN(F)||isNaN(V)?[NaN,NaN]:e.dataToPoint(U)}function E(V,F,U){var X=F.slice(),et=F.slice();X[0]=gf(X[0]+a/2,1,!1),et[0]=gf(et[0]-a/2,1,!0),U?V.push(X,et):V.push(et,X)}function k(V){return V[0]=gf(V[0],1),V}}}}};function DM(r,e,t,a,n){return t>a?-1:t0?r.get(n,e-1)<=a?1:-1:1}const C6=w6;function LM(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?t:null,fill:"fill"===e.brushType?t:null}})})}var M6=function(r){function e(t,a){var n=r.call(this)||this,i=new sl(t,a),o=new tt;return n.add(i),n.add(o),n.updateData(t,a),n}return O(e,r),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var h=void 0;h=j(f)?f(n):f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l)}this._period=s,this._loop=l}},e.prototype._animateSymbol=function(t,a,n,i){if(a>0){t.__t=0;var o=this,s=t.animate("",i).when(a,{__t:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||s.done(function(){o.remove(t)}),s.start()}},e.prototype._getLineLength=function(t){return ra(t.__p1,t.__cp1)+ra(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,s=[t.x,t.y],l=s.slice(),u=se,f=Ov;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=f(a[0],i[0],n[0],o),v=f(a[1],i[1],n[1],o);t.rotation=-Math.atan2(v,h)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1],t.rotation=-Math.atan2(v[1]-h[1],v[0]-h[0])-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(IM);const V6=N6;var B6=function r(){this.polyline=!1,this.curveness=0,this.segs=[]},z6=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new B6},e.prototype.buildPath=function(t,a){var o,n=a.segs,i=a.curveness;if(a.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var l=1;l0?t.quadraticCurveTo((u+h)/2-(f-v)*i,(f+v)/2-(h-u)*i,h,v):t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){if(D_(h,v,(h+p)/2-(v-d)*o,(v+d)/2-(p-h)*o,p,d,s,t,a))return l}else if(Na(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const F6=G6;var H6={seriesType:"lines",plan:Qi(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&th(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=RM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),l=a.pipelineContext.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new F6:new Yg(o?i?V6:PM:i?IM:Wg),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr();"svg"!==a.painter.getType()&&null!=this._lastZlevel&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Et);const U6=W6;var Y6="undefined"==typeof Uint32Array?Array:Uint32Array,Z6="undefined"==typeof Float64Array?Array:Float64Array;function EM(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var n={coords:[t[0].coord,t[1].coord]};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Ul([n,t[0],t[1]])}))}var X6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return O(e,r),e.prototype.init=function(t){t.data=t.data||[],EM(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(EM(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=ql(this._flatCoords,a.flatCoords),this._flatCoordsOffset=ql(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t);return a.option instanceof Array?a.option:a.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Ot);const q6=X6;function Ah(r){return r instanceof Array||(r=[r,r]),r}var K6={seriesType:"lines",reset:function(r){var e=Ah(r.get("symbol")),t=Ah(r.get("symbolSize")),a=r.getData();return a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]),{dataEach:a.hasItemOption?function n(i,o){var s=i.getItemModel(o),l=Ah(s.getShallow("symbol",!0)),u=Ah(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}:null}}};const j6=K6;var $6=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=gr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p0){var L=o(_)?l:u;_>0&&(_=_*D+T),b[x++]=L[M],b[x++]=L[M+1],b[x++]=L[M+2],b[x++]=L[M+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=gr.createCanvas()),t=this.pointSize+this.blurSize,a=2*t;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const tU=$6;function kM(r){var e=r.dimensions;return"lng"===e[0]&&"lat"===e[1]}var aU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):kM(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(kM(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Za(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var l,u,f,h,s=t.coordinateSystem;if(ga(s,"cartesian2d")){var v=s.getAxis("x"),c=s.getAxis("y");l=v.getBandWidth(),u=c.getBandWidth(),f=v.scale.getExtent(),h=c.scale.getExtent()}for(var p=this.group,d=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),S=ue(t),b=t.getModel("emphasis"),x=b.get("focus"),w=b.get("blurScope"),T=b.get("disabled"),C=ga(s,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],D=n;Df[1]||Ph[1])continue;var R=s.dataToPoint([I,P]);M=new _t({shape:{x:Math.floor(Math.round(R[0])-l/2),y:Math.floor(Math.round(R[1])-u/2),width:Math.ceil(l),height:Math.ceil(u)},style:L})}else{if(isNaN(d.get(C[1],D)))continue;M=new _t({z2:1,shape:s.dataToRect([d.get(C[0],D)]).contentShape,style:L})}if(d.hasItemOption){var E=d.getItemModel(D),N=E.getModel("emphasis");g=N.getModel("itemStyle").getItemStyle(),y=E.getModel(["blur","itemStyle"]).getItemStyle(),m=E.getModel(["select","itemStyle"]).getItemStyle(),_=E.get(["itemStyle","borderRadius"]),x=N.get("focus"),w=N.get("blurScope"),T=N.get("disabled"),S=ue(E)}M.shape.r=_;var k=t.getRawValue(D),V="-";k&&null!=k[2]&&(V=k[2]+""),ge(M,S,{labelFetcher:t,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:V}),M.ensureState("emphasis").style=g,M.ensureState("blur").style=y,M.ensureState("select").style=m,Yt(M,x,w,T),M.incremental=o,o&&(M.states.emphasis.hoverLayer=!0),p.add(M),d.setItemGraphicEl(D,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new tU;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var D=t.dataToPoint([w,T]);return D[0]-=v,D[1]-=c,D.push(C),D}),S=n.getExtent(),b="visualMap.continuous"===n.type?function rU(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}(S,n.option.range):function eU(r,e,t){var a=r[1]-r[0],n=(e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}})).length,i=0;return function(o){var s;for(s=i;s=0;s--){var l;if((l=e[s].interval)[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s0?1:-1})(t,i,n,a,v),function hU(r,e,t,a,n,i,o,s,l,u){var p,f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize");(p=z(c)?c.slice():null==c?["100%","100%"]:[c,c])[h.index]=H(p[h.index],v),p[f.index]=H(p[f.index],a?v:Math.abs(i)),u.symbolSize=p,(u.symbolScale=[p[0]/s,p[1]/s])[f.index]*=(l.isHorizontal?-1:1)*o}(r,e,n,i,0,v.boundingLength,v.pxSign,f,a,v),function vU(r,e,t,a,n){var i=r.get(lU)||0;i&&(yy.attr({scaleX:e[0],scaleY:e[1],rotation:t}),yy.updateTransform(),i/=yy.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=oo(t.get("symbolOffset"),c);return function cU(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ee(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),b=Math.max(d+2*S,0),x=_?0:2*S,w=gc(a),T=w?a:XM((y+x)/b);b=d+2*(S=(y-T*d)/2/(_?T:Math.max(T-1,1))),x=_?0:2*S,!w&&"fixed"!==a&&(T=u?XM((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var D=p*(g/2),M=h.pathPosition=[];M[v.index]=t[v.wh]/2,M[c.index]="start"===o?D:"end"===o?l-D:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=h.barRectShape=B({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(M[c.index]+D)),I[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}(t,c,n,i,0,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function my(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function VM(r){var e=r.symbolPatternSize,t=Kt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),"image"!==t.type&&t.setStyle({strokeNoScale:!0}),t}function BM(r,e,t,a){var n=r.__pictorialBundle,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=t.symbolSize[e.valueDim.index]+t.valueLineWidth+2*t.symbolMargin;for(_y(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?To(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=VM(t),n.add(i),To(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function GM(r,e,t){var a=B({},e.barRectShape),n=r.__pictorialBarRect;n?To(n,null,{shape:a},e,t):((n=r.__pictorialBarRect=new _t({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,r.add(n))}function FM(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=B({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)xt(n,{shape:i},s,l);else{i[o.wh]=0,n=new _t({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],hn[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function HM(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=pU,t.isAnimationEnabled=dU,t}function pU(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function dU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function WM(r,e,t,a){var n=new tt,i=new tt;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?BM(n,e,t):zM(n,0,t),GM(n,t,a),FM(n,e,t,a),n.__pictorialShapeStr=YM(r,t),n.__pictorialSymbolMeta=t,n}function UM(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];_y(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(i,function(o){Ga(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function YM(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function _y(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function To(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&hn[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function ZM(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");_y(r,function(d){if(d instanceof le){var g=d.style;d.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=1.1*d.scaleX,y.scaleY=1.1*d.scaleY),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)];ge(r.__pictorialBarRect,ue(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:co(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Yt(r,f,h,i.get("disabled"))}function XM(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const yU=uU;var mU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return O(e,r),e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Fa(eh.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(eh);const _U=mU;var xU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;function v(g){return g.name}s.x=0,s.y=f.y+h[0];var c=new ca(this._layersSeries||[],l,v,v),p=[];function d(g,y,m){var _=o._layers;if("remove"!==g){for(var x,S=[],b=[],w=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}(s),u=l.y0,f=t/l.max,h=n.length,v=n[0].indices.length,p=0;pMath.PI/2?"right":"left"):L&&"center"!==L?"left"===L?(D=o.r0+M,l>Math.PI/2&&(L="right")):"right"===L&&(D=o.r-M,l>Math.PI/2&&(L="left")):(D=s===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,L="center"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*f+o.cy;var I=g(m,"rotate"),P=0;"radial"===I?(P=-l)<-Math.PI/2&&(P+=Math.PI):"tangential"===I?(P=Math.PI/2-l)>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI):Ct(I)&&(P=I*Math.PI/180),S.rotation=P}),v.dirtyStyle()},e}(Ae);const KM=PU;var xy="sunburstRootToNode",jM="sunburstHighlight",kU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)}),function p(m,_){function S(x){return x.getId()}function b(x,w){!function d(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l)if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}(_);else if(m){var S=new KM(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}(null==x?null:m[x],null==w?null:_[w])}0===m.length&&0===_.length||new ca(_,m,S,S).add(b).update(b).remove(nt(b,null)).execute()}(v,this._oldChildren||[]),function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new KM(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}(l,u),this._initEvents(),this._oldChildren=v},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1;t.seriesModel.getViewRoot().eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if("rootToNode"===s)t._rootToNode(o);else if("link"===s){var l=o.getModel(),u=l.get("link");u&&Xu(u,l.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xy,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var i=a.getData().getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Et);const OU=kU;var NU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};QM(n);var i=this._levelModels=G(t.levels||[],function(l){return new Rt(l,this,a)},this),o=Tg.createTree(n,this,function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})});return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=ph(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){iA(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Ot);function QM(r){var e=0;A(r.children,function(a){QM(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const VU=NU;var JM=Math.PI/180;function BU(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*JM,p=a.get("minAngle")*JM,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");null!=m&&$M(g,m);var _=0;A(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,T=(v-h)/(g.height-(x?-1:1)||1),C=a.get("clockwise"),D=a.get("stillShowZeroSum"),M=C?1:-1,L=function(E,N){if(E){var k=N;if(E!==d){var V=E.getValue(),F=0===S&&D?b:V*b;F1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&W(s)&&(s=ou(s,(a.depth-1)/(i-1)*.5)),s}(o,a,i.root.height)),B(n.ensureUniqueItemVisual(o.dataIndex,"style"),l)})})}var tD={color:"fill",borderColor:"stroke"},HU={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Sa=wt(),WU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return qr(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=Sa(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ot);const UU=WU;function YU(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function XU(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function KU(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return"category"===t.type?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function QU(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var i=this["get"+t+"Axis"](),o=e[a],s=r[a]/2,l="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return"Angle"===t&&(l=l*Math.PI/180),l},this)}function eD(r,e,t,a){return r&&(r.legacy||!1!==r.legacy&&!t&&!a&&"tspan"!==e&&("text"===e||Z(r,"text")))}function rD(r,e,t){var n,i,o,a=r;if("text"===e)o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Z(a,"textPosition")&&(n.position=a.textPosition),Z(a,"textOffset")&&(n.offset=a.textOffset),Z(a,"textRotation")&&(n.rotation=a.textRotation),Z(a,"textDistance")&&(n.distance=a.textDistance)}return aD(o,r),A(o.rich,function(l){aD(l,l)}),{textConfig:n,textContent:i}}function aD(r,e){!e||(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(r.align=e.textAlign),Z(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(r.width=e.textWidth),Z(e,"textHeight")&&(r.height=e.textHeight),Z(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(r.padding=e.textPadding),Z(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function nD(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",null!=t.offset&&(a.textOffset=t.offset),null!=t.rotation&&(a.textRotation=t.rotation),null!=t.distance&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";iD(a,e);var o=null==a.textFill;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),null==a.textStrokeWidth&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){iD(s,s)}),a}function iD(r,e){!e||(Z(e,"fill")&&(r.textFill=e.fill),Z(e,"stroke")&&(r.textStroke=e.fill),Z(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Z(e,"font")&&(r.font=e.font),Z(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Z(e,"fontSize")&&(r.fontSize=e.fontSize),Z(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Z(e,"align")&&(r.textAlign=e.align),Z(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Z(e,"width")&&(r.textWidth=e.width),Z(e,"height")&&(r.textHeight=e.height),Z(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(r.textPadding=e.padding),Z(e,"borderColor")&&(r.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var oD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sD=yt(oD),Mh=(qe(Nr,function(r,e){return r[e]=1,r},{}),Nr.join(", "),["","style","shape","extra"]),Co=wt();function by(r,e,t,a,n){var i=r+"Animation",o=Bi(r,a,n)||{},s=Co(e).userDuring;return o.duration>0&&(o.during=s?Y(nY,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,t[i]),o}function Dh(r,e,t,a){var n=(a=a||{}).dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Co(r),u=e.style;l.userDuring=e.during;var f={},h={};if(function oY(r,e,t){for(var a=0;a=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});var p=yt(t);for(u=0;u0&&r.animateFrom(v,c)}else!function eY(r,e,t,a,n){if(n){var i=by("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}(r,e,n||0,t,f);lD(r,e),u?r.dirty():r.markRedraw()}function lD(r,e){for(var t=Co(r).leaveToProps,a=0;a=0){!o&&(o=a[r]={});var c=yt(i);for(f=0;fa[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Y(QU,r)}}},calendar:function $U(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}};function My(r){return r instanceof pt}function Dy(r){return r instanceof tr}var pY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=pD(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(h){Py(n,null,h,u(h,i),t,l,s)}).remove(function(h){var v=o.getItemGraphicEl(h);Lh(v,Sa(v).option,t)}).update(function(h,v){var c=o.getItemGraphicEl(v);Py(n,c,h,u(h,i),t,l,s)}).execute();var f=t.get("clip",!0)?th(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=pD(a,s,n,i),u=this._progressiveEls=[];function f(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h=0?e.getStore().get(N,R):void 0}var k=e.get(E.name,R),V=E&&E.ordinalMeta;return V?V.categories[k]:k},styleEmphasis:function w(P,R){null==R&&(R=u);var E=m(R,xa).getItemStyle(),N=_(R,xa),k=Zt(N,null,null,!0,!0);k.text=N.getShallow("show")?Rr(r.getFormattedLabel(R,xa),r.getFormattedLabel(R,an),co(e,R)):null;var V=zu(N,null,!0);return C(P,E),E=nD(E,k,V),P&&T(E,P),E.legacy=!0,E},visual:function D(P,R){if(null==R&&(R=u),Z(tD,P)){var E=e.getItemVisual(R,"style");return E?E[tD[P]]:null}if(Z(HU,P))return e.getItemVisual(R,P)},barLayout:function M(P){if("cartesian2d"===i.type)return function fB(r){var e=[],t=r.axis,a="axis0";if("category"===t.type){for(var n=t.getBandWidth(),i=0;i=f;h--)Lh(e.childAt(h),Sa(e).option,n)}}(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function dD(r,e,t){var a=Sa(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||null!=n&&n!==a.customGraphicType||"path"===n&&function TY(r){return r&&(Z(r,"pathData")||Z(r,"d"))}(i)&&_D(i)!==a.customPathData||"image"===n&&Z(o,"image")&&o.image!==a.customImagePath}function gD(r,e,t){var a=e?Ph(r,e):r,n=e?Ey(r,a,xa):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?Ph(s,e):s:null;if(n&&(t.isLegacy||eD(n,i,!!o,!!l))){t.isLegacy=!0;var u=rD(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}!e&&l&&!l.type&&(l.type="text");var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=l}function Ph(r,e){return e?r?r[e]:null:r}function Ey(r,e,t){var a=e&&e.style;return null==a&&t===xa&&r&&(a=r.styleEmphasis),a}function yD(r,e){var t=r&&r.name;return null!=t?t:"e\0\0"+e}function mD(r,e){var t=this.context;Ry(t.api,null!=e?t.oldChildren[e]:null,t.dataIndex,null!=r?t.newChildren[r]:null,t.seriesModel,t.group)}function wY(r){var e=this.context,t=e.oldChildren[r];Lh(t,Sa(t).option,e.seriesModel)}function _D(r){return r&&(r.pathData||r.d)}var di=wt(),SD=$,ky=Y,AY=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,n||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(s){var v=nt(xD,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}else s=this._group=new tt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);TD(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i="category"===n.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===a||null==a){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=lg(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===a},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=di(e).pointerEl=new hn[i.type](SD(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=di(e).labelEl=new St(SD(t.label));e.add(i),wD(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=di(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=di(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),wD(i,n))},r.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||"hide"===o)return n&&a.remove(n),void(this._handle=null);this._handle||(s=!0,n=this._handle=eo(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ia(u.event)},onmousedown:ky(this._onHandleDragMove,this,0,0),drift:ky(this._onHandleDragMove,this),ondragend:ky(this._onHandleDragEnd,this)}),a.add(n)),TD(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,ao(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){xD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Oy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Oy(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Oy(n)),di(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Bs(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return{x:e[a=a||0],y:e[1-a],width:t[a],height:t[1-a]}},r}();function xD(r,e,t,a){bD(di(t).lastProp,a)||(di(t).lastProp=a,e?xt(t,a,r):(t.stopAnimation(),t.attr(a)))}function bD(r,e){if(J(r)&&J(e)){var t=!0;return A(e,function(a,n){t=t&&bD(r[n],a)}),!!t}return r===e}function wD(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Oy(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function TD(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){"group"!==i.type&&(null!=a&&(i.z=a),null!=n&&(i.zlevel=n),i.silent=t)})}const Ny=AY;function Vy(r){var a,e=r.get("type"),t=r.getModel(e+"Style");return"line"===e?(a=t.getLineStyle()).fill=null:"shadow"===e&&((a=t.getAreaStyle()).stroke=null),a}function CD(r,e,t,a,n){var o=AD(t.get("value"),e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Vn(s.get("padding")||0),u=s.getFont(),f=rs(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;"right"===p&&(h[0]-=v),"center"===p&&(h[0]-=v/2);var d=n.verticalAlign;"bottom"===d&&(h[1]-=c),"middle"===d&&(h[1]-=c/2),function MY(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}(h,v,c,a);var g=s.get("backgroundColor");(!g||"auto"===g)&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function AD(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Ld(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=u&&u.getDataParams(l.dataIndexInside);h&&s.seriesData.push(h)}),W(o)?i=o.replace("{value}",i):j(o)&&(i=o(s))}return i}function By(r,e,t){var a=[1,0,0,1,0,0];return Ea(a,a,t.rotation),Sr(a,a,t.position),Mr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function MD(r,e,t,a,n,i){var o=ya.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),CD(e,a,n,i,{position:By(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zy(r,e,t){return{x1:r[t=t||0],y1:r[1-t],x2:e[t],y2:e[1-t]}}function DD(r,e,t){return{x:r[t=t||0],y:r[1-t],width:e[t],height:e[1-t]}}function LD(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var DY=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=ID(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&"none"!==u){var v=Vy(i),c=LY[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}MD(a,t,ng(l.model,n),n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=ng(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=By(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ID(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];return c[f]=h[f],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},e}(Ny);function ID(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var LY={line:function(r,e,t){return{type:"Line",subPixelOptimize:!0,shape:zy([e,t[0]],[e,t[1]],PD(r))}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth());return{type:"Rect",shape:DD([e-a/2,t[0]],[a,t[1]-t[0]],PD(r))}}};function PD(r){return"x"===r.dim?0:1}const IY=DY;var PY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(mt);const RY=PY;var ba=wt(),EY=A;function RD(r,e,t){if(!Tt.node){var a=e.getZr();ba(a).records||(ba(a).records={}),function kY(r,e){function t(a,n){r.on(a,function(i){var o=function VY(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}(e);EY(ba(r).records,function(s){s&&n(s,i,o.dispatchAction)}),function OY(r,e){var n,t=r.showTip.length,a=r.hideTip.length;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(o.pendings,e)})}ba(r).initialized||(ba(r).initialized=!0,t("click",nt(ED,"click")),t("mousemove",nt(ED,"mousemove")),t("globalout",NY))}(a,e),(ba(a).records[r]||(ba(a).records[r]={})).handler=t}}function NY(r,e,t){r.handler("leave",null,t)}function ED(r,e,t,a){e.handler(r,t,a)}function Gy(r,e){if(!Tt.node){var t=e.getZr();(ba(t).records||{})[r]&&(ba(t).records[r]=null)}}var BY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";RD("axisPointer",n,function(s,l,u){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){Gy("axisPointer",a)},e.prototype.dispose=function(t,a){Gy("axisPointer",a)},e.type="axisPointer",e}(zt);const zY=BY;function kD(r,e){var n,t=[],a=r.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=bn(i,r);if(null==o||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c="x"===h||"radius"===h?1:0,p=i.mapDimension(u.dim),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var OD=wt();function GY(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Rh(n)&&(n=kD({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Rh(n),u=i.axesInfo,f=s.axesInfo,h="leave"===a||Rh(n),v={},c={},p={list:[],map:{}},d={showPointer:nt(HY,c),showTooltip:nt(WY,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=function XY(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;null==T&&!l&&(T=x.pointToData(n)),null!=T&&ND(S,T,d,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,VD(S),VD(y)))),g[y.key]=w}})}),A(g,function(y,m){ND(f[m],y,d,!0,v)}),function UY(r,e,t){var a=t.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),"show"===o.status&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}(c,f,v),function YY(r,e,t,a){if(!Rh(e)&&r.list.length){var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}else a({type:"hideTip"})}(p,n,r,o),function ZY(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=OD(a)[n]||{},o=OD(a)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;"show"===h.status&&A(h.seriesDataIndices,function(v){o[v.seriesIndex+" | "+v.dataIndex]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(f,0,t),v}}function ND(r,e,t,a,n){var i=r.axis;if(!i.scale.isBlank()&&i.containData(e)){if(!r.involveSeries)return void t.showPointer(r,e);var o=function FY(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var h,v,f=l.getData().mapDimensionsAll(a);if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(!(v=l.getData().indicesOfNearest(f[0],r,"category"===t.type?.5:null)).length)return;h=l.getData().get(f[0],v[0])}if(null!=h&&isFinite(h)){var p=r-h,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,n=h,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==n.seriesIndex&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&null!=l&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function HY(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function WY(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(e.triggerTooltip&&n.length){var l=e.coordSys.model,u=vl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function VD(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function Rh(r){return!r||null==r[0]||isNaN(r[0])||null==r[1]||isNaN(r[1])}function Il(r){ii.registerAxisPointerClass("CartesianAxisPointer",IY),r.registerComponentModel(RY),r.registerComponentView(zY),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=function kG(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function OG(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=vl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var h=s.model.getModel("tooltip",a);if(A(s.getAxes(),nt(d,!1,null)),s.getTooltipAxes&&a&&h.get("show")){var v="axis"===h.get("trigger"),c="cross"===h.get(["axisPointer","type"]),p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&A(p.baseAxes,nt(d,!c||"cross",v)),c&&A(p.otherAxes,nt(d,"cross",!1))}}function d(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(S&&("auto"!==S||g||ug(_))){null==y&&(y=_.get("triggerTooltip")),_=g?function NG(r,e,t,a,n,i){var o=e.getModel("axisPointer"),l={};A(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(v){l[v]=$(o.get(v))}),l.snap="category"!==r.type&&!!i,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===n){var f=o.get(["label","show"]);if(u.show=null==f||f,!i){var h=l.lineStyle=o.get("crossStyle");h&&Q(u,h.textStyle)}}return r.model.getModel("axisPointer",new Rt(l,t,a))}(m,h,n,e,g,y):_;var b=_.get("snap"),x=vl(m.model),w=y||b||"category"===m.type,T=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:w,snap:b,useHandle:ug(_),seriesModels:[],linkGroup:null};u[x]=T,r.seriesInvolved=r.seriesInvolved||w;var C=function BG(r,e){for(var t=e.model,a=e.dim,n=0;ng?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}(a,n,0,l,i.get(["label","margin"]));CD(t,n,i,o,g)},e}(Ny),QY={line:function(r,e,t,a){return"angle"===r.dim?{type:"Line",shape:zy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return"angle"===r.dim?{type:"Sector",shape:LD(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(n/2-t)*i)}:{type:"Sector",shape:LD(e.cx,e.cy,t-n/2,t+n/2,0,2*Math.PI)}}};const JY=KY;var $Y=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.findAxisModel=function(t){var a;return this.ecModel.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(mt);const t8=$Y;var Fy=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qt).models[0]},e.type="polarAxis",e}(mt);Ut(Fy,ho);var e8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="angleAxis",e}(Fy),r8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="radiusAxis",e}(Fy),Hy=function(r){function e(t,a){return r.call(this,"radius",t,a)||this}return O(e,r),e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)["radius"===this.dim?0:1]},e}(ur);Hy.prototype.dataToRadius=ur.prototype.dataToCoord,Hy.prototype.radiusToData=ur.prototype.coordToData;const a8=Hy;var n8=wt(),Wy=function(r){function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return O(e,r),e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=rs(null==s?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7)/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=n8(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return null!=d&&null!=g&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(ur);Wy.prototype.dataToAngle=ur.prototype.dataToCoord,Wy.prototype.angleToData=ur.prototype.coordToData;const i8=Wy;var BD=["radius","angle"],o8=function(){function r(e){this.dimensions=BD,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new a8,this._angleAxis=new i8,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){return this["_"+e+"Axis"]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=us;)u+=360*f;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI;return[Math.cos(a)*t+this.cx,-Math.sin(a)*t+this.cy]},r.prototype.getArea=function(){var e=this.getAngleAxis(),a=this.getRadiusAxis().getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){return zD(t)===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){return zD(t)===this?this.pointToData(a):null},r}();function zD(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const s8=o8;function u8(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(Zf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(Zf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),jn(a.scale,a.model),jn(n.scale,n.model),"category"===a.type&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function GD(r,e){if(r.type=e.get("type"),r.scale=$s(e),r.onBand=e.get("boundaryGap")&&"category"===r.type,r.inverse=e.get("inverse"),function f8(r){return"angleAxis"===r.mainType}(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var h8={dimensions:BD,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new s8(n+"");i.update=u8;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");GD(o,l),GD(s,u),function l8(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");null==l?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if("polar"===a.get("coordinateSystem")){var n=a.getReferringComponents("polar",Qt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}};const v8=h8;var c8=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Eh(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function kh(r){return r.getRadiusAxis().inverse?0:1}function FD(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var p8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return O(e,r),e.prototype.render=function(t,a){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=$(f);var h=n.scale,v="ordinal"===h.type?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});FD(u),FD(s),A(c8,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||"axisLine"===f)&&d8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ii),d8={axisLine:function(r,e,t,a,n,i){var u,o=e.getModel(["axisLine","lineStyle"]),s=kh(t),l=s?0:1;(u=0===i[l]?new Cr({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):new Es({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0})).style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[kh(t)],u=G(a,function(f){return new ne({shape:Eh(t,[l,l+s],f.coord)})});r.add(Ye(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[kh(t)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];J(b)&&b.textStyle&&(c=new Rt(b.textStyle,l,l.ecModel))}var x=new St({silent:ya.isLabelSilent(e),style:Zt(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=ya.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,at(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",I=w;b&&(a[f][M]||(a[f][M]={p:w,n:w}),I=a[f][M][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if("radius"===p.dim){var k=p.dataToCoord(D)-w,V=l.dataToCoord(M);Math.abs(k)=N})}}})};var A8={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},M8={splitNumber:5},D8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="polar",e}(zt);function Uy(r,e){e=e||{};var a=r.axis,n={},i=a.position,o=a.orient,s=r.coordinateSystem.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=["vertical"===o?u.vertical[i]:l[0],"horizontal"===o?u.horizontal[i]:l[3]],n.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,right:1,left:-1}[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ee(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.rotate;return null==v&&(v=r.get(["axisLabel","rotate"])),n.labelRotation="top"===i?-v:v,n.z2=1,n}var I8=["axisLine","axisTickLabel","axisName"],P8=["splitArea","splitLine"],R8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return O(e,r),e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new tt;var l=Uy(t),u=new ya(t,l);A(I8,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),A(P8,function(f){t.get([f,"show"])&&E8[f](this,this.group,this._axisGroup,t)},this),Ns(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){lC(this)},e.type="singleAxis",e}(ii),E8={splitLine:function(r,e,t,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),f=[],h=0,v=n.getTicksCoords({tickModel:i}),c=[],p=[],d=0;d=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=0===i?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){return ZD(t)===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){return ZD(t)===this?this.pointToData(a):null},r}();function ZD(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const B8=V8;var G8={create:function z8(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new B8(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if("singleAxis"===a.get("coordinateSystem")){var n=a.getReferringComponents("singleAxis",Qt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t},dimensions:YD};const F8=G8;var XD=["x","y"],H8=["width","height"],W8=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Zy(l,1-Oh(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&"none"!==h){var v=Vy(i),c=U8[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}MD(a,t,Uy(n),n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Uy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=By(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Oh(o),u=Zy(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=Zy(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(Ny),U8={line:function(r,e,t){return{type:"Line",subPixelOptimize:!0,shape:zy([e,t[0]],[e,t[1]],Oh(r))}},shadow:function(r,e,t){var a=r.getBandWidth();return{type:"Rect",shape:DD([e-a/2,t[0]],[a,t[1]-t[0]],Oh(r))}}};function Oh(r){return r.isHorizontal()?0:1}function Zy(r,e){var t=r.getRect();return[t[XD[e]],t[XD[e]]+t[H8[e]]]}const Y8=W8;var Z8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="single",e}(zt),q8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a,n){var i=Ui(t);r.prototype.init.apply(this,arguments),qD(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),qD(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(mt);function qD(r,e){var a,t=r.cellSize;1===(a=z(t)?t:r.cellSize=[t,t]).length&&(a[1]=a[0]);var n=G([0,1],function(i){return function ek(r,e){return null!=r[zn[e][0]]||null!=r[zn[e][1]]&&null!=r[zn[e][2]]}(e,i)&&(a[i]="auto"),null!=a[i]&&"auto"!==a[i]});Ha(r,e,{type:"box",ignoreSize:n})}const K8=q8;var j8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new _t({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),0===v&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}p(s.getNextNDay(a.end.time,1).formatedDate),u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new De({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f["horizontal"===n?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return W(t)&&t?function QE(r,e,t){return A(e,function(a,n){r=r.replace("{"+n+"}",t?ke(a):a)}),r}(t,a):j(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];"bottom"===i?(l+=o,u=["center","top"]):"left"===i?s-=o:"right"===i?(s+=o,u=["center","top"]):l-=o;var f=0;return("left"===i||"right"===i)&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l="horizontal"!==n?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v="horizontal"===n?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),y=this._formatterLabel(d,{start:a.start.y,end:a.end.y,nameMap:p}),m=new St({z2:30,style:Zt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return"horizontal"===n?(f+=o,a&&(s="center"),"start"===i&&(l="bottom")):(u+=o,a&&(l="middle"),"start"===i&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||W(s))&&(s&&(a=tp(s)||a),s=a.get(["time","monthAbbr"])||[]);var v="start"===u?0:1,c="horizontal"===n?0:1;l="start"===u?-l:l;for(var p="center"===f,d=0;d=n.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var a,t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/Xy)-Math.floor(t[0].time/Xy)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?1-f:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||0===e&&tn.lweek)return null;var i=7*(e-1)-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){"calendar"===n.get("coordinateSystem")&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function KD(r){var e=r.calendarModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}const $8=J8;function jD(r,e){var t;return A(e,function(a){null!=r[a]&&"auto"!==r[a]&&(t=!0)}),t}var QD=["transition","enterFrom","leaveTo"],a7=QD.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Nh(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),r&&e)for(var a=t?QD:a7,n=0;n=0;f--){var h,v,c;if(c=null!=(v=te((h=n[f]).id,null))?o.get(v):null){y=pr(p=c.parent);var p,_={},S=Ku(c,h,p===i?{width:s,height:l}:{width:y.width,height:y.height},null,{hv:h.hv,boundingMode:h.bounding},_);if(!pr(c).isNew&&S){for(var b=h.transition,x={},w=0;w=0)?x[T]=C:c[T]=C}xt(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){Vh(n,pr(n).option,a,t._lastGraphicModel)}),this._elMap=q()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(zt);function qy(r){var t=new(Z(JD,r)?JD[r]:df(r))({});return pr(t).type=r,t}function $D(r,e,t,a){var n=qy(t);return e.add(n),a.set(r,n),pr(n).id=r,pr(n).isNew=!0,n}function Vh(r,e,t,a){r&&r.parent&&("group"===r.type&&r.traverse(function(i){Vh(i,e,t,a)}),Lh(r,e,a),t.removeKey(pr(r).id))}function tL(r,e,t,a){if(!r.isGroup){var n=r;n.cursor=lt(e.cursor,tr.prototype.cursor),n.z=lt(e.z,t||0),n.zlevel=lt(e.zlevel,a||0);var i=e.z2;null!=i&&(n.z2=i||0)}A(yt(e),function(o){var s=e[o];0===o.indexOf("on")&&j(s)&&(r[o]=s)}),r.draggable=e.draggable,null!=e.name&&(r.name=e.name),null!=e.id&&(r.id=e.id)}var eL=["x","y","radius","angle","single"],f7=["cartesian2d","polar","singleAxis"];function on(r){return r+"Axis"}function rL(r){var e=r.ecModel,t={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(on(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(t.infoList.push(l={model:o,axisModels:[]}),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Ky=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),c7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return O(e,r),e.prototype.init=function(t,a,n){var i=aL(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=aL(t);it(this.option,t,!0),it(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){"value"===this._rangePropMode[o]&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=q();this._fillSpecifiedTargetAxis(a)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(eL,function(n){var i=this.getReferringComponents(on(n),hR);if(i.specified){a=!0;var o=new Ky;A(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o="vertical"===a?"y":"x";l(n.findComponents({mainType:o+"Axis"}),o)}function l(u,f){var h=u[0];if(h){var v=new Ky;if(v.add(h.componentIndex),t.set(f,v),i=!1,"x"===f||"y"===f){var c=h.getReferringComponents("grid",Qt).models[0];c&&A(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Qt).models[0]&&v.add(p.componentIndex)})}}}i&&l(n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}}),"single"),i&&A(eL,function(u){if(i){var f=n.findComponents({mainType:on(u),filter:function(v){return"category"===v.get("type",!0)}});if(f[0]){var h=new Ky;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=null!=t[i[0]],l=null!=t[i[1]];s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){null==t&&(t=this.ecModel.getComponent(on(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(on(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(null!=t||null!=a)return this.getAxisProxy(t,a).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i=0}(t)){var a=on(this._dimName),n=t.getReferringComponents(a,Qt).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return $(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var u,t=this._dataExtent,n=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[];Ao(["start","end"],function(v,c){var p=e[v],d=e[v+"Value"];"percent"===i[c]?(null==p&&(p=o[c]),d=n.parse(Dt(p,o,t))):(u=!0,p=Dt(d=null==d?t[c]:n.parse(d),t,o)),l[c]=d,s[c]=p}),nL(l),nL(s);var f=this._minMaxSpan;function h(v,c,p,d,g){var y=g?"Span":"ValueSpan";hi(0,v,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)c[m]=Dt(v[m],p,d,!0),g&&(c[m]=n.parse(c[m]))}return u?h(l,s,t,o,!1):h(s,l,o,t,!0),{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function S7(r,e,t){var a=[1/0,-1/0];Ao(t,function(o){!function EB(r,e,t){e&&A(Zf(e,t),function(a){var n=e.getApproximateExtent(a);n[0]r[1]&&(r[1]=n[1])})}(a,o.getData(),e)});var n=r.getAxisModel(),i=cw(n.axis.scale,n,a).calculate();return[i.min,i.max]}(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&Ao(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if("weakFilter"===i){var h=u.getStore(),v=G(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var p,d,g,y=0;yo[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else Ao(f,function(c){if("empty"===i)l.setData(u=u.map(c,function(d){return function s(l){return l>=o[0]&&l<=o[1]}(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});Ao(f,function(c){u.setApproximateExtent(o,c)})}})}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Ao(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Dt(a[0]+o,a,[0,100],!0):null!=i&&(o=Dt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=hc(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),100!==t[1]&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();const x7=_7;var b7={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(on(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new x7(n,i,s,r),t.push(o.__dzAxisProxy))});var a=q();return A(t,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const w7=b7;var iL=!1;function Qy(r){iL||(iL=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,w7),function T7(r){r.registerAction("dataZoom",function(e,t){A(function v7(r,e){var i,t=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});do{i=!1,r.eachComponent("dataZoom",o)}while(i);function o(f){!n.get(f.uid)&&function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}(f)}return a}(t,e),function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function C7(r){r.registerComponentModel(d7),r.registerComponentView(m7),Qy(r)}var dr=function r(){},oL={};function Mo(r,e){oL[r]=e}function sL(r){return oL[r]}var A7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,n){var i=sL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),it(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(mt);const M7=A7;function lL(r,e){var t=Vn(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),new _t({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1})}var L7=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),t.get("show")){var s=+t.get("itemSize"),l=t.get("feature")||{},u=this._features||(this._features={}),f=[];A(l,function(c,p){f.push(p)}),new ca(this._featureNames||[],f).add(h).update(h).remove(nt(h,null)).execute(),this._featureNames=f,function D7(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Jt(a,i,n);Gn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Ku(r,a,i,n)}(o,t,n),o.add(lL(o.getBoundingRect(),t)),o.eachChild(function(c){var p=c.__title,d=c.ensureState("emphasis"),g=d.textConfig||(d.textConfig={}),y=c.getTextContent(),m=y&&y.states.emphasis;if(m&&!j(m)&&p){var _=m.style||(m.style={}),S=rs(p,St.makeFont(_)),b=c.x+o.x,w=!1;c.y+o.y+s+S.height>n.getHeight()&&(g.position="top",w=!0);var T=w?-5-S.height:s+8;b+S.width/2>n.getWidth()?(g.position=["100%",T],_.align="right"):b-S.width/2<0&&(g.position=[0,T],_.align="left")}})}function h(c,p){var _,d=f[c],g=f[p],y=l[d],m=new Rt(y,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(y.title=i.newTitle),d&&!g){if(function I7(r){return 0===r.indexOf("my")}(d))_={onclick:m.option.onclick,featureName:d};else{var S=sL(d);if(!S)return;_=new S}u[d]=_}else if(!(_=u[g]))return;_.uid=Fi("toolbox-feature"),_.model=m,_.ecModel=a,_.api=n;var b=_ instanceof dr;d||!g?!m.get("show")||b&&_.unusable?b&&_.remove&&_.remove(a,n):(function v(c,p,d){var S,b,g=c.getModel("iconStyle"),y=c.getModel(["emphasis","iconStyle"]),m=p instanceof dr&&p.getIcons?p.getIcons():c.get("icon"),_=c.get("title")||{};W(m)?(S={})[d]=m:S=m,W(_)?(b={})[d]=_:b=_;var x=c.iconPaths={};A(S,function(w,T){var C=eo(w,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(g.getItemStyle()),C.ensureState("emphasis").style=y.getItemStyle();var M=new St({style:{text:b[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});C.setTextContent(M),ro({el:C,componentModel:t,itemName:T,formatterParamsExtra:{title:b[T]}}),C.__title=b[T],C.on("mouseover",function(){var L=y.getItemStyle(),I="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";M.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),C.setTextConfig({position:y.get("textPosition")||I}),M.ignore=!t.get("showTitle"),Wr(this)}).on("mouseout",function(){"emphasis"!==c.get(["iconStatus",T])&&Ur(this),M.hide()}),("emphasis"===c.get(["iconStatus",T])?Wr:Ur)(C),o.add(C),C.on("click",Y(p.onclick,p,a,n,T)),x[T]=C})}(m,_,d),m.setIconStatus=function(x,w){var T=this.option,C=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[x]=w,C[x]&&("emphasis"===w?Wr:Ur)(C[x])},_ instanceof dr&&_.render&&_.render(m,a,n,i)):b&&_.dispose&&_.dispose(a,n)}},e.prototype.updateView=function(t,a,n,i){A(this._features,function(o){o instanceof dr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){A(this._features,function(n){n instanceof dr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(n){n instanceof dr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(zt);const P7=L7;var R7=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===a.getZr().painter.getType(),s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Tt.browser;if(j(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(dr);const E7=R7;var uL="__ec_magicType_stack__",k7=[["line","bar"],["stack"]],O7=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return A(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(fL[n]){var s={series:[]};A(k7,function(h){ut(h,n)>=0&&A(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(h){var p=fL[n](h.subType,h.id,h,i);p&&(Q(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&"cartesian2d"===d.type&&("line"===n||"bar"===n)){var g=d.getAxesByScale("ordinal")[0];if(g){var m=g.dim+"Axis",S=h.getReferringComponents(m,Qt).models[0].componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap="bar"===n}}});var u,f=n;"stack"===n&&(u=it({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(dr),fL={line:function(r,e,t,a){if("bar"===r)return it({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if("line"===r)return it({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===uL;if("line"===r||"bar"===r)return a.setIconStatus("stack",n?"normal":"emphasis"),it({id:e,stack:n?"":uL},a.get(["option","stack"])||{},!0)}};Lr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const N7=O7;var Bh=new Array(60).join("-");function B7(r){var e=[];return A(r,function(t,a){var n=t.categoryAxis,o=t.valueAxis.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join("\t")],f=0;f=0)return!0}(n)){var o=function H7(r){for(var e=r.split(/\n+/g),a=[],n=G(zh(e.shift()).split(Jy),function(l){return{name:l,data:[]}}),i=0;i=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=em[a.brushType](0,i,n);a.__rangeOffset={offset:yL[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(n){var i=this.findTargetInfo(n,t);i&&!0!==i&&A(i.coordSyses,function(o){var s=em[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&!0!==n){a.panelId=n.panelId;var i=em[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?yL[a.brushType](i.values,o.offset,function a9(r,e){var t=_L(r),a=_L(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:pM(n),isTargetByCursor:gM(n,e,a.coordSysModel),getLinearBrushOtherExtent:dM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return!0===n||n&&ut(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=cL(t,e),i=0;ir[1]&&r.reverse(),r}function cL(r,e){return ss(r,e,{includeMainTypes:t9})}var r9={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=q(),o={},s={};!t&&!a&&!n||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var f=[];A(l.coordinateSystem.getCartesians(),function(h,v){(ut(t,h.getAxis("x").model)>=0||ut(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:dL.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:dL.geo})})}},pL=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],dL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Ya(r)),e}},em={lineX:nt(gL,0),lineY:nt(gL,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[tm([n[0],i[0]]),tm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s}),xyMinMax:n}}};function gL(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=tm(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var yL={lineX:nt(mL,0),lineY:nt(mL,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function mL(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function _L(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const rm=e9;var am=A,n9=function oR(r){return"\0_ec_\0"+r}("toolbox-dataZoom_"),i9=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new vy(n.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),function l9(r,e,t,a,n){var i=t._isZoomActive;a&&"takeGlobalCursor"===a.type&&(i="dataZoomSelect"===a.key&&a.dataZoomSelectActive),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var s=new rm(nm(r),e,{include:["grid"]}).makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(!(!i||!s.length)&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()})}(t,a,this,i,n),function s9(r,e){r.setIconStatus("back",function Q7(r){return $y(r).length}(e)>1?"emphasis":"normal")}(t,a)},e.prototype.onclick=function(t,a,n){o9[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(t.isEnd&&a.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new rm(nm(this.model),i,{include:["grid"]}).matchOutputRanges(a,i,function(u,f,h){if("cartesian2d"===h.type){var v=u.brushType;"rect"===v?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),function q7(r,e){var t=$y(r);hL(e,function(a,n){for(var i=t.length-1;i>=0&&!t[i][n];i--);if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}(i,n),this._dispatchZoomAction(n)}function s(u,f,h){var v=f.getAxis(u),c=v.model,p=function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){c.getAxisModel(u,f.componentIndex)&&(v=c)}),v}(u,c,i),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(null!=d.minValueSpan||null!=d.maxValueSpan)&&(h=hi(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}},e.prototype._dispatchZoomAction=function(t){var a=[];am(t,function(n,i){a.push($(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(dr),o9={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function K7(r){var e=$y(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return hL(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i]){a[i]=n;break}}),a}(this.ecModel))}};function nm(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}!function sk(r,e){pe(null==cp.get(r)&&e),cp.set(r,e)}("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(e&&null!=e.get(t)){var a=e.getModel(t),n=[],o=ss(r,nm(a));return am(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),am(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")}),n}function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:n9+u+h};v[f]=h,n.push(v)}});const u9=i9;var h9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(mt);const v9=h9;function SL(r){var e=r.get("confine");return null!=e?!!e:"richText"===r.get("renderMode")}function xL(r){if(Tt.domSupported)for(var e=document.documentElement.style,t=0,a=r.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u="left"===i?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u="top"===i?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),p=e+" solid "+n+"px;";return'
'}(a,n,i)),W(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):"leave"===n&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,a,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(i.from!==this.uid&&!Tt.node&&n.getDom()){var o=DL(i,n);this._ticket="";var s=i.dataByCoordSys,l=function P9(r,e,t){var a=mc(r).queryOptionMap,n=a.keys()[0];if(n&&"series"!==n){var l,o=ls(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(t.getViewOfComponentModel(o).group.traverse(function(u){var f=at(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l))return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var f=A9;f.x=i.x,f.y=i.y,f.update(),at(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=kD(i,a),v=h.point[0],c=h.point[1];null!=v&&null!=c&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(DL(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=l){var u=a.getSeriesByIndex(o);if(u&&"axis"===Rl([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}},e.prototype._tryShow=function(t,a){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s,l;this._lastDataByCoordSys=null,io(n,function(u){return null!=at(u).dataIndex?(s=u,!0):null!=at(u).tooltipConfig?(l=u,!0):void 0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=Y(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Rl([a.tooltipOption],i),l=this._renderMode,u=[],f=ae("section",{blocks:[],noHeader:!0}),h=[],v=new Pp;A(t,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(S&&null!=b){var x=AD(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ae("section",{header:x,noHeader:!Ke(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Ld(S.axis,{value:b}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",Bn(M.color),l);var L=C1(C.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=Rl([C],i).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=W1(f,v,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var y=h.join("richText"===l?"\n\n":"
");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=at(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Rl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(null==g||"item"===g){var y=u.getDataParams(f,h),m=new Pp;y.marker=m.makeTooltipMarker("item",Bn(y.color),c);var _=C1(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?W1(b?B({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=at(a),s=i.tooltipConfig.option||{};W(s)&&(s={content:s,formatter:s});var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=Rl(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),p=Math.random()+"",d=new Pp;this._showOrMove(v,function(){var g=$(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")).color;if(v)if(W(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n;c=v,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(c=xs(y.axisValue,c,g)),c=up(c,n,!0)}else if(j(v)){var _=Y(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){return"axis"===n||z(a)?{color:i||("html"===this._renderMode?"#fff":"none")}:z(a)?void 0:{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),j(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(J(a)){var d=a;d.width=h[0],d.height=h[1];var g=Jt(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(W(a)&&l){var y=function I9(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else y=function D9(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return null!=i&&(r+l+i+2>a?r-=l+i:r+=i),null!=o&&(e+u+o>n?e-=u+o:e+=o),[r,e]}(n,i,o,u,f,v?null:20,c?null:20),n=y[0],i=y[1];v&&(n-=LL(v)?h[0]/2:"right"===v?h[0]:0),c&&(i-=LL(c)?h[1]/2:"bottom"===c?h[1]:0),SL(t)&&(y=function L9(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,[r=Math.max(r,0),e=Math.max(e,0)]}(n,i,o,u,f),n=y[0],i=y[1]),o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],h=(t[l]||{}).dataByAxis||[];(o=o&&u.length===h.length)&&A(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];(o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length)&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Tt.node||!a.getDom()||(Bs(this,"_updatePosition"),this._tooltipContent.dispose(),Gy("itemTooltip",a))},e.type="tooltip",e}(zt);function Rl(r,e,t){var n,a=e.ecModel;t?(n=new Rt(t,a,a),n=new Rt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Rt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(n=new Rt(o,n,a)))}return n}function DL(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function LL(r){return"center"===r||"middle"===r}const R9=M9;var k9=["rect","polygon","keep","clear"];function O9(r,e){var t=Pt(r?r.brush:[]);if(t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(r.toolbox=[n={feature:{}}]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),function N9(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}(s),e&&!s.length&&s.push.apply(s,k9)}}var IL=A;function PL(r){if(r)for(var e in r)if(r.hasOwnProperty(e))return!0}function om(r,e,t){var a={};return IL(e,function(i){var o=a[i]=function n(){var i=function(){};return i.prototype.__hidden=i.prototype,new i}();IL(r[i],function(s,l){if(ce.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ce(u),"opacity"===l&&((u=$(u)).type="colorAlpha",o.__hidden.__alphaForOpacity=new ce(u))}})}),a}function RL(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&PL(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&PL(e[n])?r[n]=$(e[n]):delete r[n]})}var EL={lineX:kL(0),lineY:kL(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Qn(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];return!!(Qn(a,n,i)||Qn(a,n+o,i)||Qn(a,n,i+s)||Qn(a,n+o,i+s)||ht.create(r).contain(l[0],l[1])||Vs(n,i,n+o,i,a)||Vs(n,i,n,i+s,a)||Vs(n+o,i,n+o,i+s,a)||Vs(n,i+s,n+o,i+s,a))||void 0}}};function kL(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a)return El(a[r],i.range)},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]e[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&BL(e)}};function BL(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Y9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){this.ecModel=t,this.api=a,(this._brushController=new vy(a.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){NL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:$(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:$(n),$from:a})},e.type="brush",e}(zt);const Z9=Y9;var q9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return O(e,r),e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&RL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(a){return zL(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=zL(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(mt);function zL(r,e){return it({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Rt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const K9=q9;var j9=["rect","polygon","lineX","lineY","keep","clear"],Q9=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,("keep"===l?"multiple"===o:"clear"===l?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;"clear"===n?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},e.getDefaultOption=function(t){return{show:!0,type:j9.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(dr);const J9=Q9;var tZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return O(e,r),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(mt),eZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=lt(t.get("textBaseline"),t.get("textVerticalAlign")),f=new St({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new St({style:Zt(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Xu(p,"_"+t.get("target"))}),d&&c.on("click",function(){Xu(d,"_"+t.get("subtarget"))}),at(f).eventData=at(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Jt(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||("middle"===(l=t.get("left")||t.get("right"))&&(l="center"),"right"===l?_.x+=_.width:"center"===l&&(_.x+=_.width/2)),u||("center"===(u=t.get("top")||t.get("bottom"))&&(u="middle"),"bottom"===u?_.y+=_.height:"middle"===u&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new _t({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(zt),aZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var o,t=this.option,a=t.data||[],n=t.axisType,i=this._names=[];"category"===n?(o=[],A(a,function(u,f){var v,h=te(ki(u),"");J(u)?(v=$(u)).value=f:v=f,o.push(v),i.push(h)})):o=a,(this._data=new xe([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[n]||"number"}],this)).initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(mt);const GL=aZ;var FL=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="timeline.slider",e.defaultOption=Fa(GL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(GL);Ut(FL,Tp.prototype);const nZ=FL;var iZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="timeline",e}(zt);const oZ=iZ;var sZ=function(r){function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return O(e,r),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(ur);const lZ=sZ;var um=Math.PI,HL=wt(),uZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){return ae("nameValue",{noName:!0,value:l.scale.getLabel({value:u})})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var s,n=t.get(["label","position"]),i=t.get("orient"),o=function hZ(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}(t,a),l={horizontal:"center",vertical:(s=null==n||"auto"===n?"horizontal"===i?o.y+o.height/2=0||"+"===s?"left":"right"},u={horizontal:s>=0||"+"===s?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:um/2},h="vertical"===i?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*um/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,D=h;"left"===b||"bottom"===b?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[D-p,0],D-=g)):(x&&(m=[D-p,0],D-=g),w&&(_=[0,0],C+=g),T&&(S=[D-p,0],D-=g));var M=[C,D];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var s=[1,0,0,1,0,0],l=o.x,u=o.y+o.height;Sr(s,s,[-l,-u]),Ea(s,s,-um/2),Sr(s,s,[l,u]),(o=o.clone()).applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var g,d=t.labelPosOpt;function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}null==d||W(d)?(_(c,h,f,1,g="+"===d?0:1),_(p,v,f,1,1-g)):(_(c,h,f,1,g=d>=0?0:1),p[1]=c[1]+d),n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i)},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=function fZ(r,e){if(e=e||r.get("type"))switch(e){case"category":return new Td({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new fw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new ja}}(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new lZ("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new tt;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new ne({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ne({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=WL(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),za(g);var y=at(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this;if(n.getLabelModel().get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new St({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,h),silent:!1,style:Zt(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(d),a.add(y),za(y),HL(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);function v(c,p,d,g){if(c){var y=xr(lt(i.get(["controlStyle",p+"BtnSize"]),o),o),_=function vZ(r,e,t,a){var n=a.style,i=eo(r.get(["controlStyle",e]),a||{},new ht(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}(i,p+"Icon",[0,-y/2,y,y],{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),za(_)}}v(t.nextBtnPosition,"next",Y(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0)},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this;this._currentPointer=WL(l,l,this._mainGroup,{},this._currentPointer,{onCreate:function(h){h.draggable=!0,h.drift=Y(u._handlePointerDrag,u),h.ondragend=Y(u._handlePointerDragend,u),UL(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){UL(h,u._progressLine,s,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],o=He(this._axis.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var hm={min:nt(Hh,"min"),max:nt(Hh,"max"),average:nt(Hh,"average"),median:nt(Hh,"median")};function kl(r,e){var t=r.getData(),a=r.coordinateSystem;if(e&&!function xZ(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}(e)&&!z(e.coord)&&a){var n=a.dimensions,i=XL(e,t,a,r);if((e=$(e)).type&&hm[e.type]&&i.baseAxis&&i.valueAxis){var o=ut(n,i.baseAxis.dim),s=ut(n,i.valueAxis.dim),l=hm[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],f=0;f<2;f++)hm[u[f]]&&(u[f]=vm(t,t.mapDimension(n[f]),u[f]));e.coord=u}}return e}function XL(r,e,t,a){var n={};return null!=r.valueIndex||null!=r.valueDim?(n.valueDataDim=null!=r.valueIndex?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(function bZ(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function Ol(r,e){return!(r&&r.containData&&e.coord&&!function SZ(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}(e))||r.containData(e.coord)}function qL(r,e){return r?function(t,a,n,i){return Wa(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,a,n,i){return Wa(t.value,e[i])}}function vm(r,e,t){if("average"===t){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}return"median"===t?r.getMedian(e):r.getDataExtent(e)["max"===t?1:0]}var cm=wt(),wZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){this.markerGroupMap=q()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){cm(s).keep=!1}),a.eachSeries(function(s){var l=ln.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!cm(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){cm(t).keep=!0},e.prototype.blurSeries=function(t){var a=this;A(t,function(n){var i=ln.getMarkerModelFromSeries(n,a.type);i&&i.getData().eachItemGraphicEl(function(s){s&&iS(s)})})},e.type="marker",e}(zt);const pm=wZ;function KL(r,e,t){var a=e.coordinateSystem;r.each(function(n){var o,i=r.getItemModel(n),s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var TZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markPoint");o&&(KL(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new ll),h=function CZ(r,e,t){var a;a=r?G(r&&r.dimensions,function(s){return B(B({},e.getData().getDimensionInfo(e.getData().mapDimension(s))||{}),{name:s,ordinalMeta:null})}):[{name:"value",type:"float"}];var n=new xe(a,t),i=G(t.get("data"),nt(kl,e));r&&(i=It(i,nt(Ol,r)));var o=qL(!!r,a);return n.initData(i,null,o),n}(o,t,a);a.setData(h),KL(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(j(p)||j(d)||j(g)||j(y)){var _=a.getRawValue(v),S=a.getDataParams(v);j(p)&&(p=p(_,S)),j(d)&&(d=d(_,S)),j(g)&&(g=g(_,S)),j(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=Fs(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){at(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(pm);const AZ=TZ;var DZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ln);const LZ=DZ;var Wh=wt(),IZ=function(r,e,t,a){var i,n=r.getData();if(z(a))i=a;else{var o=a.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=a.xAxis||null!=a.yAxis){var s=void 0,l=void 0;if(null!=a.yAxis||null!=a.xAxis)s=e.getAxis(null!=a.yAxis?"y":"x"),l=ee(a.yAxis,a.xAxis);else{var u=XL(a,n,e,r);s=u.valueAxis,l=vm(n,Sd(n,u.valueDataDim),o)}var h="x"===s.dim?0:1,v=1-h,c=$(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&Ct(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[kl(r,i[0]),kl(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,it(g[2],g[0]),it(g[2],g[1]),g};function Uh(r){return!isNaN(r)&&!isFinite(r)}function jL(r,e,t,a){var n=1-r,i=a.dimensions[r];return Uh(e[n])&&Uh(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function PZ(r,e){if("cartesian2d"===r.type){var t=e[0].coord,a=e[1].coord;if(t&&a&&(jL(1,t,a,r)||jL(0,t,a,r)))return!0}return Ol(r,e[0])&&Ol(r,e[1])}function dm(r,e,t,a,n){var s,i=a.coordinateSystem,o=r.getItemModel(e),l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var h=r.get((f=i.dimensions)[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(ga(i,"cartesian2d")){var f,c=i.getAxis("x"),p=i.getAxis("y");Uh(r.get((f=i.dimensions)[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):Uh(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}else s=[l,u];r.setItemLayout(e,s)}var RZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Wh(o).from,u=Wh(o).to;l.each(function(f){dm(l,f,!0,i,n),dm(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Yg);this.group.add(f.group);var h=function EZ(r,e,t){var a;a=r?G(r&&r.dimensions,function(u){return B(B({},e.getData().getDimensionInfo(e.getData().mapDimension(u))||{}),{name:u,ordinalMeta:null})}):[{name:"value",type:"float"}];var n=new xe(a,t),i=new xe(a,t),o=new xe([],t),s=G(t.get("data"),nt(IZ,e,r,t));r&&(s=It(s,nt(PZ,r)));var l=qL(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}(o,t,a),v=h.from,c=h.to,p=h.line;Wh(a).from=v,Wh(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");function _(S,b,x){var w=S.getItemModel(b);dm(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();null==T.fill&&(T.fill=Fs(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:lt(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:lt(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:lt(w.get("symbolSize"),g[x?0:1]),symbol:lt(w.get("symbol",!0),d[x?0:1]),style:T})}z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),null==b.stroke&&(b.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),h.line.eachItemGraphicEl(function(S,b){S.traverse(function(x){at(x).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(pm);const kZ=RZ;var NZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ln);const VZ=NZ;var Yh=wt(),BZ=function(r,e,t,a){var n=kl(r,a[0]),i=kl(r,a[1]),o=n.coord,s=i.coord;o[0]=ee(o[0],-1/0),o[1]=ee(o[1],-1/0),s[0]=ee(s[0],1/0),s[1]=ee(s[1],1/0);var l=Ul([{},n,i]);return l.coord=[n.coord,i.coord],l.x0=n.x,l.y0=n.y,l.x1=i.x,l.y1=i.y,l};function Zh(r){return!isNaN(r)&&!isFinite(r)}function QL(r,e,t,a){var n=1-r;return Zh(e[n])&&Zh(t[n])}function zZ(r,e){var t=e.coord[0],a=e.coord[1];return!!(ga(r,"cartesian2d")&&t&&a&&(QL(1,t,a)||QL(0,t,a)))||Ol(r,{coord:t,x:e.x0,y:e.y0})||Ol(r,{coord:a,x:e.x1,y:e.y1})}function JL(r,e,t,a,n){var s,i=a.coordinateSystem,o=r.getItemModel(e),l=H(o.get(t[0]),n.getWidth()),u=H(o.get(t[1]),n.getHeight());if(isNaN(l)||isNaN(u)){if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(t,e));else{var v=[f=r.get(t[0],e),h=r.get(t[1],e)];i.clampData&&i.clampData(v,v),s=i.dataToPoint(v,!0)}if(ga(i,"cartesian2d")){var c=i.getAxis("x"),p=i.getAxis("y"),f=r.get(t[0],e),h=r.get(t[1],e);Zh(f)?s[0]=c.toGlobalCoord(c.getExtent()["x0"===t[0]?0:1]):Zh(h)&&(s[1]=p.toGlobalCoord(p.getExtent()["y0"===t[1]?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}else s=[l,u];return s}var $L=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],GZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=ln.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G($L,function(h){return JL(s,l,h,i,n)});s.setItemLayout(l,u),s.getItemGraphicEl(l).setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new tt});this.group.add(f.group),this.markKeep(f);var h=function FZ(r,e,t){var a,n;if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData();return B(B({},f.getDimensionInfo(f.mapDimension(u))||{}),{name:u,ordinalMeta:null})});n=G(["x0","y0","x1","y1"],function(u,f){return{name:u,type:o[f%2].type}}),a=new xe(n,t)}else a=new xe(n=[{name:"value",type:"float"}],t);var s=G(t.get("data"),nt(BZ,e,r,t));r&&(s=It(s,nt(zZ,r)));var l=r?function(u,f,h,v){return Wa(u.coord[Math.floor(v/2)][v%2],n[v])}:function(u,f,h,v){return Wa(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}(o,t,a);a.setData(h),h.each(function(v){var c=G($L,function(T){return JL(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];He(m),He(_),h.setItemLayout(v,{points:c,allClipped:!!(g[0]>m[1]||g[1]_[1]||y[1]<_[0])});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=Fs(l,"color");x.fill||(x.fill=w,W(x.fill)&&(x.fill=Xo(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(Yh(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new Me({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=Yh(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?xt(p,{shape:{points:d.points}},a,v):p=new Me({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=Yh(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ge(v,ue(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:W(d.fill)?Xo(d.fill,1):"#000"}),he(v,p),Yt(v,null,null,p.get(["emphasis","disabled"])),at(v).dataModel=a}),Yh(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(pm);const HZ=GZ;var YZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;!0===a&&(a=t.selector=["all","inverse"]),z(a)&&A(a,function(i,o){W(i)&&(i={type:i}),a[o]=it(i,function(r,e){return"all"===e?{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var a=!1,n=0;n=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(mt);const gm=YZ;var Lo=nt,ym=A,Xh=tt,ZZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return O(e,r),e.prototype.init=function(){this.group.add(this._contentGroup=new Xh),this.group.add(this._selectorGroup=new Xh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||"auto"===o)&&(o="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=Jt(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=Jt(Q({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lL(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),ym(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(""===d||"\n"===d)){var g=new Xh;return g.newline=!0,void u.add(g)}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style");this._createItem(y,d,p,c,a,t,_,b,S,h).on("click",Lo(tI,d,null,i,v)).on("mouseover",Lo(mm,y.name,null,i,v)).on("mouseout",Lo(_m,y.name,null,i,v)),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),D=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),L=we(D.fill);L&&0===L[3]&&(L[3]=.2,D=B(B({},D),{fill:mr(L,"rgba")})),this._createItem(w,d,p,c,a,t,{},D,M,h).on("click",Lo(tI,null,d,i,v)).on("mouseover",Lo(mm,null,d,i,v)).on("mouseout",Lo(_m,null,d,i,v)),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();ym(t,function(u){var f=u.type,h=new St({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect"})}});s.add(h),ge(h,{normal:a.getModel("selectorLabel"),emphasis:a.getModel(["emphasis","selectorLabel"])},{defaultText:u.title}),za(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h){var v=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(a),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),_=function XZ(r,e,t,a,n,i){function o(p,d){"auto"===p.lineWidth&&(p.lineWidth=d.lineWidth>0?2:0),ym(p,function(g,y){"inherit"===p[y]&&(p[y]=d[y])})}var l=e.getModel("itemStyle").getItemStyle(),u=0===r.lastIndexOf("empty",0)?"fill":"stroke";l.decal=a.decal,"inherit"===l.fill&&(l.fill=a[n]),"inherit"===l.stroke&&(l.stroke=a[u]),"inherit"===l.opacity&&(l.opacity=("fill"===n?a:t).opacity),o(l,a);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(o(h,t),"auto"===l.fill&&(l.fill=a.fill),"auto"===l.stroke&&(l.stroke=a.fill),"auto"===h.stroke&&(h.stroke=a.fill),!i){var v=e.get("inactiveBorderWidth");l.lineWidth="auto"===v?a.lineWidth>0&&l[u]?2:0:l.lineWidth,l.fill=e.get("inactiveColor"),l.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}(f=m||f||"roundRect",i,l,u,v,d),S=new Xh,b=i.getModel("textStyle");if(!j(t.getLegendIcon)||m&&"inherit"!==m){var x="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;S.add(function qZ(r){var e=r.icon||"roundRect",t=Kt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}({itemWidth:c,itemHeight:p,icon:f,iconRotate:x,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}else S.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));var w="left"===s?c+5:-5,T=s,C=o.get("formatter"),D=a;W(C)&&C?D=C.replace("{name}",null!=a?a:""):j(C)&&(D=C(a));var M=i.get("inactiveColor");S.add(new St({style:Zt(b,{text:D,x:w,y:p/2,fill:d?b.getTextColor():M,align:T,verticalAlign:"middle"})}));var L=new _t({shape:S.getBoundingRect(),invisible:!0}),I=i.getModel("tooltip");return I.get("show")&&ro({el:L,componentModel:o,itemName:a,itemTooltipOption:I.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!h,this.getContentGroup().add(S),za(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Gn(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Gn("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=0===d?"width":"height",y=0===d?"height":"width",m=0===d?"y":"x";"end"===s?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(zt);function tI(r,e,t,a){_m(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:null!=r?r:e}),mm(r,e,t,a)}function eI(r){for(var t,e=r.getZr().storage.getDisplayList(),a=0,n=e.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=lt(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[o]-p[o]:y[i]+=p[o]+_),m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new _t({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&xt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=null!=a[f+"DataIndex"],c=n.childOfName(f);c&&(c.setStyle("fill",t.get(v?"pageIconColor":"pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=null!=s?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",W(o)?o.replace("{current}",null==l?"":l+"").replace("{total}",null==u?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Sm[o],l=xm[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)(!(_=S(f[g]))&&m.e>y.s+i||_&&!b(_,y.s))&&(y=m.i>y.i?m:_)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=y.i),++p.pageCount),m=_;for(g=u-1,y=d,m=d,_=null;g>=-1;--g)(!(_=S(f[g]))||!b(m,_.s))&&y.i=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(o,s){var l=o.__legendDataIndex;null==i&&null!=l&&(i=s),l===t&&(a=s)}),null!=a?a:i):0;var a,i},e.type="legend.scroll",e}(rI);const tX=$Z;function rX(r){vt(aI),r.registerComponentModel(JZ),r.registerComponentView(tX),function eX(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;null!=a&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}(r)}var nX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="dataZoom.inside",e.defaultOption=Fa(Pl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Pl);const iX=nX;var bm=wt();function oX(r,e,t){bm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function oI(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function uX(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function fX(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}var cX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return O(e,r),e.prototype.render=function(t,a,n){r.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),oX(n,t,{pan:Y(wm.pan,this),zoom:Y(wm.zoom,this),scrollMove:Y(wm.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){(function sX(r,e){for(var t=bm(r).coordSysRecordMap,a=t.keys(),n=0;n0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hi(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:sI(function(r,e,t,a,n,i){var o=Tm[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:sI(function(r,e,t,a,n,i){return Tm[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t).signal*(r[1]-r[0])*i.scrollDelta})};function sI(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s&&(hi(r(o,s,e,t,a,n),o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1]))return o}}var Tm={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],"x"===i.dim?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),"radiusAxis"===t.mainType?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],"horizontal"===i.orient?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const pX=cX;function lI(r){Qy(r),r.registerComponentModel(iX),r.registerComponentView(pX),function vX(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=bm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){A(rL(i).infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,function lX(r,e){var t={model:e,containsPoint:nt(fX,e),dispatchAction:nt(uX,r),dataZoomInfoMap:null,controller:null},a=t.controller=new pl(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}(t,s.model));(u.dataZoomInfoMap||(u.dataZoomInfoMap=q())).set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var s,o=i.controller,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(s=l.get(u))}if(s){var f=function hX(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),ao(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")}else oI(n,i)})})}(r)}var dX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Fa(Pl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Pl);const gX=dX;var Vl=_t,Bl="horizontal",fI="vertical",SX=["line","bar","candlestick","scatter"],xX={easing:"cubicOut",duration:100,delay:0},bX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return O(e,r),e.prototype.init=function(t,a){this.api=a,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),ao(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show"))return t.noTarget()?(this._clear(),void this.group.removeAll()):((!i||"dataZoom"!==i.type||i.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bs(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new tt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,i=t.get("brushSelect")?7:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Bl?{right:s.width-o.x-o.width,top:s.height-30-7-i,width:o.width,height:30}:{right:7,top:o.y,width:30,height:o.height},u=Ui(t.option);A(["right","top","width","height"],function(h){"ph"===u[h]&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===fI&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n!==Bl||o?n===Bl&&o?{scaleY:l?1:-1,scaleX:-1}:n!==fI||o?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Vl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Vl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=s){var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(s),h=.3*(f[1]-f[0]);f=[f[0]-h,f[1]+h];var _,v=[0,a[1]],p=[[a[0],0],[0,0]],d=[],g=a[0]/(o.count()-1),y=0,m=Math.round(o.count()/a[0]);o.each([s],function(T,C){if(m>0&&C%m)y+=g;else{var D=null==T||isNaN(T)||""===T,M=D?0:Dt(T,f,v,!0);D&&!_&&C?(p.push([p[p.length-1][0],0]),d.push([d[d.length-1][0],0])):!D&&_&&(p.push([y,0]),d.push([y,0])),p.push([y,M]),d.push([y,M]),y+=g,_=D}}),l=this._shadowPolygonPts=p,u=this._shadowPolylinePts=d}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];for(var C,D,M,L,S=this.dataZoomModel,x=0;x<3;x++){var w=(C=void 0,D=void 0,void 0,void 0,C=S.getModel(1===x?"selectedDataBackground":"dataBackground"),D=new tt,M=new Me({shape:{points:l},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new De({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),D.add(M),D.add(L),D);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(!1!==a){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){A(t.getAxisProxy(o,s).getTargetSeriesModels(),function(u){if(!(n||!0!==a&&ut(SX,u.get("type"))<0)){var v,f=i.getComponent(on(o),s).axis,h=function wX(r){return{x:"y",y:"x",radius:"angle",angle:"radius"}[r]}(o),c=u.coordinateSystem;null!=h&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new Vl({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!wf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Kt(S,-1,0,2,2,null,!0);b.attr({cursor:hI(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=H(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),za(b);var T=l.get("handleColor");null!=T&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle");t.add(i[_]=new St({silent:!0,invisible:!0,style:Zt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=H(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new _t({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=.8*p,y=a.moveHandleIcon=Kt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));(c=a.moveZone=new _t({invisible:!0,shape:{y:s[1]-m,height:p+m}})).on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:hI(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Dt(t[0],[0,100],a,!0),Dt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];hi(a,i,o,n.get("zoomLock")?"all":t,null!=s.minSpan?Dt(s.minSpan,l,o,!0):null,null!=s.maxSpan?Dt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=He([Dt(i[0],o,l,!0),Dt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=He(n.slice()),o=this._size;A([0,1],function(c){var d=this._handleHeight;a.handles[c].attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,s=this._updateInterval("all",n[0]-(i[0]+i[1])/2);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){this._brushStart=new ot(t.offsetX,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,a){a.attr("ignore",!0);var n=a.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=He([Dt(n.x,o,s,!0),Dt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ia(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,o=n.brushRect;o||(o=n.brushRect=new Vl({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?xX:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=rL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(jy);function hI(r){return"vertical"===r?"ns-resize":"ew-resize"}const TX=bX;function vI(r){r.registerComponentModel(gX),r.registerComponentView(TX),Qy(r)}var AX={get:function(r,e,t){var a=$((MX[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},MX={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const cI=AX;var pI=ce.mapVisual,DX=ce.eachVisual,LX=z,dI=A,IX=He,PX=Dt,RX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){!a&&RL(this.option,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Y(t,this),this.controllerVisuals=om(this.option.controller,a,t),this.targetVisuals=om(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return null==t||"all"===t?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Pt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var u,i=this.option,o=i.precision,s=this.dataBound,l=i.formatter;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);return W(l)?l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f):j(l)?u?l(t[0],t[1]):l(t):u?t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1]:f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=IX([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(null!=a)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var s=t.getDimensionInfo(n[i]);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});it(i,n),it(o,n);var s=this.isCategory();function l(h){LX(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}l.call(this,i),l.call(this,o),function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},dI(p,function(g,y){if(ce.isValidType(y)){var m=cI.get(y,"inactive",s);null!=m&&(d[y]=m,"color"===y&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol()||"roundRect";dI(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),null==_.symbol&&(_.symbol=v&&$(v)||(s?g:[g])),null==_.symbolSize&&(_.symbolSize=c&&$(c)||(s?m[0]:[m[0],m[0]])),_.symbol=pI(_.symbol,function(x){return"none"===x?g:x});var S=_.symbolSize;if(null!=S){var b=-1/0;DX(S,function(x){x>b&&(b=x)}),_.symbolSize=pI(S,function(x){return PX(x,[0,b],[0,m[0]],!0)})}},this)}.call(this,o)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(mt);const qh=RX;var gI=[20,140],EX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=gI[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=gI[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=He((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=yI(0,0,this.getExtent()),n=yI(0,0,this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/100})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new tt("horizontal"!==a||n?"horizontal"===a&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==a||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();NX([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=ta(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=Mr(n.handleLabelPoints[f],Ya(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(t,"symbolSize"),d=ta(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Mr(f.indicatorLabelPoint,Ya(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x="horizontal"===this._orient;_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||wI(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=function uR(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function YX(r,e,t,a){for(var n=e.targetVisuals[a],i=ce.prepareVisualTypes(n),o={color:Fs(r.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),r.registerAction(HX,WX),A(UX,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(ZX))}function DI(r){r.registerComponentModel(kX),r.registerComponentView(FX),MI(r)}var XX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return O(e,r),e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],qX[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){"categories"===n?(o.mappingMethod="category",o.categories=$(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=$(l),"inRange"!==s&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=ce.listVisualTypes(),i=this.isCategory();function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=cI.get(l,"inRange"===f?"active":"inactive",i)})},this),r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),"single"===n.selectedMode){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=$(t)},e.prototype.getValueState=function(t){var a=ce.findPieceIndex(t,this._pieceList);return null!=a&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){ce.findPieceIndex(l,n)===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(null!=t.value)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var a=[],n=["",""],i=this,s=this._pieceList.slice();if(s.length){var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),(l=s[s.length-1].interval[1])!==1/0&&s.push({interval:[l,1/0]})}else s.push({interval:[-1/0,1/0]});var u=-1/0;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}}function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}},e.type="visualMap.piecewise",e.defaultOption=Fa(qh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(qh),qX={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","\u2265"][a[0]]])},this)}};function LI(r,e){var t=r.inverse;("vertical"===r.orient?!t:t)&&e.reverse()}const KX=XX;var jX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=ee(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(c){var p=c.piece,d=new tt;d.onclick=Y(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new St({style:{x:"right"===l?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:"outOfRange"===y?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),Gn(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Kh(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if("vertical"===a.orient)return SI(t,this.api,t.itemSize);var n=a.align;return(!n||"auto"===n)&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new tt,l=this.visualMapModel.textStyleModel;s.add(new St({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a,font:l.getFont(),fill:l.getTextColor()}})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(Kt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=$(n.selected),o=a.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,A(i,function(s,l){i[l]=l===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(mI);const QX=jX;function II(r){r.registerComponentModel(KX),r.registerComponentView(QX),MI(r)}var $X={label:{enabled:!0},decal:{show:!1}},PI=wt(),tq={};function eq(r,e){var t=r.getModel("aria");if(t.get("enabled")){var a=$($X);it(a.label,r.getLocaleModel().get("aria"),!1),it(t.option,a,!1),function n(){if(t.getModel("decal").get("show")){var h=q();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||h.set(v.type,c={}),PI(v).scope=c}}),r.eachRawSeries(function(v){if(!r.isSeriesFiltered(v))if(j(v.enableAriaDecal))v.enableAriaDecal();else{var c=v.getData();if(v.isColorBySeries()){var m=dp(v.ecModel,v.name,tq,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=PI(v).scope;c.each(function(b){var x=c.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=dp(v.ecModel,w,g,y),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,T))})}}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}(),function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Q(f.option,u),f.get("enabled")){var h=e.getZr().dom;if(f.get("description"))return void h.setAttribute("aria-label",f.get("description"));var g,v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(v,p);if(!(v<1)){var y=function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}();if(y)g=o(f.get(["general","withTitle"]),{title:y});else g=f.get(["general","withoutTitle"]);var _=[];g+=o(f.get(v>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:v}),r.eachSeries(function(T,C){if(C1?["series","multiple",L]:["series","single",L]),{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();I.count()>c?D+=o(f.get(["data","partialData"]),{displayCnt:c}):D+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},nq=function(){function r(e){null==(this._condVal=W(e)?new RegExp(e):Xm(e)?e:null)&&At("")}return r.prototype.evaluate=function(e){var t=typeof e;return W(t)?this._condVal.test(e):!!Ct(t)&&this._condVal.test(e+"")},r}(),iq=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),oq=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&a.push(n),n=[I,P]}function f(I,P,R,E){Po(I,R)&&Po(P,E)||n.push(I,P,R,E,R,E)}for(var v,c,p,d,g=0;gT:M2&&a.push(n),a}function Lm(r,e,t,a,n,i,o,s,l,u){if(Po(r,t)&&Po(e,a)&&Po(n,o)&&Po(i,s))l.push(o,s);else{var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_=0&&S-x*x=0)l.push(o,s);else{var C=[],D=[];Ia(r,t,n,o,.5,C),Ia(e,a,i,s,.5,D),Lm(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],l,u),Lm(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],l,u)}}}}function OI(r,e,t){var i=Math.abs(r[e]/r[1-e]),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);0===s&&(s=1,o=t);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),h=OI([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;c1?null:new ot(d*l+r,d*u+e)}function wq(r,e,t){var a=new ot;ot.sub(a,t,e),a.normalize();var n=new ot;return ot.sub(n,r,e),n.dot(a)}function Ro(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function BI(r){var e=r.points,t=[],a=[];Pu(e,t,a);var n=new ht(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new ot,f=new ot;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),function Tq(r,e,t){for(var a=r.length,n=[],i=0;i0)for(var b=a/t,x=-a/2;x<=a/2;x+=b){var w=Math.sin(x),T=Math.cos(x),C=0;for(_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),0===h&&(1===f&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function $h(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]});return G(i,function(s,l){return{cp:s,z:kq(s[0],s[1],e,t,a,n),path:r[l]}}).sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function UI(r){return function Dq(r,e){var n,t=[],a=r.shape;switch(r.type){case"rect":(function xq(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=OI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1){if(!s)return t;s=0}i=l.length;var u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var Vq={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0){var u,f,s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o);YI(r)&&(u=r,f=e),YI(e)&&(u=e,f=r);for(var v=u?u===r:r.length>e.length,c=u?ZI(f,u):ZI(v?e:r,[v?r:e]),p=0,d=0;d1e4))for(var n=a.getIndices(),i=function zq(r){for(var e=r.dimensions,t=0;t0&&S.group.traverse(function(x){x instanceof pt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function jI(r){return r.getModel("universalTransition").get("seriesKey")||r.id}function QI(r){return z(r)?r.sort().join(","):r}function un(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function JI(r,e){for(var t=0;t=0&&n.push({data:e.oldData[s],divide:un(e.oldData[s]),dim:o.dimension})}),A(Pt(r.to),function(o){var s=JI(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({data:l,divide:un(l),dim:o.dimension})}}),n.length>0&&i.length>0&&KI(n,i,a)}(v,n,a,t)});else{var o=function Hq(r,e){var t=q(),a=q(),n=q();return A(r.oldSeries,function(o,s){var l=r.oldData[s],u=jI(o),f=QI(u);a.set(f,l),z(u)&&A(u,function(h){n.set(h,{data:l,key:f})})}),A(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.getData(),l=jI(o),u=QI(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{divide:un(f),data:f}],newSeries:[{divide:un(s),data:s}]});else if(z(l)){var h=[];A(l,function(p){var d=a.get(p);d&&h.push({divide:un(d),data:d})}),h.length&&t.set(u,{oldSeries:h,newSeries:[{data:s,divide:un(s)}]})}else{var v=n.get(l);if(v){var c=t.get(v.key);c||(c={oldSeries:[{data:v.data,divide:un(v.data)}],newSeries:[]},t.set(v.key,c)),c.newSeries.push({data:s,divide:un(s)})}}}}),t}(n,a);A(o.keys(),function(v){var c=o.get(v);KI(c.oldSeries,c.newSeries,t)})}A(a.updatedSeries,function(v){v[ef]&&(v[ef]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldData=[],f=0;f{a.d(I,{Uk:()=>o,yT:()=>h,_m:()=>e,ip:()=>x,Dr:()=>b,Pu:()=>A,Fg:()=>P,rc:()=>k,O6:()=>D,D4:()=>S,$w:()=>E,Rc:()=>L});var i=a(8760),t=a(7355);const o="\u4f1a\u6309\u7167\u6b64\u9650\u5236\u81ea\u52a8\u5206\u5272\u6587\u4ef6",h="\u8bbe\u7f6e\u540c\u6b65\u5931\u8d25\uff01",e=/^(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?(?:\/(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?)*$/,x="{roomid} - {uname}/blive_{roomid}_{year}-{month}-{day}-{hour}{minute}{second}",b=[{name:"roomid",desc:"\u623f\u95f4\u53f7"},{name:"uname",desc:"\u4e3b\u64ad\u7528\u6237\u540d"},{name:"title",desc:"\u623f\u95f4\u6807\u9898"},{name:"area",desc:"\u76f4\u64ad\u5b50\u5206\u533a\u540d\u79f0"},{name:"parent_area",desc:"\u76f4\u64ad\u4e3b\u5206\u533a\u540d\u79f0"},{name:"year",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5e74\u4efd"},{name:"month",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u6708\u4efd"},{name:"day",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5929\u6570"},{name:"hour",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5c0f\u65f6"},{name:"minute",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5206\u949f"},{name:"second",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u79d2\u6570"}],A=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,21).map(V=>({label:`${V} GB`,value:1024**3*V}))],P=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,25).map(V=>({label:`${V} \u5c0f\u65f6`,value:3600*V}))],k=[{label:"\u81ea\u52a8",value:i.zu.AUTO},{label:"\u4ece\u4e0d",value:i.zu.NEVER}],D=[{label:"4K",value:2e4},{label:"\u539f\u753b",value:1e4},{label:"\u84dd\u5149(\u675c\u6bd4)",value:401},{label:"\u84dd\u5149",value:400},{label:"\u8d85\u6e05",value:250},{label:"\u9ad8\u6e05",value:150},{label:"\u6d41\u7545",value:80}],S=[{label:"3 \u79d2",value:3},{label:"5 \u79d2",value:5},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],E=[{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600},{label:"15 \u5206\u949f",value:900},{label:"20 \u5206\u949f",value:1200},{label:"30 \u5206\u949f",value:1800}],L=[{label:"4 KB",value:4096},{label:"8 KB",value:8192},{label:"16 KB",value:16384},{label:"32 KB",value:32768},{label:"64 KB",value:65536},{label:"128 KB",value:131072},{label:"256 KB",value:262144},{label:"512 KB",value:524288},{label:"1 MB",value:1048576},{label:"2 MB",value:2097152},{label:"4 MB",value:4194304},{label:"8 MB",value:8388608},{label:"16 MB",value:16777216},{label:"32 MB",value:33554432},{label:"64 MB",value:67108864},{label:"128 MB",value:134217728},{label:"256 MB",value:268435456},{label:"512 MB",value:536870912}]},5136:(ae,I,a)=>{a.d(I,{R:()=>e});var i=a(2340),t=a(5e3),o=a(520);const h=i.N.apiUrl;let e=(()=>{class x{constructor(A){this.http=A}getSettings(A=null,P=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=A?A:[],exclude:null!=P?P:[]}})}changeSettings(A){return this.http.patch(h+"/api/v1/settings",A)}getTaskOptions(A){return this.http.get(h+`/api/v1/settings/tasks/${A}`)}changeTaskOptions(A,P){return this.http.patch(h+`/api/v1/settings/tasks/${A}`,P)}}return x.\u0275fac=function(A){return new(A||x)(t.LFG(o.eN))},x.\u0275prov=t.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),x})()},8760:(ae,I,a)=>{a.d(I,{zu:()=>i,gP:()=>t,gq:()=>o,q1:()=>h,_1:()=>e,X:()=>x});var i=(()=>{return(b=i||(i={})).AUTO="auto",b.NEVER="never",i;var b})();const t=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],o=["sendkey"],h=["token","topic"],e=["enabled"],x=["notifyBegan","notifyEnded","notifyError","notifySpace"]},7512:(ae,I,a)=>{a.d(I,{q:()=>P});var i=a(5545),t=a(5e3),o=a(9808),h=a(7525),e=a(1945);function x(k,D){if(1&k&&t._UZ(0,"nz-spin",2),2&k){const S=t.oxw();t.Q6J("nzSize","large")("nzSpinning",S.loading)}}function b(k,D){if(1&k&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&k){const S=t.oxw(2);t.Q6J("ngStyle",S.contentStyles),t.xp6(1),t.Q6J("ngTemplateOutlet",S.content.templateRef)}}function A(k,D){if(1&k&&(t.TgZ(0,"div",3),t._UZ(1,"nz-page-header",4),t.YNc(2,b,2,2,"div",5),t.qZA()),2&k){const S=t.oxw();t.Q6J("ngStyle",S.pageStyles),t.xp6(1),t.Q6J("nzTitle",S.pageTitle)("nzGhost",!1),t.xp6(1),t.Q6J("ngIf",S.content)}}let P=(()=>{class k{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275cmp=t.Xpm({type:k,selectors:[["app-sub-page"]],contentQueries:function(S,E,L){if(1&S&&t.Suo(L,i.Y,5),2&S){let V;t.iGM(V=t.CRH())&&(E.content=V.first)}},inputs:{pageTitle:"pageTitle",loading:"loading",pageStyles:"pageStyles",contentStyles:"contentStyles"},decls:3,vars:2,consts:[["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"spinner",3,"nzSize","nzSpinning"],[1,"sub-page",3,"ngStyle"],["nzBackIcon","",1,"page-header",3,"nzTitle","nzGhost"],["class","page-content",3,"ngStyle",4,"ngIf"],[1,"page-content",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(S,E){if(1&S&&(t.YNc(0,x,1,2,"nz-spin",0),t.YNc(1,A,3,4,"ng-template",null,1,t.W1O)),2&S){const L=t.MAs(2);t.Q6J("ngIf",E.loading)("ngIfElse",L)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),k})()},5545:(ae,I,a)=>{a.d(I,{Y:()=>t});var i=a(5e3);let t=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(i.Y36(i.Rgc))},o.\u0275dir=i.lG2({type:o,selectors:[["","appSubPageContent",""]]}),o})()},2134:(ae,I,a)=>{a.d(I,{e:()=>h});var i=a(6422),t=a(1854),o=a(1999);function h(e,x){return function b(A,P){return(0,i.Z)(A,(k,D,S)=>{const E=Reflect.get(P,S);(0,t.Z)(D,E)||Reflect.set(k,S,(0,o.Z)(D)&&(0,o.Z)(E)?b(D,E):D)})}(e,x)}},2622:(ae,I,a)=>{a.d(I,{Z:()=>M});var o=a(3093);const e=function h(N,C){for(var y=N.length;y--;)if((0,o.Z)(N[y][0],C))return y;return-1};var b=Array.prototype.splice;function w(N){var C=-1,y=null==N?0:N.length;for(this.clear();++C-1},w.prototype.set=function L(N,C){var y=this.__data__,T=e(y,N);return T<0?(++this.size,y.push([N,C])):y[T][1]=C,this};const M=w},9329:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"Map")},3639:(ae,I,a)=>{a.d(I,{Z:()=>ge});const o=(0,a(3858).Z)(Object,"create");var k=Object.prototype.hasOwnProperty;var L=Object.prototype.hasOwnProperty;function y(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}y.prototype.clear=function h(){this.__data__=o?o(null):{},this.size=0},y.prototype.delete=function x(ie){var he=this.has(ie)&&delete this.__data__[ie];return this.size-=he?1:0,he},y.prototype.get=function D(ie){var he=this.__data__;if(o){var $=he[ie];return"__lodash_hash_undefined__"===$?void 0:$}return k.call(he,ie)?he[ie]:void 0},y.prototype.has=function V(ie){var he=this.__data__;return o?void 0!==he[ie]:L.call(he,ie)},y.prototype.set=function N(ie,he){var $=this.__data__;return this.size+=this.has(ie)?0:1,$[ie]=o&&void 0===he?"__lodash_hash_undefined__":he,this};const T=y;var f=a(2622),Z=a(9329);const pe=function J(ie,he){var $=ie.__data__;return function te(ie){var he=typeof ie;return"string"==he||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==ie:null===ie}(he)?$["string"==typeof he?"string":"hash"]:$.map};function q(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}q.prototype.clear=function K(){this.size=0,this.__data__={hash:new T,map:new(Z.Z||f.Z),string:new T}},q.prototype.delete=function me(ie){var he=pe(this,ie).delete(ie);return this.size-=he?1:0,he},q.prototype.get=function be(ie){return pe(this,ie).get(ie)},q.prototype.has=function ce(ie){return pe(this,ie).has(ie)},q.prototype.set=function re(ie,he){var $=pe(this,ie),se=$.size;return $.set(ie,he),this.size+=$.size==se?0:1,this};const ge=q},5343:(ae,I,a)=>{a.d(I,{Z:()=>w});var i=a(2622);var k=a(9329),D=a(3639);function V(M){var N=this.__data__=new i.Z(M);this.size=N.size}V.prototype.clear=function t(){this.__data__=new i.Z,this.size=0},V.prototype.delete=function h(M){var N=this.__data__,C=N.delete(M);return this.size=N.size,C},V.prototype.get=function x(M){return this.__data__.get(M)},V.prototype.has=function A(M){return this.__data__.has(M)},V.prototype.set=function E(M,N){var C=this.__data__;if(C instanceof i.Z){var y=C.__data__;if(!k.Z||y.length<199)return y.push([M,N]),this.size=++C.size,this;C=this.__data__=new D.Z(y)}return C.set(M,N),this.size=C.size,this};const w=V},8492:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=a(5946).Z.Symbol},1630:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=a(5946).Z.Uint8Array},7585:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o,h){for(var e=-1,x=null==o?0:o.length;++e{a.d(I,{Z:()=>D});var o=a(4825),h=a(4177),e=a(5202),x=a(6667),b=a(7583),P=Object.prototype.hasOwnProperty;const D=function k(S,E){var L=(0,h.Z)(S),V=!L&&(0,o.Z)(S),w=!L&&!V&&(0,e.Z)(S),M=!L&&!V&&!w&&(0,b.Z)(S),N=L||V||w||M,C=N?function i(S,E){for(var L=-1,V=Array(S);++L{a.d(I,{Z:()=>t});const t=function i(o,h){for(var e=-1,x=h.length,b=o.length;++e{a.d(I,{Z:()=>x});var i=a(3496),t=a(3093),h=Object.prototype.hasOwnProperty;const x=function e(b,A,P){var k=b[A];(!h.call(b,A)||!(0,t.Z)(k,P)||void 0===P&&!(A in b))&&(0,i.Z)(b,A,P)}},3496:(ae,I,a)=>{a.d(I,{Z:()=>o});var i=a(2370);const o=function t(h,e,x){"__proto__"==e&&i.Z?(0,i.Z)(h,e,{configurable:!0,enumerable:!0,value:x,writable:!0}):h[e]=x}},4792:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(1999),t=Object.create;const h=function(){function e(){}return function(x){if(!(0,i.Z)(x))return{};if(t)return t(x);e.prototype=x;var b=new e;return e.prototype=void 0,b}}()},1149:(ae,I,a)=>{a.d(I,{Z:()=>b});const h=function i(A){return function(P,k,D){for(var S=-1,E=Object(P),L=D(P),V=L.length;V--;){var w=L[A?V:++S];if(!1===k(E[w],w,E))break}return P}}();var e=a(1952);const b=function x(A,P){return A&&h(A,P,e.Z)}},7298:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(3449),t=a(2168);const h=function o(e,x){for(var b=0,A=(x=(0,i.Z)(x,e)).length;null!=e&&b{a.d(I,{Z:()=>h});var i=a(6623),t=a(4177);const h=function o(e,x,b){var A=x(e);return(0,t.Z)(e)?A:(0,i.Z)(A,b(e))}},7079:(ae,I,a)=>{a.d(I,{Z:()=>w});var i=a(8492),t=Object.prototype,o=t.hasOwnProperty,h=t.toString,e=i.Z?i.Z.toStringTag:void 0;var P=Object.prototype.toString;var L=i.Z?i.Z.toStringTag:void 0;const w=function V(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":L&&L in Object(M)?function x(M){var N=o.call(M,e),C=M[e];try{M[e]=void 0;var y=!0}catch(f){}var T=h.call(M);return y&&(N?M[e]=C:delete M[e]),T}(M):function k(M){return P.call(M)}(M)}},771:(ae,I,a)=>{a.d(I,{Z:()=>ft});var i=a(5343),t=a(3639);function A(X){var oe=-1,ye=null==X?0:X.length;for(this.__data__=new t.Z;++oeBe))return!1;var Ze=ue.get(X),Ae=ue.get(oe);if(Ze&&Ae)return Ze==oe&&Ae==X;var Pe=-1,De=!0,Ke=2&ye?new P:void 0;for(ue.set(X,oe),ue.set(oe,X);++Pe{a.d(I,{Z:()=>re});var i=a(5343),t=a(771);var b=a(1999);const P=function A(W){return W==W&&!(0,b.Z)(W)};var k=a(1952);const L=function E(W,q){return function(ge){return null!=ge&&ge[W]===q&&(void 0!==q||W in Object(ge))}},w=function V(W){var q=function D(W){for(var q=(0,k.Z)(W),ge=q.length;ge--;){var ie=q[ge],he=W[ie];q[ge]=[ie,he,P(he)]}return q}(W);return 1==q.length&&q[0][2]?L(q[0][0],q[0][1]):function(ge){return ge===W||function e(W,q,ge,ie){var he=ge.length,$=he,se=!ie;if(null==W)return!$;for(W=Object(W);he--;){var _=ge[he];if(se&&_[2]?_[1]!==W[_[0]]:!(_[0]in W))return!1}for(;++he<$;){var O=(_=ge[he])[0],u=W[O],v=_[1];if(se&&_[2]){if(void 0===u&&!(O in W))return!1}else{var B=new i.Z;if(ie)var le=ie(u,v,O,W,q,B);if(!(void 0===le?(0,t.Z)(v,u,3,ie,B):le))return!1}}return!0}(ge,W,q)}};var M=a(7298);var y=a(5867),T=a(8042),f=a(2168);const te=function Q(W,q){return(0,T.Z)(W)&&P(q)?L((0,f.Z)(W),q):function(ge){var ie=function N(W,q,ge){var ie=null==W?void 0:(0,M.Z)(W,q);return void 0===ie?ge:ie}(ge,W);return void 0===ie&&ie===q?(0,y.Z)(ge,W):(0,t.Z)(q,ie,3)}};var H=a(9940),J=a(4177);const ce=function ne(W){return(0,T.Z)(W)?function pe(W){return function(q){return null==q?void 0:q[W]}}((0,f.Z)(W)):function Ce(W){return function(q){return(0,M.Z)(q,W)}}(W)},re=function Y(W){return"function"==typeof W?W:null==W?H.Z:"object"==typeof W?(0,J.Z)(W)?te(W[0],W[1]):w(W):ce(W)}},4884:(ae,I,a)=>{a.d(I,{Z:()=>A});var i=a(1986);const h=(0,a(5820).Z)(Object.keys,Object);var x=Object.prototype.hasOwnProperty;const A=function b(P){if(!(0,i.Z)(P))return h(P);var k=[];for(var D in Object(P))x.call(P,D)&&"constructor"!=D&&k.push(D);return k}},6932:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o){return function(h){return o(h)}}},3449:(ae,I,a)=>{a.d(I,{Z:()=>te});var i=a(4177),t=a(8042),o=a(3639);function e(H,J){if("function"!=typeof H||null!=J&&"function"!=typeof J)throw new TypeError("Expected a function");var pe=function(){var me=arguments,Ce=J?J.apply(this,me):me[0],be=pe.cache;if(be.has(Ce))return be.get(Ce);var ne=H.apply(this,me);return pe.cache=be.set(Ce,ne)||be,ne};return pe.cache=new(e.Cache||o.Z),pe}e.Cache=o.Z;const x=e;var k=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D=/\\(\\)?/g;const E=function A(H){var J=x(H,function(me){return 500===pe.size&&pe.clear(),me}),pe=J.cache;return J}(function(H){var J=[];return 46===H.charCodeAt(0)&&J.push(""),H.replace(k,function(pe,me,Ce,be){J.push(Ce?be.replace(D,"$1"):me||pe)}),J});var L=a(8492);var M=a(6460),C=L.Z?L.Z.prototype:void 0,y=C?C.toString:void 0;const f=function T(H){if("string"==typeof H)return H;if((0,i.Z)(H))return function V(H,J){for(var pe=-1,me=null==H?0:H.length,Ce=Array(me);++pe{a.d(I,{Z:()=>o});var i=a(3858);const o=function(){try{var h=(0,i.Z)(Object,"defineProperty");return h({},"",{}),h}catch(e){}}()},8346:(ae,I,a)=>{a.d(I,{Z:()=>t});const t="object"==typeof global&&global&&global.Object===Object&&global},8501:(ae,I,a)=>{a.d(I,{Z:()=>e});var i=a(8203),t=a(3976),o=a(1952);const e=function h(x){return(0,i.Z)(x,o.Z,t.Z)}},3858:(ae,I,a)=>{a.d(I,{Z:()=>f});var Z,i=a(2089),o=a(5946).Z["__core-js_shared__"],e=(Z=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var A=a(1999),P=a(4407),D=/^\[object .+?Constructor\]$/,w=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function M(Z){return!(!(0,A.Z)(Z)||function x(Z){return!!e&&e in Z}(Z))&&((0,i.Z)(Z)?w:D).test((0,P.Z)(Z))},f=function T(Z,K){var Q=function C(Z,K){return null==Z?void 0:Z[K]}(Z,K);return N(Q)?Q:void 0}},5650:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=(0,a(5820).Z)(Object.getPrototypeOf,Object)},3976:(ae,I,a)=>{a.d(I,{Z:()=>A});var o=a(3419),e=Object.prototype.propertyIsEnumerable,x=Object.getOwnPropertySymbols;const A=x?function(P){return null==P?[]:(P=Object(P),function i(P,k){for(var D=-1,S=null==P?0:P.length,E=0,L=[];++D{a.d(I,{Z:()=>te});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"DataView");var e=a(9329);const b=(0,i.Z)(t.Z,"Promise"),P=(0,i.Z)(t.Z,"Set"),D=(0,i.Z)(t.Z,"WeakMap");var S=a(7079),E=a(4407),L="[object Map]",w="[object Promise]",M="[object Set]",N="[object WeakMap]",C="[object DataView]",y=(0,E.Z)(h),T=(0,E.Z)(e.Z),f=(0,E.Z)(b),Z=(0,E.Z)(P),K=(0,E.Z)(D),Q=S.Z;(h&&Q(new h(new ArrayBuffer(1)))!=C||e.Z&&Q(new e.Z)!=L||b&&Q(b.resolve())!=w||P&&Q(new P)!=M||D&&Q(new D)!=N)&&(Q=function(H){var J=(0,S.Z)(H),pe="[object Object]"==J?H.constructor:void 0,me=pe?(0,E.Z)(pe):"";if(me)switch(me){case y:return C;case T:return L;case f:return w;case Z:return M;case K:return N}return J});const te=Q},6667:(ae,I,a)=>{a.d(I,{Z:()=>h});var t=/^(?:0|[1-9]\d*)$/;const h=function o(e,x){var b=typeof e;return!!(x=null==x?9007199254740991:x)&&("number"==b||"symbol"!=b&&t.test(e))&&e>-1&&e%1==0&&e{a.d(I,{Z:()=>x});var i=a(4177),t=a(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const x=function e(b,A){if((0,i.Z)(b))return!1;var P=typeof b;return!("number"!=P&&"symbol"!=P&&"boolean"!=P&&null!=b&&!(0,t.Z)(b))||h.test(b)||!o.test(b)||null!=A&&b in Object(A)}},1986:(ae,I,a)=>{a.d(I,{Z:()=>o});var i=Object.prototype;const o=function t(h){var e=h&&h.constructor;return h===("function"==typeof e&&e.prototype||i)}},6594:(ae,I,a)=>{a.d(I,{Z:()=>b});var i=a(8346),t="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=t&&"object"==typeof module&&module&&!module.nodeType&&module,e=o&&o.exports===t&&i.Z.process;const b=function(){try{return o&&o.require&&o.require("util").types||e&&e.binding&&e.binding("util")}catch(P){}}()},5820:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o,h){return function(e){return o(h(e))}}},5946:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(8346),t="object"==typeof self&&self&&self.Object===Object&&self;const h=i.Z||t||Function("return this")()},2168:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(6460);const h=function o(e){if("string"==typeof e||(0,i.Z)(e))return e;var x=e+"";return"0"==x&&1/e==-1/0?"-0":x}},4407:(ae,I,a)=>{a.d(I,{Z:()=>h});var t=Function.prototype.toString;const h=function o(e){if(null!=e){try{return t.call(e)}catch(x){}try{return e+""}catch(x){}}return""}},3523:(ae,I,a)=>{a.d(I,{Z:()=>_n});var i=a(5343),t=a(7585),o=a(1481),h=a(3496);const x=function e(U,fe,xe,Je){var zt=!xe;xe||(xe={});for(var ct=-1,qe=fe.length;++ct{a.d(I,{Z:()=>t});const t=function i(o,h){return o===h||o!=o&&h!=h}},5867:(ae,I,a)=>{a.d(I,{Z:()=>S});const t=function i(E,L){return null!=E&&L in Object(E)};var o=a(3449),h=a(4825),e=a(4177),x=a(6667),b=a(8696),A=a(2168);const S=function D(E,L){return null!=E&&function P(E,L,V){for(var w=-1,M=(L=(0,o.Z)(L,E)).length,N=!1;++w{a.d(I,{Z:()=>t});const t=function i(o){return o}},4825:(ae,I,a)=>{a.d(I,{Z:()=>k});var i=a(7079),t=a(214);const e=function h(D){return(0,t.Z)(D)&&"[object Arguments]"==(0,i.Z)(D)};var x=Object.prototype,b=x.hasOwnProperty,A=x.propertyIsEnumerable;const k=e(function(){return arguments}())?e:function(D){return(0,t.Z)(D)&&b.call(D,"callee")&&!A.call(D,"callee")}},4177:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=Array.isArray},8706:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(2089),t=a(8696);const h=function o(e){return null!=e&&(0,t.Z)(e.length)&&!(0,i.Z)(e)}},5202:(ae,I,a)=>{a.d(I,{Z:()=>k});var i=a(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,b=e&&e.exports===h?i.Z.Buffer:void 0;const k=(b?b.isBuffer:void 0)||function t(){return!1}},1854:(ae,I,a)=>{a.d(I,{Z:()=>o});var i=a(771);const o=function t(h,e){return(0,i.Z)(h,e)}},2089:(ae,I,a)=>{a.d(I,{Z:()=>A});var i=a(7079),t=a(1999);const A=function b(P){if(!(0,t.Z)(P))return!1;var k=(0,i.Z)(P);return"[object Function]"==k||"[object GeneratorFunction]"==k||"[object AsyncFunction]"==k||"[object Proxy]"==k}},8696:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=function t(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991}},1999:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o){var h=typeof o;return null!=o&&("object"==h||"function"==h)}},214:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o){return null!=o&&"object"==typeof o}},6460:(ae,I,a)=>{a.d(I,{Z:()=>e});var i=a(7079),t=a(214);const e=function h(x){return"symbol"==typeof x||(0,t.Z)(x)&&"[object Symbol]"==(0,i.Z)(x)}},7583:(ae,I,a)=>{a.d(I,{Z:()=>Y});var i=a(7079),t=a(8696),o=a(214),J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Arguments]"]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object Boolean]"]=J["[object DataView]"]=J["[object Date]"]=J["[object Error]"]=J["[object Function]"]=J["[object Map]"]=J["[object Number]"]=J["[object Object]"]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object WeakMap]"]=!1;var Ce=a(6932),be=a(6594),ne=be.Z&&be.Z.isTypedArray;const Y=ne?(0,Ce.Z)(ne):function pe(re){return(0,o.Z)(re)&&(0,t.Z)(re.length)&&!!J[(0,i.Z)(re)]}},1952:(ae,I,a)=>{a.d(I,{Z:()=>e});var i=a(3487),t=a(4884),o=a(8706);const e=function h(x){return(0,o.Z)(x)?(0,i.Z)(x):(0,t.Z)(x)}},7355:(ae,I,a)=>{a.d(I,{Z:()=>be});var i=Math.ceil,t=Math.max;var e=a(3093),x=a(8706),b=a(6667),A=a(1999);var D=/\s/;var L=/^\s+/;const w=function V(ne){return ne&&ne.slice(0,function S(ne){for(var ce=ne.length;ce--&&D.test(ne.charAt(ce)););return ce}(ne)+1).replace(L,"")};var M=a(6460),C=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,T=/^0o[0-7]+$/i,f=parseInt;var Q=1/0;const J=function H(ne){return ne?(ne=function Z(ne){if("number"==typeof ne)return ne;if((0,M.Z)(ne))return NaN;if((0,A.Z)(ne)){var ce="function"==typeof ne.valueOf?ne.valueOf():ne;ne=(0,A.Z)(ce)?ce+"":ce}if("string"!=typeof ne)return 0===ne?ne:+ne;ne=w(ne);var Y=y.test(ne);return Y||T.test(ne)?f(ne.slice(2),Y?2:8):C.test(ne)?NaN:+ne}(ne))===Q||ne===-Q?17976931348623157e292*(ne<0?-1:1):ne==ne?ne:0:0===ne?ne:0},be=function pe(ne){return function(ce,Y,re){return re&&"number"!=typeof re&&function P(ne,ce,Y){if(!(0,A.Z)(Y))return!1;var re=typeof ce;return!!("number"==re?(0,x.Z)(Y)&&(0,b.Z)(ce,Y.length):"string"==re&&ce in Y)&&(0,e.Z)(Y[ce],ne)}(ce,Y,re)&&(Y=re=void 0),ce=J(ce),void 0===Y?(Y=ce,ce=0):Y=J(Y),function o(ne,ce,Y,re){for(var W=-1,q=t(i((ce-ne)/(Y||1)),0),ge=Array(q);q--;)ge[re?q:++W]=ne,ne+=Y;return ge}(ce,Y,re=void 0===re?ce{a.d(I,{Z:()=>t});const t=function i(){return[]}},6422:(ae,I,a)=>{a.d(I,{Z:()=>S});var i=a(7585),t=a(4792),o=a(1149),h=a(7242),e=a(5650),x=a(4177),b=a(5202),A=a(2089),P=a(1999),k=a(7583);const S=function D(E,L,V){var w=(0,x.Z)(E),M=w||(0,b.Z)(E)||(0,k.Z)(E);if(L=(0,h.Z)(L,4),null==V){var N=E&&E.constructor;V=M?w?new N:[]:(0,P.Z)(E)&&(0,A.Z)(N)?(0,t.Z)((0,e.Z)(E)):{}}return(M?i.Z:o.Z)(E,function(C,y,T){return L(V,C,y,T)}),V}},6699:(ae,I,a)=>{a.d(I,{Dz:()=>V,Rt:()=>M});var i=a(655),t=a(5e3),o=a(9439),h=a(1721),e=a(925),x=a(9808),b=a(647),A=a(226);const P=["textEl"];function k(N,C){if(1&N&&t._UZ(0,"i",3),2&N){const y=t.oxw();t.Q6J("nzType",y.nzIcon)}}function D(N,C){if(1&N){const y=t.EpF();t.TgZ(0,"img",4),t.NdJ("error",function(f){return t.CHM(y),t.oxw().imgError(f)}),t.qZA()}if(2&N){const y=t.oxw();t.Q6J("src",y.nzSrc,t.LSH),t.uIk("srcset",y.nzSrcSet,t.LSH)("alt",y.nzAlt)}}function S(N,C){if(1&N&&(t.TgZ(0,"span",5,6),t._uU(2),t.qZA()),2&N){const y=t.oxw();t.Q6J("ngStyle",y.textStyles),t.xp6(2),t.Oqu(y.nzText)}}let V=(()=>{class N{constructor(y,T,f,Z){this.nzConfigService=y,this.elementRef=T,this.cdr=f,this.platform=Z,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new t.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(y){this.nzError.emit(y),y.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const y=this.textEl.nativeElement.offsetWidth,T=this.el.getBoundingClientRect().width,f=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return N.\u0275fac=function(y){return new(y||N)(t.Y36(o.jY),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(e.t4))},N.\u0275cmp=t.Xpm({type:N,selectors:[["nz-avatar"]],viewQuery:function(y,T){if(1&y&&t.Gf(P,5),2&y){let f;t.iGM(f=t.CRH())&&(T.textEl=f.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(y,T){2&y&&(t.Udp("width",T.customSize)("height",T.customSize)("line-height",T.customSize)("font-size",T.hasIcon&&T.customSize?T.nzSize/2:null,"px"),t.ekj("ant-avatar-lg","large"===T.nzSize)("ant-avatar-sm","small"===T.nzSize)("ant-avatar-square","square"===T.nzShape)("ant-avatar-circle","circle"===T.nzShape)("ant-avatar-icon",T.nzIcon)("ant-avatar-image",T.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[t.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(y,T){1&y&&(t.YNc(0,k,1,1,"i",0),t.YNc(1,D,1,3,"img",1),t.YNc(2,S,3,2,"span",2)),2&y&&(t.Q6J("ngIf",T.nzIcon&&T.hasIcon),t.xp6(1),t.Q6J("ngIf",T.nzSrc&&T.hasSrc),t.xp6(1),t.Q6J("ngIf",T.nzText&&T.hasText))},directives:[x.O5,b.Ls,x.PC],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.oS)()],N.prototype,"nzShape",void 0),(0,i.gn)([(0,o.oS)()],N.prototype,"nzSize",void 0),(0,i.gn)([(0,o.oS)(),(0,h.Rn)()],N.prototype,"nzGap",void 0),N})(),M=(()=>{class N{}return N.\u0275fac=function(y){return new(y||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[[A.vT,x.ez,b.PV,e.ud]]}),N})()},6042:(ae,I,a)=>{a.d(I,{ix:()=>C,fY:()=>y,sL:()=>T});var i=a(655),t=a(5e3),o=a(8929),h=a(3753),e=a(7625),x=a(1059),b=a(2198),A=a(9439),P=a(1721),k=a(647),D=a(226),S=a(9808),E=a(2683),L=a(2643);const V=["nz-button",""];function w(f,Z){1&f&&t._UZ(0,"i",1)}const M=["*"],N="button";let C=(()=>{class f{constructor(K,Q,te,H,J,pe){this.ngZone=K,this.elementRef=Q,this.cdr=te,this.renderer=H,this.nzConfigService=J,this.directionality=pe,this._nzModuleName=N,this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ,this.loading$=new o.xQ,this.nzConfigService.getConfigChangeEventForComponent(N).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(K,Q){K.forEach(te=>{if("#text"===te.nodeName){const H=Q.createElement("span"),J=Q.parentNode(te);Q.insertBefore(J,H,te),Q.appendChild(H,te)}})}assertIconOnly(K,Q){const te=Array.from(K.childNodes),H=te.filter(Ce=>"I"===Ce.nodeName).length,J=te.every(Ce=>"#text"!==Ce.nodeName);te.every(Ce=>"SPAN"!==Ce.nodeName)&&J&&H>=1&&Q.addClass(K,"ant-btn-icon-only")}ngOnInit(){var K;null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.elementRef.nativeElement,"click").pipe((0,e.R)(this.destroy$)).subscribe(Q=>{var te;this.disabled&&"A"===(null===(te=Q.target)||void 0===te?void 0:te.tagName)&&(Q.preventDefault(),Q.stopImmediatePropagation())})})}ngOnChanges(K){const{nzLoading:Q}=K;Q&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,x.O)(this.nzLoading),(0,b.h)(()=>!!this.nzIconDirectiveElement),(0,e.R)(this.destroy$)).subscribe(K=>{const Q=this.nzIconDirectiveElement.nativeElement;K?this.renderer.setStyle(Q,"display","none"):this.renderer.removeStyle(Q,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(A.jY),t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(K,Q,te){if(1&K&&t.Suo(te,k.Ls,5,t.SBq),2&K){let H;t.iGM(H=t.CRH())&&(Q.nzIconDirectiveElement=H.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(K,Q){2&K&&(t.uIk("tabindex",Q.disabled?-1:null===Q.tabIndex?null:Q.tabIndex)("disabled",Q.disabled||null),t.ekj("ant-btn-primary","primary"===Q.nzType)("ant-btn-dashed","dashed"===Q.nzType)("ant-btn-link","link"===Q.nzType)("ant-btn-text","text"===Q.nzType)("ant-btn-circle","circle"===Q.nzShape)("ant-btn-round","round"===Q.nzShape)("ant-btn-lg","large"===Q.nzSize)("ant-btn-sm","small"===Q.nzSize)("ant-btn-dangerous",Q.nzDanger)("ant-btn-loading",Q.nzLoading)("ant-btn-background-ghost",Q.nzGhost)("ant-btn-block",Q.nzBlock)("ant-input-search-button",Q.nzSearch)("ant-btn-rtl","rtl"===Q.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[t.TTD],attrs:V,ngContentSelectors:M,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(K,Q){1&K&&(t.F$t(),t.YNc(0,w,1,0,"i",0),t.Hsn(1)),2&K&&t.Q6J("ngIf",Q.nzLoading)},directives:[S.O5,k.Ls,E.w],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,P.yF)()],f.prototype,"nzBlock",void 0),(0,i.gn)([(0,P.yF)()],f.prototype,"nzGhost",void 0),(0,i.gn)([(0,P.yF)()],f.prototype,"nzSearch",void 0),(0,i.gn)([(0,P.yF)()],f.prototype,"nzLoading",void 0),(0,i.gn)([(0,P.yF)()],f.prototype,"nzDanger",void 0),(0,i.gn)([(0,P.yF)()],f.prototype,"disabled",void 0),(0,i.gn)([(0,A.oS)()],f.prototype,"nzSize",void 0),f})(),y=(()=>{class f{constructor(K){this.directionality=K,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ}ngOnInit(){var K;this.dir=this.directionality.value,null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(K,Q){2&K&&t.ekj("ant-btn-group-lg","large"===Q.nzSize)("ant-btn-group-sm","small"===Q.nzSize)("ant-btn-group-rtl","rtl"===Q.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:M,decls:1,vars:0,template:function(K,Q){1&K&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),T=(()=>{class f{}return f.\u0275fac=function(K){return new(K||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[D.vT,S.ez,L.vG,k.PV,E.a],E.a,L.vG]}),f})()},7484:(ae,I,a)=>{a.d(I,{bd:()=>ge,l7:()=>ie,vh:()=>he});var i=a(655),t=a(5e3),o=a(1721),h=a(8929),e=a(7625),x=a(9439),b=a(226),A=a(9808),P=a(969);function k($,se){1&$&&t.Hsn(0)}const D=["*"];function S($,se){1&$&&(t.TgZ(0,"div",4),t._UZ(1,"div",5),t.qZA()),2&$&&t.Q6J("ngClass",se.$implicit)}function E($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,S,2,1,"div",3),t.qZA()),2&$){const _=se.$implicit;t.xp6(1),t.Q6J("ngForOf",_)}}function L($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function V($,se){if(1&$&&(t.TgZ(0,"div",11),t.YNc(1,L,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function w($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzExtra)}}function M($,se){if(1&$&&(t.TgZ(0,"div",13),t.YNc(1,w,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function N($,se){}function C($,se){if(1&$&&(t.ynx(0),t.YNc(1,N,0,0,"ng-template",14),t.BQk()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function y($,se){if(1&$&&(t.TgZ(0,"div",6),t.TgZ(1,"div",7),t.YNc(2,V,2,1,"div",8),t.YNc(3,M,2,1,"div",9),t.qZA(),t.YNc(4,C,2,1,"ng-container",10),t.qZA()),2&$){const _=t.oxw();t.xp6(2),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzExtra),t.xp6(1),t.Q6J("ngIf",_.listOfNzCardTabComponent)}}function T($,se){}function f($,se){if(1&$&&(t.TgZ(0,"div",15),t.YNc(1,T,0,0,"ng-template",14),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzCover)}}function Z($,se){1&$&&(t.ynx(0),t.Hsn(1),t.BQk())}function K($,se){1&$&&t._UZ(0,"nz-card-loading")}function Q($,se){}function te($,se){if(1&$&&(t.TgZ(0,"li"),t.TgZ(1,"span"),t.YNc(2,Q,0,0,"ng-template",14),t.qZA(),t.qZA()),2&$){const _=se.$implicit,O=t.oxw(2);t.Udp("width",100/O.nzActions.length,"%"),t.xp6(2),t.Q6J("ngTemplateOutlet",_)}}function H($,se){if(1&$&&(t.TgZ(0,"ul",16),t.YNc(1,te,3,3,"li",17),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngForOf",_.nzActions)}}function J($,se){}function pe($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,J,0,0,"ng-template",3),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzAvatar)}}function me($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function Ce($,se){if(1&$&&(t.TgZ(0,"div",7),t.YNc(1,me,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function be($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzDescription)}}function ne($,se){if(1&$&&(t.TgZ(0,"div",9),t.YNc(1,be,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzDescription)}}function ce($,se){if(1&$&&(t.TgZ(0,"div",4),t.YNc(1,Ce,2,1,"div",5),t.YNc(2,ne,2,1,"div",6),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzDescription)}}let Y=(()=>{class ${constructor(){this.nzHoverable=!0}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275dir=t.lG2({type:$,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,O){2&_&&t.ekj("ant-card-hoverable",O.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,i.gn)([(0,o.yF)()],$.prototype,"nzHoverable",void 0),$})(),re=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-tab"]],viewQuery:function(_,O){if(1&_&&t.Gf(t.Rgc,7),2&_){let u;t.iGM(u=t.CRH())&&(O.template=u.first)}},exportAs:["nzCardTab"],ngContentSelectors:D,decls:1,vars:0,template:function(_,O){1&_&&(t.F$t(),t.YNc(0,k,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),$})(),W=(()=>{class ${constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,O){1&_&&(t.TgZ(0,"div",0),t.YNc(1,E,2,1,"div",1),t.qZA()),2&_&&(t.xp6(1),t.Q6J("ngForOf",O.listOfLoading))},directives:[A.sg,A.mk],encapsulation:2,changeDetection:0}),$})();const q="card";let ge=(()=>{class ${constructor(_,O,u){this.nzConfigService=_,this.cdr=O,this.directionality=u,this._nzModuleName=q,this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new h.xQ,this.nzConfigService.getConfigChangeEventForComponent(q).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,e.R)(this.destroy$)).subscribe(O=>{this.dir=O,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return $.\u0275fac=function(_){return new(_||$)(t.Y36(x.jY),t.Y36(t.sBO),t.Y36(b.Is,8))},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card"]],contentQueries:function(_,O,u){if(1&_&&(t.Suo(u,re,5),t.Suo(u,Y,4)),2&_){let v;t.iGM(v=t.CRH())&&(O.listOfNzCardTabComponent=v.first),t.iGM(v=t.CRH())&&(O.listOfNzCardGridDirective=v)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,O){2&_&&t.ekj("ant-card-loading",O.nzLoading)("ant-card-bordered",!1===O.nzBorderless&&O.nzBordered)("ant-card-hoverable",O.nzHoverable)("ant-card-small","small"===O.nzSize)("ant-card-contain-grid",O.listOfNzCardGridDirective&&O.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===O.nzType)("ant-card-contain-tabs",!!O.listOfNzCardTabComponent)("ant-card-rtl","rtl"===O.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:D,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,O){if(1&_&&(t.F$t(),t.YNc(0,y,5,3,"div",0),t.YNc(1,f,2,1,"div",1),t.TgZ(2,"div",2),t.YNc(3,Z,2,0,"ng-container",3),t.YNc(4,K,1,0,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,H,2,1,"ul",5)),2&_){const u=t.MAs(5);t.Q6J("ngIf",O.nzTitle||O.nzExtra||O.listOfNzCardTabComponent),t.xp6(1),t.Q6J("ngIf",O.nzCover),t.xp6(1),t.Q6J("ngStyle",O.nzBodyStyle),t.xp6(1),t.Q6J("ngIf",!O.nzLoading)("ngIfElse",u),t.xp6(3),t.Q6J("ngIf",O.nzActions.length)}},directives:[W,A.O5,P.f,A.tP,A.PC,A.sg],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,x.oS)(),(0,o.yF)()],$.prototype,"nzBordered",void 0),(0,i.gn)([(0,x.oS)(),(0,o.yF)()],$.prototype,"nzBorderless",void 0),(0,i.gn)([(0,o.yF)()],$.prototype,"nzLoading",void 0),(0,i.gn)([(0,x.oS)(),(0,o.yF)()],$.prototype,"nzHoverable",void 0),(0,i.gn)([(0,x.oS)()],$.prototype,"nzSize",void 0),$})(),ie=(()=>{class ${constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(_,O){1&_&&(t.YNc(0,pe,2,1,"div",0),t.YNc(1,ce,3,2,"div",1)),2&_&&(t.Q6J("ngIf",O.nzAvatar),t.xp6(1),t.Q6J("ngIf",O.nzTitle||O.nzDescription))},directives:[A.O5,A.tP,P.f],encapsulation:2,changeDetection:0}),$})(),he=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[A.ez,P.T],b.vT]}),$})()},6114:(ae,I,a)=>{a.d(I,{Ie:()=>w,Wr:()=>N});var i=a(655),t=a(5e3),o=a(4182),h=a(8929),e=a(3753),x=a(7625),b=a(1721),A=a(5664),P=a(226),k=a(9808);const D=["*"],S=["inputElement"],E=["nz-checkbox",""];let V=(()=>{class C{constructor(T,f){this.nzOnChange=new t.vpe,this.checkboxList=[],T.addClass(f.nativeElement,"ant-checkbox-group")}addCheckbox(T){this.checkboxList.push(T)}removeCheckbox(T){this.checkboxList.splice(this.checkboxList.indexOf(T),1)}onChange(){const T=this.checkboxList.filter(f=>f.nzChecked).map(f=>f.nzValue);this.nzOnChange.emit(T)}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.Qsj),t.Y36(t.SBq))},C.\u0275cmp=t.Xpm({type:C,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:D,decls:1,vars:0,template:function(T,f){1&T&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),w=(()=>{class C{constructor(T,f,Z,K,Q,te){this.ngZone=T,this.elementRef=f,this.nzCheckboxWrapperComponent=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.dir="ltr",this.destroy$=new h.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(T){this.nzDisabled||(this.nzChecked=T,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(T){this.nzChecked=T,this.cdr.markForCheck()}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.nzDisabled=T,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,x.R)(this.destroy$)).subscribe(T=>{T||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,x.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,x.R)(this.destroy$)).subscribe(T=>{T.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,x.R)(this.destroy$)).subscribe(T=>T.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(V,8),t.Y36(t.sBO),t.Y36(A.tE),t.Y36(P.Is,8))},C.\u0275cmp=t.Xpm({type:C,selectors:[["","nz-checkbox",""]],viewQuery:function(T,f){if(1&T&&t.Gf(S,7),2&T){let Z;t.iGM(Z=t.CRH())&&(f.inputElement=Z.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(T,f){2&T&&t.ekj("ant-checkbox-wrapper-checked",f.nzChecked)("ant-checkbox-rtl","rtl"===f.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[t._Bn([{provide:o.JU,useExisting:(0,t.Gpc)(()=>C),multi:!0}])],attrs:E,ngContentSelectors:D,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(T,f){1&T&&(t.F$t(),t.TgZ(0,"span",0),t.TgZ(1,"input",1,2),t.NdJ("ngModelChange",function(K){return f.innerCheckedChange(K)}),t.qZA(),t._UZ(3,"span",3),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&T&&(t.ekj("ant-checkbox-checked",f.nzChecked&&!f.nzIndeterminate)("ant-checkbox-disabled",f.nzDisabled)("ant-checkbox-indeterminate",f.nzIndeterminate),t.xp6(1),t.Q6J("checked",f.nzChecked)("ngModel",f.nzChecked)("disabled",f.nzDisabled),t.uIk("autofocus",f.nzAutoFocus?"autofocus":null)("id",f.nzId))},directives:[o.Wl,o.JJ,o.On],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,b.yF)()],C.prototype,"nzAutoFocus",void 0),(0,i.gn)([(0,b.yF)()],C.prototype,"nzDisabled",void 0),(0,i.gn)([(0,b.yF)()],C.prototype,"nzIndeterminate",void 0),(0,i.gn)([(0,b.yF)()],C.prototype,"nzChecked",void 0),C})(),N=(()=>{class C{}return C.\u0275fac=function(T){return new(T||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[P.vT,k.ez,o.u5,A.rt]]}),C})()},2683:(ae,I,a)=>{a.d(I,{w:()=>o,a:()=>h});var i=a(925),t=a(5e3);let o=(()=>{class e{constructor(b,A){this.elementRef=b,this.renderer=A,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(b){return new(b||e)(t.Y36(t.SBq),t.Y36(t.Qsj))},e.\u0275dir=t.lG2({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[t.TTD]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(b){return new(b||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[i.ud]]}),e})()},2643:(ae,I,a)=>{a.d(I,{dQ:()=>A,vG:()=>P});var i=a(925),t=a(5e3),o=a(6360);class h{constructor(D,S,E,L){this.triggerElement=D,this.ngZone=S,this.insertExtraNode=E,this.platformId=L,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=V=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===V.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new i.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const D=this.triggerElement,S=this.getWaveColor(D);D.setAttribute(this.waveAttributeName,"true"),!(Date.now(){D.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(D){return!!D&&"#ffffff"!==D&&"rgb(255, 255, 255)"!==D&&this.isNotGrey(D)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(D)&&"transparent"!==D}isNotGrey(D){const S=D.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(S&&S[1]&&S[2]&&S[3]&&S[1]===S[2]&&S[2]===S[3])}getWaveColor(D){const S=getComputedStyle(D);return S.getPropertyValue("border-top-color")||S.getPropertyValue("border-color")||S.getPropertyValue("background-color")}runTimeoutOutsideZone(D,S){this.ngZone.runOutsideAngular(()=>setTimeout(D,S))}}const e={disabled:!1},x=new t.OlP("nz-wave-global-options",{providedIn:"root",factory:function b(){return e}});let A=(()=>{class k{constructor(S,E,L,V,w){this.ngZone=S,this.elementRef=E,this.config=L,this.animationType=V,this.platformId=w,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let S=!1;return this.config&&"boolean"==typeof this.config.disabled&&(S=this.config.disabled),"NoopAnimations"===this.animationType&&(S=!0),S}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return k.\u0275fac=function(S){return new(S||k)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(x,8),t.Y36(o.Qb,8),t.Y36(t.Lbi))},k.\u0275dir=t.lG2({type:k,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),k})(),P=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[[i.ud]]}),k})()},5737:(ae,I,a)=>{a.d(I,{g:()=>P,S:()=>k});var i=a(655),t=a(5e3),o=a(1721),h=a(9808),e=a(969),x=a(226);function b(D,S){if(1&D&&(t.ynx(0),t._uU(1),t.BQk()),2&D){const E=t.oxw(2);t.xp6(1),t.Oqu(E.nzText)}}function A(D,S){if(1&D&&(t.TgZ(0,"span",1),t.YNc(1,b,2,1,"ng-container",2),t.qZA()),2&D){const E=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",E.nzText)}}let P=(()=>{class D{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return D.\u0275fac=function(E){return new(E||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(E,L){2&E&&t.ekj("ant-divider-horizontal","horizontal"===L.nzType)("ant-divider-vertical","vertical"===L.nzType)("ant-divider-with-text",L.nzText)("ant-divider-plain",L.nzPlain)("ant-divider-with-text-left",L.nzText&&"left"===L.nzOrientation)("ant-divider-with-text-right",L.nzText&&"right"===L.nzOrientation)("ant-divider-with-text-center",L.nzText&&"center"===L.nzOrientation)("ant-divider-dashed",L.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(E,L){1&E&&t.YNc(0,A,2,1,"span",0),2&E&&t.Q6J("ngIf",L.nzText)},directives:[h.O5,e.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.yF)()],D.prototype,"nzDashed",void 0),(0,i.gn)([(0,o.yF)()],D.prototype,"nzPlain",void 0),D})(),k=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[x.vT,h.ez,e.T]]}),D})()},3677:(ae,I,a)=>{a.d(I,{cm:()=>re,b1:()=>he,wA:()=>ge,RR:()=>ie});var i=a(655),t=a(1159),o=a(7429),h=a(5e3),e=a(8929),x=a(591),b=a(6787),A=a(3753),P=a(8896),k=a(6053),D=a(7604),S=a(4850),E=a(7545),L=a(2198),V=a(7138),w=a(5778),M=a(7625),N=a(9439),C=a(6950),y=a(1721),T=a(2845),f=a(925),Z=a(226),K=a(9808),Q=a(4182),te=a(6042),H=a(4832),J=a(969),pe=a(647),me=a(4219),Ce=a(8076);function be(_,O){if(1&_){const u=h.EpF();h.TgZ(0,"div",0),h.NdJ("@slideMotion.done",function(B){return h.CHM(u),h.oxw().onAnimationEvent(B)})("mouseenter",function(){return h.CHM(u),h.oxw().setMouseState(!0)})("mouseleave",function(){return h.CHM(u),h.oxw().setMouseState(!1)}),h.Hsn(1),h.qZA()}if(2&_){const u=h.oxw();h.ekj("ant-dropdown-rtl","rtl"===u.dir),h.Q6J("ngClass",u.nzOverlayClassName)("ngStyle",u.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)("nzNoAnimation",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)}}const ne=["*"],Y=[C.yW.bottomLeft,C.yW.bottomRight,C.yW.topRight,C.yW.topLeft];let re=(()=>{class _{constructor(u,v,B,le,ze,Ne){this.nzConfigService=u,this.elementRef=v,this.overlay=B,this.renderer=le,this.viewContainerRef=ze,this.platform=Ne,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new e.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new x.X(!1),this.nzTrigger$=new x.X("hover"),this.overlayClose$=new e.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new h.vpe}setDropdownMenuValue(u,v){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(u,v)}ngAfterViewInit(){if(this.nzDropdownMenu){const u=this.elementRef.nativeElement,v=(0,b.T)((0,A.R)(u,"mouseenter").pipe((0,D.h)(!0)),(0,A.R)(u,"mouseleave").pipe((0,D.h)(!1))),le=(0,b.T)(this.nzDropdownMenu.mouseState$,v),ze=(0,A.R)(u,"click").pipe((0,S.U)(()=>!this.nzVisible)),Ne=this.nzTrigger$.pipe((0,E.w)(we=>"hover"===we?le:"click"===we?ze:P.E)),Fe=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,L.h)(()=>this.nzClickHide),(0,D.h)(!1)),Qe=(0,b.T)(Ne,Fe,this.overlayClose$).pipe((0,L.h)(()=>!this.nzDisabled)),Ve=(0,b.T)(this.inputVisible$,Qe);(0,k.aj)([Ve,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,S.U)(([we,je])=>we||je),(0,V.e)(150),(0,w.x)(),(0,L.h)(()=>this.platform.isBrowser),(0,M.R)(this.destroy$)).subscribe(we=>{const et=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:u).getBoundingClientRect().width;this.nzVisible!==we&&this.nzVisibleChange.emit(we),this.nzVisible=we,we?(this.overlayRef?this.overlayRef.getConfig().minWidth=et:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:et,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,b.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,L.h)(He=>!this.elementRef.nativeElement.contains(He.target))),this.overlayRef.keydownEvents().pipe((0,L.h)(He=>He.keyCode===t.hY&&!(0,t.Vb)(He)))).pipe((0,M.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([C.yW[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new o.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,M.R)(this.destroy$)).subscribe(we=>{"void"===we.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(u){const{nzVisible:v,nzDisabled:B,nzOverlayClassName:le,nzOverlayStyle:ze,nzTrigger:Ne}=u;if(Ne&&this.nzTrigger$.next(this.nzTrigger),v&&this.inputVisible$.next(this.nzVisible),B){const Fe=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Fe,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Fe,"disabled")}le&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),ze&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(N.jY),h.Y36(h.SBq),h.Y36(T.aV),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(f.t4))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[h.TTD]}),(0,i.gn)([(0,N.oS)(),(0,y.yF)()],_.prototype,"nzBackdrop",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzClickHide",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzDisabled",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzVisible",void 0),_})(),W=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({}),_})(),ge=(()=>{class _{constructor(u,v,B){this.renderer=u,this.nzButtonGroupComponent=v,this.elementRef=B}ngAfterViewInit(){const u=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&u&&this.renderer.addClass(u,"ant-dropdown-button")}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.Qsj),h.Y36(te.fY,9),h.Y36(h.SBq))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),ie=(()=>{class _{constructor(u,v,B,le,ze,Ne,Fe){this.cdr=u,this.elementRef=v,this.renderer=B,this.viewContainerRef=le,this.nzMenuService=ze,this.directionality=Ne,this.noAnimation=Fe,this.mouseState$=new x.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new h.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new e.xQ}onAnimationEvent(u){this.animationStateChange$.emit(u)}setMouseState(u){this.mouseState$.next(u)}setValue(u,v){this[u]=v,this.cdr.markForCheck()}ngOnInit(){var u;null===(u=this.directionality.change)||void 0===u||u.pipe((0,M.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(me.hl),h.Y36(Z.Is,8),h.Y36(H.P,9))},_.\u0275cmp=h.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(u,v){if(1&u&&h.Gf(h.Rgc,7),2&u){let B;h.iGM(B=h.CRH())&&(v.templateRef=B.first)}},exportAs:["nzDropdownMenu"],features:[h._Bn([me.hl,{provide:me.Cc,useValue:!0}])],ngContentSelectors:ne,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(u,v){1&u&&(h.F$t(),h.YNc(0,be,2,7,"ng-template"))},directives:[K.mk,K.PC,H.P],encapsulation:2,data:{animation:[Ce.mF]},changeDetection:0}),_})(),he=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[Z.vT,K.ez,T.U8,Q.u5,te.sL,me.ip,pe.PV,H.g,f.ud,C.e4,W,J.T],me.ip]}),_})();new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},685:(ae,I,a)=>{a.d(I,{gB:()=>ne,p9:()=>Ce,Xo:()=>ce});var i=a(7429),t=a(5e3),o=a(8929),h=a(7625),e=a(1059),x=a(9439),b=a(4170),A=a(9808),P=a(969),k=a(226);function D(Y,re){if(1&Y&&(t.ynx(0),t._UZ(1,"img",5),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.Q6J("src",W.nzNotFoundImage,t.LSH)("alt",W.isContentString?W.nzNotFoundContent:"empty")}}function S(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,D,2,2,"ng-container",4),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundImage)}}function E(Y,re){1&Y&&t._UZ(0,"nz-empty-default")}function L(Y,re){1&Y&&t._UZ(0,"nz-empty-simple")}function V(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.isContentString?W.nzNotFoundContent:W.locale.description," ")}}function w(Y,re){if(1&Y&&(t.TgZ(0,"p",6),t.YNc(1,V,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundContent)}}function M(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.nzNotFoundFooter," ")}}function N(Y,re){if(1&Y&&(t.TgZ(0,"div",7),t.YNc(1,M,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundFooter)}}function C(Y,re){1&Y&&t._UZ(0,"nz-empty",6),2&Y&&t.Q6J("nzNotFoundImage","simple")}function y(Y,re){1&Y&&t._UZ(0,"nz-empty",7),2&Y&&t.Q6J("nzNotFoundImage","simple")}function T(Y,re){1&Y&&t._UZ(0,"nz-empty")}function f(Y,re){if(1&Y&&(t.ynx(0,2),t.YNc(1,C,1,1,"nz-empty",3),t.YNc(2,y,1,1,"nz-empty",4),t.YNc(3,T,1,0,"nz-empty",5),t.BQk()),2&Y){const W=t.oxw();t.Q6J("ngSwitch",W.size),t.xp6(1),t.Q6J("ngSwitchCase","normal"),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function Z(Y,re){}function K(Y,re){if(1&Y&&t.YNc(0,Z,0,0,"ng-template",8),2&Y){const W=t.oxw(2);t.Q6J("cdkPortalOutlet",W.contentPortal)}}function Q(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.content," ")}}function te(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,K,1,1,void 0,1),t.YNc(2,Q,2,1,"ng-container",1),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("ngIf","string"!==W.contentType),t.xp6(1),t.Q6J("ngIf","string"===W.contentType)}}const H=new t.OlP("nz-empty-component-name");let J=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t.TgZ(2,"g",2),t._UZ(3,"ellipse",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t._UZ(7,"path",7),t.qZA(),t._UZ(8,"path",8),t.TgZ(9,"g",9),t._UZ(10,"ellipse",10),t._UZ(11,"path",11),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})(),pe=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t._UZ(2,"ellipse",2),t.TgZ(3,"g",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})();const me=["default","simple"];let Ce=(()=>{class Y{constructor(W,q){this.i18n=W,this.cdr=q,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new o.xQ}ngOnChanges(W){const{nzNotFoundContent:q,nzNotFoundImage:ge}=W;if(q&&(this.isContentString="string"==typeof q.currentValue),ge){const ie=ge.currentValue||"default";this.isImageBuildIn=me.findIndex(he=>he===ie)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(b.wi),t.Y36(t.sBO))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[t.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(W,q){1&W&&(t.TgZ(0,"div",0),t.YNc(1,S,2,1,"ng-container",1),t.YNc(2,E,1,0,"nz-empty-default",1),t.YNc(3,L,1,0,"nz-empty-simple",1),t.qZA(),t.YNc(4,w,2,1,"p",2),t.YNc(5,N,2,1,"div",3)),2&W&&(t.xp6(1),t.Q6J("ngIf",!q.isImageBuildIn),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"!==q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"===q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",null!==q.nzNotFoundContent),t.xp6(1),t.Q6J("ngIf",q.nzNotFoundFooter))},directives:[J,pe,A.O5,P.f],encapsulation:2,changeDetection:0}),Y})(),ne=(()=>{class Y{constructor(W,q,ge,ie){this.configService=W,this.viewContainerRef=q,this.cdr=ge,this.injector=ie,this.contentType="string",this.size="",this.destroy$=new o.xQ}ngOnChanges(W){W.nzComponentName&&(this.size=function be(Y){switch(Y){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(W.nzComponentName.currentValue)),W.specificContent&&!W.specificContent.isFirstChange()&&(this.content=W.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const W=this.content;if("string"==typeof W)this.contentType="string";else if(W instanceof t.Rgc){const q={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new i.UE(W,this.viewContainerRef,q)}else if(W instanceof t.DyG){const q=t.zs3.create({parent:this.injector,providers:[{provide:H,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new i.C5(W,this.viewContainerRef,q)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,e.O)(!0),(0,h.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(x.jY),t.Y36(t.s_b),t.Y36(t.sBO),t.Y36(t.zs3))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[t.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(W,q){1&W&&(t.YNc(0,f,4,3,"ng-container",0),t.YNc(1,te,3,2,"ng-container",1)),2&W&&(t.Q6J("ngIf",!q.content&&null!==q.specificContent),t.xp6(1),t.Q6J("ngIf",q.content))},directives:[Ce,A.O5,A.RF,A.n9,A.ED,i.Pl],encapsulation:2,changeDetection:0}),Y})(),ce=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275mod=t.oAB({type:Y}),Y.\u0275inj=t.cJS({imports:[[k.vT,A.ez,i.eL,P.T,b.YI]]}),Y})()},4546:(ae,I,a)=>{a.d(I,{Fd:()=>q,Lr:()=>re,Nx:()=>ne,iK:()=>ie,U5:()=>se,EF:()=>$});var i=a(226),t=a(5113),o=a(925),h=a(9808),e=a(5e3),x=a(969),b=a(1894),A=a(647),P=a(404),k=a(4182),D=a(8929),S=a(2654),E=a(7625),L=a(2198),V=a(4850),w=a(2994),M=a(1059),N=a(8076),C=a(1721),y=a(4170),T=a(655),f=a(9439);const Z=["*"];function K(_,O){if(1&_&&e._UZ(0,"i",6),2&_){const u=e.oxw();e.Q6J("nzType",u.iconType)}}function Q(_,O){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.innerTip)}}const te=function(_){return[_]},H=function(_){return{$implicit:_}};function J(_,O){if(1&_&&(e.TgZ(0,"div",7),e.TgZ(1,"div",8),e.YNc(2,Q,2,1,"ng-container",9),e.qZA(),e.qZA()),2&_){const u=e.oxw();e.Q6J("@helpMotion",void 0),e.xp6(1),e.Q6J("ngClass",e.VKq(4,te,"ant-form-item-explain-"+u.status)),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.innerTip)("nzStringTemplateOutletContext",e.VKq(6,H,u.validateControl))}}function pe(_,O){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.nzExtra)}}function me(_,O){if(1&_&&(e.TgZ(0,"div",10),e.YNc(1,pe,2,1,"ng-container",11),e.qZA()),2&_){const u=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.nzExtra)}}function Ce(_,O){if(1&_&&(e.ynx(0),e._UZ(1,"i",3),e.BQk()),2&_){const u=O.$implicit,v=e.oxw(2);e.xp6(1),e.Q6J("nzType",u)("nzTheme",v.tooltipIcon.theme)}}function be(_,O){if(1&_&&(e.TgZ(0,"span",1),e.YNc(1,Ce,2,2,"ng-container",2),e.qZA()),2&_){const u=e.oxw();e.Q6J("nzTooltipTitle",u.nzTooltipTitle),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.tooltipIcon.type)}}let ne=(()=>{class _{constructor(u,v,B){this.cdr=B,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item")}setWithHelpViaTips(u){this.withHelpClass=u,this.cdr.markForCheck()}setStatus(u){this.status=u,this.cdr.markForCheck()}setHasFeedback(u){this.hasFeedback=u,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(u,v){2&u&&e.ekj("ant-form-item-has-success","success"===v.status)("ant-form-item-has-warning","warning"===v.status)("ant-form-item-has-error","error"===v.status)("ant-form-item-is-validating","validating"===v.status)("ant-form-item-has-feedback",v.hasFeedback&&v.status)("ant-form-item-with-help",v.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})();const Y={type:"question-circle",theme:"outline"};let re=(()=>{class _{constructor(u,v,B,le){var ze;this.nzConfigService=u,this.renderer=B,this.directionality=le,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Y,this.dir="ltr",this.destroy$=new D.xQ,this.inputChanges$=new D.xQ,this.renderer.addClass(v.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(ze=this.directionality.change)||void 0===ze||ze.pipe((0,E.R)(this.destroy$)).subscribe(Ne=>{this.dir=Ne})}getInputObservable(u){return this.inputChanges$.pipe((0,L.h)(v=>u in v),(0,V.U)(v=>v[u]))}ngOnChanges(u){this.inputChanges$.next(u)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(f.jY),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(i.Is,8))},_.\u0275dir=e.lG2({type:_,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(u,v){2&u&&e.ekj("ant-form-horizontal","horizontal"===v.nzLayout)("ant-form-vertical","vertical"===v.nzLayout)("ant-form-inline","inline"===v.nzLayout)("ant-form-rtl","rtl"===v.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[e.TTD]}),(0,T.gn)([(0,f.oS)(),(0,C.yF)()],_.prototype,"nzNoColon",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzAutoTips",void 0),(0,T.gn)([(0,C.yF)()],_.prototype,"nzDisableAutoTips",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzTooltipIcon",void 0),_})();const W={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let q=(()=>{class _{constructor(u,v,B,le,ze,Ne){var Fe,Qe;this.nzFormItemComponent=v,this.cdr=B,this.nzFormDirective=Ne,this._hasFeedback=!1,this.validateChanges=S.w.EMPTY,this.validateString=null,this.destroyed$=new D.xQ,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",le.addClass(u.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(ze.localeChange.pipe((0,w.b)(Ve=>this.localeId=Ve.locale))),this.subscribeAutoTips(null===(Fe=this.nzFormDirective)||void 0===Fe?void 0:Fe.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.getInputObservable("nzDisableAutoTips").pipe((0,L.h)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var u;return"default"!==this.nzDisableAutoTips?(0,C.sw)(this.nzDisableAutoTips):null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzDisableAutoTips}set nzHasFeedback(u){this._hasFeedback=(0,C.sw)(u),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(u){u instanceof k.TO||u instanceof k.On?(this.validateControl=u,this.validateString=null,this.watchControl()):u instanceof k.u?(this.validateControl=u.control,this.validateString=null,this.watchControl()):(this.validateString=u,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,M.O)(null),(0,E.R)(this.destroyed$)).subscribe(u=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?W[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(u){let v;return v="warning"===u||this.validateControlStatus("INVALID","warning")?"warning":"error"===u||this.validateControlStatus("INVALID")?"error":"validating"===u||"pending"===u||this.validateControlStatus("PENDING")?"validating":"success"===u||this.validateControlStatus("VALID")?"success":null,v}validateControlStatus(u,v){if(this.validateControl){const{dirty:B,touched:le,status:ze}=this.validateControl;return(!!B||!!le)&&(v?this.validateControl.hasError(v):ze===u)}return!1}getInnerTip(u){switch(u){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var u,v,B,le,ze,Ne,Fe,Qe,Ve,we,je,et,He;if(this.validateControl){const st=this.validateControl.errors||{};let at="";for(const tt in st)if(st.hasOwnProperty(tt)&&(at=null!==(je=null!==(Fe=null!==(ze=null!==(v=null===(u=st[tt])||void 0===u?void 0:u[this.localeId])&&void 0!==v?v:null===(le=null===(B=this.nzAutoTips)||void 0===B?void 0:B[this.localeId])||void 0===le?void 0:le[tt])&&void 0!==ze?ze:null===(Ne=this.nzAutoTips.default)||void 0===Ne?void 0:Ne[tt])&&void 0!==Fe?Fe:null===(we=null===(Ve=null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.nzAutoTips)||void 0===Ve?void 0:Ve[this.localeId])||void 0===we?void 0:we[tt])&&void 0!==je?je:null===(He=null===(et=this.nzFormDirective)||void 0===et?void 0:et.nzAutoTips.default)||void 0===He?void 0:He[tt]),at)break;this.autoErrorTip=at}}subscribeAutoTips(u){null==u||u.pipe((0,E.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(u){const{nzDisableAutoTips:v,nzAutoTips:B,nzSuccessTip:le,nzWarningTip:ze,nzErrorTip:Ne,nzValidatingTip:Fe}=u;v||B?(this.updateAutoErrorTip(),this.setStatus()):(le||ze||Ne||Fe)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof k.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(ne,9),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(y.wi),e.Y36(re,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-control"]],contentQueries:function(u,v,B){if(1&u&&e.Suo(B,k.a5,5),2&u){let le;e.iGM(le=e.CRH())&&(v.defaultValidateControl=le.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[e.TTD],ngContentSelectors:Z,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"span",2),e.YNc(4,K,1,1,"i",3),e.qZA(),e.qZA(),e.YNc(5,J,3,8,"div",4),e.YNc(6,me,2,1,"div",5)),2&u&&(e.xp6(4),e.Q6J("ngIf",v.nzHasFeedback&&v.iconType),e.xp6(1),e.Q6J("ngIf",v.innerTip),e.xp6(1),e.Q6J("ngIf",v.nzExtra))},directives:[h.O5,A.Ls,h.mk,x.f],encapsulation:2,data:{animation:[N.c8]},changeDetection:0}),_})();function ge(_){const O="string"==typeof _?{type:_}:_;return Object.assign(Object.assign({},Y),O)}let ie=(()=>{class _{constructor(u,v,B,le){this.cdr=B,this.nzFormDirective=le,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.h)(()=>"default"===this.noColon),(0,E.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.h)(()=>"default"===this._tooltipIcon),(0,E.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(u){this.noColon=(0,C.sw)(u)}get nzNoColon(){var u;return"default"!==this.noColon?this.noColon:null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzNoColon}set nzTooltipIcon(u){this._tooltipIcon=ge(u)}get tooltipIcon(){var u;return"default"!==this._tooltipIcon?this._tooltipIcon:ge((null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzTooltipIcon)||Y)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(re,12))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-label"]],inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzFormLabel"],ngContentSelectors:Z,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"label"),e.Hsn(1),e.YNc(2,be,2,2,"span",0),e.qZA()),2&u&&(e.ekj("ant-form-item-no-colon",v.nzNoColon)("ant-form-item-required",v.nzRequired),e.uIk("for",v.nzFor),e.xp6(2),e.Q6J("ngIf",v.nzTooltipTitle))},directives:[h.O5,P.SY,x.f,A.Ls],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,C.yF)()],_.prototype,"nzRequired",void 0),_})(),$=(()=>{class _{constructor(u,v){this.elementRef=u,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-form-text")}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-text"]],exportAs:["nzFormText"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})(),se=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[i.vT,h.ez,b.Jb,A.PV,P.cg,t.xu,o.ud,x.T],b.Jb]}),_})()},1894:(ae,I,a)=>{a.d(I,{t3:()=>S,Jb:()=>E,SK:()=>D});var i=a(5e3),t=a(5647),o=a(8929),h=a(7625),e=a(4090),x=a(5113),b=a(925),A=a(226),P=a(1721),k=a(9808);let D=(()=>{class L{constructor(w,M,N,C,y,T,f){this.elementRef=w,this.renderer=M,this.mediaMatcher=N,this.ngZone=C,this.platform=y,this.breakpointService=T,this.directionality=f,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new t.t(1),this.dir="ltr",this.destroy$=new o.xQ}getGutter(){const w=[null,null],M=this.nzGutter||0;return(Array.isArray(M)?M:[M,null]).forEach((C,y)=>{"object"==typeof C&&null!==C?(w[y]=null,Object.keys(e.WV).map(T=>{const f=T;this.mediaMatcher.matchMedia(e.WV[f]).matches&&C[f]&&(w[y]=C[f])})):w[y]=Number(C)||null}),w}setGutterStyle(){const[w,M]=this.getGutter();this.actualGutter$.next([w,M]);const N=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,`-${y/2}px`)};N("margin-left",w),N("margin-right",w),N("margin-top",M),N("margin-bottom",M)}ngOnInit(){var w;this.dir=this.directionality.value,null===(w=this.directionality.change)||void 0===w||w.pipe((0,h.R)(this.destroy$)).subscribe(M=>{this.dir=M}),this.setGutterStyle()}ngOnChanges(w){w.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(e.WV).pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(w){return new(w||L)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(x.vx),i.Y36(i.R0b),i.Y36(b.t4),i.Y36(e.r3),i.Y36(A.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:18,hostBindings:function(w,M){2&w&&i.ekj("ant-row-top","top"===M.nzAlign)("ant-row-middle","middle"===M.nzAlign)("ant-row-bottom","bottom"===M.nzAlign)("ant-row-start","start"===M.nzJustify)("ant-row-end","end"===M.nzJustify)("ant-row-center","center"===M.nzJustify)("ant-row-space-around","space-around"===M.nzJustify)("ant-row-space-between","space-between"===M.nzJustify)("ant-row-rtl","rtl"===M.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[i.TTD]}),L})(),S=(()=>{class L{constructor(w,M,N,C){this.elementRef=w,this.nzRowDirective=M,this.renderer=N,this.directionality=C,this.classMap={},this.destroy$=new o.xQ,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const w=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,P.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,P.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,P.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,P.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,P.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const M in this.classMap)this.classMap.hasOwnProperty(M)&&this.renderer.removeClass(this.elementRef.nativeElement,M);this.classMap=Object.assign({},w);for(const M in this.classMap)this.classMap.hasOwnProperty(M)&&this.classMap[M]&&this.renderer.addClass(this.elementRef.nativeElement,M)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(w){return"number"==typeof w?`${w} ${w} auto`:"string"==typeof w&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(w)?`0 0 ${w}`:w}generateClass(){const M={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(N=>{const C=N.replace("nz","").toLowerCase();if((0,P.DX)(this[N]))if("number"==typeof this[N]||"string"==typeof this[N])M[`ant-col-${C}-${this[N]}`]=!0;else{const y=this[N];["span","pull","push","offset","order"].forEach(f=>{M[`ant-col-${C}${"span"===f?"-":`-${f}-`}${y[f]}`]=y&&(0,P.DX)(y[f])})}}),M}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe((0,h.R)(this.destroy$)).subscribe(w=>{this.dir=w,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(w){this.setHostClassMap();const{nzFlex:M}=w;M&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,h.R)(this.destroy$)).subscribe(([w,M])=>{const N=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,y/2+"px")};N("padding-left",w),N("padding-right",w),N("padding-top",M),N("padding-bottom",M)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(w){return new(w||L)(i.Y36(i.SBq),i.Y36(D,9),i.Y36(i.Qsj),i.Y36(A.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(w,M){2&w&&i.Udp("flex",M.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[i.TTD]}),L})(),E=(()=>{class L{}return L.\u0275fac=function(w){return new(w||L)},L.\u0275mod=i.oAB({type:L}),L.\u0275inj=i.cJS({imports:[[A.vT,k.ez,x.xu,b.ud]]}),L})()},1047:(ae,I,a)=>{a.d(I,{Zp:()=>q,gB:()=>he,ke:()=>ie,o7:()=>_});var i=a(655),t=a(5e3),o=a(8929),h=a(6787),e=a(2198),x=a(7625),b=a(1059),A=a(7545),P=a(1709),k=a(4850),D=a(1721),S=a(4182),E=a(226),L=a(5664),V=a(9808),w=a(647),M=a(969),N=a(925);const C=["nz-input-group-slot",""];function y(O,u){if(1&O&&t._UZ(0,"i",2),2&O){const v=t.oxw();t.Q6J("nzType",v.icon)}}function T(O,u){if(1&O&&(t.ynx(0),t._uU(1),t.BQk()),2&O){const v=t.oxw();t.xp6(1),t.Oqu(v.template)}}function f(O,u){if(1&O&&t._UZ(0,"span",7),2&O){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnBeforeIcon)("template",v.nzAddOnBefore)}}function Z(O,u){}function K(O,u){if(1&O&&(t.TgZ(0,"span",8),t.YNc(1,Z,0,0,"ng-template",9),t.qZA()),2&O){const v=t.oxw(2),B=t.MAs(4);t.ekj("ant-input-affix-wrapper-sm",v.isSmall)("ant-input-affix-wrapper-lg",v.isLarge),t.xp6(1),t.Q6J("ngTemplateOutlet",B)}}function Q(O,u){if(1&O&&t._UZ(0,"span",7),2&O){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnAfterIcon)("template",v.nzAddOnAfter)}}function te(O,u){if(1&O&&(t.TgZ(0,"span",4),t.YNc(1,f,1,2,"span",5),t.YNc(2,K,2,5,"span",6),t.YNc(3,Q,1,2,"span",5),t.qZA()),2&O){const v=t.oxw(),B=t.MAs(6);t.xp6(1),t.Q6J("ngIf",v.nzAddOnBefore||v.nzAddOnBeforeIcon),t.xp6(1),t.Q6J("ngIf",v.isAffix)("ngIfElse",B),t.xp6(1),t.Q6J("ngIf",v.nzAddOnAfter||v.nzAddOnAfterIcon)}}function H(O,u){}function J(O,u){if(1&O&&t.YNc(0,H,0,0,"ng-template",9),2&O){t.oxw(2);const v=t.MAs(4);t.Q6J("ngTemplateOutlet",v)}}function pe(O,u){if(1&O&&t.YNc(0,J,1,1,"ng-template",10),2&O){const v=t.oxw(),B=t.MAs(6);t.Q6J("ngIf",v.isAffix)("ngIfElse",B)}}function me(O,u){if(1&O&&t._UZ(0,"span",13),2&O){const v=t.oxw(2);t.Q6J("icon",v.nzPrefixIcon)("template",v.nzPrefix)}}function Ce(O,u){}function be(O,u){if(1&O&&t._UZ(0,"span",14),2&O){const v=t.oxw(2);t.Q6J("icon",v.nzSuffixIcon)("template",v.nzSuffix)}}function ne(O,u){if(1&O&&(t.YNc(0,me,1,2,"span",11),t.YNc(1,Ce,0,0,"ng-template",9),t.YNc(2,be,1,2,"span",12)),2&O){const v=t.oxw(),B=t.MAs(6);t.Q6J("ngIf",v.nzPrefix||v.nzPrefixIcon),t.xp6(1),t.Q6J("ngTemplateOutlet",B),t.xp6(1),t.Q6J("ngIf",v.nzSuffix||v.nzSuffixIcon)}}function ce(O,u){1&O&&t.Hsn(0)}const Y=["*"];let q=(()=>{class O{constructor(v,B,le,ze){this.ngControl=v,this.directionality=ze,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new o.xQ,this.dir="ltr",this.destroy$=new o.xQ,B.addClass(le.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(v){this._disabled=null!=v&&"false"!=`${v}`}ngOnInit(){var v,B;this.ngControl&&(null===(v=this.ngControl.statusChanges)||void 0===v||v.pipe((0,e.h)(()=>null!==this.ngControl.disabled),(0,x.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(B=this.directionality.change)||void 0===B||B.pipe((0,x.R)(this.destroy$)).subscribe(le=>{this.dir=le})}ngOnChanges(v){const{disabled:B}=v;B&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return O.\u0275fac=function(v){return new(v||O)(t.Y36(S.a5,10),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(E.Is,8))},O.\u0275dir=t.lG2({type:O,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(v,B){2&v&&(t.uIk("disabled",B.disabled||null),t.ekj("ant-input-disabled",B.disabled)("ant-input-borderless",B.nzBorderless)("ant-input-lg","large"===B.nzSize)("ant-input-sm","small"===B.nzSize)("ant-input-rtl","rtl"===B.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[t.TTD]}),(0,i.gn)([(0,D.yF)()],O.prototype,"nzBorderless",void 0),O})(),ge=(()=>{class O{constructor(){this.icon=null,this.type=null,this.template=null}}return O.\u0275fac=function(v){return new(v||O)},O.\u0275cmp=t.Xpm({type:O,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(v,B){2&v&&t.ekj("ant-input-group-addon","addon"===B.type)("ant-input-prefix","prefix"===B.type)("ant-input-suffix","suffix"===B.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:C,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(v,B){1&v&&(t.YNc(0,y,1,1,"i",0),t.YNc(1,T,2,1,"ng-container",1)),2&v&&(t.Q6J("ngIf",B.icon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",B.template))},directives:[V.O5,w.Ls,M.f],encapsulation:2,changeDetection:0}),O})(),ie=(()=>{class O{constructor(v){this.elementRef=v}}return O.\u0275fac=function(v){return new(v||O)(t.Y36(t.SBq))},O.\u0275dir=t.lG2({type:O,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),O})(),he=(()=>{class O{constructor(v,B,le,ze){this.focusMonitor=v,this.elementRef=B,this.cdr=le,this.directionality=ze,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new o.xQ}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(v=>v.nzSize=this.nzSize)}ngOnInit(){var v;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,x.R)(this.destroy$)).subscribe(B=>{this.focused=!!B,this.cdr.markForCheck()}),this.dir=this.directionality.value,null===(v=this.directionality.change)||void 0===v||v.pipe((0,x.R)(this.destroy$)).subscribe(B=>{this.dir=B})}ngAfterContentInit(){this.updateChildrenInputSize();const v=this.listOfNzInputDirective.changes.pipe((0,b.O)(this.listOfNzInputDirective));v.pipe((0,A.w)(B=>(0,h.T)(v,...B.map(le=>le.disabled$))),(0,P.zg)(()=>v),(0,k.U)(B=>B.some(le=>le.disabled)),(0,x.R)(this.destroy$)).subscribe(B=>{this.disabled=B,this.cdr.markForCheck()})}ngOnChanges(v){const{nzSize:B,nzSuffix:le,nzPrefix:ze,nzPrefixIcon:Ne,nzSuffixIcon:Fe,nzAddOnAfter:Qe,nzAddOnBefore:Ve,nzAddOnAfterIcon:we,nzAddOnBeforeIcon:je}=v;B&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(le||ze||Ne||Fe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Qe||Ve||we||je)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return O.\u0275fac=function(v){return new(v||O)(t.Y36(L.tE),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(E.Is,8))},O.\u0275cmp=t.Xpm({type:O,selectors:[["nz-input-group"]],contentQueries:function(v,B,le){if(1&v&&t.Suo(le,q,4),2&v){let ze;t.iGM(ze=t.CRH())&&(B.listOfNzInputDirective=ze)}},hostVars:40,hostBindings:function(v,B){2&v&&t.ekj("ant-input-group-compact",B.nzCompact)("ant-input-search-enter-button",B.nzSearch)("ant-input-search",B.nzSearch)("ant-input-search-rtl","rtl"===B.dir)("ant-input-search-sm",B.nzSearch&&B.isSmall)("ant-input-search-large",B.nzSearch&&B.isLarge)("ant-input-group-wrapper",B.isAddOn)("ant-input-group-wrapper-rtl","rtl"===B.dir)("ant-input-group-wrapper-lg",B.isAddOn&&B.isLarge)("ant-input-group-wrapper-sm",B.isAddOn&&B.isSmall)("ant-input-affix-wrapper",B.isAffix&&!B.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===B.dir)("ant-input-affix-wrapper-focused",B.isAffix&&B.focused)("ant-input-affix-wrapper-disabled",B.isAffix&&B.disabled)("ant-input-affix-wrapper-lg",B.isAffix&&!B.isAddOn&&B.isLarge)("ant-input-affix-wrapper-sm",B.isAffix&&!B.isAddOn&&B.isSmall)("ant-input-group",!B.isAffix&&!B.isAddOn)("ant-input-group-rtl","rtl"===B.dir)("ant-input-group-lg",!B.isAffix&&!B.isAddOn&&B.isLarge)("ant-input-group-sm",!B.isAffix&&!B.isAddOn&&B.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[t.TTD],ngContentSelectors:Y,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(v,B){if(1&v&&(t.F$t(),t.YNc(0,te,4,4,"span",0),t.YNc(1,pe,1,2,"ng-template",null,1,t.W1O),t.YNc(3,ne,3,3,"ng-template",null,2,t.W1O),t.YNc(5,ce,1,0,"ng-template",null,3,t.W1O)),2&v){const le=t.MAs(2);t.Q6J("ngIf",B.isAddOn)("ngIfElse",le)}},directives:[ge,V.O5,V.tP],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,D.yF)()],O.prototype,"nzSearch",void 0),(0,i.gn)([(0,D.yF)()],O.prototype,"nzCompact",void 0),O})(),_=(()=>{class O{}return O.\u0275fac=function(v){return new(v||O)},O.\u0275mod=t.oAB({type:O}),O.\u0275inj=t.cJS({imports:[[E.vT,V.ez,w.PV,N.ud,M.T]]}),O})()},7957:(ae,I,a)=>{a.d(I,{du:()=>xt,Hf:()=>_t,Qp:()=>z,Sf:()=>Xe});var i=a(2845),t=a(7429),o=a(5e3),h=a(8929),e=a(3753),x=a(8514),b=a(7625),A=a(2198),P=a(2986),k=a(1059),D=a(6947),S=a(1721),E=a(9808),L=a(6360),V=a(1777),w=a(5664),M=a(9439),N=a(4170),C=a(969),y=a(2683),T=a(647),f=a(6042),Z=a(2643);a(2313);class te{transform(d,r=0,p="B",F){if(!((0,S.ui)(d)&&(0,S.ui)(r)&&r%1==0&&r>=0))return d;let G=d,de=p;for(;"B"!==de;)G*=1024,de=te.formats[de].prev;if(F){const Ie=(0,S.YM)(te.calculateResult(te.formats[F],G),r);return te.formatResult(Ie,F)}for(const Se in te.formats)if(te.formats.hasOwnProperty(Se)){const Ie=te.formats[Se];if(G{class s{transform(r,p="px"){let Ie="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(We=>We===p)&&(Ie=p),"number"==typeof r?`${r}${Ie}`:`${r}`}}return s.\u0275fac=function(r){return new(r||s)},s.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:s,pure:!0}),s})(),ne=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[E.ez]]}),s})();var ce=a(655),Y=a(1159),re=a(226),W=a(4832);const q=["nz-modal-close",""];function ge(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"i",2),o.BQk()),2&s){const r=d.$implicit;o.xp6(1),o.Q6J("nzType",r)}}const ie=["modalElement"];function he(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function $(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"span",17),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}function se(s,d){}function _(s,d){if(1&s&&o._UZ(0,"div",17),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function O(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function u(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){return o.CHM(r),o.oxw().onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled)("nzDanger",r.config.nzOkDanger),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}const v=["nz-modal-title",""];function B(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"div",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}const le=["nz-modal-footer",""];function ze(s,d){if(1&s&&o._UZ(0,"div",5),2&s){const r=o.oxw(3);o.Q6J("innerHTML",r.config.nzFooter,o.oJD)}}function Ne(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",7),o.NdJ("click",function(){const G=o.CHM(r).$implicit;return o.oxw(4).onButtonClick(G)}),o._uU(1),o.qZA()}if(2&s){const r=d.$implicit,p=o.oxw(4);o.Q6J("hidden",!p.getButtonCallableProp(r,"show"))("nzLoading",p.getButtonCallableProp(r,"loading"))("disabled",p.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzDanger",r.danger)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),o.xp6(1),o.hij(" ",r.label," ")}}function Fe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Ne,2,9,"button",6),o.BQk()),2&s){const r=o.oxw(3);o.xp6(1),o.Q6J("ngForOf",r.buttons)}}function Qe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,ze,1,1,"div",3),o.YNc(2,Fe,2,1,"ng-container",4),o.BQk()),2&s){const r=o.oxw(2);o.xp6(1),o.Q6J("ngIf",!r.buttonsFooter),o.xp6(1),o.Q6J("ngIf",r.buttonsFooter)}}const Ve=function(s,d){return{$implicit:s,modalRef:d}};function we(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Qe,3,2,"ng-container",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",r.config.nzFooter)("nzStringTemplateOutletContext",o.WLB(2,Ve,r.config.nzComponentParams,r.modalRef))}}function je(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function et(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzType",r.config.nzOkType)("nzDanger",r.config.nzOkDanger)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}function He(s,d){if(1&s&&(o.YNc(0,je,2,4,"button",8),o.YNc(1,et,2,6,"button",9)),2&s){const r=o.oxw();o.Q6J("ngIf",null!==r.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==r.config.nzOkText)}}function st(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function at(s,d){1&s&&o._UZ(0,"div",10)}function tt(s,d){}function ft(s,d){if(1&s&&o._UZ(0,"div",11),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function X(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"div",12),o.NdJ("cancelTriggered",function(){return o.CHM(r),o.oxw().onCloseClick()})("okTriggered",function(){return o.CHM(r),o.oxw().onOkClick()}),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("modalRef",r.modalRef)}}const oe=()=>{};class ye{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=oe,this.nzOnOk=oe,this.nzIconType="question-circle"}}const ue="ant-modal-mask",Me="modal",Be={modalContainer:(0,V.X$)("modalContainer",[(0,V.SB)("void, exit",(0,V.oB)({})),(0,V.SB)("enter",(0,V.oB)({})),(0,V.eR)("* => enter",(0,V.jt)(".24s",(0,V.oB)({}))),(0,V.eR)("* => void, * => exit",(0,V.jt)(".2s",(0,V.oB)({})))])};function Ze(s,d,r){return void 0===s?void 0===d?r:d:s}function Pe(s){const{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:F,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ie,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Nt,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:It,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}=s;return{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:F,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ie,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Nt,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:It,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}}function De(){throw Error("Attempting to attach modal content after content is already attached")}let Ke=(()=>{class s extends t.en{constructor(r,p,F,G,de,Se,Ie,We,lt,ht){super(),this.ngZone=r,this.host=p,this.focusTrapFactory=F,this.cdr=G,this.render=de,this.overlayRef=Se,this.nzConfigService=Ie,this.config=We,this.animationType=ht,this.animationStateChanged=new o.vpe,this.containerClick=new o.vpe,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new h.xQ,this.document=lt,this.dir=Se.getDirection(),this.isStringContent="string"==typeof We.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Me).pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMask,r.nzMask,!0)}get maskClosable(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMaskClosable,r.nzMaskClosable,!0)}onContainerClick(r){r.target===r.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(r)}attachTemplatePortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(r)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const r=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const p=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),F=(0,S.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(r,"transform-origin",`${F.left+p.width/2-r.offsetLeft}px ${F.top+p.height/2-r.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const r=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const p=this.document.activeElement;p!==r&&!r.contains(p)&&r.focus()}}restoreFocus(){const r=this.elementFocusedBeforeModalWasOpened;if(r&&"function"==typeof r.focus){const p=this.document.activeElement,F=this.host.nativeElement;(!p||p===this.document.body||p===F||F.contains(p))&&r.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const r=this.modalElementRef.nativeElement,p=this.overlayRef.backdropElement;r.classList.add("ant-zoom-enter"),r.classList.add("ant-zoom-enter-active"),p&&(p.classList.add("ant-fade-enter"),p.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const r=this.modalElementRef.nativeElement;r.classList.add("ant-zoom-leave"),r.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(r=!1){const p=this.overlayRef.backdropElement;if(p){if(this.animationDisabled()||r)return void p.classList.remove(ue);p.classList.add("ant-fade-leave"),p.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const r=this.overlayRef.backdropElement,p=this.modalElementRef.nativeElement;r&&(r.classList.remove("ant-fade-enter"),r.classList.remove("ant-fade-enter-active")),p.classList.remove("ant-zoom-enter"),p.classList.remove("ant-zoom-enter-active"),p.classList.remove("ant-zoom-leave"),p.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const r=this.overlayRef.backdropElement;r&&(0,S.DX)(this.config.nzZIndex)&&this.render.setStyle(r,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const r=this.overlayRef.backdropElement;if(r&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(F=>{this.render.removeStyle(r,F)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const p=Object.assign({},this.config.nzMaskStyle);Object.keys(p).forEach(F=>{this.render.setStyle(r,F,p[F])}),this.oldMaskStyle=p}}updateMaskClassname(){const r=this.overlayRef.backdropElement;r&&(this.showMask?r.classList.add(ue):r.classList.remove(ue))}onAnimationDone(r){"enter"===r.toState?this.trapFocus():"exit"===r.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(r)}onAnimationStart(r){"enter"===r.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===r.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(r)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(r){this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"mouseup").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,e.R)(r.nativeElement,"mousedown").pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return s.\u0275fac=function(r){o.$Z()},s.\u0275dir=o.lG2({type:s,features:[o.qOj]}),s})(),Ue=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:q,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(r,p){1&r&&(o.TgZ(0,"span",0),o.YNc(1,ge,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzCloseIcon))},directives:[C.f,y.w,T.Ls],encapsulation:2,changeDetection:0}),s})(),Ye=(()=>{class s extends Ke{constructor(r,p,F,G,de,Se,Ie,We,lt,ht,St){super(r,F,G,de,Se,Ie,We,lt,ht,St),this.i18n=p,this.config=lt,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(N.wi),o.Y36(o.SBq),o.Y36(w.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(M.jY),o.Y36(ye),o.Y36(E.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-confirm-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let F;o.iGM(F=o.CRH())&&(p.portalOutlet=F.first),o.iGM(F=o.CRH())&&(p.modalElementRef=F.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[o.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,he,1,0,"button",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o._UZ(8,"i",7),o.TgZ(9,"span",8),o.YNc(10,$,2,1,"ng-container",9),o.qZA(),o.TgZ(11,"div",10),o.YNc(12,se,0,0,"ng-template",11),o.YNc(13,_,1,1,"div",12),o.qZA(),o.qZA(),o.TgZ(14,"div",13),o.YNc(15,O,2,4,"button",14),o.YNc(16,u,2,6,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,11,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(3),o.Q6J("nzType",p.config.nzIconType),o.xp6(2),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle),o.xp6(3),o.Q6J("ngIf",p.isStringContent),o.xp6(2),o.Q6J("ngIf",null!==p.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzOkText))},directives:[Ue,f.ix,E.mk,E.PC,E.O5,y.w,T.Ls,C.f,t.Pl,Z.dQ],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})(),Ge=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:v,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0),o.YNc(1,B,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle))},directives:[C.f],encapsulation:2,changeDetection:0}),s})(),it=(()=>{class s{constructor(r,p){this.i18n=r,this.config=p,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.destroy$=new h.xQ,Array.isArray(p.nzFooter)&&(this.buttonsFooter=!0,this.buttons=p.nzFooter.map(nt)),this.i18n.localeChange.pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(r,p){const F=r[p],G=this.modalRef.getContentComponent();return"function"==typeof F?F.apply(r,G&&[G]):F}onButtonClick(r){if(!this.getButtonCallableProp(r,"loading")){const F=this.getButtonCallableProp(r,"onClick");r.autoLoading&&(0,S.tI)(F)&&(r.loading=!0,F.then(()=>r.loading=!1).catch(G=>{throw r.loading=!1,G}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(N.wi),o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:le,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(r,p){if(1&r&&(o.YNc(0,we,2,5,"ng-container",0),o.YNc(1,He,2,2,"ng-template",null,1,o.W1O)),2&r){const F=o.MAs(2);o.Q6J("ngIf",p.config.nzFooter)("ngIfElse",F)}},directives:[f.ix,E.O5,C.f,E.sg,Z.dQ,y.w],encapsulation:2}),s})();function nt(s){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},s)}let rt=(()=>{class s extends Ke{constructor(r,p,F,G,de,Se,Ie,We,lt,ht){super(r,p,F,G,de,Se,Ie,We,lt,ht),this.config=We}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(w.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(M.jY),o.Y36(ye),o.Y36(E.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let F;o.iGM(F=o.CRH())&&(p.portalOutlet=F.first),o.iGM(F=o.CRH())&&(p.modalElementRef=F.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},exportAs:["nzModalContainer"],features:[o.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,st,1,0,"button",3),o.YNc(5,at,1,0,"div",4),o.TgZ(6,"div",5),o.YNc(7,tt,0,0,"ng-template",6),o.YNc(8,ft,1,1,"div",7),o.qZA(),o.YNc(9,X,1,1,"div",8),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,9,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngIf",p.config.nzTitle),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(2),o.Q6J("ngIf",p.isStringContent),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzFooter))},directives:[Ue,Ge,it,E.mk,E.PC,E.O5,t.Pl],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})();class ot{constructor(d,r,p){this.overlayRef=d,this.config=r,this.containerInstance=p,this.componentInstance=null,this.state=0,this.afterClose=new h.xQ,this.afterOpen=new h.xQ,this.destroy$=new h.xQ,p.animationStateChanged.pipe((0,A.h)(F=>"done"===F.phaseName&&"enter"===F.toState),(0,P.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),r.nzAfterOpen instanceof o.vpe&&r.nzAfterOpen.emit()}),p.animationStateChanged.pipe((0,A.h)(F=>"done"===F.phaseName&&"exit"===F.toState),(0,P.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),p.containerClick.pipe((0,P.q)(1),(0,b.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),d.keydownEvents().pipe((0,A.h)(F=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&F.keyCode===Y.hY&&!(0,Y.Vb)(F))).subscribe(F=>{F.preventDefault(),this.trigger("cancel")}),p.cancelTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),p.okTriggered.pipe((0,b.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),d.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),r.nzAfterClose instanceof o.vpe&&r.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(d){this.close(d)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(d){0===this.state&&(this.result=d,this.containerInstance.animationStateChanged.pipe((0,A.h)(r=>"start"===r.phaseName),(0,P.q)(1)).subscribe(r=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},r.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(d){Object.assign(this.config,d),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(d){return(0,ce.mG)(this,void 0,void 0,function*(){const r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[d],p={ok:"nzOkLoading",cancel:"nzCancelLoading"}[d];if(!this.config[p])if(r instanceof o.vpe)r.emit(this.getContentComponent());else if("function"==typeof r){const G=r(this.getContentComponent());if((0,S.tI)(G)){this.config[p]=!0;let de=!1;try{de=yield G}finally{this.config[p]=!1,this.closeWhitResult(de)}}else this.closeWhitResult(G)}})}closeWhitResult(d){!1!==d&&this.close(d)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let Xe=(()=>{class s{constructor(r,p,F,G,de){this.overlay=r,this.injector=p,this.nzConfigService=F,this.parentModal=G,this.directionality=de,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new h.xQ,this.afterAllClose=(0,x.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,k.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,D.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in r||(r.nzWidth=416),"nzMaskClosable"in r||(r.nzMaskClosable=!1),r.nzModalType="confirm",r.nzClassName=`ant-modal-confirm ant-modal-confirm-${p} ${r.nzClassName||""}`,this.create(r)}info(r={}){return this.confirmFactory(r,"info")}success(r={}){return this.confirmFactory(r,"success")}error(r={}){return this.confirmFactory(r,"error")}warning(r={}){return this.confirmFactory(r,"warning")}open(r,p){const F=function Le(s,d){return Object.assign(Object.assign({},d),s)}(p||{},new ye),G=this.createOverlay(F),de=this.attachModalContainer(G,F),Se=this.attachModalContent(r,de,G,F);return de.modalRef=Se,this.openModals.push(Se),Se.afterClose.subscribe(()=>this.removeOpenModal(Se)),Se}removeOpenModal(r){const p=this.openModals.indexOf(r);p>-1&&(this.openModals.splice(p,1),this.openModals.length||this._afterAllClosed.next())}closeModals(r){let p=r.length;for(;p--;)r[p].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(r){const p=this.nzConfigService.getConfigForComponent(Me)||{},F=new i.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Ze(r.nzCloseOnNavigation,p.nzCloseOnNavigation,!0),direction:Ze(r.nzDirection,p.nzDirection,this.directionality.value)});return Ze(r.nzMask,p.nzMask,!0)&&(F.backdropClass=ue),this.overlay.create(F)}attachModalContainer(r,p){const G=o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:i.Iu,useValue:r},{provide:ye,useValue:p}]}),Se=new t.C5("confirm"===p.nzModalType?Ye:rt,p.nzViewContainerRef,G);return r.attach(Se).instance}attachModalContent(r,p,F,G){const de=new ot(F,G,p);if(r instanceof o.Rgc)p.attachTemplatePortal(new t.UE(r,null,{$implicit:G.nzComponentParams,modalRef:de}));else if((0,S.DX)(r)&&"string"!=typeof r){const Se=this.createInjector(de,G),Ie=p.attachComponentPortal(new t.C5(r,G.nzViewContainerRef,Se));(function Ae(s,d){Object.assign(s,d)})(Ie.instance,G.nzComponentParams),de.componentInstance=Ie.instance}else p.attachStringContent();return de}createInjector(r,p){return o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:ot,useValue:r}]})}confirmFactory(r={},p){return"nzIconType"in r||(r.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[p]),"nzCancelText"in r||(r.nzCancelText=null),this.confirm(r,p)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(M.jY),o.LFG(s,12),o.LFG(re.Is,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),_t=(()=>{class s{constructor(r){this.templateRef=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),s})(),yt=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),s})(),Ot=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),s})(),xt=(()=>{class s{constructor(r,p,F){this.cdr=r,this.modal=p,this.viewContainerRef=F,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new o.vpe,this.nzOnCancel=new o.vpe,this.nzAfterOpen=new o.vpe,this.nzAfterClose=new o.vpe,this.nzVisibleChange=new o.vpe,this.modalRef=null,this.destroy$=new h.xQ}set modalTitle(r){r&&this.setTitleWithTemplate(r)}set modalFooter(r){r&&this.setFooterWithTemplate(r)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const r=this.getConfig();this.modalRef=this.modal.create(r),this.modalRef.afterClose.asObservable().pipe((0,b.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(r){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(r),this.modalRef=null)}destroy(r){this.close(r)}triggerOk(){var r;null===(r=this.modalRef)||void 0===r||r.triggerOk()}triggerCancel(){var r;null===(r=this.modalRef)||void 0===r||r.triggerCancel()}getContentComponent(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getContentComponent()}getElement(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(r){this.nzTitle=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(r){this.nzFooter=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const r=Pe(this);return r.nzViewContainerRef=this.viewContainerRef,r.nzContent=this.nzContent||this.contentFromContentChild,r}ngOnChanges(r){const{nzVisible:p}=r,F=(0,ce._T)(r,["nzVisible"]);Object.keys(F).length&&this.modalRef&&this.modalRef.updateConfig(Pe(this)),p&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var r;null===(r=this.modalRef)||void 0===r||r._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.sBO),o.Y36(Xe),o.Y36(o.s_b))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal"]],contentQueries:function(r,p,F){if(1&r&&(o.Suo(F,Ot,7,o.Rgc),o.Suo(F,_t,7,o.Rgc),o.Suo(F,yt,7,o.Rgc)),2&r){let G;o.iGM(G=o.CRH())&&(p.modalTitle=G.first),o.iGM(G=o.CRH())&&(p.contentFromContentChild=G.first),o.iGM(G=o.CRH())&&(p.modalFooter=G.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[o.TTD],decls:0,vars:0,template:function(r,p){},encapsulation:2,changeDetection:0}),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMask",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMaskClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCloseOnNavigation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzVisible",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzKeyboard",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzNoAnimation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCentered",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDanger",void 0),s})(),z=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Xe],imports:[[E.ez,re.vT,i.U8,C.T,t.eL,N.YI,f.sL,T.PV,ne,W.g,ne]]}),s})()},3868:(ae,I,a)=>{a.d(I,{Bq:()=>V,Of:()=>N,Dg:()=>M,aF:()=>C});var i=a(5e3),t=a(655),o=a(4182),h=a(5647),e=a(8929),x=a(3753),b=a(7625),A=a(1721),P=a(226),k=a(5664),D=a(9808);const S=["*"],E=["inputElement"],L=["nz-radio",""];let V=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=i.lG2({type:y,selectors:[["","nz-radio-button",""]]}),y})(),w=(()=>{class y{constructor(){this.selected$=new h.t(1),this.touched$=new e.xQ,this.disabled$=new h.t(1),this.name$=new h.t(1)}touch(){this.touched$.next()}select(f){this.selected$.next(f)}setDisabled(f){this.disabled$.next(f)}setName(f){this.name$.next(f)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=i.Yz7({token:y,factory:y.\u0275fac}),y})(),M=(()=>{class y{constructor(f,Z,K){this.cdr=f,this.nzRadioService=Z,this.directionality=K,this.value=null,this.destroy$=new e.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var f;this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(Z=>{this.value!==Z&&(this.value=Z,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,b.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(f=this.directionality.change)||void 0===f||f.pipe((0,b.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(f){const{nzDisabled:Z,nzName:K}=f;Z&&this.nzRadioService.setDisabled(this.nzDisabled),K&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(f){this.value=f,this.nzRadioService.select(f),this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.nzDisabled=f,this.nzRadioService.setDisabled(f),this.cdr.markForCheck()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.sBO),i.Y36(w),i.Y36(P.Is,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-group-large","large"===Z.nzSize)("ant-radio-group-small","small"===Z.nzSize)("ant-radio-group-solid","solid"===Z.nzButtonStyle)("ant-radio-group-rtl","rtl"===Z.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[i._Bn([w,{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}]),i.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(f,Z){1&f&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,A.yF)()],y.prototype,"nzDisabled",void 0),y})(),N=(()=>{class y{constructor(f,Z,K,Q,te,H,J){this.ngZone=f,this.elementRef=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.nzRadioService=H,this.nzRadioButtonDirective=J,this.isNgModel=!1,this.destroy$=new e.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(f){this.nzDisabled=f,this.cdr.markForCheck()}writeValue(f){this.isChecked=f,this.cdr.markForCheck()}registerOnChange(f){this.isNgModel=!0,this.onChange=f}registerOnTouched(f){this.onTouched=f}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.name=f,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.nzDisabled=f,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.isChecked=this.nzValue===f,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(f=>{f||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(f=>{f.stopPropagation(),f.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(k.tE),i.Y36(P.Is,8),i.Y36(w,8),i.Y36(V,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(f,Z){if(1&f&&i.Gf(E,5),2&f){let K;i.iGM(K=i.CRH())&&(Z.inputElement=K.first)}},hostVars:16,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-wrapper",!Z.isRadioButton)("ant-radio-button-wrapper",Z.isRadioButton)("ant-radio-wrapper-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-button-wrapper-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-wrapper-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button-wrapper-disabled",Z.nzDisabled&&Z.isRadioButton)("ant-radio-wrapper-rtl",!Z.isRadioButton&&"rtl"===Z.dir)("ant-radio-button-wrapper-rtl",Z.isRadioButton&&"rtl"===Z.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[i._Bn([{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}])],attrs:L,ngContentSelectors:S,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(f,Z){1&f&&(i.F$t(),i.TgZ(0,"span"),i._UZ(1,"input",0,1),i._UZ(3,"span"),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&f&&(i.ekj("ant-radio",!Z.isRadioButton)("ant-radio-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button",Z.isRadioButton)("ant-radio-button-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-button-disabled",Z.nzDisabled&&Z.isRadioButton),i.xp6(1),i.ekj("ant-radio-input",!Z.isRadioButton)("ant-radio-button-input",Z.isRadioButton),i.Q6J("disabled",Z.nzDisabled)("checked",Z.isChecked),i.uIk("autofocus",Z.nzAutoFocus?"autofocus":null)("name",Z.name),i.xp6(2),i.ekj("ant-radio-inner",!Z.isRadioButton)("ant-radio-button-inner",Z.isRadioButton))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,A.yF)()],y.prototype,"nzDisabled",void 0),(0,t.gn)([(0,A.yF)()],y.prototype,"nzAutoFocus",void 0),y})(),C=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[P.vT,D.ez,o.u5]]}),y})()},5197:(ae,I,a)=>{a.d(I,{Ip:()=>Ye,Vq:()=>Ot,LV:()=>xt});var i=a(5e3),t=a(8929),o=a(3753),h=a(591),e=a(6053),x=a(6787),b=a(3393),A=a(685),P=a(969),k=a(9808),D=a(647),S=a(2683),E=a(655),L=a(1059),V=a(7625),w=a(7545),M=a(4090),N=a(1721),C=a(1159),y=a(2845),T=a(4182),f=a(8076),Z=a(9439);const K=["moz","ms","webkit"];function H(z){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(z);const j=K.filter(s=>`${s}CancelAnimationFrame`in window||`${s}CancelRequestAnimationFrame`in window)[0];return j?(window[`${j}CancelAnimationFrame`]||window[`${j}CancelRequestAnimationFrame`]).call(this,z):clearTimeout(z)}const J=function te(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const z=K.filter(j=>`${j}RequestAnimationFrame`in window)[0];return z?window[`${z}RequestAnimationFrame`]:function Q(){let z=0;return function(j){const s=(new Date).getTime(),d=Math.max(0,16-(s-z)),r=setTimeout(()=>{j(s+d)},d);return z=s+d,r}}()}();var pe=a(5664),me=a(4832),Ce=a(925),be=a(226),ne=a(6950),ce=a(4170);const Y=["*"];function re(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.nzLabel)}}function W(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.label)}}function q(z,j){}function ge(z,j){if(1&z&&(i.ynx(0),i.YNc(1,q,0,0,"ng-template",3),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",s.template)}}function ie(z,j){1&z&&i._UZ(0,"i",6)}function he(z,j){if(1&z&&(i.TgZ(0,"div",4),i.YNc(1,ie,1,0,"i",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.icon)("ngIfElse",s.icon)}}function $(z,j){if(1&z&&(i.TgZ(0,"div",4),i._UZ(1,"nz-embed-empty",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("specificContent",s.notFoundContent)}}function se(z,j){if(1&z&&i._UZ(0,"nz-option-item-group",9),2&z){const s=i.oxw().$implicit;i.Q6J("nzLabel",s.groupLabel)}}function _(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-item",10),i.NdJ("itemHover",function(r){return i.CHM(s),i.oxw(2).onItemHover(r)})("itemClick",function(r){return i.CHM(s),i.oxw(2).onItemClick(r)}),i.qZA()}if(2&z){const s=i.oxw().$implicit,d=i.oxw();i.Q6J("icon",d.menuItemSelectedIcon)("customContent",s.nzCustomContent)("template",s.template)("grouped",!!s.groupLabel)("disabled",s.nzDisabled)("showState","tags"===d.mode||"multiple"===d.mode)("label",s.nzLabel)("compareWith",d.compareWith)("activatedValue",d.activatedValue)("listOfSelectedValue",d.listOfSelectedValue)("value",s.nzValue)}}function O(z,j){1&z&&(i.ynx(0,6),i.YNc(1,se,1,1,"nz-option-item-group",7),i.YNc(2,_,1,11,"nz-option-item",8),i.BQk()),2&z&&(i.Q6J("ngSwitch",j.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase","group"),i.xp6(1),i.Q6J("ngSwitchCase","item"))}function u(z,j){}function v(z,j){1&z&&i.Hsn(0)}const B=["inputElement"],le=["mirrorElement"];function ze(z,j){1&z&&i._UZ(0,"span",3,4)}function Ne(z,j){if(1&z&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&z){const s=i.oxw(2);i.xp6(1),i.Oqu(s.label)}}function Fe(z,j){if(1&z&&i._uU(0),2&z){const s=i.oxw(2);i.Oqu(s.label)}}function Qe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,Ne,2,1,"div",2),i.YNc(2,Fe,1,1,"ng-template",null,3,i.W1O),i.BQk()),2&z){const s=i.MAs(3),d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.deletable)("ngIfElse",s)}}function Ve(z,j){1&z&&i._UZ(0,"i",7)}function we(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"span",5),i.NdJ("click",function(r){return i.CHM(s),i.oxw().onDelete(r)}),i.YNc(1,Ve,1,0,"i",6),i.qZA()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.removeIcon)("ngIfElse",s.removeIcon)}}const je=function(z){return{$implicit:z}};function et(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.hij(" ",s.placeholder," ")}}function He(z,j){if(1&z&&i._UZ(0,"nz-select-item",6),2&z){const s=i.oxw(2);i.Q6J("deletable",!1)("disabled",!1)("removeIcon",s.removeIcon)("label",s.listOfTopItem[0].nzLabel)("contentTemplateOutlet",s.customTemplate)("contentTemplateOutletContext",s.listOfTopItem[0])}}function st(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.TgZ(1,"nz-select-search",4),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.YNc(2,He,1,6,"nz-select-item",5),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("showInput",s.showSearch)("mirrorSync",!1)("autofocus",s.autofocus)("focusTrigger",s.open),i.xp6(1),i.Q6J("ngIf",s.isShowSingleLabel)}}function at(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-item",9),i.NdJ("delete",function(){const p=i.CHM(s).$implicit;return i.oxw(2).onDeleteItem(p.contentTemplateOutletContext)}),i.qZA()}if(2&z){const s=j.$implicit,d=i.oxw(2);i.Q6J("removeIcon",d.removeIcon)("label",s.nzLabel)("disabled",s.nzDisabled||d.disabled)("contentTemplateOutlet",s.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",s.contentTemplateOutletContext)}}function tt(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.YNc(1,at,1,6,"nz-select-item",7),i.TgZ(2,"nz-select-search",8),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngForOf",s.listOfSlicedItem)("ngForTrackBy",s.trackValue),i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("autofocus",s.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",s.open)}}function ft(z,j){if(1&z&&i._UZ(0,"nz-select-placeholder",10),2&z){const s=i.oxw();i.Q6J("placeholder",s.placeHolder)}}function X(z,j){1&z&&i._UZ(0,"i",2)}function oe(z,j){1&z&&i._UZ(0,"i",7)}function ye(z,j){1&z&&i._UZ(0,"i",8)}function Oe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,oe,1,0,"i",5),i.YNc(2,ye,1,0,"i",6),i.BQk()),2&z){const s=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!s.search),i.xp6(1),i.Q6J("ngIf",s.search)}}function Re(z,j){if(1&z&&(i.ynx(0),i._UZ(1,"i",10),i.BQk()),2&z){const s=j.$implicit;i.xp6(1),i.Q6J("nzType",s)}}function ue(z,j){if(1&z&&i.YNc(0,Re,2,1,"ng-container",9),2&z){const s=i.oxw(2);i.Q6J("nzStringTemplateOutlet",s.suffixIcon)}}function Me(z,j){if(1&z&&(i.YNc(0,Oe,3,2,"ng-container",3),i.YNc(1,ue,1,1,"ng-template",null,4,i.W1O)),2&z){const s=i.MAs(2),d=i.oxw();i.Q6J("ngIf",!d.suffixIcon)("ngIfElse",s)}}function Be(z,j){1&z&&i._UZ(0,"i",1)}function Le(z,j){if(1&z&&i._UZ(0,"nz-select-arrow",5),2&z){const s=i.oxw();i.Q6J("loading",s.nzLoading)("search",s.nzOpen&&s.nzShowSearch)("suffixIcon",s.nzSuffixIcon)}}function Ze(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-clear",6),i.NdJ("clear",function(){return i.CHM(s),i.oxw().onClearSelection()}),i.qZA()}if(2&z){const s=i.oxw();i.Q6J("clearIcon",s.nzClearIcon)}}function Ae(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-container",7),i.NdJ("keydown",function(r){return i.CHM(s),i.oxw().onKeyDown(r)})("itemClick",function(r){return i.CHM(s),i.oxw().onItemClick(r)})("scrollToBottom",function(){return i.CHM(s),i.oxw().nzScrollToBottom.emit()}),i.qZA()}if(2&z){const s=i.oxw();i.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===s.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===s.dropDownPosition),i.Q6J("ngStyle",s.nzDropdownStyle)("itemSize",s.nzOptionHeightPx)("maxItemLength",s.nzOptionOverflowSize)("matchWidth",s.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("nzNoAnimation",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("listOfContainerItem",s.listOfContainerItem)("menuItemSelectedIcon",s.nzMenuItemSelectedIcon)("notFoundContent",s.nzNotFoundContent)("activatedValue",s.activatedValue)("listOfSelectedValue",s.listOfValue)("dropdownRender",s.nzDropdownRender)("compareWith",s.compareWith)("mode",s.nzMode)}}let Pe=(()=>{class z{constructor(){this.nzLabel=null,this.changes=new t.xQ}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),z})(),De=(()=>{class z{constructor(){this.nzLabel=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,re,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.nzLabel)},directives:[P.f],encapsulation:2,changeDetection:0}),z})(),Ke=(()=>{class z{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new i.vpe,this.itemHover=new i.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(s){const{value:d,activatedValue:r,listOfSelectedValue:p}=s;(d||p)&&(this.selected=this.listOfSelectedValue.some(F=>this.compareWith(F,this.value))),(d||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(s,d){1&s&&i.NdJ("mouseenter",function(){return d.onHostMouseEnter()})("click",function(){return d.onHostClick()}),2&s&&(i.uIk("title",d.label),i.ekj("ant-select-item-option-grouped",d.grouped)("ant-select-item-option-selected",d.selected&&!d.disabled)("ant-select-item-option-disabled",d.disabled)("ant-select-item-option-active",d.activated&&!d.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[i.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(s,d){1&s&&(i.TgZ(0,"div",0),i.YNc(1,W,2,1,"ng-container",1),i.YNc(2,ge,2,1,"ng-container",1),i.qZA(),i.YNc(3,he,2,2,"div",2)),2&s&&(i.xp6(1),i.Q6J("ngIf",!d.customContent),i.xp6(1),i.Q6J("ngIf",d.customContent),i.xp6(1),i.Q6J("ngIf",d.showState&&d.selected))},directives:[k.O5,k.tP,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),Ue=(()=>{class z{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new i.vpe,this.scrollToBottom=new i.vpe,this.scrolledIndex=0}onItemClick(s){this.itemClick.emit(s)}onItemHover(s){this.activatedValue=s}trackValue(s,d){return d.key}onScrolledIndexChange(s){this.scrolledIndex=s,s===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const s=this.listOfContainerItem.findIndex(d=>this.compareWith(d.key,this.activatedValue));(s=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(s||0)}ngOnChanges(s){const{listOfContainerItem:d,activatedValue:r}=s;(d||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-container"]],viewQuery:function(s,d){if(1&s&&i.Gf(b.N7,7),2&s){let r;i.iGM(r=i.CRH())&&(d.cdkVirtualScrollViewport=r.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[i.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(s,d){1&s&&(i.TgZ(0,"div"),i.YNc(1,$,2,1,"div",0),i.TgZ(2,"cdk-virtual-scroll-viewport",1),i.NdJ("scrolledIndexChange",function(p){return d.onScrolledIndexChange(p)}),i.YNc(3,O,3,3,"ng-template",2),i.qZA(),i.YNc(4,u,0,0,"ng-template",3),i.qZA()),2&s&&(i.xp6(1),i.Q6J("ngIf",0===d.listOfContainerItem.length),i.xp6(1),i.Udp("height",d.listOfContainerItem.length*d.itemSize,"px")("max-height",d.itemSize*d.maxItemLength,"px"),i.ekj("full-width",!d.matchWidth),i.Q6J("itemSize",d.itemSize)("maxBufferPx",d.itemSize*d.maxItemLength)("minBufferPx",d.itemSize*d.maxItemLength),i.xp6(1),i.Q6J("cdkVirtualForOf",d.listOfContainerItem)("cdkVirtualForTrackBy",d.trackValue)("cdkVirtualForTemplateCacheSize",0),i.xp6(1),i.Q6J("ngTemplateOutlet",d.dropdownRender))},directives:[A.gB,b.N7,De,Ke,k.O5,b.xd,b.x0,k.RF,k.n9,k.tP],encapsulation:2,changeDetection:0}),z})(),Ye=(()=>{class z{constructor(s,d){this.nzOptionGroupComponent=s,this.destroy$=d,this.changes=new t.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,L.O)(!0),(0,V.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(Pe,8),i.Y36(M.kn))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option"]],viewQuery:function(s,d){if(1&s&&i.Gf(i.Rgc,7),2&s){let r;i.iGM(r=i.CRH())&&(d.template=r.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[i._Bn([M.kn]),i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.YNc(0,v,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,E.gn)([(0,N.yF)()],z.prototype,"nzDisabled",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzHide",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzCustomContent",void 0),z})(),Ge=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new i.vpe,this.isComposingChange=new i.vpe}setCompositionState(s){this.isComposingChange.next(s)}onValueChange(s){this.value=s,this.valueChange.next(s),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const s=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),s.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${s.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(s){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=s;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(pe.tE))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-search"]],viewQuery:function(s,d){if(1&s&&(i.Gf(B,7),i.Gf(le,5)),2&s){let r;i.iGM(r=i.CRH())&&(d.inputElement=r.first),i.iGM(r=i.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[i._Bn([{provide:T.ve,useValue:!1}]),i.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(s,d){1&s&&(i.TgZ(0,"input",0,1),i.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),i.qZA(),i.YNc(2,ze,2,0,"span",2)),2&s&&(i.Udp("opacity",d.showInput?null:0),i.Q6J("ngModel",d.value)("disabled",d.disabled),i.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),i.xp6(2),i.Q6J("ngIf",d.mirrorSync))},directives:[T.Fj,T.JJ,T.On,k.O5],encapsulation:2,changeDetection:0}),z})(),it=(()=>{class z{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new i.vpe}onDelete(s){s.preventDefault(),s.stopPropagation(),this.disabled||this.delete.next(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(s,d){2&s&&(i.uIk("title",d.label),i.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(s,d){1&s&&(i.YNc(0,Qe,4,2,"ng-container",0),i.YNc(1,we,2,2,"span",1)),2&s&&(i.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",i.VKq(3,je,d.contentTemplateOutletContext)),i.xp6(1),i.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[P.f,k.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),nt=(()=>{class z{constructor(){this.placeholder=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,et,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.placeholder)},directives:[P.f],encapsulation:2,changeDetection:0}),z})(),rt=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.ngZone=d,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new i.vpe,this.inputValueChange=new i.vpe,this.deleteItem=new i.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new t.xQ}updateTemplateVariable(){const s=0===this.listOfTopItem.length;this.isShowPlaceholder=s&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!s&&!this.isComposing&&!this.inputValue}isComposingChange(s){this.isComposing=s,this.updateTemplateVariable()}onInputValueChange(s){s!==this.inputValue&&(this.inputValue=s,this.updateTemplateVariable(),this.inputValueChange.emit(s),this.tokenSeparate(s,this.tokenSeparators))}tokenSeparate(s,d){if(s&&s.length&&d.length&&"default"!==this.mode&&((F,G)=>{for(let de=0;de0)return!0;return!1})(s,d)){const F=((F,G)=>{const de=new RegExp(`[${G.join()}]`),Se=F.split(de).filter(Ie=>Ie);return[...new Set(Se)]})(s,d);this.tokenize.next(F)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(s,d){return d.nzValue}onDeleteItem(s){!this.disabled&&!s.nzDisabled&&this.deleteItem.next(s)}ngOnChanges(s){const{listOfTopItem:d,maxTagCount:r,customTemplate:p,maxTagPlaceholder:F}=s;if(d&&this.updateTemplateVariable(),d||r||p||F){const G=this.listOfTopItem.slice(0,this.maxTagCount).map(de=>({nzLabel:de.nzLabel,nzValue:de.nzValue,nzDisabled:de.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:de}));if(this.listOfTopItem.length>this.maxTagCount){const de=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Se=this.listOfTopItem.map(We=>We.nzValue),Ie={nzLabel:de,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Se.slice(this.maxTagCount)};G.push(Ie)}this.listOfSlicedItem=G}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,o.R)(this.elementRef.nativeElement,"click").pipe((0,V.R)(this.destroy$)).subscribe(s=>{s.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,o.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.R)(this.destroy$)).subscribe(s=>{if(s.target instanceof HTMLInputElement){const d=s.target.value;s.keyCode===C.ZH&&"default"!==this.mode&&!d&&this.listOfTopItem.length>0&&(s.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-top-control"]],viewQuery:function(s,d){if(1&s&&i.Gf(Ge,5),2&s){let r;i.iGM(r=i.CRH())&&(d.nzSelectSearchComponent=r.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[i.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(s,d){1&s&&(i.ynx(0,0),i.YNc(1,st,3,8,"ng-container",1),i.YNc(2,tt,3,9,"ng-container",2),i.BQk(),i.YNc(3,ft,1,1,"nz-select-placeholder",3)),2&s&&(i.Q6J("ngSwitch",d.mode),i.xp6(1),i.Q6J("ngSwitchCase","default"),i.xp6(2),i.Q6J("ngIf",d.isShowPlaceholder))},directives:[Ge,it,nt,k.RF,k.n9,k.O5,k.ED,k.sg,S.w],encapsulation:2,changeDetection:0}),z})(),ot=(()=>{class z{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(s,d){2&s&&i.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(s,d){if(1&s&&(i.YNc(0,X,1,0,"i",0),i.YNc(1,Me,3,2,"ng-template",null,1,i.W1O)),2&s){const r=i.MAs(2);i.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[k.O5,D.Ls,S.w,P.f],encapsulation:2,changeDetection:0}),z})(),Xe=(()=>{class z{constructor(){this.clearIcon=null,this.clear=new i.vpe}onClick(s){s.preventDefault(),s.stopPropagation(),this.clear.emit(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(s,d){1&s&&i.NdJ("click",function(p){return d.onClick(p)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(s,d){1&s&&i.YNc(0,Be,1,0,"i",0),2&s&&i.Q6J("ngIf",!d.clearIcon)("ngIfElse",d.clearIcon)},directives:[k.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})();const _t=(z,j)=>!(!j||!j.nzLabel)&&j.nzLabel.toString().toLowerCase().indexOf(z.toLowerCase())>-1;let Ot=(()=>{class z{constructor(s,d,r,p,F,G,de,Se){this.destroy$=s,this.nzConfigService=d,this.cdr=r,this.elementRef=p,this.platform=F,this.focusMonitor=G,this.directionality=de,this.noAnimation=Se,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=_t,this.compareWith=(Ie,We)=>Ie===We,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new i.vpe,this.nzScrollToBottom=new i.vpe,this.nzOpenChange=new i.vpe,this.nzBlur=new i.vpe,this.nzFocus=new i.vpe,this.listOfValue$=new h.X([]),this.listOfTemplateItem$=new h.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(s){this._nzShowArrow=s}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(s){return{nzValue:s,nzLabel:s,type:"item"}}onItemClick(s){if(this.activatedValue=s,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],s))&&this.updateListOfValue([s]),this.setOpenState(!1);else{const d=this.listOfValue.findIndex(r=>this.compareWith(r,s));if(-1!==d){const r=this.listOfValue.filter((p,F)=>F!==d);this.updateListOfValue(r)}else if(this.listOfValue.length!this.compareWith(r,s.nzValue));this.updateListOfValue(d),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let s=this.listOfTagAndTemplateItem.filter(p=>!p.nzHide).filter(p=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,p));if("tags"===this.nzMode&&this.searchValue){const p=this.listOfTagAndTemplateItem.find(F=>F.nzLabel===this.searchValue);if(p)this.activatedValue=p.nzValue;else{const F=this.generateTagItem(this.searchValue);s=[F,...s],this.activatedValue=F.nzValue}}const d=s.find(p=>this.compareWith(p.nzValue,this.listOfValue[0]))||s[0];this.activatedValue=d&&d.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(p=>p.groupLabel).map(p=>p.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(p=>p.nzLabel)),r.forEach(p=>{const F=s.findIndex(G=>p===G.groupLabel);F>-1&&s.splice(F,0,{groupLabel:p,type:"group",key:p})}),this.listOfContainerItem=[...s],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(s){const r=((p,F)=>"default"===this.nzMode?p.length>0?p[0]:null:p)(s);this.value!==r&&(this.listOfValue=s,this.listOfValue$.next(s),this.value=r,this.onChange(this.value))}onTokenSeparate(s){const d=this.listOfTagAndTemplateItem.filter(r=>-1!==s.findIndex(p=>p===r.nzLabel)).map(r=>r.nzValue).filter(r=>-1===this.listOfValue.findIndex(p=>this.compareWith(p,r)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...d]);else if("tags"===this.nzMode){const r=s.filter(p=>-1===this.listOfTagAndTemplateItem.findIndex(F=>F.nzLabel===p));this.updateListOfValue([...this.listOfValue,...d,...r])}this.clearInput()}onOverlayKeyDown(s){s.keyCode===C.hY&&this.setOpenState(!1)}onKeyDown(s){if(this.nzDisabled)return;const d=this.listOfContainerItem.filter(p=>"item"===p.type).filter(p=>!p.nzDisabled),r=d.findIndex(p=>this.compareWith(p.nzValue,this.activatedValue));switch(s.keyCode){case C.LH:s.preventDefault(),this.nzOpen&&(this.activatedValue=d[r>0?r-1:d.length-1].nzValue);break;case C.JH:s.preventDefault(),this.nzOpen?this.activatedValue=d[r{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,s!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){J(()=>{var s,d;null===(d=null===(s=this.cdkConnectedOverlay)||void 0===s?void 0:s.overlayRef)||void 0===d||d.updatePosition()})}writeValue(s){if(this.value!==s){this.value=s;const r=((p,F)=>null==p?[]:"default"===this.nzMode?[p]:p)(s);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=s,s&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(s){const{nzOpen:d,nzDisabled:r,nzOptions:p}=s;if(d&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),p){this.isReactiveDriven=!0;const G=(this.nzOptions||[]).map(de=>({template:de.label instanceof i.Rgc?de.label:null,nzLabel:"string"==typeof de.label||"number"==typeof de.label?de.label:null,nzValue:de.value,nzDisabled:de.disabled||!1,nzHide:de.hide||!1,nzCustomContent:de.label instanceof i.Rgc,groupLabel:de.groupLabel||null,type:"item",key:de.value}));this.listOfTemplateItem$.next(G)}}ngOnInit(){var s;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,V.R)(this.destroy$)).subscribe(d=>{d?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,e.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.R)(this.destroy$)).subscribe(([d,r])=>{const p=d.filter(()=>"tags"===this.nzMode).filter(F=>-1===r.findIndex(G=>this.compareWith(G.nzValue,F))).map(F=>this.listOfTopItem.find(G=>this.compareWith(G.nzValue,F))||this.generateTagItem(F));this.listOfTagAndTemplateItem=[...r,...p],this.listOfTopItem=this.listOfValue.map(F=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(G=>this.compareWith(F,G.nzValue))).filter(F=>!!F),this.updateListOfContainerItem()}),null===(s=this.directionality.change)||void 0===s||s.pipe((0,V.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,x.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,L.O)(!0),(0,w.w)(()=>(0,x.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(s=>s.changes),...this.listOfNzOptionGroupComponent.map(s=>s.changes)).pipe((0,L.O)(!0))),(0,V.R)(this.destroy$)).subscribe(()=>{const s=this.listOfNzOptionComponent.toArray().map(d=>{const{template:r,nzLabel:p,nzValue:F,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ie}=d;return{template:r,nzLabel:p,nzValue:F,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ie,type:"item",key:F}});this.listOfTemplateItem$.next(s),this.cdr.markForCheck()})}ngOnDestroy(){H(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(M.kn),i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Ce.t4),i.Y36(pe.tE),i.Y36(be.Is,8),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select"]],contentQueries:function(s,d,r){if(1&s&&(i.Suo(r,Ye,5),i.Suo(r,Pe,5)),2&s){let p;i.iGM(p=i.CRH())&&(d.listOfNzOptionComponent=p),i.iGM(p=i.CRH())&&(d.listOfNzOptionGroupComponent=p)}},viewQuery:function(s,d){if(1&s&&(i.Gf(y.xu,7,i.SBq),i.Gf(y.pI,7),i.Gf(rt,7),i.Gf(Pe,7,i.SBq),i.Gf(rt,7,i.SBq)),2&s){let r;i.iGM(r=i.CRH())&&(d.originElement=r.first),i.iGM(r=i.CRH())&&(d.cdkConnectedOverlay=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponent=r.first),i.iGM(r=i.CRH())&&(d.nzOptionGroupComponentElement=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponentElement=r.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(s,d){1&s&&i.NdJ("click",function(){return d.onHostClick()}),2&s&&i.ekj("ant-select-lg","large"===d.nzSize)("ant-select-sm","small"===d.nzSize)("ant-select-show-arrow",d.nzShowArrow)("ant-select-disabled",d.nzDisabled)("ant-select-show-search",(d.nzShowSearch||"default"!==d.nzMode)&&!d.nzDisabled)("ant-select-allow-clear",d.nzAllowClear)("ant-select-borderless",d.nzBorderless)("ant-select-open",d.nzOpen)("ant-select-focused",d.nzOpen||d.focused)("ant-select-single","default"===d.nzMode)("ant-select-multiple","default"!==d.nzMode)("ant-select-rtl","rtl"===d.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[i._Bn([M.kn,{provide:T.JU,useExisting:(0,i.Gpc)(()=>z),multi:!0}]),i.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(s,d){if(1&s&&(i.TgZ(0,"nz-select-top-control",0,1),i.NdJ("inputValueChange",function(p){return d.onInputValueChange(p)})("tokenize",function(p){return d.onTokenSeparate(p)})("deleteItem",function(p){return d.onItemDelete(p)})("keydown",function(p){return d.onKeyDown(p)}),i.qZA(),i.YNc(2,Le,1,3,"nz-select-arrow",2),i.YNc(3,Ze,1,1,"nz-select-clear",3),i.YNc(4,Ae,1,19,"ng-template",4),i.NdJ("overlayKeydown",function(p){return d.onOverlayKeyDown(p)})("overlayOutsideClick",function(p){return d.onClickOutside(p)})("detach",function(){return d.setOpenState(!1)})("positionChange",function(p){return d.onPositionChange(p)})),2&s){const r=i.MAs(1);i.Q6J("nzId",d.nzId)("open",d.nzOpen)("disabled",d.nzDisabled)("mode",d.nzMode)("@.disabled",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("nzNoAnimation",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("maxTagPlaceholder",d.nzMaxTagPlaceholder)("removeIcon",d.nzRemoveIcon)("placeHolder",d.nzPlaceHolder)("maxTagCount",d.nzMaxTagCount)("customTemplate",d.nzCustomTemplate)("tokenSeparators",d.nzTokenSeparators)("showSearch",d.nzShowSearch)("autofocus",d.nzAutoFocus)("listOfTopItem",d.listOfTopItem),i.xp6(2),i.Q6J("ngIf",d.nzShowArrow),i.xp6(1),i.Q6J("ngIf",d.nzAllowClear&&!d.nzDisabled&&d.listOfValue.length),i.xp6(1),i.Q6J("cdkConnectedOverlayHasBackdrop",d.nzBackdrop)("cdkConnectedOverlayMinWidth",d.nzDropdownMatchSelectWidth?null:d.triggerWidth)("cdkConnectedOverlayWidth",d.nzDropdownMatchSelectWidth?d.triggerWidth:null)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",d.nzDropdownClassName)("cdkConnectedOverlayOpen",d.nzOpen)}},directives:[rt,ot,Xe,Ue,S.w,y.xu,me.P,k.O5,y.pI,ne.hQ,k.PC],encapsulation:2,data:{animation:[f.mF]},changeDetection:0}),(0,E.gn)([(0,Z.oS)()],z.prototype,"nzSuffixIcon",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzAllowClear",void 0),(0,E.gn)([(0,Z.oS)(),(0,N.yF)()],z.prototype,"nzBorderless",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzShowSearch",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzLoading",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzAutoFocus",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzAutoClearSearchValue",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzServerSearch",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzDisabled",void 0),(0,E.gn)([(0,N.yF)()],z.prototype,"nzOpen",void 0),(0,E.gn)([(0,Z.oS)(),(0,N.yF)()],z.prototype,"nzBackdrop",void 0),z})(),xt=(()=>{class z{}return z.\u0275fac=function(s){return new(s||z)},z.\u0275mod=i.oAB({type:z}),z.\u0275inj=i.cJS({imports:[[be.vT,k.ez,ce.YI,T.u5,Ce.ud,y.U8,D.PV,P.T,A.Xo,ne.e4,me.g,S.a,b.Cl,pe.rt]]}),z})()},6462:(ae,I,a)=>{a.d(I,{i:()=>Z,m:()=>K});var i=a(655),t=a(1159),o=a(5e3),h=a(4182),e=a(8929),x=a(3753),b=a(7625),A=a(9439),P=a(1721),k=a(5664),D=a(226),S=a(2643),E=a(9808),L=a(647),V=a(969);const w=["switchElement"];function M(Q,te){1&Q&&o._UZ(0,"i",8)}function N(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzCheckedChildren)}}function C(Q,te){if(1&Q&&(o.ynx(0),o.YNc(1,N,2,1,"ng-container",9),o.BQk()),2&Q){const H=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",H.nzCheckedChildren)}}function y(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzUnCheckedChildren)}}function T(Q,te){if(1&Q&&o.YNc(0,y,2,1,"ng-container",9),2&Q){const H=o.oxw();o.Q6J("nzStringTemplateOutlet",H.nzUnCheckedChildren)}}let Z=(()=>{class Q{constructor(H,J,pe,me,Ce,be){this.nzConfigService=H,this.host=J,this.ngZone=pe,this.cdr=me,this.focusMonitor=Ce,this.directionality=be,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new e.xQ}updateValue(H){this.isChecked!==H&&(this.isChecked=H,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(H=>{this.dir=H,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.host.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(H=>{H.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,x.R)(this.switchElement.nativeElement,"keydown").pipe((0,b.R)(this.destroy$)).subscribe(H=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:J}=H;J!==t.oh&&J!==t.SV&&J!==t.L_&&J!==t.K5||(H.preventDefault(),this.ngZone.run(()=>{J===t.oh?this.updateValue(!1):J===t.SV?this.updateValue(!0):(J===t.L_||J===t.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,b.R)(this.destroy$)).subscribe(H=>{H||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(H){this.isChecked=H,this.cdr.markForCheck()}registerOnChange(H){this.onChange=H}registerOnTouched(H){this.onTouched=H}setDisabledState(H){this.nzDisabled=H,this.cdr.markForCheck()}}return Q.\u0275fac=function(H){return new(H||Q)(o.Y36(A.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(k.tE),o.Y36(D.Is,8))},Q.\u0275cmp=o.Xpm({type:Q,selectors:[["nz-switch"]],viewQuery:function(H,J){if(1&H&&o.Gf(w,7),2&H){let pe;o.iGM(pe=o.CRH())&&(J.switchElement=pe.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>Q),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(H,J){if(1&H&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,C,2,1,"ng-container",5),o.YNc(6,T,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&H){const pe=o.MAs(7);o.ekj("ant-switch-checked",J.isChecked)("ant-switch-loading",J.nzLoading)("ant-switch-disabled",J.nzDisabled)("ant-switch-small","small"===J.nzSize)("ant-switch-rtl","rtl"===J.dir),o.Q6J("disabled",J.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",J.nzLoading),o.xp6(2),o.Q6J("ngIf",J.isChecked)("ngIfElse",pe)}},directives:[S.dQ,E.O5,L.Ls,V.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,P.yF)()],Q.prototype,"nzLoading",void 0),(0,i.gn)([(0,P.yF)()],Q.prototype,"nzDisabled",void 0),(0,i.gn)([(0,P.yF)()],Q.prototype,"nzControl",void 0),(0,i.gn)([(0,A.oS)()],Q.prototype,"nzSize",void 0),Q})(),K=(()=>{class Q{}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275mod=o.oAB({type:Q}),Q.\u0275inj=o.cJS({imports:[[D.vT,E.ez,S.vG,L.PV,V.T]]}),Q})()},592:(ae,I,a)=>{a.d(I,{Uo:()=>Xt,N8:()=>En,HQ:()=>wn,p0:()=>yn,qD:()=>jt,_C:()=>ut,Om:()=>An,$Z:()=>Sn});var i=a(226),t=a(925),o=a(3393),h=a(9808),e=a(5e3),x=a(4182),b=a(6042),A=a(5577),P=a(6114),k=a(969),D=a(3677),S=a(685),E=a(4170),L=a(647),V=a(4219),w=a(655),M=a(8929),N=a(5647),C=a(7625),y=a(9439),T=a(4090),f=a(1721),Z=a(5197);const K=["nz-pagination-item",""];function Q(c,g){if(1&c&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&c){const n=e.oxw().page;e.xp6(1),e.Oqu(n)}}function te(c,g){1&c&&e._UZ(0,"i",9)}function H(c,g){1&c&&e._UZ(0,"i",10)}function J(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,te,1,0,"i",7),e.YNc(3,H,1,0,"i",8),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function pe(c,g){1&c&&e._UZ(0,"i",10)}function me(c,g){1&c&&e._UZ(0,"i",9)}function Ce(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,pe,1,0,"i",11),e.YNc(3,me,1,0,"i",12),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function be(c,g){1&c&&e._UZ(0,"i",20)}function ne(c,g){1&c&&e._UZ(0,"i",21)}function ce(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,be,1,0,"i",18),e.YNc(2,ne,1,0,"i",19),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function Y(c,g){1&c&&e._UZ(0,"i",21)}function re(c,g){1&c&&e._UZ(0,"i",20)}function W(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,Y,1,0,"i",22),e.YNc(2,re,1,0,"i",23),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function q(c,g){if(1&c&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,ce,3,2,"ng-container",16),e.YNc(3,W,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&c){const n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",n),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function ge(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,q,6,3,"div",14),e.qZA(),e.BQk()),2&c){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",n)}}function ie(c,g){1&c&&(e.ynx(0,2),e.YNc(1,Q,2,1,"a",3),e.YNc(2,J,4,3,"button",4),e.YNc(3,Ce,4,3,"button",4),e.YNc(4,ge,3,1,"ng-container",5),e.BQk()),2&c&&(e.Q6J("ngSwitch",g.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function he(c,g){}const $=function(c,g){return{$implicit:c,page:g}},se=["containerTemplate"];function _(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(n),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(n),e.oxw().nextPage()}),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("disabled",n.isFirstIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",n.locale.prev_page),e.xp6(1),e.uIk("title",n.pageIndex+"/"+n.lastIndex),e.xp6(1),e.Q6J("disabled",n.disabled)("value",n.pageIndex),e.xp6(3),e.hij(" ",n.lastIndex," "),e.xp6(1),e.Q6J("disabled",n.isLastIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",null==n.locale?null:n.locale.next_page)}}const O=["nz-pagination-options",""];function u(c,g){if(1&c&&e._UZ(0,"nz-option",4),2&c){const n=g.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value)}}function v(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(m){return e.CHM(n),e.oxw().onPageSizeChange(m)}),e.YNc(1,u,1,2,"nz-option",3),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("nzDisabled",n.disabled)("nzSize",n.nzSize)("ngModel",n.pageSize),e.xp6(1),e.Q6J("ngForOf",n.listOfPageSizeOption)("ngForTrackBy",n.trackByOption)}}function B(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e._uU(3),e.qZA()}if(2&c){const n=e.oxw();e.xp6(1),e.hij(" ",n.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",n.disabled),e.xp6(1),e.hij(" ",n.locale.page," ")}}function le(c,g){}const ze=function(c,g){return{$implicit:c,range:g}};function Ne(c,g){if(1&c&&(e.TgZ(0,"li",4),e.YNc(1,le,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.showTotal)("ngTemplateOutletContext",e.WLB(2,ze,n.total,n.ranges))}}function Fe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(m){return e.CHM(n),e.oxw(2).jumpPage(m)})("diffIndex",function(m){return e.CHM(n),e.oxw(2).jumpDiff(m)}),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("locale",l.locale)("type",n.type)("index",n.index)("disabled",!!n.disabled)("itemRender",l.itemRender)("active",l.pageIndex===n.index)("direction",l.dir)}}function Qe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)})("pageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("total",n.total)("locale",n.locale)("disabled",n.disabled)("nzSize",n.nzSize)("showSizeChanger",n.showSizeChanger)("showQuickJumper",n.showQuickJumper)("pageIndex",n.pageIndex)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)}}function Ve(c,g){if(1&c&&(e.YNc(0,Ne,2,5,"li",1),e.YNc(1,Fe,1,7,"li",2),e.YNc(2,Qe,1,9,"div",3)),2&c){const n=e.oxw();e.Q6J("ngIf",n.showTotal),e.xp6(1),e.Q6J("ngForOf",n.listOfPageItem)("ngForTrackBy",n.trackByPageItem),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper||n.showSizeChanger)}}function we(c,g){}function je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,we,0,0,"ng-template",6),e.BQk()),2&c){e.oxw(2);const n=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)}}function et(c,g){if(1&c&&(e.ynx(0),e.YNc(1,je,2,1,"ng-container",5),e.BQk()),2&c){const n=e.oxw(),l=e.MAs(4);e.xp6(1),e.Q6J("ngIf",n.nzSimple)("ngIfElse",l.template)}}let He=(()=>{class c{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(n){var l,m,R,ee;const{locale:_e,index:ve,type:Ee}=n;(_e||ve||Ee)&&(this.title={page:`${this.index}`,next:null===(l=this.locale)||void 0===l?void 0:l.next_page,prev:null===(m=this.locale)||void 0===m?void 0:m.prev_page,prev_5:null===(R=this.locale)||void 0===R?void 0:R.prev_5,next_5:null===(ee=this.locale)||void 0===ee?void 0:ee.next_5}[this.type])}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.clickItem()}),2&n&&(e.uIk("title",l.title),e.ekj("ant-pagination-prev","prev"===l.type)("ant-pagination-next","next"===l.type)("ant-pagination-item","page"===l.type)("ant-pagination-jump-prev","prev_5"===l.type)("ant-pagination-jump-prev-custom-icon","prev_5"===l.type)("ant-pagination-jump-next","next_5"===l.type)("ant-pagination-jump-next-custom-icon","next_5"===l.type)("ant-pagination-disabled",l.disabled)("ant-pagination-item-active",l.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:K,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(n,l){if(1&n&&(e.YNc(0,ie,5,4,"ng-template",null,0,e.W1O),e.YNc(2,he,0,0,"ng-template",1)),2&n){const m=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",l.itemRender||m)("ngTemplateOutletContext",e.WLB(2,$,l.type,l.index))}},directives:[h.RF,h.n9,L.Ls,h.ED,h.tP],encapsulation:2,changeDetection:0}),c})(),st=(()=>{class c{constructor(n,l,m,R){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=R,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(n){const l=n.target,m=(0,f.He)(l.value,this.pageIndex);this.onPageIndexChange(m),l.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(n){this.pageIndexChange.next(n)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(n){const{pageIndex:l,total:m,pageSize:R}=n;(l||m||R)&&this.updateBindingValue()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination-simple"]],viewQuery:function(n,l){if(1&n&&e.Gf(se,7),2&n){let m;e.iGM(m=e.CRH())&&(l.template=m.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(n,l){1&n&&e.YNc(0,_,7,12,"ng-template",null,0,e.W1O)},directives:[He],encapsulation:2,changeDetection:0}),c})(),at=(()=>{class c{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(n){this.pageSize!==n&&this.pageSizeChange.next(n)}jumpToPageViaInput(n){const l=n.target,m=Math.floor((0,f.He)(l.value,this.pageIndex));this.pageIndexChange.next(m),l.value=""}trackByOption(n,l){return l.value}ngOnChanges(n){const{pageSize:l,pageSizeOptions:m,locale:R}=n;(l||m||R)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(ee=>({value:ee,label:`${ee} ${this.locale.items_per_page}`})))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:O,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(n,l){1&n&&(e.YNc(0,v,2,5,"nz-select",0),e.YNc(1,B,4,3,"div",1)),2&n&&(e.Q6J("ngIf",l.showSizeChanger),e.xp6(1),e.Q6J("ngIf",l.showQuickJumper))},directives:[Z.Vq,Z.Ip,h.O5,x.JJ,x.On,h.sg],encapsulation:2,changeDetection:0}),c})(),tt=(()=>{class c{constructor(n,l,m,R){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=R,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(n){this.onPageIndexChange(n)}jumpDiff(n){this.jumpPage(this.pageIndex+n)}trackByPageItem(n,l){return`${l.type}-${l.index}`}onPageIndexChange(n){this.pageIndexChange.next(n)}onPageSizeChange(n){this.pageSizeChange.next(n)}getLastIndex(n,l){return Math.ceil(n/l)}buildIndexes(){const n=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,n)}getListOfPageItem(n,l){const R=(ee,_e)=>{const ve=[];for(let Ee=ee;Ee<=_e;Ee++)ve.push({index:Ee,type:"page"});return ve};return ee=l<=9?R(1,l):((_e,ve)=>{let Ee=[];const $e={type:"prev_5"},Te={type:"next_5"},dt=R(1,1),Tt=R(l,l);return Ee=_e<5?[...R(2,4===_e?6:5),Te]:_e{class c{constructor(n,l,m,R,ee){this.i18n=n,this.cdr=l,this.breakpointService=m,this.nzConfigService=R,this.directionality=ee,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new M.xQ,this.total$=new N.t(1)}validatePageIndex(n,l){return n>l?l:n<1?1:n}onPageIndexChange(n){const l=this.getLastIndex(this.nzTotal,this.nzPageSize),m=this.validatePageIndex(n,l);m!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=m,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(n){this.nzPageSize=n,this.nzPageSizeChange.emit(n);const l=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>l&&this.onPageIndexChange(l)}onTotalChange(n){const l=this.getLastIndex(n,this.nzPageSize);this.nzPageIndex>l&&Promise.resolve().then(()=>{this.onPageIndexChange(l),this.cdr.markForCheck()})}getLastIndex(n,l){return Math.ceil(n/l)}ngOnInit(){var n;this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.onTotalChange(l)}),this.breakpointService.subscribe(T.WV).pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.nzResponsive&&(this.size=l===T.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(n){const{nzHideOnSinglePage:l,nzTotal:m,nzPageSize:R,nzSize:ee}=n;m&&this.total$.next(this.nzTotal),(l||m||R)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),ee&&(this.size=ee.currentValue)}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(E.wi),e.Y36(e.sBO),e.Y36(T.r3),e.Y36(y.jY),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(n,l){2&n&&e.ekj("ant-pagination-simple",l.nzSimple)("ant-pagination-disabled",l.nzDisabled)("mini",!l.nzSimple&&"small"===l.size)("ant-pagination-rtl","rtl"===l.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,et,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(R){return l.onPageIndexChange(R)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(R){return l.onPageIndexChange(R)})("pageSizeChange",function(R){return l.onPageSizeChange(R)}),e.qZA()),2&n&&(e.Q6J("ngIf",l.showPagination),e.xp6(1),e.Q6J("disabled",l.nzDisabled)("itemRender",l.nzItemRender)("locale",l.locale)("pageSize",l.nzPageSize)("total",l.nzTotal)("pageIndex",l.nzPageIndex),e.xp6(2),e.Q6J("nzSize",l.size)("itemRender",l.nzItemRender)("showTotal",l.nzShowTotal)("disabled",l.nzDisabled)("locale",l.locale)("showSizeChanger",l.nzShowSizeChanger)("showQuickJumper",l.nzShowQuickJumper)("total",l.nzTotal)("pageIndex",l.nzPageIndex)("pageSize",l.nzPageSize)("pageSizeOptions",l.nzPageSizeOptions))},directives:[st,tt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,w.gn)([(0,y.oS)()],c.prototype,"nzPageSizeOptions",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzDisabled",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzResponsive",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,w.gn)([(0,f.Rn)()],c.prototype,"nzTotal",void 0),(0,w.gn)([(0,f.Rn)()],c.prototype,"nzPageIndex",void 0),(0,w.gn)([(0,f.Rn)()],c.prototype,"nzPageSize",void 0),c})(),oe=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,h.ez,x.u5,Z.LV,E.YI,L.PV]]}),c})();var ye=a(3868),Oe=a(7525),Re=a(3753),ue=a(591),Me=a(6053),Be=a(6787),Le=a(8896),Ze=a(1086),Ae=a(4850),Pe=a(1059),De=a(7545),Ke=a(13),Ue=a(8583),Ye=a(2198),Ge=a(5778),it=a(1307),nt=a(1709),rt=a(2683),ot=a(2643);const Xe=["*"];function _t(c,g){}function yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function Ot(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function xt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const R=e.CHM(n).$implicit;return e.oxw(2).check(R)}),e.YNc(1,yt,1,1,"label",13),e.YNc(2,Ot,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("nzSelected",n.checked),e.xp6(1),e.Q6J("ngIf",!l.filterMultiple),e.xp6(1),e.Q6J("ngIf",l.filterMultiple),e.xp6(2),e.Oqu(n.text)}}function z(c,g){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(m){return e.CHM(n),e.oxw().onVisibleChange(m)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,xt,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(n),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(n),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&c){const n=e.MAs(4),l=e.oxw();e.xp6(1),e.Q6J("nzVisible",l.isVisible)("nzActive",l.isChecked)("nzDropdownMenu",n),e.xp6(6),e.Q6J("ngForOf",l.listOfParsedFilter)("ngForTrackBy",l.trackByValue),e.xp6(2),e.Q6J("disabled",!l.isChecked),e.xp6(1),e.hij(" ",l.locale.filterReset," "),e.xp6(2),e.Oqu(l.locale.filterConfirm)}}function r(c,g){}function p(c,g){if(1&c&&e._UZ(0,"i",6),2&c){const n=e.oxw();e.ekj("active","ascend"===n.sortOrder)}}function F(c,g){if(1&c&&e._UZ(0,"i",7),2&c){const n=e.oxw();e.ekj("active","descend"===n.sortOrder)}}const Ie=["nzColumnKey",""];function We(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(m){return e.CHM(n),e.oxw().onFilterValueChange(m)}),e.qZA()}if(2&c){const n=e.oxw(),l=e.MAs(2),m=e.MAs(4);e.Q6J("contentTemplate",l)("extraTemplate",m)("customFilter",n.nzCustomFilter)("filterMultiple",n.nzFilterMultiple)("listOfFilter",n.nzFilters)}}function lt(c,g){}function ht(c,g){if(1&c&&e.YNc(0,lt,0,0,"ng-template",6),2&c){const n=e.oxw(),l=e.MAs(6),m=e.MAs(8);e.Q6J("ngTemplateOutlet",n.nzShowSort?l:m)}}function St(c,g){1&c&&(e.Hsn(0),e.Hsn(1,1))}function wt(c,g){if(1&c&&e._UZ(0,"nz-table-sorters",7),2&c){const n=e.oxw(),l=e.MAs(8);e.Q6J("sortOrder",n.sortOrder)("sortDirections",n.sortDirections)("contentTemplate",l)}}function Pt(c,g){1&c&&e.Hsn(0,2)}const Ft=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],bt=["[nz-th-extra]","nz-filter-trigger","*"],Rt=["nz-table-content",""];function Bt(c,g){if(1&c&&e._UZ(0,"col"),2&c){const n=g.$implicit;e.Udp("width",n)("min-width",n)}}function kt(c,g){}function Lt(c,g){if(1&c&&(e.TgZ(0,"thead",3),e.YNc(1,kt,0,0,"ng-template",2),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.theadTemplate)}}function Dt(c,g){}const Mt=["tdElement"],Zt=["nz-table-fixed-row",""];function $t(c,g){}function Wt(c,g){if(1&c&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,$t,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(),l=e.MAs(5);e.Udp("width",e.lcZ(1,3,n.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",l)}}function Nt(c,g){1&c&&e.Hsn(0)}const Qt=["nz-table-measure-row",""];function Ut(c,g){1&c&&e._UZ(0,"td",1,2)}function Yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(m){return e.CHM(n),e.oxw(2).onListOfAutoWidthChange(m)}),e.qZA()}if(2&c){const n=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",n)}}function It(c,g){if(1&c&&(e.ynx(0),e.YNc(1,Yt,1,1,"tr",2),e.BQk()),2&c){const n=g.ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngIf",l.isInsideTable&&n.length)}}function Vt(c,g){if(1&c&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,n.noResult$))}}const Ht=["tableHeaderElement"],Jt=["tableBodyElement"];function qt(c,g){if(1&c&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("contentTemplate",n.contentTemplate)}}function en(c,g){}const tn=function(c,g){return{$implicit:c,index:g}};function nn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,en,0,0,"ng-template",13),e.BQk()),2&c){const n=g.$implicit,l=g.index,m=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",m.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,tn,n,l))}}function on(c,g){if(1&c&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,nn,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&c){const n=e.oxw(2);e.Udp("height",n.data.length?n.scrollY:n.noDateVirtualHeight),e.Q6J("itemSize",n.virtualItemSize)("maxBufferPx",n.virtualMaxBufferPx)("minBufferPx",n.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",n.data)("cdkVirtualForTrackBy",n.virtualForTrackBy)}}function an(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,qt,3,4,"div",5),e.YNc(5,on,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngStyle",n.headerStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate),e.xp6(1),e.Q6J("ngIf",!n.virtualTemplate),e.xp6(1),e.Q6J("ngIf",n.virtualTemplate)}}function sn(c,g){if(1&c&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&c){const n=e.oxw();e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",n.contentTemplate)}}function rn(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.title)}}function ln(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.footer)}}function cn(c,g){}function dn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function pn(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",11),2&c){const n=e.oxw();e.Q6J("title",n.nzTitle)}}function hn(c,g){if(1&c&&e._UZ(0,"nz-table-inner-scroll",12),2&c){const n=e.oxw(),l=e.MAs(13),m=e.MAs(3);e.Q6J("data",n.data)("scrollX",n.scrollX)("scrollY",n.scrollY)("contentTemplate",l)("listOfColWidth",n.listOfAutoColWidth)("theadTemplate",n.theadTemplate)("verticalScrollBarWidth",n.verticalScrollBarWidth)("virtualTemplate",n.nzVirtualScrollDirective?n.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",n.nzVirtualItemSize)("virtualMaxBufferPx",n.nzVirtualMaxBufferPx)("virtualMinBufferPx",n.nzVirtualMinBufferPx)("tableMainElement",m)("virtualForTrackBy",n.nzVirtualForTrackBy)}}function ke(c,g){if(1&c&&e._UZ(0,"nz-table-inner-default",13),2&c){const n=e.oxw(),l=e.MAs(13);e.Q6J("tableLayout",n.nzTableLayout)("listOfColWidth",n.listOfManualColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",l)}}function Et(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",14),2&c){const n=e.oxw();e.Q6J("footer",n.nzFooter)}}function un(c,g){}function fn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,un,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function gn(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)})("nzPageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("hidden",!n.showPagination)("nzShowSizeChanger",n.nzShowSizeChanger)("nzPageSizeOptions",n.nzPageSizeOptions)("nzItemRender",n.nzItemRender)("nzShowQuickJumper",n.nzShowQuickJumper)("nzHideOnSinglePage",n.nzHideOnSinglePage)("nzShowTotal",n.nzShowTotal)("nzSize","small"===n.nzPaginationType?"small":"default"===n.nzSize?"default":"small")("nzPageSize",n.nzPageSize)("nzTotal",n.nzTotal)("nzSimple",n.nzSimple)("nzPageIndex",n.nzPageIndex)}}function mn(c,g){if(1&c&&e.YNc(0,gn,1,12,"nz-pagination",15),2&c){const n=e.oxw();e.Q6J("ngIf",n.nzShowPagination&&n.data.length)}}function _n(c,g){1&c&&e.Hsn(0)}const U=["contentTemplate"];function fe(c,g){1&c&&e.Hsn(0)}function xe(c,g){}function Je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,xe,0,0,"ng-template",2),e.BQk()),2&c){e.oxw();const n=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}let ct=(()=>{class c{constructor(n,l,m,R){this.nzConfigService=n,this.ngZone=l,this.cdr=m,this.destroy$=R,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(n){this.nzVisible=n,this.nzVisibleChange.next(n)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Re.R)(this.nzDropdown.nativeElement,"click").pipe((0,C.R)(this.destroy$)).subscribe(n=>{n.stopPropagation()})})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(y.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(T.kn))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-filter-trigger"]],viewQuery:function(n,l){if(1&n&&e.Gf(D.cm,7,e.SBq),2&n){let m;e.iGM(m=e.CRH())&&(l.nzDropdown=m.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([T.kn])],ngContentSelectors:Xe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(n,l){1&n&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(R){return l.onVisibleChange(R)}),e.Hsn(1),e.qZA()),2&n&&(e.ekj("active",l.nzActive)("ant-table-filter-open",l.nzVisible),e.Q6J("nzBackdrop",l.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible))},directives:[D.cm],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBackdrop",void 0),c})(),qe=(()=>{class c{constructor(n,l){this.cdr=n,this.i18n=l,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new M.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(n,l){return l.value}check(n){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(l=>l===n?Object.assign(Object.assign({},l),{checked:!n.checked}):l),n.checked=!n.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(l=>Object.assign(Object.assign({},l),{checked:l===n})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(n){this.isVisible=n,n?this.listOfChecked=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value):this.emitFilterData()}emitFilterData(){const n=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value);(0,f.cO)(this.listOfChecked,n)||this.filterChange.emit(this.filterMultiple?n:n.length>0?n[0]:null)}parseListOfFilter(n,l){return n.map(m=>({text:m.text,value:m.value,checked:!l&&!!m.byDefault}))}getCheckedStatus(n){return n.some(l=>l.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(n){const{listOfFilter:l}=n;l&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(E.wi))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,_t,0,0,"ng-template",1),e.qZA(),e.YNc(2,z,13,8,"ng-container",2)),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.Q6J("ngIf",!l.customFilter)("ngIfElse",l.extraTemplate))},directives:[ct,D.RR,ye.Of,P.Ie,b.ix,h.tP,h.O5,rt.w,L.Ls,V.wO,h.sg,V.r9,x.JJ,x.On,ot.dQ],encapsulation:2,changeDetection:0}),c})(),Gt=(()=>{class c{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(n){const{sortDirections:l}=n;l&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,r,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,p,1,2,"i",4),e.YNc(5,F,1,2,"i",5),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",l.isDown&&l.isUp),e.xp6(2),e.Q6J("ngIf",l.isUp),e.xp6(1),e.Q6J("ngIf",l.isDown))},directives:[h.tP,h.O5,rt.w,L.Ls],encapsulation:2,changeDetection:0}),c})(),Ct=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new M.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"left",n)}setAutoRightWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"right",n)}setIsFirstRight(n){this.setFixClass(n,"ant-table-cell-fix-right-first")}setIsLastLeft(n){this.setFixClass(n,"ant-table-cell-fix-left-last")}setFixClass(n,l){this.renderer.removeClass(this.elementRef.nativeElement,l),n&&this.renderer.addClass(this.elementRef.nativeElement,l)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const n=l=>"string"==typeof l&&""!==l?l:null;this.setAutoLeftWidth(n(this.nzLeft)),this.setAutoRightWidth(n(this.nzRight)),this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(n,l){2&n&&(e.Udp("position",l.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",l.isFixedRight)("ant-table-cell-fix-left",l.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),c})(),mt=(()=>{class c{constructor(){this.theadTemplate$=new N.t(1),this.hasFixLeft$=new N.t(1),this.hasFixRight$=new N.t(1),this.hostWidth$=new N.t(1),this.columnCount$=new N.t(1),this.showEmpty$=new N.t(1),this.noResult$=new N.t(1),this.listOfThWidthConfigPx$=new ue.X([]),this.tableWidthConfigPx$=new ue.X([]),this.manualWidthConfigPx$=(0,Me.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length?n:l)),this.listOfAutoWidthPx$=new N.t(1),this.listOfListOfThWidthPx$=(0,Be.T)(this.manualWidthConfigPx$,(0,Me.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length===l.length?n.map((m,R)=>"0px"===m?l[R]||null:l[R]||m):l))),this.listOfMeasureColumn$=new N.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,Ae.U)(n=>n.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new N.t(1)}setTheadTemplate(n){this.theadTemplate$.next(n)}setHasFixLeft(n){this.hasFixLeft$.next(n)}setHasFixRight(n){this.hasFixRight$.next(n)}setTableWidthConfig(n){this.tableWidthConfigPx$.next(n)}setListOfTh(n){let l=0;n.forEach(R=>{l+=R.colspan&&+R.colspan||R.colSpan&&+R.colSpan||1});const m=n.map(R=>R.nzWidth);this.columnCount$.next(l),this.listOfThWidthConfigPx$.next(m)}setListOfMeasureColumn(n){const l=[];n.forEach(m=>{const R=m.colspan&&+m.colspan||m.colSpan&&+m.colSpan||1;for(let ee=0;ee`${l}px`))}setShowEmpty(n){this.showEmpty$.next(n)}setNoResult(n){this.noResult$.next(n)}setScroll(n,l){const m=!(!n&&!l);m||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(m)}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Xt=(()=>{class c{constructor(n){this.isInsideTable=!1,this.isInsideTable=!!n}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-cell",l.isInsideTable)}}),c})(),jt=(()=>{class c{constructor(n){this.cdr=n,this.manualClickOrder$=new M.xQ,this.calcOperatorChange$=new M.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new M.xQ,this.destroy$=new M.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(n,l){const m=n.indexOf(l);return m===n.length-1?n[0]:n[m+1]}emitNextSortValue(){if(this.nzShowSort){const n=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(n),this.manualClickOrder$.next(this)}}setSortOrder(n){this.sortOrderChange$.next(n)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(n){this.nzFilterChange.emit(n),this.nzFilterValue=n,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.sortOrder!==n&&(this.sortOrder=n,this.nzSortOrderChange.emit(n)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(n){const{nzSortDirections:l,nzFilters:m,nzSortOrder:R,nzSortFn:ee,nzFilterFn:_e,nzSortPriority:ve,nzFilterMultiple:Ee,nzShowSort:$e,nzShowFilter:Te}=n;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),R&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),$e&&(this.isNzShowSortChanged=!0),Te&&(this.isNzShowFilterChanged=!0);const dt=Tt=>Tt&&Tt.firstChange&&void 0!==Tt.currentValue;if((dt(R)||dt(ee))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),dt(m)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(m||Ee)&&this.nzShowFilter){const Tt=this.nzFilters.filter(At=>At.byDefault).map(At=>At.value);this.nzFilterValue=this.nzFilterMultiple?Tt:Tt[0]||null}(ee||_e||ve||m)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO))},c.\u0275cmp=e.Xpm({type:c,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.emitNextSortValue()}),2&n&&e.ekj("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort","descend"===l.sortOrder||"ascend"===l.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:Ie,ngContentSelectors:bt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(n,l){if(1&n&&(e.F$t(Ft),e.YNc(0,We,1,5,"nz-table-filter",0),e.YNc(1,ht,1,1,"ng-template",null,1,e.W1O),e.YNc(3,St,2,0,"ng-template",null,2,e.W1O),e.YNc(5,wt,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Pt,1,0,"ng-template",null,4,e.W1O)),2&n){const m=e.MAs(2);e.Q6J("ngIf",l.nzShowFilter||l.nzCustomFilter)("ngIfElse",m)}},directives:[qe,Gt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,f.yF)()],c.prototype,"nzShowSort",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzShowFilter",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzCustomFilter",void 0),c})(),ut=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.changes$=new M.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(n){const{nzWidth:l,colspan:m,rowspan:R,colSpan:ee,rowSpan:_e}=n;if(m||ee){const ve=this.colspan||this.colSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${ve}`)}if(R||_e){const ve=this.rowspan||this.rowSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${ve}`)}(l||m)&&this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),c})(),Tn=(()=>{class c{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,l){2&n&&(e.Udp("table-layout",l.tableLayout)("width",l.scrollX)("min-width",l.scrollX?"100%":null),e.ekj("ant-table-fixed",l.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Rt,ngContentSelectors:Xe,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Bt,1,4,"col",0),e.YNc(1,Lt,2,1,"thead",1),e.YNc(2,Dt,0,0,"ng-template",2),e.Hsn(3)),2&n&&(e.Q6J("ngForOf",l.listOfColWidth),e.xp6(1),e.Q6J("ngIf",l.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate))},directives:[h.sg,h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),bn=(()=>{class c{constructor(n,l){this.nzTableStyleService=n,this.renderer=l,this.hostWidth$=new ue.X(null),this.enableAutoMeasure$=new ue.X(!1),this.destroy$=new M.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:n,hostWidth$:l}=this.nzTableStyleService;n.pipe((0,C.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${n}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt),e.Y36(e.Qsj))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,7),2&n){let m;e.iGM(m=e.CRH())&&(l.tdElement=m.first)}},attrs:Zt,ngContentSelectors:Xe,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,Wt,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Nt,1,0,"ng-template",null,3,e.W1O)),2&n){const m=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,l.enableAutoMeasure$))("ngIfElse",m)}},directives:[h.O5,h.tP],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),Dn=(()=>{class c{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(n,l){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("contentTemplate",l.contentTemplate)("tableLayout",l.tableLayout)("listOfColWidth",l.listOfColWidth)("theadTemplate",l.theadTemplate))},directives:[Tn],encapsulation:2,changeDetection:0}),c})(),Mn=(()=>{class c{constructor(n,l){this.nzResizeObserver=n,this.ngZone=l,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new M.xQ}trackByFunc(n,l){return l}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Pe.O)(this.listOfTdElement)).pipe((0,De.w)(n=>(0,Me.aj)(n.toArray().map(l=>this.nzResizeObserver.observe(l).pipe((0,Ae.U)(([m])=>{const{width:R}=m.target.getBoundingClientRect();return Math.floor(R)}))))),(0,Ke.b)(16),(0,C.R)(this.destroy$)).subscribe(n=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(n)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(A.D3),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,5),2&n){let m;e.iGM(m=e.CRH())&&(l.listOfTdElement=m)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Qt,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(n,l){1&n&&e.YNc(0,Ut,2,0,"td",0),2&n&&e.Q6J("ngForOf",l.listOfMeasureColumn)("ngForTrackBy",l.trackByFunc)},directives:[h.sg],encapsulation:2,changeDetection:0}),c})(),yn=(()=>{class c{constructor(n){if(this.nzTableStyleService=n,this.isInsideTable=!1,this.showEmpty$=new ue.X(!1),this.noResult$=new ue.X(void 0),this.listOfMeasureColumn$=new ue.X([]),this.destroy$=new M.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:l,noResult$:m,listOfMeasureColumn$:R}=this.nzTableStyleService;m.pipe((0,C.R)(this.destroy$)).subscribe(this.noResult$),R.pipe((0,C.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(n){this.nzTableStyleService.setListOfAutoWidth(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-tbody",l.isInsideTable)},ngContentSelectors:Xe,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,It,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Vt,3,3,"tr",1),e.ALo(4,"async")),2&n&&(e.Q6J("ngIf",e.lcZ(1,2,l.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,l.showEmpty$)))},directives:[Mn,bn,S.gB,h.O5],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),On=(()=>{class c{constructor(n,l,m,R){this.renderer=n,this.ngZone=l,this.platform=m,this.resizeService=R,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=ee=>ee,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new M.xQ,this.scroll$=new M.xQ,this.destroy$=new M.xQ}setScrollPositionClassName(n=!1){const{scrollWidth:l,scrollLeft:m,clientWidth:R}=this.tableBodyElement.nativeElement,ee="ant-table-ping-left",_e="ant-table-ping-right";l===R&&0!==l||n?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.removeClass(this.tableMainElement,_e)):0===m?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e)):l===m+R?(this.renderer.removeClass(this.tableMainElement,_e),this.renderer.addClass(this.tableMainElement,ee)):(this.renderer.addClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e))}ngOnChanges(n){const{scrollX:l,scrollY:m,data:R}=n;if(l||m){const ee=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&ee?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}R&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const n=this.scroll$.pipe((0,Pe.O)(null),(0,Ue.g)(0),(0,De.w)(()=>(0,Re.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Pe.O)(!0))),(0,C.R)(this.destroy$)),l=this.resizeService.subscribe().pipe((0,C.R)(this.destroy$)),m=this.data$.pipe((0,C.R)(this.destroy$));(0,Be.T)(n,l,m,this.scroll$).pipe((0,Pe.O)(!0),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),n.pipe((0,Ye.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(t.t4),e.Y36(T.rI))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,l){if(1&n&&(e.Gf(Ht,5,e.SBq),e.Gf(Jt,5,e.SBq),e.Gf(o.N7,5,o.N7)),2&n){let m;e.iGM(m=e.CRH())&&(l.tableHeaderElement=m.first),e.iGM(m=e.CRH())&&(l.tableBodyElement=m.first),e.iGM(m=e.CRH())&&(l.cdkVirtualScrollViewport=m.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(n,l){1&n&&(e.YNc(0,an,6,6,"ng-container",0),e.YNc(1,sn,3,5,"div",1)),2&n&&(e.Q6J("ngIf",l.scrollY),e.xp6(1),e.Q6J("ngIf",!l.scrollY))},directives:[Tn,o.N7,yn,h.O5,h.PC,o.xd,o.x0,h.tP],encapsulation:2,changeDetection:0}),c})(),Nn=(()=>{class c{constructor(n){this.templateRef=n}static ngTemplateContextGuard(n,l){return!0}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Rgc))},c.\u0275dir=e.lG2({type:c,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),c})(),zn=(()=>{class c{constructor(){this.destroy$=new M.xQ,this.pageIndex$=new ue.X(1),this.frontPagination$=new ue.X(!0),this.pageSize$=new ue.X(10),this.listOfData$=new ue.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Ge.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Ge.x)()),this.listOfCalcOperator$=new ue.X([]),this.queryParams$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,Ke.b)(0),(0,it.T)(1),(0,Ae.U)(([n,l,m])=>({pageIndex:n,pageSize:l,sort:m.filter(R=>R.sortFn).map(R=>({key:R.key,value:R.sortOrder})),filter:m.filter(R=>R.filterFn).map(R=>({key:R.key,value:R.filterValue}))}))),this.listOfDataAfterCalc$=(0,Me.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,Ae.U)(([n,l])=>{let m=[...n];const R=l.filter(_e=>{const{filterValue:ve,filterFn:Ee}=_e;return!(null==ve||Array.isArray(ve)&&0===ve.length)&&"function"==typeof Ee});for(const _e of R){const{filterFn:ve,filterValue:Ee}=_e;m=m.filter($e=>ve(Ee,$e))}const ee=l.filter(_e=>null!==_e.sortOrder&&"function"==typeof _e.sortFn).sort((_e,ve)=>+ve.sortPriority-+_e.sortPriority);return l.length&&m.sort((_e,ve)=>{for(const Ee of ee){const{sortFn:$e,sortOrder:Te}=Ee;if($e&&Te){const dt=$e(_e,ve,Te);if(0!==dt)return"ascend"===Te?dt:-dt}}return 0}),m})),this.listOfFrontEndCurrentPageData$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,C.R)(this.destroy$),(0,Ye.h)(n=>{const[l,m,R]=n;return l<=(Math.ceil(R.length/m)||1)}),(0,Ae.U)(([n,l,m])=>m.slice((n-1)*l,n*l))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfDataAfterCalc$:this.listOfData$),(0,Ae.U)(n=>n.length),(0,Ge.x)())}updatePageSize(n){this.pageSize$.next(n)}updateFrontPagination(n){this.frontPagination$.next(n)}updatePageIndex(n){this.pageIndex$.next(n)}updateListOfData(n){this.listOfData$.next(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),In=(()=>{class c{constructor(){this.title=null,this.footer=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,l){2&n&&e.ekj("ant-table-title",null!==l.title)("ant-table-footer",null!==l.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,rn,2,1,"ng-container",0),e.YNc(1,ln,2,1,"ng-container",0)),2&n&&(e.Q6J("nzStringTemplateOutlet",l.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",l.footer))},directives:[k.f],encapsulation:2,changeDetection:0}),c})(),En=(()=>{class c{constructor(n,l,m,R,ee,_e,ve){this.elementRef=n,this.nzResizeObserver=l,this.nzConfigService=m,this.cdr=R,this.nzTableStyleService=ee,this.nzTableDataService=_e,this.directionality=ve,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Ee=>Ee,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new M.xQ,this.templateMode$=new ue.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(n){this.nzTableDataService.updatePageSize(n)}onPageIndexChange(n){this.nzTableDataService.updatePageIndex(n)}ngOnInit(){var n;const{pageIndexDistinct$:l,pageSizeDistinct$:m,listOfCurrentPageData$:R,total$:ee,queryParams$:_e}=this.nzTableDataService,{theadTemplate$:ve,hasFixLeft$:Ee,hasFixRight$:$e}=this.nzTableStyleService;this.dir=this.directionality.value,null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.dir=Te,this.cdr.detectChanges()}),_e.pipe((0,C.R)(this.destroy$)).subscribe(this.nzQueryParams),l.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageIndex&&(this.nzPageIndex=Te,this.nzPageIndexChange.next(Te))}),m.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageSize&&(this.nzPageSize=Te,this.nzPageSizeChange.next(Te))}),ee.pipe((0,C.R)(this.destroy$),(0,Ye.h)(()=>this.nzFrontPagination)).subscribe(Te=>{Te!==this.nzTotal&&(this.nzTotal=Te,this.cdr.markForCheck())}),R.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.data=Te,this.nzCurrentPageDataChange.next(Te),this.cdr.markForCheck()}),ve.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.theadTemplate=Te,this.cdr.markForCheck()}),Ee.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixLeft=Te,this.cdr.markForCheck()}),$e.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixRight=Te,this.cdr.markForCheck()}),(0,Me.aj)([ee,this.templateMode$]).pipe((0,Ae.U)(([Te,dt])=>0===Te&&!dt),(0,C.R)(this.destroy$)).subscribe(Te=>{this.nzTableStyleService.setShowEmpty(Te)}),this.verticalScrollBarWidth=(0,f.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfAutoColWidth=Te,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfManualColWidth=Te,this.cdr.markForCheck()})}ngOnChanges(n){const{nzScroll:l,nzPageIndex:m,nzPageSize:R,nzFrontPagination:ee,nzData:_e,nzWidthConfig:ve,nzNoResult:Ee,nzTemplateMode:$e}=n;m&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),R&&this.nzTableDataService.updatePageSize(this.nzPageSize),_e&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),ee&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),l&&this.setScrollOnChanges(),ve&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),$e&&this.templateMode$.next(this.nzTemplateMode),Ee&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,Ae.U)(([n])=>{const{width:l}=n.target.getBoundingClientRect();return Math.floor(l-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,C.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(A.D3),e.Y36(y.jY),e.Y36(e.sBO),e.Y36(mt),e.Y36(zn),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table"]],contentQueries:function(n,l,m){if(1&n&&e.Suo(m,Nn,5),2&n){let R;e.iGM(R=e.CRH())&&(l.nzVirtualScrollDirective=R.first)}},viewQuery:function(n,l){if(1&n&&e.Gf(On,5),2&n){let m;e.iGM(m=e.CRH())&&(l.nzTableInnerScrollComponent=m.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-wrapper-rtl","rtl"===l.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([mt,zn]),e.TTD],ngContentSelectors:Xe,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,dn,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,pn,1,1,"nz-table-title-footer",4),e.YNc(5,hn,1,13,"nz-table-inner-scroll",5),e.YNc(6,ke,1,4,"ng-template",null,6,e.W1O),e.YNc(8,Et,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,fn,2,1,"ng-container",1),e.qZA(),e.YNc(10,mn,1,1,"ng-template",null,8,e.W1O),e.YNc(12,_n,1,0,"ng-template",null,9,e.W1O)),2&n){const m=e.MAs(7);e.Q6J("nzDelay",l.nzLoadingDelay)("nzSpinning",l.nzLoading)("nzIndicator",l.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"top"===l.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===l.dir)("ant-table-fixed-header",l.nzData.length&&l.scrollY)("ant-table-fixed-column",l.scrollX)("ant-table-has-fix-left",l.hasFixLeft)("ant-table-has-fix-right",l.hasFixRight)("ant-table-bordered",l.nzBordered)("nz-table-out-bordered",l.nzOuterBordered&&!l.nzBordered)("ant-table-middle","middle"===l.nzSize)("ant-table-small","small"===l.nzSize),e.xp6(2),e.Q6J("ngIf",l.nzTitle),e.xp6(1),e.Q6J("ngIf",l.scrollY||l.scrollX)("ngIfElse",m),e.xp6(3),e.Q6J("ngIf",l.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"bottom"===l.nzPaginationPosition)}},directives:[Oe.W,In,On,Dn,X,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,f.yF)()],c.prototype,"nzFrontPagination",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzTemplateMode",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzShowPagination",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzLoading",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzOuterBordered",void 0),(0,w.gn)([(0,y.oS)()],c.prototype,"nzLoadingIndicator",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBordered",void 0),(0,w.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),c})(),Sn=(()=>{class c{constructor(n){this.nzTableStyleService=n,this.destroy$=new M.xQ,this.listOfFixedColumns$=new N.t(1),this.listOfColumns$=new N.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfFixedColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfFixedColumns$))),(0,C.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfColumns$))),(0,C.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!n}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Pe.O)(this.listOfCellFixedDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Pe.O)(this.listOfNzThDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsLastLeft(l===n[n.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsFirstRight(l===n[0]))}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,R)=>{if(m.isAutoLeft){const _e=l.slice(0,R).reduce((Ee,$e)=>Ee+($e.colspan||$e.colSpan||1),0),ve=n.slice(0,_e).reduce((Ee,$e)=>Ee+$e,0);m.setAutoLeftWidth(`${ve}px`)}})}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,R)=>{const ee=l[l.length-R-1];if(ee.isAutoRight){const ve=l.slice(l.length-R,l.length).reduce(($e,Te)=>$e+(Te.colspan||Te.colSpan||1),0),Ee=n.slice(n.length-ve,n.length).reduce(($e,Te)=>$e+Te,0);ee.setAutoRightWidth(`${Ee}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,ut,4),e.Suo(m,Ct,4)),2&n){let R;e.iGM(R=e.CRH())&&(l.listOfNzThDirective=R),e.iGM(R=e.CRH())&&(l.listOfCellFixedDirective=R)}},hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-row",l.isInsideTable)}}),c})(),An=(()=>{class c{constructor(n,l,m,R){this.elementRef=n,this.renderer=l,this.nzTableStyleService=m,this.nzTableDataService=R,this.destroy$=new M.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const n=this.listOfNzTrDirective.changes.pipe((0,Pe.O)(this.listOfNzTrDirective),(0,Ae.U)(ee=>ee&&ee.first)),l=n.pipe((0,De.w)(ee=>ee?ee.listOfColumnsChanges$:Le.E),(0,C.R)(this.destroy$));l.subscribe(ee=>this.nzTableStyleService.setListOfTh(ee)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,De.w)(ee=>ee?l:(0,Ze.of)([]))).pipe((0,C.R)(this.destroy$)).subscribe(ee=>this.nzTableStyleService.setListOfMeasureColumn(ee));const m=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedLeftColumnChanges$:Le.E),(0,C.R)(this.destroy$)),R=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedRightColumnChanges$:Le.E),(0,C.R)(this.destroy$));m.subscribe(ee=>{this.nzTableStyleService.setHasFixLeft(0!==ee.length)}),R.subscribe(ee=>{this.nzTableStyleService.setHasFixRight(0!==ee.length)})}if(this.nzTableDataService){const n=this.listOfNzThAddOnComponent.changes.pipe((0,Pe.O)(this.listOfNzThAddOnComponent));n.pipe((0,De.w)(()=>(0,Be.T)(...this.listOfNzThAddOnComponent.map(R=>R.manualClickOrder$))),(0,C.R)(this.destroy$)).subscribe(R=>{this.nzSortOrderChange.emit({key:R.nzColumnKey,value:R.sortOrder}),R.nzSortFn&&!1===R.nzSortPriority&&this.listOfNzThAddOnComponent.filter(_e=>_e!==R).forEach(_e=>_e.clearSortOrder())}),n.pipe((0,De.w)(R=>(0,Be.T)(n,...R.map(ee=>ee.calcOperatorChange$)).pipe((0,nt.zg)(()=>n))),(0,Ae.U)(R=>R.filter(ee=>!!ee.nzSortFn||!!ee.nzFilterFn).map(ee=>{const{nzSortFn:_e,sortOrder:ve,nzFilterFn:Ee,nzFilterValue:$e,nzSortPriority:Te,nzColumnKey:dt}=ee;return{key:dt,sortFn:_e,sortPriority:Te,sortOrder:ve,filterFn:Ee,filterValue:$e}})),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(R=>{this.nzTableDataService.listOfCalcOperator$.next(R)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(mt,8),e.Y36(zn,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,Sn,5),e.Suo(m,jt,5)),2&n){let R;e.iGM(R=e.CRH())&&(l.listOfNzTrDirective=R),e.iGM(R=e.CRH())&&(l.listOfNzThAddOnComponent=R)}},viewQuery:function(n,l){if(1&n&&e.Gf(U,7),2&n){let m;e.iGM(m=e.CRH())&&(l.templateRef=m.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Xe,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,fe,1,0,"ng-template",null,0,e.W1O),e.YNc(2,Je,2,1,"ng-container",1)),2&n&&(e.xp6(2),e.Q6J("ngIf",!l.isInsideTable))},directives:[h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),wn=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,V.ip,x.u5,k.T,ye.aF,P.Wr,D.b1,b.sL,h.ez,t.ud,oe,A.y7,Oe.j,E.YI,L.PV,S.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/66.d8b06f1fef317761.js b/src/blrec/data/webapp/66.d8b06f1fef317761.js new file mode 100644 index 0000000..90c7771 --- /dev/null +++ b/src/blrec/data/webapp/66.d8b06f1fef317761.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[66],{8737:(ae,E,a)=>{a.d(E,{Uk:()=>o,yT:()=>h,_m:()=>e,ip:()=>b,Dr:()=>O,Pu:()=>A,Fg:()=>F,rc:()=>I,tp:()=>D,O6:()=>S,D4:()=>P,$w:()=>L,Rc:()=>V});var i=a(8760),t=a(7355);const o="\u4f1a\u6309\u7167\u6b64\u9650\u5236\u81ea\u52a8\u5206\u5272\u6587\u4ef6",h="\u8bbe\u7f6e\u540c\u6b65\u5931\u8d25\uff01",e=/^(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?(?:\/(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?)*$/,b="{roomid} - {uname}/blive_{roomid}_{year}-{month}-{day}-{hour}{minute}{second}",O=[{name:"roomid",desc:"\u623f\u95f4\u53f7"},{name:"uname",desc:"\u4e3b\u64ad\u7528\u6237\u540d"},{name:"title",desc:"\u623f\u95f4\u6807\u9898"},{name:"area",desc:"\u76f4\u64ad\u5b50\u5206\u533a\u540d\u79f0"},{name:"parent_area",desc:"\u76f4\u64ad\u4e3b\u5206\u533a\u540d\u79f0"},{name:"year",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5e74\u4efd"},{name:"month",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u6708\u4efd"},{name:"day",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5929\u6570"},{name:"hour",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5c0f\u65f6"},{name:"minute",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5206\u949f"},{name:"second",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u79d2\u6570"}],A=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,21).map(w=>({label:`${w} GB`,value:1024**3*w}))],F=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,25).map(w=>({label:`${w} \u5c0f\u65f6`,value:3600*w}))],I=[{label:"\u81ea\u52a8",value:i.zu.AUTO},{label:"\u8c28\u614e",value:i.zu.SAFE},{label:"\u4ece\u4e0d",value:i.zu.NEVER}],D=[{label:"FLV",value:"flv"},{label:"HLS (ts)",value:"ts"},{label:"HLS (fmp4)",value:"fmp4"}],S=[{label:"4K",value:2e4},{label:"\u539f\u753b",value:1e4},{label:"\u84dd\u5149(\u675c\u6bd4)",value:401},{label:"\u84dd\u5149",value:400},{label:"\u8d85\u6e05",value:250},{label:"\u9ad8\u6e05",value:150},{label:"\u6d41\u7545",value:80}],P=[{label:"3 \u79d2",value:3},{label:"5 \u79d2",value:5},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],L=[{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600},{label:"15 \u5206\u949f",value:900},{label:"20 \u5206\u949f",value:1200},{label:"30 \u5206\u949f",value:1800}],V=[{label:"4 KB",value:4096},{label:"8 KB",value:8192},{label:"16 KB",value:16384},{label:"32 KB",value:32768},{label:"64 KB",value:65536},{label:"128 KB",value:131072},{label:"256 KB",value:262144},{label:"512 KB",value:524288},{label:"1 MB",value:1048576},{label:"2 MB",value:2097152},{label:"4 MB",value:4194304},{label:"8 MB",value:8388608},{label:"16 MB",value:16777216},{label:"32 MB",value:33554432},{label:"64 MB",value:67108864},{label:"128 MB",value:134217728},{label:"256 MB",value:268435456},{label:"512 MB",value:536870912}]},5136:(ae,E,a)=>{a.d(E,{R:()=>e});var i=a(2340),t=a(5e3),o=a(520);const h=i.N.apiUrl;let e=(()=>{class b{constructor(A){this.http=A}getSettings(A=null,F=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=A?A:[],exclude:null!=F?F:[]}})}changeSettings(A){return this.http.patch(h+"/api/v1/settings",A)}getTaskOptions(A){return this.http.get(h+`/api/v1/settings/tasks/${A}`)}changeTaskOptions(A,F){return this.http.patch(h+`/api/v1/settings/tasks/${A}`,F)}}return b.\u0275fac=function(A){return new(A||b)(t.LFG(o.eN))},b.\u0275prov=t.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},8760:(ae,E,a)=>{a.d(E,{zu:()=>i,gP:()=>t,gq:()=>o,q1:()=>h,_1:()=>e,X:()=>b});var i=(()=>{return(O=i||(i={})).AUTO="auto",O.SAFE="safe",O.NEVER="never",i;var O})();const t=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],o=["sendkey"],h=["token","topic"],e=["enabled"],b=["notifyBegan","notifyEnded","notifyError","notifySpace"]},7512:(ae,E,a)=>{a.d(E,{q:()=>F});var i=a(5545),t=a(5e3),o=a(9808),h=a(7525),e=a(1945);function b(I,D){if(1&I&&t._UZ(0,"nz-spin",2),2&I){const S=t.oxw();t.Q6J("nzSize","large")("nzSpinning",S.loading)}}function O(I,D){if(1&I&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&I){const S=t.oxw(2);t.Q6J("ngStyle",S.contentStyles),t.xp6(1),t.Q6J("ngTemplateOutlet",S.content.templateRef)}}function A(I,D){if(1&I&&(t.TgZ(0,"div",3),t._UZ(1,"nz-page-header",4),t.YNc(2,O,2,2,"div",5),t.qZA()),2&I){const S=t.oxw();t.Q6J("ngStyle",S.pageStyles),t.xp6(1),t.Q6J("nzTitle",S.pageTitle)("nzGhost",!1),t.xp6(1),t.Q6J("ngIf",S.content)}}let F=(()=>{class I{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return I.\u0275fac=function(S){return new(S||I)},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-sub-page"]],contentQueries:function(S,P,L){if(1&S&&t.Suo(L,i.Y,5),2&S){let V;t.iGM(V=t.CRH())&&(P.content=V.first)}},inputs:{pageTitle:"pageTitle",loading:"loading",pageStyles:"pageStyles",contentStyles:"contentStyles"},decls:3,vars:2,consts:[["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"spinner",3,"nzSize","nzSpinning"],[1,"sub-page",3,"ngStyle"],["nzBackIcon","",1,"page-header",3,"nzTitle","nzGhost"],["class","page-content",3,"ngStyle",4,"ngIf"],[1,"page-content",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(S,P){if(1&S&&(t.YNc(0,b,1,2,"nz-spin",0),t.YNc(1,A,3,4,"ng-template",null,1,t.W1O)),2&S){const L=t.MAs(2);t.Q6J("ngIf",P.loading)("ngIfElse",L)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),I})()},5545:(ae,E,a)=>{a.d(E,{Y:()=>t});var i=a(5e3);let t=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(i.Y36(i.Rgc))},o.\u0275dir=i.lG2({type:o,selectors:[["","appSubPageContent",""]]}),o})()},2134:(ae,E,a)=>{a.d(E,{e5:()=>h,AX:()=>e,N4:()=>b});var i=a(6422),t=a(1854),o=a(1999);function h(O,A){return function F(I,D){return(0,i.Z)(I,(S,P,L)=>{const V=Reflect.get(D,L);(0,t.Z)(P,V)||Reflect.set(S,L,(0,o.Z)(P)&&(0,o.Z)(V)?F(P,V):P)})}(O,A)}function e(O,A=" ",F=3){let I,D;if(O<=0)return"0 kbps/s";if(O<1e6)I=O/1e3,D="kbps";else if(O<1e9)I=O/1e6,D="Mbps";else if(O<1e12)I=O/1e9,D="Gbps";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);I=O/1e12,D="Tbps"}const S=F-Math.floor(Math.abs(Math.log10(I)))-1;return I.toFixed(S<0?0:S)+A+D}function b(O,A=" ",F=3){let I,D;if(O<=0)return"0B/s";if(O<1e3)I=O,D="B/s";else if(O<1e6)I=O/1e3,D="KB/s";else if(O<1e9)I=O/1e6,D="MB/s";else if(O<1e12)I=O/1e9,D="GB/s";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);I=O/1e12,D="TB/s"}const S=F-Math.floor(Math.abs(Math.log10(I)))-1;return I.toFixed(S<0?0:S)+A+D}},2622:(ae,E,a)=>{a.d(E,{Z:()=>M});var o=a(3093);const e=function h(N,C){for(var y=N.length;y--;)if((0,o.Z)(N[y][0],C))return y;return-1};var O=Array.prototype.splice;function w(N){var C=-1,y=null==N?0:N.length;for(this.clear();++C-1},w.prototype.set=function L(N,C){var y=this.__data__,T=e(y,N);return T<0?(++this.size,y.push([N,C])):y[T][1]=C,this};const M=w},9329:(ae,E,a)=>{a.d(E,{Z:()=>h});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"Map")},3639:(ae,E,a)=>{a.d(E,{Z:()=>ge});const o=(0,a(3858).Z)(Object,"create");var I=Object.prototype.hasOwnProperty;var L=Object.prototype.hasOwnProperty;function y(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}y.prototype.clear=function h(){this.__data__=o?o(null):{},this.size=0},y.prototype.delete=function b(ie){var he=this.has(ie)&&delete this.__data__[ie];return this.size-=he?1:0,he},y.prototype.get=function D(ie){var he=this.__data__;if(o){var $=he[ie];return"__lodash_hash_undefined__"===$?void 0:$}return I.call(he,ie)?he[ie]:void 0},y.prototype.has=function V(ie){var he=this.__data__;return o?void 0!==he[ie]:L.call(he,ie)},y.prototype.set=function N(ie,he){var $=this.__data__;return this.size+=this.has(ie)?0:1,$[ie]=o&&void 0===he?"__lodash_hash_undefined__":he,this};const T=y;var f=a(2622),Z=a(9329);const pe=function J(ie,he){var $=ie.__data__;return function te(ie){var he=typeof ie;return"string"==he||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==ie:null===ie}(he)?$["string"==typeof he?"string":"hash"]:$.map};function q(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}q.prototype.clear=function K(){this.size=0,this.__data__={hash:new T,map:new(Z.Z||f.Z),string:new T}},q.prototype.delete=function me(ie){var he=pe(this,ie).delete(ie);return this.size-=he?1:0,he},q.prototype.get=function be(ie){return pe(this,ie).get(ie)},q.prototype.has=function ce(ie){return pe(this,ie).has(ie)},q.prototype.set=function re(ie,he){var $=pe(this,ie),se=$.size;return $.set(ie,he),this.size+=$.size==se?0:1,this};const ge=q},5343:(ae,E,a)=>{a.d(E,{Z:()=>w});var i=a(2622);var I=a(9329),D=a(3639);function V(M){var N=this.__data__=new i.Z(M);this.size=N.size}V.prototype.clear=function t(){this.__data__=new i.Z,this.size=0},V.prototype.delete=function h(M){var N=this.__data__,C=N.delete(M);return this.size=N.size,C},V.prototype.get=function b(M){return this.__data__.get(M)},V.prototype.has=function A(M){return this.__data__.has(M)},V.prototype.set=function P(M,N){var C=this.__data__;if(C instanceof i.Z){var y=C.__data__;if(!I.Z||y.length<199)return y.push([M,N]),this.size=++C.size,this;C=this.__data__=new D.Z(y)}return C.set(M,N),this.size=C.size,this};const w=V},8492:(ae,E,a)=>{a.d(E,{Z:()=>o});const o=a(5946).Z.Symbol},1630:(ae,E,a)=>{a.d(E,{Z:()=>o});const o=a(5946).Z.Uint8Array},7585:(ae,E,a)=>{a.d(E,{Z:()=>t});const t=function i(o,h){for(var e=-1,b=null==o?0:o.length;++e{a.d(E,{Z:()=>D});var o=a(4825),h=a(4177),e=a(5202),b=a(6667),O=a(7583),F=Object.prototype.hasOwnProperty;const D=function I(S,P){var L=(0,h.Z)(S),V=!L&&(0,o.Z)(S),w=!L&&!V&&(0,e.Z)(S),M=!L&&!V&&!w&&(0,O.Z)(S),N=L||V||w||M,C=N?function i(S,P){for(var L=-1,V=Array(S);++L{a.d(E,{Z:()=>t});const t=function i(o,h){for(var e=-1,b=h.length,O=o.length;++e{a.d(E,{Z:()=>b});var i=a(3496),t=a(3093),h=Object.prototype.hasOwnProperty;const b=function e(O,A,F){var I=O[A];(!h.call(O,A)||!(0,t.Z)(I,F)||void 0===F&&!(A in O))&&(0,i.Z)(O,A,F)}},3496:(ae,E,a)=>{a.d(E,{Z:()=>o});var i=a(2370);const o=function t(h,e,b){"__proto__"==e&&i.Z?(0,i.Z)(h,e,{configurable:!0,enumerable:!0,value:b,writable:!0}):h[e]=b}},4792:(ae,E,a)=>{a.d(E,{Z:()=>h});var i=a(1999),t=Object.create;const h=function(){function e(){}return function(b){if(!(0,i.Z)(b))return{};if(t)return t(b);e.prototype=b;var O=new e;return e.prototype=void 0,O}}()},1149:(ae,E,a)=>{a.d(E,{Z:()=>O});const h=function i(A){return function(F,I,D){for(var S=-1,P=Object(F),L=D(F),V=L.length;V--;){var w=L[A?V:++S];if(!1===I(P[w],w,P))break}return F}}();var e=a(1952);const O=function b(A,F){return A&&h(A,F,e.Z)}},7298:(ae,E,a)=>{a.d(E,{Z:()=>h});var i=a(3449),t=a(2168);const h=function o(e,b){for(var O=0,A=(b=(0,i.Z)(b,e)).length;null!=e&&O{a.d(E,{Z:()=>h});var i=a(6623),t=a(4177);const h=function o(e,b,O){var A=b(e);return(0,t.Z)(e)?A:(0,i.Z)(A,O(e))}},7079:(ae,E,a)=>{a.d(E,{Z:()=>w});var i=a(8492),t=Object.prototype,o=t.hasOwnProperty,h=t.toString,e=i.Z?i.Z.toStringTag:void 0;var F=Object.prototype.toString;var L=i.Z?i.Z.toStringTag:void 0;const w=function V(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":L&&L in Object(M)?function b(M){var N=o.call(M,e),C=M[e];try{M[e]=void 0;var y=!0}catch(f){}var T=h.call(M);return y&&(N?M[e]=C:delete M[e]),T}(M):function I(M){return F.call(M)}(M)}},771:(ae,E,a)=>{a.d(E,{Z:()=>ft});var i=a(5343),t=a(3639);function A(X){var oe=-1,ye=null==X?0:X.length;for(this.__data__=new t.Z;++oeBe))return!1;var Ze=ue.get(X),Ae=ue.get(oe);if(Ze&&Ae)return Ze==oe&&Ae==X;var Pe=-1,De=!0,Ke=2&ye?new F:void 0;for(ue.set(X,oe),ue.set(oe,X);++Pe{a.d(E,{Z:()=>re});var i=a(5343),t=a(771);var O=a(1999);const F=function A(W){return W==W&&!(0,O.Z)(W)};var I=a(1952);const L=function P(W,q){return function(ge){return null!=ge&&ge[W]===q&&(void 0!==q||W in Object(ge))}},w=function V(W){var q=function D(W){for(var q=(0,I.Z)(W),ge=q.length;ge--;){var ie=q[ge],he=W[ie];q[ge]=[ie,he,F(he)]}return q}(W);return 1==q.length&&q[0][2]?L(q[0][0],q[0][1]):function(ge){return ge===W||function e(W,q,ge,ie){var he=ge.length,$=he,se=!ie;if(null==W)return!$;for(W=Object(W);he--;){var _=ge[he];if(se&&_[2]?_[1]!==W[_[0]]:!(_[0]in W))return!1}for(;++he<$;){var x=(_=ge[he])[0],u=W[x],v=_[1];if(se&&_[2]){if(void 0===u&&!(x in W))return!1}else{var k=new i.Z;if(ie)var le=ie(u,v,x,W,q,k);if(!(void 0===le?(0,t.Z)(v,u,3,ie,k):le))return!1}}return!0}(ge,W,q)}};var M=a(7298);var y=a(5867),T=a(8042),f=a(2168);const te=function Q(W,q){return(0,T.Z)(W)&&F(q)?L((0,f.Z)(W),q):function(ge){var ie=function N(W,q,ge){var ie=null==W?void 0:(0,M.Z)(W,q);return void 0===ie?ge:ie}(ge,W);return void 0===ie&&ie===q?(0,y.Z)(ge,W):(0,t.Z)(q,ie,3)}};var H=a(9940),J=a(4177);const ce=function ne(W){return(0,T.Z)(W)?function pe(W){return function(q){return null==q?void 0:q[W]}}((0,f.Z)(W)):function Ce(W){return function(q){return(0,M.Z)(q,W)}}(W)},re=function Y(W){return"function"==typeof W?W:null==W?H.Z:"object"==typeof W?(0,J.Z)(W)?te(W[0],W[1]):w(W):ce(W)}},4884:(ae,E,a)=>{a.d(E,{Z:()=>A});var i=a(1986);const h=(0,a(5820).Z)(Object.keys,Object);var b=Object.prototype.hasOwnProperty;const A=function O(F){if(!(0,i.Z)(F))return h(F);var I=[];for(var D in Object(F))b.call(F,D)&&"constructor"!=D&&I.push(D);return I}},6932:(ae,E,a)=>{a.d(E,{Z:()=>t});const t=function i(o){return function(h){return o(h)}}},3449:(ae,E,a)=>{a.d(E,{Z:()=>te});var i=a(4177),t=a(8042),o=a(3639);function e(H,J){if("function"!=typeof H||null!=J&&"function"!=typeof J)throw new TypeError("Expected a function");var pe=function(){var me=arguments,Ce=J?J.apply(this,me):me[0],be=pe.cache;if(be.has(Ce))return be.get(Ce);var ne=H.apply(this,me);return pe.cache=be.set(Ce,ne)||be,ne};return pe.cache=new(e.Cache||o.Z),pe}e.Cache=o.Z;const b=e;var I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D=/\\(\\)?/g;const P=function A(H){var J=b(H,function(me){return 500===pe.size&&pe.clear(),me}),pe=J.cache;return J}(function(H){var J=[];return 46===H.charCodeAt(0)&&J.push(""),H.replace(I,function(pe,me,Ce,be){J.push(Ce?be.replace(D,"$1"):me||pe)}),J});var L=a(8492);var M=a(6460),C=L.Z?L.Z.prototype:void 0,y=C?C.toString:void 0;const f=function T(H){if("string"==typeof H)return H;if((0,i.Z)(H))return function V(H,J){for(var pe=-1,me=null==H?0:H.length,Ce=Array(me);++pe{a.d(E,{Z:()=>o});var i=a(3858);const o=function(){try{var h=(0,i.Z)(Object,"defineProperty");return h({},"",{}),h}catch(e){}}()},8346:(ae,E,a)=>{a.d(E,{Z:()=>t});const t="object"==typeof global&&global&&global.Object===Object&&global},8501:(ae,E,a)=>{a.d(E,{Z:()=>e});var i=a(8203),t=a(3976),o=a(1952);const e=function h(b){return(0,i.Z)(b,o.Z,t.Z)}},3858:(ae,E,a)=>{a.d(E,{Z:()=>f});var Z,i=a(2089),o=a(5946).Z["__core-js_shared__"],e=(Z=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var A=a(1999),F=a(4407),D=/^\[object .+?Constructor\]$/,w=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function M(Z){return!(!(0,A.Z)(Z)||function b(Z){return!!e&&e in Z}(Z))&&((0,i.Z)(Z)?w:D).test((0,F.Z)(Z))},f=function T(Z,K){var Q=function C(Z,K){return null==Z?void 0:Z[K]}(Z,K);return N(Q)?Q:void 0}},5650:(ae,E,a)=>{a.d(E,{Z:()=>o});const o=(0,a(5820).Z)(Object.getPrototypeOf,Object)},3976:(ae,E,a)=>{a.d(E,{Z:()=>A});var o=a(3419),e=Object.prototype.propertyIsEnumerable,b=Object.getOwnPropertySymbols;const A=b?function(F){return null==F?[]:(F=Object(F),function i(F,I){for(var D=-1,S=null==F?0:F.length,P=0,L=[];++D{a.d(E,{Z:()=>te});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"DataView");var e=a(9329);const O=(0,i.Z)(t.Z,"Promise"),F=(0,i.Z)(t.Z,"Set"),D=(0,i.Z)(t.Z,"WeakMap");var S=a(7079),P=a(4407),L="[object Map]",w="[object Promise]",M="[object Set]",N="[object WeakMap]",C="[object DataView]",y=(0,P.Z)(h),T=(0,P.Z)(e.Z),f=(0,P.Z)(O),Z=(0,P.Z)(F),K=(0,P.Z)(D),Q=S.Z;(h&&Q(new h(new ArrayBuffer(1)))!=C||e.Z&&Q(new e.Z)!=L||O&&Q(O.resolve())!=w||F&&Q(new F)!=M||D&&Q(new D)!=N)&&(Q=function(H){var J=(0,S.Z)(H),pe="[object Object]"==J?H.constructor:void 0,me=pe?(0,P.Z)(pe):"";if(me)switch(me){case y:return C;case T:return L;case f:return w;case Z:return M;case K:return N}return J});const te=Q},6667:(ae,E,a)=>{a.d(E,{Z:()=>h});var t=/^(?:0|[1-9]\d*)$/;const h=function o(e,b){var O=typeof e;return!!(b=null==b?9007199254740991:b)&&("number"==O||"symbol"!=O&&t.test(e))&&e>-1&&e%1==0&&e{a.d(E,{Z:()=>b});var i=a(4177),t=a(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const b=function e(O,A){if((0,i.Z)(O))return!1;var F=typeof O;return!("number"!=F&&"symbol"!=F&&"boolean"!=F&&null!=O&&!(0,t.Z)(O))||h.test(O)||!o.test(O)||null!=A&&O in Object(A)}},1986:(ae,E,a)=>{a.d(E,{Z:()=>o});var i=Object.prototype;const o=function t(h){var e=h&&h.constructor;return h===("function"==typeof e&&e.prototype||i)}},6594:(ae,E,a)=>{a.d(E,{Z:()=>O});var i=a(8346),t="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=t&&"object"==typeof module&&module&&!module.nodeType&&module,e=o&&o.exports===t&&i.Z.process;const O=function(){try{return o&&o.require&&o.require("util").types||e&&e.binding&&e.binding("util")}catch(F){}}()},5820:(ae,E,a)=>{a.d(E,{Z:()=>t});const t=function i(o,h){return function(e){return o(h(e))}}},5946:(ae,E,a)=>{a.d(E,{Z:()=>h});var i=a(8346),t="object"==typeof self&&self&&self.Object===Object&&self;const h=i.Z||t||Function("return this")()},2168:(ae,E,a)=>{a.d(E,{Z:()=>h});var i=a(6460);const h=function o(e){if("string"==typeof e||(0,i.Z)(e))return e;var b=e+"";return"0"==b&&1/e==-1/0?"-0":b}},4407:(ae,E,a)=>{a.d(E,{Z:()=>h});var t=Function.prototype.toString;const h=function o(e){if(null!=e){try{return t.call(e)}catch(b){}try{return e+""}catch(b){}}return""}},3523:(ae,E,a)=>{a.d(E,{Z:()=>_n});var i=a(5343),t=a(7585),o=a(1481),h=a(3496);const b=function e(U,fe,xe,Je){var zt=!xe;xe||(xe={});for(var ct=-1,qe=fe.length;++ct{a.d(E,{Z:()=>t});const t=function i(o,h){return o===h||o!=o&&h!=h}},5867:(ae,E,a)=>{a.d(E,{Z:()=>S});const t=function i(P,L){return null!=P&&L in Object(P)};var o=a(3449),h=a(4825),e=a(4177),b=a(6667),O=a(8696),A=a(2168);const S=function D(P,L){return null!=P&&function F(P,L,V){for(var w=-1,M=(L=(0,o.Z)(L,P)).length,N=!1;++w{a.d(E,{Z:()=>t});const t=function i(o){return o}},4825:(ae,E,a)=>{a.d(E,{Z:()=>I});var i=a(7079),t=a(214);const e=function h(D){return(0,t.Z)(D)&&"[object Arguments]"==(0,i.Z)(D)};var b=Object.prototype,O=b.hasOwnProperty,A=b.propertyIsEnumerable;const I=e(function(){return arguments}())?e:function(D){return(0,t.Z)(D)&&O.call(D,"callee")&&!A.call(D,"callee")}},4177:(ae,E,a)=>{a.d(E,{Z:()=>t});const t=Array.isArray},8706:(ae,E,a)=>{a.d(E,{Z:()=>h});var i=a(2089),t=a(8696);const h=function o(e){return null!=e&&(0,t.Z)(e.length)&&!(0,i.Z)(e)}},5202:(ae,E,a)=>{a.d(E,{Z:()=>I});var i=a(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,O=e&&e.exports===h?i.Z.Buffer:void 0;const I=(O?O.isBuffer:void 0)||function t(){return!1}},1854:(ae,E,a)=>{a.d(E,{Z:()=>o});var i=a(771);const o=function t(h,e){return(0,i.Z)(h,e)}},2089:(ae,E,a)=>{a.d(E,{Z:()=>A});var i=a(7079),t=a(1999);const A=function O(F){if(!(0,t.Z)(F))return!1;var I=(0,i.Z)(F);return"[object Function]"==I||"[object GeneratorFunction]"==I||"[object AsyncFunction]"==I||"[object Proxy]"==I}},8696:(ae,E,a)=>{a.d(E,{Z:()=>o});const o=function t(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991}},1999:(ae,E,a)=>{a.d(E,{Z:()=>t});const t=function i(o){var h=typeof o;return null!=o&&("object"==h||"function"==h)}},214:(ae,E,a)=>{a.d(E,{Z:()=>t});const t=function i(o){return null!=o&&"object"==typeof o}},6460:(ae,E,a)=>{a.d(E,{Z:()=>e});var i=a(7079),t=a(214);const e=function h(b){return"symbol"==typeof b||(0,t.Z)(b)&&"[object Symbol]"==(0,i.Z)(b)}},7583:(ae,E,a)=>{a.d(E,{Z:()=>Y});var i=a(7079),t=a(8696),o=a(214),J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Arguments]"]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object Boolean]"]=J["[object DataView]"]=J["[object Date]"]=J["[object Error]"]=J["[object Function]"]=J["[object Map]"]=J["[object Number]"]=J["[object Object]"]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object WeakMap]"]=!1;var Ce=a(6932),be=a(6594),ne=be.Z&&be.Z.isTypedArray;const Y=ne?(0,Ce.Z)(ne):function pe(re){return(0,o.Z)(re)&&(0,t.Z)(re.length)&&!!J[(0,i.Z)(re)]}},1952:(ae,E,a)=>{a.d(E,{Z:()=>e});var i=a(3487),t=a(4884),o=a(8706);const e=function h(b){return(0,o.Z)(b)?(0,i.Z)(b):(0,t.Z)(b)}},7355:(ae,E,a)=>{a.d(E,{Z:()=>be});var i=Math.ceil,t=Math.max;var e=a(3093),b=a(8706),O=a(6667),A=a(1999);var D=/\s/;var L=/^\s+/;const w=function V(ne){return ne&&ne.slice(0,function S(ne){for(var ce=ne.length;ce--&&D.test(ne.charAt(ce)););return ce}(ne)+1).replace(L,"")};var M=a(6460),C=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,T=/^0o[0-7]+$/i,f=parseInt;var Q=1/0;const J=function H(ne){return ne?(ne=function Z(ne){if("number"==typeof ne)return ne;if((0,M.Z)(ne))return NaN;if((0,A.Z)(ne)){var ce="function"==typeof ne.valueOf?ne.valueOf():ne;ne=(0,A.Z)(ce)?ce+"":ce}if("string"!=typeof ne)return 0===ne?ne:+ne;ne=w(ne);var Y=y.test(ne);return Y||T.test(ne)?f(ne.slice(2),Y?2:8):C.test(ne)?NaN:+ne}(ne))===Q||ne===-Q?17976931348623157e292*(ne<0?-1:1):ne==ne?ne:0:0===ne?ne:0},be=function pe(ne){return function(ce,Y,re){return re&&"number"!=typeof re&&function F(ne,ce,Y){if(!(0,A.Z)(Y))return!1;var re=typeof ce;return!!("number"==re?(0,b.Z)(Y)&&(0,O.Z)(ce,Y.length):"string"==re&&ce in Y)&&(0,e.Z)(Y[ce],ne)}(ce,Y,re)&&(Y=re=void 0),ce=J(ce),void 0===Y?(Y=ce,ce=0):Y=J(Y),function o(ne,ce,Y,re){for(var W=-1,q=t(i((ce-ne)/(Y||1)),0),ge=Array(q);q--;)ge[re?q:++W]=ne,ne+=Y;return ge}(ce,Y,re=void 0===re?ce{a.d(E,{Z:()=>t});const t=function i(){return[]}},6422:(ae,E,a)=>{a.d(E,{Z:()=>S});var i=a(7585),t=a(4792),o=a(1149),h=a(7242),e=a(5650),b=a(4177),O=a(5202),A=a(2089),F=a(1999),I=a(7583);const S=function D(P,L,V){var w=(0,b.Z)(P),M=w||(0,O.Z)(P)||(0,I.Z)(P);if(L=(0,h.Z)(L,4),null==V){var N=P&&P.constructor;V=M?w?new N:[]:(0,F.Z)(P)&&(0,A.Z)(N)?(0,t.Z)((0,e.Z)(P)):{}}return(M?i.Z:o.Z)(P,function(C,y,T){return L(V,C,y,T)}),V}},6699:(ae,E,a)=>{a.d(E,{Dz:()=>V,Rt:()=>M});var i=a(655),t=a(5e3),o=a(9439),h=a(1721),e=a(925),b=a(9808),O=a(647),A=a(226);const F=["textEl"];function I(N,C){if(1&N&&t._UZ(0,"i",3),2&N){const y=t.oxw();t.Q6J("nzType",y.nzIcon)}}function D(N,C){if(1&N){const y=t.EpF();t.TgZ(0,"img",4),t.NdJ("error",function(f){return t.CHM(y),t.oxw().imgError(f)}),t.qZA()}if(2&N){const y=t.oxw();t.Q6J("src",y.nzSrc,t.LSH),t.uIk("srcset",y.nzSrcSet,t.LSH)("alt",y.nzAlt)}}function S(N,C){if(1&N&&(t.TgZ(0,"span",5,6),t._uU(2),t.qZA()),2&N){const y=t.oxw();t.Q6J("ngStyle",y.textStyles),t.xp6(2),t.Oqu(y.nzText)}}let V=(()=>{class N{constructor(y,T,f,Z){this.nzConfigService=y,this.elementRef=T,this.cdr=f,this.platform=Z,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new t.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(y){this.nzError.emit(y),y.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const y=this.textEl.nativeElement.offsetWidth,T=this.el.getBoundingClientRect().width,f=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return N.\u0275fac=function(y){return new(y||N)(t.Y36(o.jY),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(e.t4))},N.\u0275cmp=t.Xpm({type:N,selectors:[["nz-avatar"]],viewQuery:function(y,T){if(1&y&&t.Gf(F,5),2&y){let f;t.iGM(f=t.CRH())&&(T.textEl=f.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(y,T){2&y&&(t.Udp("width",T.customSize)("height",T.customSize)("line-height",T.customSize)("font-size",T.hasIcon&&T.customSize?T.nzSize/2:null,"px"),t.ekj("ant-avatar-lg","large"===T.nzSize)("ant-avatar-sm","small"===T.nzSize)("ant-avatar-square","square"===T.nzShape)("ant-avatar-circle","circle"===T.nzShape)("ant-avatar-icon",T.nzIcon)("ant-avatar-image",T.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[t.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(y,T){1&y&&(t.YNc(0,I,1,1,"i",0),t.YNc(1,D,1,3,"img",1),t.YNc(2,S,3,2,"span",2)),2&y&&(t.Q6J("ngIf",T.nzIcon&&T.hasIcon),t.xp6(1),t.Q6J("ngIf",T.nzSrc&&T.hasSrc),t.xp6(1),t.Q6J("ngIf",T.nzText&&T.hasText))},directives:[b.O5,O.Ls,b.PC],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.oS)()],N.prototype,"nzShape",void 0),(0,i.gn)([(0,o.oS)()],N.prototype,"nzSize",void 0),(0,i.gn)([(0,o.oS)(),(0,h.Rn)()],N.prototype,"nzGap",void 0),N})(),M=(()=>{class N{}return N.\u0275fac=function(y){return new(y||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[[A.vT,b.ez,O.PV,e.ud]]}),N})()},6042:(ae,E,a)=>{a.d(E,{ix:()=>C,fY:()=>y,sL:()=>T});var i=a(655),t=a(5e3),o=a(8929),h=a(3753),e=a(7625),b=a(1059),O=a(2198),A=a(9439),F=a(1721),I=a(647),D=a(226),S=a(9808),P=a(2683),L=a(2643);const V=["nz-button",""];function w(f,Z){1&f&&t._UZ(0,"i",1)}const M=["*"],N="button";let C=(()=>{class f{constructor(K,Q,te,H,J,pe){this.ngZone=K,this.elementRef=Q,this.cdr=te,this.renderer=H,this.nzConfigService=J,this.directionality=pe,this._nzModuleName=N,this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ,this.loading$=new o.xQ,this.nzConfigService.getConfigChangeEventForComponent(N).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(K,Q){K.forEach(te=>{if("#text"===te.nodeName){const H=Q.createElement("span"),J=Q.parentNode(te);Q.insertBefore(J,H,te),Q.appendChild(H,te)}})}assertIconOnly(K,Q){const te=Array.from(K.childNodes),H=te.filter(Ce=>"I"===Ce.nodeName).length,J=te.every(Ce=>"#text"!==Ce.nodeName);te.every(Ce=>"SPAN"!==Ce.nodeName)&&J&&H>=1&&Q.addClass(K,"ant-btn-icon-only")}ngOnInit(){var K;null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.elementRef.nativeElement,"click").pipe((0,e.R)(this.destroy$)).subscribe(Q=>{var te;this.disabled&&"A"===(null===(te=Q.target)||void 0===te?void 0:te.tagName)&&(Q.preventDefault(),Q.stopImmediatePropagation())})})}ngOnChanges(K){const{nzLoading:Q}=K;Q&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,b.O)(this.nzLoading),(0,O.h)(()=>!!this.nzIconDirectiveElement),(0,e.R)(this.destroy$)).subscribe(K=>{const Q=this.nzIconDirectiveElement.nativeElement;K?this.renderer.setStyle(Q,"display","none"):this.renderer.removeStyle(Q,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(A.jY),t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(K,Q,te){if(1&K&&t.Suo(te,I.Ls,5,t.SBq),2&K){let H;t.iGM(H=t.CRH())&&(Q.nzIconDirectiveElement=H.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(K,Q){2&K&&(t.uIk("tabindex",Q.disabled?-1:null===Q.tabIndex?null:Q.tabIndex)("disabled",Q.disabled||null),t.ekj("ant-btn-primary","primary"===Q.nzType)("ant-btn-dashed","dashed"===Q.nzType)("ant-btn-link","link"===Q.nzType)("ant-btn-text","text"===Q.nzType)("ant-btn-circle","circle"===Q.nzShape)("ant-btn-round","round"===Q.nzShape)("ant-btn-lg","large"===Q.nzSize)("ant-btn-sm","small"===Q.nzSize)("ant-btn-dangerous",Q.nzDanger)("ant-btn-loading",Q.nzLoading)("ant-btn-background-ghost",Q.nzGhost)("ant-btn-block",Q.nzBlock)("ant-input-search-button",Q.nzSearch)("ant-btn-rtl","rtl"===Q.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[t.TTD],attrs:V,ngContentSelectors:M,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(K,Q){1&K&&(t.F$t(),t.YNc(0,w,1,0,"i",0),t.Hsn(1)),2&K&&t.Q6J("ngIf",Q.nzLoading)},directives:[S.O5,I.Ls,P.w],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,F.yF)()],f.prototype,"nzBlock",void 0),(0,i.gn)([(0,F.yF)()],f.prototype,"nzGhost",void 0),(0,i.gn)([(0,F.yF)()],f.prototype,"nzSearch",void 0),(0,i.gn)([(0,F.yF)()],f.prototype,"nzLoading",void 0),(0,i.gn)([(0,F.yF)()],f.prototype,"nzDanger",void 0),(0,i.gn)([(0,F.yF)()],f.prototype,"disabled",void 0),(0,i.gn)([(0,A.oS)()],f.prototype,"nzSize",void 0),f})(),y=(()=>{class f{constructor(K){this.directionality=K,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ}ngOnInit(){var K;this.dir=this.directionality.value,null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(K,Q){2&K&&t.ekj("ant-btn-group-lg","large"===Q.nzSize)("ant-btn-group-sm","small"===Q.nzSize)("ant-btn-group-rtl","rtl"===Q.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:M,decls:1,vars:0,template:function(K,Q){1&K&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),T=(()=>{class f{}return f.\u0275fac=function(K){return new(K||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[D.vT,S.ez,L.vG,I.PV,P.a],P.a,L.vG]}),f})()},7484:(ae,E,a)=>{a.d(E,{bd:()=>ge,l7:()=>ie,vh:()=>he});var i=a(655),t=a(5e3),o=a(1721),h=a(8929),e=a(7625),b=a(9439),O=a(226),A=a(9808),F=a(969);function I($,se){1&$&&t.Hsn(0)}const D=["*"];function S($,se){1&$&&(t.TgZ(0,"div",4),t._UZ(1,"div",5),t.qZA()),2&$&&t.Q6J("ngClass",se.$implicit)}function P($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,S,2,1,"div",3),t.qZA()),2&$){const _=se.$implicit;t.xp6(1),t.Q6J("ngForOf",_)}}function L($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function V($,se){if(1&$&&(t.TgZ(0,"div",11),t.YNc(1,L,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function w($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzExtra)}}function M($,se){if(1&$&&(t.TgZ(0,"div",13),t.YNc(1,w,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function N($,se){}function C($,se){if(1&$&&(t.ynx(0),t.YNc(1,N,0,0,"ng-template",14),t.BQk()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function y($,se){if(1&$&&(t.TgZ(0,"div",6),t.TgZ(1,"div",7),t.YNc(2,V,2,1,"div",8),t.YNc(3,M,2,1,"div",9),t.qZA(),t.YNc(4,C,2,1,"ng-container",10),t.qZA()),2&$){const _=t.oxw();t.xp6(2),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzExtra),t.xp6(1),t.Q6J("ngIf",_.listOfNzCardTabComponent)}}function T($,se){}function f($,se){if(1&$&&(t.TgZ(0,"div",15),t.YNc(1,T,0,0,"ng-template",14),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzCover)}}function Z($,se){1&$&&(t.ynx(0),t.Hsn(1),t.BQk())}function K($,se){1&$&&t._UZ(0,"nz-card-loading")}function Q($,se){}function te($,se){if(1&$&&(t.TgZ(0,"li"),t.TgZ(1,"span"),t.YNc(2,Q,0,0,"ng-template",14),t.qZA(),t.qZA()),2&$){const _=se.$implicit,x=t.oxw(2);t.Udp("width",100/x.nzActions.length,"%"),t.xp6(2),t.Q6J("ngTemplateOutlet",_)}}function H($,se){if(1&$&&(t.TgZ(0,"ul",16),t.YNc(1,te,3,3,"li",17),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngForOf",_.nzActions)}}function J($,se){}function pe($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,J,0,0,"ng-template",3),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzAvatar)}}function me($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function Ce($,se){if(1&$&&(t.TgZ(0,"div",7),t.YNc(1,me,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function be($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzDescription)}}function ne($,se){if(1&$&&(t.TgZ(0,"div",9),t.YNc(1,be,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzDescription)}}function ce($,se){if(1&$&&(t.TgZ(0,"div",4),t.YNc(1,Ce,2,1,"div",5),t.YNc(2,ne,2,1,"div",6),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzDescription)}}let Y=(()=>{class ${constructor(){this.nzHoverable=!0}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275dir=t.lG2({type:$,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,x){2&_&&t.ekj("ant-card-hoverable",x.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,i.gn)([(0,o.yF)()],$.prototype,"nzHoverable",void 0),$})(),re=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-tab"]],viewQuery:function(_,x){if(1&_&&t.Gf(t.Rgc,7),2&_){let u;t.iGM(u=t.CRH())&&(x.template=u.first)}},exportAs:["nzCardTab"],ngContentSelectors:D,decls:1,vars:0,template:function(_,x){1&_&&(t.F$t(),t.YNc(0,I,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),$})(),W=(()=>{class ${constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,x){1&_&&(t.TgZ(0,"div",0),t.YNc(1,P,2,1,"div",1),t.qZA()),2&_&&(t.xp6(1),t.Q6J("ngForOf",x.listOfLoading))},directives:[A.sg,A.mk],encapsulation:2,changeDetection:0}),$})();const q="card";let ge=(()=>{class ${constructor(_,x,u){this.nzConfigService=_,this.cdr=x,this.directionality=u,this._nzModuleName=q,this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new h.xQ,this.nzConfigService.getConfigChangeEventForComponent(q).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,e.R)(this.destroy$)).subscribe(x=>{this.dir=x,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return $.\u0275fac=function(_){return new(_||$)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(O.Is,8))},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card"]],contentQueries:function(_,x,u){if(1&_&&(t.Suo(u,re,5),t.Suo(u,Y,4)),2&_){let v;t.iGM(v=t.CRH())&&(x.listOfNzCardTabComponent=v.first),t.iGM(v=t.CRH())&&(x.listOfNzCardGridDirective=v)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,x){2&_&&t.ekj("ant-card-loading",x.nzLoading)("ant-card-bordered",!1===x.nzBorderless&&x.nzBordered)("ant-card-hoverable",x.nzHoverable)("ant-card-small","small"===x.nzSize)("ant-card-contain-grid",x.listOfNzCardGridDirective&&x.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===x.nzType)("ant-card-contain-tabs",!!x.listOfNzCardTabComponent)("ant-card-rtl","rtl"===x.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:D,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,x){if(1&_&&(t.F$t(),t.YNc(0,y,5,3,"div",0),t.YNc(1,f,2,1,"div",1),t.TgZ(2,"div",2),t.YNc(3,Z,2,0,"ng-container",3),t.YNc(4,K,1,0,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,H,2,1,"ul",5)),2&_){const u=t.MAs(5);t.Q6J("ngIf",x.nzTitle||x.nzExtra||x.listOfNzCardTabComponent),t.xp6(1),t.Q6J("ngIf",x.nzCover),t.xp6(1),t.Q6J("ngStyle",x.nzBodyStyle),t.xp6(1),t.Q6J("ngIf",!x.nzLoading)("ngIfElse",u),t.xp6(3),t.Q6J("ngIf",x.nzActions.length)}},directives:[W,A.O5,F.f,A.tP,A.PC,A.sg],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzBordered",void 0),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzBorderless",void 0),(0,i.gn)([(0,o.yF)()],$.prototype,"nzLoading",void 0),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzHoverable",void 0),(0,i.gn)([(0,b.oS)()],$.prototype,"nzSize",void 0),$})(),ie=(()=>{class ${constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(_,x){1&_&&(t.YNc(0,pe,2,1,"div",0),t.YNc(1,ce,3,2,"div",1)),2&_&&(t.Q6J("ngIf",x.nzAvatar),t.xp6(1),t.Q6J("ngIf",x.nzTitle||x.nzDescription))},directives:[A.O5,A.tP,F.f],encapsulation:2,changeDetection:0}),$})(),he=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[A.ez,F.T],O.vT]}),$})()},6114:(ae,E,a)=>{a.d(E,{Ie:()=>w,Wr:()=>N});var i=a(655),t=a(5e3),o=a(4182),h=a(8929),e=a(3753),b=a(7625),O=a(1721),A=a(5664),F=a(226),I=a(9808);const D=["*"],S=["inputElement"],P=["nz-checkbox",""];let V=(()=>{class C{constructor(T,f){this.nzOnChange=new t.vpe,this.checkboxList=[],T.addClass(f.nativeElement,"ant-checkbox-group")}addCheckbox(T){this.checkboxList.push(T)}removeCheckbox(T){this.checkboxList.splice(this.checkboxList.indexOf(T),1)}onChange(){const T=this.checkboxList.filter(f=>f.nzChecked).map(f=>f.nzValue);this.nzOnChange.emit(T)}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.Qsj),t.Y36(t.SBq))},C.\u0275cmp=t.Xpm({type:C,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:D,decls:1,vars:0,template:function(T,f){1&T&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),w=(()=>{class C{constructor(T,f,Z,K,Q,te){this.ngZone=T,this.elementRef=f,this.nzCheckboxWrapperComponent=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.dir="ltr",this.destroy$=new h.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(T){this.nzDisabled||(this.nzChecked=T,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(T){this.nzChecked=T,this.cdr.markForCheck()}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.nzDisabled=T,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(T=>{T||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(T=>{T.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(T=>T.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(V,8),t.Y36(t.sBO),t.Y36(A.tE),t.Y36(F.Is,8))},C.\u0275cmp=t.Xpm({type:C,selectors:[["","nz-checkbox",""]],viewQuery:function(T,f){if(1&T&&t.Gf(S,7),2&T){let Z;t.iGM(Z=t.CRH())&&(f.inputElement=Z.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(T,f){2&T&&t.ekj("ant-checkbox-wrapper-checked",f.nzChecked)("ant-checkbox-rtl","rtl"===f.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[t._Bn([{provide:o.JU,useExisting:(0,t.Gpc)(()=>C),multi:!0}])],attrs:P,ngContentSelectors:D,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(T,f){1&T&&(t.F$t(),t.TgZ(0,"span",0),t.TgZ(1,"input",1,2),t.NdJ("ngModelChange",function(K){return f.innerCheckedChange(K)}),t.qZA(),t._UZ(3,"span",3),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&T&&(t.ekj("ant-checkbox-checked",f.nzChecked&&!f.nzIndeterminate)("ant-checkbox-disabled",f.nzDisabled)("ant-checkbox-indeterminate",f.nzIndeterminate),t.xp6(1),t.Q6J("checked",f.nzChecked)("ngModel",f.nzChecked)("disabled",f.nzDisabled),t.uIk("autofocus",f.nzAutoFocus?"autofocus":null)("id",f.nzId))},directives:[o.Wl,o.JJ,o.On],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,O.yF)()],C.prototype,"nzAutoFocus",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzDisabled",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzIndeterminate",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzChecked",void 0),C})(),N=(()=>{class C{}return C.\u0275fac=function(T){return new(T||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[F.vT,I.ez,o.u5,A.rt]]}),C})()},2683:(ae,E,a)=>{a.d(E,{w:()=>o,a:()=>h});var i=a(925),t=a(5e3);let o=(()=>{class e{constructor(O,A){this.elementRef=O,this.renderer=A,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(O){return new(O||e)(t.Y36(t.SBq),t.Y36(t.Qsj))},e.\u0275dir=t.lG2({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[t.TTD]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[i.ud]]}),e})()},2643:(ae,E,a)=>{a.d(E,{dQ:()=>A,vG:()=>F});var i=a(925),t=a(5e3),o=a(6360);class h{constructor(D,S,P,L){this.triggerElement=D,this.ngZone=S,this.insertExtraNode=P,this.platformId=L,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=V=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===V.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new i.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const D=this.triggerElement,S=this.getWaveColor(D);D.setAttribute(this.waveAttributeName,"true"),!(Date.now(){D.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(D){return!!D&&"#ffffff"!==D&&"rgb(255, 255, 255)"!==D&&this.isNotGrey(D)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(D)&&"transparent"!==D}isNotGrey(D){const S=D.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(S&&S[1]&&S[2]&&S[3]&&S[1]===S[2]&&S[2]===S[3])}getWaveColor(D){const S=getComputedStyle(D);return S.getPropertyValue("border-top-color")||S.getPropertyValue("border-color")||S.getPropertyValue("background-color")}runTimeoutOutsideZone(D,S){this.ngZone.runOutsideAngular(()=>setTimeout(D,S))}}const e={disabled:!1},b=new t.OlP("nz-wave-global-options",{providedIn:"root",factory:function O(){return e}});let A=(()=>{class I{constructor(S,P,L,V,w){this.ngZone=S,this.elementRef=P,this.config=L,this.animationType=V,this.platformId=w,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let S=!1;return this.config&&"boolean"==typeof this.config.disabled&&(S=this.config.disabled),"NoopAnimations"===this.animationType&&(S=!0),S}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return I.\u0275fac=function(S){return new(S||I)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(b,8),t.Y36(o.Qb,8),t.Y36(t.Lbi))},I.\u0275dir=t.lG2({type:I,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),I})(),F=(()=>{class I{}return I.\u0275fac=function(S){return new(S||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[[i.ud]]}),I})()},5737:(ae,E,a)=>{a.d(E,{g:()=>F,S:()=>I});var i=a(655),t=a(5e3),o=a(1721),h=a(9808),e=a(969),b=a(226);function O(D,S){if(1&D&&(t.ynx(0),t._uU(1),t.BQk()),2&D){const P=t.oxw(2);t.xp6(1),t.Oqu(P.nzText)}}function A(D,S){if(1&D&&(t.TgZ(0,"span",1),t.YNc(1,O,2,1,"ng-container",2),t.qZA()),2&D){const P=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",P.nzText)}}let F=(()=>{class D{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return D.\u0275fac=function(P){return new(P||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(P,L){2&P&&t.ekj("ant-divider-horizontal","horizontal"===L.nzType)("ant-divider-vertical","vertical"===L.nzType)("ant-divider-with-text",L.nzText)("ant-divider-plain",L.nzPlain)("ant-divider-with-text-left",L.nzText&&"left"===L.nzOrientation)("ant-divider-with-text-right",L.nzText&&"right"===L.nzOrientation)("ant-divider-with-text-center",L.nzText&&"center"===L.nzOrientation)("ant-divider-dashed",L.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(P,L){1&P&&t.YNc(0,A,2,1,"span",0),2&P&&t.Q6J("ngIf",L.nzText)},directives:[h.O5,e.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.yF)()],D.prototype,"nzDashed",void 0),(0,i.gn)([(0,o.yF)()],D.prototype,"nzPlain",void 0),D})(),I=(()=>{class D{}return D.\u0275fac=function(P){return new(P||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[b.vT,h.ez,e.T]]}),D})()},3677:(ae,E,a)=>{a.d(E,{cm:()=>re,b1:()=>he,wA:()=>ge,RR:()=>ie});var i=a(655),t=a(1159),o=a(7429),h=a(5e3),e=a(8929),b=a(591),O=a(6787),A=a(3753),F=a(8896),I=a(6053),D=a(7604),S=a(4850),P=a(7545),L=a(2198),V=a(7138),w=a(5778),M=a(7625),N=a(9439),C=a(6950),y=a(1721),T=a(2845),f=a(925),Z=a(226),K=a(9808),Q=a(4182),te=a(6042),H=a(4832),J=a(969),pe=a(647),me=a(4219),Ce=a(8076);function be(_,x){if(1&_){const u=h.EpF();h.TgZ(0,"div",0),h.NdJ("@slideMotion.done",function(k){return h.CHM(u),h.oxw().onAnimationEvent(k)})("mouseenter",function(){return h.CHM(u),h.oxw().setMouseState(!0)})("mouseleave",function(){return h.CHM(u),h.oxw().setMouseState(!1)}),h.Hsn(1),h.qZA()}if(2&_){const u=h.oxw();h.ekj("ant-dropdown-rtl","rtl"===u.dir),h.Q6J("ngClass",u.nzOverlayClassName)("ngStyle",u.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)("nzNoAnimation",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)}}const ne=["*"],Y=[C.yW.bottomLeft,C.yW.bottomRight,C.yW.topRight,C.yW.topLeft];let re=(()=>{class _{constructor(u,v,k,le,ze,Ne){this.nzConfigService=u,this.elementRef=v,this.overlay=k,this.renderer=le,this.viewContainerRef=ze,this.platform=Ne,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new e.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new b.X(!1),this.nzTrigger$=new b.X("hover"),this.overlayClose$=new e.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new h.vpe}setDropdownMenuValue(u,v){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(u,v)}ngAfterViewInit(){if(this.nzDropdownMenu){const u=this.elementRef.nativeElement,v=(0,O.T)((0,A.R)(u,"mouseenter").pipe((0,D.h)(!0)),(0,A.R)(u,"mouseleave").pipe((0,D.h)(!1))),le=(0,O.T)(this.nzDropdownMenu.mouseState$,v),ze=(0,A.R)(u,"click").pipe((0,S.U)(()=>!this.nzVisible)),Ne=this.nzTrigger$.pipe((0,P.w)(we=>"hover"===we?le:"click"===we?ze:F.E)),Fe=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,L.h)(()=>this.nzClickHide),(0,D.h)(!1)),Qe=(0,O.T)(Ne,Fe,this.overlayClose$).pipe((0,L.h)(()=>!this.nzDisabled)),Ve=(0,O.T)(this.inputVisible$,Qe);(0,I.aj)([Ve,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,S.U)(([we,je])=>we||je),(0,V.e)(150),(0,w.x)(),(0,L.h)(()=>this.platform.isBrowser),(0,M.R)(this.destroy$)).subscribe(we=>{const et=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:u).getBoundingClientRect().width;this.nzVisible!==we&&this.nzVisibleChange.emit(we),this.nzVisible=we,we?(this.overlayRef?this.overlayRef.getConfig().minWidth=et:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:et,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,O.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,L.h)(He=>!this.elementRef.nativeElement.contains(He.target))),this.overlayRef.keydownEvents().pipe((0,L.h)(He=>He.keyCode===t.hY&&!(0,t.Vb)(He)))).pipe((0,M.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([C.yW[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new o.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,M.R)(this.destroy$)).subscribe(we=>{"void"===we.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(u){const{nzVisible:v,nzDisabled:k,nzOverlayClassName:le,nzOverlayStyle:ze,nzTrigger:Ne}=u;if(Ne&&this.nzTrigger$.next(this.nzTrigger),v&&this.inputVisible$.next(this.nzVisible),k){const Fe=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Fe,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Fe,"disabled")}le&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),ze&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(N.jY),h.Y36(h.SBq),h.Y36(T.aV),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(f.t4))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[h.TTD]}),(0,i.gn)([(0,N.oS)(),(0,y.yF)()],_.prototype,"nzBackdrop",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzClickHide",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzDisabled",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzVisible",void 0),_})(),W=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({}),_})(),ge=(()=>{class _{constructor(u,v,k){this.renderer=u,this.nzButtonGroupComponent=v,this.elementRef=k}ngAfterViewInit(){const u=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&u&&this.renderer.addClass(u,"ant-dropdown-button")}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.Qsj),h.Y36(te.fY,9),h.Y36(h.SBq))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),ie=(()=>{class _{constructor(u,v,k,le,ze,Ne,Fe){this.cdr=u,this.elementRef=v,this.renderer=k,this.viewContainerRef=le,this.nzMenuService=ze,this.directionality=Ne,this.noAnimation=Fe,this.mouseState$=new b.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new h.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new e.xQ}onAnimationEvent(u){this.animationStateChange$.emit(u)}setMouseState(u){this.mouseState$.next(u)}setValue(u,v){this[u]=v,this.cdr.markForCheck()}ngOnInit(){var u;null===(u=this.directionality.change)||void 0===u||u.pipe((0,M.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(me.hl),h.Y36(Z.Is,8),h.Y36(H.P,9))},_.\u0275cmp=h.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(u,v){if(1&u&&h.Gf(h.Rgc,7),2&u){let k;h.iGM(k=h.CRH())&&(v.templateRef=k.first)}},exportAs:["nzDropdownMenu"],features:[h._Bn([me.hl,{provide:me.Cc,useValue:!0}])],ngContentSelectors:ne,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(u,v){1&u&&(h.F$t(),h.YNc(0,be,2,7,"ng-template"))},directives:[K.mk,K.PC,H.P],encapsulation:2,data:{animation:[Ce.mF]},changeDetection:0}),_})(),he=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[Z.vT,K.ez,T.U8,Q.u5,te.sL,me.ip,pe.PV,H.g,f.ud,C.e4,W,J.T],me.ip]}),_})();new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},685:(ae,E,a)=>{a.d(E,{gB:()=>ne,p9:()=>Ce,Xo:()=>ce});var i=a(7429),t=a(5e3),o=a(8929),h=a(7625),e=a(1059),b=a(9439),O=a(4170),A=a(9808),F=a(969),I=a(226);function D(Y,re){if(1&Y&&(t.ynx(0),t._UZ(1,"img",5),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.Q6J("src",W.nzNotFoundImage,t.LSH)("alt",W.isContentString?W.nzNotFoundContent:"empty")}}function S(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,D,2,2,"ng-container",4),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundImage)}}function P(Y,re){1&Y&&t._UZ(0,"nz-empty-default")}function L(Y,re){1&Y&&t._UZ(0,"nz-empty-simple")}function V(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.isContentString?W.nzNotFoundContent:W.locale.description," ")}}function w(Y,re){if(1&Y&&(t.TgZ(0,"p",6),t.YNc(1,V,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundContent)}}function M(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.nzNotFoundFooter," ")}}function N(Y,re){if(1&Y&&(t.TgZ(0,"div",7),t.YNc(1,M,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundFooter)}}function C(Y,re){1&Y&&t._UZ(0,"nz-empty",6),2&Y&&t.Q6J("nzNotFoundImage","simple")}function y(Y,re){1&Y&&t._UZ(0,"nz-empty",7),2&Y&&t.Q6J("nzNotFoundImage","simple")}function T(Y,re){1&Y&&t._UZ(0,"nz-empty")}function f(Y,re){if(1&Y&&(t.ynx(0,2),t.YNc(1,C,1,1,"nz-empty",3),t.YNc(2,y,1,1,"nz-empty",4),t.YNc(3,T,1,0,"nz-empty",5),t.BQk()),2&Y){const W=t.oxw();t.Q6J("ngSwitch",W.size),t.xp6(1),t.Q6J("ngSwitchCase","normal"),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function Z(Y,re){}function K(Y,re){if(1&Y&&t.YNc(0,Z,0,0,"ng-template",8),2&Y){const W=t.oxw(2);t.Q6J("cdkPortalOutlet",W.contentPortal)}}function Q(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.content," ")}}function te(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,K,1,1,void 0,1),t.YNc(2,Q,2,1,"ng-container",1),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("ngIf","string"!==W.contentType),t.xp6(1),t.Q6J("ngIf","string"===W.contentType)}}const H=new t.OlP("nz-empty-component-name");let J=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t.TgZ(2,"g",2),t._UZ(3,"ellipse",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t._UZ(7,"path",7),t.qZA(),t._UZ(8,"path",8),t.TgZ(9,"g",9),t._UZ(10,"ellipse",10),t._UZ(11,"path",11),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})(),pe=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t._UZ(2,"ellipse",2),t.TgZ(3,"g",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})();const me=["default","simple"];let Ce=(()=>{class Y{constructor(W,q){this.i18n=W,this.cdr=q,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new o.xQ}ngOnChanges(W){const{nzNotFoundContent:q,nzNotFoundImage:ge}=W;if(q&&(this.isContentString="string"==typeof q.currentValue),ge){const ie=ge.currentValue||"default";this.isImageBuildIn=me.findIndex(he=>he===ie)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(O.wi),t.Y36(t.sBO))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[t.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(W,q){1&W&&(t.TgZ(0,"div",0),t.YNc(1,S,2,1,"ng-container",1),t.YNc(2,P,1,0,"nz-empty-default",1),t.YNc(3,L,1,0,"nz-empty-simple",1),t.qZA(),t.YNc(4,w,2,1,"p",2),t.YNc(5,N,2,1,"div",3)),2&W&&(t.xp6(1),t.Q6J("ngIf",!q.isImageBuildIn),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"!==q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"===q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",null!==q.nzNotFoundContent),t.xp6(1),t.Q6J("ngIf",q.nzNotFoundFooter))},directives:[J,pe,A.O5,F.f],encapsulation:2,changeDetection:0}),Y})(),ne=(()=>{class Y{constructor(W,q,ge,ie){this.configService=W,this.viewContainerRef=q,this.cdr=ge,this.injector=ie,this.contentType="string",this.size="",this.destroy$=new o.xQ}ngOnChanges(W){W.nzComponentName&&(this.size=function be(Y){switch(Y){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(W.nzComponentName.currentValue)),W.specificContent&&!W.specificContent.isFirstChange()&&(this.content=W.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const W=this.content;if("string"==typeof W)this.contentType="string";else if(W instanceof t.Rgc){const q={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new i.UE(W,this.viewContainerRef,q)}else if(W instanceof t.DyG){const q=t.zs3.create({parent:this.injector,providers:[{provide:H,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new i.C5(W,this.viewContainerRef,q)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,e.O)(!0),(0,h.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(b.jY),t.Y36(t.s_b),t.Y36(t.sBO),t.Y36(t.zs3))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[t.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(W,q){1&W&&(t.YNc(0,f,4,3,"ng-container",0),t.YNc(1,te,3,2,"ng-container",1)),2&W&&(t.Q6J("ngIf",!q.content&&null!==q.specificContent),t.xp6(1),t.Q6J("ngIf",q.content))},directives:[Ce,A.O5,A.RF,A.n9,A.ED,i.Pl],encapsulation:2,changeDetection:0}),Y})(),ce=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275mod=t.oAB({type:Y}),Y.\u0275inj=t.cJS({imports:[[I.vT,A.ez,i.eL,F.T,O.YI]]}),Y})()},4546:(ae,E,a)=>{a.d(E,{Fd:()=>q,Lr:()=>re,Nx:()=>ne,iK:()=>ie,U5:()=>se,EF:()=>$});var i=a(226),t=a(5113),o=a(925),h=a(9808),e=a(5e3),b=a(969),O=a(1894),A=a(647),F=a(404),I=a(4182),D=a(8929),S=a(2654),P=a(7625),L=a(2198),V=a(4850),w=a(2994),M=a(1059),N=a(8076),C=a(1721),y=a(4170),T=a(655),f=a(9439);const Z=["*"];function K(_,x){if(1&_&&e._UZ(0,"i",6),2&_){const u=e.oxw();e.Q6J("nzType",u.iconType)}}function Q(_,x){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.innerTip)}}const te=function(_){return[_]},H=function(_){return{$implicit:_}};function J(_,x){if(1&_&&(e.TgZ(0,"div",7),e.TgZ(1,"div",8),e.YNc(2,Q,2,1,"ng-container",9),e.qZA(),e.qZA()),2&_){const u=e.oxw();e.Q6J("@helpMotion",void 0),e.xp6(1),e.Q6J("ngClass",e.VKq(4,te,"ant-form-item-explain-"+u.status)),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.innerTip)("nzStringTemplateOutletContext",e.VKq(6,H,u.validateControl))}}function pe(_,x){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.nzExtra)}}function me(_,x){if(1&_&&(e.TgZ(0,"div",10),e.YNc(1,pe,2,1,"ng-container",11),e.qZA()),2&_){const u=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.nzExtra)}}function Ce(_,x){if(1&_&&(e.ynx(0),e._UZ(1,"i",3),e.BQk()),2&_){const u=x.$implicit,v=e.oxw(2);e.xp6(1),e.Q6J("nzType",u)("nzTheme",v.tooltipIcon.theme)}}function be(_,x){if(1&_&&(e.TgZ(0,"span",1),e.YNc(1,Ce,2,2,"ng-container",2),e.qZA()),2&_){const u=e.oxw();e.Q6J("nzTooltipTitle",u.nzTooltipTitle),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.tooltipIcon.type)}}let ne=(()=>{class _{constructor(u,v,k){this.cdr=k,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item")}setWithHelpViaTips(u){this.withHelpClass=u,this.cdr.markForCheck()}setStatus(u){this.status=u,this.cdr.markForCheck()}setHasFeedback(u){this.hasFeedback=u,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(u,v){2&u&&e.ekj("ant-form-item-has-success","success"===v.status)("ant-form-item-has-warning","warning"===v.status)("ant-form-item-has-error","error"===v.status)("ant-form-item-is-validating","validating"===v.status)("ant-form-item-has-feedback",v.hasFeedback&&v.status)("ant-form-item-with-help",v.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})();const Y={type:"question-circle",theme:"outline"};let re=(()=>{class _{constructor(u,v,k,le){var ze;this.nzConfigService=u,this.renderer=k,this.directionality=le,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Y,this.dir="ltr",this.destroy$=new D.xQ,this.inputChanges$=new D.xQ,this.renderer.addClass(v.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(ze=this.directionality.change)||void 0===ze||ze.pipe((0,P.R)(this.destroy$)).subscribe(Ne=>{this.dir=Ne})}getInputObservable(u){return this.inputChanges$.pipe((0,L.h)(v=>u in v),(0,V.U)(v=>v[u]))}ngOnChanges(u){this.inputChanges$.next(u)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(f.jY),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(i.Is,8))},_.\u0275dir=e.lG2({type:_,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(u,v){2&u&&e.ekj("ant-form-horizontal","horizontal"===v.nzLayout)("ant-form-vertical","vertical"===v.nzLayout)("ant-form-inline","inline"===v.nzLayout)("ant-form-rtl","rtl"===v.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[e.TTD]}),(0,T.gn)([(0,f.oS)(),(0,C.yF)()],_.prototype,"nzNoColon",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzAutoTips",void 0),(0,T.gn)([(0,C.yF)()],_.prototype,"nzDisableAutoTips",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzTooltipIcon",void 0),_})();const W={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let q=(()=>{class _{constructor(u,v,k,le,ze,Ne){var Fe,Qe;this.nzFormItemComponent=v,this.cdr=k,this.nzFormDirective=Ne,this._hasFeedback=!1,this.validateChanges=S.w.EMPTY,this.validateString=null,this.destroyed$=new D.xQ,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",le.addClass(u.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(ze.localeChange.pipe((0,w.b)(Ve=>this.localeId=Ve.locale))),this.subscribeAutoTips(null===(Fe=this.nzFormDirective)||void 0===Fe?void 0:Fe.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.getInputObservable("nzDisableAutoTips").pipe((0,L.h)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var u;return"default"!==this.nzDisableAutoTips?(0,C.sw)(this.nzDisableAutoTips):null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzDisableAutoTips}set nzHasFeedback(u){this._hasFeedback=(0,C.sw)(u),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(u){u instanceof I.TO||u instanceof I.On?(this.validateControl=u,this.validateString=null,this.watchControl()):u instanceof I.u?(this.validateControl=u.control,this.validateString=null,this.watchControl()):(this.validateString=u,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,M.O)(null),(0,P.R)(this.destroyed$)).subscribe(u=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?W[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(u){let v;return v="warning"===u||this.validateControlStatus("INVALID","warning")?"warning":"error"===u||this.validateControlStatus("INVALID")?"error":"validating"===u||"pending"===u||this.validateControlStatus("PENDING")?"validating":"success"===u||this.validateControlStatus("VALID")?"success":null,v}validateControlStatus(u,v){if(this.validateControl){const{dirty:k,touched:le,status:ze}=this.validateControl;return(!!k||!!le)&&(v?this.validateControl.hasError(v):ze===u)}return!1}getInnerTip(u){switch(u){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var u,v,k,le,ze,Ne,Fe,Qe,Ve,we,je,et,He;if(this.validateControl){const st=this.validateControl.errors||{};let at="";for(const tt in st)if(st.hasOwnProperty(tt)&&(at=null!==(je=null!==(Fe=null!==(ze=null!==(v=null===(u=st[tt])||void 0===u?void 0:u[this.localeId])&&void 0!==v?v:null===(le=null===(k=this.nzAutoTips)||void 0===k?void 0:k[this.localeId])||void 0===le?void 0:le[tt])&&void 0!==ze?ze:null===(Ne=this.nzAutoTips.default)||void 0===Ne?void 0:Ne[tt])&&void 0!==Fe?Fe:null===(we=null===(Ve=null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.nzAutoTips)||void 0===Ve?void 0:Ve[this.localeId])||void 0===we?void 0:we[tt])&&void 0!==je?je:null===(He=null===(et=this.nzFormDirective)||void 0===et?void 0:et.nzAutoTips.default)||void 0===He?void 0:He[tt]),at)break;this.autoErrorTip=at}}subscribeAutoTips(u){null==u||u.pipe((0,P.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(u){const{nzDisableAutoTips:v,nzAutoTips:k,nzSuccessTip:le,nzWarningTip:ze,nzErrorTip:Ne,nzValidatingTip:Fe}=u;v||k?(this.updateAutoErrorTip(),this.setStatus()):(le||ze||Ne||Fe)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof I.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(ne,9),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(y.wi),e.Y36(re,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-control"]],contentQueries:function(u,v,k){if(1&u&&e.Suo(k,I.a5,5),2&u){let le;e.iGM(le=e.CRH())&&(v.defaultValidateControl=le.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[e.TTD],ngContentSelectors:Z,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"span",2),e.YNc(4,K,1,1,"i",3),e.qZA(),e.qZA(),e.YNc(5,J,3,8,"div",4),e.YNc(6,me,2,1,"div",5)),2&u&&(e.xp6(4),e.Q6J("ngIf",v.nzHasFeedback&&v.iconType),e.xp6(1),e.Q6J("ngIf",v.innerTip),e.xp6(1),e.Q6J("ngIf",v.nzExtra))},directives:[h.O5,A.Ls,h.mk,b.f],encapsulation:2,data:{animation:[N.c8]},changeDetection:0}),_})();function ge(_){const x="string"==typeof _?{type:_}:_;return Object.assign(Object.assign({},Y),x)}let ie=(()=>{class _{constructor(u,v,k,le){this.cdr=k,this.nzFormDirective=le,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.h)(()=>"default"===this.noColon),(0,P.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.h)(()=>"default"===this._tooltipIcon),(0,P.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(u){this.noColon=(0,C.sw)(u)}get nzNoColon(){var u;return"default"!==this.noColon?this.noColon:null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzNoColon}set nzTooltipIcon(u){this._tooltipIcon=ge(u)}get tooltipIcon(){var u;return"default"!==this._tooltipIcon?this._tooltipIcon:ge((null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzTooltipIcon)||Y)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(re,12))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-label"]],inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzFormLabel"],ngContentSelectors:Z,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"label"),e.Hsn(1),e.YNc(2,be,2,2,"span",0),e.qZA()),2&u&&(e.ekj("ant-form-item-no-colon",v.nzNoColon)("ant-form-item-required",v.nzRequired),e.uIk("for",v.nzFor),e.xp6(2),e.Q6J("ngIf",v.nzTooltipTitle))},directives:[h.O5,F.SY,b.f,A.Ls],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,C.yF)()],_.prototype,"nzRequired",void 0),_})(),$=(()=>{class _{constructor(u,v){this.elementRef=u,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-form-text")}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-text"]],exportAs:["nzFormText"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})(),se=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[i.vT,h.ez,O.Jb,A.PV,F.cg,t.xu,o.ud,b.T],O.Jb]}),_})()},1894:(ae,E,a)=>{a.d(E,{t3:()=>S,Jb:()=>P,SK:()=>D});var i=a(5e3),t=a(5647),o=a(8929),h=a(7625),e=a(4090),b=a(5113),O=a(925),A=a(226),F=a(1721),I=a(9808);let D=(()=>{class L{constructor(w,M,N,C,y,T,f){this.elementRef=w,this.renderer=M,this.mediaMatcher=N,this.ngZone=C,this.platform=y,this.breakpointService=T,this.directionality=f,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new t.t(1),this.dir="ltr",this.destroy$=new o.xQ}getGutter(){const w=[null,null],M=this.nzGutter||0;return(Array.isArray(M)?M:[M,null]).forEach((C,y)=>{"object"==typeof C&&null!==C?(w[y]=null,Object.keys(e.WV).map(T=>{const f=T;this.mediaMatcher.matchMedia(e.WV[f]).matches&&C[f]&&(w[y]=C[f])})):w[y]=Number(C)||null}),w}setGutterStyle(){const[w,M]=this.getGutter();this.actualGutter$.next([w,M]);const N=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,`-${y/2}px`)};N("margin-left",w),N("margin-right",w),N("margin-top",M),N("margin-bottom",M)}ngOnInit(){var w;this.dir=this.directionality.value,null===(w=this.directionality.change)||void 0===w||w.pipe((0,h.R)(this.destroy$)).subscribe(M=>{this.dir=M}),this.setGutterStyle()}ngOnChanges(w){w.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(e.WV).pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(w){return new(w||L)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(b.vx),i.Y36(i.R0b),i.Y36(O.t4),i.Y36(e.r3),i.Y36(A.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:18,hostBindings:function(w,M){2&w&&i.ekj("ant-row-top","top"===M.nzAlign)("ant-row-middle","middle"===M.nzAlign)("ant-row-bottom","bottom"===M.nzAlign)("ant-row-start","start"===M.nzJustify)("ant-row-end","end"===M.nzJustify)("ant-row-center","center"===M.nzJustify)("ant-row-space-around","space-around"===M.nzJustify)("ant-row-space-between","space-between"===M.nzJustify)("ant-row-rtl","rtl"===M.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[i.TTD]}),L})(),S=(()=>{class L{constructor(w,M,N,C){this.elementRef=w,this.nzRowDirective=M,this.renderer=N,this.directionality=C,this.classMap={},this.destroy$=new o.xQ,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const w=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,F.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,F.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,F.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,F.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,F.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const M in this.classMap)this.classMap.hasOwnProperty(M)&&this.renderer.removeClass(this.elementRef.nativeElement,M);this.classMap=Object.assign({},w);for(const M in this.classMap)this.classMap.hasOwnProperty(M)&&this.classMap[M]&&this.renderer.addClass(this.elementRef.nativeElement,M)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(w){return"number"==typeof w?`${w} ${w} auto`:"string"==typeof w&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(w)?`0 0 ${w}`:w}generateClass(){const M={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(N=>{const C=N.replace("nz","").toLowerCase();if((0,F.DX)(this[N]))if("number"==typeof this[N]||"string"==typeof this[N])M[`ant-col-${C}-${this[N]}`]=!0;else{const y=this[N];["span","pull","push","offset","order"].forEach(f=>{M[`ant-col-${C}${"span"===f?"-":`-${f}-`}${y[f]}`]=y&&(0,F.DX)(y[f])})}}),M}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe((0,h.R)(this.destroy$)).subscribe(w=>{this.dir=w,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(w){this.setHostClassMap();const{nzFlex:M}=w;M&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,h.R)(this.destroy$)).subscribe(([w,M])=>{const N=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,y/2+"px")};N("padding-left",w),N("padding-right",w),N("padding-top",M),N("padding-bottom",M)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(w){return new(w||L)(i.Y36(i.SBq),i.Y36(D,9),i.Y36(i.Qsj),i.Y36(A.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(w,M){2&w&&i.Udp("flex",M.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[i.TTD]}),L})(),P=(()=>{class L{}return L.\u0275fac=function(w){return new(w||L)},L.\u0275mod=i.oAB({type:L}),L.\u0275inj=i.cJS({imports:[[A.vT,I.ez,b.xu,O.ud]]}),L})()},1047:(ae,E,a)=>{a.d(E,{Zp:()=>q,gB:()=>he,ke:()=>ie,o7:()=>_});var i=a(655),t=a(5e3),o=a(8929),h=a(6787),e=a(2198),b=a(7625),O=a(1059),A=a(7545),F=a(1709),I=a(4850),D=a(1721),S=a(4182),P=a(226),L=a(5664),V=a(9808),w=a(647),M=a(969),N=a(925);const C=["nz-input-group-slot",""];function y(x,u){if(1&x&&t._UZ(0,"i",2),2&x){const v=t.oxw();t.Q6J("nzType",v.icon)}}function T(x,u){if(1&x&&(t.ynx(0),t._uU(1),t.BQk()),2&x){const v=t.oxw();t.xp6(1),t.Oqu(v.template)}}function f(x,u){if(1&x&&t._UZ(0,"span",7),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnBeforeIcon)("template",v.nzAddOnBefore)}}function Z(x,u){}function K(x,u){if(1&x&&(t.TgZ(0,"span",8),t.YNc(1,Z,0,0,"ng-template",9),t.qZA()),2&x){const v=t.oxw(2),k=t.MAs(4);t.ekj("ant-input-affix-wrapper-sm",v.isSmall)("ant-input-affix-wrapper-lg",v.isLarge),t.xp6(1),t.Q6J("ngTemplateOutlet",k)}}function Q(x,u){if(1&x&&t._UZ(0,"span",7),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnAfterIcon)("template",v.nzAddOnAfter)}}function te(x,u){if(1&x&&(t.TgZ(0,"span",4),t.YNc(1,f,1,2,"span",5),t.YNc(2,K,2,5,"span",6),t.YNc(3,Q,1,2,"span",5),t.qZA()),2&x){const v=t.oxw(),k=t.MAs(6);t.xp6(1),t.Q6J("ngIf",v.nzAddOnBefore||v.nzAddOnBeforeIcon),t.xp6(1),t.Q6J("ngIf",v.isAffix)("ngIfElse",k),t.xp6(1),t.Q6J("ngIf",v.nzAddOnAfter||v.nzAddOnAfterIcon)}}function H(x,u){}function J(x,u){if(1&x&&t.YNc(0,H,0,0,"ng-template",9),2&x){t.oxw(2);const v=t.MAs(4);t.Q6J("ngTemplateOutlet",v)}}function pe(x,u){if(1&x&&t.YNc(0,J,1,1,"ng-template",10),2&x){const v=t.oxw(),k=t.MAs(6);t.Q6J("ngIf",v.isAffix)("ngIfElse",k)}}function me(x,u){if(1&x&&t._UZ(0,"span",13),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzPrefixIcon)("template",v.nzPrefix)}}function Ce(x,u){}function be(x,u){if(1&x&&t._UZ(0,"span",14),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzSuffixIcon)("template",v.nzSuffix)}}function ne(x,u){if(1&x&&(t.YNc(0,me,1,2,"span",11),t.YNc(1,Ce,0,0,"ng-template",9),t.YNc(2,be,1,2,"span",12)),2&x){const v=t.oxw(),k=t.MAs(6);t.Q6J("ngIf",v.nzPrefix||v.nzPrefixIcon),t.xp6(1),t.Q6J("ngTemplateOutlet",k),t.xp6(1),t.Q6J("ngIf",v.nzSuffix||v.nzSuffixIcon)}}function ce(x,u){1&x&&t.Hsn(0)}const Y=["*"];let q=(()=>{class x{constructor(v,k,le,ze){this.ngControl=v,this.directionality=ze,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new o.xQ,this.dir="ltr",this.destroy$=new o.xQ,k.addClass(le.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(v){this._disabled=null!=v&&"false"!=`${v}`}ngOnInit(){var v,k;this.ngControl&&(null===(v=this.ngControl.statusChanges)||void 0===v||v.pipe((0,e.h)(()=>null!==this.ngControl.disabled),(0,b.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(k=this.directionality.change)||void 0===k||k.pipe((0,b.R)(this.destroy$)).subscribe(le=>{this.dir=le})}ngOnChanges(v){const{disabled:k}=v;k&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(S.a5,10),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(P.Is,8))},x.\u0275dir=t.lG2({type:x,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(v,k){2&v&&(t.uIk("disabled",k.disabled||null),t.ekj("ant-input-disabled",k.disabled)("ant-input-borderless",k.nzBorderless)("ant-input-lg","large"===k.nzSize)("ant-input-sm","small"===k.nzSize)("ant-input-rtl","rtl"===k.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[t.TTD]}),(0,i.gn)([(0,D.yF)()],x.prototype,"nzBorderless",void 0),x})(),ge=(()=>{class x{constructor(){this.icon=null,this.type=null,this.template=null}}return x.\u0275fac=function(v){return new(v||x)},x.\u0275cmp=t.Xpm({type:x,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(v,k){2&v&&t.ekj("ant-input-group-addon","addon"===k.type)("ant-input-prefix","prefix"===k.type)("ant-input-suffix","suffix"===k.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:C,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(v,k){1&v&&(t.YNc(0,y,1,1,"i",0),t.YNc(1,T,2,1,"ng-container",1)),2&v&&(t.Q6J("ngIf",k.icon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",k.template))},directives:[V.O5,w.Ls,M.f],encapsulation:2,changeDetection:0}),x})(),ie=(()=>{class x{constructor(v){this.elementRef=v}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(t.SBq))},x.\u0275dir=t.lG2({type:x,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),x})(),he=(()=>{class x{constructor(v,k,le,ze){this.focusMonitor=v,this.elementRef=k,this.cdr=le,this.directionality=ze,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new o.xQ}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(v=>v.nzSize=this.nzSize)}ngOnInit(){var v;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(k=>{this.focused=!!k,this.cdr.markForCheck()}),this.dir=this.directionality.value,null===(v=this.directionality.change)||void 0===v||v.pipe((0,b.R)(this.destroy$)).subscribe(k=>{this.dir=k})}ngAfterContentInit(){this.updateChildrenInputSize();const v=this.listOfNzInputDirective.changes.pipe((0,O.O)(this.listOfNzInputDirective));v.pipe((0,A.w)(k=>(0,h.T)(v,...k.map(le=>le.disabled$))),(0,F.zg)(()=>v),(0,I.U)(k=>k.some(le=>le.disabled)),(0,b.R)(this.destroy$)).subscribe(k=>{this.disabled=k,this.cdr.markForCheck()})}ngOnChanges(v){const{nzSize:k,nzSuffix:le,nzPrefix:ze,nzPrefixIcon:Ne,nzSuffixIcon:Fe,nzAddOnAfter:Qe,nzAddOnBefore:Ve,nzAddOnAfterIcon:we,nzAddOnBeforeIcon:je}=v;k&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(le||ze||Ne||Fe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Qe||Ve||we||je)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(L.tE),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(P.Is,8))},x.\u0275cmp=t.Xpm({type:x,selectors:[["nz-input-group"]],contentQueries:function(v,k,le){if(1&v&&t.Suo(le,q,4),2&v){let ze;t.iGM(ze=t.CRH())&&(k.listOfNzInputDirective=ze)}},hostVars:40,hostBindings:function(v,k){2&v&&t.ekj("ant-input-group-compact",k.nzCompact)("ant-input-search-enter-button",k.nzSearch)("ant-input-search",k.nzSearch)("ant-input-search-rtl","rtl"===k.dir)("ant-input-search-sm",k.nzSearch&&k.isSmall)("ant-input-search-large",k.nzSearch&&k.isLarge)("ant-input-group-wrapper",k.isAddOn)("ant-input-group-wrapper-rtl","rtl"===k.dir)("ant-input-group-wrapper-lg",k.isAddOn&&k.isLarge)("ant-input-group-wrapper-sm",k.isAddOn&&k.isSmall)("ant-input-affix-wrapper",k.isAffix&&!k.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===k.dir)("ant-input-affix-wrapper-focused",k.isAffix&&k.focused)("ant-input-affix-wrapper-disabled",k.isAffix&&k.disabled)("ant-input-affix-wrapper-lg",k.isAffix&&!k.isAddOn&&k.isLarge)("ant-input-affix-wrapper-sm",k.isAffix&&!k.isAddOn&&k.isSmall)("ant-input-group",!k.isAffix&&!k.isAddOn)("ant-input-group-rtl","rtl"===k.dir)("ant-input-group-lg",!k.isAffix&&!k.isAddOn&&k.isLarge)("ant-input-group-sm",!k.isAffix&&!k.isAddOn&&k.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[t.TTD],ngContentSelectors:Y,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(v,k){if(1&v&&(t.F$t(),t.YNc(0,te,4,4,"span",0),t.YNc(1,pe,1,2,"ng-template",null,1,t.W1O),t.YNc(3,ne,3,3,"ng-template",null,2,t.W1O),t.YNc(5,ce,1,0,"ng-template",null,3,t.W1O)),2&v){const le=t.MAs(2);t.Q6J("ngIf",k.isAddOn)("ngIfElse",le)}},directives:[ge,V.O5,V.tP],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,D.yF)()],x.prototype,"nzSearch",void 0),(0,i.gn)([(0,D.yF)()],x.prototype,"nzCompact",void 0),x})(),_=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[[P.vT,V.ez,w.PV,N.ud,M.T]]}),x})()},7957:(ae,E,a)=>{a.d(E,{du:()=>xt,Hf:()=>_t,Qp:()=>z,Sf:()=>Xe});var i=a(2845),t=a(7429),o=a(5e3),h=a(8929),e=a(3753),b=a(8514),O=a(7625),A=a(2198),F=a(2986),I=a(1059),D=a(6947),S=a(1721),P=a(9808),L=a(6360),V=a(1777),w=a(5664),M=a(9439),N=a(4170),C=a(969),y=a(2683),T=a(647),f=a(6042),Z=a(2643);a(2313);class te{transform(d,r=0,p="B",R){if(!((0,S.ui)(d)&&(0,S.ui)(r)&&r%1==0&&r>=0))return d;let G=d,de=p;for(;"B"!==de;)G*=1024,de=te.formats[de].prev;if(R){const Ee=(0,S.YM)(te.calculateResult(te.formats[R],G),r);return te.formatResult(Ee,R)}for(const Se in te.formats)if(te.formats.hasOwnProperty(Se)){const Ee=te.formats[Se];if(G{class s{transform(r,p="px"){let Ee="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(We=>We===p)&&(Ee=p),"number"==typeof r?`${r}${Ee}`:`${r}`}}return s.\u0275fac=function(r){return new(r||s)},s.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:s,pure:!0}),s})(),ne=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[P.ez]]}),s})();var ce=a(655),Y=a(1159),re=a(226),W=a(4832);const q=["nz-modal-close",""];function ge(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"i",2),o.BQk()),2&s){const r=d.$implicit;o.xp6(1),o.Q6J("nzType",r)}}const ie=["modalElement"];function he(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function $(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"span",17),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}function se(s,d){}function _(s,d){if(1&s&&o._UZ(0,"div",17),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function x(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function u(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){return o.CHM(r),o.oxw().onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled)("nzDanger",r.config.nzOkDanger),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}const v=["nz-modal-title",""];function k(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"div",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}const le=["nz-modal-footer",""];function ze(s,d){if(1&s&&o._UZ(0,"div",5),2&s){const r=o.oxw(3);o.Q6J("innerHTML",r.config.nzFooter,o.oJD)}}function Ne(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",7),o.NdJ("click",function(){const G=o.CHM(r).$implicit;return o.oxw(4).onButtonClick(G)}),o._uU(1),o.qZA()}if(2&s){const r=d.$implicit,p=o.oxw(4);o.Q6J("hidden",!p.getButtonCallableProp(r,"show"))("nzLoading",p.getButtonCallableProp(r,"loading"))("disabled",p.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzDanger",r.danger)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),o.xp6(1),o.hij(" ",r.label," ")}}function Fe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Ne,2,9,"button",6),o.BQk()),2&s){const r=o.oxw(3);o.xp6(1),o.Q6J("ngForOf",r.buttons)}}function Qe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,ze,1,1,"div",3),o.YNc(2,Fe,2,1,"ng-container",4),o.BQk()),2&s){const r=o.oxw(2);o.xp6(1),o.Q6J("ngIf",!r.buttonsFooter),o.xp6(1),o.Q6J("ngIf",r.buttonsFooter)}}const Ve=function(s,d){return{$implicit:s,modalRef:d}};function we(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Qe,3,2,"ng-container",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",r.config.nzFooter)("nzStringTemplateOutletContext",o.WLB(2,Ve,r.config.nzComponentParams,r.modalRef))}}function je(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function et(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzType",r.config.nzOkType)("nzDanger",r.config.nzOkDanger)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}function He(s,d){if(1&s&&(o.YNc(0,je,2,4,"button",8),o.YNc(1,et,2,6,"button",9)),2&s){const r=o.oxw();o.Q6J("ngIf",null!==r.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==r.config.nzOkText)}}function st(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function at(s,d){1&s&&o._UZ(0,"div",10)}function tt(s,d){}function ft(s,d){if(1&s&&o._UZ(0,"div",11),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function X(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"div",12),o.NdJ("cancelTriggered",function(){return o.CHM(r),o.oxw().onCloseClick()})("okTriggered",function(){return o.CHM(r),o.oxw().onOkClick()}),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("modalRef",r.modalRef)}}const oe=()=>{};class ye{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=oe,this.nzOnOk=oe,this.nzIconType="question-circle"}}const ue="ant-modal-mask",Me="modal",Be={modalContainer:(0,V.X$)("modalContainer",[(0,V.SB)("void, exit",(0,V.oB)({})),(0,V.SB)("enter",(0,V.oB)({})),(0,V.eR)("* => enter",(0,V.jt)(".24s",(0,V.oB)({}))),(0,V.eR)("* => void, * => exit",(0,V.jt)(".2s",(0,V.oB)({})))])};function Ze(s,d,r){return void 0===s?void 0===d?r:d:s}function Pe(s){const{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:R,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ee,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Nt,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:Et,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}=s;return{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:R,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ee,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Nt,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:Et,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}}function De(){throw Error("Attempting to attach modal content after content is already attached")}let Ke=(()=>{class s extends t.en{constructor(r,p,R,G,de,Se,Ee,We,lt,ht){super(),this.ngZone=r,this.host=p,this.focusTrapFactory=R,this.cdr=G,this.render=de,this.overlayRef=Se,this.nzConfigService=Ee,this.config=We,this.animationType=ht,this.animationStateChanged=new o.vpe,this.containerClick=new o.vpe,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new h.xQ,this.document=lt,this.dir=Se.getDirection(),this.isStringContent="string"==typeof We.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Me).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMask,r.nzMask,!0)}get maskClosable(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMaskClosable,r.nzMaskClosable,!0)}onContainerClick(r){r.target===r.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(r)}attachTemplatePortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(r)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const r=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const p=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),R=(0,S.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(r,"transform-origin",`${R.left+p.width/2-r.offsetLeft}px ${R.top+p.height/2-r.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const r=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const p=this.document.activeElement;p!==r&&!r.contains(p)&&r.focus()}}restoreFocus(){const r=this.elementFocusedBeforeModalWasOpened;if(r&&"function"==typeof r.focus){const p=this.document.activeElement,R=this.host.nativeElement;(!p||p===this.document.body||p===R||R.contains(p))&&r.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const r=this.modalElementRef.nativeElement,p=this.overlayRef.backdropElement;r.classList.add("ant-zoom-enter"),r.classList.add("ant-zoom-enter-active"),p&&(p.classList.add("ant-fade-enter"),p.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const r=this.modalElementRef.nativeElement;r.classList.add("ant-zoom-leave"),r.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(r=!1){const p=this.overlayRef.backdropElement;if(p){if(this.animationDisabled()||r)return void p.classList.remove(ue);p.classList.add("ant-fade-leave"),p.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const r=this.overlayRef.backdropElement,p=this.modalElementRef.nativeElement;r&&(r.classList.remove("ant-fade-enter"),r.classList.remove("ant-fade-enter-active")),p.classList.remove("ant-zoom-enter"),p.classList.remove("ant-zoom-enter-active"),p.classList.remove("ant-zoom-leave"),p.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const r=this.overlayRef.backdropElement;r&&(0,S.DX)(this.config.nzZIndex)&&this.render.setStyle(r,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const r=this.overlayRef.backdropElement;if(r&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(R=>{this.render.removeStyle(r,R)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const p=Object.assign({},this.config.nzMaskStyle);Object.keys(p).forEach(R=>{this.render.setStyle(r,R,p[R])}),this.oldMaskStyle=p}}updateMaskClassname(){const r=this.overlayRef.backdropElement;r&&(this.showMask?r.classList.add(ue):r.classList.remove(ue))}onAnimationDone(r){"enter"===r.toState?this.trapFocus():"exit"===r.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(r)}onAnimationStart(r){"enter"===r.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===r.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(r)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(r){this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"mouseup").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,e.R)(r.nativeElement,"mousedown").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return s.\u0275fac=function(r){o.$Z()},s.\u0275dir=o.lG2({type:s,features:[o.qOj]}),s})(),Ue=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:q,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(r,p){1&r&&(o.TgZ(0,"span",0),o.YNc(1,ge,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzCloseIcon))},directives:[C.f,y.w,T.Ls],encapsulation:2,changeDetection:0}),s})(),Ye=(()=>{class s extends Ke{constructor(r,p,R,G,de,Se,Ee,We,lt,ht,St){super(r,R,G,de,Se,Ee,We,lt,ht,St),this.i18n=p,this.config=lt,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.i18n.localeChange.pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(N.wi),o.Y36(o.SBq),o.Y36(w.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(M.jY),o.Y36(ye),o.Y36(P.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-confirm-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let R;o.iGM(R=o.CRH())&&(p.portalOutlet=R.first),o.iGM(R=o.CRH())&&(p.modalElementRef=R.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[o.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,he,1,0,"button",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o._UZ(8,"i",7),o.TgZ(9,"span",8),o.YNc(10,$,2,1,"ng-container",9),o.qZA(),o.TgZ(11,"div",10),o.YNc(12,se,0,0,"ng-template",11),o.YNc(13,_,1,1,"div",12),o.qZA(),o.qZA(),o.TgZ(14,"div",13),o.YNc(15,x,2,4,"button",14),o.YNc(16,u,2,6,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,11,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(3),o.Q6J("nzType",p.config.nzIconType),o.xp6(2),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle),o.xp6(3),o.Q6J("ngIf",p.isStringContent),o.xp6(2),o.Q6J("ngIf",null!==p.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzOkText))},directives:[Ue,f.ix,P.mk,P.PC,P.O5,y.w,T.Ls,C.f,t.Pl,Z.dQ],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})(),Ge=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:v,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0),o.YNc(1,k,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle))},directives:[C.f],encapsulation:2,changeDetection:0}),s})(),it=(()=>{class s{constructor(r,p){this.i18n=r,this.config=p,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.destroy$=new h.xQ,Array.isArray(p.nzFooter)&&(this.buttonsFooter=!0,this.buttons=p.nzFooter.map(nt)),this.i18n.localeChange.pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(r,p){const R=r[p],G=this.modalRef.getContentComponent();return"function"==typeof R?R.apply(r,G&&[G]):R}onButtonClick(r){if(!this.getButtonCallableProp(r,"loading")){const R=this.getButtonCallableProp(r,"onClick");r.autoLoading&&(0,S.tI)(R)&&(r.loading=!0,R.then(()=>r.loading=!1).catch(G=>{throw r.loading=!1,G}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(N.wi),o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:le,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(r,p){if(1&r&&(o.YNc(0,we,2,5,"ng-container",0),o.YNc(1,He,2,2,"ng-template",null,1,o.W1O)),2&r){const R=o.MAs(2);o.Q6J("ngIf",p.config.nzFooter)("ngIfElse",R)}},directives:[f.ix,P.O5,C.f,P.sg,Z.dQ,y.w],encapsulation:2}),s})();function nt(s){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},s)}let rt=(()=>{class s extends Ke{constructor(r,p,R,G,de,Se,Ee,We,lt,ht){super(r,p,R,G,de,Se,Ee,We,lt,ht),this.config=We}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(w.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(M.jY),o.Y36(ye),o.Y36(P.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let R;o.iGM(R=o.CRH())&&(p.portalOutlet=R.first),o.iGM(R=o.CRH())&&(p.modalElementRef=R.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},exportAs:["nzModalContainer"],features:[o.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,st,1,0,"button",3),o.YNc(5,at,1,0,"div",4),o.TgZ(6,"div",5),o.YNc(7,tt,0,0,"ng-template",6),o.YNc(8,ft,1,1,"div",7),o.qZA(),o.YNc(9,X,1,1,"div",8),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,9,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngIf",p.config.nzTitle),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(2),o.Q6J("ngIf",p.isStringContent),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzFooter))},directives:[Ue,Ge,it,P.mk,P.PC,P.O5,t.Pl],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})();class ot{constructor(d,r,p){this.overlayRef=d,this.config=r,this.containerInstance=p,this.componentInstance=null,this.state=0,this.afterClose=new h.xQ,this.afterOpen=new h.xQ,this.destroy$=new h.xQ,p.animationStateChanged.pipe((0,A.h)(R=>"done"===R.phaseName&&"enter"===R.toState),(0,F.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),r.nzAfterOpen instanceof o.vpe&&r.nzAfterOpen.emit()}),p.animationStateChanged.pipe((0,A.h)(R=>"done"===R.phaseName&&"exit"===R.toState),(0,F.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),p.containerClick.pipe((0,F.q)(1),(0,O.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),d.keydownEvents().pipe((0,A.h)(R=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&R.keyCode===Y.hY&&!(0,Y.Vb)(R))).subscribe(R=>{R.preventDefault(),this.trigger("cancel")}),p.cancelTriggered.pipe((0,O.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),p.okTriggered.pipe((0,O.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),d.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),r.nzAfterClose instanceof o.vpe&&r.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(d){this.close(d)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(d){0===this.state&&(this.result=d,this.containerInstance.animationStateChanged.pipe((0,A.h)(r=>"start"===r.phaseName),(0,F.q)(1)).subscribe(r=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},r.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(d){Object.assign(this.config,d),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(d){return(0,ce.mG)(this,void 0,void 0,function*(){const r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[d],p={ok:"nzOkLoading",cancel:"nzCancelLoading"}[d];if(!this.config[p])if(r instanceof o.vpe)r.emit(this.getContentComponent());else if("function"==typeof r){const G=r(this.getContentComponent());if((0,S.tI)(G)){this.config[p]=!0;let de=!1;try{de=yield G}finally{this.config[p]=!1,this.closeWhitResult(de)}}else this.closeWhitResult(G)}})}closeWhitResult(d){!1!==d&&this.close(d)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let Xe=(()=>{class s{constructor(r,p,R,G,de){this.overlay=r,this.injector=p,this.nzConfigService=R,this.parentModal=G,this.directionality=de,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new h.xQ,this.afterAllClose=(0,b.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,I.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,D.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in r||(r.nzWidth=416),"nzMaskClosable"in r||(r.nzMaskClosable=!1),r.nzModalType="confirm",r.nzClassName=`ant-modal-confirm ant-modal-confirm-${p} ${r.nzClassName||""}`,this.create(r)}info(r={}){return this.confirmFactory(r,"info")}success(r={}){return this.confirmFactory(r,"success")}error(r={}){return this.confirmFactory(r,"error")}warning(r={}){return this.confirmFactory(r,"warning")}open(r,p){const R=function Le(s,d){return Object.assign(Object.assign({},d),s)}(p||{},new ye),G=this.createOverlay(R),de=this.attachModalContainer(G,R),Se=this.attachModalContent(r,de,G,R);return de.modalRef=Se,this.openModals.push(Se),Se.afterClose.subscribe(()=>this.removeOpenModal(Se)),Se}removeOpenModal(r){const p=this.openModals.indexOf(r);p>-1&&(this.openModals.splice(p,1),this.openModals.length||this._afterAllClosed.next())}closeModals(r){let p=r.length;for(;p--;)r[p].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(r){const p=this.nzConfigService.getConfigForComponent(Me)||{},R=new i.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Ze(r.nzCloseOnNavigation,p.nzCloseOnNavigation,!0),direction:Ze(r.nzDirection,p.nzDirection,this.directionality.value)});return Ze(r.nzMask,p.nzMask,!0)&&(R.backdropClass=ue),this.overlay.create(R)}attachModalContainer(r,p){const G=o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:i.Iu,useValue:r},{provide:ye,useValue:p}]}),Se=new t.C5("confirm"===p.nzModalType?Ye:rt,p.nzViewContainerRef,G);return r.attach(Se).instance}attachModalContent(r,p,R,G){const de=new ot(R,G,p);if(r instanceof o.Rgc)p.attachTemplatePortal(new t.UE(r,null,{$implicit:G.nzComponentParams,modalRef:de}));else if((0,S.DX)(r)&&"string"!=typeof r){const Se=this.createInjector(de,G),Ee=p.attachComponentPortal(new t.C5(r,G.nzViewContainerRef,Se));(function Ae(s,d){Object.assign(s,d)})(Ee.instance,G.nzComponentParams),de.componentInstance=Ee.instance}else p.attachStringContent();return de}createInjector(r,p){return o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:ot,useValue:r}]})}confirmFactory(r={},p){return"nzIconType"in r||(r.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[p]),"nzCancelText"in r||(r.nzCancelText=null),this.confirm(r,p)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(M.jY),o.LFG(s,12),o.LFG(re.Is,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),_t=(()=>{class s{constructor(r){this.templateRef=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),s})(),yt=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),s})(),Ot=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),s})(),xt=(()=>{class s{constructor(r,p,R){this.cdr=r,this.modal=p,this.viewContainerRef=R,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new o.vpe,this.nzOnCancel=new o.vpe,this.nzAfterOpen=new o.vpe,this.nzAfterClose=new o.vpe,this.nzVisibleChange=new o.vpe,this.modalRef=null,this.destroy$=new h.xQ}set modalTitle(r){r&&this.setTitleWithTemplate(r)}set modalFooter(r){r&&this.setFooterWithTemplate(r)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const r=this.getConfig();this.modalRef=this.modal.create(r),this.modalRef.afterClose.asObservable().pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(r){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(r),this.modalRef=null)}destroy(r){this.close(r)}triggerOk(){var r;null===(r=this.modalRef)||void 0===r||r.triggerOk()}triggerCancel(){var r;null===(r=this.modalRef)||void 0===r||r.triggerCancel()}getContentComponent(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getContentComponent()}getElement(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(r){this.nzTitle=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(r){this.nzFooter=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const r=Pe(this);return r.nzViewContainerRef=this.viewContainerRef,r.nzContent=this.nzContent||this.contentFromContentChild,r}ngOnChanges(r){const{nzVisible:p}=r,R=(0,ce._T)(r,["nzVisible"]);Object.keys(R).length&&this.modalRef&&this.modalRef.updateConfig(Pe(this)),p&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var r;null===(r=this.modalRef)||void 0===r||r._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.sBO),o.Y36(Xe),o.Y36(o.s_b))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal"]],contentQueries:function(r,p,R){if(1&r&&(o.Suo(R,Ot,7,o.Rgc),o.Suo(R,_t,7,o.Rgc),o.Suo(R,yt,7,o.Rgc)),2&r){let G;o.iGM(G=o.CRH())&&(p.modalTitle=G.first),o.iGM(G=o.CRH())&&(p.contentFromContentChild=G.first),o.iGM(G=o.CRH())&&(p.modalFooter=G.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[o.TTD],decls:0,vars:0,template:function(r,p){},encapsulation:2,changeDetection:0}),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMask",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMaskClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCloseOnNavigation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzVisible",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzKeyboard",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzNoAnimation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCentered",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDanger",void 0),s})(),z=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Xe],imports:[[P.ez,re.vT,i.U8,C.T,t.eL,N.YI,f.sL,T.PV,ne,W.g,ne]]}),s})()},3868:(ae,E,a)=>{a.d(E,{Bq:()=>V,Of:()=>N,Dg:()=>M,aF:()=>C});var i=a(5e3),t=a(655),o=a(4182),h=a(5647),e=a(8929),b=a(3753),O=a(7625),A=a(1721),F=a(226),I=a(5664),D=a(9808);const S=["*"],P=["inputElement"],L=["nz-radio",""];let V=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=i.lG2({type:y,selectors:[["","nz-radio-button",""]]}),y})(),w=(()=>{class y{constructor(){this.selected$=new h.t(1),this.touched$=new e.xQ,this.disabled$=new h.t(1),this.name$=new h.t(1)}touch(){this.touched$.next()}select(f){this.selected$.next(f)}setDisabled(f){this.disabled$.next(f)}setName(f){this.name$.next(f)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=i.Yz7({token:y,factory:y.\u0275fac}),y})(),M=(()=>{class y{constructor(f,Z,K){this.cdr=f,this.nzRadioService=Z,this.directionality=K,this.value=null,this.destroy$=new e.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var f;this.nzRadioService.selected$.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.value!==Z&&(this.value=Z,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,O.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(f=this.directionality.change)||void 0===f||f.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(f){const{nzDisabled:Z,nzName:K}=f;Z&&this.nzRadioService.setDisabled(this.nzDisabled),K&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(f){this.value=f,this.nzRadioService.select(f),this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.nzDisabled=f,this.nzRadioService.setDisabled(f),this.cdr.markForCheck()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.sBO),i.Y36(w),i.Y36(F.Is,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-group-large","large"===Z.nzSize)("ant-radio-group-small","small"===Z.nzSize)("ant-radio-group-solid","solid"===Z.nzButtonStyle)("ant-radio-group-rtl","rtl"===Z.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[i._Bn([w,{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}]),i.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(f,Z){1&f&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,A.yF)()],y.prototype,"nzDisabled",void 0),y})(),N=(()=>{class y{constructor(f,Z,K,Q,te,H,J){this.ngZone=f,this.elementRef=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.nzRadioService=H,this.nzRadioButtonDirective=J,this.isNgModel=!1,this.destroy$=new e.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(f){this.nzDisabled=f,this.cdr.markForCheck()}writeValue(f){this.isChecked=f,this.cdr.markForCheck()}registerOnChange(f){this.isNgModel=!0,this.onChange=f}registerOnTouched(f){this.onTouched=f}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.name=f,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.nzDisabled=f,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.isChecked=this.nzValue===f,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,O.R)(this.destroy$)).subscribe(f=>{f||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,b.R)(this.elementRef.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(f=>{f.stopPropagation(),f.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(I.tE),i.Y36(F.Is,8),i.Y36(w,8),i.Y36(V,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(f,Z){if(1&f&&i.Gf(P,5),2&f){let K;i.iGM(K=i.CRH())&&(Z.inputElement=K.first)}},hostVars:16,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-wrapper",!Z.isRadioButton)("ant-radio-button-wrapper",Z.isRadioButton)("ant-radio-wrapper-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-button-wrapper-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-wrapper-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button-wrapper-disabled",Z.nzDisabled&&Z.isRadioButton)("ant-radio-wrapper-rtl",!Z.isRadioButton&&"rtl"===Z.dir)("ant-radio-button-wrapper-rtl",Z.isRadioButton&&"rtl"===Z.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[i._Bn([{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}])],attrs:L,ngContentSelectors:S,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(f,Z){1&f&&(i.F$t(),i.TgZ(0,"span"),i._UZ(1,"input",0,1),i._UZ(3,"span"),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&f&&(i.ekj("ant-radio",!Z.isRadioButton)("ant-radio-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button",Z.isRadioButton)("ant-radio-button-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-button-disabled",Z.nzDisabled&&Z.isRadioButton),i.xp6(1),i.ekj("ant-radio-input",!Z.isRadioButton)("ant-radio-button-input",Z.isRadioButton),i.Q6J("disabled",Z.nzDisabled)("checked",Z.isChecked),i.uIk("autofocus",Z.nzAutoFocus?"autofocus":null)("name",Z.name),i.xp6(2),i.ekj("ant-radio-inner",!Z.isRadioButton)("ant-radio-button-inner",Z.isRadioButton))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,A.yF)()],y.prototype,"nzDisabled",void 0),(0,t.gn)([(0,A.yF)()],y.prototype,"nzAutoFocus",void 0),y})(),C=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[F.vT,D.ez,o.u5]]}),y})()},5197:(ae,E,a)=>{a.d(E,{Ip:()=>Ye,Vq:()=>Ot,LV:()=>xt});var i=a(5e3),t=a(8929),o=a(3753),h=a(591),e=a(6053),b=a(6787),O=a(3393),A=a(685),F=a(969),I=a(9808),D=a(647),S=a(2683),P=a(655),L=a(1059),V=a(7625),w=a(7545),M=a(4090),N=a(1721),C=a(1159),y=a(2845),T=a(4182),f=a(8076),Z=a(9439);const K=["moz","ms","webkit"];function H(z){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(z);const j=K.filter(s=>`${s}CancelAnimationFrame`in window||`${s}CancelRequestAnimationFrame`in window)[0];return j?(window[`${j}CancelAnimationFrame`]||window[`${j}CancelRequestAnimationFrame`]).call(this,z):clearTimeout(z)}const J=function te(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const z=K.filter(j=>`${j}RequestAnimationFrame`in window)[0];return z?window[`${z}RequestAnimationFrame`]:function Q(){let z=0;return function(j){const s=(new Date).getTime(),d=Math.max(0,16-(s-z)),r=setTimeout(()=>{j(s+d)},d);return z=s+d,r}}()}();var pe=a(5664),me=a(4832),Ce=a(925),be=a(226),ne=a(6950),ce=a(4170);const Y=["*"];function re(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.nzLabel)}}function W(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.label)}}function q(z,j){}function ge(z,j){if(1&z&&(i.ynx(0),i.YNc(1,q,0,0,"ng-template",3),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",s.template)}}function ie(z,j){1&z&&i._UZ(0,"i",6)}function he(z,j){if(1&z&&(i.TgZ(0,"div",4),i.YNc(1,ie,1,0,"i",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.icon)("ngIfElse",s.icon)}}function $(z,j){if(1&z&&(i.TgZ(0,"div",4),i._UZ(1,"nz-embed-empty",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("specificContent",s.notFoundContent)}}function se(z,j){if(1&z&&i._UZ(0,"nz-option-item-group",9),2&z){const s=i.oxw().$implicit;i.Q6J("nzLabel",s.groupLabel)}}function _(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-item",10),i.NdJ("itemHover",function(r){return i.CHM(s),i.oxw(2).onItemHover(r)})("itemClick",function(r){return i.CHM(s),i.oxw(2).onItemClick(r)}),i.qZA()}if(2&z){const s=i.oxw().$implicit,d=i.oxw();i.Q6J("icon",d.menuItemSelectedIcon)("customContent",s.nzCustomContent)("template",s.template)("grouped",!!s.groupLabel)("disabled",s.nzDisabled)("showState","tags"===d.mode||"multiple"===d.mode)("label",s.nzLabel)("compareWith",d.compareWith)("activatedValue",d.activatedValue)("listOfSelectedValue",d.listOfSelectedValue)("value",s.nzValue)}}function x(z,j){1&z&&(i.ynx(0,6),i.YNc(1,se,1,1,"nz-option-item-group",7),i.YNc(2,_,1,11,"nz-option-item",8),i.BQk()),2&z&&(i.Q6J("ngSwitch",j.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase","group"),i.xp6(1),i.Q6J("ngSwitchCase","item"))}function u(z,j){}function v(z,j){1&z&&i.Hsn(0)}const k=["inputElement"],le=["mirrorElement"];function ze(z,j){1&z&&i._UZ(0,"span",3,4)}function Ne(z,j){if(1&z&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&z){const s=i.oxw(2);i.xp6(1),i.Oqu(s.label)}}function Fe(z,j){if(1&z&&i._uU(0),2&z){const s=i.oxw(2);i.Oqu(s.label)}}function Qe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,Ne,2,1,"div",2),i.YNc(2,Fe,1,1,"ng-template",null,3,i.W1O),i.BQk()),2&z){const s=i.MAs(3),d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.deletable)("ngIfElse",s)}}function Ve(z,j){1&z&&i._UZ(0,"i",7)}function we(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"span",5),i.NdJ("click",function(r){return i.CHM(s),i.oxw().onDelete(r)}),i.YNc(1,Ve,1,0,"i",6),i.qZA()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.removeIcon)("ngIfElse",s.removeIcon)}}const je=function(z){return{$implicit:z}};function et(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.hij(" ",s.placeholder," ")}}function He(z,j){if(1&z&&i._UZ(0,"nz-select-item",6),2&z){const s=i.oxw(2);i.Q6J("deletable",!1)("disabled",!1)("removeIcon",s.removeIcon)("label",s.listOfTopItem[0].nzLabel)("contentTemplateOutlet",s.customTemplate)("contentTemplateOutletContext",s.listOfTopItem[0])}}function st(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.TgZ(1,"nz-select-search",4),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.YNc(2,He,1,6,"nz-select-item",5),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("showInput",s.showSearch)("mirrorSync",!1)("autofocus",s.autofocus)("focusTrigger",s.open),i.xp6(1),i.Q6J("ngIf",s.isShowSingleLabel)}}function at(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-item",9),i.NdJ("delete",function(){const p=i.CHM(s).$implicit;return i.oxw(2).onDeleteItem(p.contentTemplateOutletContext)}),i.qZA()}if(2&z){const s=j.$implicit,d=i.oxw(2);i.Q6J("removeIcon",d.removeIcon)("label",s.nzLabel)("disabled",s.nzDisabled||d.disabled)("contentTemplateOutlet",s.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",s.contentTemplateOutletContext)}}function tt(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.YNc(1,at,1,6,"nz-select-item",7),i.TgZ(2,"nz-select-search",8),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngForOf",s.listOfSlicedItem)("ngForTrackBy",s.trackValue),i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("autofocus",s.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",s.open)}}function ft(z,j){if(1&z&&i._UZ(0,"nz-select-placeholder",10),2&z){const s=i.oxw();i.Q6J("placeholder",s.placeHolder)}}function X(z,j){1&z&&i._UZ(0,"i",2)}function oe(z,j){1&z&&i._UZ(0,"i",7)}function ye(z,j){1&z&&i._UZ(0,"i",8)}function Oe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,oe,1,0,"i",5),i.YNc(2,ye,1,0,"i",6),i.BQk()),2&z){const s=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!s.search),i.xp6(1),i.Q6J("ngIf",s.search)}}function Re(z,j){if(1&z&&(i.ynx(0),i._UZ(1,"i",10),i.BQk()),2&z){const s=j.$implicit;i.xp6(1),i.Q6J("nzType",s)}}function ue(z,j){if(1&z&&i.YNc(0,Re,2,1,"ng-container",9),2&z){const s=i.oxw(2);i.Q6J("nzStringTemplateOutlet",s.suffixIcon)}}function Me(z,j){if(1&z&&(i.YNc(0,Oe,3,2,"ng-container",3),i.YNc(1,ue,1,1,"ng-template",null,4,i.W1O)),2&z){const s=i.MAs(2),d=i.oxw();i.Q6J("ngIf",!d.suffixIcon)("ngIfElse",s)}}function Be(z,j){1&z&&i._UZ(0,"i",1)}function Le(z,j){if(1&z&&i._UZ(0,"nz-select-arrow",5),2&z){const s=i.oxw();i.Q6J("loading",s.nzLoading)("search",s.nzOpen&&s.nzShowSearch)("suffixIcon",s.nzSuffixIcon)}}function Ze(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-clear",6),i.NdJ("clear",function(){return i.CHM(s),i.oxw().onClearSelection()}),i.qZA()}if(2&z){const s=i.oxw();i.Q6J("clearIcon",s.nzClearIcon)}}function Ae(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-container",7),i.NdJ("keydown",function(r){return i.CHM(s),i.oxw().onKeyDown(r)})("itemClick",function(r){return i.CHM(s),i.oxw().onItemClick(r)})("scrollToBottom",function(){return i.CHM(s),i.oxw().nzScrollToBottom.emit()}),i.qZA()}if(2&z){const s=i.oxw();i.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===s.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===s.dropDownPosition),i.Q6J("ngStyle",s.nzDropdownStyle)("itemSize",s.nzOptionHeightPx)("maxItemLength",s.nzOptionOverflowSize)("matchWidth",s.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("nzNoAnimation",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("listOfContainerItem",s.listOfContainerItem)("menuItemSelectedIcon",s.nzMenuItemSelectedIcon)("notFoundContent",s.nzNotFoundContent)("activatedValue",s.activatedValue)("listOfSelectedValue",s.listOfValue)("dropdownRender",s.nzDropdownRender)("compareWith",s.compareWith)("mode",s.nzMode)}}let Pe=(()=>{class z{constructor(){this.nzLabel=null,this.changes=new t.xQ}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),z})(),De=(()=>{class z{constructor(){this.nzLabel=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,re,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.nzLabel)},directives:[F.f],encapsulation:2,changeDetection:0}),z})(),Ke=(()=>{class z{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new i.vpe,this.itemHover=new i.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(s){const{value:d,activatedValue:r,listOfSelectedValue:p}=s;(d||p)&&(this.selected=this.listOfSelectedValue.some(R=>this.compareWith(R,this.value))),(d||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(s,d){1&s&&i.NdJ("mouseenter",function(){return d.onHostMouseEnter()})("click",function(){return d.onHostClick()}),2&s&&(i.uIk("title",d.label),i.ekj("ant-select-item-option-grouped",d.grouped)("ant-select-item-option-selected",d.selected&&!d.disabled)("ant-select-item-option-disabled",d.disabled)("ant-select-item-option-active",d.activated&&!d.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[i.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(s,d){1&s&&(i.TgZ(0,"div",0),i.YNc(1,W,2,1,"ng-container",1),i.YNc(2,ge,2,1,"ng-container",1),i.qZA(),i.YNc(3,he,2,2,"div",2)),2&s&&(i.xp6(1),i.Q6J("ngIf",!d.customContent),i.xp6(1),i.Q6J("ngIf",d.customContent),i.xp6(1),i.Q6J("ngIf",d.showState&&d.selected))},directives:[I.O5,I.tP,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),Ue=(()=>{class z{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new i.vpe,this.scrollToBottom=new i.vpe,this.scrolledIndex=0}onItemClick(s){this.itemClick.emit(s)}onItemHover(s){this.activatedValue=s}trackValue(s,d){return d.key}onScrolledIndexChange(s){this.scrolledIndex=s,s===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const s=this.listOfContainerItem.findIndex(d=>this.compareWith(d.key,this.activatedValue));(s=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(s||0)}ngOnChanges(s){const{listOfContainerItem:d,activatedValue:r}=s;(d||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-container"]],viewQuery:function(s,d){if(1&s&&i.Gf(O.N7,7),2&s){let r;i.iGM(r=i.CRH())&&(d.cdkVirtualScrollViewport=r.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[i.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(s,d){1&s&&(i.TgZ(0,"div"),i.YNc(1,$,2,1,"div",0),i.TgZ(2,"cdk-virtual-scroll-viewport",1),i.NdJ("scrolledIndexChange",function(p){return d.onScrolledIndexChange(p)}),i.YNc(3,x,3,3,"ng-template",2),i.qZA(),i.YNc(4,u,0,0,"ng-template",3),i.qZA()),2&s&&(i.xp6(1),i.Q6J("ngIf",0===d.listOfContainerItem.length),i.xp6(1),i.Udp("height",d.listOfContainerItem.length*d.itemSize,"px")("max-height",d.itemSize*d.maxItemLength,"px"),i.ekj("full-width",!d.matchWidth),i.Q6J("itemSize",d.itemSize)("maxBufferPx",d.itemSize*d.maxItemLength)("minBufferPx",d.itemSize*d.maxItemLength),i.xp6(1),i.Q6J("cdkVirtualForOf",d.listOfContainerItem)("cdkVirtualForTrackBy",d.trackValue)("cdkVirtualForTemplateCacheSize",0),i.xp6(1),i.Q6J("ngTemplateOutlet",d.dropdownRender))},directives:[A.gB,O.N7,De,Ke,I.O5,O.xd,O.x0,I.RF,I.n9,I.tP],encapsulation:2,changeDetection:0}),z})(),Ye=(()=>{class z{constructor(s,d){this.nzOptionGroupComponent=s,this.destroy$=d,this.changes=new t.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,L.O)(!0),(0,V.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(Pe,8),i.Y36(M.kn))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option"]],viewQuery:function(s,d){if(1&s&&i.Gf(i.Rgc,7),2&s){let r;i.iGM(r=i.CRH())&&(d.template=r.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[i._Bn([M.kn]),i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.YNc(0,v,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,P.gn)([(0,N.yF)()],z.prototype,"nzDisabled",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzHide",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzCustomContent",void 0),z})(),Ge=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new i.vpe,this.isComposingChange=new i.vpe}setCompositionState(s){this.isComposingChange.next(s)}onValueChange(s){this.value=s,this.valueChange.next(s),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const s=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),s.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${s.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(s){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=s;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(pe.tE))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-search"]],viewQuery:function(s,d){if(1&s&&(i.Gf(k,7),i.Gf(le,5)),2&s){let r;i.iGM(r=i.CRH())&&(d.inputElement=r.first),i.iGM(r=i.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[i._Bn([{provide:T.ve,useValue:!1}]),i.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(s,d){1&s&&(i.TgZ(0,"input",0,1),i.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),i.qZA(),i.YNc(2,ze,2,0,"span",2)),2&s&&(i.Udp("opacity",d.showInput?null:0),i.Q6J("ngModel",d.value)("disabled",d.disabled),i.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),i.xp6(2),i.Q6J("ngIf",d.mirrorSync))},directives:[T.Fj,T.JJ,T.On,I.O5],encapsulation:2,changeDetection:0}),z})(),it=(()=>{class z{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new i.vpe}onDelete(s){s.preventDefault(),s.stopPropagation(),this.disabled||this.delete.next(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(s,d){2&s&&(i.uIk("title",d.label),i.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(s,d){1&s&&(i.YNc(0,Qe,4,2,"ng-container",0),i.YNc(1,we,2,2,"span",1)),2&s&&(i.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",i.VKq(3,je,d.contentTemplateOutletContext)),i.xp6(1),i.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[F.f,I.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),nt=(()=>{class z{constructor(){this.placeholder=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,et,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.placeholder)},directives:[F.f],encapsulation:2,changeDetection:0}),z})(),rt=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.ngZone=d,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new i.vpe,this.inputValueChange=new i.vpe,this.deleteItem=new i.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new t.xQ}updateTemplateVariable(){const s=0===this.listOfTopItem.length;this.isShowPlaceholder=s&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!s&&!this.isComposing&&!this.inputValue}isComposingChange(s){this.isComposing=s,this.updateTemplateVariable()}onInputValueChange(s){s!==this.inputValue&&(this.inputValue=s,this.updateTemplateVariable(),this.inputValueChange.emit(s),this.tokenSeparate(s,this.tokenSeparators))}tokenSeparate(s,d){if(s&&s.length&&d.length&&"default"!==this.mode&&((R,G)=>{for(let de=0;de0)return!0;return!1})(s,d)){const R=((R,G)=>{const de=new RegExp(`[${G.join()}]`),Se=R.split(de).filter(Ee=>Ee);return[...new Set(Se)]})(s,d);this.tokenize.next(R)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(s,d){return d.nzValue}onDeleteItem(s){!this.disabled&&!s.nzDisabled&&this.deleteItem.next(s)}ngOnChanges(s){const{listOfTopItem:d,maxTagCount:r,customTemplate:p,maxTagPlaceholder:R}=s;if(d&&this.updateTemplateVariable(),d||r||p||R){const G=this.listOfTopItem.slice(0,this.maxTagCount).map(de=>({nzLabel:de.nzLabel,nzValue:de.nzValue,nzDisabled:de.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:de}));if(this.listOfTopItem.length>this.maxTagCount){const de=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Se=this.listOfTopItem.map(We=>We.nzValue),Ee={nzLabel:de,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Se.slice(this.maxTagCount)};G.push(Ee)}this.listOfSlicedItem=G}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,o.R)(this.elementRef.nativeElement,"click").pipe((0,V.R)(this.destroy$)).subscribe(s=>{s.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,o.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.R)(this.destroy$)).subscribe(s=>{if(s.target instanceof HTMLInputElement){const d=s.target.value;s.keyCode===C.ZH&&"default"!==this.mode&&!d&&this.listOfTopItem.length>0&&(s.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-top-control"]],viewQuery:function(s,d){if(1&s&&i.Gf(Ge,5),2&s){let r;i.iGM(r=i.CRH())&&(d.nzSelectSearchComponent=r.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[i.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(s,d){1&s&&(i.ynx(0,0),i.YNc(1,st,3,8,"ng-container",1),i.YNc(2,tt,3,9,"ng-container",2),i.BQk(),i.YNc(3,ft,1,1,"nz-select-placeholder",3)),2&s&&(i.Q6J("ngSwitch",d.mode),i.xp6(1),i.Q6J("ngSwitchCase","default"),i.xp6(2),i.Q6J("ngIf",d.isShowPlaceholder))},directives:[Ge,it,nt,I.RF,I.n9,I.O5,I.ED,I.sg,S.w],encapsulation:2,changeDetection:0}),z})(),ot=(()=>{class z{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(s,d){2&s&&i.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(s,d){if(1&s&&(i.YNc(0,X,1,0,"i",0),i.YNc(1,Me,3,2,"ng-template",null,1,i.W1O)),2&s){const r=i.MAs(2);i.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[I.O5,D.Ls,S.w,F.f],encapsulation:2,changeDetection:0}),z})(),Xe=(()=>{class z{constructor(){this.clearIcon=null,this.clear=new i.vpe}onClick(s){s.preventDefault(),s.stopPropagation(),this.clear.emit(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(s,d){1&s&&i.NdJ("click",function(p){return d.onClick(p)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(s,d){1&s&&i.YNc(0,Be,1,0,"i",0),2&s&&i.Q6J("ngIf",!d.clearIcon)("ngIfElse",d.clearIcon)},directives:[I.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})();const _t=(z,j)=>!(!j||!j.nzLabel)&&j.nzLabel.toString().toLowerCase().indexOf(z.toLowerCase())>-1;let Ot=(()=>{class z{constructor(s,d,r,p,R,G,de,Se){this.destroy$=s,this.nzConfigService=d,this.cdr=r,this.elementRef=p,this.platform=R,this.focusMonitor=G,this.directionality=de,this.noAnimation=Se,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=_t,this.compareWith=(Ee,We)=>Ee===We,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new i.vpe,this.nzScrollToBottom=new i.vpe,this.nzOpenChange=new i.vpe,this.nzBlur=new i.vpe,this.nzFocus=new i.vpe,this.listOfValue$=new h.X([]),this.listOfTemplateItem$=new h.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(s){this._nzShowArrow=s}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(s){return{nzValue:s,nzLabel:s,type:"item"}}onItemClick(s){if(this.activatedValue=s,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],s))&&this.updateListOfValue([s]),this.setOpenState(!1);else{const d=this.listOfValue.findIndex(r=>this.compareWith(r,s));if(-1!==d){const r=this.listOfValue.filter((p,R)=>R!==d);this.updateListOfValue(r)}else if(this.listOfValue.length!this.compareWith(r,s.nzValue));this.updateListOfValue(d),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let s=this.listOfTagAndTemplateItem.filter(p=>!p.nzHide).filter(p=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,p));if("tags"===this.nzMode&&this.searchValue){const p=this.listOfTagAndTemplateItem.find(R=>R.nzLabel===this.searchValue);if(p)this.activatedValue=p.nzValue;else{const R=this.generateTagItem(this.searchValue);s=[R,...s],this.activatedValue=R.nzValue}}const d=s.find(p=>this.compareWith(p.nzValue,this.listOfValue[0]))||s[0];this.activatedValue=d&&d.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(p=>p.groupLabel).map(p=>p.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(p=>p.nzLabel)),r.forEach(p=>{const R=s.findIndex(G=>p===G.groupLabel);R>-1&&s.splice(R,0,{groupLabel:p,type:"group",key:p})}),this.listOfContainerItem=[...s],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(s){const r=((p,R)=>"default"===this.nzMode?p.length>0?p[0]:null:p)(s);this.value!==r&&(this.listOfValue=s,this.listOfValue$.next(s),this.value=r,this.onChange(this.value))}onTokenSeparate(s){const d=this.listOfTagAndTemplateItem.filter(r=>-1!==s.findIndex(p=>p===r.nzLabel)).map(r=>r.nzValue).filter(r=>-1===this.listOfValue.findIndex(p=>this.compareWith(p,r)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...d]);else if("tags"===this.nzMode){const r=s.filter(p=>-1===this.listOfTagAndTemplateItem.findIndex(R=>R.nzLabel===p));this.updateListOfValue([...this.listOfValue,...d,...r])}this.clearInput()}onOverlayKeyDown(s){s.keyCode===C.hY&&this.setOpenState(!1)}onKeyDown(s){if(this.nzDisabled)return;const d=this.listOfContainerItem.filter(p=>"item"===p.type).filter(p=>!p.nzDisabled),r=d.findIndex(p=>this.compareWith(p.nzValue,this.activatedValue));switch(s.keyCode){case C.LH:s.preventDefault(),this.nzOpen&&(this.activatedValue=d[r>0?r-1:d.length-1].nzValue);break;case C.JH:s.preventDefault(),this.nzOpen?this.activatedValue=d[r{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,s!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){J(()=>{var s,d;null===(d=null===(s=this.cdkConnectedOverlay)||void 0===s?void 0:s.overlayRef)||void 0===d||d.updatePosition()})}writeValue(s){if(this.value!==s){this.value=s;const r=((p,R)=>null==p?[]:"default"===this.nzMode?[p]:p)(s);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=s,s&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(s){const{nzOpen:d,nzDisabled:r,nzOptions:p}=s;if(d&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),p){this.isReactiveDriven=!0;const G=(this.nzOptions||[]).map(de=>({template:de.label instanceof i.Rgc?de.label:null,nzLabel:"string"==typeof de.label||"number"==typeof de.label?de.label:null,nzValue:de.value,nzDisabled:de.disabled||!1,nzHide:de.hide||!1,nzCustomContent:de.label instanceof i.Rgc,groupLabel:de.groupLabel||null,type:"item",key:de.value}));this.listOfTemplateItem$.next(G)}}ngOnInit(){var s;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,V.R)(this.destroy$)).subscribe(d=>{d?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,e.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.R)(this.destroy$)).subscribe(([d,r])=>{const p=d.filter(()=>"tags"===this.nzMode).filter(R=>-1===r.findIndex(G=>this.compareWith(G.nzValue,R))).map(R=>this.listOfTopItem.find(G=>this.compareWith(G.nzValue,R))||this.generateTagItem(R));this.listOfTagAndTemplateItem=[...r,...p],this.listOfTopItem=this.listOfValue.map(R=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(G=>this.compareWith(R,G.nzValue))).filter(R=>!!R),this.updateListOfContainerItem()}),null===(s=this.directionality.change)||void 0===s||s.pipe((0,V.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,b.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,L.O)(!0),(0,w.w)(()=>(0,b.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(s=>s.changes),...this.listOfNzOptionGroupComponent.map(s=>s.changes)).pipe((0,L.O)(!0))),(0,V.R)(this.destroy$)).subscribe(()=>{const s=this.listOfNzOptionComponent.toArray().map(d=>{const{template:r,nzLabel:p,nzValue:R,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ee}=d;return{template:r,nzLabel:p,nzValue:R,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ee,type:"item",key:R}});this.listOfTemplateItem$.next(s),this.cdr.markForCheck()})}ngOnDestroy(){H(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(M.kn),i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Ce.t4),i.Y36(pe.tE),i.Y36(be.Is,8),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select"]],contentQueries:function(s,d,r){if(1&s&&(i.Suo(r,Ye,5),i.Suo(r,Pe,5)),2&s){let p;i.iGM(p=i.CRH())&&(d.listOfNzOptionComponent=p),i.iGM(p=i.CRH())&&(d.listOfNzOptionGroupComponent=p)}},viewQuery:function(s,d){if(1&s&&(i.Gf(y.xu,7,i.SBq),i.Gf(y.pI,7),i.Gf(rt,7),i.Gf(Pe,7,i.SBq),i.Gf(rt,7,i.SBq)),2&s){let r;i.iGM(r=i.CRH())&&(d.originElement=r.first),i.iGM(r=i.CRH())&&(d.cdkConnectedOverlay=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponent=r.first),i.iGM(r=i.CRH())&&(d.nzOptionGroupComponentElement=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponentElement=r.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(s,d){1&s&&i.NdJ("click",function(){return d.onHostClick()}),2&s&&i.ekj("ant-select-lg","large"===d.nzSize)("ant-select-sm","small"===d.nzSize)("ant-select-show-arrow",d.nzShowArrow)("ant-select-disabled",d.nzDisabled)("ant-select-show-search",(d.nzShowSearch||"default"!==d.nzMode)&&!d.nzDisabled)("ant-select-allow-clear",d.nzAllowClear)("ant-select-borderless",d.nzBorderless)("ant-select-open",d.nzOpen)("ant-select-focused",d.nzOpen||d.focused)("ant-select-single","default"===d.nzMode)("ant-select-multiple","default"!==d.nzMode)("ant-select-rtl","rtl"===d.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[i._Bn([M.kn,{provide:T.JU,useExisting:(0,i.Gpc)(()=>z),multi:!0}]),i.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(s,d){if(1&s&&(i.TgZ(0,"nz-select-top-control",0,1),i.NdJ("inputValueChange",function(p){return d.onInputValueChange(p)})("tokenize",function(p){return d.onTokenSeparate(p)})("deleteItem",function(p){return d.onItemDelete(p)})("keydown",function(p){return d.onKeyDown(p)}),i.qZA(),i.YNc(2,Le,1,3,"nz-select-arrow",2),i.YNc(3,Ze,1,1,"nz-select-clear",3),i.YNc(4,Ae,1,19,"ng-template",4),i.NdJ("overlayKeydown",function(p){return d.onOverlayKeyDown(p)})("overlayOutsideClick",function(p){return d.onClickOutside(p)})("detach",function(){return d.setOpenState(!1)})("positionChange",function(p){return d.onPositionChange(p)})),2&s){const r=i.MAs(1);i.Q6J("nzId",d.nzId)("open",d.nzOpen)("disabled",d.nzDisabled)("mode",d.nzMode)("@.disabled",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("nzNoAnimation",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("maxTagPlaceholder",d.nzMaxTagPlaceholder)("removeIcon",d.nzRemoveIcon)("placeHolder",d.nzPlaceHolder)("maxTagCount",d.nzMaxTagCount)("customTemplate",d.nzCustomTemplate)("tokenSeparators",d.nzTokenSeparators)("showSearch",d.nzShowSearch)("autofocus",d.nzAutoFocus)("listOfTopItem",d.listOfTopItem),i.xp6(2),i.Q6J("ngIf",d.nzShowArrow),i.xp6(1),i.Q6J("ngIf",d.nzAllowClear&&!d.nzDisabled&&d.listOfValue.length),i.xp6(1),i.Q6J("cdkConnectedOverlayHasBackdrop",d.nzBackdrop)("cdkConnectedOverlayMinWidth",d.nzDropdownMatchSelectWidth?null:d.triggerWidth)("cdkConnectedOverlayWidth",d.nzDropdownMatchSelectWidth?d.triggerWidth:null)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",d.nzDropdownClassName)("cdkConnectedOverlayOpen",d.nzOpen)}},directives:[rt,ot,Xe,Ue,S.w,y.xu,me.P,I.O5,y.pI,ne.hQ,I.PC],encapsulation:2,data:{animation:[f.mF]},changeDetection:0}),(0,P.gn)([(0,Z.oS)()],z.prototype,"nzSuffixIcon",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzAllowClear",void 0),(0,P.gn)([(0,Z.oS)(),(0,N.yF)()],z.prototype,"nzBorderless",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzShowSearch",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzLoading",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzAutoFocus",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzAutoClearSearchValue",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzServerSearch",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzDisabled",void 0),(0,P.gn)([(0,N.yF)()],z.prototype,"nzOpen",void 0),(0,P.gn)([(0,Z.oS)(),(0,N.yF)()],z.prototype,"nzBackdrop",void 0),z})(),xt=(()=>{class z{}return z.\u0275fac=function(s){return new(s||z)},z.\u0275mod=i.oAB({type:z}),z.\u0275inj=i.cJS({imports:[[be.vT,I.ez,ce.YI,T.u5,Ce.ud,y.U8,D.PV,F.T,A.Xo,ne.e4,me.g,S.a,O.Cl,pe.rt]]}),z})()},6462:(ae,E,a)=>{a.d(E,{i:()=>Z,m:()=>K});var i=a(655),t=a(1159),o=a(5e3),h=a(4182),e=a(8929),b=a(3753),O=a(7625),A=a(9439),F=a(1721),I=a(5664),D=a(226),S=a(2643),P=a(9808),L=a(647),V=a(969);const w=["switchElement"];function M(Q,te){1&Q&&o._UZ(0,"i",8)}function N(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzCheckedChildren)}}function C(Q,te){if(1&Q&&(o.ynx(0),o.YNc(1,N,2,1,"ng-container",9),o.BQk()),2&Q){const H=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",H.nzCheckedChildren)}}function y(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzUnCheckedChildren)}}function T(Q,te){if(1&Q&&o.YNc(0,y,2,1,"ng-container",9),2&Q){const H=o.oxw();o.Q6J("nzStringTemplateOutlet",H.nzUnCheckedChildren)}}let Z=(()=>{class Q{constructor(H,J,pe,me,Ce,be){this.nzConfigService=H,this.host=J,this.ngZone=pe,this.cdr=me,this.focusMonitor=Ce,this.directionality=be,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new e.xQ}updateValue(H){this.isChecked!==H&&(this.isChecked=H,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,O.R)(this.destroy$)).subscribe(H=>{this.dir=H,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,b.R)(this.host.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(H=>{H.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,b.R)(this.switchElement.nativeElement,"keydown").pipe((0,O.R)(this.destroy$)).subscribe(H=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:J}=H;J!==t.oh&&J!==t.SV&&J!==t.L_&&J!==t.K5||(H.preventDefault(),this.ngZone.run(()=>{J===t.oh?this.updateValue(!1):J===t.SV?this.updateValue(!0):(J===t.L_||J===t.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,O.R)(this.destroy$)).subscribe(H=>{H||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(H){this.isChecked=H,this.cdr.markForCheck()}registerOnChange(H){this.onChange=H}registerOnTouched(H){this.onTouched=H}setDisabledState(H){this.nzDisabled=H,this.cdr.markForCheck()}}return Q.\u0275fac=function(H){return new(H||Q)(o.Y36(A.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(I.tE),o.Y36(D.Is,8))},Q.\u0275cmp=o.Xpm({type:Q,selectors:[["nz-switch"]],viewQuery:function(H,J){if(1&H&&o.Gf(w,7),2&H){let pe;o.iGM(pe=o.CRH())&&(J.switchElement=pe.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>Q),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(H,J){if(1&H&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,C,2,1,"ng-container",5),o.YNc(6,T,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&H){const pe=o.MAs(7);o.ekj("ant-switch-checked",J.isChecked)("ant-switch-loading",J.nzLoading)("ant-switch-disabled",J.nzDisabled)("ant-switch-small","small"===J.nzSize)("ant-switch-rtl","rtl"===J.dir),o.Q6J("disabled",J.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",J.nzLoading),o.xp6(2),o.Q6J("ngIf",J.isChecked)("ngIfElse",pe)}},directives:[S.dQ,P.O5,L.Ls,V.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,F.yF)()],Q.prototype,"nzLoading",void 0),(0,i.gn)([(0,F.yF)()],Q.prototype,"nzDisabled",void 0),(0,i.gn)([(0,F.yF)()],Q.prototype,"nzControl",void 0),(0,i.gn)([(0,A.oS)()],Q.prototype,"nzSize",void 0),Q})(),K=(()=>{class Q{}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275mod=o.oAB({type:Q}),Q.\u0275inj=o.cJS({imports:[[D.vT,P.ez,S.vG,L.PV,V.T]]}),Q})()},592:(ae,E,a)=>{a.d(E,{Uo:()=>Xt,N8:()=>In,HQ:()=>wn,p0:()=>yn,qD:()=>jt,_C:()=>ut,Om:()=>An,$Z:()=>Sn});var i=a(226),t=a(925),o=a(3393),h=a(9808),e=a(5e3),b=a(4182),O=a(6042),A=a(5577),F=a(6114),I=a(969),D=a(3677),S=a(685),P=a(4170),L=a(647),V=a(4219),w=a(655),M=a(8929),N=a(5647),C=a(7625),y=a(9439),T=a(4090),f=a(1721),Z=a(5197);const K=["nz-pagination-item",""];function Q(c,g){if(1&c&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&c){const n=e.oxw().page;e.xp6(1),e.Oqu(n)}}function te(c,g){1&c&&e._UZ(0,"i",9)}function H(c,g){1&c&&e._UZ(0,"i",10)}function J(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,te,1,0,"i",7),e.YNc(3,H,1,0,"i",8),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function pe(c,g){1&c&&e._UZ(0,"i",10)}function me(c,g){1&c&&e._UZ(0,"i",9)}function Ce(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,pe,1,0,"i",11),e.YNc(3,me,1,0,"i",12),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function be(c,g){1&c&&e._UZ(0,"i",20)}function ne(c,g){1&c&&e._UZ(0,"i",21)}function ce(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,be,1,0,"i",18),e.YNc(2,ne,1,0,"i",19),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function Y(c,g){1&c&&e._UZ(0,"i",21)}function re(c,g){1&c&&e._UZ(0,"i",20)}function W(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,Y,1,0,"i",22),e.YNc(2,re,1,0,"i",23),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function q(c,g){if(1&c&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,ce,3,2,"ng-container",16),e.YNc(3,W,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&c){const n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",n),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function ge(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,q,6,3,"div",14),e.qZA(),e.BQk()),2&c){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",n)}}function ie(c,g){1&c&&(e.ynx(0,2),e.YNc(1,Q,2,1,"a",3),e.YNc(2,J,4,3,"button",4),e.YNc(3,Ce,4,3,"button",4),e.YNc(4,ge,3,1,"ng-container",5),e.BQk()),2&c&&(e.Q6J("ngSwitch",g.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function he(c,g){}const $=function(c,g){return{$implicit:c,page:g}},se=["containerTemplate"];function _(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(n),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(n),e.oxw().nextPage()}),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("disabled",n.isFirstIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",n.locale.prev_page),e.xp6(1),e.uIk("title",n.pageIndex+"/"+n.lastIndex),e.xp6(1),e.Q6J("disabled",n.disabled)("value",n.pageIndex),e.xp6(3),e.hij(" ",n.lastIndex," "),e.xp6(1),e.Q6J("disabled",n.isLastIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",null==n.locale?null:n.locale.next_page)}}const x=["nz-pagination-options",""];function u(c,g){if(1&c&&e._UZ(0,"nz-option",4),2&c){const n=g.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value)}}function v(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(m){return e.CHM(n),e.oxw().onPageSizeChange(m)}),e.YNc(1,u,1,2,"nz-option",3),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("nzDisabled",n.disabled)("nzSize",n.nzSize)("ngModel",n.pageSize),e.xp6(1),e.Q6J("ngForOf",n.listOfPageSizeOption)("ngForTrackBy",n.trackByOption)}}function k(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e._uU(3),e.qZA()}if(2&c){const n=e.oxw();e.xp6(1),e.hij(" ",n.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",n.disabled),e.xp6(1),e.hij(" ",n.locale.page," ")}}function le(c,g){}const ze=function(c,g){return{$implicit:c,range:g}};function Ne(c,g){if(1&c&&(e.TgZ(0,"li",4),e.YNc(1,le,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.showTotal)("ngTemplateOutletContext",e.WLB(2,ze,n.total,n.ranges))}}function Fe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(m){return e.CHM(n),e.oxw(2).jumpPage(m)})("diffIndex",function(m){return e.CHM(n),e.oxw(2).jumpDiff(m)}),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("locale",l.locale)("type",n.type)("index",n.index)("disabled",!!n.disabled)("itemRender",l.itemRender)("active",l.pageIndex===n.index)("direction",l.dir)}}function Qe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)})("pageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("total",n.total)("locale",n.locale)("disabled",n.disabled)("nzSize",n.nzSize)("showSizeChanger",n.showSizeChanger)("showQuickJumper",n.showQuickJumper)("pageIndex",n.pageIndex)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)}}function Ve(c,g){if(1&c&&(e.YNc(0,Ne,2,5,"li",1),e.YNc(1,Fe,1,7,"li",2),e.YNc(2,Qe,1,9,"div",3)),2&c){const n=e.oxw();e.Q6J("ngIf",n.showTotal),e.xp6(1),e.Q6J("ngForOf",n.listOfPageItem)("ngForTrackBy",n.trackByPageItem),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper||n.showSizeChanger)}}function we(c,g){}function je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,we,0,0,"ng-template",6),e.BQk()),2&c){e.oxw(2);const n=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)}}function et(c,g){if(1&c&&(e.ynx(0),e.YNc(1,je,2,1,"ng-container",5),e.BQk()),2&c){const n=e.oxw(),l=e.MAs(4);e.xp6(1),e.Q6J("ngIf",n.nzSimple)("ngIfElse",l.template)}}let He=(()=>{class c{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(n){var l,m,B,ee;const{locale:_e,index:ve,type:Ie}=n;(_e||ve||Ie)&&(this.title={page:`${this.index}`,next:null===(l=this.locale)||void 0===l?void 0:l.next_page,prev:null===(m=this.locale)||void 0===m?void 0:m.prev_page,prev_5:null===(B=this.locale)||void 0===B?void 0:B.prev_5,next_5:null===(ee=this.locale)||void 0===ee?void 0:ee.next_5}[this.type])}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.clickItem()}),2&n&&(e.uIk("title",l.title),e.ekj("ant-pagination-prev","prev"===l.type)("ant-pagination-next","next"===l.type)("ant-pagination-item","page"===l.type)("ant-pagination-jump-prev","prev_5"===l.type)("ant-pagination-jump-prev-custom-icon","prev_5"===l.type)("ant-pagination-jump-next","next_5"===l.type)("ant-pagination-jump-next-custom-icon","next_5"===l.type)("ant-pagination-disabled",l.disabled)("ant-pagination-item-active",l.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:K,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(n,l){if(1&n&&(e.YNc(0,ie,5,4,"ng-template",null,0,e.W1O),e.YNc(2,he,0,0,"ng-template",1)),2&n){const m=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",l.itemRender||m)("ngTemplateOutletContext",e.WLB(2,$,l.type,l.index))}},directives:[h.RF,h.n9,L.Ls,h.ED,h.tP],encapsulation:2,changeDetection:0}),c})(),st=(()=>{class c{constructor(n,l,m,B){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=B,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(n){const l=n.target,m=(0,f.He)(l.value,this.pageIndex);this.onPageIndexChange(m),l.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(n){this.pageIndexChange.next(n)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(n){const{pageIndex:l,total:m,pageSize:B}=n;(l||m||B)&&this.updateBindingValue()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination-simple"]],viewQuery:function(n,l){if(1&n&&e.Gf(se,7),2&n){let m;e.iGM(m=e.CRH())&&(l.template=m.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(n,l){1&n&&e.YNc(0,_,7,12,"ng-template",null,0,e.W1O)},directives:[He],encapsulation:2,changeDetection:0}),c})(),at=(()=>{class c{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(n){this.pageSize!==n&&this.pageSizeChange.next(n)}jumpToPageViaInput(n){const l=n.target,m=Math.floor((0,f.He)(l.value,this.pageIndex));this.pageIndexChange.next(m),l.value=""}trackByOption(n,l){return l.value}ngOnChanges(n){const{pageSize:l,pageSizeOptions:m,locale:B}=n;(l||m||B)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(ee=>({value:ee,label:`${ee} ${this.locale.items_per_page}`})))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:x,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(n,l){1&n&&(e.YNc(0,v,2,5,"nz-select",0),e.YNc(1,k,4,3,"div",1)),2&n&&(e.Q6J("ngIf",l.showSizeChanger),e.xp6(1),e.Q6J("ngIf",l.showQuickJumper))},directives:[Z.Vq,Z.Ip,h.O5,b.JJ,b.On,h.sg],encapsulation:2,changeDetection:0}),c})(),tt=(()=>{class c{constructor(n,l,m,B){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=B,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(n){this.onPageIndexChange(n)}jumpDiff(n){this.jumpPage(this.pageIndex+n)}trackByPageItem(n,l){return`${l.type}-${l.index}`}onPageIndexChange(n){this.pageIndexChange.next(n)}onPageSizeChange(n){this.pageSizeChange.next(n)}getLastIndex(n,l){return Math.ceil(n/l)}buildIndexes(){const n=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,n)}getListOfPageItem(n,l){const B=(ee,_e)=>{const ve=[];for(let Ie=ee;Ie<=_e;Ie++)ve.push({index:Ie,type:"page"});return ve};return ee=l<=9?B(1,l):((_e,ve)=>{let Ie=[];const $e={type:"prev_5"},Te={type:"next_5"},dt=B(1,1),Tt=B(l,l);return Ie=_e<5?[...B(2,4===_e?6:5),Te]:_e{class c{constructor(n,l,m,B,ee){this.i18n=n,this.cdr=l,this.breakpointService=m,this.nzConfigService=B,this.directionality=ee,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new M.xQ,this.total$=new N.t(1)}validatePageIndex(n,l){return n>l?l:n<1?1:n}onPageIndexChange(n){const l=this.getLastIndex(this.nzTotal,this.nzPageSize),m=this.validatePageIndex(n,l);m!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=m,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(n){this.nzPageSize=n,this.nzPageSizeChange.emit(n);const l=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>l&&this.onPageIndexChange(l)}onTotalChange(n){const l=this.getLastIndex(n,this.nzPageSize);this.nzPageIndex>l&&Promise.resolve().then(()=>{this.onPageIndexChange(l),this.cdr.markForCheck()})}getLastIndex(n,l){return Math.ceil(n/l)}ngOnInit(){var n;this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.onTotalChange(l)}),this.breakpointService.subscribe(T.WV).pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.nzResponsive&&(this.size=l===T.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(n){const{nzHideOnSinglePage:l,nzTotal:m,nzPageSize:B,nzSize:ee}=n;m&&this.total$.next(this.nzTotal),(l||m||B)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),ee&&(this.size=ee.currentValue)}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(P.wi),e.Y36(e.sBO),e.Y36(T.r3),e.Y36(y.jY),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(n,l){2&n&&e.ekj("ant-pagination-simple",l.nzSimple)("ant-pagination-disabled",l.nzDisabled)("mini",!l.nzSimple&&"small"===l.size)("ant-pagination-rtl","rtl"===l.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,et,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(B){return l.onPageIndexChange(B)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(B){return l.onPageIndexChange(B)})("pageSizeChange",function(B){return l.onPageSizeChange(B)}),e.qZA()),2&n&&(e.Q6J("ngIf",l.showPagination),e.xp6(1),e.Q6J("disabled",l.nzDisabled)("itemRender",l.nzItemRender)("locale",l.locale)("pageSize",l.nzPageSize)("total",l.nzTotal)("pageIndex",l.nzPageIndex),e.xp6(2),e.Q6J("nzSize",l.size)("itemRender",l.nzItemRender)("showTotal",l.nzShowTotal)("disabled",l.nzDisabled)("locale",l.locale)("showSizeChanger",l.nzShowSizeChanger)("showQuickJumper",l.nzShowQuickJumper)("total",l.nzTotal)("pageIndex",l.nzPageIndex)("pageSize",l.nzPageSize)("pageSizeOptions",l.nzPageSizeOptions))},directives:[st,tt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,w.gn)([(0,y.oS)()],c.prototype,"nzPageSizeOptions",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzDisabled",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzResponsive",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,w.gn)([(0,f.Rn)()],c.prototype,"nzTotal",void 0),(0,w.gn)([(0,f.Rn)()],c.prototype,"nzPageIndex",void 0),(0,w.gn)([(0,f.Rn)()],c.prototype,"nzPageSize",void 0),c})(),oe=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,h.ez,b.u5,Z.LV,P.YI,L.PV]]}),c})();var ye=a(3868),Oe=a(7525),Re=a(3753),ue=a(591),Me=a(6053),Be=a(6787),Le=a(8896),Ze=a(1086),Ae=a(4850),Pe=a(1059),De=a(7545),Ke=a(13),Ue=a(8583),Ye=a(2198),Ge=a(5778),it=a(1307),nt=a(1709),rt=a(2683),ot=a(2643);const Xe=["*"];function _t(c,g){}function yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function Ot(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function xt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const B=e.CHM(n).$implicit;return e.oxw(2).check(B)}),e.YNc(1,yt,1,1,"label",13),e.YNc(2,Ot,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("nzSelected",n.checked),e.xp6(1),e.Q6J("ngIf",!l.filterMultiple),e.xp6(1),e.Q6J("ngIf",l.filterMultiple),e.xp6(2),e.Oqu(n.text)}}function z(c,g){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(m){return e.CHM(n),e.oxw().onVisibleChange(m)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,xt,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(n),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(n),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&c){const n=e.MAs(4),l=e.oxw();e.xp6(1),e.Q6J("nzVisible",l.isVisible)("nzActive",l.isChecked)("nzDropdownMenu",n),e.xp6(6),e.Q6J("ngForOf",l.listOfParsedFilter)("ngForTrackBy",l.trackByValue),e.xp6(2),e.Q6J("disabled",!l.isChecked),e.xp6(1),e.hij(" ",l.locale.filterReset," "),e.xp6(2),e.Oqu(l.locale.filterConfirm)}}function r(c,g){}function p(c,g){if(1&c&&e._UZ(0,"i",6),2&c){const n=e.oxw();e.ekj("active","ascend"===n.sortOrder)}}function R(c,g){if(1&c&&e._UZ(0,"i",7),2&c){const n=e.oxw();e.ekj("active","descend"===n.sortOrder)}}const Ee=["nzColumnKey",""];function We(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(m){return e.CHM(n),e.oxw().onFilterValueChange(m)}),e.qZA()}if(2&c){const n=e.oxw(),l=e.MAs(2),m=e.MAs(4);e.Q6J("contentTemplate",l)("extraTemplate",m)("customFilter",n.nzCustomFilter)("filterMultiple",n.nzFilterMultiple)("listOfFilter",n.nzFilters)}}function lt(c,g){}function ht(c,g){if(1&c&&e.YNc(0,lt,0,0,"ng-template",6),2&c){const n=e.oxw(),l=e.MAs(6),m=e.MAs(8);e.Q6J("ngTemplateOutlet",n.nzShowSort?l:m)}}function St(c,g){1&c&&(e.Hsn(0),e.Hsn(1,1))}function wt(c,g){if(1&c&&e._UZ(0,"nz-table-sorters",7),2&c){const n=e.oxw(),l=e.MAs(8);e.Q6J("sortOrder",n.sortOrder)("sortDirections",n.sortDirections)("contentTemplate",l)}}function Pt(c,g){1&c&&e.Hsn(0,2)}const Ft=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],bt=["[nz-th-extra]","nz-filter-trigger","*"],Rt=["nz-table-content",""];function Bt(c,g){if(1&c&&e._UZ(0,"col"),2&c){const n=g.$implicit;e.Udp("width",n)("min-width",n)}}function kt(c,g){}function Lt(c,g){if(1&c&&(e.TgZ(0,"thead",3),e.YNc(1,kt,0,0,"ng-template",2),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.theadTemplate)}}function Dt(c,g){}const Mt=["tdElement"],Zt=["nz-table-fixed-row",""];function $t(c,g){}function Wt(c,g){if(1&c&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,$t,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(),l=e.MAs(5);e.Udp("width",e.lcZ(1,3,n.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",l)}}function Nt(c,g){1&c&&e.Hsn(0)}const Qt=["nz-table-measure-row",""];function Ut(c,g){1&c&&e._UZ(0,"td",1,2)}function Yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(m){return e.CHM(n),e.oxw(2).onListOfAutoWidthChange(m)}),e.qZA()}if(2&c){const n=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",n)}}function Et(c,g){if(1&c&&(e.ynx(0),e.YNc(1,Yt,1,1,"tr",2),e.BQk()),2&c){const n=g.ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngIf",l.isInsideTable&&n.length)}}function Vt(c,g){if(1&c&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,n.noResult$))}}const Ht=["tableHeaderElement"],Jt=["tableBodyElement"];function qt(c,g){if(1&c&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("contentTemplate",n.contentTemplate)}}function en(c,g){}const tn=function(c,g){return{$implicit:c,index:g}};function nn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,en,0,0,"ng-template",13),e.BQk()),2&c){const n=g.$implicit,l=g.index,m=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",m.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,tn,n,l))}}function on(c,g){if(1&c&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,nn,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&c){const n=e.oxw(2);e.Udp("height",n.data.length?n.scrollY:n.noDateVirtualHeight),e.Q6J("itemSize",n.virtualItemSize)("maxBufferPx",n.virtualMaxBufferPx)("minBufferPx",n.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",n.data)("cdkVirtualForTrackBy",n.virtualForTrackBy)}}function an(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,qt,3,4,"div",5),e.YNc(5,on,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngStyle",n.headerStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate),e.xp6(1),e.Q6J("ngIf",!n.virtualTemplate),e.xp6(1),e.Q6J("ngIf",n.virtualTemplate)}}function sn(c,g){if(1&c&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&c){const n=e.oxw();e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",n.contentTemplate)}}function rn(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.title)}}function ln(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.footer)}}function cn(c,g){}function dn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function pn(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",11),2&c){const n=e.oxw();e.Q6J("title",n.nzTitle)}}function hn(c,g){if(1&c&&e._UZ(0,"nz-table-inner-scroll",12),2&c){const n=e.oxw(),l=e.MAs(13),m=e.MAs(3);e.Q6J("data",n.data)("scrollX",n.scrollX)("scrollY",n.scrollY)("contentTemplate",l)("listOfColWidth",n.listOfAutoColWidth)("theadTemplate",n.theadTemplate)("verticalScrollBarWidth",n.verticalScrollBarWidth)("virtualTemplate",n.nzVirtualScrollDirective?n.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",n.nzVirtualItemSize)("virtualMaxBufferPx",n.nzVirtualMaxBufferPx)("virtualMinBufferPx",n.nzVirtualMinBufferPx)("tableMainElement",m)("virtualForTrackBy",n.nzVirtualForTrackBy)}}function ke(c,g){if(1&c&&e._UZ(0,"nz-table-inner-default",13),2&c){const n=e.oxw(),l=e.MAs(13);e.Q6J("tableLayout",n.nzTableLayout)("listOfColWidth",n.listOfManualColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",l)}}function It(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",14),2&c){const n=e.oxw();e.Q6J("footer",n.nzFooter)}}function un(c,g){}function fn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,un,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function gn(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)})("nzPageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("hidden",!n.showPagination)("nzShowSizeChanger",n.nzShowSizeChanger)("nzPageSizeOptions",n.nzPageSizeOptions)("nzItemRender",n.nzItemRender)("nzShowQuickJumper",n.nzShowQuickJumper)("nzHideOnSinglePage",n.nzHideOnSinglePage)("nzShowTotal",n.nzShowTotal)("nzSize","small"===n.nzPaginationType?"small":"default"===n.nzSize?"default":"small")("nzPageSize",n.nzPageSize)("nzTotal",n.nzTotal)("nzSimple",n.nzSimple)("nzPageIndex",n.nzPageIndex)}}function mn(c,g){if(1&c&&e.YNc(0,gn,1,12,"nz-pagination",15),2&c){const n=e.oxw();e.Q6J("ngIf",n.nzShowPagination&&n.data.length)}}function _n(c,g){1&c&&e.Hsn(0)}const U=["contentTemplate"];function fe(c,g){1&c&&e.Hsn(0)}function xe(c,g){}function Je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,xe,0,0,"ng-template",2),e.BQk()),2&c){e.oxw();const n=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}let ct=(()=>{class c{constructor(n,l,m,B){this.nzConfigService=n,this.ngZone=l,this.cdr=m,this.destroy$=B,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(n){this.nzVisible=n,this.nzVisibleChange.next(n)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Re.R)(this.nzDropdown.nativeElement,"click").pipe((0,C.R)(this.destroy$)).subscribe(n=>{n.stopPropagation()})})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(y.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(T.kn))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-filter-trigger"]],viewQuery:function(n,l){if(1&n&&e.Gf(D.cm,7,e.SBq),2&n){let m;e.iGM(m=e.CRH())&&(l.nzDropdown=m.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([T.kn])],ngContentSelectors:Xe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(n,l){1&n&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(B){return l.onVisibleChange(B)}),e.Hsn(1),e.qZA()),2&n&&(e.ekj("active",l.nzActive)("ant-table-filter-open",l.nzVisible),e.Q6J("nzBackdrop",l.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible))},directives:[D.cm],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBackdrop",void 0),c})(),qe=(()=>{class c{constructor(n,l){this.cdr=n,this.i18n=l,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new M.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(n,l){return l.value}check(n){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(l=>l===n?Object.assign(Object.assign({},l),{checked:!n.checked}):l),n.checked=!n.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(l=>Object.assign(Object.assign({},l),{checked:l===n})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(n){this.isVisible=n,n?this.listOfChecked=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value):this.emitFilterData()}emitFilterData(){const n=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value);(0,f.cO)(this.listOfChecked,n)||this.filterChange.emit(this.filterMultiple?n:n.length>0?n[0]:null)}parseListOfFilter(n,l){return n.map(m=>({text:m.text,value:m.value,checked:!l&&!!m.byDefault}))}getCheckedStatus(n){return n.some(l=>l.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(n){const{listOfFilter:l}=n;l&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(P.wi))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,_t,0,0,"ng-template",1),e.qZA(),e.YNc(2,z,13,8,"ng-container",2)),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.Q6J("ngIf",!l.customFilter)("ngIfElse",l.extraTemplate))},directives:[ct,D.RR,ye.Of,F.Ie,O.ix,h.tP,h.O5,rt.w,L.Ls,V.wO,h.sg,V.r9,b.JJ,b.On,ot.dQ],encapsulation:2,changeDetection:0}),c})(),Gt=(()=>{class c{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(n){const{sortDirections:l}=n;l&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,r,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,p,1,2,"i",4),e.YNc(5,R,1,2,"i",5),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",l.isDown&&l.isUp),e.xp6(2),e.Q6J("ngIf",l.isUp),e.xp6(1),e.Q6J("ngIf",l.isDown))},directives:[h.tP,h.O5,rt.w,L.Ls],encapsulation:2,changeDetection:0}),c})(),Ct=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new M.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"left",n)}setAutoRightWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"right",n)}setIsFirstRight(n){this.setFixClass(n,"ant-table-cell-fix-right-first")}setIsLastLeft(n){this.setFixClass(n,"ant-table-cell-fix-left-last")}setFixClass(n,l){this.renderer.removeClass(this.elementRef.nativeElement,l),n&&this.renderer.addClass(this.elementRef.nativeElement,l)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const n=l=>"string"==typeof l&&""!==l?l:null;this.setAutoLeftWidth(n(this.nzLeft)),this.setAutoRightWidth(n(this.nzRight)),this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(n,l){2&n&&(e.Udp("position",l.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",l.isFixedRight)("ant-table-cell-fix-left",l.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),c})(),mt=(()=>{class c{constructor(){this.theadTemplate$=new N.t(1),this.hasFixLeft$=new N.t(1),this.hasFixRight$=new N.t(1),this.hostWidth$=new N.t(1),this.columnCount$=new N.t(1),this.showEmpty$=new N.t(1),this.noResult$=new N.t(1),this.listOfThWidthConfigPx$=new ue.X([]),this.tableWidthConfigPx$=new ue.X([]),this.manualWidthConfigPx$=(0,Me.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length?n:l)),this.listOfAutoWidthPx$=new N.t(1),this.listOfListOfThWidthPx$=(0,Be.T)(this.manualWidthConfigPx$,(0,Me.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length===l.length?n.map((m,B)=>"0px"===m?l[B]||null:l[B]||m):l))),this.listOfMeasureColumn$=new N.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,Ae.U)(n=>n.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new N.t(1)}setTheadTemplate(n){this.theadTemplate$.next(n)}setHasFixLeft(n){this.hasFixLeft$.next(n)}setHasFixRight(n){this.hasFixRight$.next(n)}setTableWidthConfig(n){this.tableWidthConfigPx$.next(n)}setListOfTh(n){let l=0;n.forEach(B=>{l+=B.colspan&&+B.colspan||B.colSpan&&+B.colSpan||1});const m=n.map(B=>B.nzWidth);this.columnCount$.next(l),this.listOfThWidthConfigPx$.next(m)}setListOfMeasureColumn(n){const l=[];n.forEach(m=>{const B=m.colspan&&+m.colspan||m.colSpan&&+m.colSpan||1;for(let ee=0;ee`${l}px`))}setShowEmpty(n){this.showEmpty$.next(n)}setNoResult(n){this.noResult$.next(n)}setScroll(n,l){const m=!(!n&&!l);m||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(m)}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Xt=(()=>{class c{constructor(n){this.isInsideTable=!1,this.isInsideTable=!!n}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-cell",l.isInsideTable)}}),c})(),jt=(()=>{class c{constructor(n){this.cdr=n,this.manualClickOrder$=new M.xQ,this.calcOperatorChange$=new M.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new M.xQ,this.destroy$=new M.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(n,l){const m=n.indexOf(l);return m===n.length-1?n[0]:n[m+1]}emitNextSortValue(){if(this.nzShowSort){const n=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(n),this.manualClickOrder$.next(this)}}setSortOrder(n){this.sortOrderChange$.next(n)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(n){this.nzFilterChange.emit(n),this.nzFilterValue=n,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.sortOrder!==n&&(this.sortOrder=n,this.nzSortOrderChange.emit(n)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(n){const{nzSortDirections:l,nzFilters:m,nzSortOrder:B,nzSortFn:ee,nzFilterFn:_e,nzSortPriority:ve,nzFilterMultiple:Ie,nzShowSort:$e,nzShowFilter:Te}=n;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),B&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),$e&&(this.isNzShowSortChanged=!0),Te&&(this.isNzShowFilterChanged=!0);const dt=Tt=>Tt&&Tt.firstChange&&void 0!==Tt.currentValue;if((dt(B)||dt(ee))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),dt(m)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(m||Ie)&&this.nzShowFilter){const Tt=this.nzFilters.filter(At=>At.byDefault).map(At=>At.value);this.nzFilterValue=this.nzFilterMultiple?Tt:Tt[0]||null}(ee||_e||ve||m)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO))},c.\u0275cmp=e.Xpm({type:c,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.emitNextSortValue()}),2&n&&e.ekj("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort","descend"===l.sortOrder||"ascend"===l.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:Ee,ngContentSelectors:bt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(n,l){if(1&n&&(e.F$t(Ft),e.YNc(0,We,1,5,"nz-table-filter",0),e.YNc(1,ht,1,1,"ng-template",null,1,e.W1O),e.YNc(3,St,2,0,"ng-template",null,2,e.W1O),e.YNc(5,wt,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Pt,1,0,"ng-template",null,4,e.W1O)),2&n){const m=e.MAs(2);e.Q6J("ngIf",l.nzShowFilter||l.nzCustomFilter)("ngIfElse",m)}},directives:[qe,Gt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,f.yF)()],c.prototype,"nzShowSort",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzShowFilter",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzCustomFilter",void 0),c})(),ut=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.changes$=new M.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(n){const{nzWidth:l,colspan:m,rowspan:B,colSpan:ee,rowSpan:_e}=n;if(m||ee){const ve=this.colspan||this.colSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${ve}`)}if(B||_e){const ve=this.rowspan||this.rowSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${ve}`)}(l||m)&&this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),c})(),Tn=(()=>{class c{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,l){2&n&&(e.Udp("table-layout",l.tableLayout)("width",l.scrollX)("min-width",l.scrollX?"100%":null),e.ekj("ant-table-fixed",l.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Rt,ngContentSelectors:Xe,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Bt,1,4,"col",0),e.YNc(1,Lt,2,1,"thead",1),e.YNc(2,Dt,0,0,"ng-template",2),e.Hsn(3)),2&n&&(e.Q6J("ngForOf",l.listOfColWidth),e.xp6(1),e.Q6J("ngIf",l.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate))},directives:[h.sg,h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),bn=(()=>{class c{constructor(n,l){this.nzTableStyleService=n,this.renderer=l,this.hostWidth$=new ue.X(null),this.enableAutoMeasure$=new ue.X(!1),this.destroy$=new M.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:n,hostWidth$:l}=this.nzTableStyleService;n.pipe((0,C.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${n}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt),e.Y36(e.Qsj))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,7),2&n){let m;e.iGM(m=e.CRH())&&(l.tdElement=m.first)}},attrs:Zt,ngContentSelectors:Xe,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,Wt,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Nt,1,0,"ng-template",null,3,e.W1O)),2&n){const m=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,l.enableAutoMeasure$))("ngIfElse",m)}},directives:[h.O5,h.tP],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),Dn=(()=>{class c{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(n,l){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("contentTemplate",l.contentTemplate)("tableLayout",l.tableLayout)("listOfColWidth",l.listOfColWidth)("theadTemplate",l.theadTemplate))},directives:[Tn],encapsulation:2,changeDetection:0}),c})(),Mn=(()=>{class c{constructor(n,l){this.nzResizeObserver=n,this.ngZone=l,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new M.xQ}trackByFunc(n,l){return l}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Pe.O)(this.listOfTdElement)).pipe((0,De.w)(n=>(0,Me.aj)(n.toArray().map(l=>this.nzResizeObserver.observe(l).pipe((0,Ae.U)(([m])=>{const{width:B}=m.target.getBoundingClientRect();return Math.floor(B)}))))),(0,Ke.b)(16),(0,C.R)(this.destroy$)).subscribe(n=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(n)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(A.D3),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,5),2&n){let m;e.iGM(m=e.CRH())&&(l.listOfTdElement=m)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Qt,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(n,l){1&n&&e.YNc(0,Ut,2,0,"td",0),2&n&&e.Q6J("ngForOf",l.listOfMeasureColumn)("ngForTrackBy",l.trackByFunc)},directives:[h.sg],encapsulation:2,changeDetection:0}),c})(),yn=(()=>{class c{constructor(n){if(this.nzTableStyleService=n,this.isInsideTable=!1,this.showEmpty$=new ue.X(!1),this.noResult$=new ue.X(void 0),this.listOfMeasureColumn$=new ue.X([]),this.destroy$=new M.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:l,noResult$:m,listOfMeasureColumn$:B}=this.nzTableStyleService;m.pipe((0,C.R)(this.destroy$)).subscribe(this.noResult$),B.pipe((0,C.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(n){this.nzTableStyleService.setListOfAutoWidth(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-tbody",l.isInsideTable)},ngContentSelectors:Xe,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Et,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Vt,3,3,"tr",1),e.ALo(4,"async")),2&n&&(e.Q6J("ngIf",e.lcZ(1,2,l.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,l.showEmpty$)))},directives:[Mn,bn,S.gB,h.O5],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),On=(()=>{class c{constructor(n,l,m,B){this.renderer=n,this.ngZone=l,this.platform=m,this.resizeService=B,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=ee=>ee,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new M.xQ,this.scroll$=new M.xQ,this.destroy$=new M.xQ}setScrollPositionClassName(n=!1){const{scrollWidth:l,scrollLeft:m,clientWidth:B}=this.tableBodyElement.nativeElement,ee="ant-table-ping-left",_e="ant-table-ping-right";l===B&&0!==l||n?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.removeClass(this.tableMainElement,_e)):0===m?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e)):l===m+B?(this.renderer.removeClass(this.tableMainElement,_e),this.renderer.addClass(this.tableMainElement,ee)):(this.renderer.addClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e))}ngOnChanges(n){const{scrollX:l,scrollY:m,data:B}=n;if(l||m){const ee=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&ee?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}B&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const n=this.scroll$.pipe((0,Pe.O)(null),(0,Ue.g)(0),(0,De.w)(()=>(0,Re.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Pe.O)(!0))),(0,C.R)(this.destroy$)),l=this.resizeService.subscribe().pipe((0,C.R)(this.destroy$)),m=this.data$.pipe((0,C.R)(this.destroy$));(0,Be.T)(n,l,m,this.scroll$).pipe((0,Pe.O)(!0),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),n.pipe((0,Ye.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(t.t4),e.Y36(T.rI))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,l){if(1&n&&(e.Gf(Ht,5,e.SBq),e.Gf(Jt,5,e.SBq),e.Gf(o.N7,5,o.N7)),2&n){let m;e.iGM(m=e.CRH())&&(l.tableHeaderElement=m.first),e.iGM(m=e.CRH())&&(l.tableBodyElement=m.first),e.iGM(m=e.CRH())&&(l.cdkVirtualScrollViewport=m.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(n,l){1&n&&(e.YNc(0,an,6,6,"ng-container",0),e.YNc(1,sn,3,5,"div",1)),2&n&&(e.Q6J("ngIf",l.scrollY),e.xp6(1),e.Q6J("ngIf",!l.scrollY))},directives:[Tn,o.N7,yn,h.O5,h.PC,o.xd,o.x0,h.tP],encapsulation:2,changeDetection:0}),c})(),Nn=(()=>{class c{constructor(n){this.templateRef=n}static ngTemplateContextGuard(n,l){return!0}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Rgc))},c.\u0275dir=e.lG2({type:c,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),c})(),zn=(()=>{class c{constructor(){this.destroy$=new M.xQ,this.pageIndex$=new ue.X(1),this.frontPagination$=new ue.X(!0),this.pageSize$=new ue.X(10),this.listOfData$=new ue.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Ge.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Ge.x)()),this.listOfCalcOperator$=new ue.X([]),this.queryParams$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,Ke.b)(0),(0,it.T)(1),(0,Ae.U)(([n,l,m])=>({pageIndex:n,pageSize:l,sort:m.filter(B=>B.sortFn).map(B=>({key:B.key,value:B.sortOrder})),filter:m.filter(B=>B.filterFn).map(B=>({key:B.key,value:B.filterValue}))}))),this.listOfDataAfterCalc$=(0,Me.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,Ae.U)(([n,l])=>{let m=[...n];const B=l.filter(_e=>{const{filterValue:ve,filterFn:Ie}=_e;return!(null==ve||Array.isArray(ve)&&0===ve.length)&&"function"==typeof Ie});for(const _e of B){const{filterFn:ve,filterValue:Ie}=_e;m=m.filter($e=>ve(Ie,$e))}const ee=l.filter(_e=>null!==_e.sortOrder&&"function"==typeof _e.sortFn).sort((_e,ve)=>+ve.sortPriority-+_e.sortPriority);return l.length&&m.sort((_e,ve)=>{for(const Ie of ee){const{sortFn:$e,sortOrder:Te}=Ie;if($e&&Te){const dt=$e(_e,ve,Te);if(0!==dt)return"ascend"===Te?dt:-dt}}return 0}),m})),this.listOfFrontEndCurrentPageData$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,C.R)(this.destroy$),(0,Ye.h)(n=>{const[l,m,B]=n;return l<=(Math.ceil(B.length/m)||1)}),(0,Ae.U)(([n,l,m])=>m.slice((n-1)*l,n*l))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfDataAfterCalc$:this.listOfData$),(0,Ae.U)(n=>n.length),(0,Ge.x)())}updatePageSize(n){this.pageSize$.next(n)}updateFrontPagination(n){this.frontPagination$.next(n)}updatePageIndex(n){this.pageIndex$.next(n)}updateListOfData(n){this.listOfData$.next(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),En=(()=>{class c{constructor(){this.title=null,this.footer=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,l){2&n&&e.ekj("ant-table-title",null!==l.title)("ant-table-footer",null!==l.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,rn,2,1,"ng-container",0),e.YNc(1,ln,2,1,"ng-container",0)),2&n&&(e.Q6J("nzStringTemplateOutlet",l.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",l.footer))},directives:[I.f],encapsulation:2,changeDetection:0}),c})(),In=(()=>{class c{constructor(n,l,m,B,ee,_e,ve){this.elementRef=n,this.nzResizeObserver=l,this.nzConfigService=m,this.cdr=B,this.nzTableStyleService=ee,this.nzTableDataService=_e,this.directionality=ve,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Ie=>Ie,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new M.xQ,this.templateMode$=new ue.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(n){this.nzTableDataService.updatePageSize(n)}onPageIndexChange(n){this.nzTableDataService.updatePageIndex(n)}ngOnInit(){var n;const{pageIndexDistinct$:l,pageSizeDistinct$:m,listOfCurrentPageData$:B,total$:ee,queryParams$:_e}=this.nzTableDataService,{theadTemplate$:ve,hasFixLeft$:Ie,hasFixRight$:$e}=this.nzTableStyleService;this.dir=this.directionality.value,null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.dir=Te,this.cdr.detectChanges()}),_e.pipe((0,C.R)(this.destroy$)).subscribe(this.nzQueryParams),l.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageIndex&&(this.nzPageIndex=Te,this.nzPageIndexChange.next(Te))}),m.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageSize&&(this.nzPageSize=Te,this.nzPageSizeChange.next(Te))}),ee.pipe((0,C.R)(this.destroy$),(0,Ye.h)(()=>this.nzFrontPagination)).subscribe(Te=>{Te!==this.nzTotal&&(this.nzTotal=Te,this.cdr.markForCheck())}),B.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.data=Te,this.nzCurrentPageDataChange.next(Te),this.cdr.markForCheck()}),ve.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.theadTemplate=Te,this.cdr.markForCheck()}),Ie.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixLeft=Te,this.cdr.markForCheck()}),$e.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixRight=Te,this.cdr.markForCheck()}),(0,Me.aj)([ee,this.templateMode$]).pipe((0,Ae.U)(([Te,dt])=>0===Te&&!dt),(0,C.R)(this.destroy$)).subscribe(Te=>{this.nzTableStyleService.setShowEmpty(Te)}),this.verticalScrollBarWidth=(0,f.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfAutoColWidth=Te,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfManualColWidth=Te,this.cdr.markForCheck()})}ngOnChanges(n){const{nzScroll:l,nzPageIndex:m,nzPageSize:B,nzFrontPagination:ee,nzData:_e,nzWidthConfig:ve,nzNoResult:Ie,nzTemplateMode:$e}=n;m&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),B&&this.nzTableDataService.updatePageSize(this.nzPageSize),_e&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),ee&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),l&&this.setScrollOnChanges(),ve&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),$e&&this.templateMode$.next(this.nzTemplateMode),Ie&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,Ae.U)(([n])=>{const{width:l}=n.target.getBoundingClientRect();return Math.floor(l-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,C.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(A.D3),e.Y36(y.jY),e.Y36(e.sBO),e.Y36(mt),e.Y36(zn),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table"]],contentQueries:function(n,l,m){if(1&n&&e.Suo(m,Nn,5),2&n){let B;e.iGM(B=e.CRH())&&(l.nzVirtualScrollDirective=B.first)}},viewQuery:function(n,l){if(1&n&&e.Gf(On,5),2&n){let m;e.iGM(m=e.CRH())&&(l.nzTableInnerScrollComponent=m.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-wrapper-rtl","rtl"===l.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([mt,zn]),e.TTD],ngContentSelectors:Xe,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,dn,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,pn,1,1,"nz-table-title-footer",4),e.YNc(5,hn,1,13,"nz-table-inner-scroll",5),e.YNc(6,ke,1,4,"ng-template",null,6,e.W1O),e.YNc(8,It,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,fn,2,1,"ng-container",1),e.qZA(),e.YNc(10,mn,1,1,"ng-template",null,8,e.W1O),e.YNc(12,_n,1,0,"ng-template",null,9,e.W1O)),2&n){const m=e.MAs(7);e.Q6J("nzDelay",l.nzLoadingDelay)("nzSpinning",l.nzLoading)("nzIndicator",l.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"top"===l.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===l.dir)("ant-table-fixed-header",l.nzData.length&&l.scrollY)("ant-table-fixed-column",l.scrollX)("ant-table-has-fix-left",l.hasFixLeft)("ant-table-has-fix-right",l.hasFixRight)("ant-table-bordered",l.nzBordered)("nz-table-out-bordered",l.nzOuterBordered&&!l.nzBordered)("ant-table-middle","middle"===l.nzSize)("ant-table-small","small"===l.nzSize),e.xp6(2),e.Q6J("ngIf",l.nzTitle),e.xp6(1),e.Q6J("ngIf",l.scrollY||l.scrollX)("ngIfElse",m),e.xp6(3),e.Q6J("ngIf",l.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"bottom"===l.nzPaginationPosition)}},directives:[Oe.W,En,On,Dn,X,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,f.yF)()],c.prototype,"nzFrontPagination",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzTemplateMode",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzShowPagination",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzLoading",void 0),(0,w.gn)([(0,f.yF)()],c.prototype,"nzOuterBordered",void 0),(0,w.gn)([(0,y.oS)()],c.prototype,"nzLoadingIndicator",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBordered",void 0),(0,w.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,w.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),c})(),Sn=(()=>{class c{constructor(n){this.nzTableStyleService=n,this.destroy$=new M.xQ,this.listOfFixedColumns$=new N.t(1),this.listOfColumns$=new N.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfFixedColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfFixedColumns$))),(0,C.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfColumns$))),(0,C.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!n}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Pe.O)(this.listOfCellFixedDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Pe.O)(this.listOfNzThDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsLastLeft(l===n[n.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsFirstRight(l===n[0]))}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,B)=>{if(m.isAutoLeft){const _e=l.slice(0,B).reduce((Ie,$e)=>Ie+($e.colspan||$e.colSpan||1),0),ve=n.slice(0,_e).reduce((Ie,$e)=>Ie+$e,0);m.setAutoLeftWidth(`${ve}px`)}})}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,B)=>{const ee=l[l.length-B-1];if(ee.isAutoRight){const ve=l.slice(l.length-B,l.length).reduce(($e,Te)=>$e+(Te.colspan||Te.colSpan||1),0),Ie=n.slice(n.length-ve,n.length).reduce(($e,Te)=>$e+Te,0);ee.setAutoRightWidth(`${Ie}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,ut,4),e.Suo(m,Ct,4)),2&n){let B;e.iGM(B=e.CRH())&&(l.listOfNzThDirective=B),e.iGM(B=e.CRH())&&(l.listOfCellFixedDirective=B)}},hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-row",l.isInsideTable)}}),c})(),An=(()=>{class c{constructor(n,l,m,B){this.elementRef=n,this.renderer=l,this.nzTableStyleService=m,this.nzTableDataService=B,this.destroy$=new M.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const n=this.listOfNzTrDirective.changes.pipe((0,Pe.O)(this.listOfNzTrDirective),(0,Ae.U)(ee=>ee&&ee.first)),l=n.pipe((0,De.w)(ee=>ee?ee.listOfColumnsChanges$:Le.E),(0,C.R)(this.destroy$));l.subscribe(ee=>this.nzTableStyleService.setListOfTh(ee)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,De.w)(ee=>ee?l:(0,Ze.of)([]))).pipe((0,C.R)(this.destroy$)).subscribe(ee=>this.nzTableStyleService.setListOfMeasureColumn(ee));const m=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedLeftColumnChanges$:Le.E),(0,C.R)(this.destroy$)),B=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedRightColumnChanges$:Le.E),(0,C.R)(this.destroy$));m.subscribe(ee=>{this.nzTableStyleService.setHasFixLeft(0!==ee.length)}),B.subscribe(ee=>{this.nzTableStyleService.setHasFixRight(0!==ee.length)})}if(this.nzTableDataService){const n=this.listOfNzThAddOnComponent.changes.pipe((0,Pe.O)(this.listOfNzThAddOnComponent));n.pipe((0,De.w)(()=>(0,Be.T)(...this.listOfNzThAddOnComponent.map(B=>B.manualClickOrder$))),(0,C.R)(this.destroy$)).subscribe(B=>{this.nzSortOrderChange.emit({key:B.nzColumnKey,value:B.sortOrder}),B.nzSortFn&&!1===B.nzSortPriority&&this.listOfNzThAddOnComponent.filter(_e=>_e!==B).forEach(_e=>_e.clearSortOrder())}),n.pipe((0,De.w)(B=>(0,Be.T)(n,...B.map(ee=>ee.calcOperatorChange$)).pipe((0,nt.zg)(()=>n))),(0,Ae.U)(B=>B.filter(ee=>!!ee.nzSortFn||!!ee.nzFilterFn).map(ee=>{const{nzSortFn:_e,sortOrder:ve,nzFilterFn:Ie,nzFilterValue:$e,nzSortPriority:Te,nzColumnKey:dt}=ee;return{key:dt,sortFn:_e,sortPriority:Te,sortOrder:ve,filterFn:Ie,filterValue:$e}})),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(B=>{this.nzTableDataService.listOfCalcOperator$.next(B)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(mt,8),e.Y36(zn,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,Sn,5),e.Suo(m,jt,5)),2&n){let B;e.iGM(B=e.CRH())&&(l.listOfNzTrDirective=B),e.iGM(B=e.CRH())&&(l.listOfNzThAddOnComponent=B)}},viewQuery:function(n,l){if(1&n&&e.Gf(U,7),2&n){let m;e.iGM(m=e.CRH())&&(l.templateRef=m.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Xe,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,fe,1,0,"ng-template",null,0,e.W1O),e.YNc(2,Je,2,1,"ng-container",1)),2&n&&(e.xp6(2),e.Q6J("ngIf",!l.isInsideTable))},directives:[h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),wn=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,V.ip,b.u5,I.T,ye.aF,F.Wr,D.b1,O.sL,h.ez,t.ud,oe,A.y7,Oe.j,P.YI,L.PV,S.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/694.92a3e0c2fc842a42.js b/src/blrec/data/webapp/694.92a3e0c2fc842a42.js new file mode 100644 index 0000000..b03a3e5 --- /dev/null +++ b/src/blrec/data/webapp/694.92a3e0c2fc842a42.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[694],{9694:(Cr,xt,l)=>{l.r(xt),l.d(xt,{SettingsModule:()=>fr});var d=l(9808),a=l(4182),at=l(7525),gn=l(1945),un=l(7484),c=l(4546),T=l(1047),w=l(6462),Mt=l(6114),K=l(3868),t=l(5e3),st=l(404),mn=l(925),W=l(226);let hn=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[W.vT,d.ez,mn.ud,st.cg]]}),e})();var H=l(5197),z=l(7957),lt=l(6042),J=l(647),bt=l(6699),U=l(969),P=l(655),S=l(1721),$=l(8929),fn=l(8514),tt=l(1086),_n=l(6787),Cn=l(591),zn=l(2986),Tt=l(7545),G=l(7625),Pt=l(685),m=l(1894);const Z=["*"];function An(e,o){1&e&&t.Hsn(0)}const Zn=["nz-list-item-actions",""];function kn(e,o){}function Dn(e,o){1&e&&t._UZ(0,"em",3)}function Nn(e,o){if(1&e&&(t.TgZ(0,"li"),t.YNc(1,kn,0,0,"ng-template",1),t.YNc(2,Dn,1,0,"em",2),t.qZA()),2&e){const n=o.$implicit,i=o.last;t.xp6(1),t.Q6J("ngTemplateOutlet",n),t.xp6(1),t.Q6J("ngIf",!i)}}function En(e,o){}const St=function(e,o){return{$implicit:e,index:o}};function Bn(e,o){if(1&e&&(t.ynx(0),t.YNc(1,En,0,0,"ng-template",9),t.BQk()),2&e){const n=o.$implicit,i=o.index,r=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,St,n,i))}}function qn(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Bn,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.nzDataSource)}}function Vn(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzHeader)}}function Ln(e,o){if(1&e&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Vn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzHeader)}}function In(e,o){1&e&&t._UZ(0,"div"),2&e&&t.Udp("min-height",53,"px")}function Qn(e,o){}function Jn(e,o){if(1&e&&(t.TgZ(0,"div",13),t.YNc(1,Qn,0,0,"ng-template",9),t.qZA()),2&e){const n=o.$implicit,i=o.index,r=t.oxw(2);t.Q6J("nzSpan",r.nzGrid.span||null)("nzXs",r.nzGrid.xs||null)("nzSm",r.nzGrid.sm||null)("nzMd",r.nzGrid.md||null)("nzLg",r.nzGrid.lg||null)("nzXl",r.nzGrid.xl||null)("nzXXl",r.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,St,n,i))}}function Un(e,o){if(1&e&&(t.TgZ(0,"div",11),t.YNc(1,Jn,2,12,"div",12),t.qZA()),2&e){const n=t.oxw();t.Q6J("nzGutter",n.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",n.nzDataSource)}}function Yn(e,o){if(1&e&&t._UZ(0,"nz-list-empty",14),2&e){const n=t.oxw();t.Q6J("nzNoResult",n.nzNoResult)}}function Wn(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzFooter)}}function Rn(e,o){if(1&e&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,Wn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzFooter)}}function Hn(e,o){}function $n(e,o){}function Gn(e,o){if(1&e&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,$n,0,0,"ng-template",6),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzPagination)}}const jn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Xn=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Kn(e,o){if(1&e&&t._UZ(0,"ul",6),2&e){const n=t.oxw(2);t.Q6J("nzActions",n.nzActions)}}function te(e,o){if(1&e&&(t.YNc(0,Kn,1,1,"ul",5),t.Hsn(1)),2&e){const n=t.oxw();t.Q6J("ngIf",n.nzActions&&n.nzActions.length>0)}}function ne(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(3);t.xp6(1),t.Oqu(n.nzContent)}}function ee(e,o){if(1&e&&(t.ynx(0),t.YNc(1,ne,2,1,"ng-container",8),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzContent)}}function ie(e,o){if(1&e&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,ee,2,1,"ng-container",7)),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.nzContent)}}function oe(e,o){1&e&&t.Hsn(0,3)}function re(e,o){}function ae(e,o){}function se(e,o){}function le(e,o){}function ce(e,o){if(1&e&&(t.YNc(0,re,0,0,"ng-template",9),t.YNc(1,ae,0,0,"ng-template",9),t.YNc(2,se,0,0,"ng-template",9),t.YNc(3,le,0,0,"ng-template",9)),2&e){const n=t.oxw(),i=t.MAs(3),r=t.MAs(5),s=t.MAs(1);t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function ge(e,o){}function ue(e,o){}function me(e,o){}function pe(e,o){if(1&e&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,me,0,0,"ng-template",9),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra)}}function de(e,o){}function he(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,ge,0,0,"ng-template",9),t.YNc(3,ue,0,0,"ng-template",9),t.qZA(),t.YNc(4,pe,2,1,"nz-list-item-extra",7),t.YNc(5,de,0,0,"ng-template",9),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(3),r=t.MAs(1),s=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(1),t.Q6J("ngIf",n.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}const fe=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],_e=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let ut=(()=>{class e{constructor(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:Z,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),yt=(()=>{class e{constructor(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-item-action"]],viewQuery:function(n,i){if(1&n&&t.Gf(t.Rgc,5),2&n){let r;t.iGM(r=t.CRH())&&(i.templateRef=r.first)}},exportAs:["nzListItemAction"],ngContentSelectors:Z,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.YNc(0,An,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),Ft=(()=>{class e{constructor(n,i){this.ngZone=n,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new $.xQ,this.inputActionChanges$=new $.xQ,this.contentChildrenChanges$=(0,fn.P)(()=>this.nzListItemActions?(0,tt.of)(null):this.ngZone.onStable.asObservable().pipe((0,zn.q)(1),(0,Tt.w)(()=>this.contentChildrenChanges$))),(0,_n.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,G.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(r=>r.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.R0b),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,yt,4),2&n){let s;t.iGM(s=t.CRH())&&(i.nzListItemActions=s)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t.TTD],attrs:Zn,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(n,i){1&n&&t.YNc(0,Nn,3,2,"li",0),2&n&&t.Q6J("ngForOf",i.actions)},directives:[d.sg,d.tP,d.O5],encapsulation:2,changeDetection:0}),e})(),mt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(n,i){1&n&&t._UZ(0,"nz-embed-empty",0),2&n&&t.Q6J("nzComponentName","list")("specificContent",i.nzNoResult)},directives:[Pt.gB],encapsulation:2,changeDetection:0}),e})(),pt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:Z,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),dt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:Z,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),ht=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:Z,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),At=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=t.lG2({type:e,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),e})(),ft=(()=>{class e{constructor(n){this.directionality=n,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new Cn.X(this.nzItemLayout),this.destroy$=new $.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var n;this.dir=this.directionality.value,null===(n=this.directionality.change)||void 0===n||n.pipe((0,G.R)(this.destroy$)).subscribe(i=>{this.dir=i})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(n){n.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(W.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(n,i,r){if(1&n&&(t.Suo(r,dt,5),t.Suo(r,ht,5),t.Suo(r,At,5)),2&n){let s;t.iGM(s=t.CRH())&&(i.nzListFooterComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListPaginationComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListLoadMoreDirective=s.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(n,i){2&n&&t.ekj("ant-list-rtl","rtl"===i.dir)("ant-list-vertical","vertical"===i.nzItemLayout)("ant-list-lg","large"===i.nzSize)("ant-list-sm","small"===i.nzSize)("ant-list-split",i.nzSplit)("ant-list-bordered",i.nzBordered)("ant-list-loading",i.nzLoading)("ant-list-something-after-last-item",i.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[t.TTD],ngContentSelectors:Xn,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(n,i){if(1&n&&(t.F$t(jn),t.YNc(0,qn,3,1,"ng-template",null,0,t.W1O),t.YNc(2,Ln,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,In,1,2,"div",3),t.YNc(7,Un,2,2,"div",4),t.YNc(8,Yn,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,Rn,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Hn,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,Gn,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&n){const r=t.MAs(1);t.xp6(2),t.Q6J("ngIf",i.nzHeader),t.xp6(2),t.Q6J("nzSpinning",i.nzLoading),t.xp6(2),t.Q6J("ngIf",i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzGrid&&i.nzDataSource)("ngIfElse",r),t.xp6(1),t.Q6J("ngIf",!i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",i.nzLoadMore),t.xp6(2),t.Q6J("ngIf",i.nzPagination)}},directives:[pt,at.W,mt,dt,ht,d.sg,d.tP,d.O5,U.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,S.yF)()],e.prototype,"nzBordered",void 0),(0,P.gn)([(0,S.yF)()],e.prototype,"nzLoading",void 0),(0,P.gn)([(0,S.yF)()],e.prototype,"nzSplit",void 0),e})(),Zt=(()=>{class e{constructor(n,i,r,s){this.parentComp=r,this.cdr=s,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,i.addClass(n.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(n=>{this.itemLayout=n,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(ft),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,ut,5),2&n){let s;t.iGM(s=t.CRH())&&(i.listItemExtraDirective=s.first)}},hostVars:2,hostBindings:function(n,i){2&n&&t.ekj("ant-list-item-no-flex",i.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:_e,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(n,i){if(1&n&&(t.F$t(fe),t.YNc(0,te,2,1,"ng-template",null,0,t.W1O),t.YNc(2,ie,3,1,"ng-template",null,1,t.W1O),t.YNc(4,oe,1,0,"ng-template",null,2,t.W1O),t.YNc(6,ce,4,4,"ng-template",null,3,t.W1O),t.YNc(8,he,6,4,"ng-container",4)),2&n){const r=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",r)}},directives:[Ft,ut,d.O5,U.f,d.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,S.yF)()],e.prototype,"nzNoFlex",void 0),e})(),ve=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[W.vT,d.ez,at.j,m.Jb,bt.Rt,U.T,Pt.Xo]]}),e})();var nt=l(3677),Oe=l(5737),D=l(592),xe=l(8076),Y=l(9439),kt=l(4832);const Dt=["*"];function Me(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&e){const n=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzType",n||"right")("nzRotate",i.nzActive?90:0)}}function be(e,o){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,Me,2,2,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExpandedIcon)}}function Te(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Oqu(n.nzHeader)}}function Pe(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzExtra)}}function Se(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Pe,2,1,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExtra)}}const Nt="collapse";let Et=(()=>{class e{constructor(n,i,r){this.nzConfigService=n,this.cdr=i,this.directionality=r,this._nzModuleName=Nt,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new $.xQ,this.nzConfigService.getConfigChangeEventForComponent(Nt).pipe((0,G.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,G.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(n){this.listOfNzCollapsePanelComponent.push(n)}removePanel(n){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(n),1)}click(n){this.nzAccordion&&!n.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==n).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),n.nzActive=!n.nzActive,n.nzActiveChange.emit(n.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(Y.jY),t.Y36(t.sBO),t.Y36(W.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(n,i){2&n&&t.ekj("ant-collapse-icon-position-left","left"===i.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===i.nzExpandIconPosition)("ant-collapse-ghost",i.nzGhost)("ant-collapse-borderless",!i.nzBordered)("ant-collapse-rtl","rtl"===i.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:Dt,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,P.gn)([(0,Y.oS)(),(0,S.yF)()],e.prototype,"nzAccordion",void 0),(0,P.gn)([(0,Y.oS)(),(0,S.yF)()],e.prototype,"nzBordered",void 0),(0,P.gn)([(0,Y.oS)(),(0,S.yF)()],e.prototype,"nzGhost",void 0),e})();const Bt="collapsePanel";let we=(()=>{class e{constructor(n,i,r,s){this.nzConfigService=n,this.cdr=i,this.nzCollapseComponent=r,this.noAnimation=s,this._nzModuleName=Bt,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new $.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,G.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(Y.jY),t.Y36(t.sBO),t.Y36(Et,1),t.Y36(kt.P,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(n,i){2&n&&t.ekj("ant-collapse-no-arrow",!i.nzShowArrow)("ant-collapse-item-active",i.nzActive)("ant-collapse-item-disabled",i.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:Dt,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(n,i){1&n&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,be,2,1,"div",1),t.YNc(2,Te,2,1,"ng-container",2),t.YNc(3,Se,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&n&&(t.uIk("aria-expanded",i.nzActive),t.xp6(1),t.Q6J("ngIf",i.nzShowArrow),t.xp6(1),t.Q6J("nzStringTemplateOutlet",i.nzHeader),t.xp6(1),t.Q6J("ngIf",i.nzExtra),t.xp6(1),t.ekj("ant-collapse-content-active",i.nzActive),t.Q6J("@.disabled",null==i.noAnimation?null:i.noAnimation.nzNoAnimation)("@collapseMotion",i.nzActive?"expanded":"hidden"))},directives:[d.O5,U.f,J.Ls],encapsulation:2,data:{animation:[xe.J_]},changeDetection:0}),(0,P.gn)([(0,S.yF)()],e.prototype,"nzActive",void 0),(0,P.gn)([(0,S.yF)()],e.prototype,"nzDisabled",void 0),(0,P.gn)([(0,Y.oS)(),(0,S.yF)()],e.prototype,"nzShowArrow",void 0),e})(),ye=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[W.vT,d.ez,J.PV,U.T,kt.g]]}),e})();var Fe=l(4466),k=l(7221),N=l(7106),E=l(2306),j=l(5278),B=l(5136);let qt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["output","logging","header","danmaku","recorder","postprocessing","space"]).pipe((0,N.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get settings:",r),this.notification.error("\u83b7\u53d6\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var y=l(4850);let Vt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["emailNotification"]).pipe((0,y.U)(r=>r.emailNotification),(0,N.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get email notification settings:",r),this.notification.error("\u83b7\u53d6\u90ae\u4ef6\u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Lt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["serverchanNotification"]).pipe((0,y.U)(r=>r.serverchanNotification),(0,N.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get ServerChan notification settings:",r),this.notification.error("\u83b7\u53d6 ServerChan \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),It=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["pushplusNotification"]).pipe((0,y.U)(r=>r.pushplusNotification),(0,N.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get pushplus notification settings:",r),this.notification.error("\u83b7\u53d6 pushplus \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Qt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["webhooks"]).pipe((0,y.U)(r=>r.webhooks),(0,N.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get webhook settings:",r),this.notification.error("\u83b7\u53d6 Webhook \u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var _=l(2302),et=l(2198),Jt=l(2014),Ae=l(7770),Ze=l(353),Ut=l(4704),C=l(2340);const f="RouterScrollService",Yt="defaultViewport",Wt="customViewport";let ke=(()=>{class e{constructor(n,i,r,s){this.router=n,this.activatedRoute=i,this.viewportScroller=r,this.logger=s,this.addQueue=[],this.addBeforeNavigationQueue=[],this.removeQueue=[],this.routeStrategies=[],this.scrollDefaultViewport=!0,this.customViewportToScroll=null,C.N.traceRouterScrolling&&this.logger.trace(`${f}:: constructor`),C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Subscribing to router events`);const g=this.router.events.pipe((0,et.h)(u=>u instanceof _.OD||u instanceof _.m2),(0,Jt.R)((u,p)=>{var v,O;C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Updating the known scroll positions`);const I=Object.assign({},u.positions);return p instanceof _.OD&&this.scrollDefaultViewport&&(C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Storing the scroll position of the default viewport`),I[`${p.id}-${Yt}`]=this.viewportScroller.getScrollPosition()),p instanceof _.OD&&this.customViewportToScroll&&(C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Storing the scroll position of the custom viewport`),I[`${p.id}-${Wt}`]=this.customViewportToScroll.scrollTop),{event:p,positions:I,trigger:p instanceof _.OD?p.navigationTrigger:u.trigger,idToRestore:p instanceof _.OD&&p.restoredState&&p.restoredState.navigationId+1||u.idToRestore,routeData:null===(O=null===(v=this.activatedRoute.firstChild)||void 0===v?void 0:v.routeConfig)||void 0===O?void 0:O.data}}),(0,et.h)(u=>!!u.trigger),(0,Ae.QV)(Ze.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(Q=>u.event.url.indexOf(Q.partialRoute)>-1),v=p&&p.behaviour===Ut.g.KEEP_POSITION||!1,O=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Ut.g.KEEP_POSITION||!1,I=v||O;if(u.event instanceof _.m2){this.processRemoveQueue(this.removeQueue);const Q=u.trigger&&"imperative"===u.trigger||!1,cn=!I||Q;C.N.traceRouterScrolling&&(this.logger.trace(`${f}:: Existing strategy with keep position behavior? `,v),this.logger.trace(`${f}:: Route data with keep position behavior? `,O),this.logger.trace(`${f}:: Imperative trigger? `,Q),this.logger.debug(`${f}:: Should scroll? `,cn)),cn?(this.scrollDefaultViewport&&(C.N.traceRouterScrolling&&this.logger.debug(`${f}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(C.N.traceRouterScrolling&&this.logger.debug(`${f}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(C.N.traceRouterScrolling&&this.logger.debug(`${f}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${Yt}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Wt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(_r=>_r.partialRoute),!0),this.processAddQueue(this.addQueue),this.addQueue=[],this.removeQueue=[],this.addBeforeNavigationQueue=[]}else this.processAddQueue(this.addBeforeNavigationQueue)})}addStrategyOnceBeforeNavigationForPartialRoute(n,i){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Adding a strategy once for before navigation towards [${n}]: `,i),this.addBeforeNavigationQueue.push({partialRoute:n,behaviour:i,onceBeforeNavigation:!0})}addStrategyForPartialRoute(n,i){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Adding a strategy for partial route: [${n}]`,i),this.addQueue.push({partialRoute:n,behaviour:i})}removeStrategyForPartialRoute(n){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Removing strategory for: [${n}]: `),this.removeQueue.push(n)}setCustomViewportToScroll(n){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Setting a custom viewport to scroll: `,n),this.customViewportToScroll=n}disableScrollDefaultViewport(){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Enabling scrolling the default viewport`),this.scrollDefaultViewport=!0}processAddQueue(n){for(const i of n)-1===this.routeStrategyPosition(i.partialRoute)&&this.routeStrategies.push(i)}processRemoveQueue(n,i=!1){for(const r of n){const s=this.routeStrategyPosition(r);!i&&s>-1&&this.routeStrategies[s].onceBeforeNavigation||s>-1&&this.routeStrategies.splice(s,1)}}routeStrategyPosition(n){return this.routeStrategies.map(i=>i.partialRoute).indexOf(n)}ngOnDestroy(){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(_.F0),t.LFG(_.gz),t.LFG(d.EM),t.LFG(E.Kf))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var X=l(4670),q=l(3523),De=l(3496),Ne=l(1149),Ee=l(7242);const x=function Be(e,o){var n={};return o=(0,Ee.Z)(o,3),(0,Ne.Z)(e,function(i,r,s){(0,De.Z)(n,r,o(i,r,s))}),n};var _t=l(2994),qe=l(4884),Ve=l(4116),Rt=l(4825),Ct=l(4177),Le=l(8706),Ie=l(5202),Qe=l(1986),Je=l(7583),Re=Object.prototype.hasOwnProperty;var Ht=l(1854),Ge=l(2134),$t=l(9727);function M(e){const o="result"in e;return x(e.diff,()=>o)}let b=(()=>{class e{constructor(n,i){this.message=n,this.settingService=i}syncSettings(n,i,r){return r.pipe((0,Jt.R)(([,s],g)=>[s,g,(0,Ge.e5)(g,s)],[i,i,{}]),(0,et.h)(([,,s])=>!function He(e){if(null==e)return!0;if((0,Le.Z)(e)&&((0,Ct.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,Ie.Z)(e)||(0,Je.Z)(e)||(0,Rt.Z)(e)))return!e.length;var o=(0,Ve.Z)(e);if("[object Map]"==o||"[object Set]"==o)return!e.size;if((0,Qe.Z)(e))return!(0,qe.Z)(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0}(s)),(0,Tt.w)(([s,g,u])=>this.settingService.changeSettings({[n]:u}).pipe((0,N.X)(3,300),(0,_t.b)(p=>{console.assert((0,Ht.Z)(p[n],g),"result settings should equal current settings",{curr:g,result:p[n]})},p=>{this.message.error(`\u8bbe\u7f6e\u51fa\u9519: ${p.message}`)}),(0,y.U)(p=>({prev:s,curr:g,diff:u,result:p[n]})),(0,k.K)(p=>(0,tt.of)({prev:s,curr:g,diff:u,error:p})))),(0,_t.b)(s=>console.debug(`${n} settings sync detail:`,s)))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG($t.dD),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var h=l(8737),V=(()=>{return(e=V||(V={}))[e.EACCES=13]="EACCES",e[e.ENOTDIR=20]="ENOTDIR",V;var e})(),je=l(520);const Xe=C.N.apiUrl;let Gt=(()=>{class e{constructor(n){this.http=n}validateDir(n){return this.http.post(Xe+"/api/v1/validation/dir",{path:n})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(je.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ke(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function ti(e,o){1&e&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function ni(e,o){1&e&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function ei(e,o){1&e&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function ii(e,o){if(1&e&&(t.YNc(0,Ke,2,0,"ng-container",6),t.YNc(1,ti,2,0,"ng-container",6),t.YNc(2,ni,2,0,"ng-container",6),t.YNc(3,ei,2,0,"ng-container",6)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",n.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",n.hasError("failedToValidate"))}}function oi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,ii,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",n)}}let ri=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.validationService=r,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.outDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,y.U)(g=>{switch(g.code){case V.ENOTDIR:return{error:!0,notADirectory:!0};case V.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,k.K)(()=>(0,tt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=n.group({outDir:["",[a.kI.required],[this.outDirAsyncValidator]]})}get control(){return this.settingsForm.get("outDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Gt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-outdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u9a8c...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","outDir"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,oi,7,2,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var ai=l(2643),it=l(2683);function si(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function li(e,o){1&e&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ci(e,o){if(1&e&&(t.YNc(0,si,2,0,"ng-container",12),t.YNc(1,li,2,0,"ng-container",12)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function gi(e,o){if(1&e&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.qZA()),2&e){const n=o.$implicit;t.xp6(2),t.Oqu(n.name),t.xp6(2),t.Oqu(n.desc)}}function ui(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,ci,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.TgZ(7,"nz-collapse"),t.TgZ(8,"nz-collapse-panel",7),t.TgZ(9,"nz-table",8,9),t.TgZ(11,"thead"),t.TgZ(12,"tr"),t.TgZ(13,"th"),t._uU(14,"\u53d8\u91cf"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"\u8bf4\u660e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"tbody"),t.YNc(18,gi,5,2,"tr",10),t.qZA(),t.qZA(),t.TgZ(19,"p",11),t.TgZ(20,"strong"),t._uU(21," \u6ce8\u610f\uff1a\u53d8\u91cf\u540d\u5fc5\u987b\u653e\u5728\u82b1\u62ec\u53f7\u4e2d\uff01\u4f7f\u7528\u65e5\u671f\u65f6\u95f4\u53d8\u91cf\u4ee5\u907f\u514d\u547d\u540d\u51b2\u7a81\uff01 "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.MAs(10),r=t.oxw();t.xp6(1),t.Q6J("formGroup",r.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",n),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern),t.xp6(5),t.Q6J("nzData",r.pathTemplateVariables)("nzPageSize",11)("nzShowPagination",!1)("nzSize","small"),t.xp6(9),t.Q6J("ngForOf",i.data)}}function mi(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(n),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",14),t.NdJ("click",function(){return t.CHM(n),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",13),t.NdJ("click",function(){return t.CHM(n),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("disabled",n.control.value.trim()===n.pathTemplateDefault),t.xp6(4),t.Q6J("disabled",n.control.invalid||n.control.value.trim()===n.value)}}let pi=(()=>{class e{constructor(n,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.pathTemplatePattern=h._m,this.pathTemplateDefault=h.ip,this.pathTemplateVariables=h.Dr,this.settingsForm=n.group({pathTemplate:["",[a.kI.required,a.kI.pattern(this.pathTemplatePattern)]]})}get control(){return this.settingsForm.get("pathTemplate")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.pathTemplateDefault)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-path-template-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:4,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u8def\u5f84\u6a21\u677f","nzCentered","",3,"nzFooter","nzVisible","nzVisibleChange"],[4,"nzModalContent"],["modalFooter",""],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","pathTemplate",3,"pattern"],["errorTip",""],["nzHeader","\u6a21\u677f\u53d8\u91cf\u8bf4\u660e"],[3,"nzData","nzPageSize","nzShowPagination","nzSize"],["table",""],[4,"ngFor","ngForOf"],[1,"footnote"],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"]],template:function(n,i){if(1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,ui,22,8,"ng-container",1),t.YNc(2,mi,6,2,"ng-template",null,2,t.W1O),t.qZA()),2&n){const r=t.MAs(3);t.Q6J("nzFooter",r)("nzVisible",i.visible)}},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,a.c5,d.O5,Et,we,D.N8,D.Om,D.$Z,D.Uo,D._C,D.p0,d.sg,lt.ix,ai.dQ,it.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),e})(),di=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.splitFileTip=h.Uk,this.syncFailedWarningTip=h.yT,this.filesizeLimitOptions=(0,q.Z)(h.Pu),this.durationLimitOptions=(0,q.Z)(h.Fg),this.settingsForm=n.group({outDir:[""],pathTemplate:[""],filesizeLimit:[""],durationLimit:[""]})}get outDirControl(){return this.settingsForm.get("outDir")}get pathTemplateControl(){return this.settingsForm.get("pathTemplate")}get filesizeLimitControl(){return this.settingsForm.get("filesizeLimit")}get durationLimitControl(){return this.settingsForm.get("durationLimit")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-output-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:27,vars:17,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["outDirEditDialog",""],["pathTemplateEditDialog",""],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","filesizeLimit",3,"nzOptions"],["formControlName","durationLimit",3,"nzOptions"]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-outdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.outDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-path-template-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.pathTemplateControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"nz-form-item",8),t.TgZ(18,"nz-form-label",9),t._uU(19,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(20,"nz-form-control",10),t._UZ(21,"nz-select",11),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",8),t.TgZ(23,"nz-form-label",9),t._uU(24,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(25,"nz-form-control",10),t._UZ(26,"nz-select",12),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.outDir?i.outDirControl:"warning"),t.xp6(2),t.hij("",i.outDirControl.value," "),t.xp6(1),t.Q6J("value",i.outDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.pathTemplate?i.pathTemplateControl:"warning"),t.xp6(2),t.hij("",i.pathTemplateControl.value," "),t.xp6(1),t.Q6J("value",i.pathTemplateControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",i.splitFileTip),t.xp6(2),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.filesizeLimit?i.filesizeLimitControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.filesizeLimitOptions),t.xp6(2),t.Q6J("nzTooltipTitle",i.splitFileTip),t.xp6(2),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.durationLimit?i.durationLimitControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.durationLimitOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,ri,pi,H.Vq,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),L=(()=>{class e{constructor(){}get actionable(){var n;return(null===(n=this.directive)||void 0===n?void 0:n.valueAccessor)instanceof w.i}onClick(n){var i;n.target===n.currentTarget&&(n.preventDefault(),n.stopPropagation(),(null===(i=this.directive)||void 0===i?void 0:i.valueAccessor)instanceof w.i&&this.directive.control.setValue(!this.directive.control.value))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=t.lG2({type:e,selectors:[["","appSwitchActionable",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,a.u,5),2&n){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(n,i){1&n&&t.NdJ("click",function(s){return i.onClick(s)}),2&n&&t.ekj("actionable",i.actionable)}}),e})();function hi(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f"),t._UZ(2,"br"),t._UZ(3,"br"),t._uU(4," FLV \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e "),t._UZ(5,"br"),t._uU(6," HLS (ts) \u57fa\u672c\u4e0d\u53d7\u672c\u5730\u7f51\u7edc\u5f71\u54cd "),t._UZ(7,"br"),t._uU(8," HLS (fmp4) \u53ea\u6709\u5c11\u6570\u76f4\u64ad\u95f4\u652f\u6301 "),t._UZ(9,"br"),t._UZ(10,"br"),t._uU(11," P.S."),t._UZ(12,"br"),t._uU(13," \u975e FLV \u683c\u5f0f\u9700\u8981 ffmpeg"),t._UZ(14,"br"),t._uU(15," HLS (fmp4) \u4e0d\u652f\u6301\u4f1a\u81ea\u52a8\u5207\u6362\u5230 HLS (ts)"),t._UZ(16,"br"),t.qZA())}let fi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.streamFormatOptions=(0,q.Z)(h.tp),this.qualityOptions=(0,q.Z)(h.O6),this.timeoutOptions=(0,q.Z)(h.D4),this.disconnectionTimeoutOptions=(0,q.Z)(h.$w),this.bufferOptions=(0,q.Z)(h.Rc),this.settingsForm=n.group({streamFormat:[""],qualityNumber:[""],readTimeout:[""],disconnectionTimeout:[""],bufferSize:[""],saveCover:[""]})}get streamFormatControl(){return this.settingsForm.get("streamFormat")}get qualityNumberControl(){return this.settingsForm.get("qualityNumber")}get readTimeoutControl(){return this.settingsForm.get("readTimeout")}get disconnectionTimeoutControl(){return this.settingsForm.get("disconnectionTimeout")}get bufferSizeControl(){return this.settingsForm.get("bufferSize")}get saveCoverControl(){return this.settingsForm.get("saveCover")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("recorder",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-recorder-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:33,vars:19,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","streamFormat",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["formControlName","qualityNumber",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","saveCover"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["formControlName","readTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["formControlName","disconnectionTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["formControlName","bufferSize",3,"nzOptions"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(4,hi,17,0,"ng-template",null,3,t.W1O),t.TgZ(6,"nz-form-control",4),t._UZ(7,"nz-select",5),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"\u753b\u8d28"),t.qZA(),t.TgZ(11,"nz-form-control",4),t._UZ(12,"nz-select",7),t.qZA(),t.qZA(),t.TgZ(13,"nz-form-item",8),t.TgZ(14,"nz-form-label",9),t._uU(15,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(16,"nz-form-control",10),t._UZ(17,"nz-switch",11),t.qZA(),t.qZA(),t.TgZ(18,"nz-form-item",1),t.TgZ(19,"nz-form-label",12),t._uU(20,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(21,"nz-form-control",4),t._UZ(22,"nz-select",13),t.qZA(),t.qZA(),t.TgZ(23,"nz-form-item",1),t.TgZ(24,"nz-form-label",14),t._uU(25,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(26,"nz-form-control",4),t._UZ(27,"nz-select",15),t.qZA(),t.qZA(),t.TgZ(28,"nz-form-item",1),t.TgZ(29,"nz-form-label",16),t._uU(30,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(31,"nz-form-control",4),t._UZ(32,"nz-select",17),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(5);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",r),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.streamFormat?i.streamFormatControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.streamFormatOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.qualityNumber?i.qualityNumberControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.qualityOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveCover?i.saveCoverControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncStatus.readTimeout?"\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01":i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.readTimeout&&i.readTimeoutControl.value<=3?i.readTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.timeoutOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.disconnectionTimeout?i.disconnectionTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.disconnectionTimeoutOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.bufferSize?i.bufferSizeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.bufferOptions)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,H.Vq,a.JJ,a.u,L,w.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),_i=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({danmuUname:[""],recordGiftSend:[""],recordFreeGifts:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordFreeGiftsControl(){return this.settingsForm.get("recordFreeGifts")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("danmaku",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-danmaku-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:13,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recordGiftSend"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordFreeGifts"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordGuardBuy"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordSuperChat"],["nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["formControlName","danmuUname"],["nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["formControlName","saveRawDanmaku"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",7),t._uU(13,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",9),t._uU(18,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",10),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(24,"nz-form-control",3),t._UZ(25,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(26,"nz-form-item",1),t.TgZ(27,"nz-form-label",13),t._uU(28,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(29,"nz-form-control",3),t._UZ(30,"nz-switch",14),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGiftSend?i.recordGiftSendControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordFreeGifts?i.recordFreeGiftsControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGuardBuy?i.recordGuardBuyControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordSuperChat?i.recordSuperChatControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.danmuUname?i.danmuUnameControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveRawDanmaku?i.saveRawDanmakuControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Ci(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function zi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"label",13),t._uU(2),t.qZA(),t.BQk()),2&e){const n=o.$implicit;t.xp6(1),t.Q6J("nzValue",n.value),t.xp6(1),t.Oqu(n.label)}}let vi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.deleteStrategies=h.rc,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({injectExtraMetadata:[""],remuxToMp4:[""],deleteSource:[""]})}get injectExtraMetadataControl(){return this.settingsForm.get("injectExtraMetadata")}get remuxToMp4Control(){return this.settingsForm.get("remuxToMp4")}get deleteSourceControl(){return this.settingsForm.get("deleteSource")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("postprocessing",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-post-processing-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:19,vars:11,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","injectExtraMetadata",3,"nzDisabled"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["formControlName","remuxToMp4"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["deleteSourceTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","deleteSource",3,"nzDisabled"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",7),t.TgZ(12,"nz-form-label",8),t._uU(13,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(14,Ci,7,0,"ng-template",null,9,t.W1O),t.TgZ(16,"nz-form-control",10),t.TgZ(17,"nz-radio-group",11),t.YNc(18,zi,3,2,"ng-container",12),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(15);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.injectExtraMetadata?i.injectExtraMetadataControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",i.remuxToMp4Control.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.remuxToMp4?i.remuxToMp4Control:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",r),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.deleteSource?i.deleteSourceControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.remuxToMp4Control.value),t.xp6(1),t.Q6J("ngForOf",i.deleteStrategies)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u,K.Dg,d.sg,K.Of,K.Bq],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Oi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.intervalOptions=[{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],this.thresholdOptions=[{label:"1 GB",value:1024**3},{label:"3 GB",value:1024**3*3},{label:"5 GB",value:1024**3*5},{label:"10 GB",value:1024**3*10},{label:"20 GB",value:1024**3*20}],this.settingsForm=n.group({recycleRecords:[""],checkInterval:[""],spaceThreshold:[""]})}get recycleRecordsControl(){return this.settingsForm.get("recycleRecords")}get checkIntervalControl(){return this.settingsForm.get("checkInterval")}get spaceThresholdControl(){return this.settingsForm.get("spaceThreshold")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("space",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-disk-space-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:16,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","checkInterval",3,"nzOptions"],["formControlName","spaceThreshold",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recycleRecords"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u95f4\u9694"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-select",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u9608\u503c"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-select",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",6),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u7a7a\u95f4\u4e0d\u8db3\u5220\u9664\u65e7\u5f55\u64ad\u6587\u4ef6"),t.qZA(),t.TgZ(14,"nz-form-control",7),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.checkInterval?i.checkIntervalControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.intervalOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.spaceThreshold?i.spaceThresholdControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.thresholdOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recycleRecords?i.recycleRecordsControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,H.Vq,a.JJ,a.u,L,w.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function xi(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Mi(e,o){1&e&&t.YNc(0,xi,2,0,"ng-container",6),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function bi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.YNc(5,Mi,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",i.warningTip)("nzValidateStatus",i.control.valid&&i.control.value.trim()!==i.value?"warning":i.control)("nzErrorTip",n),t.xp6(1),t.Q6J("rows",3)}}let Ti=(()=>{class e{constructor(n,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=n.group({userAgent:["",[a.kI.required]]})}get control(){return this.settingsForm.get("userAgent")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-user-agent-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 User Agent","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["required","","nz-input","","formControlName","userAgent",3,"rows"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,bi,7,5,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Pi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("formGroup",n.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",n.warningTip)("nzValidateStatus",n.control.valid&&n.control.value.trim()!==n.value?"warning":n.control),t.xp6(1),t.Q6J("rows",5)}}let Si=(()=>{class e{constructor(n,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=n.group({cookie:[""]})}get control(){return this.settingsForm.get("cookie")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-cookie-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 Cookie","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus"],["wrap","soft","nz-input","","formControlName","cookie",3,"rows"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Pi,5,4,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),wi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({userAgent:["",[a.kI.required]],cookie:[""]})}get userAgentControl(){return this.settingsForm.get("userAgent")}get cookieControl(){return this.settingsForm.get("cookie")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("header",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-header-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:17,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["userAgentEditDialog",""],["cookieEditDialog",""]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"User Agent"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-user-agent-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.userAgentControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"Cookie"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-cookie-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.cookieControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.userAgent?i.userAgentControl:"warning"),t.xp6(2),t.hij("",i.userAgentControl.value," "),t.xp6(1),t.Q6J("value",i.userAgentControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.cookie?i.cookieControl:"warning"),t.xp6(2),t.hij("",i.cookieControl.value," "),t.xp6(1),t.Q6J("value",i.cookieControl.value))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,Ti,Si],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var jt=l(7355);function yi(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function Fi(e,o){1&e&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function Ai(e,o){1&e&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function Zi(e,o){1&e&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function ki(e,o){if(1&e&&(t.YNc(0,yi,2,0,"ng-container",6),t.YNc(1,Fi,2,0,"ng-container",6),t.YNc(2,Ai,2,0,"ng-container",6),t.YNc(3,Zi,2,0,"ng-container",6)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",n.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",n.hasError("failedToValidate"))}}function Di(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,ki,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",n)}}let Ni=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.validationService=r,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.logDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,y.U)(g=>{switch(g.code){case V.ENOTDIR:return{error:!0,notADirectory:!0};case V.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,k.K)(()=>(0,tt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=n.group({logDir:["",[a.kI.required],[this.logDirAsyncValidator]]})}get control(){return this.settingsForm.get("logDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Gt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-logdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u8bc1...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","logDir"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Di,7,2,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Ei=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.logLevelOptions=[{label:"VERBOSE",value:"NOTSET"},{label:"DEBUG",value:"DEBUG"},{label:"INFO",value:"INFO"},{label:"WARNING",value:"WARNING"},{label:"ERROR",value:"ERROR"},{label:"CRITICAL",value:"CRITICAL"}],this.maxBytesOptions=(0,jt.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,jt.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=n.group({logDir:[""],consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get logDirControl(){return this.settingsForm.get("logDir")}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-logging-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:24,vars:14,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["logDirEditDialog",""],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","consoleLogLevel",3,"nzOptions"],[1,"setting-item"],["formControlName","maxBytes",3,"nzOptions"],["formControlName","backupCount",3,"nzOptions"]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-logdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.logDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",7),t.TgZ(10,"nz-form-label",8),t._uU(11,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),t.qZA(),t.TgZ(12,"nz-form-control",9),t._UZ(13,"nz-select",10),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",11),t.TgZ(15,"nz-form-label",8),t._uU(16,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(17,"nz-form-control",9),t._UZ(18,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(19,"nz-form-item",11),t.TgZ(20,"nz-form-label",8),t._uU(21,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(22,"nz-form-control",9),t._UZ(23,"nz-select",13),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.logDir?i.logDirControl:"warning"),t.xp6(2),t.hij("",i.logDirControl.value," "),t.xp6(1),t.Q6J("value",i.logDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.consoleLogLevel?i.consoleLogLevelControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.logLevelOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.maxBytes?i.maxBytesControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.maxBytesOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.backupCount?i.backupCountControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.backupOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,Ni,L,H.Vq,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Bi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-settings"]],decls:15,vars:0,consts:[["routerLink","email-notification",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"],["routerLink","serverchan-notification",1,"setting-item"],["routerLink","pushplus-notification",1,"setting-item"]],template:function(n,i){1&n&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"\u90ae\u7bb1\u901a\u77e5"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA(),t.TgZ(5,"a",4),t.TgZ(6,"span",1),t._uU(7,"ServerChan \u901a\u77e5"),t.qZA(),t.TgZ(8,"span",2),t._UZ(9,"i",3),t.qZA(),t.qZA(),t.TgZ(10,"a",5),t.TgZ(11,"span",1),t._uU(12,"pushplus \u901a\u77e5"),t.qZA(),t.TgZ(13,"span",2),t._UZ(14,"i",3),t.qZA(),t.qZA())},directives:[_.yS,it.w,J.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),qi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-settings"]],decls:5,vars:0,consts:[["routerLink","webhooks",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"]],template:function(n,i){1&n&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"Webhooks"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA())},directives:[_.yS,it.w,J.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();const Vi=["innerContent"];let Li=(()=>{class e{constructor(n,i,r,s){this.changeDetector=n,this.route=i,this.logger=r,this.routerScrollService=s}ngOnInit(){this.route.data.subscribe(n=>{this.settings=n.settings,this.changeDetector.markForCheck()})}ngAfterViewInit(){this.innerContent?this.routerScrollService.setCustomViewportToScroll(this.innerContent.nativeElement):this.logger.error("The content element could not be found!")}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz),t.Y36(E.Kf),t.Y36(ke))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-settings"]],viewQuery:function(n,i){if(1&n&&t.Gf(Vi,5),2&n){let r;t.iGM(r=t.CRH())&&(i.innerContent=r.first)}},decls:22,vars:7,consts:[[1,"inner-content"],["innerContent",""],[1,"main-settings","settings-page"],[1,"settings-page-content"],["name","\u6587\u4ef6"],[3,"settings"],["name","\u5f55\u5236"],["name","\u5f39\u5e55"],["name","\u6587\u4ef6\u5904\u7406"],["name","\u786c\u76d8\u7a7a\u95f4"],["name","\u7f51\u7edc\u8bf7\u6c42"],["name","\u65e5\u5fd7"],["name","\u901a\u77e5"],["name","Webhook"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0,1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"app-page-section",4),t._UZ(5,"app-output-settings",5),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-recorder-settings",5),t.qZA(),t.TgZ(8,"app-page-section",7),t._UZ(9,"app-danmaku-settings",5),t.qZA(),t.TgZ(10,"app-page-section",8),t._UZ(11,"app-post-processing-settings",5),t.qZA(),t.TgZ(12,"app-page-section",9),t._UZ(13,"app-disk-space-settings",5),t.qZA(),t.TgZ(14,"app-page-section",10),t._UZ(15,"app-header-settings",5),t.qZA(),t.TgZ(16,"app-page-section",11),t._UZ(17,"app-logging-settings",5),t.qZA(),t.TgZ(18,"app-page-section",12),t._UZ(19,"app-notification-settings"),t.qZA(),t.TgZ(20,"app-page-section",13),t._UZ(21,"app-webhook-settings"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.xp6(5),t.Q6J("settings",i.settings.output),t.xp6(2),t.Q6J("settings",i.settings.recorder),t.xp6(2),t.Q6J("settings",i.settings.danmaku),t.xp6(2),t.Q6J("settings",i.settings.postprocessing),t.xp6(2),t.Q6J("settings",i.settings.space),t.xp6(2),t.Q6J("settings",i.settings.header),t.xp6(2),t.Q6J("settings",i.settings.logging))},directives:[X.g,di,fi,_i,vi,Oi,wi,Ei,Bi,qi],styles:[".inner-content[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.inner-content[_ngcontent-%COMP%]{padding-top:0}"]}),e})();var Ii=l(7298),Qi=l(1481),Xt=l(3449),Ji=l(6667),Kt=l(1999),Ui=l(2168);const Wi=function Yi(e,o,n,i){if(!(0,Kt.Z)(e))return e;for(var r=-1,s=(o=(0,Xt.Z)(o,e)).length,g=s-1,u=e;null!=u&&++r0&&n(u)?o>1?en(u,o-1,n,i,r):(0,Xi.Z)(r,u):i||(r[r.length]=u)}return r},io=function eo(e){return null!=e&&e.length?no(e,1):[]},ro=function oo(e,o,n){switch(n.length){case 0:return e.call(o);case 1:return e.call(o,n[0]);case 2:return e.call(o,n[0],n[1]);case 3:return e.call(o,n[0],n[1],n[2])}return e.apply(o,n)};var on=Math.max;const co=function lo(e){return function(){return e}};var rn=l(2370),go=l(9940),fo=Date.now;const zo=function _o(e){var o=0,n=0;return function(){var i=fo(),r=16-(i-n);if(n=i,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}(rn.Z?function(e,o){return(0,rn.Z)(e,"toString",{configurable:!0,enumerable:!1,value:co(o),writable:!0})}:go.Z),F=function vo(e){return zo(function ao(e,o,n){return o=on(void 0===o?e.length-1:o,0),function(){for(var i=arguments,r=-1,s=on(i.length-o,0),g=Array(s);++r{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({enabled:[""]})}get enabledControl(){return this.settingsForm.get("enabled")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notifier-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:6,vars:3,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","enabled"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5141\u8bb8\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.enabled?i.enabledControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var an=l(6422),sn=l(4843),xo=l(13),Mo=l(5778),bo=l(7079),To=l(214);function vt(e){return(0,sn.z)((0,et.h)(()=>e.valid),(0,xo.b)(300),function yo(){return(0,sn.z)((0,y.U)(e=>(0,an.Z)(e,(o,n,i)=>{o[i]=function So(e){return"string"==typeof e||!(0,Ct.Z)(e)&&(0,To.Z)(e)&&"[object String]"==(0,bo.Z)(e)}(n)?n.trim():n},{})))}(),(0,Mo.x)(Ht.Z))}function Fo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Ao(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Zo(e,o){if(1&e&&(t.YNc(0,Fo,2,0,"ng-container",17),t.YNc(1,Ao,2,0,"ng-container",17)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("email"))}}function ko(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Do(e,o){1&e&&t.YNc(0,ko,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function No(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function Eo(e,o){1&e&&t.YNc(0,No,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Bo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function qo(e,o){1&e&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Vo(e,o){if(1&e&&(t.YNc(0,Bo,2,0,"ng-container",17),t.YNc(1,qo,2,0,"ng-container",17)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function Lo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Io(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Qo(e,o){if(1&e&&(t.YNc(0,Lo,2,0,"ng-container",17),t.YNc(1,Io,2,0,"ng-container",17)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("email"))}}let Jo=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({srcAddr:["",[a.kI.required,a.kI.email]],dstAddr:["",[a.kI.required,a.kI.email]],authCode:["",[a.kI.required]],smtpHost:["",[a.kI.required]],smtpPort:["",[a.kI.required,a.kI.pattern(/\d+/)]]})}get srcAddrControl(){return this.settingsForm.get("srcAddr")}get dstAddrControl(){return this.settingsForm.get("dstAddr")}get authCodeControl(){return this.settingsForm.get("authCode")}get smtpHostControl(){return this.settingsForm.get("smtpHost")}get smtpPortControl(){return this.settingsForm.get("smtpPort")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm),(0,y.U)(n=>(0,an.Z)(n,(i,r,s)=>{r="smtpPort"===s?parseInt(r):r,Reflect.set(i,s,r)},{})))).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-email-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:36,vars:16,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","srcAddr","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","srcAddr","type","email","placeholder","\u53d1\u9001\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740","required","","nz-input","","formControlName","srcAddr"],["emailErrorTip",""],["nzFor","authCode","nzNoColon","","nzRequired","",1,"setting-label"],["id","authCode","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u6388\u6743\u7801","required","","nz-input","","formControlName","authCode"],["authCodeErrorTip",""],["nzFor","smtpHost","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpHost","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\uff0c\u4f8b\u5982\uff1asmtp.163.com \u3002","required","","nz-input","","formControlName","smtpHost"],["smtpHostErrorTip",""],["nzFor","smtpPort","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpPort","type","text","pattern","\\d+","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\u7aef\u53e3\uff0c\u901a\u5e38\u4e3a 465 \u3002","required","","nz-input","","formControlName","smtpPort"],["smtpPortErrorTip",""],["nzFor","dstAddr","nzNoColon","","nzRequired","",1,"setting-label"],["id","dstAddr","type","email","placeholder","\u63a5\u6536\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740\uff0c\u53ef\u4ee5\u548c\u53d1\u9001\u90ae\u7bb1\u76f8\u540c\u5b9e\u73b0\u81ea\u53d1\u81ea\u6536\u3002","required","","nz-input","","formControlName","dstAddr"],[4,"ngIf"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u53d1\u9001\u90ae\u7bb1"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Zo,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"\u6388\u6743\u7801"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,Do,1,1,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",1),t.TgZ(16,"nz-form-label",9),t._uU(17,"SMTP \u4e3b\u673a"),t.qZA(),t.TgZ(18,"nz-form-control",3),t._UZ(19,"input",10),t.YNc(20,Eo,1,1,"ng-template",null,11,t.W1O),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",1),t.TgZ(23,"nz-form-label",12),t._uU(24,"SMTP \u7aef\u53e3"),t.qZA(),t.TgZ(25,"nz-form-control",3),t._UZ(26,"input",13),t.YNc(27,Vo,2,2,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",15),t._uU(31,"\u63a5\u6536\u90ae\u7bb1"),t.qZA(),t.TgZ(32,"nz-form-control",3),t._UZ(33,"input",16),t.YNc(34,Qo,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7),s=t.MAs(14),g=t.MAs(21),u=t.MAs(28);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.srcAddrControl.valid&&!i.syncStatus.srcAddr?"warning":i.srcAddrControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.authCodeControl.valid&&!i.syncStatus.authCode?"warning":i.authCodeControl),t.xp6(7),t.Q6J("nzErrorTip",g)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpHostControl.valid&&!i.syncStatus.smtpHost?"warning":i.smtpHostControl),t.xp6(7),t.Q6J("nzErrorTip",u)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpPortControl.valid&&!i.syncStatus.smtpPort?"warning":i.smtpPortControl),t.xp6(7),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.dstAddrControl.valid&&!i.syncStatus.dstAddr?"warning":i.dstAddrControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5,a.c5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:6em!important;width:6em!important}"],changeDetection:0}),e})(),Ot=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({notifyBegan:[""],notifyEnded:[""],notifyError:[""],notifySpace:[""]})}get notifyBeganControl(){return this.settingsForm.get("notifyBegan")}get notifyEndedControl(){return this.settingsForm.get("notifyEnded")}get notifyErrorControl(){return this.settingsForm.get("notifyError")}get notifySpaceControl(){return this.settingsForm.get("notifySpace")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settingsForm.value,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-event-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:21,vars:9,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","notifyBegan"],["formControlName","notifyEnded"],["formControlName","notifyError"],["formControlName","notifySpace"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5f00\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u4e0b\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u51fa\u9519\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",2),t._uU(18,"\u7a7a\u95f4\u4e0d\u8db3\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",7),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyBegan?i.notifyBeganControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyEnded?i.notifyEndedControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyError?i.notifyErrorControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifySpace?i.notifySpaceControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Uo(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-email-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("settings",n.notifierSettings),t.xp6(2),t.Q6J("settings",n.emailSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let Yo=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.emailSettings=F(i,A.gP),this.notifierSettings=F(i,A._1),this.notificationSettings=F(i,A.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-email-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","\u90ae\u4ef6\u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","emailNotification",3,"settings"],["name","\u90ae\u7bb1"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Uo,6,3,"ng-template",1),t.qZA())},directives:[ot.q,rt.Y,X.g,zt,Jo,Ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Wo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function Ro(e,o){1&e&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function Ho(e,o){if(1&e&&(t.YNc(0,Wo,2,0,"ng-container",6),t.YNc(1,Ro,2,0,"ng-container",6)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}let $o=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({sendkey:["",[a.kI.required,a.kI.pattern(/^[a-zA-Z\d]+$/)]]})}get sendkeyControl(){return this.settingsForm.get("sendkey")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm))).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-serverchan-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:8,vars:4,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","sendkey","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","sendkey","type","text","required","","nz-input","","formControlName","sendkey"],["sendkeyErrorTip",""],[4,"ngIf"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"sendkey"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Ho,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.sendkeyControl.valid&&!i.syncStatus.sendkey?"warning":i.sendkeyControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:5em!important;width:5em!important}"],changeDetection:0}),e})();function Go(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-serverchan-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("settings",n.notifierSettings),t.xp6(2),t.Q6J("settings",n.serverchanSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let jo=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.serverchanSettings=F(i,A.gq),this.notifierSettings=F(i,A._1),this.notificationSettings=F(i,A.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-serverchan-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","ServerChan \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","serverchanNotification",3,"settings"],["name","ServerChan"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Go,6,3,"ng-template",1),t.qZA())},directives:[ot.q,rt.Y,X.g,zt,$o,Ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Xo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Ko(e,o){1&e&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function tr(e,o){if(1&e&&(t.YNc(0,Xo,2,0,"ng-container",9),t.YNc(1,Ko,2,0,"ng-container",9)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}let nr=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({token:["",[a.kI.required,a.kI.pattern(/^[a-z\d]{32}$/)]],topic:[""]})}get tokenControl(){return this.settingsForm.get("token")}get topicControl(){return this.settingsForm.get("topic")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm))).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-pushplus-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:13,vars:6,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","token","nzNoColon","","nzRequired","",1,"setting-label","required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","token","type","text","required","","nz-input","","formControlName","token"],["tokenErrorTip",""],["nzFor","topic","nzNoColon","",1,"setting-label","align-required"],[1,"setting-control","input",3,"nzWarningTip","nzValidateStatus"],["id","topic","type","text","nz-input","","formControlName","topic"],[4,"ngIf"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"token"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,tr,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"topic"),t.qZA(),t.TgZ(11,"nz-form-control",7),t._UZ(12,"input",8),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.tokenControl.valid&&!i.syncStatus.token?"warning":i.tokenControl),t.xp6(7),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.topicControl.valid&&!i.syncStatus.topic?"warning":i.topicControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:4em!important;width:4em!important}"],changeDetection:0}),e})();function er(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-pushplus-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("settings",n.notifierSettings),t.xp6(2),t.Q6J("settings",n.pushplusSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let ir=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.changeDetector.markForCheck(),this.pushplusSettings=F(i,A.q1),this.notifierSettings=F(i,A._1),this.notificationSettings=F(i,A.X)})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-pushplus-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","pushplus \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushplusNotification",3,"settings"],["name","pushplus"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,er,6,3,"ng-template",1),t.qZA())},directives:[ot.q,rt.Y,X.g,zt,nr,Ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var ln=l(4219);function or(e,o){1&e&&t._UZ(0,"nz-list-empty")}function rr(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"nz-list-item",9),t.TgZ(1,"span",10),t._uU(2),t.qZA(),t.TgZ(3,"button",11),t._UZ(4,"i",12),t.qZA(),t.TgZ(5,"nz-dropdown-menu",null,13),t.TgZ(7,"ul",14),t.TgZ(8,"li",15),t.NdJ("click",function(){const s=t.CHM(n).index;return t.oxw().edit.emit(s)}),t._uU(9,"\u4fee\u6539"),t.qZA(),t.TgZ(10,"li",15),t.NdJ("click",function(){const s=t.CHM(n).index;return t.oxw().remove.emit(s)}),t._uU(11,"\u5220\u9664"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const n=o.$implicit,i=t.MAs(6);t.xp6(2),t.Oqu(n.url),t.xp6(1),t.Q6J("nzDropdownMenu",i)}}let ar=(()=>{class e{constructor(){this.header="",this.addable=!0,this.clearable=!0,this.add=new t.vpe,this.edit=new t.vpe,this.remove=new t.vpe,this.clear=new t.vpe}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-list"]],inputs:{data:"data",header:"header",addable:"addable",clearable:"clearable"},outputs:{add:"add",edit:"edit",remove:"remove",clear:"clear"},decls:11,vars:5,consts:[["nzBordered","",1,"list"],[1,"list-header"],[1,"list-actions"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6e05\u7a7a",1,"clear-button",3,"disabled","click"],["nz-icon","","nzType","clear"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0",1,"add-button",3,"disabled","click"],["nz-icon","","nzType","plus"],[4,"ngIf"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"item-content"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-action-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-list",0),t.TgZ(1,"nz-list-header",1),t.TgZ(2,"h3"),t._uU(3),t.qZA(),t.TgZ(4,"div",2),t.TgZ(5,"button",3),t.NdJ("click",function(){return i.clear.emit()}),t._UZ(6,"i",4),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.add.emit()}),t._UZ(8,"i",6),t.qZA(),t.qZA(),t.qZA(),t.YNc(9,or,1,0,"nz-list-empty",7),t.YNc(10,rr,12,2,"nz-list-item",8),t.qZA()),2&n&&(t.xp6(3),t.Oqu(i.header),t.xp6(2),t.Q6J("disabled",i.data.length<=0||!i.clearable),t.xp6(2),t.Q6J("disabled",!i.addable),t.xp6(2),t.Q6J("ngIf",i.data.length<=0),t.xp6(1),t.Q6J("ngForOf",i.data))},directives:[ft,pt,lt.ix,it.w,st.SY,J.Ls,d.O5,mt,d.sg,Zt,nt.wA,nt.cm,nt.RR,ln.wO,ln.r9],styles:[".list[_ngcontent-%COMP%]{background-color:#fff}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .list-actions[_ngcontent-%COMP%]{margin-left:auto;position:relative;left:1em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .more-action-button[_ngcontent-%COMP%]{margin-left:auto;flex:0 0 auto;position:relative;left:1em}"],changeDetection:0}),e})();function sr(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function lr(e,o){1&e&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function cr(e,o){if(1&e&&(t.YNc(0,sr,2,0,"ng-container",27),t.YNc(1,lr,2,0,"ng-container",27)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function gr(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item",3),t.TgZ(3,"nz-form-label",4),t._uU(4,"URL"),t.qZA(),t.TgZ(5,"nz-form-control",5),t._UZ(6,"input",6),t.YNc(7,cr,2,2,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"h2"),t._uU(11,"\u4e8b\u4ef6"),t.qZA(),t.TgZ(12,"nz-form-item",3),t.TgZ(13,"nz-form-control",9),t.TgZ(14,"label",10),t.NdJ("nzCheckedChange",function(r){return t.CHM(n),t.oxw().setAllChecked(r)}),t._uU(15,"\u5168\u9009"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",3),t.TgZ(17,"nz-form-control",11),t.TgZ(18,"label",12),t._uU(19,"\u5f00\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",3),t.TgZ(21,"nz-form-control",11),t.TgZ(22,"label",13),t._uU(23,"\u4e0b\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"nz-form-item",3),t.TgZ(25,"nz-form-control",11),t.TgZ(26,"label",14),t._uU(27,"\u76f4\u64ad\u95f4\u4fe1\u606f\u6539\u53d8"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"nz-form-item",3),t.TgZ(29,"nz-form-control",11),t.TgZ(30,"label",15),t._uU(31,"\u5f55\u5236\u5f00\u59cb"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-form-item",3),t.TgZ(33,"nz-form-control",11),t.TgZ(34,"label",16),t._uU(35,"\u5f55\u5236\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(36,"nz-form-item",3),t.TgZ(37,"nz-form-control",11),t.TgZ(38,"label",17),t._uU(39,"\u5f55\u5236\u53d6\u6d88"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",3),t.TgZ(41,"nz-form-control",11),t.TgZ(42,"label",18),t._uU(43,"\u89c6\u9891\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",3),t.TgZ(45,"nz-form-control",11),t.TgZ(46,"label",19),t._uU(47,"\u89c6\u9891\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(48,"nz-form-item",3),t.TgZ(49,"nz-form-control",11),t.TgZ(50,"label",20),t._uU(51,"\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"nz-form-item",3),t.TgZ(53,"nz-form-control",11),t.TgZ(54,"label",21),t._uU(55,"\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(56,"nz-form-item",3),t.TgZ(57,"nz-form-control",11),t.TgZ(58,"label",22),t._uU(59,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(60,"nz-form-item",3),t.TgZ(61,"nz-form-control",11),t.TgZ(62,"label",23),t._uU(63,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",3),t.TgZ(65,"nz-form-control",11),t.TgZ(66,"label",24),t._uU(67,"\u89c6\u9891\u540e\u5904\u7406\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(68,"nz-form-item",3),t.TgZ(69,"nz-form-control",11),t.TgZ(70,"label",25),t._uU(71,"\u786c\u76d8\u7a7a\u95f4\u4e0d\u8db3"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",3),t.TgZ(73,"nz-form-control",11),t.TgZ(74,"label",26),t._uU(75,"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&e){const n=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",n),t.xp6(9),t.Q6J("nzChecked",i.allChecked)("nzIndeterminate",i.indeterminate)}}const ur={url:"",liveBegan:!0,liveEnded:!0,roomChange:!0,recordingStarted:!0,recordingFinished:!0,recordingCancelled:!0,videoFileCreated:!0,videoFileCompleted:!0,danmakuFileCreated:!0,danmakuFileCompleted:!0,rawDanmakuFileCreated:!0,rawDanmakuFileCompleted:!0,videoPostprocessingCompleted:!0,spaceNoEnough:!0,errorOccurred:!0};let mr=(()=>{class e{constructor(n,i){this.changeDetector=i,this.title="\u6807\u9898",this.okButtonText="\u786e\u5b9a",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.allChecked=!1,this.indeterminate=!0,this.settingsForm=n.group({url:["",[a.kI.required,a.kI.pattern(/^https?:\/\/.*$/)]],liveBegan:[""],liveEnded:[""],roomChange:[""],recordingStarted:[""],recordingFinished:[""],recordingCancelled:[""],videoFileCreated:[""],videoFileCompleted:[""],danmakuFileCreated:[""],danmakuFileCompleted:[""],rawDanmakuFileCreated:[""],rawDanmakuFileCompleted:[""],videoPostprocessingCompleted:[""],spaceNoEnough:[""],errorOccurred:[""]}),this.checkboxControls=Object.entries(this.settingsForm.controls).filter(([r])=>"url"!==r).map(([,r])=>r),this.checkboxControls.forEach(r=>r.valueChanges.subscribe(()=>this.updateAllChecked()))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.settingsForm.reset(),this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){void 0===this.settings&&(this.settings=Object.assign({},ur)),this.settingsForm.setValue(this.settings),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}setAllChecked(n){this.indeterminate=!1,this.allChecked=n,this.checkboxControls.forEach(i=>i.setValue(n))}updateAllChecked(){const n=this.checkboxControls.map(i=>i.value);this.allChecked=n.every(i=>i),this.indeterminate=!this.allChecked&&n.some(i=>i)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-edit-dialog"]],inputs:{settings:"settings",title:"title",okButtonText:"okButtonText",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:4,consts:[["nzCentered","",3,"nzTitle","nzOkText","nzVisible","nzOkDisabled","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","url","nzNoColon","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip"],["id","url","type","url","required","","nz-input","","formControlName","url"],["urlErrorTip",""],[1,"form-group"],[1,"setting-control","checkbox","check-all"],["nz-checkbox","",3,"nzChecked","nzIndeterminate","nzCheckedChange"],[1,"setting-control","checkbox"],["nz-checkbox","","formControlName","liveBegan"],["nz-checkbox","","formControlName","liveEnded"],["nz-checkbox","","formControlName","roomChange"],["nz-checkbox","","formControlName","recordingStarted"],["nz-checkbox","","formControlName","recordingFinished"],["nz-checkbox","","formControlName","recordingCancelled"],["nz-checkbox","","formControlName","videoFileCreated"],["nz-checkbox","","formControlName","videoFileCompleted"],["nz-checkbox","","formControlName","danmakuFileCreated"],["nz-checkbox","","formControlName","danmakuFileCompleted"],["nz-checkbox","","formControlName","rawDanmakuFileCreated"],["nz-checkbox","","formControlName","rawDanmakuFileCompleted"],["nz-checkbox","","formControlName","videoPostprocessingCompleted"],["nz-checkbox","","formControlName","spaceNoEnough"],["nz-checkbox","","formControlName","errorOccurred"],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,gr,76,4,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzTitle",i.title)("nzOkText",i.okButtonText)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5,Mt.Ie],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-item[_ngcontent-%COMP%]{padding:1em 0;border:none}.setting-item[_ngcontent-%COMP%]:first-child{padding-top:0}.setting-item[_ngcontent-%COMP%]:first-child .setting-control[_ngcontent-%COMP%]{flex:1 1 auto;max-width:100%!important}.setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%] .check-all[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.06)}"],changeDetection:0}),e})();function pr(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"app-page-section"),t.TgZ(1,"app-webhook-list",3),t.NdJ("add",function(){return t.CHM(n),t.oxw().addWebhook()})("edit",function(r){return t.CHM(n),t.oxw().editWebhook(r)})("remove",function(r){return t.CHM(n),t.oxw().removeWebhook(r)})("clear",function(){return t.CHM(n),t.oxw().clearWebhook()}),t.qZA(),t.qZA()}if(2&e){const n=t.oxw();t.xp6(1),t.Q6J("data",n.webhooks)("addable",n.canAdd)}}const dr=[{path:"email-notification",component:Yo,resolve:{settings:Vt}},{path:"serverchan-notification",component:jo,resolve:{settings:Lt}},{path:"pushplus-notification",component:ir,resolve:{settings:It}},{path:"webhooks",component:(()=>{class e{constructor(n,i,r,s,g){this.changeDetector=n,this.route=i,this.message=r,this.modal=s,this.settingService=g,this.dialogTitle="",this.dialogOkButtonText="",this.dialogVisible=!1,this.editingIndex=-1}get canAdd(){return this.webhooks.length{this.webhooks=n.settings,this.changeDetector.markForCheck()})}addWebhook(){this.editingIndex=-1,this.editingSettings=void 0,this.dialogTitle="\u6dfb\u52a0 webhook",this.dialogOkButtonText="\u6dfb\u52a0",this.dialogVisible=!0}removeWebhook(n){const i=this.webhooks.filter((r,s)=>s!==n);this.changeSettings(i).subscribe(()=>this.reset())}editWebhook(n){this.editingIndex=n,this.editingSettings=Object.assign({},this.webhooks[n]),this.dialogTitle="\u4fee\u6539 webhook",this.dialogOkButtonText="\u4fdd\u5b58",this.dialogVisible=!0}clearWebhook(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u6e05\u7a7a Webhook \uff1f",nzOnOk:()=>new Promise((n,i)=>{this.changeSettings([]).subscribe(n,i)})})}onDialogCanceled(){this.reset()}onDialogConfirmed(n){let i;-1===this.editingIndex?i=[...this.webhooks,n]:(i=[...this.webhooks],i[this.editingIndex]=n),this.changeSettings(i).subscribe(()=>this.reset())}reset(){this.editingIndex=-1,delete this.editingSettings}changeSettings(n){return this.settingService.changeSettings({webhooks:n}).pipe((0,N.X)(3,300),(0,_t.b)(i=>{this.webhooks=i.webhooks,this.changeDetector.markForCheck()},i=>{this.message.error(`Webhook \u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}}return e.MAX_WEBHOOKS=50,e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz),t.Y36($t.dD),t.Y36(z.Sf),t.Y36(B.R))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-manager"]],decls:3,vars:4,consts:[["pageTitle","Webhooks"],["appSubPageContent",""],[3,"title","okButtonText","settings","visible","visibleChange","cancel","confirm"],["header","Webhook \u5217\u8868",3,"data","addable","add","edit","remove","clear"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,pr,2,2,"ng-template",1),t.qZA(),t.TgZ(2,"app-webhook-edit-dialog",2),t.NdJ("visibleChange",function(s){return i.dialogVisible=s})("cancel",function(){return i.onDialogCanceled()})("confirm",function(s){return i.onDialogConfirmed(s)}),t.qZA()),2&n&&(t.xp6(2),t.Q6J("title",i.dialogTitle)("okButtonText",i.dialogOkButtonText)("settings",i.editingSettings)("visible",i.dialogVisible))},directives:[ot.q,rt.Y,X.g,ar,mr],styles:[""],changeDetection:0}),e})(),resolve:{settings:Qt}},{path:"",component:Li,resolve:{settings:qt}}];let hr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[_.Bz.forChild(dr)],_.Bz]}),e})(),fr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[qt,Vt,Lt,It,Qt],imports:[[d.ez,hr,a.u5,a.UX,at.j,gn.KJ,un.vh,c.U5,T.o7,w.m,Mt.Wr,K.aF,hn,H.LV,z.Qp,lt.sL,J.PV,ve,nt.b1,st.cg,Oe.S,D.HQ,ye,Fe.m]]}),e})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/694.d4844204c9f8d279.js b/src/blrec/data/webapp/694.d4844204c9f8d279.js deleted file mode 100644 index 0131362..0000000 --- a/src/blrec/data/webapp/694.d4844204c9f8d279.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[694],{9694:(_r,xt,l)=>{l.r(xt),l.d(xt,{SettingsModule:()=>hr});var d=l(9808),a=l(4182),at=l(7525),gn=l(1945),un=l(7484),c=l(4546),T=l(1047),w=l(6462),Mt=l(6114),K=l(3868),t=l(5e3),st=l(404),mn=l(925),W=l(226);let hn=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[W.vT,d.ez,mn.ud,st.cg]]}),e})();var H=l(5197),z=l(7957),lt=l(6042),Q=l(647),bt=l(6699),J=l(969),P=l(655),S=l(1721),$=l(8929),fn=l(8514),tt=l(1086),_n=l(6787),Cn=l(591),zn=l(2986),Tt=l(7545),G=l(7625),Pt=l(685),m=l(1894);const A=["*"];function Zn(e,o){1&e&&t.Hsn(0)}const An=["nz-list-item-actions",""];function kn(e,o){}function Nn(e,o){1&e&&t._UZ(0,"em",3)}function Dn(e,o){if(1&e&&(t.TgZ(0,"li"),t.YNc(1,kn,0,0,"ng-template",1),t.YNc(2,Nn,1,0,"em",2),t.qZA()),2&e){const n=o.$implicit,i=o.last;t.xp6(1),t.Q6J("ngTemplateOutlet",n),t.xp6(1),t.Q6J("ngIf",!i)}}function En(e,o){}const St=function(e,o){return{$implicit:e,index:o}};function Bn(e,o){if(1&e&&(t.ynx(0),t.YNc(1,En,0,0,"ng-template",9),t.BQk()),2&e){const n=o.$implicit,i=o.index,r=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,St,n,i))}}function qn(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Bn,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngForOf",n.nzDataSource)}}function Vn(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzHeader)}}function In(e,o){if(1&e&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Vn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzHeader)}}function Ln(e,o){1&e&&t._UZ(0,"div"),2&e&&t.Udp("min-height",53,"px")}function Qn(e,o){}function Jn(e,o){if(1&e&&(t.TgZ(0,"div",13),t.YNc(1,Qn,0,0,"ng-template",9),t.qZA()),2&e){const n=o.$implicit,i=o.index,r=t.oxw(2);t.Q6J("nzSpan",r.nzGrid.span||null)("nzXs",r.nzGrid.xs||null)("nzSm",r.nzGrid.sm||null)("nzMd",r.nzGrid.md||null)("nzLg",r.nzGrid.lg||null)("nzXl",r.nzGrid.xl||null)("nzXXl",r.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,St,n,i))}}function Un(e,o){if(1&e&&(t.TgZ(0,"div",11),t.YNc(1,Jn,2,12,"div",12),t.qZA()),2&e){const n=t.oxw();t.Q6J("nzGutter",n.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",n.nzDataSource)}}function Yn(e,o){if(1&e&&t._UZ(0,"nz-list-empty",14),2&e){const n=t.oxw();t.Q6J("nzNoResult",n.nzNoResult)}}function Wn(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzFooter)}}function Rn(e,o){if(1&e&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,Wn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzFooter)}}function Hn(e,o){}function $n(e,o){}function Gn(e,o){if(1&e&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,$n,0,0,"ng-template",6),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzPagination)}}const jn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Xn=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Kn(e,o){if(1&e&&t._UZ(0,"ul",6),2&e){const n=t.oxw(2);t.Q6J("nzActions",n.nzActions)}}function te(e,o){if(1&e&&(t.YNc(0,Kn,1,1,"ul",5),t.Hsn(1)),2&e){const n=t.oxw();t.Q6J("ngIf",n.nzActions&&n.nzActions.length>0)}}function ne(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(3);t.xp6(1),t.Oqu(n.nzContent)}}function ee(e,o){if(1&e&&(t.ynx(0),t.YNc(1,ne,2,1,"ng-container",8),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzContent)}}function ie(e,o){if(1&e&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,ee,2,1,"ng-container",7)),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.nzContent)}}function oe(e,o){1&e&&t.Hsn(0,3)}function re(e,o){}function ae(e,o){}function se(e,o){}function le(e,o){}function ce(e,o){if(1&e&&(t.YNc(0,re,0,0,"ng-template",9),t.YNc(1,ae,0,0,"ng-template",9),t.YNc(2,se,0,0,"ng-template",9),t.YNc(3,le,0,0,"ng-template",9)),2&e){const n=t.oxw(),i=t.MAs(3),r=t.MAs(5),s=t.MAs(1);t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function ge(e,o){}function ue(e,o){}function me(e,o){}function pe(e,o){if(1&e&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,me,0,0,"ng-template",9),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra)}}function de(e,o){}function he(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,ge,0,0,"ng-template",9),t.YNc(3,ue,0,0,"ng-template",9),t.qZA(),t.YNc(4,pe,2,1,"nz-list-item-extra",7),t.YNc(5,de,0,0,"ng-template",9),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(3),r=t.MAs(1),s=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(1),t.Q6J("ngIf",n.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}const fe=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],_e=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];let ut=(()=>{class e{constructor(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:A,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),yt=(()=>{class e{constructor(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-item-action"]],viewQuery:function(n,i){if(1&n&&t.Gf(t.Rgc,5),2&n){let r;t.iGM(r=t.CRH())&&(i.templateRef=r.first)}},exportAs:["nzListItemAction"],ngContentSelectors:A,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.YNc(0,Zn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),Ft=(()=>{class e{constructor(n,i){this.ngZone=n,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new $.xQ,this.inputActionChanges$=new $.xQ,this.contentChildrenChanges$=(0,fn.P)(()=>this.nzListItemActions?(0,tt.of)(null):this.ngZone.onStable.asObservable().pipe((0,zn.q)(1),(0,Tt.w)(()=>this.contentChildrenChanges$))),(0,_n.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,G.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(r=>r.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.R0b),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,yt,4),2&n){let s;t.iGM(s=t.CRH())&&(i.nzListItemActions=s)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[t.TTD],attrs:An,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-list-item-action-split",4,"ngIf"],[1,"ant-list-item-action-split"]],template:function(n,i){1&n&&t.YNc(0,Dn,3,2,"li",0),2&n&&t.Q6J("ngForOf",i.actions)},directives:[d.sg,d.tP,d.O5],encapsulation:2,changeDetection:0}),e})(),mt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(n,i){1&n&&t._UZ(0,"nz-embed-empty",0),2&n&&t.Q6J("nzComponentName","list")("specificContent",i.nzNoResult)},directives:[Pt.gB],encapsulation:2,changeDetection:0}),e})(),pt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:A,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),dt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:A,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),ht=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:A,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),Zt=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=t.lG2({type:e,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),e})(),ft=(()=>{class e{constructor(n){this.directionality=n,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new Cn.X(this.nzItemLayout),this.destroy$=new $.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var n;this.dir=this.directionality.value,null===(n=this.directionality.change)||void 0===n||n.pipe((0,G.R)(this.destroy$)).subscribe(i=>{this.dir=i})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(n){n.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(W.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(n,i,r){if(1&n&&(t.Suo(r,dt,5),t.Suo(r,ht,5),t.Suo(r,Zt,5)),2&n){let s;t.iGM(s=t.CRH())&&(i.nzListFooterComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListPaginationComponent=s.first),t.iGM(s=t.CRH())&&(i.nzListLoadMoreDirective=s.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(n,i){2&n&&t.ekj("ant-list-rtl","rtl"===i.dir)("ant-list-vertical","vertical"===i.nzItemLayout)("ant-list-lg","large"===i.nzSize)("ant-list-sm","small"===i.nzSize)("ant-list-split",i.nzSplit)("ant-list-bordered",i.nzBordered)("ant-list-loading",i.nzLoading)("ant-list-something-after-last-item",i.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:"nzBordered",nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:"nzLoading",nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:"nzSplit",nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[t.TTD],ngContentSelectors:Xn,decls:15,vars:9,consts:[["itemsTpl",""],[4,"ngIf"],[3,"nzSpinning"],[3,"min-height",4,"ngIf"],["nz-row","",3,"nzGutter",4,"ngIf","ngIfElse"],[3,"nzNoResult",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-list-items"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-row","",3,"nzGutter"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"nzNoResult"]],template:function(n,i){if(1&n&&(t.F$t(jn),t.YNc(0,qn,3,1,"ng-template",null,0,t.W1O),t.YNc(2,In,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,Ln,1,2,"div",3),t.YNc(7,Un,2,2,"div",4),t.YNc(8,Yn,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,Rn,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Hn,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,Gn,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&n){const r=t.MAs(1);t.xp6(2),t.Q6J("ngIf",i.nzHeader),t.xp6(2),t.Q6J("nzSpinning",i.nzLoading),t.xp6(2),t.Q6J("ngIf",i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzGrid&&i.nzDataSource)("ngIfElse",r),t.xp6(1),t.Q6J("ngIf",!i.nzLoading&&i.nzDataSource&&0===i.nzDataSource.length),t.xp6(1),t.Q6J("ngIf",i.nzFooter),t.xp6(2),t.Q6J("ngTemplateOutlet",i.nzLoadMore),t.xp6(2),t.Q6J("ngIf",i.nzPagination)}},directives:[pt,at.W,mt,dt,ht,d.sg,d.tP,d.O5,J.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,S.yF)()],e.prototype,"nzBordered",void 0),(0,P.gn)([(0,S.yF)()],e.prototype,"nzLoading",void 0),(0,P.gn)([(0,S.yF)()],e.prototype,"nzSplit",void 0),e})(),At=(()=>{class e{constructor(n,i,r,s){this.parentComp=r,this.cdr=s,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,i.addClass(n.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(n=>{this.itemLayout=n,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(ft),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,ut,5),2&n){let s;t.iGM(s=t.CRH())&&(i.listItemExtraDirective=s.first)}},hostVars:2,hostBindings:function(n,i){2&n&&t.ekj("ant-list-item-no-flex",i.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:_e,decls:9,vars:2,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["simpleTpl",""],[4,"ngIf","ngIfElse"],["nz-list-item-actions","",3,"nzActions",4,"ngIf"],["nz-list-item-actions","",3,"nzActions"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"ngTemplateOutlet"],[1,"ant-list-item-main"]],template:function(n,i){if(1&n&&(t.F$t(fe),t.YNc(0,te,2,1,"ng-template",null,0,t.W1O),t.YNc(2,ie,3,1,"ng-template",null,1,t.W1O),t.YNc(4,oe,1,0,"ng-template",null,2,t.W1O),t.YNc(6,ce,4,4,"ng-template",null,3,t.W1O),t.YNc(8,he,6,4,"ng-container",4)),2&n){const r=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",r)}},directives:[Ft,ut,d.O5,J.f,d.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,S.yF)()],e.prototype,"nzNoFlex",void 0),e})(),ve=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[W.vT,d.ez,at.j,m.Jb,bt.Rt,J.T,Pt.Xo]]}),e})();var nt=l(3677),Oe=l(5737),N=l(592),xe=l(8076),U=l(9439),kt=l(4832);const Nt=["*"];function Me(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&e){const n=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzType",n||"right")("nzRotate",i.nzActive?90:0)}}function be(e,o){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,Me,2,2,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExpandedIcon)}}function Te(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Oqu(n.nzHeader)}}function Pe(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzExtra)}}function Se(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Pe,2,1,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExtra)}}const Dt="collapse";let Et=(()=>{class e{constructor(n,i,r){this.nzConfigService=n,this.cdr=i,this.directionality=r,this._nzModuleName=Dt,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new $.xQ,this.nzConfigService.getConfigChangeEventForComponent(Dt).pipe((0,G.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,G.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(n){this.listOfNzCollapsePanelComponent.push(n)}removePanel(n){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(n),1)}click(n){this.nzAccordion&&!n.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==n).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),n.nzActive=!n.nzActive,n.nzActiveChange.emit(n.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(U.jY),t.Y36(t.sBO),t.Y36(W.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(n,i){2&n&&t.ekj("ant-collapse-icon-position-left","left"===i.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===i.nzExpandIconPosition)("ant-collapse-ghost",i.nzGhost)("ant-collapse-borderless",!i.nzBordered)("ant-collapse-rtl","rtl"===i.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:Nt,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,P.gn)([(0,U.oS)(),(0,S.yF)()],e.prototype,"nzAccordion",void 0),(0,P.gn)([(0,U.oS)(),(0,S.yF)()],e.prototype,"nzBordered",void 0),(0,P.gn)([(0,U.oS)(),(0,S.yF)()],e.prototype,"nzGhost",void 0),e})();const Bt="collapsePanel";let we=(()=>{class e{constructor(n,i,r,s){this.nzConfigService=n,this.cdr=i,this.nzCollapseComponent=r,this.noAnimation=s,this._nzModuleName=Bt,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new $.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,G.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}clickHeader(){this.nzDisabled||this.nzCollapseComponent.click(this)}markForCheck(){this.cdr.markForCheck()}ngOnInit(){this.nzCollapseComponent.addPanel(this)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.nzCollapseComponent.removePanel(this)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(U.jY),t.Y36(t.sBO),t.Y36(Et,1),t.Y36(kt.P,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(n,i){2&n&&t.ekj("ant-collapse-no-arrow",!i.nzShowArrow)("ant-collapse-item-active",i.nzActive)("ant-collapse-item-disabled",i.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:Nt,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(n,i){1&n&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,be,2,1,"div",1),t.YNc(2,Te,2,1,"ng-container",2),t.YNc(3,Se,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&n&&(t.uIk("aria-expanded",i.nzActive),t.xp6(1),t.Q6J("ngIf",i.nzShowArrow),t.xp6(1),t.Q6J("nzStringTemplateOutlet",i.nzHeader),t.xp6(1),t.Q6J("ngIf",i.nzExtra),t.xp6(1),t.ekj("ant-collapse-content-active",i.nzActive),t.Q6J("@.disabled",null==i.noAnimation?null:i.noAnimation.nzNoAnimation)("@collapseMotion",i.nzActive?"expanded":"hidden"))},directives:[d.O5,J.f,Q.Ls],encapsulation:2,data:{animation:[xe.J_]},changeDetection:0}),(0,P.gn)([(0,S.yF)()],e.prototype,"nzActive",void 0),(0,P.gn)([(0,S.yF)()],e.prototype,"nzDisabled",void 0),(0,P.gn)([(0,U.oS)(),(0,S.yF)()],e.prototype,"nzShowArrow",void 0),e})(),ye=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[W.vT,d.ez,Q.PV,J.T,kt.g]]}),e})();var Fe=l(4466),k=l(7221),D=l(7106),E=l(2306),j=l(5278),B=l(5136);let qt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["output","logging","header","danmaku","recorder","postprocessing","space"]).pipe((0,D.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get settings:",r),this.notification.error("\u83b7\u53d6\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var y=l(4850);let Vt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["emailNotification"]).pipe((0,y.U)(r=>r.emailNotification),(0,D.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get email notification settings:",r),this.notification.error("\u83b7\u53d6\u90ae\u4ef6\u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),It=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["serverchanNotification"]).pipe((0,y.U)(r=>r.serverchanNotification),(0,D.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get ServerChan notification settings:",r),this.notification.error("\u83b7\u53d6 ServerChan \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Lt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["pushplusNotification"]).pipe((0,y.U)(r=>r.pushplusNotification),(0,D.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get pushplus notification settings:",r),this.notification.error("\u83b7\u53d6 pushplus \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Qt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["webhooks"]).pipe((0,y.U)(r=>r.webhooks),(0,D.X)(3,300),(0,k.K)(r=>{throw this.logger.error("Failed to get webhook settings:",r),this.notification.error("\u83b7\u53d6 Webhook \u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(E.Kf),t.LFG(j.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var _=l(2302),et=l(2198),Jt=l(2014),Ze=l(7770),Ae=l(353),Ut=l(4704),C=l(2340);const f="RouterScrollService",Yt="defaultViewport",Wt="customViewport";let ke=(()=>{class e{constructor(n,i,r,s){this.router=n,this.activatedRoute=i,this.viewportScroller=r,this.logger=s,this.addQueue=[],this.addBeforeNavigationQueue=[],this.removeQueue=[],this.routeStrategies=[],this.scrollDefaultViewport=!0,this.customViewportToScroll=null,C.N.traceRouterScrolling&&this.logger.trace(`${f}:: constructor`),C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Subscribing to router events`);const g=this.router.events.pipe((0,et.h)(u=>u instanceof _.OD||u instanceof _.m2),(0,Jt.R)((u,p)=>{var v,O;C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Updating the known scroll positions`);const I=Object.assign({},u.positions);return p instanceof _.OD&&this.scrollDefaultViewport&&(C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Storing the scroll position of the default viewport`),I[`${p.id}-${Yt}`]=this.viewportScroller.getScrollPosition()),p instanceof _.OD&&this.customViewportToScroll&&(C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Storing the scroll position of the custom viewport`),I[`${p.id}-${Wt}`]=this.customViewportToScroll.scrollTop),{event:p,positions:I,trigger:p instanceof _.OD?p.navigationTrigger:u.trigger,idToRestore:p instanceof _.OD&&p.restoredState&&p.restoredState.navigationId+1||u.idToRestore,routeData:null===(O=null===(v=this.activatedRoute.firstChild)||void 0===v?void 0:v.routeConfig)||void 0===O?void 0:O.data}}),(0,et.h)(u=>!!u.trigger),(0,Ze.QV)(Ae.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(L=>u.event.url.indexOf(L.partialRoute)>-1),v=p&&p.behaviour===Ut.g.KEEP_POSITION||!1,O=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Ut.g.KEEP_POSITION||!1,I=v||O;if(u.event instanceof _.m2){this.processRemoveQueue(this.removeQueue);const L=u.trigger&&"imperative"===u.trigger||!1,cn=!I||L;C.N.traceRouterScrolling&&(this.logger.trace(`${f}:: Existing strategy with keep position behavior? `,v),this.logger.trace(`${f}:: Route data with keep position behavior? `,O),this.logger.trace(`${f}:: Imperative trigger? `,L),this.logger.debug(`${f}:: Should scroll? `,cn)),cn?(this.scrollDefaultViewport&&(C.N.traceRouterScrolling&&this.logger.debug(`${f}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(C.N.traceRouterScrolling&&this.logger.debug(`${f}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(C.N.traceRouterScrolling&&this.logger.debug(`${f}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${Yt}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Wt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(fr=>fr.partialRoute),!0),this.processAddQueue(this.addQueue),this.addQueue=[],this.removeQueue=[],this.addBeforeNavigationQueue=[]}else this.processAddQueue(this.addBeforeNavigationQueue)})}addStrategyOnceBeforeNavigationForPartialRoute(n,i){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Adding a strategy once for before navigation towards [${n}]: `,i),this.addBeforeNavigationQueue.push({partialRoute:n,behaviour:i,onceBeforeNavigation:!0})}addStrategyForPartialRoute(n,i){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Adding a strategy for partial route: [${n}]`,i),this.addQueue.push({partialRoute:n,behaviour:i})}removeStrategyForPartialRoute(n){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Removing strategory for: [${n}]: `),this.removeQueue.push(n)}setCustomViewportToScroll(n){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Setting a custom viewport to scroll: `,n),this.customViewportToScroll=n}disableScrollDefaultViewport(){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Enabling scrolling the default viewport`),this.scrollDefaultViewport=!0}processAddQueue(n){for(const i of n)-1===this.routeStrategyPosition(i.partialRoute)&&this.routeStrategies.push(i)}processRemoveQueue(n,i=!1){for(const r of n){const s=this.routeStrategyPosition(r);!i&&s>-1&&this.routeStrategies[s].onceBeforeNavigation||s>-1&&this.routeStrategies.splice(s,1)}}routeStrategyPosition(n){return this.routeStrategies.map(i=>i.partialRoute).indexOf(n)}ngOnDestroy(){C.N.traceRouterScrolling&&this.logger.trace(`${f}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(_.F0),t.LFG(_.gz),t.LFG(d.EM),t.LFG(E.Kf))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var X=l(4670),Y=l(3523),Ne=l(3496),De=l(1149),Ee=l(7242);const x=function Be(e,o){var n={};return o=(0,Ee.Z)(o,3),(0,De.Z)(e,function(i,r,s){(0,Ne.Z)(n,r,o(i,r,s))}),n};var _t=l(2994),qe=l(4884),Ve=l(4116),Rt=l(4825),Ct=l(4177),Ie=l(8706),Le=l(5202),Qe=l(1986),Je=l(7583),Re=Object.prototype.hasOwnProperty;var Ht=l(1854),Ge=l(2134),$t=l(9727);function M(e){const o="result"in e;return x(e.diff,()=>o)}let b=(()=>{class e{constructor(n,i){this.message=n,this.settingService=i}syncSettings(n,i,r){return r.pipe((0,Jt.R)(([,s],g)=>[s,g,(0,Ge.e)(g,s)],[i,i,{}]),(0,et.h)(([,,s])=>!function He(e){if(null==e)return!0;if((0,Ie.Z)(e)&&((0,Ct.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,Le.Z)(e)||(0,Je.Z)(e)||(0,Rt.Z)(e)))return!e.length;var o=(0,Ve.Z)(e);if("[object Map]"==o||"[object Set]"==o)return!e.size;if((0,Qe.Z)(e))return!(0,qe.Z)(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0}(s)),(0,Tt.w)(([s,g,u])=>this.settingService.changeSettings({[n]:u}).pipe((0,D.X)(3,300),(0,_t.b)(p=>{console.assert((0,Ht.Z)(p[n],g),"result settings should equal current settings",{curr:g,result:p[n]})},p=>{this.message.error(`\u8bbe\u7f6e\u51fa\u9519: ${p.message}`)}),(0,y.U)(p=>({prev:s,curr:g,diff:u,result:p[n]})),(0,k.K)(p=>(0,tt.of)({prev:s,curr:g,diff:u,error:p})))),(0,_t.b)(s=>console.debug(`${n} settings sync detail:`,s)))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG($t.dD),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var h=l(8737),q=(()=>{return(e=q||(q={}))[e.EACCES=13]="EACCES",e[e.ENOTDIR=20]="ENOTDIR",q;var e})(),je=l(520);const Xe=C.N.apiUrl;let Gt=(()=>{class e{constructor(n){this.http=n}validateDir(n){return this.http.post(Xe+"/api/v1/validation/dir",{path:n})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(je.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ke(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function ti(e,o){1&e&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function ni(e,o){1&e&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function ei(e,o){1&e&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function ii(e,o){if(1&e&&(t.YNc(0,Ke,2,0,"ng-container",6),t.YNc(1,ti,2,0,"ng-container",6),t.YNc(2,ni,2,0,"ng-container",6),t.YNc(3,ei,2,0,"ng-container",6)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",n.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",n.hasError("failedToValidate"))}}function oi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,ii,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",n)}}let ri=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.validationService=r,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.outDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,y.U)(g=>{switch(g.code){case q.ENOTDIR:return{error:!0,notADirectory:!0};case q.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,k.K)(()=>(0,tt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=n.group({outDir:["",[a.kI.required],[this.outDirAsyncValidator]]})}get control(){return this.settingsForm.get("outDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Gt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-outdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u9a8c...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","outDir"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,oi,7,2,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var ai=l(2643),it=l(2683);function si(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function li(e,o){1&e&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ci(e,o){if(1&e&&(t.YNc(0,si,2,0,"ng-container",12),t.YNc(1,li,2,0,"ng-container",12)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function gi(e,o){if(1&e&&(t.TgZ(0,"tr"),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.qZA()),2&e){const n=o.$implicit;t.xp6(2),t.Oqu(n.name),t.xp6(2),t.Oqu(n.desc)}}function ui(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",3),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",4),t._UZ(4,"input",5),t.YNc(5,ci,2,2,"ng-template",null,6,t.W1O),t.qZA(),t.qZA(),t.TgZ(7,"nz-collapse"),t.TgZ(8,"nz-collapse-panel",7),t.TgZ(9,"nz-table",8,9),t.TgZ(11,"thead"),t.TgZ(12,"tr"),t.TgZ(13,"th"),t._uU(14,"\u53d8\u91cf"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"\u8bf4\u660e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"tbody"),t.YNc(18,gi,5,2,"tr",10),t.qZA(),t.qZA(),t.TgZ(19,"p",11),t.TgZ(20,"strong"),t._uU(21," \u6ce8\u610f\uff1a\u53d8\u91cf\u540d\u5fc5\u987b\u653e\u5728\u82b1\u62ec\u53f7\u4e2d\uff01\u4f7f\u7528\u65e5\u671f\u65f6\u95f4\u53d8\u91cf\u4ee5\u907f\u514d\u547d\u540d\u51b2\u7a81\uff01 "),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.MAs(10),r=t.oxw();t.xp6(1),t.Q6J("formGroup",r.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",n),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern),t.xp6(5),t.Q6J("nzData",r.pathTemplateVariables)("nzPageSize",11)("nzShowPagination",!1)("nzSize","small"),t.xp6(9),t.Q6J("ngForOf",i.data)}}function mi(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(n),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",14),t.NdJ("click",function(){return t.CHM(n),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",13),t.NdJ("click",function(){return t.CHM(n),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("disabled",n.control.value.trim()===n.pathTemplateDefault),t.xp6(4),t.Q6J("disabled",n.control.invalid||n.control.value.trim()===n.value)}}let pi=(()=>{class e{constructor(n,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.pathTemplatePattern=h._m,this.pathTemplateDefault=h.ip,this.pathTemplateVariables=h.Dr,this.settingsForm=n.group({pathTemplate:["",[a.kI.required,a.kI.pattern(this.pathTemplatePattern)]]})}get control(){return this.settingsForm.get("pathTemplate")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}restoreDefault(){this.control.setValue(this.pathTemplateDefault)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-path-template-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:4,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u8def\u5f84\u6a21\u677f","nzCentered","",3,"nzFooter","nzVisible","nzVisibleChange"],[4,"nzModalContent"],["modalFooter",""],["nz-form","",3,"formGroup"],[3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","pathTemplate",3,"pattern"],["errorTip",""],["nzHeader","\u6a21\u677f\u53d8\u91cf\u8bf4\u660e"],[3,"nzData","nzPageSize","nzShowPagination","nzSize"],["table",""],[4,"ngFor","ngForOf"],[1,"footnote"],[4,"ngIf"],["nz-button","","nzType","default",3,"disabled","click"],["nz-button","","nzType","default",3,"click"]],template:function(n,i){if(1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s}),t.YNc(1,ui,22,8,"ng-container",1),t.YNc(2,mi,6,2,"ng-template",null,2,t.W1O),t.qZA()),2&n){const r=t.MAs(3);t.Q6J("nzFooter",r)("nzVisible",i.visible)}},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,a.c5,d.O5,Et,we,N.N8,N.Om,N.$Z,N.Uo,N._C,N.p0,d.sg,lt.ix,ai.dQ,it.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),e})(),di=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.splitFileTip=h.Uk,this.syncFailedWarningTip=h.yT,this.filesizeLimitOptions=(0,Y.Z)(h.Pu),this.durationLimitOptions=(0,Y.Z)(h.Fg),this.settingsForm=n.group({outDir:[""],pathTemplate:[""],filesizeLimit:[""],durationLimit:[""]})}get outDirControl(){return this.settingsForm.get("outDir")}get pathTemplateControl(){return this.settingsForm.get("pathTemplate")}get filesizeLimitControl(){return this.settingsForm.get("filesizeLimit")}get durationLimitControl(){return this.settingsForm.get("durationLimit")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-output-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:27,vars:17,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["outDirEditDialog",""],["pathTemplateEditDialog",""],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","filesizeLimit",3,"nzOptions"],["formControlName","durationLimit",3,"nzOptions"]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-outdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.outDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-path-template-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.pathTemplateControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"nz-form-item",8),t.TgZ(18,"nz-form-label",9),t._uU(19,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(20,"nz-form-control",10),t._UZ(21,"nz-select",11),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",8),t.TgZ(23,"nz-form-label",9),t._uU(24,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(25,"nz-form-control",10),t._UZ(26,"nz-select",12),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.outDir?i.outDirControl:"warning"),t.xp6(2),t.hij("",i.outDirControl.value," "),t.xp6(1),t.Q6J("value",i.outDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.pathTemplate?i.pathTemplateControl:"warning"),t.xp6(2),t.hij("",i.pathTemplateControl.value," "),t.xp6(1),t.Q6J("value",i.pathTemplateControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",i.splitFileTip),t.xp6(2),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.filesizeLimit?i.filesizeLimitControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.filesizeLimitOptions),t.xp6(2),t.Q6J("nzTooltipTitle",i.splitFileTip),t.xp6(2),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.durationLimit?i.durationLimitControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.durationLimitOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,ri,pi,H.Vq,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),V=(()=>{class e{constructor(){}get actionable(){var n;return(null===(n=this.directive)||void 0===n?void 0:n.valueAccessor)instanceof w.i}onClick(n){var i;n.target===n.currentTarget&&(n.preventDefault(),n.stopPropagation(),(null===(i=this.directive)||void 0===i?void 0:i.valueAccessor)instanceof w.i&&this.directive.control.setValue(!this.directive.control.value))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=t.lG2({type:e,selectors:[["","appSwitchActionable",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,a.u,5),2&n){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(n,i){1&n&&t.NdJ("click",function(s){return i.onClick(s)}),2&n&&t.ekj("actionable",i.actionable)}}),e})(),hi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.qualityOptions=(0,Y.Z)(h.O6),this.timeoutOptions=(0,Y.Z)(h.D4),this.disconnectionTimeoutOptions=(0,Y.Z)(h.$w),this.bufferOptions=(0,Y.Z)(h.Rc),this.settingsForm=n.group({qualityNumber:[""],readTimeout:[""],disconnectionTimeout:[""],bufferSize:[""],saveCover:[""]})}get qualityNumberControl(){return this.settingsForm.get("qualityNumber")}get readTimeoutControl(){return this.settingsForm.get("readTimeout")}get disconnectionTimeoutControl(){return this.settingsForm.get("disconnectionTimeout")}get bufferSizeControl(){return this.settingsForm.get("bufferSize")}get saveCoverControl(){return this.settingsForm.get("saveCover")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("recorder",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-recorder-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:26,vars:15,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","qualityNumber",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","saveCover"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["formControlName","readTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["formControlName","disconnectionTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["formControlName","bufferSize",3,"nzOptions"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u753b\u8d28"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-select",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",5),t.TgZ(7,"nz-form-label",6),t._uU(8,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(9,"nz-form-control",7),t._UZ(10,"nz-switch",8),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",9),t._uU(13,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-select",10),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",11),t._uU(18,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.TgZ(22,"nz-form-label",13),t._uU(23,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(24,"nz-form-control",3),t._UZ(25,"nz-select",14),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.qualityNumber?i.qualityNumberControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.qualityOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveCover?i.saveCoverControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncStatus.readTimeout?"\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01":i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.readTimeout&&i.readTimeoutControl.value<=3?i.readTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.timeoutOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.disconnectionTimeout?i.disconnectionTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.disconnectionTimeoutOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.bufferSize?i.bufferSizeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.bufferOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,H.Vq,a.JJ,a.u,V,w.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),fi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({danmuUname:[""],recordGiftSend:[""],recordFreeGifts:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordFreeGiftsControl(){return this.settingsForm.get("recordFreeGifts")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("danmaku",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-danmaku-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:31,vars:13,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recordGiftSend"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordFreeGifts"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordGuardBuy"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["formControlName","recordSuperChat"],["nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["formControlName","danmuUname"],["nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["formControlName","saveRawDanmaku"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",7),t._uU(13,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",9),t._uU(18,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",10),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",1),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(24,"nz-form-control",3),t._UZ(25,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(26,"nz-form-item",1),t.TgZ(27,"nz-form-label",13),t._uU(28,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(29,"nz-form-control",3),t._UZ(30,"nz-switch",14),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGiftSend?i.recordGiftSendControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordFreeGifts?i.recordFreeGiftsControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGuardBuy?i.recordGuardBuyControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordSuperChat?i.recordSuperChatControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.danmuUname?i.danmuUnameControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveRawDanmaku?i.saveRawDanmakuControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,V,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function _i(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u8f6c\u6362\u6210\u529f\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u4ece\u4e0d: \u8f6c\u6362\u540e\u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t.qZA())}function Ci(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"label",13),t._uU(2),t.qZA(),t.BQk()),2&e){const n=o.$implicit;t.xp6(1),t.Q6J("nzValue",n.value),t.xp6(1),t.Oqu(n.label)}}let zi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.deleteStrategies=h.rc,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({injectExtraMetadata:[""],remuxToMp4:[""],deleteSource:[""]})}get injectExtraMetadataControl(){return this.settingsForm.get("injectExtraMetadata")}get remuxToMp4Control(){return this.settingsForm.get("remuxToMp4")}get deleteSourceControl(){return this.settingsForm.get("deleteSource")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("postprocessing",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-post-processing-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:19,vars:11,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","injectExtraMetadata",3,"nzDisabled"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["formControlName","remuxToMp4"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["deleteSourceTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","deleteSource",3,"nzDisabled"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",5),t._uU(8,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",7),t.TgZ(12,"nz-form-label",8),t._uU(13,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(14,_i,5,0,"ng-template",null,9,t.W1O),t.TgZ(16,"nz-form-control",10),t.TgZ(17,"nz-radio-group",11),t.YNc(18,Ci,3,2,"ng-container",12),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(15);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.injectExtraMetadata?i.injectExtraMetadataControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",i.remuxToMp4Control.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.remuxToMp4?i.remuxToMp4Control:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",r),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.deleteSource?i.deleteSourceControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.remuxToMp4Control.value),t.xp6(1),t.Q6J("ngForOf",i.deleteStrategies)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,V,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u,K.Dg,d.sg,K.Of,K.Bq],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),vi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.intervalOptions=[{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],this.thresholdOptions=[{label:"1 GB",value:1024**3},{label:"3 GB",value:1024**3*3},{label:"5 GB",value:1024**3*5},{label:"10 GB",value:1024**3*10},{label:"20 GB",value:1024**3*20}],this.settingsForm=n.group({recycleRecords:[""],checkInterval:[""],spaceThreshold:[""]})}get recycleRecordsControl(){return this.settingsForm.get("recycleRecords")}get checkIntervalControl(){return this.settingsForm.get("checkInterval")}get spaceThresholdControl(){return this.settingsForm.get("spaceThreshold")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("space",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-disk-space-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:16,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","checkInterval",3,"nzOptions"],["formControlName","spaceThreshold",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recycleRecords"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u95f4\u9694"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-select",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u786c\u76d8\u7a7a\u95f4\u68c0\u6d4b\u9608\u503c"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-select",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",6),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u7a7a\u95f4\u4e0d\u8db3\u5220\u9664\u65e7\u5f55\u64ad\u6587\u4ef6"),t.qZA(),t.TgZ(14,"nz-form-control",7),t._UZ(15,"nz-switch",8),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.checkInterval?i.checkIntervalControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.intervalOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.spaceThreshold?i.spaceThresholdControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.thresholdOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recycleRecords?i.recycleRecordsControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,H.Vq,a.JJ,a.u,V,w.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Oi(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function xi(e,o){1&e&&t.YNc(0,Oi,2,0,"ng-container",6),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Mi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.YNc(5,xi,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",i.warningTip)("nzValidateStatus",i.control.valid&&i.control.value.trim()!==i.value?"warning":i.control)("nzErrorTip",n),t.xp6(1),t.Q6J("rows",3)}}let bi=(()=>{class e{constructor(n,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=n.group({userAgent:["",[a.kI.required]]})}get control(){return this.settingsForm.get("userAgent")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-user-agent-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 User Agent","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["required","","nz-input","","formControlName","userAgent",3,"rows"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Mi,7,5,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Ti(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"textarea",4),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("formGroup",n.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",n.warningTip)("nzValidateStatus",n.control.valid&&n.control.value.trim()!==n.value?"warning":n.control),t.xp6(1),t.Q6J("rows",5)}}let Pi=(()=>{class e{constructor(n,i){this.changeDetector=i,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.warningTip="\u5168\u90e8\u4efb\u52a1\u90fd\u9700\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.settingsForm=n.group({cookie:[""]})}get control(){return this.settingsForm.get("cookie")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-cookie-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539 Cookie","nzOkDanger","","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[3,"nzWarningTip","nzValidateStatus"],["wrap","soft","nz-input","","formControlName","cookie",3,"rows"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Ti,5,4,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Si=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({userAgent:["",[a.kI.required]],cookie:[""]})}get userAgentControl(){return this.settingsForm.get("userAgent")}get cookieControl(){return this.settingsForm.get("cookie")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("header",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-header-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:17,vars:9,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["userAgentEditDialog",""],["cookieEditDialog",""]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"User Agent"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-user-agent-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.userAgentControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"Cookie"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-cookie-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.cookieControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.userAgent?i.userAgentControl:"warning"),t.xp6(2),t.hij("",i.userAgentControl.value," "),t.xp6(1),t.Q6J("value",i.userAgentControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.cookie?i.cookieControl:"warning"),t.xp6(2),t.hij("",i.cookieControl.value," "),t.xp6(1),t.Q6J("value",i.cookieControl.value))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,bi,Pi],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var jt=l(7355);function wi(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function yi(e,o){1&e&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function Fi(e,o){1&e&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function Zi(e,o){1&e&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function Ai(e,o){if(1&e&&(t.YNc(0,wi,2,0,"ng-container",6),t.YNc(1,yi,2,0,"ng-container",6),t.YNc(2,Fi,2,0,"ng-container",6),t.YNc(3,Zi,2,0,"ng-container",6)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",n.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",n.hasError("failedToValidate"))}}function ki(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Ai,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&e){const n=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",n)}}let Ni=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.validationService=r,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.logDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,y.U)(g=>{switch(g.code){case q.ENOTDIR:return{error:!0,notADirectory:!0};case q.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,k.K)(()=>(0,tt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=n.group({logDir:["",[a.kI.required],[this.logDirAsyncValidator]]})}get control(){return this.settingsForm.get("logDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Gt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-logdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u8bc1...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","logDir"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,ki,7,2,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Di=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.logLevelOptions=[{label:"VERBOSE",value:"NOTSET"},{label:"DEBUG",value:"DEBUG"},{label:"INFO",value:"INFO"},{label:"WARNING",value:"WARNING"},{label:"ERROR",value:"ERROR"},{label:"CRITICAL",value:"CRITICAL"}],this.maxBytesOptions=(0,jt.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,jt.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=n.group({logDir:[""],consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get logDirControl(){return this.settingsForm.get("logDir")}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-logging-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:24,vars:14,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["logDirEditDialog",""],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","consoleLogLevel",3,"nzOptions"],[1,"setting-item"],["formControlName","maxBytes",3,"nzOptions"],["formControlName","backupCount",3,"nzOptions"]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-logdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.logDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",7),t.TgZ(10,"nz-form-label",8),t._uU(11,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),t.qZA(),t.TgZ(12,"nz-form-control",9),t._UZ(13,"nz-select",10),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",11),t.TgZ(15,"nz-form-label",8),t._uU(16,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(17,"nz-form-control",9),t._UZ(18,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(19,"nz-form-item",11),t.TgZ(20,"nz-form-label",8),t._uU(21,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(22,"nz-form-control",9),t._UZ(23,"nz-select",13),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.logDir?i.logDirControl:"warning"),t.xp6(2),t.hij("",i.logDirControl.value," "),t.xp6(1),t.Q6J("value",i.logDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.consoleLogLevel?i.consoleLogLevelControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.logLevelOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.maxBytes?i.maxBytesControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.maxBytesOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.backupCount?i.backupCountControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.backupOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,Ni,V,H.Vq,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Ei=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-settings"]],decls:15,vars:0,consts:[["routerLink","email-notification",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"],["routerLink","serverchan-notification",1,"setting-item"],["routerLink","pushplus-notification",1,"setting-item"]],template:function(n,i){1&n&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"\u90ae\u7bb1\u901a\u77e5"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA(),t.TgZ(5,"a",4),t.TgZ(6,"span",1),t._uU(7,"ServerChan \u901a\u77e5"),t.qZA(),t.TgZ(8,"span",2),t._UZ(9,"i",3),t.qZA(),t.qZA(),t.TgZ(10,"a",5),t.TgZ(11,"span",1),t._uU(12,"pushplus \u901a\u77e5"),t.qZA(),t.TgZ(13,"span",2),t._UZ(14,"i",3),t.qZA(),t.qZA())},directives:[_.yS,it.w,Q.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})(),Bi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-settings"]],decls:5,vars:0,consts:[["routerLink","webhooks",1,"setting-item"],[1,"setting-label"],[1,"setting-control"],["nz-icon","","nzType","right"]],template:function(n,i){1&n&&(t.TgZ(0,"a",0),t.TgZ(1,"span",1),t._uU(2,"Webhooks"),t.qZA(),t.TgZ(3,"span",2),t._UZ(4,"i",3),t.qZA(),t.qZA())},directives:[_.yS,it.w,Q.Ls],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();const qi=["innerContent"];let Vi=(()=>{class e{constructor(n,i,r,s){this.changeDetector=n,this.route=i,this.logger=r,this.routerScrollService=s}ngOnInit(){this.route.data.subscribe(n=>{this.settings=n.settings,this.changeDetector.markForCheck()})}ngAfterViewInit(){this.innerContent?this.routerScrollService.setCustomViewportToScroll(this.innerContent.nativeElement):this.logger.error("The content element could not be found!")}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz),t.Y36(E.Kf),t.Y36(ke))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-settings"]],viewQuery:function(n,i){if(1&n&&t.Gf(qi,5),2&n){let r;t.iGM(r=t.CRH())&&(i.innerContent=r.first)}},decls:22,vars:7,consts:[[1,"inner-content"],["innerContent",""],[1,"main-settings","settings-page"],[1,"settings-page-content"],["name","\u6587\u4ef6"],[3,"settings"],["name","\u5f55\u5236"],["name","\u5f39\u5e55"],["name","\u6587\u4ef6\u5904\u7406"],["name","\u786c\u76d8\u7a7a\u95f4"],["name","\u7f51\u7edc\u8bf7\u6c42"],["name","\u65e5\u5fd7"],["name","\u901a\u77e5"],["name","Webhook"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0,1),t.TgZ(2,"div",2),t.TgZ(3,"div",3),t.TgZ(4,"app-page-section",4),t._UZ(5,"app-output-settings",5),t.qZA(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-recorder-settings",5),t.qZA(),t.TgZ(8,"app-page-section",7),t._UZ(9,"app-danmaku-settings",5),t.qZA(),t.TgZ(10,"app-page-section",8),t._UZ(11,"app-post-processing-settings",5),t.qZA(),t.TgZ(12,"app-page-section",9),t._UZ(13,"app-disk-space-settings",5),t.qZA(),t.TgZ(14,"app-page-section",10),t._UZ(15,"app-header-settings",5),t.qZA(),t.TgZ(16,"app-page-section",11),t._UZ(17,"app-logging-settings",5),t.qZA(),t.TgZ(18,"app-page-section",12),t._UZ(19,"app-notification-settings"),t.qZA(),t.TgZ(20,"app-page-section",13),t._UZ(21,"app-webhook-settings"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.xp6(5),t.Q6J("settings",i.settings.output),t.xp6(2),t.Q6J("settings",i.settings.recorder),t.xp6(2),t.Q6J("settings",i.settings.danmaku),t.xp6(2),t.Q6J("settings",i.settings.postprocessing),t.xp6(2),t.Q6J("settings",i.settings.space),t.xp6(2),t.Q6J("settings",i.settings.header),t.xp6(2),t.Q6J("settings",i.settings.logging))},directives:[X.g,di,hi,fi,zi,vi,Si,Di,Ei,Bi],styles:[".inner-content[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.inner-content[_ngcontent-%COMP%]{padding-top:0}"]}),e})();var Ii=l(7298),Li=l(1481),Xt=l(3449),Qi=l(6667),Kt=l(1999),Ji=l(2168);const Yi=function Ui(e,o,n,i){if(!(0,Kt.Z)(e))return e;for(var r=-1,s=(o=(0,Xt.Z)(o,e)).length,g=s-1,u=e;null!=u&&++r0&&n(u)?o>1?en(u,o-1,n,i,r):(0,ji.Z)(r,u):i||(r[r.length]=u)}return r},eo=function no(e){return null!=e&&e.length?to(e,1):[]},oo=function io(e,o,n){switch(n.length){case 0:return e.call(o);case 1:return e.call(o,n[0]);case 2:return e.call(o,n[0],n[1]);case 3:return e.call(o,n[0],n[1],n[2])}return e.apply(o,n)};var on=Math.max;const lo=function so(e){return function(){return e}};var rn=l(2370),co=l(9940),ho=Date.now;const Co=function fo(e){var o=0,n=0;return function(){var i=ho(),r=16-(i-n);if(n=i,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}(rn.Z?function(e,o){return(0,rn.Z)(e,"toString",{configurable:!0,enumerable:!1,value:lo(o),writable:!0})}:co.Z),F=function zo(e){return Co(function ro(e,o,n){return o=on(void 0===o?e.length-1:o,0),function(){for(var i=arguments,r=-1,s=on(i.length-o,0),g=Array(s);++r{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({enabled:[""]})}get enabledControl(){return this.settingsForm.get("enabled")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notifier-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:6,vars:3,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","enabled"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5141\u8bb8\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.enabled?i.enabledControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,V,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var an=l(6422),sn=l(4843),Oo=l(13),xo=l(5778),Mo=l(7079),bo=l(214);function vt(e){return(0,sn.z)((0,et.h)(()=>e.valid),(0,Oo.b)(300),function wo(){return(0,sn.z)((0,y.U)(e=>(0,an.Z)(e,(o,n,i)=>{o[i]=function Po(e){return"string"==typeof e||!(0,Ct.Z)(e)&&(0,bo.Z)(e)&&"[object String]"==(0,Mo.Z)(e)}(n)?n.trim():n},{})))}(),(0,xo.x)(Ht.Z))}function yo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Fo(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Zo(e,o){if(1&e&&(t.YNc(0,yo,2,0,"ng-container",17),t.YNc(1,Fo,2,0,"ng-container",17)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("email"))}}function Ao(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function ko(e,o){1&e&&t.YNc(0,Ao,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function No(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function Do(e,o){1&e&&t.YNc(0,No,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Eo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Bo(e,o){1&e&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function qo(e,o){if(1&e&&(t.YNc(0,Eo,2,0,"ng-container",17),t.YNc(1,Bo,2,0,"ng-container",17)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function Vo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Io(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Lo(e,o){if(1&e&&(t.YNc(0,Vo,2,0,"ng-container",17),t.YNc(1,Io,2,0,"ng-container",17)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("email"))}}let Qo=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({srcAddr:["",[a.kI.required,a.kI.email]],dstAddr:["",[a.kI.required,a.kI.email]],authCode:["",[a.kI.required]],smtpHost:["",[a.kI.required]],smtpPort:["",[a.kI.required,a.kI.pattern(/\d+/)]]})}get srcAddrControl(){return this.settingsForm.get("srcAddr")}get dstAddrControl(){return this.settingsForm.get("dstAddr")}get authCodeControl(){return this.settingsForm.get("authCode")}get smtpHostControl(){return this.settingsForm.get("smtpHost")}get smtpPortControl(){return this.settingsForm.get("smtpPort")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm),(0,y.U)(n=>(0,an.Z)(n,(i,r,s)=>{r="smtpPort"===s?parseInt(r):r,Reflect.set(i,s,r)},{})))).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-email-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:36,vars:16,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","srcAddr","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","srcAddr","type","email","placeholder","\u53d1\u9001\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740","required","","nz-input","","formControlName","srcAddr"],["emailErrorTip",""],["nzFor","authCode","nzNoColon","","nzRequired","",1,"setting-label"],["id","authCode","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u6388\u6743\u7801","required","","nz-input","","formControlName","authCode"],["authCodeErrorTip",""],["nzFor","smtpHost","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpHost","type","text","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\uff0c\u4f8b\u5982\uff1asmtp.163.com \u3002","required","","nz-input","","formControlName","smtpHost"],["smtpHostErrorTip",""],["nzFor","smtpPort","nzNoColon","","nzRequired","",1,"setting-label"],["id","smtpPort","type","text","pattern","\\d+","placeholder","\u53d1\u9001\u90ae\u7bb1\u7684 SMTP \u4e3b\u673a\u7aef\u53e3\uff0c\u901a\u5e38\u4e3a 465 \u3002","required","","nz-input","","formControlName","smtpPort"],["smtpPortErrorTip",""],["nzFor","dstAddr","nzNoColon","","nzRequired","",1,"setting-label"],["id","dstAddr","type","email","placeholder","\u63a5\u6536\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740\uff0c\u53ef\u4ee5\u548c\u53d1\u9001\u90ae\u7bb1\u76f8\u540c\u5b9e\u73b0\u81ea\u53d1\u81ea\u6536\u3002","required","","nz-input","","formControlName","dstAddr"],[4,"ngIf"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u53d1\u9001\u90ae\u7bb1"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Zo,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"\u6388\u6743\u7801"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,ko,1,1,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",1),t.TgZ(16,"nz-form-label",9),t._uU(17,"SMTP \u4e3b\u673a"),t.qZA(),t.TgZ(18,"nz-form-control",3),t._UZ(19,"input",10),t.YNc(20,Do,1,1,"ng-template",null,11,t.W1O),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",1),t.TgZ(23,"nz-form-label",12),t._uU(24,"SMTP \u7aef\u53e3"),t.qZA(),t.TgZ(25,"nz-form-control",3),t._UZ(26,"input",13),t.YNc(27,qo,2,2,"ng-template",null,14,t.W1O),t.qZA(),t.qZA(),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",15),t._uU(31,"\u63a5\u6536\u90ae\u7bb1"),t.qZA(),t.TgZ(32,"nz-form-control",3),t._UZ(33,"input",16),t.YNc(34,Lo,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7),s=t.MAs(14),g=t.MAs(21),u=t.MAs(28);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.srcAddrControl.valid&&!i.syncStatus.srcAddr?"warning":i.srcAddrControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.authCodeControl.valid&&!i.syncStatus.authCode?"warning":i.authCodeControl),t.xp6(7),t.Q6J("nzErrorTip",g)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpHostControl.valid&&!i.syncStatus.smtpHost?"warning":i.smtpHostControl),t.xp6(7),t.Q6J("nzErrorTip",u)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.smtpPortControl.valid&&!i.syncStatus.smtpPort?"warning":i.smtpPortControl),t.xp6(7),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.dstAddrControl.valid&&!i.syncStatus.dstAddr?"warning":i.dstAddrControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5,a.c5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:6em!important;width:6em!important}"],changeDetection:0}),e})(),Ot=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({notifyBegan:[""],notifyEnded:[""],notifyError:[""],notifySpace:[""]})}get notifyBeganControl(){return this.settingsForm.get("notifyBegan")}get notifyEndedControl(){return this.settingsForm.get("notifyEnded")}get notifyErrorControl(){return this.settingsForm.get("notifyError")}get notifySpaceControl(){return this.settingsForm.get("notifySpace")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settingsForm.value,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-event-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:21,vars:9,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","notifyBegan"],["formControlName","notifyEnded"],["formControlName","notifyError"],["formControlName","notifySpace"]],template:function(n,i){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5f00\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"nz-switch",4),t.qZA(),t.qZA(),t.TgZ(6,"nz-form-item",1),t.TgZ(7,"nz-form-label",2),t._uU(8,"\u4e0b\u64ad\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-switch",5),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",1),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u51fa\u9519\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-switch",6),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",1),t.TgZ(17,"nz-form-label",2),t._uU(18,"\u7a7a\u95f4\u4e0d\u8db3\u53d1\u9001\u901a\u77e5"),t.qZA(),t.TgZ(19,"nz-form-control",3),t._UZ(20,"nz-switch",7),t.qZA(),t.qZA(),t.qZA()),2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyBegan?i.notifyBeganControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyEnded?i.notifyEndedControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyError?i.notifyErrorControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifySpace?i.notifySpaceControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,V,m.t3,c.iK,c.Fd,w.i,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Jo(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-email-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("settings",n.notifierSettings),t.xp6(2),t.Q6J("settings",n.emailSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let Uo=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.emailSettings=F(i,Z.gP),this.notifierSettings=F(i,Z._1),this.notificationSettings=F(i,Z.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-email-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","\u90ae\u4ef6\u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","emailNotification",3,"settings"],["name","\u90ae\u7bb1"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Jo,6,3,"ng-template",1),t.qZA())},directives:[ot.q,rt.Y,X.g,zt,Qo,Ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function Yo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function Wo(e,o){1&e&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function Ro(e,o){if(1&e&&(t.YNc(0,Yo,2,0,"ng-container",6),t.YNc(1,Wo,2,0,"ng-container",6)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}let Ho=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({sendkey:["",[a.kI.required,a.kI.pattern(/^[a-zA-Z\d]+$/)]]})}get sendkeyControl(){return this.settingsForm.get("sendkey")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm))).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-serverchan-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:8,vars:4,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","sendkey","nzNoColon","","nzRequired","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","sendkey","type","text","required","","nz-input","","formControlName","sendkey"],["sendkeyErrorTip",""],[4,"ngIf"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"sendkey"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Ro,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.sendkeyControl.valid&&!i.syncStatus.sendkey?"warning":i.sendkeyControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:5em!important;width:5em!important}"],changeDetection:0}),e})();function $o(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-serverchan-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("settings",n.notifierSettings),t.xp6(2),t.Q6J("settings",n.serverchanSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let Go=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.serverchanSettings=F(i,Z.gq),this.notifierSettings=F(i,Z._1),this.notificationSettings=F(i,Z.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-serverchan-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","ServerChan \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","serverchanNotification",3,"settings"],["name","ServerChan"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,$o,6,3,"ng-template",1),t.qZA())},directives:[ot.q,rt.Y,X.g,zt,Ho,Ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function jo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Xo(e,o){1&e&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function Ko(e,o){if(1&e&&(t.YNc(0,jo,2,0,"ng-container",9),t.YNc(1,Xo,2,0,"ng-container",9)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}let tr=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({token:["",[a.kI.required,a.kI.pattern(/^[a-z\d]{32}$/)]],topic:[""]})}get tokenControl(){return this.settingsForm.get("token")}get topicControl(){return this.settingsForm.get("topic")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm))).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-pushplus-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:13,vars:6,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","token","nzNoColon","","nzRequired","",1,"setting-label","required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","token","type","text","required","","nz-input","","formControlName","token"],["tokenErrorTip",""],["nzFor","topic","nzNoColon","",1,"setting-label","align-required"],[1,"setting-control","input",3,"nzWarningTip","nzValidateStatus"],["id","topic","type","text","nz-input","","formControlName","topic"],[4,"ngIf"]],template:function(n,i){if(1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"token"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,Ko,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",6),t._uU(10,"topic"),t.qZA(),t.TgZ(11,"nz-form-control",7),t._UZ(12,"input",8),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.tokenControl.valid&&!i.syncStatus.token?"warning":i.tokenControl),t.xp6(7),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.topicControl.valid&&!i.syncStatus.topic?"warning":i.topicControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-label[_ngcontent-%COMP%]{max-width:4em!important;width:4em!important}"],changeDetection:0}),e})();function nr(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-pushplus-settings",4),t.qZA(),t.TgZ(4,"app-page-section",5),t._UZ(5,"app-event-settings",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("settings",n.notifierSettings),t.xp6(2),t.Q6J("settings",n.pushplusSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let er=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.changeDetector.markForCheck(),this.pushplusSettings=F(i,Z.q1),this.notifierSettings=F(i,Z._1),this.notificationSettings=F(i,Z.X)})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-pushplus-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","pushplus \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushplusNotification",3,"settings"],["name","pushplus"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,nr,6,3,"ng-template",1),t.qZA())},directives:[ot.q,rt.Y,X.g,zt,tr,Ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();var ln=l(4219);function ir(e,o){1&e&&t._UZ(0,"nz-list-empty")}function or(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"nz-list-item",9),t.TgZ(1,"span",10),t._uU(2),t.qZA(),t.TgZ(3,"button",11),t._UZ(4,"i",12),t.qZA(),t.TgZ(5,"nz-dropdown-menu",null,13),t.TgZ(7,"ul",14),t.TgZ(8,"li",15),t.NdJ("click",function(){const s=t.CHM(n).index;return t.oxw().edit.emit(s)}),t._uU(9,"\u4fee\u6539"),t.qZA(),t.TgZ(10,"li",15),t.NdJ("click",function(){const s=t.CHM(n).index;return t.oxw().remove.emit(s)}),t._uU(11,"\u5220\u9664"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const n=o.$implicit,i=t.MAs(6);t.xp6(2),t.Oqu(n.url),t.xp6(1),t.Q6J("nzDropdownMenu",i)}}let rr=(()=>{class e{constructor(){this.header="",this.addable=!0,this.clearable=!0,this.add=new t.vpe,this.edit=new t.vpe,this.remove=new t.vpe,this.clear=new t.vpe}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-list"]],inputs:{data:"data",header:"header",addable:"addable",clearable:"clearable"},outputs:{add:"add",edit:"edit",remove:"remove",clear:"clear"},decls:11,vars:5,consts:[["nzBordered","",1,"list"],[1,"list-header"],[1,"list-actions"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6e05\u7a7a",1,"clear-button",3,"disabled","click"],["nz-icon","","nzType","clear"],["nz-button","","nzType","text","nzSize","large","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0",1,"add-button",3,"disabled","click"],["nz-icon","","nzType","plus"],[4,"ngIf"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"item-content"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-action-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item","",3,"click"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-list",0),t.TgZ(1,"nz-list-header",1),t.TgZ(2,"h3"),t._uU(3),t.qZA(),t.TgZ(4,"div",2),t.TgZ(5,"button",3),t.NdJ("click",function(){return i.clear.emit()}),t._UZ(6,"i",4),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.add.emit()}),t._UZ(8,"i",6),t.qZA(),t.qZA(),t.qZA(),t.YNc(9,ir,1,0,"nz-list-empty",7),t.YNc(10,or,12,2,"nz-list-item",8),t.qZA()),2&n&&(t.xp6(3),t.Oqu(i.header),t.xp6(2),t.Q6J("disabled",i.data.length<=0||!i.clearable),t.xp6(2),t.Q6J("disabled",!i.addable),t.xp6(2),t.Q6J("ngIf",i.data.length<=0),t.xp6(1),t.Q6J("ngForOf",i.data))},directives:[ft,pt,lt.ix,it.w,st.SY,Q.Ls,d.O5,mt,d.sg,At,nt.wA,nt.cm,nt.RR,ln.wO,ln.r9],styles:[".list[_ngcontent-%COMP%]{background-color:#fff}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.list[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .list-actions[_ngcontent-%COMP%]{margin-left:auto;position:relative;left:1em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;padding:.5em 1.5em}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .more-action-button[_ngcontent-%COMP%]{margin-left:auto;flex:0 0 auto;position:relative;left:1em}"],changeDetection:0}),e})();function ar(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function sr(e,o){1&e&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function lr(e,o){if(1&e&&(t.YNc(0,ar,2,0,"ng-container",27),t.YNc(1,sr,2,0,"ng-container",27)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function cr(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item",3),t.TgZ(3,"nz-form-label",4),t._uU(4,"URL"),t.qZA(),t.TgZ(5,"nz-form-control",5),t._UZ(6,"input",6),t.YNc(7,lr,2,2,"ng-template",null,7,t.W1O),t.qZA(),t.qZA(),t.TgZ(9,"div",8),t.TgZ(10,"h2"),t._uU(11,"\u4e8b\u4ef6"),t.qZA(),t.TgZ(12,"nz-form-item",3),t.TgZ(13,"nz-form-control",9),t.TgZ(14,"label",10),t.NdJ("nzCheckedChange",function(r){return t.CHM(n),t.oxw().setAllChecked(r)}),t._uU(15,"\u5168\u9009"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"nz-form-item",3),t.TgZ(17,"nz-form-control",11),t.TgZ(18,"label",12),t._uU(19,"\u5f00\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",3),t.TgZ(21,"nz-form-control",11),t.TgZ(22,"label",13),t._uU(23,"\u4e0b\u64ad"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"nz-form-item",3),t.TgZ(25,"nz-form-control",11),t.TgZ(26,"label",14),t._uU(27,"\u76f4\u64ad\u95f4\u4fe1\u606f\u6539\u53d8"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"nz-form-item",3),t.TgZ(29,"nz-form-control",11),t.TgZ(30,"label",15),t._uU(31,"\u5f55\u5236\u5f00\u59cb"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"nz-form-item",3),t.TgZ(33,"nz-form-control",11),t.TgZ(34,"label",16),t._uU(35,"\u5f55\u5236\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(36,"nz-form-item",3),t.TgZ(37,"nz-form-control",11),t.TgZ(38,"label",17),t._uU(39,"\u5f55\u5236\u53d6\u6d88"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",3),t.TgZ(41,"nz-form-control",11),t.TgZ(42,"label",18),t._uU(43,"\u89c6\u9891\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",3),t.TgZ(45,"nz-form-control",11),t.TgZ(46,"label",19),t._uU(47,"\u89c6\u9891\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(48,"nz-form-item",3),t.TgZ(49,"nz-form-control",11),t.TgZ(50,"label",20),t._uU(51,"\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"nz-form-item",3),t.TgZ(53,"nz-form-control",11),t.TgZ(54,"label",21),t._uU(55,"\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(56,"nz-form-item",3),t.TgZ(57,"nz-form-control",11),t.TgZ(58,"label",22),t._uU(59,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u521b\u5efa"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(60,"nz-form-item",3),t.TgZ(61,"nz-form-control",11),t.TgZ(62,"label",23),t._uU(63,"\u539f\u59cb\u5f39\u5e55\u6587\u4ef6\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",3),t.TgZ(65,"nz-form-control",11),t.TgZ(66,"label",24),t._uU(67,"\u89c6\u9891\u540e\u5904\u7406\u5b8c\u6210"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(68,"nz-form-item",3),t.TgZ(69,"nz-form-control",11),t.TgZ(70,"label",25),t._uU(71,"\u786c\u76d8\u7a7a\u95f4\u4e0d\u8db3"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",3),t.TgZ(73,"nz-form-control",11),t.TgZ(74,"label",26),t._uU(75,"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&e){const n=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",n),t.xp6(9),t.Q6J("nzChecked",i.allChecked)("nzIndeterminate",i.indeterminate)}}const gr={url:"",liveBegan:!0,liveEnded:!0,roomChange:!0,recordingStarted:!0,recordingFinished:!0,recordingCancelled:!0,videoFileCreated:!0,videoFileCompleted:!0,danmakuFileCreated:!0,danmakuFileCompleted:!0,rawDanmakuFileCreated:!0,rawDanmakuFileCompleted:!0,videoPostprocessingCompleted:!0,spaceNoEnough:!0,errorOccurred:!0};let ur=(()=>{class e{constructor(n,i){this.changeDetector=i,this.title="\u6807\u9898",this.okButtonText="\u786e\u5b9a",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.allChecked=!1,this.indeterminate=!0,this.settingsForm=n.group({url:["",[a.kI.required,a.kI.pattern(/^https?:\/\/.*$/)]],liveBegan:[""],liveEnded:[""],roomChange:[""],recordingStarted:[""],recordingFinished:[""],recordingCancelled:[""],videoFileCreated:[""],videoFileCompleted:[""],danmakuFileCreated:[""],danmakuFileCompleted:[""],rawDanmakuFileCreated:[""],rawDanmakuFileCompleted:[""],videoPostprocessingCompleted:[""],spaceNoEnough:[""],errorOccurred:[""]}),this.checkboxControls=Object.entries(this.settingsForm.controls).filter(([r])=>"url"!==r).map(([,r])=>r),this.checkboxControls.forEach(r=>r.valueChanges.subscribe(()=>this.updateAllChecked()))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.settingsForm.reset(),this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){void 0===this.settings&&(this.settings=Object.assign({},gr)),this.settingsForm.setValue(this.settings),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}setAllChecked(n){this.indeterminate=!1,this.allChecked=n,this.checkboxControls.forEach(i=>i.setValue(n))}updateAllChecked(){const n=this.checkboxControls.map(i=>i.value);this.allChecked=n.every(i=>i),this.indeterminate=!this.allChecked&&n.some(i=>i)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-edit-dialog"]],inputs:{settings:"settings",title:"title",okButtonText:"okButtonText",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:4,consts:[["nzCentered","",3,"nzTitle","nzOkText","nzVisible","nzOkDisabled","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","url","nzNoColon","",1,"setting-label"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip"],["id","url","type","url","required","","nz-input","","formControlName","url"],["urlErrorTip",""],[1,"form-group"],[1,"setting-control","checkbox","check-all"],["nz-checkbox","",3,"nzChecked","nzIndeterminate","nzCheckedChange"],[1,"setting-control","checkbox"],["nz-checkbox","","formControlName","liveBegan"],["nz-checkbox","","formControlName","liveEnded"],["nz-checkbox","","formControlName","roomChange"],["nz-checkbox","","formControlName","recordingStarted"],["nz-checkbox","","formControlName","recordingFinished"],["nz-checkbox","","formControlName","recordingCancelled"],["nz-checkbox","","formControlName","videoFileCreated"],["nz-checkbox","","formControlName","videoFileCompleted"],["nz-checkbox","","formControlName","danmakuFileCreated"],["nz-checkbox","","formControlName","danmakuFileCompleted"],["nz-checkbox","","formControlName","rawDanmakuFileCreated"],["nz-checkbox","","formControlName","rawDanmakuFileCompleted"],["nz-checkbox","","formControlName","videoPostprocessingCompleted"],["nz-checkbox","","formControlName","spaceNoEnough"],["nz-checkbox","","formControlName","errorOccurred"],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,cr,76,4,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzTitle",i.title)("nzOkText",i.okButtonText)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[z.du,z.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,T.Zp,a.Fj,a.Q7,a.JJ,a.u,d.O5,Mt.Ie],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}.setting-item[_ngcontent-%COMP%]{padding:1em 0;border:none}.setting-item[_ngcontent-%COMP%]:first-child{padding-top:0}.setting-item[_ngcontent-%COMP%]:first-child .setting-control[_ngcontent-%COMP%]{flex:1 1 auto;max-width:100%!important}.setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%] .check-all[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.06)}"],changeDetection:0}),e})();function mr(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"app-page-section"),t.TgZ(1,"app-webhook-list",3),t.NdJ("add",function(){return t.CHM(n),t.oxw().addWebhook()})("edit",function(r){return t.CHM(n),t.oxw().editWebhook(r)})("remove",function(r){return t.CHM(n),t.oxw().removeWebhook(r)})("clear",function(){return t.CHM(n),t.oxw().clearWebhook()}),t.qZA(),t.qZA()}if(2&e){const n=t.oxw();t.xp6(1),t.Q6J("data",n.webhooks)("addable",n.canAdd)}}const pr=[{path:"email-notification",component:Uo,resolve:{settings:Vt}},{path:"serverchan-notification",component:Go,resolve:{settings:It}},{path:"pushplus-notification",component:er,resolve:{settings:Lt}},{path:"webhooks",component:(()=>{class e{constructor(n,i,r,s,g){this.changeDetector=n,this.route=i,this.message=r,this.modal=s,this.settingService=g,this.dialogTitle="",this.dialogOkButtonText="",this.dialogVisible=!1,this.editingIndex=-1}get canAdd(){return this.webhooks.length{this.webhooks=n.settings,this.changeDetector.markForCheck()})}addWebhook(){this.editingIndex=-1,this.editingSettings=void 0,this.dialogTitle="\u6dfb\u52a0 webhook",this.dialogOkButtonText="\u6dfb\u52a0",this.dialogVisible=!0}removeWebhook(n){const i=this.webhooks.filter((r,s)=>s!==n);this.changeSettings(i).subscribe(()=>this.reset())}editWebhook(n){this.editingIndex=n,this.editingSettings=Object.assign({},this.webhooks[n]),this.dialogTitle="\u4fee\u6539 webhook",this.dialogOkButtonText="\u4fdd\u5b58",this.dialogVisible=!0}clearWebhook(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u6e05\u7a7a Webhook \uff1f",nzOnOk:()=>new Promise((n,i)=>{this.changeSettings([]).subscribe(n,i)})})}onDialogCanceled(){this.reset()}onDialogConfirmed(n){let i;-1===this.editingIndex?i=[...this.webhooks,n]:(i=[...this.webhooks],i[this.editingIndex]=n),this.changeSettings(i).subscribe(()=>this.reset())}reset(){this.editingIndex=-1,delete this.editingSettings}changeSettings(n){return this.settingService.changeSettings({webhooks:n}).pipe((0,D.X)(3,300),(0,_t.b)(i=>{this.webhooks=i.webhooks,this.changeDetector.markForCheck()},i=>{this.message.error(`Webhook \u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}}return e.MAX_WEBHOOKS=50,e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(_.gz),t.Y36($t.dD),t.Y36(z.Sf),t.Y36(B.R))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-webhook-manager"]],decls:3,vars:4,consts:[["pageTitle","Webhooks"],["appSubPageContent",""],[3,"title","okButtonText","settings","visible","visibleChange","cancel","confirm"],["header","Webhook \u5217\u8868",3,"data","addable","add","edit","remove","clear"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,mr,2,2,"ng-template",1),t.qZA(),t.TgZ(2,"app-webhook-edit-dialog",2),t.NdJ("visibleChange",function(s){return i.dialogVisible=s})("cancel",function(){return i.onDialogCanceled()})("confirm",function(s){return i.onDialogConfirmed(s)}),t.qZA()),2&n&&(t.xp6(2),t.Q6J("title",i.dialogTitle)("okButtonText",i.dialogOkButtonText)("settings",i.editingSettings)("visible",i.dialogVisible))},directives:[ot.q,rt.Y,X.g,rr,ur],styles:[""],changeDetection:0}),e})(),resolve:{settings:Qt}},{path:"",component:Vi,resolve:{settings:qt}}];let dr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[_.Bz.forChild(pr)],_.Bz]}),e})(),hr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[qt,Vt,It,Lt,Qt],imports:[[d.ez,dr,a.u5,a.UX,at.j,gn.KJ,un.vh,c.U5,T.o7,w.m,Mt.Wr,K.aF,hn,H.LV,z.Qp,lt.sL,Q.PV,ve,nt.b1,st.cg,Oe.S,N.HQ,ye,Fe.m]]}),e})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/853.84ee7e1d7cff8913.js b/src/blrec/data/webapp/853.84ee7e1d7cff8913.js deleted file mode 100644 index df432bd..0000000 --- a/src/blrec/data/webapp/853.84ee7e1d7cff8913.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[853],{1853:(Bt,et,l)=>{"use strict";l.r(et),l.d(et,{TasksModule:()=>Os});var u=l(9808),d=l(4182),q=l(5113),t=l(5e3);class m{constructor(i,e){this._document=e;const o=this._textarea=this._document.createElement("textarea"),s=o.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",o.setAttribute("aria-hidden","true"),o.value=i,this._document.body.appendChild(o)}copy(){const i=this._textarea;let e=!1;try{if(i){const o=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),o&&o.focus()}}catch(o){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let U=(()=>{class n{constructor(e){this._document=e}copy(e){const o=this.beginCopy(e),s=o.copy();return o.destroy(),s}beginCopy(e){return new m(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(u.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var w=l(1894),D=l(7484),S=l(647),_=l(655),k=l(8929),v=l(7625),Y=l(8693),C=l(1721),b=l(226);function L(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(s){return t.CHM(e),t.oxw().closeTag(s)}),t.qZA()}}const W=["*"];let nt=(()=>{class n{constructor(e,o,s,a){this.cdr=e,this.renderer=o,this.elementRef=s,this.directionality=a,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new k.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,o=new RegExp(`(ant-tag-(?:${[...Y.uf,...Y.Bh].join("|")}))`,"g"),s=e.classList.toString(),a=[];let c=o.exec(s);for(;null!==c;)a.push(c[1]),c=o.exec(s);e.classList.remove(...a)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,Y.o2)(this.nzColor)||(0,Y.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:o}=e;o&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o.updateCheckedStatus()}),2&e&&(t.Udp("background-color",o.isPresetColor?"":o.nzColor),t.ekj("ant-tag-has-color",o.nzColor&&!o.isPresetColor)("ant-tag-checkable","checkable"===o.nzMode)("ant-tag-checkable-checked",o.nzChecked)("ant-tag-rtl","rtl"===o.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:W,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,o){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,L,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===o.nzMode))},directives:[u.O5,S.Ls],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,C.yF)()],n.prototype,"nzChecked",void 0),n})(),G=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,d.u5,S.PV]]}),n})();var ot=l(6699);const $=["nzType","avatar"];function X(n,i){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function gt(n,i){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function dt(n,i){if(1&n&&t._UZ(0,"li"),2&n){const e=i.index,o=t.oxw(3);t.Udp("width",o.toCSSUnit(o.widthList[e]))}}function mt(n,i){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,dt,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function _t(n,i){if(1&n&&(t.ynx(0),t.YNc(1,X,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,gt,1,2,"h3",3),t.YNc(4,mt,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function ft(n,i){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const kt=["*"];let ue=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-active",o.nzActive)("ant-skeleton-block",o.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,_.gn)([(0,C.yF)()],n.prototype,"nzBlock",void 0),n})(),pe=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const o=`${this.nzSize}px`;this.styleMap={width:o,height:o,"line-height":o}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:$,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,o){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===o.nzShape)("ant-skeleton-avatar-circle","circle"===o.nzShape)("ant-skeleton-avatar-lg","large"===o.nzSize)("ant-skeleton-avatar-sm","small"===o.nzSize),t.Q6J("ngStyle",o.styleMap))},directives:[u.PC],encapsulation:2,changeDetection:0}),n})(),ge=(()=>{class n{constructor(e,o,s){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],o.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,C.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,o=!!this.nzParagraph;let s="";return!e&&o?s="38%":e&&o&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,o=!!this.nzTitle,s={};return(!e||!o)&&(s.width="61%"),s.rows=!e&&o?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:o}=this.paragraph;let s=[];return e&&Array.isArray(e)?s=e:e&&!Array.isArray(e)&&(s=[],s[o-1]=e),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-with-avatar",!!o.nzAvatar)("ant-skeleton-active",o.nzActive)("ant-skeleton-round",!!o.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:kt,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,_t,5,3,"ng-container",0),t.YNc(1,ft,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",o.nzLoading),t.xp6(1),t.Q6J("ngIf",!o.nzLoading))},directives:[pe,u.O5,ue,u.sg],encapsulation:2,changeDetection:0}),n})(),Jt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez]]}),n})();var it=l(404),vt=l(6462),K=l(3677),ht=l(6042),V=l(7957),E=l(4546),tt=l(1047),Qt=l(6114),de=l(4832),me=l(2845),_e=l(6950),fe=l(5664),F=l(969),he=l(4170);let ye=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,ht.sL,me.U8,he.YI,S.PV,F.T,_e.e4,de.g,it.cg,fe.rt]]}),n})();var zt=l(3868),qt=l(5737),Ut=l(685),Rt=l(7525),Se=l(8076),y=l(9439);function Me(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Ae(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function De(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Ae,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function Ze(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Oe(n,i){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,Ze,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function we(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,De,2,1,"span",7),t.YNc(2,Oe,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Fe(n,i){1&n&&t._UZ(0,"i",15)}function Ne(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Pe(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ne,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ie(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Fe,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Pe,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),o=t.oxw(2);t.xp6(3),t.Q6J("ngIf",o.nzCloseText)("ngIfElse",e)}}function Ee(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,Me,2,2,"ng-container",2),t.YNc(2,we,3,2,"div",3),t.YNc(3,Ie,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let Be=(()=>{class n{constructor(e,o,s){this.nzConfigService=e,this.cdr=o,this.directionality=s,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new k.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:o,nzDescription:s,nzType:a,nzBanner:c}=e;if(o&&(this.isShowIconSet=!0),a)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}s&&(this.iconTheme=this.nzDescription?"outline":"fill"),c&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.jY),t.Y36(t.sBO),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,o){1&e&&t.YNc(0,Ee,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[u.O5,S.Ls,F.f],encapsulation:2,data:{animation:[Se.Rq]},changeDetection:0}),(0,_.gn)([(0,y.oS)(),(0,C.yF)()],n.prototype,"nzCloseable",void 0),(0,_.gn)([(0,y.oS)(),(0,C.yF)()],n.prototype,"nzShowIcon",void 0),(0,_.gn)([(0,C.yF)()],n.prototype,"nzBanner",void 0),(0,_.gn)([(0,C.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),Je=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,S.PV,F.T]]}),n})();var st=l(4147),bt=l(5197);function Qe(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function qe(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.hij(" ",e(o.nzPercent)," ")}}const Ue=function(n){return{$implicit:n}};function Re(n,i){if(1&n&&t.YNc(0,qe,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,Ue,e.nzPercent))}}function Ye(n,i){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Qe,2,1,"ng-container",6),t.YNc(2,Re,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===o.status||"success"===o.status)&&!o.nzFormat)("ngIfElse",e)}}function Le(n,i){if(1&n&&t.YNc(0,Ye,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function Ge(n,i){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function $e(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,Ge,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function Ve(n,i){}function je(n,i){if(1&n&&(t.ynx(0),t.YNc(1,$e,4,11,"div",11),t.YNc(2,Ve,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function He(n,i){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",i.$implicit)}function We(n,i){}function Xe(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,He,1,1,"div",19),t.YNc(2,We,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Ke(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,je,3,2,"ng-container",2),t.YNc(2,Xe,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function tn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=i.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function en(n,i){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,tn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function nn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",o.pathString)("stroke-linecap",o.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",o.nzPercent?o.strokeWidth:0)}}function on(n,i){1&n&&t.O4$()}function sn(n,i){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,en,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,nn,1,5,"path",23),t.qZA(),t.YNc(5,on,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}const Lt=n=>{let i=[];return Object.keys(n).forEach(e=>{const o=n[e],s=function an(n){return+n.replace("%","")}(e);isNaN(s)||i.push({key:s,value:o})}),i=i.sort((e,o)=>e.key-o.key),i};let cn=0;const Gt="progress",un=new Map([["success","check"],["exception","close"]]),pn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),gn=n=>`${n}%`;let $t=(()=>{class n{constructor(e,o,s){this.cdr=e,this.nzConfigService=o,this.directionality=s,this._nzModuleName=Gt,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=cn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=a=>`${a}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new k.xQ}get formatter(){return this.nzFormat||gn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:o,nzGapPosition:s,nzStrokeLinecap:a,nzStrokeColor:c,nzGapDegree:r,nzType:g,nzStatus:z,nzPercent:A,nzSuccessPercent:O,nzStrokeWidth:I}=e;z&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(A||O)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,C.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(z||A||O||c)&&this.updateIcon(),c&&this.setStrokeColor(),(s||a||r||g||A||c||c)&&this.getCirclePaths(),(A||o||I)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(Gt).pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=un.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),o="small"===this.nzSize?2:14,s=[];for(let a=0;a{const Q=2===e.length&&0===I;return{stroke:this.isGradient&&!Q?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Q?pn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(O||0)/100*(a-c)}px ${a}px`,strokeDashoffset:`-${c/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,o=this.isGradient=!!e&&"string"!=typeof e;o&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:i="#1890ff",to:e="#1890ff",direction:o="to right"}=n,s=(0,_._T)(n,["from","to","direction"]);return 0!==Object.keys(s).length?`linear-gradient(${o}, ${Lt(s).map(({key:c,value:r})=>`${r} ${c}%`).join(", ")})`:`linear-gradient(${o}, ${i}, ${e})`})(e):o&&this.isCircleStyle?this.circleGradient=(n=>Lt(this.nzStrokeColor).map(({key:i,value:e})=>({offset:`${i}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.jY),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,o){1&e&&(t.YNc(0,Le,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,Ke,3,2,"div",2),t.YNc(4,sn,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===o.nzType)("ant-progress-small","small"===o.nzSize)("ant-progress-show-info",o.nzShowInfo)("ant-progress-circle",o.isCircleStyle)("ant-progress-steps",o.isSteps)("ant-progress-rtl","rtl"===o.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+o.status),t.xp6(1),t.Q6J("ngIf","line"===o.nzType),t.xp6(1),t.Q6J("ngIf",o.isCircleStyle))},directives:[u.O5,S.Ls,F.f,u.mk,u.tP,u.sg,u.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,y.oS)()],n.prototype,"nzShowInfo",void 0),(0,_.gn)([(0,y.oS)()],n.prototype,"nzStrokeColor",void 0),(0,_.gn)([(0,y.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,C.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,_.gn)([(0,C.Rn)()],n.prototype,"nzPercent",void 0),(0,_.gn)([(0,y.oS)(),(0,C.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,_.gn)([(0,y.oS)(),(0,C.Rn)()],n.prototype,"nzGapDegree",void 0),(0,_.gn)([(0,y.oS)()],n.prototype,"nzGapPosition",void 0),(0,_.gn)([(0,y.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,_.gn)([(0,C.Rn)()],n.prototype,"nzSteps",void 0),n})(),dn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,S.PV,F.T]]}),n})();var B=l(592),Vt=l(925);let mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez]]}),n})();const _n=function(n){return{$implicit:n}};function fn(n,i){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,_n,e.nzValue))}}function hn(n,i){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function zn(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function Cn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,hn,2,1,"span",4),t.YNc(2,zn,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function Tn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function xn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function kn(n,i){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,xn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function vn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function bn(n,i){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,vn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let yn=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,u.dv)(this.locale_id,u.wE.Decimal),o=String(this.nzValue),[s,a]=o.split(e);this.displayInt=s,this.displayDecimal=a?`${e}${a}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,fn,1,4,"ng-container",1),t.YNc(2,Cn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!o.nzValueTemplate))},directives:[u.O5,u.tP],encapsulation:2,changeDetection:0}),n})(),Sn=(()=>{class n{constructor(e,o){this.cdr=e,this.directionality=o,this.nzValueStyle={},this.dir="ltr",this.destroy$=new k.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Tn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,kn,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,bn,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===o.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",o.nzTitle),t.xp6(1),t.Q6J("ngStyle",o.nzValueStyle),t.xp6(1),t.Q6J("ngIf",o.nzPrefix),t.xp6(1),t.Q6J("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",o.nzSuffix))},directives:[yn,F.f,u.PC,u.O5],encapsulation:2,changeDetection:0}),n})(),Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,Vt.ud,F.T,mn]]}),n})();var jt=l(6787),An=l(1059),Ct=l(7545),Dn=l(7138),x=l(2994),Zn=l(6947),yt=l(4090);function On(n,i){1&n&&t.Hsn(0)}const wn=["*"];function Fn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function Nn(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Fn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Pn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function In(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Pn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function En(n,i){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,Nn,2,1,"div",4),t.YNc(2,In,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function Bn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Jn(n,i){}function Qn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Bn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Jn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function qn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Un(n,i){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,qn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Rn(n,i){}function Yn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Un,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,Rn,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function Ln(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Qn,7,5,"ng-container",2),t.YNc(2,Yn,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function Gn(n,i){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,Ln,3,2,"ng-container",11),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function $n(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Gn,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function Vn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function jn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Vn,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Hn(n,i){}function Wn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function Xn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,jn,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,Wn,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function Kn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Xn,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function to(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function eo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,to,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function no(n,i){}function oo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,no,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function io(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,eo,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,oo,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function so(n,i){if(1&n&&(t.ynx(0),t.YNc(1,io,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function ao(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Kn,2,1,"ng-container",2),t.YNc(2,so,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let St=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new k.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,7),2&e){let s;t.iGM(s=t.CRH())&&(o.content=s.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:wn,decls:1,vars:0,template:function(e,o){1&e&&(t.F$t(),t.YNc(0,On,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,_.gn)([(0,C.Rn)()],n.prototype,"nzSpan",void 0),n})();const lo={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Ht=(()=>{class n{constructor(e,o,s,a){this.nzConfigService=e,this.cdr=o,this.breakpointService=s,this.directionality=a,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=lo,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=yt.G_.md,this.destroy$=new k.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(o=>{this.dir=o})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,An.O)(this.items),(0,v.R)(this.destroy$));(0,jt.T)(e,e.pipe((0,Ct.w)(()=>(0,jt.T)(...this.items.map(o=>o.inputChange$)).pipe((0,Dn.e)(16)))),this.breakpointService.subscribe(yt.WV).pipe((0,x.b)(o=>this.breakpoint=o))).pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],o=0;const s=this.realColumn=this.getColumn(),a=this.items.toArray(),c=a.length,r=[],g=()=>{r.push(e),e=[],o=0};for(let z=0;z=s?(o>s&&(0,Zn.ZK)(`"nzColumn" is ${s} but we have row length ${o}`),e.push({title:O,content:I,span:s-(o-Q)}),g()):z===c-1?(e.push({title:O,content:I,span:s-(o-Q)}),g()):e.push({title:O,content:I,span:Q})}this.itemMatrix=r}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.jY),t.Y36(t.sBO),t.Y36(yt.r3),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,o,s){if(1&e&&t.Suo(s,St,4),2&e){let a;t.iGM(a=t.CRH())&&(o.items=a)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,o){2&e&&t.ekj("ant-descriptions-bordered",o.nzBordered)("ant-descriptions-middle","middle"===o.nzSize)("ant-descriptions-small","small"===o.nzSize)("ant-descriptions-rtl","rtl"===o.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,o){1&e&&(t.YNc(0,En,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,$n,2,1,"ng-container",2),t.YNc(5,ao,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",o.nzTitle||o.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===o.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===o.nzLayout))},directives:[u.O5,F.f,u.sg,u.tP],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,C.yF)(),(0,y.oS)()],n.prototype,"nzBordered",void 0),(0,_.gn)([(0,y.oS)()],n.prototype,"nzColumn",void 0),(0,_.gn)([(0,y.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,y.oS)(),(0,C.yF)()],n.prototype,"nzColon",void 0),n})(),co=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,F.T,Vt.ud]]}),n})();var uo=l(4466),at=l(2302),N=l(1086),po=l(6498),Wt=l(353),go=l(4241);function Xt(n=0,i=Wt.P){return(!(0,go.k)(n)||n<0)&&(n=0),(!i||"function"!=typeof i.schedule)&&(i=Wt.P),new po.y(e=>(e.add(i.schedule(mo,n,{subscriber:e,counter:0,period:n})),e))}function mo(n){const{subscriber:i,counter:e,period:o}=n;i.next(e),this.schedule({subscriber:i,counter:e+1,period:o},o)}var _o=l(3009),fo=l(6688),ho=l(3489),Tt=l(5430),Mt=l(1177);function Kt(...n){const i=n[n.length-1];return"function"==typeof i&&n.pop(),(0,_o.n)(n,void 0).lift(new zo(i))}class zo{constructor(i){this.resultSelector=i}call(i,e){return e.subscribe(new Co(i,this.resultSelector))}}class Co extends ho.L{constructor(i,e,o=Object.create(null)){super(i),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(i){const e=this.iterators;(0,fo.k)(i)?e.push(new xo(i)):e.push("function"==typeof i[Tt.hZ]?new To(i[Tt.hZ]()):new ko(this.destination,this,i))}_complete(){const i=this.iterators,e=i.length;if(this.unsubscribe(),0!==e){this.active=e;for(let o=0;othis.index}hasCompleted(){return this.array.length===this.index}}class ko extends Mt.Ds{constructor(i,e,o){super(i),this.parent=e,this.observable=o,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Tt.hZ](){return this}next(){const i=this.buffer;return 0===i.length&&this.isComplete?{value:null,done:!0}:{value:i.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(i){this.buffer.push(i),this.parent.checkIterators()}subscribe(){return(0,Mt.ft)(this.observable,new Mt.IY(this))}}var te=l(534),rt=l(7221),At=l(7106),ee=l(5278),vo=l(2340),M=(()=>{return(n=M||(M={})).ALL="all",n.PREPARING="preparing",n.LIVING="living",n.ROUNDING="rounding",n.MONITOR_ENABLED="monitor_enabled",n.MONITOR_DISABLED="monitor_disabled",n.RECORDER_ENABLED="recorder_enabled",n.RECORDER_DISABLED="recorder_disabled",n.STOPPED="stopped",n.WAITTING="waitting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",M;var n})(),Z=(()=>{return(n=Z||(Z={})).STOPPED="stopped",n.WAITING="waiting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",Z;var n})(),lt=(()=>{return(n=lt||(lt={})).WAITING="waiting",n.REMUXING="remuxing",n.INJECTING="injecting",lt;var n})(),T=(()=>{return(n=T||(T={})).RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",n.COMPLETED="completed",n.MISSING="missing",n.BROKEN="broken",T;var n})(),bo=l(520);const h=vo.N.apiUrl;let Dt=(()=>{class n{constructor(e){this.http=e}getAllTaskData(e=M.ALL){return this.http.get(h+"/api/v1/tasks/data",{params:{select:e}})}getTaskData(e){return this.http.get(h+`/api/v1/tasks/${e}/data`)}getVideoFileDetails(e){return this.http.get(h+`/api/v1/tasks/${e}/videos`)}getDanmakuFileDetails(e){return this.http.get(h+`/api/v1/tasks/${e}/danmakus`)}getTaskParam(e){return this.http.get(h+`/api/v1/tasks/${e}/param`)}updateAllTaskInfos(){return this.http.post(h+"/api/v1/tasks/info",null)}updateTaskInfo(e){return this.http.post(h+`/api/v1/tasks/${e}/info`,null)}addTask(e){return this.http.post(h+`/api/v1/tasks/${e}`,null)}removeTask(e){return this.http.delete(h+`/api/v1/tasks/${e}`)}removeAllTasks(){return this.http.delete(h+"/api/v1/tasks")}startTask(e){return this.http.post(h+`/api/v1/tasks/${e}/start`,null)}startAllTasks(){return this.http.post(h+"/api/v1/tasks/start",null)}stopTask(e,o=!1,s=!1){return this.http.post(h+`/api/v1/tasks/${e}/stop`,{force:o,background:s})}stopAllTasks(e=!1,o=!1){return this.http.post(h+"/api/v1/tasks/stop",{force:e,background:o})}enableTaskMonitor(e){return this.http.post(h+`/api/v1/tasks/${e}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(h+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(e,o=!1){return this.http.post(h+`/api/v1/tasks/${e}/monitor/disable`,{background:o})}disableAllMonitors(e=!1){return this.http.post(h+"/api/v1/tasks/monitor/disable",{background:e})}enableTaskRecorder(e){return this.http.post(h+`/api/v1/tasks/${e}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(h+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(e,o=!1,s=!1){return this.http.post(h+`/api/v1/tasks/${e}/recorder/disable`,{force:o,background:s})}disableAllRecorders(e=!1,o=!1){return this.http.post(h+"/api/v1/tasks/recorder/disable",{force:e,background:o})}cutStream(e){return this.http.post(h+`/api/v1/tasks/${e}/cut`,null)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(bo.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var yo=l(7512),So=l(5545);let Mo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.userInfo.name),t.xp6(2),t.Oqu(o.userInfo.gender),t.xp6(2),t.Oqu(o.userInfo.uid),t.xp6(2),t.Oqu(o.userInfo.level),t.xp6(2),t.hij(" ",o.userInfo.sign," "))},directives:[D.bd,Ht,St],styles:[""],changeDetection:0}),n})();function Ao(n,i){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Do(n,i){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Zo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Oo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function wo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function Fo(n,i){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e," ")}}function No(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let Po=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Ao,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Do,2,0,"ng-container",10),t.YNc(14,Zo,2,0,"ng-container",10),t.YNc(15,Oo,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,wo,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,Fo,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,No,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.roomInfo.title),t.xp6(2),t.AsE(" ",o.roomInfo.parent_area_name," - ",o.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",o.roomInfo.short_room_id),t.xp6(2),t.hij(" ",o.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",o.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==o.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.description.split("\n")))},directives:[D.bd,Ht,St,u.O5,u.RF,u.n9,u.sg,nt],pipes:[u.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})(),ne=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const o=Math.floor(e/3600),s=Math.floor(e/60%60),a=Math.floor(e%60);let c="";return o>0&&(c+=o+":"),c+=s<10?"0"+s:s,c+=":",c+=a<10?"0"+a:a,c}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})(),oe=(()=>{class n{transform(e,o=3){let s,a;if(e<=0)return"0B/s";if(e<1e3)s=e,a="B";else if(e<1e6)s=e/1e3,a="kB";else if(e<1e9)s=e/1e6,a="MB";else{if(!(e<1e12))throw RangeError(`the rate argument ${e} out of range`);s=e/1e9,a="GB"}const c=o-Math.floor(Math.abs(Math.log10(s)))-1;return s.toFixed(c)+a+"/s"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"speed",type:n,pure:!0}),n})();var Io=l(855);let Zt=(()=>{class n{transform(e,o){return Io(e,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();const Eo={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};let ie=(()=>{class n{transform(e){return Eo[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"quality",type:n,pure:!0}),n})();const Bo=function(){return{spacer:""}};let Jo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:12,vars:24,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValue"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.ALo(3,"duration"),t._UZ(4,"nz-statistic",2),t.ALo(5,"speed"),t._UZ(6,"nz-statistic",2),t.ALo(7,"filesize"),t._UZ(8,"nz-statistic",2),t.ALo(9,"number"),t._UZ(10,"nz-statistic",2),t.ALo(11,"quality"),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValue",t.lcZ(3,11,o.taskStatus.elapsed)),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValue",t.lcZ(5,13,o.taskStatus.data_rate)),t.xp6(2),t.Q6J("nzTitle","\u5df2\u5f55\u6570\u636e")("nzValue",t.xi3(7,15,o.taskStatus.data_count,t.DdM(23,Bo))),t.xp6(2),t.Q6J("nzTitle","\u5f39\u5e55\u6570\u91cf")("nzValue",t.xi3(9,18,o.taskStatus.danmu_count,"1.0-2")),t.xp6(2),t.Q6J("nzTitle","\u6240\u5f55\u753b\u8d28")("nzValue",t.lcZ(11,21,o.taskStatus.real_quality_number)))},directives:[D.bd,Sn],pipes:[ne,oe,Zt,u.JJ,ie],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}"],changeDetection:0}),n})(),Ot=(()=>{class n{transform(e){var o,s;return e?e.startsWith("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":null!==(s=e.split("\\").pop())&&void 0!==s?s:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),se=(()=>{class n{transform(e){return e&&0!==e.duration?Math.round(e.time/e.duration*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),Qo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case lt.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case lt.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let s;t.Q6J("nzTitle",o.title)("nzLoading",o.loading),t.xp6(1),t.Q6J("title",o.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(s=o.taskStatus.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzPercent",null===o.taskStatus.postprocessing_progress?0:t.lcZ(5,7,o.taskStatus.postprocessing_progress))}},directives:[D.bd,$t],pipes:[Ot,se],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const qo=new Map([[T.RECORDING,"\u5f55\u5236\u4e2d"],[T.INJECTING,"\u5904\u7406\u4e2d"],[T.REMUXING,"\u5904\u7406\u4e2d"],[T.COMPLETED,"\u5df2\u5b8c\u6210"],[T.MISSING,"\u4e0d\u5b58\u5728"],[T.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let Uo=(()=>{class n{transform(e){var o;return null!==(o=qo.get(e))&&void 0!==o?o:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function Ro(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function Yo(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const ae=[T.RECORDING,T.INJECTING,T.REMUXING,T.COMPLETED,T.MISSING];let Lo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=T,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,o)=>e.path.localeCompare(o.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,o)=>{switch(e){case"video":return o.path.endsWith(".flv")||o.path.endsWith(".mp4");case"danmaku":return o.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,o)=>e.size-o.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,o)=>ae.indexOf(e.status)-ae.indexOf(o.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[T.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[T.INJECTING,T.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[T.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[T.MISSING]}],filterFn:(e,o)=>e.some(s=>s.some(a=>a===o.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,o){return o.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,Ro,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,Yo,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(2);t.Q6J("nzLoading",o.loading),t.xp6(1),t.Q6J("nzLoading",o.loading)("nzData",o.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",o.columns),t.xp6(2),t.Q6J("ngForOf",s.data)("ngForTrackBy",o.trackByPath)}},directives:[D.bd,B.N8,B.Om,B.$Z,u.sg,B.Uo,B._C,B.qD,B.p0],pipes:[Ot,u.JJ,Zt,Uo],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function Go(n,i){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function $o(n,i){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function Vo(n,i){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function jo(n,i){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function Ho(n,i){if(1&n&&(t.YNc(0,Go,1,2,"app-task-user-info-detail",2),t.YNc(1,$o,1,2,"app-task-room-info-detail",3),t.YNc(2,Vo,1,2,"app-task-recording-detail",4),t.YNc(3,jo,1,2,"app-task-postprocessing-detail",4),t._UZ(4,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const Wo=function(){return{"max-width":"unset"}},Xo=function(){return{"row-gap":"1em"}};let Ko=(()=>{class n{constructor(e,o,s,a,c){this.route=e,this.router=o,this.changeDetector=s,this.notification=a,this.taskService=c,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,N.of)((0,N.of)(0),Xt(1e3)).pipe((0,te.u)(),(0,Ct.w)(()=>Kt(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,rt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,At.X)(10,3e3)).subscribe(([e,o,s])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=o,this.danmakuFileDetails=s,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(at.gz),t.Y36(at.F0),t.Y36(t.sBO),t.Y36(ee.zb),t.Y36(Dt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,o){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Ho,5,7,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",o.loading)("pageStyles",t.DdM(3,Wo))("contentStyles",t.DdM(4,Xo))},directives:[yo.q,So.Y,u.O5,Mo,Po,Jo,Qo,Lo],styles:[""],changeDetection:0}),n})();var ti=l(2323),ei=l(13),ni=l(5778),j=l(4850);const ct=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var wt=l(9727);let Ft=(()=>{class n{constructor(e,o){this.message=e,this.taskService=o}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,j.U)(e=>e.map(o=>o.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,x.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e")},o=>{this.message.error(`\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${o.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,x.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,j.U)(o=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,rt.K)(o=>{let s;return s=409==o.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==o.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==o.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${o.message}`},(0,N.of)(s)}),(0,j.U)(o=>(o.message=`${e}: ${o.message}`,o)),(0,x.b)(o=>{this.message[o.type](o.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,x.b)(()=>{this.message.success("\u4efb\u52a1\u5df2\u5220\u9664")},o=>{this.message.error(`\u5220\u9664\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}startTask(e){const o=this.message.loading("\u6b63\u5728\u8fd0\u884c\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,x.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u8fd0\u884c\u4efb\u52a1")},s=>{this.message.remove(o),this.message.error(`\u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}stopTask(e,o=!1){const s=this.message.loading("\u6b63\u5728\u505c\u6b62\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopTask(e,o).pipe((0,x.b)(()=>{this.message.remove(s),this.message.success("\u6210\u529f\u505c\u6b62\u4efb\u52a1")},a=>{this.message.remove(s),this.message.error(`\u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}stopAllTasks(e=!1){const o=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,x.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},s=>{this.message.remove(o),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}enableRecorder(e){const o=this.message.loading("\u6b63\u5728\u5f00\u542f\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,x.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5f00\u542f\u5f55\u5236")},s=>{this.message.remove(o),this.message.error(`\u5f00\u542f\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},o=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${o.message}`)}))}disableRecorder(e,o=!1){const s=this.message.loading("\u6b63\u5728\u5173\u95ed\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,o).pipe((0,x.b)(()=>{this.message.remove(s),this.message.success("\u6210\u529f\u5173\u95ed\u5f55\u5236")},a=>{this.message.remove(s),this.message.error(`\u5173\u95ed\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}disableAllRecorders(e=!1){const o=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,x.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},s=>{this.message.remove(o),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,x.b)(()=>{this.message.success("\u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1")},o=>{403==o.status?this.message.warning("\u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"):this.message.error(`\u5207\u5272\u6587\u4ef6\u51fa\u9519: ${o.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(wt.dD),t.LFG(Dt))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Nt=l(2683),ut=l(4219);function oi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),o=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function ii(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),o=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function si(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),o=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function ai(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function ri(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.YNc(1,ai,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function li(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function ci(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const s=t.MAs(2),a=t.oxw();return s.value="",a.onFilterInput("")}),t.qZA()}}function ui(n,i){if(1&n&&t.YNc(0,ci,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function pi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const s=t.MAs(2);return t.oxw().onFilterInput(s.value)}),t.qZA(),t.qZA(),t.YNc(3,ui,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function gi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function di(n,i){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function _i(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function fi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),o=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",o)}}function hi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const zi=function(){return{padding:"0"}};function Ci(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().drawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,fi,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,hi,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(23);t.Q6J("nzTitle",o)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,zi))("nzVisible",e.menuDrawerVisible)}}function Ti(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let xi=(()=>{class n{constructor(e,o,s,a,c,r){this.message=s,this.modal=a,this.clipboard=c,this.taskManager=r,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new k.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new k.xQ,this.selections=[{label:"\u5168\u90e8",value:M.ALL},{label:"\u5f55\u5236\u4e2d",value:M.RECORDING},{label:"\u5f55\u5236\u5f00",value:M.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:M.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:M.MONITOR_ENABLED},{label:"\u505c\u6b62",value:M.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:M.LIVING},{label:"\u8f6e\u64ad",value:M.ROUNDING},{label:"\u95f2\u7f6e",value:M.PREPARING}],o.observe(ct).pipe((0,v.R)(this.destroyed)).subscribe(g=>{this.useDrawer=g.breakpoints[ct[0]],this.useSelector=g.breakpoints[ct[1]],this.useRadioGroup=g.breakpoints[ct[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,ei.b)(300),(0,ni.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,o)=>{this.taskManager.removeAllTasks().subscribe(e,o)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,s)=>{this.taskManager.stopAllTasks(e).subscribe(o,s)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,s)=>{this.taskManager.disableAllRecorders(e).subscribe(o,s)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,j.U)(e=>e.join(" ")),(0,x.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(q.Yg),t.Y36(wt.dD),t.Y36(V.Sf),t.Y36(U),t.Y36(Ft))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,oi,8,4,"ng-container",1),t.YNc(2,ii,8,4,"ng-container",1),t.YNc(3,si,3,2,"ng-container",1),t.qZA(),t.YNc(4,ri,2,2,"ng-template",null,2,t.W1O),t.YNc(6,li,1,2,"ng-template",null,3,t.W1O),t.YNc(8,pi,5,1,"ng-template",null,4,t.W1O),t.YNc(10,gi,4,3,"ng-template",null,5,t.W1O),t.YNc(12,di,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,mi,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,_i,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Ci,4,7,"nz-drawer",11),t.YNc(22,Ti,3,0,"ng-template",null,12,t.W1O)),2&e){const s=t.MAs(18);t.ekj("use-drawer",o.useDrawer),t.xp6(1),t.Q6J("ngIf",o.useRadioGroup),t.xp6(1),t.Q6J("ngIf",o.useSelector),t.xp6(1),t.Q6J("ngIf",o.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",s),t.xp6(5),t.Q6J("ngIf",o.useDrawer)}},directives:[u.O5,u.tP,qt.g,zt.Dg,d.JJ,d.On,u.sg,zt.Of,zt.Bq,bt.Vq,Nt.w,tt.gB,tt.ke,tt.Zp,S.Ls,ht.ix,K.wA,K.cm,K.RR,ut.wO,ut.r9,ut.YV,st.Vz,st.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var ki=l(5136);const vi=function(){return{spacer:""}};function bi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"speed"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.elapsed)," "),t.xp6(3),t.hij(" ",t.lcZ(9,8,e.status.data_rate)," "),t.xp6(3),t.hij(" ",t.xi3(12,10,e.status.data_count,t.DdM(21,vi))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u6570\u91cf\uff1a",t.xi3(14,13,e.status.danmu_count,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,16,e.status.danmu_count,"1.0-0")," "),t.xp6(3),t.hij(" ",t.lcZ(19,19,e.status.real_quality_number)," ")}}function yi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function Si(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let Mi=(()=>{class n{constructor(){this.RunningStatus=Z}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236\u4e2d","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f00\u59cb\u5f55\u5236\u5230\u73b0\u5728\u8fc7\u53bb\u7684\u65f6\u95f4","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f53\u524d\u5b9e\u65f6\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5df2\u5f55\u5236\u7684\u6570\u636e","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f53\u524d\u5f55\u5236\u7684\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,o){1&e&&(t.ynx(0,0),t.YNc(1,bi,20,22,"div",1),t.YNc(2,yi,7,13,"div",1),t.YNc(3,Si,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",o.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.REMUXING))},directives:[u.RF,u.n9,it.SY,$t],pipes:[ne,oe,Zt,u.JJ,ie,Ot,se],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var J=l(3523),Ai=l(2134),P=l(8737);function Di(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function Zi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function Oi(n,i){if(1&n&&(t.YNc(0,Di,2,0,"ng-container",59),t.YNc(1,Zi,2,0,"ng-container",59)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function wi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u8f6c\u6362\u6210\u529f\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u4ece\u4e0d: \u8f6c\u6362\u540e\u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t.qZA())}function Fi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Ni(n,i){1&n&&t.YNc(0,Fi,2,0,"ng-container",59),2&n&&t.Q6J("ngIf",i.$implicit.hasError("required"))}function Pi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.pathTemplate=s}),t.qZA(),t.YNc(10,Oi,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.pathTemplate=s?a.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",10),t.TgZ(15,"nz-form-label",11),t._uU(16,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(17,"nz-form-control",12),t.TgZ(18,"nz-select",13),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.filesizeLimit=s}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.filesizeLimit=s?a.globalSettings.output.filesizeLimit:null}),t._uU(20,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",10),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(24,"nz-form-control",12),t.TgZ(25,"nz-select",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.durationLimit=s}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.durationLimit=s?a.globalSettings.output.durationLimit:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",15),t.TgZ(29,"h2"),t._uU(30,"\u5f55\u5236"),t.qZA(),t.TgZ(31,"nz-form-item",10),t.TgZ(32,"nz-form-label",16),t._uU(33,"\u753b\u8d28"),t.qZA(),t.TgZ(34,"nz-form-control",12),t.TgZ(35,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.qualityNumber=s}),t.qZA(),t.qZA(),t.TgZ(36,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.qualityNumber=s?a.globalSettings.recorder.qualityNumber:null}),t._uU(37,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(38,"nz-form-item",10),t.TgZ(39,"nz-form-label",18),t._uU(40,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(41,"nz-form-control",19),t.TgZ(42,"nz-switch",20),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.saveCover=s}),t.qZA(),t.qZA(),t.TgZ(43,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.saveCover=s?a.globalSettings.recorder.saveCover:null}),t._uU(44,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(45,"nz-form-item",10),t.TgZ(46,"nz-form-label",21),t._uU(47,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(48,"nz-form-control",22),t.TgZ(49,"nz-select",23,24),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.readTimeout=s}),t.qZA(),t.qZA(),t.TgZ(51,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.readTimeout=s?a.globalSettings.recorder.readTimeout:null}),t._uU(52,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(53,"nz-form-item",10),t.TgZ(54,"nz-form-label",25),t._uU(55,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(56,"nz-form-control",12),t.TgZ(57,"nz-select",26),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=s}),t.qZA(),t.qZA(),t.TgZ(58,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(59,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(60,"nz-form-item",10),t.TgZ(61,"nz-form-label",27),t._uU(62,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(63,"nz-form-control",12),t.TgZ(64,"nz-select",28),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.bufferSize=s}),t.qZA(),t.qZA(),t.TgZ(65,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(66,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(67,"div",29),t.TgZ(68,"h2"),t._uU(69,"\u5f39\u5e55"),t.qZA(),t.TgZ(70,"nz-form-item",10),t.TgZ(71,"nz-form-label",30),t._uU(72,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(73,"nz-form-control",19),t.TgZ(74,"nz-switch",31),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=s}),t.qZA(),t.qZA(),t.TgZ(75,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGiftSend=s?a.globalSettings.danmaku.recordGiftSend:null}),t._uU(76,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(77,"nz-form-item",10),t.TgZ(78,"nz-form-label",32),t._uU(79,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(80,"nz-form-control",19),t.TgZ(81,"nz-switch",33),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=s}),t.qZA(),t.qZA(),t.TgZ(82,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordFreeGifts=s?a.globalSettings.danmaku.recordFreeGifts:null}),t._uU(83,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(84,"nz-form-item",10),t.TgZ(85,"nz-form-label",34),t._uU(86,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(87,"nz-form-control",19),t.TgZ(88,"nz-switch",35),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=s}),t.qZA(),t.qZA(),t.TgZ(89,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGuardBuy=s?a.globalSettings.danmaku.recordGuardBuy:null}),t._uU(90,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(91,"nz-form-item",10),t.TgZ(92,"nz-form-label",36),t._uU(93,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(94,"nz-form-control",19),t.TgZ(95,"nz-switch",37),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=s}),t.qZA(),t.qZA(),t.TgZ(96,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordSuperChat=s?a.globalSettings.danmaku.recordSuperChat:null}),t._uU(97,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(98,"nz-form-item",10),t.TgZ(99,"nz-form-label",38),t._uU(100,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(101,"nz-form-control",19),t.TgZ(102,"nz-switch",39),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.danmuUname=s}),t.qZA(),t.qZA(),t.TgZ(103,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.danmuUname=s?a.globalSettings.danmaku.danmuUname:null}),t._uU(104,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(105,"nz-form-item",10),t.TgZ(106,"nz-form-label",40),t._uU(107,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(108,"nz-form-control",19),t.TgZ(109,"nz-switch",41),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=s}),t.qZA(),t.qZA(),t.TgZ(110,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.saveRawDanmaku=s?a.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(111,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(112,"div",42),t.TgZ(113,"h2"),t._uU(114,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(115,"nz-form-item",10),t.TgZ(116,"nz-form-label",43),t._uU(117,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(118,"nz-form-control",19),t.TgZ(119,"nz-switch",44),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=s}),t.qZA(),t.qZA(),t.TgZ(120,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.injectExtraMetadata=s?a.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(121,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(122,"nz-form-item",10),t.TgZ(123,"nz-form-label",45),t._uU(124,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(125,"nz-form-control",19),t.TgZ(126,"nz-switch",46),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=s}),t.qZA(),t.qZA(),t.TgZ(127,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.remuxToMp4=s?a.globalSettings.postprocessing.remuxToMp4:null}),t._uU(128,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(129,"nz-form-item",10),t.TgZ(130,"nz-form-label",11),t._uU(131,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(132,wi,5,0,"ng-template",null,47,t.W1O),t.TgZ(134,"nz-form-control",12),t.TgZ(135,"nz-select",48),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=s}),t.qZA(),t.qZA(),t.TgZ(136,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.deleteSource=s?a.globalSettings.postprocessing.deleteSource:null}),t._uU(137,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(138,"div",49),t.TgZ(139,"h2"),t._uU(140,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(141,"nz-form-item",50),t.TgZ(142,"nz-form-label",51),t._uU(143,"User Agent"),t.qZA(),t.TgZ(144,"nz-form-control",52),t.TgZ(145,"textarea",53,54),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.userAgent=s}),t.qZA(),t.qZA(),t.YNc(147,Ni,1,1,"ng-template",null,8,t.W1O),t.TgZ(149,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.userAgent=s?a.globalSettings.header.userAgent:null}),t._uU(150,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(151,"nz-form-item",50),t.TgZ(152,"nz-form-label",55),t._uU(153,"Cookie"),t.qZA(),t.TgZ(154,"nz-form-control",56),t.TgZ(155,"textarea",57,58),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.cookie=s}),t.qZA(),t.qZA(),t.TgZ(157,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.cookie=s?a.globalSettings.header.cookie:null}),t._uU(158,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),o=t.MAs(50),s=t.MAs(133),a=t.MAs(146),c=t.MAs(156),r=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern)("ngModel",r.model.output.pathTemplate)("disabled",null===r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.filesizeLimit)("disabled",null===r.options.output.filesizeLimit)("nzOptions",r.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.durationLimit)("disabled",null===r.options.output.durationLimit)("nzOptions",r.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.durationLimit),t.xp6(9),t.Q6J("ngModel",r.model.recorder.qualityNumber)("disabled",null===r.options.recorder.qualityNumber)("nzOptions",r.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",r.model.recorder.saveCover)("disabled",null===r.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.saveCover),t.xp6(5),t.Q6J("nzValidateStatus",o.value>3?"warning":o),t.xp6(1),t.Q6J("ngModel",r.model.recorder.readTimeout)("disabled",null===r.options.recorder.readTimeout)("nzOptions",r.timeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==r.options.recorder.readTimeout),t.xp6(6),t.Q6J("ngModel",r.model.recorder.disconnectionTimeout)("disabled",null===r.options.recorder.disconnectionTimeout)("nzOptions",r.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(6),t.Q6J("ngModel",r.model.recorder.bufferSize)("disabled",null===r.options.recorder.bufferSize)("nzOptions",r.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(9),t.Q6J("ngModel",r.model.danmaku.recordGiftSend)("disabled",null===r.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordFreeGifts)("disabled",null===r.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordGuardBuy)("disabled",null===r.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordSuperChat)("disabled",null===r.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.danmuUname)("disabled",null===r.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.saveRawDanmaku)("disabled",null===r.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.saveRawDanmaku),t.xp6(9),t.Q6J("ngModel",r.model.postprocessing.injectExtraMetadata)("disabled",null===r.options.postprocessing.injectExtraMetadata||!!r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.injectExtraMetadata),t.xp6(6),t.Q6J("ngModel",r.model.postprocessing.remuxToMp4)("disabled",null===r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(5),t.Q6J("ngModel",r.model.postprocessing.deleteSource)("disabled",null===r.options.postprocessing.deleteSource||!r.options.postprocessing.remuxToMp4)("nzOptions",r.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",a.valid&&r.options.header.userAgent!==r.taskOptions.header.userAgent&&r.options.header.userAgent!==r.globalSettings.header.userAgent?"warning":a)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.userAgent)("disabled",null===r.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==r.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",c.valid&&r.options.header.cookie!==r.taskOptions.header.cookie&&r.options.header.cookie!==r.globalSettings.header.cookie?"warning":c),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.cookie)("disabled",null===r.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==r.options.header.cookie)}}let Ii=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.splitFileTip=P.Uk,this.pathTemplatePattern=P._m,this.filesizeLimitOptions=(0,J.Z)(P.Pu),this.durationLimitOptions=(0,J.Z)(P.Fg),this.qualityOptions=(0,J.Z)(P.O6),this.timeoutOptions=(0,J.Z)(P.D4),this.disconnectionTimeoutOptions=(0,J.Z)(P.$w),this.bufferOptions=(0,J.Z)(P.Rc),this.deleteStrategies=(0,J.Z)(P.rc)}ngOnChanges(){this.options=(0,J.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,Ai.e)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const o of Object.keys(this.options)){const c=this.globalSettings[o];Reflect.set(e,o,new Proxy(this.options[o],{get:(r,g)=>{var z;return null!==(z=Reflect.get(r,g))&&void 0!==z?z:Reflect.get(c,g)},set:(r,g,z)=>Reflect.set(r,g,z)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(d.F,5),2&e){let s;t.iGM(s=t.CRH())&&(o.ngForm=s.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["errorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","recorder",1,"form-group","recorder"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()})("nzAfterOpen",function(){return o.afterOpen.emit()})("nzAfterClose",function(){return o.afterClose.emit()}),t.YNc(1,Pi,159,79,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkDisabled",null==o.ngForm||null==o.ngForm.form?null:o.ngForm.form.invalid)},directives:[V.du,V.Hf,d._Y,d.JL,d.F,E.Lr,d.Mq,w.SK,E.Nx,w.t3,E.iK,E.Fd,tt.Zp,d.Fj,d.Q7,d.c5,d.JJ,d.On,u.O5,Qt.Ie,bt.Vq,vt.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}"],changeDetection:0}),n})();function re(n,i,e,o,s,a,c){try{var r=n[a](c),g=r.value}catch(z){return void e(z)}r.done?i(g):Promise.resolve(g).then(o,s)}var Pt=l(5254),Bi=l(3753),Ji=l(2313);const It=new Map,Et=new Map;let Qi=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,o="object"){return"object"===o?Et.has(e)?(0,N.of)(Et.get(e)):(0,Pt.D)(this.fetchImage(e)).pipe((0,j.U)(s=>URL.createObjectURL(s)),(0,j.U)(s=>this.domSanitizer.bypassSecurityTrustUrl(s)),(0,x.b)(s=>Et.set(e,s)),(0,rt.K)(()=>(0,N.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):It.has(e)?(0,N.of)(It.get(e)):(0,Pt.D)(this.fetchImage(e)).pipe((0,Ct.w)(s=>this.createDataURL(s)),(0,x.b)(s=>It.set(e,s)),(0,rt.K)(()=>(0,N.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function Ei(n){return function(){var i=this,e=arguments;return new Promise(function(o,s){var a=n.apply(i,e);function c(g){re(a,o,s,c,r,"next",g)}function r(g){re(a,o,s,c,r,"throw",g)}c(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const o=new FileReader,s=(0,Bi.R)(o,"load").pipe((0,j.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(o.result)));return o.readAsDataURL(e),s}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ji.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();const qi=function(n){return[n,"detail"]};function Ui(n,i){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t._UZ(7,"app-status-display",19),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(9,qi,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,5,t.lcZ(4,7,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("status",e.data.task_status)}}function Ri(n,i){if(1&n&&(t._UZ(0,"nz-avatar",20),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function Yi(n,i){1&n&&(t.TgZ(0,"nz-tag",29),t._UZ(1,"i",30),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function Li(n,i){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function Gi(n,i){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function $i(n,i){if(1&n&&(t.TgZ(0,"p",21),t.TgZ(1,"span",22),t.TgZ(2,"a",23),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",24),t.ynx(5,25),t.YNc(6,Yi,4,0,"nz-tag",26),t.YNc(7,Li,4,0,"nz-tag",27),t.YNc(8,Gi,4,0,"nz-tag",28),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function Vi(n,i){if(1&n&&(t.TgZ(0,"span",42),t.TgZ(1,"a",23),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function ji(n,i){if(1&n&&(t.TgZ(0,"p",35),t.TgZ(1,"span",36),t.TgZ(2,"span",37),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,Vi,3,2,"span",38),t.TgZ(5,"span",39),t.TgZ(6,"a",23),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",40),t.TgZ(9,"a",23),t.TgZ(10,"nz-tag",41),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function Hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",43),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function Wi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",44),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",45),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Xi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",49),t.NdJ("visibleChange",function(s){return t.CHM(e),t.oxw(2).settingsDialogVisible=s})("confirm",function(s){return t.CHM(e),t.oxw(2).changeTaskOptions(s)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function Ki(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",47),t.qZA(),t.YNc(2,Xi,2,3,"ng-container",48)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function ts(n,i){if(1&n&&(t.TgZ(0,"div",52),t._UZ(1,"i",53),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function es(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",54),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",53),t.qZA()}}function ns(n,i){if(1&n&&(t.YNc(0,ts,2,1,"div",50),t.YNc(1,es,2,0,"div",51)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function os(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",55),t.TgZ(1,"li",56),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",56),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",56),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",56),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",56),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",56),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.qZA()}}function is(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",59),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const ss=function(){return{padding:"0"}};function as(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",57),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,is,3,1,"ng-container",58),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,ss))("nzVisible",e.menuDrawerVisible)}}const rs=function(n,i,e,o){return[n,i,e,o]},ls=function(){return{padding:"0.5rem"}},cs=function(){return{size:"large"}};let us=(()=>{class n{constructor(e,o,s,a,c,r){this.changeDetector=o,this.message=s,this.modal=a,this.settingService=c,this.taskManager=r,this.stopped=!1,this.destroyed=new k.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=Z,e.observe(ct[0]).pipe((0,v.R)(this.destroyed)).subscribe(g=>{this.useDrawer=g.matches,o.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===Z.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===Z.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==Z.STOPPED?e&&this.data.task_status.running_status==Z.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,s)=>{this.taskManager.stopTask(this.roomId,e).subscribe(o,s)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==Z.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,s)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(o,s)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){Kt(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,o])=>{this.taskOptions=e,this.globalSettings=o,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,At.X)(3,300)).subscribe(o=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},o=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${o.message}`)})}cutStream(){this.data.task_status.running_status===Z.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(q.Yg),t.Y36(t.sBO),t.Y36(wt.dD),t.Y36(V.Sf),t.Y36(ki.R),t.Y36(Ft))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("stopped",o.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"status"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,Ui,8,11,"ng-template",null,3,t.W1O),t.YNc(5,Ri,3,7,"ng-template",null,4,t.W1O),t.YNc(7,$i,9,6,"ng-template",null,5,t.W1O),t.YNc(9,ji,12,7,"ng-template",null,6,t.W1O),t.YNc(11,Hi,1,4,"ng-template",null,7,t.W1O),t.YNc(13,Wi,2,2,"ng-template",null,8,t.W1O),t.YNc(15,Ki,3,1,"ng-template",null,9,t.W1O),t.YNc(17,ns,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,os,13,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,as,2,4,"nz-drawer",14)),2&e){const s=t.MAs(4),a=t.MAs(6),c=t.MAs(8),r=t.MAs(10),g=t.MAs(12),z=t.MAs(14),A=t.MAs(16),O=t.MAs(18),I=t.MAs(23);t.Q6J("nzCover",s)("nzHoverable",!0)("nzActions",t.l5B(12,rs,z,A,g,O))("nzBodyStyle",t.DdM(17,ls)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!o.data)("nzAvatar",t.DdM(18,cs)),t.xp6(1),t.Q6J("nzAvatar",a)("nzTitle",c)("nzDescription",r),t.xp6(19),t.Q6J("ngTemplateOutlet",I),t.xp6(3),t.Q6J("ngIf",o.useDrawer)}},directives:[D.bd,ge,D.l7,at.yS,it.SY,Mi,ot.Dz,u.RF,u.n9,nt,S.Ls,Nt.w,u.O5,vt.i,d.JJ,d.On,Ii,K.cm,K.RR,u.tP,ut.wO,ut.r9,st.Vz,st.SQ],pipes:[u.Ov,Qi],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function ps(n,i){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function gs(n,i){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",i.$implicit)}function ds(n,i){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,gs,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let ms=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,o){return o.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,o){if(1&e&&(t.YNc(0,ps,2,0,"div",0),t.YNc(1,ds,3,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",0===o.dataList.length)("ngIfElse",s)}},directives:[u.O5,Ut.p9,u.sg,us],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;--max-columns: 3;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:min(100%,var(--card-width) * var(--max-columns) + var(--grid-gutter) * (var(--max-columns) - 1));margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var _s=l(2643),fs=l(1406);function hs(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function zs(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function Cs(n,i){if(1&n&&(t.YNc(0,hs,2,0,"ng-container",8),t.YNc(1,zs,2,0,"ng-container",8)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ts(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function xs(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Cs,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,Ts,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();t.xp6(1),t.Q6J("formGroup",o.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",o.pattern),t.xp6(4),t.Q6J("ngForOf",o.resultMessages)}}const ks=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,vs=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let bs=(()=>{class n{constructor(e,o,s){this.changeDetector=o,this.taskManager=s,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=vs,this.formGroup=e.group({input:["",[d.kI.required,d.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let o;o=e.startsWith("http")?[parseInt(ks.exec(e)[1])]:new Set(e.split(/\s+/).map(s=>parseInt(s))),(0,Pt.D)(o).pipe((0,fs.b)(s=>this.taskManager.addTask(s)),(0,x.b)(s=>{this.resultMessages.push(s),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(s=>"success"===s.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.qu),t.Y36(t.sBO),t.Y36(Ft))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()}),t.YNc(1,xs,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkLoading",o.pending)("nzOkDisabled",o.formGroup.invalid)("nzCancelDisabled",o.pending)("nzClosable",!o.pending)("nzMaskClosable",!o.pending)},directives:[V.du,V.Hf,d._Y,d.JL,E.Lr,d.sg,w.SK,E.Nx,w.t3,E.Fd,tt.Zp,d.Fj,d.Q7,d.JJ,d.u,d.c5,u.O5,u.sg,Be],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),Ss=(()=>{class n{transform(e,o=""){return console.debug("filter tasks by '%s'",o),[...this.filterByTerm(e,o)]}filterByTerm(e,o){return function*ys(n,i){for(const e of n)i(e)&&(yield e)}(e,s=>""===(o=o.trim())||s.user_info.name.includes(o)||s.room_info.title.toString().includes(o)||s.room_info.area_name.toString().includes(o)||s.room_info.room_id.toString().includes(o)||s.room_info.short_room_id.toString().includes(o))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function Ms(n,i){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function As(n,i){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const le="app-tasks-selection",ce="app-tasks-reverse",Ds=[{path:":id/detail",component:Ko},{path:"",component:(()=>{class n{constructor(e,o,s,a){this.changeDetector=e,this.notification=o,this.storage=s,this.taskService=a,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(le);return null!==e?e:M.ALL}retrieveReverse(){return"true"===this.storage.getData(ce)}storeSelection(e){this.storage.setData(le,e)}storeReverse(e){this.storage.setData(ce,e.toString())}syncTaskData(){this.dataSubscription=(0,N.of)((0,N.of)(0),Xt(1e3)).pipe((0,te.u)(),(0,Ct.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,rt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,At.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(ee.zb),t.Y36(ti.V),t.Y36(Dt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,o){if(1&e){const s=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(c){return o.onSelectionChanged(c)})("reverseChange",function(c){return o.onReverseChanged(c)})("filterChange",function(c){return o.filterTerm=c}),t.qZA(),t.YNc(1,Ms,1,2,"nz-spin",1),t.YNc(2,As,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(s),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const s=t.MAs(3);t.Q6J("selection",o.selection)("reverse",o.reverse),t.xp6(1),t.Q6J("ngIf",o.loading)("ngIfElse",s)}},directives:[xi,u.O5,Rt.W,ms,ht.ix,_s.dQ,Nt.w,it.SY,S.Ls,bs],pipes:[Ss],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let Zs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[at.Bz.forChild(Ds)],at.Bz]}),n})(),Os=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez,d.u5,d.UX,q.xu,pt,w.Jb,D.vh,Jt,ot.Rt,S.PV,Jt,it.cg,G,vt.m,K.b1,ht.sL,V.Qp,E.U5,tt.o7,Qt.Wr,ye,zt.aF,qt.S,Ut.Xo,Rt.j,Je,st.BL,bt.LV,dn,B.HQ,Mn,co,Zs,uo.m]]}),n})()},855:function(Bt){Bt.exports=function(){"use strict";var et=/^(b|B)$/,l={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},u={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},d={floor:Math.floor,ceil:Math.ceil};function q(t){var m,U,R,H,pt,w,D,S,_,k,v,Y,C,b,L,W,nt,G,ot,xt,$,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=[],X=0;if(isNaN(t))throw new TypeError("Invalid number");if(R=!0===f.bits,L=!0===f.unix,Y=!0===f.pad,C=void 0!==f.round?f.round:L?1:2,D=void 0!==f.locale?f.locale:"",S=f.localeOptions||{},W=void 0!==f.separator?f.separator:"",nt=void 0!==f.spacer?f.spacer:L?"":" ",ot=f.symbols||{},G=2===(U=f.base||2)&&f.standard||"jedec",v=f.output||"string",pt=!0===f.fullform,w=f.fullforms instanceof Array?f.fullforms:[],m=void 0!==f.exponent?f.exponent:-1,xt=d[f.roundingMethod]||Math.round,_=(k=Number(t))<0,H=U>2?1e3:1024,$=!1===isNaN(f.precision)?parseInt(f.precision,10):0,_&&(k=-k),(-1===m||isNaN(m))&&(m=Math.floor(Math.log(k)/Math.log(H)))<0&&(m=0),m>8&&($>0&&($+=8-m),m=8),"exponent"===v)return m;if(0===k)p[0]=0,b=p[1]=L?"":l[G][R?"bits":"bytes"][m];else{X=k/(2===U?Math.pow(2,10*m):Math.pow(1e3,m)),R&&(X*=8)>=H&&m<8&&(X/=H,m++);var gt=Math.pow(10,m>0?C:0);p[0]=xt(X*gt)/gt,p[0]===H&&m<8&&void 0===f.exponent&&(p[0]=1,m++),b=p[1]=10===U&&1===m?R?"kb":"kB":l[G][R?"bits":"bytes"][m],L&&(p[1]="jedec"===G?p[1].charAt(0):m>0?p[1].replace(/B$/,""):p[1],et.test(p[1])&&(p[0]=Math.floor(p[0]),p[1]=""))}if(_&&(p[0]=-p[0]),$>0&&(p[0]=p[0].toPrecision($)),p[1]=ot[p[1]]||p[1],!0===D?p[0]=p[0].toLocaleString():D.length>0?p[0]=p[0].toLocaleString(D,S):W.length>0&&(p[0]=p[0].toString().replace(".",W)),Y&&!1===Number.isInteger(p[0])&&C>0){var dt=W||".",mt=p[0].toString().split(dt),_t=mt[1]||"",ft=_t.length,kt=C-ft;p[0]="".concat(mt[0]).concat(dt).concat(_t.padEnd(ft+kt,"0"))}return pt&&(p[1]=w[m]?w[m]:u[G][m]+(R?"bit":"byte")+(1===p[0]?"":"s")),"array"===v?p:"object"===v?{value:p[0],symbol:p[1],exponent:m,unit:b}:p.join(nt)}return q.partial=function(t){return function(m){return q(m,t)}},q}()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/869.95d68b28a4188d76.js b/src/blrec/data/webapp/869.95d68b28a4188d76.js new file mode 100644 index 0000000..837ceff --- /dev/null +++ b/src/blrec/data/webapp/869.95d68b28a4188d76.js @@ -0,0 +1 @@ +(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[869],{5869:(jt,ot,l)=>{"use strict";l.r(ot),l.d(ot,{TasksModule:()=>ua});var u=l(9808),d=l(4182),U=l(5113),t=l(5e3);class _{constructor(o,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),s=i.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",i.setAttribute("aria-hidden","true"),i.value=o,this._document.body.appendChild(i)}copy(){const o=this._textarea;let e=!1;try{if(o){const i=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const o=this._textarea;o&&(o.remove(),this._textarea=void 0)}}let q=(()=>{class n{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),s=i.copy();return i.destroy(),s}beginCopy(e){return new _(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(u.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var N=l(1894),A=l(7484),M=l(647),m=l(655),k=l(8929),v=l(7625),L=l(8693),C=l(1721),y=l(226);function Y(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(s){return t.CHM(e),t.oxw().closeTag(s)}),t.qZA()}}const X=["*"];let st=(()=>{class n{constructor(e,i,s,a){this.cdr=e,this.renderer=i,this.elementRef=s,this.directionality=a,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new k.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,i=new RegExp(`(ant-tag-(?:${[...L.uf,...L.Bh].join("|")}))`,"g"),s=e.classList.toString(),a=[];let c=i.exec(s);for(;null!==c;)a.push(c[1]),c=i.exec(s);e.classList.remove(...a)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,L.o2)(this.nzColor)||(0,L.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:i}=e;i&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,i){1&e&&t.NdJ("click",function(){return i.updateCheckedStatus()}),2&e&&(t.Udp("background-color",i.isPresetColor?"":i.nzColor),t.ekj("ant-tag-has-color",i.nzColor&&!i.isPresetColor)("ant-tag-checkable","checkable"===i.nzMode)("ant-tag-checkable-checked",i.nzChecked)("ant-tag-rtl","rtl"===i.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:X,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,i){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,Y,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===i.nzMode))},directives:[u.O5,M.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,C.yF)()],n.prototype,"nzChecked",void 0),n})(),G=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,d.u5,M.PV]]}),n})();var at=l(6699);const V=["nzType","avatar"];function K(n,o){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function mt(n,o){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function _t(n,o){if(1&n&&t._UZ(0,"li"),2&n){const e=o.index,i=t.oxw(3);t.Udp("width",i.toCSSUnit(i.widthList[e]))}}function ht(n,o){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,_t,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function ft(n,o){if(1&n&&(t.ynx(0),t.YNc(1,K,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,mt,1,2,"h3",3),t.YNc(4,ht,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function zt(n,o){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const Ot=["*"];let ke=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,m.gn)([(0,C.yF)()],n.prototype,"nzBlock",void 0),n})(),ve=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:V,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,i){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===i.nzShape)("ant-skeleton-avatar-circle","circle"===i.nzShape)("ant-skeleton-avatar-lg","large"===i.nzSize)("ant-skeleton-avatar-sm","small"===i.nzSize),t.Q6J("ngStyle",i.styleMap))},directives:[u.PC],encapsulation:2,changeDetection:0}),n})(),ye=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],i.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,C.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,i=!!this.nzParagraph;let s="";return!e&&i?s="38%":e&&i&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,i=!!this.nzTitle,s={};return(!e||!i)&&(s.width="61%"),s.rows=!e&&i?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:i}=this.paragraph;let s=[];return e&&Array.isArray(e)?s=e:e&&!Array.isArray(e)&&(s=[],s[i-1]=e),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:Ot,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(t.F$t(),t.YNc(0,ft,5,3,"ng-container",0),t.YNc(1,zt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",i.nzLoading),t.xp6(1),t.Q6J("ngIf",!i.nzLoading))},directives:[ve,u.O5,ke,u.sg],encapsulation:2,changeDetection:0}),n})(),Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez]]}),n})();var rt=l(404),Zt=l(6462),tt=l(3677),Ct=l(6042),$=l(7957),B=l(4546),et=l(1047),Wt=l(6114),be=l(4832),Se=l(2845),Ae=l(6950),Me=l(5664),P=l(969),De=l(4170);let Ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,Ct.sL,Se.U8,De.YI,M.PV,P.T,Ae.e4,be.g,rt.cg,Me.rt]]}),n})();var Tt=l(3868),Xt=l(5737),Kt=l(685),te=l(7525),Be=l(8076),b=l(9439);function Je(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Ue(n,o){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Re(n,o){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Le(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ue,2,1,"span",7),t.YNc(2,Re,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Ye(n,o){1&n&&t._UZ(0,"i",15)}function Ge(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Ve(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ge,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function $e(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ye,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Ve,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),i=t.oxw(2);t.xp6(3),t.Q6J("ngIf",i.nzCloseText)("ngIfElse",e)}}function je(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,Je,2,2,"ng-container",2),t.YNc(2,Le,3,2,"div",3),t.YNc(3,$e,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let He=(()=>{class n{constructor(e,i,s){this.nzConfigService=e,this.cdr=i,this.directionality=s,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new k.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:i,nzDescription:s,nzType:a,nzBanner:c}=e;if(i&&(this.isShowIconSet=!0),a)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}s&&(this.iconTheme=this.nzDescription?"outline":"fill"),c&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,i){1&e&&t.YNc(0,je,4,23,"div",0),2&e&&t.Q6J("ngIf",!i.closed)},directives:[u.O5,M.Ls,P.f],encapsulation:2,data:{animation:[Be.Rq]},changeDetection:0}),(0,m.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzCloseable",void 0),(0,m.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzShowIcon",void 0),(0,m.gn)([(0,C.yF)()],n.prototype,"nzBanner",void 0),(0,m.gn)([(0,C.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),We=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,M.PV,P.T]]}),n})();var lt=l(4147),wt=l(5197);function Xe(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function Ke(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.hij(" ",e(i.nzPercent)," ")}}const tn=function(n){return{$implicit:n}};function en(n,o){if(1&n&&t.YNc(0,Ke,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,tn,e.nzPercent))}}function nn(n,o){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Xe,2,1,"ng-container",6),t.YNc(2,en,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===i.status||"success"===i.status)&&!i.nzFormat)("ngIfElse",e)}}function on(n,o){if(1&n&&t.YNc(0,nn,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function sn(n,o){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function an(n,o){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,sn,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function rn(n,o){}function ln(n,o){if(1&n&&(t.ynx(0),t.YNc(1,an,4,11,"div",11),t.YNc(2,rn,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function cn(n,o){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",o.$implicit)}function un(n,o){}function pn(n,o){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,cn,1,1,"div",19),t.YNc(2,un,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function gn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,ln,3,2,"ng-container",2),t.YNc(2,pn,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function dn(n,o){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=o.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function mn(n,o){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,dn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function _n(n,o){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=o.$implicit,i=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0)}}function hn(n,o){1&n&&t.O4$()}function fn(n,o){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,mn,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,_n,1,5,"path",23),t.qZA(),t.YNc(5,hn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),i=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}const ne=n=>{let o=[];return Object.keys(n).forEach(e=>{const i=n[e],s=function zn(n){return+n.replace("%","")}(e);isNaN(s)||o.push({key:s,value:i})}),o=o.sort((e,i)=>e.key-i.key),o};let xn=0;const ie="progress",kn=new Map([["success","check"],["exception","close"]]),vn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),yn=n=>`${n}%`;let oe=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzConfigService=i,this.directionality=s,this._nzModuleName=ie,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=xn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=a=>`${a}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new k.xQ}get formatter(){return this.nzFormat||yn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:i,nzGapPosition:s,nzStrokeLinecap:a,nzStrokeColor:c,nzGapDegree:p,nzType:r,nzStatus:z,nzPercent:Z,nzSuccessPercent:F,nzStrokeWidth:E}=e;z&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(Z||F)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,C.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(z||Z||F||c)&&this.updateIcon(),c&&this.setStrokeColor(),(s||a||p||r||Z||c||c)&&this.getCirclePaths(),(Z||i||E)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(ie).pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=kn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),i="small"===this.nzSize?2:14,s=[];for(let a=0;a{const Q=2===e.length&&0===E;return{stroke:this.isGradient&&!Q?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Q?vn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(F||0)/100*(a-c)}px ${a}px`,strokeDashoffset:`-${c/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,i=this.isGradient=!!e&&"string"!=typeof e;i&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:o="#1890ff",to:e="#1890ff",direction:i="to right"}=n,s=(0,m._T)(n,["from","to","direction"]);return 0!==Object.keys(s).length?`linear-gradient(${i}, ${ne(s).map(({key:c,value:p})=>`${p} ${c}%`).join(", ")})`:`linear-gradient(${i}, ${o}, ${e})`})(e):i&&this.isCircleStyle?this.circleGradient=(n=>ne(this.nzStrokeColor).map(({key:o,value:e})=>({offset:`${o}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(b.jY),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,i){1&e&&(t.YNc(0,on,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,gn,3,2,"div",2),t.YNc(4,fn,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===i.nzType)("ant-progress-small","small"===i.nzSize)("ant-progress-show-info",i.nzShowInfo)("ant-progress-circle",i.isCircleStyle)("ant-progress-steps",i.isSteps)("ant-progress-rtl","rtl"===i.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+i.status),t.xp6(1),t.Q6J("ngIf","line"===i.nzType),t.xp6(1),t.Q6J("ngIf",i.isCircleStyle))},directives:[u.O5,M.Ls,P.f,u.mk,u.tP,u.sg,u.PC],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,b.oS)()],n.prototype,"nzShowInfo",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzStrokeColor",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzSize",void 0),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzPercent",void 0),(0,m.gn)([(0,b.oS)(),(0,C.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,m.gn)([(0,b.oS)(),(0,C.Rn)()],n.prototype,"nzGapDegree",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzGapPosition",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzSteps",void 0),n})(),bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,M.PV,P.T]]}),n})();var J=l(592),se=l(925);let Sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez]]}),n})();const An=function(n){return{$implicit:n}};function Mn(n,o){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,An,e.nzValue))}}function Dn(n,o){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function On(n,o){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function Zn(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Dn,2,1,"span",4),t.YNc(2,On,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function wn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function Fn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function Nn(n,o){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,Fn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function Pn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function In(n,o){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,Pn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let En=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,u.dv)(this.locale_id,u.wE.Decimal),i=String(this.nzValue),[s,a]=i.split(e);this.displayInt=s,this.displayDecimal=a?`${e}${a}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,i){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Mn,1,4,"ng-container",1),t.YNc(2,Zn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!i.nzValueTemplate))},directives:[u.O5,u.tP],encapsulation:2,changeDetection:0}),n})(),ae=(()=>{class n{constructor(e,i){this.cdr=e,this.directionality=i,this.nzValueStyle={},this.dir="ltr",this.destroy$=new k.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,Nn,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,In,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===i.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",i.nzTitle),t.xp6(1),t.Q6J("ngStyle",i.nzValueStyle),t.xp6(1),t.Q6J("ngIf",i.nzPrefix),t.xp6(1),t.Q6J("nzValue",i.nzValue)("nzValueTemplate",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",i.nzSuffix))},directives:[En,P.f,u.PC,u.O5],encapsulation:2,changeDetection:0}),n})(),Bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,se.ud,P.T,Sn]]}),n})();var re=l(6787),Jn=l(1059),nt=l(7545),Qn=l(7138),x=l(2994),Un=l(6947),Ft=l(4090);function qn(n,o){1&n&&t.Hsn(0)}const Rn=["*"];function Ln(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function Yn(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ln,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Gn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function Vn(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Gn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function $n(n,o){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,Yn,2,1,"div",4),t.YNc(2,Vn,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function jn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Hn(n,o){}function Wn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,jn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Xn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Kn(n,o){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Xn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ti(n,o){}function ei(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Kn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,ti,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function ni(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Wn,7,5,"ng-container",2),t.YNc(2,ei,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function ii(n,o){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,ni,3,2,"ng-container",11),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function oi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ii,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function si(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function ai(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,si,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ri(n,o){}function li(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,ri,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function ci(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,ai,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,li,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ui(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ci,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function pi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function gi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,pi,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function di(n,o){}function mi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,di,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function _i(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,gi,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,mi,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function hi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,_i,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function fi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ui,2,1,"ng-container",2),t.YNc(2,hi,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let Nt=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new k.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,7),2&e){let s;t.iGM(s=t.CRH())&&(i.content=s.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:Rn,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,qn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzSpan",void 0),n})();const Ci={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let le=(()=>{class n{constructor(e,i,s,a){this.nzConfigService=e,this.cdr=i,this.breakpointService=s,this.directionality=a,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Ci,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=Ft.G_.md,this.destroy$=new k.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,Jn.O)(this.items),(0,v.R)(this.destroy$));(0,re.T)(e,e.pipe((0,nt.w)(()=>(0,re.T)(...this.items.map(i=>i.inputChange$)).pipe((0,Qn.e)(16)))),this.breakpointService.subscribe(Ft.WV).pipe((0,x.b)(i=>this.breakpoint=i))).pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],i=0;const s=this.realColumn=this.getColumn(),a=this.items.toArray(),c=a.length,p=[],r=()=>{p.push(e),e=[],i=0};for(let z=0;z=s?(i>s&&(0,Un.ZK)(`"nzColumn" is ${s} but we have row length ${i}`),e.push({title:F,content:E,span:s-(i-Q)}),r()):z===c-1?(e.push({title:F,content:E,span:s-(i-Q)}),r()):e.push({title:F,content:E,span:Q})}this.itemMatrix=p}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(Ft.r3),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,i,s){if(1&e&&t.Suo(s,Nt,4),2&e){let a;t.iGM(a=t.CRH())&&(i.items=a)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,i){2&e&&t.ekj("ant-descriptions-bordered",i.nzBordered)("ant-descriptions-middle","middle"===i.nzSize)("ant-descriptions-small","small"===i.nzSize)("ant-descriptions-rtl","rtl"===i.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,i){1&e&&(t.YNc(0,$n,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,oi,2,1,"ng-container",2),t.YNc(5,fi,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",i.nzTitle||i.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===i.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===i.nzLayout))},directives:[u.O5,P.f,u.sg,u.tP],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,C.yF)(),(0,b.oS)()],n.prototype,"nzBordered",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzColumn",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzSize",void 0),(0,m.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzColon",void 0),n})(),Ti=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,P.T,se.ud]]}),n})();var S=l(1086),xt=l(8896),kt=l(353),ce=l(6498),ue=l(3489);const pe={leading:!0,trailing:!1};class yi{constructor(o,e,i,s){this.duration=o,this.scheduler=e,this.leading=i,this.trailing=s}call(o,e){return e.subscribe(new bi(o,this.duration,this.scheduler,this.leading,this.trailing))}}class bi extends ue.L{constructor(o,e,i,s,a){super(o),this.duration=e,this.scheduler=i,this.leading=s,this.trailing=a,this._hasTrailingValue=!1,this._trailingValue=null}_next(o){this.throttled?this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Si,this.duration,{subscriber:this})),this.leading?this.destination.next(o):this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const o=this.throttled;o&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),o.unsubscribe(),this.remove(o),this.throttled=null)}}function Si(n){const{subscriber:o}=n;o.clearThrottle()}class Pt{constructor(o){this.changes=o}static of(o){return new Pt(o)}notEmpty(o){if(this.changes[o]){const e=this.changes[o].currentValue;if(null!=e)return(0,S.of)(e)}return xt.E}has(o){return this.changes[o]?(0,S.of)(this.changes[o].currentValue):xt.E}notFirst(o){return this.changes[o]&&!this.changes[o].isFirstChange()?(0,S.of)(this.changes[o].currentValue):xt.E}notFirstAndEmpty(o){if(this.changes[o]&&!this.changes[o].isFirstChange()){const e=this.changes[o].currentValue;if(null!=e)return(0,S.of)(e)}return xt.E}}const ge=new t.OlP("NGX_ECHARTS_CONFIG");let de=(()=>{class n{constructor(e,i,s){this.el=i,this.ngZone=s,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new k.xQ,this.echarts=e.echarts}ngOnChanges(e){const i=Pt.of(e);i.notFirstAndEmpty("options").subscribe(s=>this.onOptionsChange(s)),i.notFirstAndEmpty("merge").subscribe(s=>this.setOption(s)),i.has("loading").subscribe(s=>this.toggleLoading(!!s)),i.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function vi(n,o=kt.P,e=pe){return i=>i.lift(new yi(n,o,e.leading,e.trailing))}(100,kt.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,i){if(this.chart)try{this.chart.setOption(e,i)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){return(0,m.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const i=window.getComputedStyle(e,null).getPropertyValue("height");(!i||"0px"===i)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(e,this.theme,this.initOpts)))}initChart(){return(0,m.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,m.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,nt.w)(i=>new ce.y(s=>(i.on(e,a=>this.ngZone.run(()=>s.next(a))),()=>{this.chart&&(this.chart.isDisposed()||i.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ge),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[t.TTD]}),n})(),Ai=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:ge,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var Mi=l(4466),ct=l(2302),Di=l(4241);function vt(n=0,o=kt.P){return(!(0,Di.k)(n)||n<0)&&(n=0),(!o||"function"!=typeof o.schedule)&&(o=kt.P),new ce.y(e=>(e.add(o.schedule(Oi,n,{subscriber:e,counter:0,period:n})),e))}function Oi(n){const{subscriber:o,counter:e,period:i}=n;o.next(e),this.schedule({subscriber:o,counter:e+1,period:i},i)}var Zi=l(3009),wi=l(6688),yt=l(5430),It=l(1177);function Et(...n){const o=n[n.length-1];return"function"==typeof o&&n.pop(),(0,Zi.n)(n,void 0).lift(new Fi(o))}class Fi{constructor(o){this.resultSelector=o}call(o,e){return e.subscribe(new Ni(o,this.resultSelector))}}class Ni extends ue.L{constructor(o,e,i=Object.create(null)){super(o),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(o){const e=this.iterators;(0,wi.k)(o)?e.push(new Ii(o)):e.push("function"==typeof o[yt.hZ]?new Pi(o[yt.hZ]()):new Ei(this.destination,this,o))}_complete(){const o=this.iterators,e=o.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class Ei extends It.Ds{constructor(o,e,i){super(o),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[yt.hZ](){return this}next(){const o=this.buffer;return 0===o.length&&this.isComplete?{value:null,done:!0}:{value:o.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(o){this.buffer.push(o),this.parent.checkIterators()}subscribe(){return(0,It.ft)(this.observable,new It.IY(this))}}var Bt=l(534),it=l(7221),bt=l(7106),Jt=l(5278),Bi=l(2340),D=(()=>{return(n=D||(D={})).ALL="all",n.PREPARING="preparing",n.LIVING="living",n.ROUNDING="rounding",n.MONITOR_ENABLED="monitor_enabled",n.MONITOR_DISABLED="monitor_disabled",n.RECORDER_ENABLED="recorder_enabled",n.RECORDER_DISABLED="recorder_disabled",n.STOPPED="stopped",n.WAITTING="waitting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",D;var n})(),O=(()=>{return(n=O||(O={})).STOPPED="stopped",n.WAITING="waiting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",O;var n})(),ut=(()=>{return(n=ut||(ut={})).WAITING="waiting",n.REMUXING="remuxing",n.INJECTING="injecting",ut;var n})(),T=(()=>{return(n=T||(T={})).RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",n.COMPLETED="completed",n.MISSING="missing",n.BROKEN="broken",T;var n})(),Ji=l(520);const f=Bi.N.apiUrl;let St=(()=>{class n{constructor(e){this.http=e}getAllTaskData(e=D.ALL){return this.http.get(f+"/api/v1/tasks/data",{params:{select:e}})}getTaskData(e){return this.http.get(f+`/api/v1/tasks/${e}/data`)}getVideoFileDetails(e){return this.http.get(f+`/api/v1/tasks/${e}/videos`)}getDanmakuFileDetails(e){return this.http.get(f+`/api/v1/tasks/${e}/danmakus`)}getTaskParam(e){return this.http.get(f+`/api/v1/tasks/${e}/param`)}getMetadata(e){return this.http.get(f+`/api/v1/tasks/${e}/metadata`)}getStreamProfile(e){return this.http.get(f+`/api/v1/tasks/${e}/profile`)}updateAllTaskInfos(){return this.http.post(f+"/api/v1/tasks/info",null)}updateTaskInfo(e){return this.http.post(f+`/api/v1/tasks/${e}/info`,null)}addTask(e){return this.http.post(f+`/api/v1/tasks/${e}`,null)}removeTask(e){return this.http.delete(f+`/api/v1/tasks/${e}`)}removeAllTasks(){return this.http.delete(f+"/api/v1/tasks")}startTask(e){return this.http.post(f+`/api/v1/tasks/${e}/start`,null)}startAllTasks(){return this.http.post(f+"/api/v1/tasks/start",null)}stopTask(e,i=!1,s=!1){return this.http.post(f+`/api/v1/tasks/${e}/stop`,{force:i,background:s})}stopAllTasks(e=!1,i=!1){return this.http.post(f+"/api/v1/tasks/stop",{force:e,background:i})}enableTaskMonitor(e){return this.http.post(f+`/api/v1/tasks/${e}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(f+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(e,i=!1){return this.http.post(f+`/api/v1/tasks/${e}/monitor/disable`,{background:i})}disableAllMonitors(e=!1){return this.http.post(f+"/api/v1/tasks/monitor/disable",{background:e})}enableTaskRecorder(e){return this.http.post(f+`/api/v1/tasks/${e}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(f+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(e,i=!1,s=!1){return this.http.post(f+`/api/v1/tasks/${e}/recorder/disable`,{force:i,background:s})}disableAllRecorders(e=!1,i=!1){return this.http.post(f+"/api/v1/tasks/recorder/disable",{force:e,background:i})}cutStream(e){return this.http.post(f+`/api/v1/tasks/${e}/cut`,null)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ji.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Qi=l(7512),Ui=l(5545);let qi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.userInfo.name),t.xp6(2),t.Oqu(i.userInfo.gender),t.xp6(2),t.Oqu(i.userInfo.uid),t.xp6(2),t.Oqu(i.userInfo.level),t.xp6(2),t.hij(" ",i.userInfo.sign," "))},directives:[A.bd,le,Nt],styles:[""],changeDetection:0}),n})();function Ri(n,o){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Li(n,o){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Yi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Gi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function Vi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function $i(n,o){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e," ")}}function ji(n,o){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e)}}let Hi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Ri,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Li,2,0,"ng-container",10),t.YNc(14,Yi,2,0,"ng-container",10),t.YNc(15,Gi,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,Vi,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,$i,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,ji,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.roomInfo.title),t.xp6(2),t.AsE(" ",i.roomInfo.parent_area_name," - ",i.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",i.roomInfo.short_room_id),t.xp6(2),t.hij(" ",i.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",i.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==i.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.description.split("\n")))},directives:[A.bd,le,Nt,u.O5,u.RF,u.n9,u.sg,st],pipes:[u.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var j=l(2134);let me=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const i=Math.floor(e/3600),s=Math.floor(e/60%60),a=Math.floor(e%60);let c="";return i>0&&(c+=i+":"),c+=s<10?"0"+s:s,c+=":",c+=a<10?"0"+a:a,c}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})(),At=(()=>{class n{transform(e,i){if("string"==typeof e)e=parseFloat(e);else if("number"!=typeof e||isNaN(e))return"N/A";return(i=Object.assign({bitrate:!1,precision:3,spacer:" "},i)).bitrate?(0,j.AX)(e,i.spacer,i.precision):(0,j.N4)(e,i.spacer,i.precision)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"datarate",type:n,pure:!0}),n})();var Wi=l(855);let Mt=(()=>{class n{transform(e,i){return Wi(e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();const Xi={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};let Qt=(()=>{class n{transform(e){return Xi[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"quality",type:n,pure:!0}),n})();function Ki(n,o){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function to(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const eo=function(){return{spacer:" "}};function no(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,eo)))}}function io(n,o){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")")}}let oo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.N4)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:i=>(0,j.N4)(i)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Ki,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,to,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,no,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,io,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",p),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,i.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[A.bd,ae,de],pipes:[me,At,Mt,Qt,u.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function so(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function ao(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const ro=function(){return{bitrate:!0}};function lo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,ro)))}}const co=function(){return{spacer:" "}};function uo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,co)))}}let po=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.AX)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(i){return(0,j.AX)(i)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,so,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,ao,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,lo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,uo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",p),t.xp6(3),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[A.bd,ae,de],pipes:[At,Mt],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),Ut=(()=>{class n{transform(e){var i,s;return e?e.startsWith("/")?null!==(i=e.split("/").pop())&&void 0!==i?i:"":null!==(s=e.split("\\").pop())&&void 0!==s?s:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),_e=(()=>{class n{transform(e){return e&&0!==e.duration?Math.round(e.time/e.duration*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),go=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case ut.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case ut.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let s;t.Q6J("nzTitle",i.title)("nzLoading",i.loading),t.xp6(1),t.Q6J("title",i.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(s=i.taskStatus.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzPercent",null===i.taskStatus.postprocessing_progress?0:t.lcZ(5,7,i.taskStatus.postprocessing_progress))}},directives:[A.bd,oe],pipes:[Ut,_e],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const mo=new Map([[T.RECORDING,"\u5f55\u5236\u4e2d"],[T.INJECTING,"\u5904\u7406\u4e2d"],[T.REMUXING,"\u5904\u7406\u4e2d"],[T.COMPLETED,"\u5df2\u5b8c\u6210"],[T.MISSING,"\u4e0d\u5b58\u5728"],[T.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let _o=(()=>{class n{transform(e){var i;return null!==(i=mo.get(e))&&void 0!==i?i:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function ho(n,o){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function fo(n,o){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const he=[T.RECORDING,T.INJECTING,T.REMUXING,T.COMPLETED,T.MISSING];let zo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=T,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,i)=>e.path.localeCompare(i.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,i)=>{switch(e){case"video":return i.path.endsWith(".flv")||i.path.endsWith(".mp4");case"danmaku":return i.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,i)=>e.size-i.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,i)=>he.indexOf(e.status)-he.indexOf(i.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[T.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[T.INJECTING,T.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[T.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[T.MISSING]}],filterFn:(e,i)=>e.some(s=>s.some(a=>a===i.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,i){return i.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,ho,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,fo,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(2);t.Q6J("nzLoading",i.loading),t.xp6(1),t.Q6J("nzLoading",i.loading)("nzData",i.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",i.columns),t.xp6(2),t.Q6J("ngForOf",s.data)("ngForTrackBy",i.trackByPath)}},directives:[A.bd,J.N8,J.Om,J.$Z,u.sg,J.Uo,J._C,J.qD,J.p0],pipes:[Ut,u.JJ,Mt,_o],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function Co(n,o){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function To(n,o){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function xo(n,o){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ko(n,o){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function vo(n,o){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function yo(n,o){if(1&n&&(t.YNc(0,Co,1,2,"app-task-user-info-detail",2),t.YNc(1,To,1,2,"app-task-room-info-detail",3),t.YNc(2,xo,1,2,"app-task-recording-detail",4),t.YNc(3,ko,1,2,"app-task-network-detail",4),t.YNc(4,vo,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const bo=function(){return{"max-width":"unset"}},So=function(){return{"row-gap":"1em"}};let Ao=(()=>{class n{constructor(e,i,s,a,c){this.route=e,this.router=i,this.changeDetector=s,this.notification=a,this.taskService=c,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,S.of)((0,S.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>Et(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(([e,i,s])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=i,this.danmakuFileDetails=s,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.gz),t.Y36(ct.F0),t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,yo,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",i.loading)("pageStyles",t.DdM(3,bo))("contentStyles",t.DdM(4,So))},directives:[Qi.q,Ui.Y,u.O5,qi,Hi,oo,po,go,zo],styles:[""],changeDetection:0}),n})();var fe=l(2323),Mo=l(13),Do=l(5778),H=l(4850);const pt=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var qt=l(9727);let Rt=(()=>{class n{constructor(e,i){this.message=e,this.taskService=i}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,H.U)(e=>e.map(i=>i.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,x.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e")},i=>{this.message.error(`\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${i.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,x.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,H.U)(i=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,it.K)(i=>{let s;return s=409==i.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==i.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==i.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${i.message}`},(0,S.of)(s)}),(0,H.U)(i=>(i.message=`${e}: ${i.message}`,i)),(0,x.b)(i=>{this.message[i.type](i.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,x.b)(()=>{this.message.success("\u4efb\u52a1\u5df2\u5220\u9664")},i=>{this.message.error(`\u5220\u9664\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}startTask(e){const i=this.message.loading("\u6b63\u5728\u8fd0\u884c\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u8fd0\u884c\u4efb\u52a1")},s=>{this.message.remove(i),this.message.error(`\u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}stopTask(e,i=!1){const s=this.message.loading("\u6b63\u5728\u505c\u6b62\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopTask(e,i).pipe((0,x.b)(()=>{this.message.remove(s),this.message.success("\u6210\u529f\u505c\u6b62\u4efb\u52a1")},a=>{this.message.remove(s),this.message.error(`\u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}stopAllTasks(e=!1){const i=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},s=>{this.message.remove(i),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}enableRecorder(e){const i=this.message.loading("\u6b63\u5728\u5f00\u542f\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u5f00\u542f\u5f55\u5236")},s=>{this.message.remove(i),this.message.error(`\u5f00\u542f\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},i=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${i.message}`)}))}disableRecorder(e,i=!1){const s=this.message.loading("\u6b63\u5728\u5173\u95ed\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,i).pipe((0,x.b)(()=>{this.message.remove(s),this.message.success("\u6210\u529f\u5173\u95ed\u5f55\u5236")},a=>{this.message.remove(s),this.message.error(`\u5173\u95ed\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}disableAllRecorders(e=!1){const i=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},s=>{this.message.remove(i),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,x.b)(()=>{this.message.success("\u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1")},i=>{403==i.status?this.message.warning("\u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"):this.message.error(`\u5207\u5272\u6587\u4ef6\u51fa\u9519: ${i.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(qt.dD),t.LFG(St))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Lt=l(2683),gt=l(4219);function Oo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function Zo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function wo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),i=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function Fo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function No(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.YNc(1,Fo,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function Po(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function Io(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const s=t.MAs(2),a=t.oxw();return s.value="",a.onFilterInput("")}),t.qZA()}}function Eo(n,o){if(1&n&&t.YNc(0,Io,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function Bo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const s=t.MAs(2);return t.oxw().onFilterInput(s.value)}),t.qZA(),t.qZA(),t.YNc(3,Eo,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Jo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function Qo(n,o){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function qo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function Ro(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),i=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",i)}}function Lo(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Yo=function(){return{padding:"0"}};function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().drawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,Ro,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Lo,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),i=t.MAs(23);t.Q6J("nzTitle",i)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,Yo))("nzVisible",e.menuDrawerVisible)}}function Vo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let $o=(()=>{class n{constructor(e,i,s,a,c,p){this.message=s,this.modal=a,this.clipboard=c,this.taskManager=p,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new k.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new k.xQ,this.selections=[{label:"\u5168\u90e8",value:D.ALL},{label:"\u5f55\u5236\u4e2d",value:D.RECORDING},{label:"\u5f55\u5236\u5f00",value:D.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:D.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:D.MONITOR_ENABLED},{label:"\u505c\u6b62",value:D.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:D.LIVING},{label:"\u8f6e\u64ad",value:D.ROUNDING},{label:"\u95f2\u7f6e",value:D.PREPARING}],i.observe(pt).pipe((0,v.R)(this.destroyed)).subscribe(r=>{this.useDrawer=r.breakpoints[pt[0]],this.useSelector=r.breakpoints[pt[1]],this.useRadioGroup=r.breakpoints[pt[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,Mo.b)(300),(0,Do.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,i)=>{this.taskManager.removeAllTasks().subscribe(e,i)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopAllTasks(e).subscribe(i,s)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableAllRecorders(e).subscribe(i,s)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,H.U)(e=>e.join(" ")),(0,x.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(U.Yg),t.Y36(qt.dD),t.Y36($.Sf),t.Y36(q),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,Oo,8,4,"ng-container",1),t.YNc(2,Zo,8,4,"ng-container",1),t.YNc(3,wo,3,2,"ng-container",1),t.qZA(),t.YNc(4,No,2,2,"ng-template",null,2,t.W1O),t.YNc(6,Po,1,2,"ng-template",null,3,t.W1O),t.YNc(8,Bo,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Jo,4,3,"ng-template",null,5,t.W1O),t.YNc(12,Qo,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Uo,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,qo,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Go,4,7,"nz-drawer",11),t.YNc(22,Vo,3,0,"ng-template",null,12,t.W1O)),2&e){const s=t.MAs(18);t.ekj("use-drawer",i.useDrawer),t.xp6(1),t.Q6J("ngIf",i.useRadioGroup),t.xp6(1),t.Q6J("ngIf",i.useSelector),t.xp6(1),t.Q6J("ngIf",i.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",s),t.xp6(5),t.Q6J("ngIf",i.useDrawer)}},directives:[u.O5,u.tP,Xt.g,Tt.Dg,d.JJ,d.On,u.sg,Tt.Of,Tt.Bq,wt.Vq,Lt.w,et.gB,et.ke,et.Zp,M.Ls,Ct.ix,tt.wA,tt.cm,tt.RR,gt.wO,gt.r9,gt.YV,lt.Vz,lt.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var jo=l(5136);let Ho=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var i;const s=this.storage.getData(this.getStorageKey(e));return s&&null!==(i=JSON.parse(s))&&void 0!==i?i:{}}updateSettings(e,i){i=Object.assign(this.getSettings(e),i);const s=JSON.stringify(i);this.storage.setData(this.getStorageKey(e),s)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(fe.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n{constructor(e){this.changeDetector=e,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let i=0;i<=this.width;i+=2)this.data.push(0),this.points.push({x:i,y:this.height})}get polylinePoints(){return this.points.map(e=>`${e.x},${e.y}`).join(" ")}ngOnInit(){this.subscription=vt(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let e=Math.max(...this.data);this.points=this.data.map((i,s)=>({x:Math.min(2*s,this.width),y:(1-i/(e||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(e,i){1&e&&(t.O4$(),t.TgZ(0,"svg"),t._UZ(1,"polyline",0),t.qZA()),2&e&&(t.uIk("width",i.width)("height",i.height),t.xp6(1),t.uIk("stroke",i.stroke)("points",i.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),n})();function Xo(n,o){1&n&&(t.ynx(0),t._uU(1,", bluray"),t.BQk())}function Ko(n,o){if(1&n&&(t.TgZ(0,"li",4),t.TgZ(1,"span",5),t._uU(2,"\u6d41\u7f16\u7801\u5668"),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder)}}const Yt=function(){return{bitrate:!0}};function ts(n,o){if(1&n&&(t.TgZ(0,"ul",3),t.TgZ(1,"li",4),t.TgZ(2,"span",5),t._uU(3,"\u89c6\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(4,"span",6),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA(),t.TgZ(9,"span"),t._uU(10),t.qZA(),t.TgZ(11,"span"),t._uU(12),t.ALo(13,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",4),t.TgZ(15,"span",5),t._uU(16,"\u97f3\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(17,"span",6),t.TgZ(18,"span"),t._uU(19),t.qZA(),t.TgZ(20,"span"),t._uU(21),t.qZA(),t.TgZ(22,"span"),t._uU(23),t.qZA(),t.TgZ(24,"span"),t._uU(25),t.ALo(26,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(27,"li",4),t.TgZ(28,"span",5),t._uU(29,"\u683c\u5f0f\u753b\u8d28"),t.qZA(),t.TgZ(30,"span",6),t.TgZ(31,"span"),t._uU(32),t.qZA(),t.TgZ(33,"span"),t._uU(34),t.ALo(35,"quality"),t.YNc(36,Xo,2,0,"ng-container",7),t._uU(37,") "),t.qZA(),t.qZA(),t.qZA(),t.YNc(38,Ko,5,1,"li",8),t.TgZ(39,"li",4),t.TgZ(40,"span",5),t._uU(41,"\u6d41\u4e3b\u673a\u540d"),t.qZA(),t.TgZ(42,"span",6),t._uU(43),t.qZA(),t.qZA(),t.TgZ(44,"li",4),t.TgZ(45,"span",5),t._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),t.qZA(),t._UZ(47,"app-wave-graph",9),t.TgZ(48,"span",6),t._uU(49),t.ALo(50,"datarate"),t.qZA(),t.qZA(),t.TgZ(51,"li",4),t.TgZ(52,"span",5),t._uU(53,"\u5f55\u5236\u901f\u5ea6"),t.qZA(),t._UZ(54,"app-wave-graph",9),t.TgZ(55,"span",6),t._uU(56),t.ALo(57,"datarate"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.hij(" ",null==e.profile.streams[0]?null:e.profile.streams[0].codec_name," "),t.xp6(2),t.AsE(" ",null==e.profile.streams[0]?null:e.profile.streams[0].width,"x",null==e.profile.streams[0]?null:e.profile.streams[0].height," "),t.xp6(2),t.hij(" ",(null==e.profile.streams[0]?null:e.profile.streams[0].r_frame_rate).split("/")[0]," fps"),t.xp6(2),t.hij(" ",t.xi3(13,19,1e3*e.metadata.videodatarate,t.DdM(32,Yt))," "),t.xp6(7),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].codec_name," "),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].sample_rate," HZ"),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].channel_layout," "),t.xp6(2),t.hij(" ",t.xi3(26,22,1e3*e.metadata.audiodatarate,t.DdM(33,Yt))," "),t.xp6(7),t.hij(" ",e.data.task_status.real_stream_format," "),t.xp6(2),t.AsE(" ",t.lcZ(35,25,e.data.task_status.real_quality_number)," (",e.data.task_status.real_quality_number,""),t.xp6(2),t.Q6J("ngIf",e.isBlurayStreamQuality()),t.xp6(2),t.Q6J("ngIf",null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder),t.xp6(5),t.hij(" ",e.data.task_status.stream_host," "),t.xp6(4),t.Q6J("value",e.data.task_status.dl_rate),t.xp6(2),t.hij(" ",t.xi3(50,27,e.data.task_status.dl_rate,t.DdM(34,Yt))," "),t.xp6(5),t.Q6J("value",e.data.task_status.rec_rate),t.xp6(2),t.hij(" ",t.lcZ(57,30,e.data.task_status.rec_rate)," ")}}let es=(()=>{class n{constructor(e,i,s){this.changeDetector=e,this.notification=i,this.taskService=s,this.metadata=null,this.close=new t.vpe,this.RunningStatus=O}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(e){e.preventDefault(),e.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,S.of)((0,S.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>Et(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(3,1e3)).subscribe(([e,i])=>{this.profile=e,this.metadata=i,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"button",1),t.NdJ("click",function(a){return i.closePanel(a)}),t._uU(2," [x] "),t.qZA(),t.YNc(3,ts,58,35,"ul",2),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.data.task_status.running_status===i.RunningStatus.RECORDING&&i.profile&&i.profile.streams&&i.profile.format&&i.metadata))},directives:[u.O5,Wo],pipes:[At,Qt],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),n})();const ze=function(){return{spacer:""}};function ns(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,ze))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ze))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",t.lcZ(19,20,e.status.real_quality_number)," ")}}function is(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function os(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let ss=(()=>{class n{constructor(){this.RunningStatus=O}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,i){1&e&&(t.ynx(0,0),t.YNc(1,ns,20,24,"div",1),t.YNc(2,is,7,13,"div",1),t.YNc(3,os,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",i.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.REMUXING))},directives:[u.RF,u.n9,rt.SY,oe],pipes:[me,At,Mt,u.JJ,Qt,Ut,_e],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var I=l(3523),w=l(8737);function as(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function rs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ls(n,o){if(1&n&&(t.YNc(0,as,2,0,"ng-container",61),t.YNc(1,rs,2,0,"ng-container",61)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function cs(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f"),t._UZ(2,"br"),t._UZ(3,"br"),t._uU(4," FLV \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e "),t._UZ(5,"br"),t._uU(6," HLS (ts) \u57fa\u672c\u4e0d\u53d7\u672c\u5730\u7f51\u7edc\u5f71\u54cd "),t._UZ(7,"br"),t._uU(8," HLS (fmp4) \u53ea\u6709\u5c11\u6570\u76f4\u64ad\u95f4\u652f\u6301 "),t._UZ(9,"br"),t._UZ(10,"br"),t._uU(11," P.S."),t._UZ(12,"br"),t._uU(13," \u975e FLV \u683c\u5f0f\u9700\u8981 ffmpeg"),t._UZ(14,"br"),t._uU(15," HLS (fmp4) \u4e0d\u652f\u6301\u4f1a\u81ea\u52a8\u5207\u6362\u5230 HLS (ts)"),t._UZ(16,"br"),t.qZA())}function us(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function ps(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function gs(n,o){1&n&&t.YNc(0,ps,2,0,"ng-container",61),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function ds(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.pathTemplate=s}),t.qZA(),t.YNc(10,ls,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.pathTemplate=s?a.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",10),t.TgZ(15,"nz-form-label",11),t._uU(16,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(17,"nz-form-control",12),t.TgZ(18,"nz-select",13),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.filesizeLimit=s}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.filesizeLimit=s?a.globalSettings.output.filesizeLimit:null}),t._uU(20,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",10),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(24,"nz-form-control",12),t.TgZ(25,"nz-select",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.durationLimit=s}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.durationLimit=s?a.globalSettings.output.durationLimit:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",15),t.TgZ(29,"h2"),t._uU(30,"\u5f55\u5236"),t.qZA(),t.TgZ(31,"nz-form-item",10),t.TgZ(32,"nz-form-label",11),t._uU(33,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(34,cs,17,0,"ng-template",null,16,t.W1O),t.TgZ(36,"nz-form-control",12),t.TgZ(37,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.streamFormat=s}),t.qZA(),t.qZA(),t.TgZ(38,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.streamFormat=s?a.globalSettings.recorder.streamFormat:null}),t._uU(39,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",10),t.TgZ(41,"nz-form-label",18),t._uU(42,"\u753b\u8d28"),t.qZA(),t.TgZ(43,"nz-form-control",12),t.TgZ(44,"nz-select",19),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.qualityNumber=s}),t.qZA(),t.qZA(),t.TgZ(45,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.qualityNumber=s?a.globalSettings.recorder.qualityNumber:null}),t._uU(46,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(47,"nz-form-item",10),t.TgZ(48,"nz-form-label",20),t._uU(49,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(50,"nz-form-control",21),t.TgZ(51,"nz-switch",22),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.saveCover=s}),t.qZA(),t.qZA(),t.TgZ(52,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.saveCover=s?a.globalSettings.recorder.saveCover:null}),t._uU(53,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(54,"nz-form-item",10),t.TgZ(55,"nz-form-label",23),t._uU(56,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(57,"nz-form-control",24),t.TgZ(58,"nz-select",25,26),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.readTimeout=s}),t.qZA(),t.qZA(),t.TgZ(60,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.readTimeout=s?a.globalSettings.recorder.readTimeout:null}),t._uU(61,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(62,"nz-form-item",10),t.TgZ(63,"nz-form-label",27),t._uU(64,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(65,"nz-form-control",12),t.TgZ(66,"nz-select",28),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=s}),t.qZA(),t.qZA(),t.TgZ(67,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(68,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(69,"nz-form-item",10),t.TgZ(70,"nz-form-label",29),t._uU(71,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(72,"nz-form-control",12),t.TgZ(73,"nz-select",30),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.bufferSize=s}),t.qZA(),t.qZA(),t.TgZ(74,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(75,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(76,"div",31),t.TgZ(77,"h2"),t._uU(78,"\u5f39\u5e55"),t.qZA(),t.TgZ(79,"nz-form-item",10),t.TgZ(80,"nz-form-label",32),t._uU(81,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(82,"nz-form-control",21),t.TgZ(83,"nz-switch",33),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=s}),t.qZA(),t.qZA(),t.TgZ(84,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGiftSend=s?a.globalSettings.danmaku.recordGiftSend:null}),t._uU(85,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(86,"nz-form-item",10),t.TgZ(87,"nz-form-label",34),t._uU(88,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(89,"nz-form-control",21),t.TgZ(90,"nz-switch",35),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=s}),t.qZA(),t.qZA(),t.TgZ(91,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordFreeGifts=s?a.globalSettings.danmaku.recordFreeGifts:null}),t._uU(92,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(93,"nz-form-item",10),t.TgZ(94,"nz-form-label",36),t._uU(95,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(96,"nz-form-control",21),t.TgZ(97,"nz-switch",37),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=s}),t.qZA(),t.qZA(),t.TgZ(98,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGuardBuy=s?a.globalSettings.danmaku.recordGuardBuy:null}),t._uU(99,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(100,"nz-form-item",10),t.TgZ(101,"nz-form-label",38),t._uU(102,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(103,"nz-form-control",21),t.TgZ(104,"nz-switch",39),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=s}),t.qZA(),t.qZA(),t.TgZ(105,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordSuperChat=s?a.globalSettings.danmaku.recordSuperChat:null}),t._uU(106,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(107,"nz-form-item",10),t.TgZ(108,"nz-form-label",40),t._uU(109,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(110,"nz-form-control",21),t.TgZ(111,"nz-switch",41),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.danmuUname=s}),t.qZA(),t.qZA(),t.TgZ(112,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.danmuUname=s?a.globalSettings.danmaku.danmuUname:null}),t._uU(113,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(114,"nz-form-item",10),t.TgZ(115,"nz-form-label",42),t._uU(116,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(117,"nz-form-control",21),t.TgZ(118,"nz-switch",43),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=s}),t.qZA(),t.qZA(),t.TgZ(119,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.saveRawDanmaku=s?a.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(120,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(121,"div",44),t.TgZ(122,"h2"),t._uU(123,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(124,"nz-form-item",10),t.TgZ(125,"nz-form-label",45),t._uU(126,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(127,"nz-form-control",21),t.TgZ(128,"nz-switch",46),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=s}),t.qZA(),t.qZA(),t.TgZ(129,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.injectExtraMetadata=s?a.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(130,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(131,"nz-form-item",10),t.TgZ(132,"nz-form-label",47),t._uU(133,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(134,"nz-form-control",21),t.TgZ(135,"nz-switch",48),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=s}),t.qZA(),t.qZA(),t.TgZ(136,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.remuxToMp4=s?a.globalSettings.postprocessing.remuxToMp4:null}),t._uU(137,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(138,"nz-form-item",10),t.TgZ(139,"nz-form-label",11),t._uU(140,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(141,us,7,0,"ng-template",null,49,t.W1O),t.TgZ(143,"nz-form-control",12),t.TgZ(144,"nz-select",50),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=s}),t.qZA(),t.qZA(),t.TgZ(145,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.deleteSource=s?a.globalSettings.postprocessing.deleteSource:null}),t._uU(146,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(147,"div",51),t.TgZ(148,"h2"),t._uU(149,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(150,"nz-form-item",52),t.TgZ(151,"nz-form-label",53),t._uU(152,"User Agent"),t.qZA(),t.TgZ(153,"nz-form-control",54),t.TgZ(154,"textarea",55,56),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.userAgent=s}),t.qZA(),t.qZA(),t.YNc(156,gs,1,1,"ng-template",null,8,t.W1O),t.TgZ(158,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.userAgent=s?a.globalSettings.header.userAgent:null}),t._uU(159,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(160,"nz-form-item",52),t.TgZ(161,"nz-form-label",57),t._uU(162,"Cookie"),t.qZA(),t.TgZ(163,"nz-form-control",58),t.TgZ(164,"textarea",59,60),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.cookie=s}),t.qZA(),t.qZA(),t.TgZ(166,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.cookie=s?a.globalSettings.header.cookie:null}),t._uU(167,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),i=t.MAs(35),s=t.MAs(59),a=t.MAs(142),c=t.MAs(155),p=t.MAs(165),r=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern)("ngModel",r.model.output.pathTemplate)("disabled",null===r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.filesizeLimit)("disabled",null===r.options.output.filesizeLimit)("nzOptions",r.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.durationLimit)("disabled",null===r.options.output.durationLimit)("nzOptions",r.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.durationLimit),t.xp6(6),t.Q6J("nzTooltipTitle",i),t.xp6(5),t.Q6J("ngModel",r.model.recorder.streamFormat)("disabled",null===r.options.recorder.streamFormat)("nzOptions",r.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.streamFormat),t.xp6(6),t.Q6J("ngModel",r.model.recorder.qualityNumber)("disabled",null===r.options.recorder.qualityNumber)("nzOptions",r.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",r.model.recorder.saveCover)("disabled",null===r.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.saveCover),t.xp6(5),t.Q6J("nzValidateStatus",s.value>3?"warning":s),t.xp6(1),t.Q6J("ngModel",r.model.recorder.readTimeout)("disabled",null===r.options.recorder.readTimeout)("nzOptions",r.timeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==r.options.recorder.readTimeout),t.xp6(6),t.Q6J("ngModel",r.model.recorder.disconnectionTimeout)("disabled",null===r.options.recorder.disconnectionTimeout)("nzOptions",r.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(6),t.Q6J("ngModel",r.model.recorder.bufferSize)("disabled",null===r.options.recorder.bufferSize)("nzOptions",r.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(9),t.Q6J("ngModel",r.model.danmaku.recordGiftSend)("disabled",null===r.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordFreeGifts)("disabled",null===r.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordGuardBuy)("disabled",null===r.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordSuperChat)("disabled",null===r.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.danmuUname)("disabled",null===r.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.saveRawDanmaku)("disabled",null===r.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.saveRawDanmaku),t.xp6(9),t.Q6J("ngModel",r.model.postprocessing.injectExtraMetadata)("disabled",null===r.options.postprocessing.injectExtraMetadata||!!r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.injectExtraMetadata),t.xp6(6),t.Q6J("ngModel",r.model.postprocessing.remuxToMp4)("disabled",null===r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",r.model.postprocessing.deleteSource)("disabled",null===r.options.postprocessing.deleteSource||!r.options.postprocessing.remuxToMp4)("nzOptions",r.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",c.valid&&r.options.header.userAgent!==r.taskOptions.header.userAgent&&r.options.header.userAgent!==r.globalSettings.header.userAgent?"warning":c)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.userAgent)("disabled",null===r.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==r.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",p.valid&&r.options.header.cookie!==r.taskOptions.header.cookie&&r.options.header.cookie!==r.globalSettings.header.cookie?"warning":p),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.cookie)("disabled",null===r.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==r.options.header.cookie)}}let ms=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.splitFileTip=w.Uk,this.pathTemplatePattern=w._m,this.filesizeLimitOptions=(0,I.Z)(w.Pu),this.durationLimitOptions=(0,I.Z)(w.Fg),this.streamFormatOptions=(0,I.Z)(w.tp),this.qualityOptions=(0,I.Z)(w.O6),this.timeoutOptions=(0,I.Z)(w.D4),this.disconnectionTimeoutOptions=(0,I.Z)(w.$w),this.bufferOptions=(0,I.Z)(w.Rc),this.deleteStrategies=(0,I.Z)(w.rc)}ngOnChanges(){this.options=(0,I.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,j.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const i of Object.keys(this.options)){const c=this.globalSettings[i];Reflect.set(e,i,new Proxy(this.options[i],{get:(p,r)=>{var z;return null!==(z=Reflect.get(p,r))&&void 0!==z?z:Reflect.get(c,r)},set:(p,r,z)=>Reflect.set(p,r,z)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(d.F,5),2&e){let s;t.iGM(s=t.CRH())&&(i.ngForm=s.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["errorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","recorder",1,"form-group","recorder"],["streamFormatTip",""],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()})("nzAfterOpen",function(){return i.afterOpen.emit()})("nzAfterClose",function(){return i.afterClose.emit()}),t.YNc(1,ds,168,84,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",null==i.ngForm||null==i.ngForm.form?null:i.ngForm.form.invalid)},directives:[$.du,$.Hf,d._Y,d.JL,d.F,B.Lr,d.Mq,N.SK,B.Nx,N.t3,B.iK,B.Fd,et.Zp,d.Fj,d.Q7,d.c5,d.JJ,d.On,u.O5,Wt.Ie,wt.Vq,Zt.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}"],changeDetection:0}),n})();function Ce(n,o,e,i,s,a,c){try{var p=n[a](c),r=p.value}catch(z){return void e(z)}p.done?o(r):Promise.resolve(r).then(i,s)}var Gt=l(5254),hs=l(3753),fs=l(2313);const Vt=new Map,$t=new Map;let zs=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,i="object"){return"object"===i?$t.has(e)?(0,S.of)($t.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,H.U)(s=>URL.createObjectURL(s)),(0,H.U)(s=>this.domSanitizer.bypassSecurityTrustUrl(s)),(0,x.b)(s=>$t.set(e,s)),(0,it.K)(()=>(0,S.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):Vt.has(e)?(0,S.of)(Vt.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,nt.w)(s=>this.createDataURL(s)),(0,x.b)(s=>Vt.set(e,s)),(0,it.K)(()=>(0,S.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function _s(n){return function(){var o=this,e=arguments;return new Promise(function(i,s){var a=n.apply(o,e);function c(r){Ce(a,i,s,c,p,"next",r)}function p(r){Ce(a,i,s,c,p,"throw",r)}c(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const i=new FileReader,s=(0,hs.R)(i,"load").pipe((0,H.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(i.result)));return i.readAsDataURL(e),s}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fs.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function Cs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const Ts=function(n){return[n,"detail"]};function xs(n,o){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,Cs,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,Ts,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function ks(n,o){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function vs(n,o){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function ys(n,o){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function bs(n,o){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function Ss(n,o){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,vs,4,0,"nz-tag",28),t.YNc(7,ys,4,0,"nz-tag",29),t.YNc(8,bs,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function As(n,o){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function Ms(n,o){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,As,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function Ds(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function Os(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Zs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(s){return t.CHM(e),t.oxw(2).settingsDialogVisible=s})("confirm",function(s){return t.CHM(e),t.oxw(2).changeTaskOptions(s)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function ws(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,Zs,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function Fs(n,o){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function Ns(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function Ps(n,o){if(1&n&&(t.YNc(0,Fs,2,1,"div",52),t.YNc(1,Ns,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function Is(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function Es(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Bs=function(){return{padding:"0"}};function Js(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Es,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,Bs))("nzVisible",e.menuDrawerVisible)}}const Qs=function(n,o,e,i){return[n,o,e,i]},Us=function(){return{padding:"0.5rem"}},qs=function(){return{size:"large"}};let Rs=(()=>{class n{constructor(e,i,s,a,c,p,r){this.changeDetector=i,this.message=s,this.modal=a,this.settingService=c,this.taskManager=p,this.appTaskSettings=r,this.stopped=!1,this.destroyed=new k.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=O,e.observe(pt[0]).pipe((0,v.R)(this.destroyed)).subscribe(z=>{this.useDrawer=z.matches,i.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===O.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===O.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==O.STOPPED?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopTask(this.roomId,e).subscribe(i,s)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(i,s)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){Et(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,i])=>{this.taskOptions=e,this.globalSettings=i,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,bt.X)(3,300)).subscribe(i=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},i=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)})}cutStream(){this.data.task_status.running_status===O.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.Yg),t.Y36(t.sBO),t.Y36(qt.dD),t.Y36($.Sf),t.Y36(jo.R),t.Y36(Rt),t.Y36(Ho))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("stopped",i.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,xs,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ks,3,7,"ng-template",null,4,t.W1O),t.YNc(7,Ss,9,6,"ng-template",null,5,t.W1O),t.YNc(9,Ms,12,7,"ng-template",null,6,t.W1O),t.YNc(11,Ds,1,4,"ng-template",null,7,t.W1O),t.YNc(13,Os,2,2,"ng-template",null,8,t.W1O),t.YNc(15,ws,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Ps,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,Is,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Js,2,4,"nz-drawer",14)),2&e){const s=t.MAs(4),a=t.MAs(6),c=t.MAs(8),p=t.MAs(10),r=t.MAs(12),z=t.MAs(14),Z=t.MAs(16),F=t.MAs(18),E=t.MAs(23);t.Q6J("nzCover",s)("nzHoverable",!0)("nzActions",t.l5B(12,Qs,z,Z,r,F))("nzBodyStyle",t.DdM(17,Us)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!i.data)("nzAvatar",t.DdM(18,qs)),t.xp6(1),t.Q6J("nzAvatar",a)("nzTitle",c)("nzDescription",p),t.xp6(19),t.Q6J("ngTemplateOutlet",E),t.xp6(3),t.Q6J("ngIf",i.useDrawer)}},directives:[A.bd,ye,A.l7,ct.yS,rt.SY,u.O5,es,ss,at.Dz,u.RF,u.n9,st,M.Ls,Lt.w,Zt.i,d.JJ,d.On,ms,tt.cm,tt.RR,u.tP,gt.wO,gt.r9,lt.Vz,lt.SQ],pipes:[u.Ov,zs],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function Ls(n,o){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Ys(n,o){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",o.$implicit)}function Gs(n,o){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Ys,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let Vs=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,i){return i.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,i){if(1&e&&(t.YNc(0,Ls,2,0,"div",0),t.YNc(1,Gs,3,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",0===i.dataList.length)("ngIfElse",s)}},directives:[u.O5,Kt.p9,u.sg,Rs],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var $s=l(2643),js=l(1406);function Hs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function Ws(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function Xs(n,o){if(1&n&&(t.YNc(0,Hs,2,0,"ng-container",8),t.YNc(1,Ws,2,0,"ng-container",8)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ks(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function ta(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Xs,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,Ks,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",i.pattern),t.xp6(4),t.Q6J("ngForOf",i.resultMessages)}}const ea=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,na=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let ia=(()=>{class n{constructor(e,i,s){this.changeDetector=i,this.taskManager=s,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=na,this.formGroup=e.group({input:["",[d.kI.required,d.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let i;i=e.startsWith("http")?[parseInt(ea.exec(e)[1])]:new Set(e.split(/\s+/).map(s=>parseInt(s))),(0,Gt.D)(i).pipe((0,js.b)(s=>this.taskManager.addTask(s)),(0,x.b)(s=>{this.resultMessages.push(s),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(s=>"success"===s.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.qu),t.Y36(t.sBO),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,ta,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkLoading",i.pending)("nzOkDisabled",i.formGroup.invalid)("nzCancelDisabled",i.pending)("nzClosable",!i.pending)("nzMaskClosable",!i.pending)},directives:[$.du,$.Hf,d._Y,d.JL,B.Lr,d.sg,N.SK,B.Nx,N.t3,B.Fd,et.Zp,d.Fj,d.Q7,d.JJ,d.u,d.c5,u.O5,u.sg,He],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),sa=(()=>{class n{transform(e,i=""){return console.debug("filter tasks by '%s'",i),[...this.filterByTerm(e,i)]}filterByTerm(e,i){return function*oa(n,o){for(const e of n)o(e)&&(yield e)}(e,s=>""===(i=i.trim())||s.user_info.name.includes(i)||s.room_info.title.toString().includes(i)||s.room_info.area_name.toString().includes(i)||s.room_info.room_id.toString().includes(i)||s.room_info.short_room_id.toString().includes(i))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function aa(n,o){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function ra(n,o){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const Te="app-tasks-selection",xe="app-tasks-reverse",la=[{path:":id/detail",component:Ao},{path:"",component:(()=>{class n{constructor(e,i,s,a){this.changeDetector=e,this.notification=i,this.storage=s,this.taskService=a,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(Te);return null!==e?e:D.ALL}retrieveReverse(){return"true"===this.storage.getData(xe)}storeSelection(e){this.storage.setData(Te,e)}storeReverse(e){this.storage.setData(xe,e.toString())}syncTaskData(){this.dataSubscription=(0,S.of)((0,S.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(fe.V),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,i){if(1&e){const s=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(c){return i.onSelectionChanged(c)})("reverseChange",function(c){return i.onReverseChanged(c)})("filterChange",function(c){return i.filterTerm=c}),t.qZA(),t.YNc(1,aa,1,2,"nz-spin",1),t.YNc(2,ra,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(s),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const s=t.MAs(3);t.Q6J("selection",i.selection)("reverse",i.reverse),t.xp6(1),t.Q6J("ngIf",i.loading)("ngIfElse",s)}},directives:[$o,u.O5,te.W,Vs,Ct.ix,$s.dQ,Lt.w,rt.SY,M.Ls,ia],pipes:[sa],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let ca=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ct.Bz.forChild(la)],ct.Bz]}),n})(),ua=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez,d.u5,d.UX,U.xu,dt,N.Jb,A.vh,Ht,at.Rt,M.PV,Ht,rt.cg,G,Zt.m,tt.b1,Ct.sL,$.Qp,B.U5,et.o7,Wt.Wr,Ee,Tt.aF,Xt.S,Kt.Xo,te.j,We,lt.BL,wt.LV,bn,J.HQ,Bn,Ti,Ai.forRoot({echarts:()=>l.e(45).then(l.bind(l,8045))}),ca,Mi.m]]}),n})()},855:function(jt){jt.exports=function(){"use strict";var ot=/^(b|B)$/,l={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},u={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},d={floor:Math.floor,ceil:Math.ceil};function U(t){var _,q,R,W,dt,N,A,M,m,k,v,L,C,y,Y,X,st,G,at,Dt,V,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],K=0;if(isNaN(t))throw new TypeError("Invalid number");if(R=!0===h.bits,Y=!0===h.unix,L=!0===h.pad,C=void 0!==h.round?h.round:Y?1:2,A=void 0!==h.locale?h.locale:"",M=h.localeOptions||{},X=void 0!==h.separator?h.separator:"",st=void 0!==h.spacer?h.spacer:Y?"":" ",at=h.symbols||{},G=2===(q=h.base||2)&&h.standard||"jedec",v=h.output||"string",dt=!0===h.fullform,N=h.fullforms instanceof Array?h.fullforms:[],_=void 0!==h.exponent?h.exponent:-1,Dt=d[h.roundingMethod]||Math.round,m=(k=Number(t))<0,W=q>2?1e3:1024,V=!1===isNaN(h.precision)?parseInt(h.precision,10):0,m&&(k=-k),(-1===_||isNaN(_))&&(_=Math.floor(Math.log(k)/Math.log(W)))<0&&(_=0),_>8&&(V>0&&(V+=8-_),_=8),"exponent"===v)return _;if(0===k)g[0]=0,y=g[1]=Y?"":l[G][R?"bits":"bytes"][_];else{K=k/(2===q?Math.pow(2,10*_):Math.pow(1e3,_)),R&&(K*=8)>=W&&_<8&&(K/=W,_++);var mt=Math.pow(10,_>0?C:0);g[0]=Dt(K*mt)/mt,g[0]===W&&_<8&&void 0===h.exponent&&(g[0]=1,_++),y=g[1]=10===q&&1===_?R?"kb":"kB":l[G][R?"bits":"bytes"][_],Y&&(g[1]="jedec"===G?g[1].charAt(0):_>0?g[1].replace(/B$/,""):g[1],ot.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))}if(m&&(g[0]=-g[0]),V>0&&(g[0]=g[0].toPrecision(V)),g[1]=at[g[1]]||g[1],!0===A?g[0]=g[0].toLocaleString():A.length>0?g[0]=g[0].toLocaleString(A,M):X.length>0&&(g[0]=g[0].toString().replace(".",X)),L&&!1===Number.isInteger(g[0])&&C>0){var _t=X||".",ht=g[0].toString().split(_t),ft=ht[1]||"",zt=ft.length,Ot=C-zt;g[0]="".concat(ht[0]).concat(_t).concat(ft.padEnd(zt+Ot,"0"))}return dt&&(g[1]=N[_]?N[_]:u[G][_]+(R?"bit":"byte")+(1===g[0]?"":"s")),"array"===v?g:"object"===v?{value:g[0],symbol:g[1],exponent:_,unit:y}:g.join(st)}return U.partial=function(t){return function(_){return U(_,t)}},U}()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/index.html b/src/blrec/data/webapp/index.html index e43e477..afef590 100644 --- a/src/blrec/data/webapp/index.html +++ b/src/blrec/data/webapp/index.html @@ -10,6 +10,6 @@ - + \ No newline at end of file diff --git a/src/blrec/data/webapp/main.042620305008901b.js b/src/blrec/data/webapp/main.8a8c73fae6ff9291.js similarity index 99% rename from src/blrec/data/webapp/main.042620305008901b.js rename to src/blrec/data/webapp/main.8a8c73fae6ff9291.js index 4ae1ac4..8f44270 100644 --- a/src/blrec/data/webapp/main.042620305008901b.js +++ b/src/blrec/data/webapp/main.8a8c73fae6ff9291.js @@ -1 +1 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(yt,be,p)=>{p.d(be,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(yt,be,p)=>{p.d(be,{V:()=>s});var a=p(5e3);let s=(()=>{class G{constructor(){this.impl=localStorage}hasData(q){return null!==this.getData(q)}getData(q){return this.impl.getItem(q)}setData(q,_){this.impl.setItem(q,_)}removeData(q){this.impl.removeItem(q)}clearData(){this.impl.clear()}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})()},2340:(yt,be,p)=>{p.d(be,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(2306)._z.DEBUG,traceRouterScrolling:!1}},434:(yt,be,p)=>{var a=p(2313),s=p(5e3),G=p(4182),oe=p(520),q=p(5113),_=p(6360),W=p(9808);const I=void 0,H=["zh",[["\u4e0a\u5348","\u4e0b\u5348"],I,I],I,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],I,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]],I,[["\u516c\u5143\u524d","\u516c\u5143"],I,I],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",I,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",I,I,I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"CNY","\xa5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],PHP:[I,"\u20b1"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function R(Te){return 5}];var B=p(8514),ee=p(1737),ye=p(3753),Ye=p(1086),Fe=p(1961),ze=p(8929),_e=p(6498),vt=p(7876);const Je=new _e.y(vt.Z);var ut=p(6787),Ie=p(4850),$e=p(2198),et=p(7545),Se=p(2536),J=p(2986),fe=p(2994),he=p(8583);const te="Service workers are disabled or not supported by this browser";class ie{constructor(Ze){if(this.serviceWorker=Ze,Ze){const rt=(0,ye.R)(Ze,"controllerchange").pipe((0,Ie.U)(()=>Ze.controller)),Wt=(0,B.P)(()=>(0,Ye.of)(Ze.controller)),on=(0,Fe.z)(Wt,rt);this.worker=on.pipe((0,$e.h)(Rn=>!!Rn)),this.registration=this.worker.pipe((0,et.w)(()=>Ze.getRegistration()));const Nn=(0,ye.R)(Ze,"message").pipe((0,Ie.U)(Rn=>Rn.data)).pipe((0,$e.h)(Rn=>Rn&&Rn.type)).pipe(function Xe(Te){return Te?(0,Se.O)(()=>new ze.xQ,Te):(0,Se.O)(new ze.xQ)}());Nn.connect(),this.events=Nn}else this.worker=this.events=this.registration=function le(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(te)}postMessage(Ze,De){return this.worker.pipe((0,J.q)(1),(0,fe.b)(rt=>{rt.postMessage(Object.assign({action:Ze},De))})).toPromise().then(()=>{})}postMessageWithOperation(Ze,De,rt){const Wt=this.waitForOperationCompleted(rt),on=this.postMessage(Ze,De);return Promise.all([on,Wt]).then(([,Lt])=>Lt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ze){let De;return De="string"==typeof Ze?rt=>rt.type===Ze:rt=>Ze.includes(rt.type),this.events.pipe((0,$e.h)(De))}nextEventOfType(Ze){return this.eventsOfType(Ze).pipe((0,J.q)(1))}waitForOperationCompleted(Ze){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,$e.h)(De=>De.nonce===Ze),(0,J.q)(1),(0,Ie.U)(De=>{if(void 0!==De.result)return De.result;throw new Error(De.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ue=(()=>{class Te{constructor(De){if(this.sw=De,this.subscriptionChanges=new ze.xQ,!De.isEnabled)return this.messages=Je,this.notificationClicks=Je,void(this.subscription=Je);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ie.U)(Wt=>Wt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ie.U)(Wt=>Wt.data)),this.pushManager=this.sw.registration.pipe((0,Ie.U)(Wt=>Wt.pushManager));const rt=this.pushManager.pipe((0,et.w)(Wt=>Wt.getSubscription()));this.subscription=(0,ut.T)(rt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(De){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const rt={userVisibleOnly:!0};let Wt=this.decodeBase64(De.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),on=new Uint8Array(new ArrayBuffer(Wt.length));for(let Lt=0;LtLt.subscribe(rt)),(0,J.q)(1)).toPromise().then(Lt=>(this.subscriptionChanges.next(Lt),Lt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,J.q)(1),(0,et.w)(rt=>{if(null===rt)throw new Error("Not subscribed to push notifications.");return rt.unsubscribe().then(Wt=>{if(!Wt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(te))}decodeBase64(De){return atob(De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),je=(()=>{class Te{constructor(De){if(this.sw=De,!De.isEnabled)return this.versionUpdates=Je,this.available=Je,this.activated=Je,void(this.unrecoverable=Je);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,$e.h)(rt=>"VERSION_READY"===rt.type),(0,Ie.U)(rt=>({type:"UPDATE_AVAILABLE",current:rt.currentVersion,available:rt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:De},De)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:De},De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class tt{}const ke=new s.OlP("NGSW_REGISTER_SCRIPT");function ve(Te,Ze,De,rt){return()=>{if(!(0,W.NF)(rt)||!("serviceWorker"in navigator)||!1===De.enabled)return;let on;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof De.registrationStrategy)on=De.registrationStrategy();else{const[Un,...$n]=(De.registrationStrategy||"registerWhenStable:30000").split(":");switch(Un){case"registerImmediately":on=(0,Ye.of)(null);break;case"registerWithDelay":on=mt(+$n[0]||0);break;case"registerWhenStable":on=$n[0]?(0,ut.T)(Qe(Te),mt(+$n[0])):Qe(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${De.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>on.pipe((0,J.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ze,{scope:De.scope}).catch(Un=>console.error("Service worker registration failed with:",Un))))}}function mt(Te){return(0,Ye.of)(null).pipe((0,he.g)(Te))}function Qe(Te){return Te.get(s.z2F).isStable.pipe((0,$e.h)(De=>De))}function dt(Te,Ze){return new ie((0,W.NF)(Ze)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Te{static register(De,rt={}){return{ngModule:Te,providers:[{provide:ke,useValue:De},{provide:tt,useValue:rt},{provide:ie,useFactory:dt,deps:[tt,s.Lbi]},{provide:s.ip1,useFactory:ve,deps:[s.zs3,ke,tt,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[Ue,je]}),Te})();var it=p(2306),St=p(4170),ot=p(7625),Et=p(655),Zt=p(4090),mn=p(1721),gn=p(4219),Ut=p(925),un=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,Ze){}function cn(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzZeroTrigger||rt)}}function Mn(Te,Ze){}function qe(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzTrigger||rt)}}function x(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"right":"left")}}function z(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"left":"right")}}function P(Te,Ze){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const De=s.oxw();s.Q6J("ngIf",!De.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",De.nzReverseArrow)}}function pe(Te,Ze){1&Te&&s._UZ(0,"i",6)}function j(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(De);const Wt=s.oxw();return Wt.setCollapsed(!Wt.nzCollapsed)}),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("matchBreakPoint",De.matchBreakPoint)("nzCollapsedWidth",De.nzCollapsedWidth)("nzCollapsed",De.nzCollapsed)("nzBreakpoint",De.nzBreakpoint)("nzReverseArrow",De.nzReverseArrow)("nzTrigger",De.nzTrigger)("nzZeroTrigger",De.nzZeroTrigger)("siderWidth",De.widthSetting)}}let me=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ge=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Le=(()=>{class Te{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(De,rt){2&De&&(s.Udp("width",rt.isNormalTrigger?rt.siderWidth:null),s.ekj("ant-layout-sider-trigger",rt.isNormalTrigger)("ant-layout-sider-zero-width-trigger",rt.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",rt.isZeroTrigger&&rt.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",rt.isZeroTrigger&&!rt.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[s.TTD],attrs:Dt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(De,rt){1&De&&(s.YNc(0,cn,2,1,"ng-container",0),s.YNc(1,qe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,pe,1,0,"ng-template",null,2,s.W1O)),2&De&&(s.Q6J("ngIf",rt.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",rt.isNormalTrigger))},directives:[W.O5,W.tP,un.Ls],encapsulation:2,changeDetection:0}),Te})(),Me=(()=>{class Te{constructor(De,rt,Wt){this.platform=De,this.cdr=rt,this.breakpointService=Wt,this.destroy$=new ze.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new s.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,mn.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(De){De!==this.nzCollapsed&&(this.nzCollapsed=De,this.nzCollapsedChange.emit(De),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Zt.ow,!0).pipe((0,ot.R)(this.destroy$)).subscribe(De=>{const rt=this.nzBreakpoint;rt&&(0,mn.ov)().subscribe(()=>{this.matchBreakPoint=!De[rt],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(De){const{nzCollapsed:rt,nzCollapsedWidth:Wt,nzWidth:on}=De;(rt||Wt||on)&&this.updateStyleMap(),rt&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(Ut.t4),s.Y36(s.sBO),s.Y36(Zt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,gn.wO,5),2&De){let on;s.iGM(on=s.CRH())&&(rt.nzMenuDirective=on.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(De,rt){2&De&&(s.Udp("flex",rt.flexSetting)("max-width",rt.widthSetting)("min-width",rt.widthSetting)("width",rt.widthSetting),s.ekj("ant-layout-sider-zero-width",rt.nzCollapsed&&0===rt.nzCollapsedWidth)("ant-layout-sider-light","light"===rt.nzTheme)("ant-layout-sider-dark","dark"===rt.nzTheme)("ant-layout-sider-collapsed",rt.nzCollapsed)("ant-layout-sider-has-trigger",rt.nzCollapsible&&null!==rt.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[s.TTD],ngContentSelectors:Cn,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(De,rt){1&De&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&De&&(s.xp6(2),s.Q6J("ngIf",rt.nzCollapsible&&null!==rt.nzTrigger))},directives:[Le,W.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(De){this.directionality=De,this.dir="ltr",this.destroy$=new ze.xQ}ngOnInit(){var De;this.dir=this.directionality.value,null===(De=this.directionality.change)||void 0===De||De.pipe((0,ot.R)(this.destroy$)).subscribe(rt=>{this.dir=rt})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,Me,4),2&De){let on;s.iGM(on=s.CRH())&&(rt.listOfNzSiderComponent=on)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(De,rt){2&De&&s.ekj("ant-layout-rtl","rtl"===rt.dir)("ant-layout-has-sider",rt.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Be=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,un.PV,q.xu,Ut.ud]]}),Te})();var nt=p(4147),ce=p(404);let Ae=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,Ut.ud,un.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),vn=p(2302);let Vn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-page-not-found"]],decls:5,vars:0,consts:[[1,"content"],["src","assets/images/bili-404.png","all","\u80a5\u80a0\u62b1\u6b49\uff0c\u4f60\u8981\u627e\u7684\u9875\u9762\u4e0d\u89c1\u4e86"],[1,"btn-wrapper"],["href","/",1,"goback-btn"]],template:function(De,rt){1&De&&(s.TgZ(0,"div",0),s._UZ(1,"img",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s._uU(4,"\u8fd4\u56de\u9996\u9875"),s.qZA(),s.qZA(),s.qZA())},styles:[".content[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:980px}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]{display:inline-block;padding:0 20px;border-radius:4px;font-size:16px;line-height:40px;text-align:center;vertical-align:middle;color:#fff;background:#00a1d6;transition:.3s;cursor:pointer}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]:hover{background:#00b5e5}"],changeDetection:0}),Te})();const ri=[{path:"tasks",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(853)]).then(p.bind(p,1853)).then(Te=>Te.TasksModule)},{path:"settings",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(592),p.e(694)]).then(p.bind(p,9694)).then(Te=>Te.SettingsModule),data:{scrollBehavior:p(4704).g.KEEP_POSITION}},{path:"about",loadChildren:()=>Promise.all([p.e(146),p.e(592),p.e(103)]).then(p.bind(p,5103)).then(Te=>Te.AboutModule)},{path:"",pathMatch:"full",redirectTo:"/tasks"},{path:"**",component:Vn}];let jn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[vn.Bz.forRoot(ri,{preloadingStrategy:vn.wm})],vn.Bz]}),Te})();function qt(Te,Ze){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const De=s.MAs(3);s.Q6J("ngTemplateOutlet",De)}}function Re(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Wt){return s.CHM(De),s.oxw().collapsed=Wt}),s.TgZ(1,"a",13),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s._UZ(4,"img",16),s.qZA(),s.TgZ(5,"h1",17),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"nav",18),s.TgZ(8,"ul",19),s.TgZ(9,"li",20),s._UZ(10,"i",21),s.TgZ(11,"span"),s.TgZ(12,"a",22),s._uU(13,"\u4efb\u52a1"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"li",20),s._UZ(15,"i",23),s.TgZ(16,"span"),s.TgZ(17,"a",24),s._uU(18,"\u8bbe\u7f6e"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",20),s._UZ(20,"i",25),s.TgZ(21,"span"),s.TgZ(22,"a",26),s._uU(23,"\u5173\u4e8e"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzTheme",De.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",De.collapsed),s.xp6(2),s.ekj("collapsed",De.collapsed),s.xp6(4),s.Oqu(De.title),s.xp6(2),s.Q6J("nzTheme",De.theme)("nzInlineCollapsed",De.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",De.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u5173\u4e8e":"")}}function we(Te,Ze){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const De=s.oxw();s.Q6J("nzSize","large")("nzSpinning",De.loading)}}function ae(Te,Ze){if(1&Te&&(s.ynx(0),s.TgZ(1,"nz-layout"),s.GkF(2,11),s.qZA(),s.BQk()),2&Te){s.oxw(2);const De=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",De)}}const Ve=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(De),s.oxw().collapsed=!0}),s.YNc(1,ae,3,1,"ng-container",29),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Ve))("nzClosable",!1)("nzVisible",!De.collapsed)}}let It=(()=>{class Te{constructor(De,rt,Wt){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new ze.xQ,De.events.subscribe(on=>{on instanceof vn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):on instanceof vn.m2&&(this.loading=!1)}),Wt.observe(q.u3.XSmall).pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.useDrawer=on.matches,this.useDrawer&&(this.collapsed=!0),rt.markForCheck()}),Wt.observe("(max-width: 1036px)").pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.collapsed=on.matches,rt.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(vn.F0),s.Y36(s.sBO),s.Y36(q.Yg))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-root"]],decls:15,vars:4,consts:[[3,"ngTemplateOutlet",4,"ngIf"],["sider",""],[1,"app-header"],[1,"sidebar-trigger"],["nz-icon","",3,"nzType","click"],[1,"icon-actions"],["href","https://github.com/acgnhiki/blrec","title","GitHub","target","_blank",1,"external-link"],["nz-icon","","nzType","github"],[1,"main-content"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose",4,"ngIf"],[3,"ngTemplateOutlet"],["nzCollapsible","",1,"sidebar",3,"nzTheme","nzTrigger","nzCollapsedWidth","nzCollapsed","nzCollapsedChange"],["href","/","title","Home","alt","Home"],[1,"sidebar-header"],[1,"app-logo-container"],["alt","Logo","src","assets/images/logo.png",1,"app-logo"],[1,"app-title"],[1,"sidebar-menu"],["nz-menu","","nzMode","inline",3,"nzTheme","nzInlineCollapsed"],["nz-menu-item","","nzMatchRouter","true","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-icon","","nzType","unordered-list","nzTheme","outline"],["routerLink","/tasks"],["nz-icon","","nzType","setting","nzTheme","outline"],["routerLink","/settings"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["routerLink","/about"],[1,"spinner",3,"nzSize","nzSpinning"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose"],[4,"nzDrawerContent"]],template:function(De,rt){1&De&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,Re,24,12,"ng-template",null,1,s.W1O),s.TgZ(4,"nz-layout"),s.TgZ(5,"nz-header",2),s.TgZ(6,"div",3),s.TgZ(7,"i",4),s.NdJ("click",function(){return rt.collapsed=!rt.collapsed}),s.qZA(),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"a",6),s._UZ(10,"i",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"nz-content",8),s.YNc(12,we,1,2,"nz-spin",9),s._UZ(13,"router-outlet"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,ht,2,4,"nz-drawer",10)),2&De&&(s.xp6(1),s.Q6J("ngIf",!rt.useDrawer),s.xp6(6),s.Q6J("nzType",rt.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",rt.loading),s.xp6(2),s.Q6J("ngIf",rt.useDrawer))},directives:[V,W.O5,W.tP,Me,gn.wO,gn.r9,ce.SY,un.Ls,vn.yS,Ge,me,wt.W,vn.lC,nt.Vz,nt.SQ],styles:[".spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] > nz-layout[_ngcontent-%COMP%]{height:100%;width:100%}.sidebar[_ngcontent-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;position:relative;z-index:10;min-height:100vh;border-right:1px solid #f0f0f0}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:var(--app-header-height);overflow:hidden}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%]{flex:none;width:var(--app-header-height);height:var(--app-header-height);display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:var(--app-logo-size);height:var(--app-logo-size)}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:clip;opacity:1;transition-property:width,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.sidebar[_ngcontent-%COMP%] .sidebar-header.collapsed[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{opacity:0}.sidebar[_ngcontent-%COMP%] .sidebar-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;height:var(--app-header-height);margin:0;padding:0;z-index:2;background:#fff;box-shadow:0 1px 4px #00152914}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]{--icon-size: 20px;display:flex;align-items:center;justify-content:center;height:100%;width:var(--app-header-height);cursor:pointer;transition:all .3s,padding 0s}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]:hover{color:#1890ff}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%]{--icon-size: 24px;display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:calc((var(--app-header-height) - var(--icon-size)) / 2)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#000}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.main-content[_ngcontent-%COMP%]{overflow:hidden}"],changeDetection:0}),Te})(),jt=(()=>{class Te{constructor(De){if(De)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[W.ez]]}),Te})();var fn=p(9193);const Pn=[fn.LBP,fn._ry,fn.Ej7,fn.WH2];let si=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:un.sV,useValue:Pn}],imports:[[un.PV],un.PV]}),Te})();var Zn=p(2340),ii=p(7221),En=p(9973),ei=p(2323);const Ln="app-api-key";let Tt=(()=>{class Te{constructor(De){this.storage=De}hasApiKey(){return this.storage.hasData(Ln)}getApiKey(){var De;return null!==(De=this.storage.getData(Ln))&&void 0!==De?De:""}setApiKey(De){this.storage.setData(Ln,De)}removeApiKey(){this.storage.removeData(Ln)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ei.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const bn=[{provide:oe.TP,useClass:(()=>{class Te{constructor(De){this.auth=De}intercept(De,rt){return rt.handle(De.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ii.K)(Wt=>{var on;if(401===Wt.status){this.auth.hasApiKey()&&this.auth.removeApiKey();const Lt=null!==(on=window.prompt("API Key:"))&&void 0!==on?on:"";this.auth.setApiKey(Lt)}throw Wt}),(0,En.X)(3))}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Tt))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,W.qS)(H);let Qn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[It]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},bn],imports:[[a.b2,jn,G.u5,oe.JF,q.xu,_.PW,_t.register("ngsw-worker.js",{enabled:Zn.N.production,registrationStrategy:"registerWhenStable:30000"}),Be,nt.BL,gn.ip,ce.cg,Ae,wt.j,At.gR,Qt.L8,si,it.f9.forRoot({level:Zn.N.ngxLoggerLevel}),jt]]}),Te})();Zn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(Qn).catch(Te=>console.error(Te))},2306:(yt,be,p)=>{p.d(be,{f9:()=>_e,Kf:()=>Xe,_z:()=>Je});var a=p(9808),s=p(5e3),G=p(520),oe=p(2198),q=p(4850),_=p(9973),W=p(5154),I=p(7221),R=p(7545),H={},B={};function ee(te){for(var le=[],ie=0,Ue=0,je=0;je>>=1,le.push(ve?0===Ue?-2147483648:-Ue:Ue),Ue=ie=0}}return le}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(te,le){H[te]=le,B[le]=te});var Fe=p(1086);class ze{}let _e=(()=>{class te{static forRoot(ie){return{ngModule:te,providers:[{provide:ze,useValue:ie||{}}]}}static forChild(){return{ngModule:te}}}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),te})(),vt=(()=>{class te{constructor(ie){this.httpBackend=ie}logOnServer(ie,Ue,je){const tt=new G.aW("POST",ie,Ue,je||{});return this.httpBackend.handle(tt).pipe((0,oe.h)(ke=>ke instanceof G.Zn),(0,q.U)(ke=>ke.body))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();var Je=(()=>{return(te=Je||(Je={}))[te.TRACE=0]="TRACE",te[te.DEBUG=1]="DEBUG",te[te.INFO=2]="INFO",te[te.LOG=3]="LOG",te[te.WARN=4]="WARN",te[te.ERROR=5]="ERROR",te[te.FATAL=6]="FATAL",te[te.OFF=7]="OFF",Je;var te})();class zt{constructor(le){this.config=le,this._config=le}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(le){this._config=this._clone(le)}getConfig(){return this._clone(this._config)}_clone(le){const ie=new ze;return Object.keys(le).forEach(Ue=>{ie[Ue]=le[Ue]}),ie}}const ut=["purple","teal","gray","gray","red","red","red"];class Ie{static prepareMetaString(le,ie,Ue,je){return`${le} ${ie}${Ue?` [${Ue}:${je}]`:""}`}static getColor(le,ie){switch(le){case Je.TRACE:return this.getColorFromConfig(Je.TRACE,ie);case Je.DEBUG:return this.getColorFromConfig(Je.DEBUG,ie);case Je.INFO:return this.getColorFromConfig(Je.INFO,ie);case Je.LOG:return this.getColorFromConfig(Je.LOG,ie);case Je.WARN:return this.getColorFromConfig(Je.WARN,ie);case Je.ERROR:return this.getColorFromConfig(Je.ERROR,ie);case Je.FATAL:return this.getColorFromConfig(Je.FATAL,ie);default:return}}static getColorFromConfig(le,ie){return ie?ie[le]:ut[le]}static prepareMessage(le){try{"string"!=typeof le&&!(le instanceof Error)&&(le=JSON.stringify(le,null,2))}catch(ie){le='The provided "message" value could not be parsed with JSON.stringify().'}return le}static prepareAdditionalParameters(le){return null==le?null:le.map((ie,Ue)=>{try{return"object"==typeof ie&&JSON.stringify(ie),ie}catch(je){return`The additional[${Ue}] value could not be parsed using JSON.stringify().`}})}}class $e{constructor(le,ie,Ue){this.fileName=le,this.lineNumber=ie,this.columnNumber=Ue}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let et=(()=>{class te{constructor(ie){this.httpBackend=ie,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(ie){const Ue=new Error;try{throw Ue}catch(je){try{let tt=4;return Ue.stack.split("\n")[0].includes(".js:")||(tt+=1),Ue.stack.split("\n")[tt+(ie||0)]}catch(tt){return null}}}static getPosition(ie){const Ue=ie.lastIndexOf("/");let je=ie.indexOf(")");je<0&&(je=void 0);const ke=ie.substring(Ue+1,je).split(":");return 3===ke.length?new $e(ke[0],+ke[1],+ke[2]):new $e("unknown",0,0)}static getTranspileLocation(ie){let Ue=ie.indexOf("(");Ue<0&&(Ue=ie.lastIndexOf("@"),Ue<0&&(Ue=ie.lastIndexOf(" ")));let je=ie.indexOf(")");return je<0&&(je=void 0),ie.substring(Ue+1,je)}static getMapFilePath(ie){const Ue=te.getTranspileLocation(ie),je=Ue.substring(0,Ue.lastIndexOf(":"));return je.substring(0,je.lastIndexOf(":"))+".map"}static getMapping(ie,Ue){let je=0,tt=0,ke=0;const ve=ie.mappings.split(";");for(let mt=0;mt=4&&(Qe+=it[0],je+=it[1],tt+=it[2],ke+=it[3]),mt===Ue.lineNumber){if(Qe===Ue.columnNumber)return new $e(ie.sources[je],tt,ke);if(_t+1===dt.length)return new $e(ie.sources[je],tt,0)}}}return new $e("unknown",0,0)}_getSourceMap(ie,Ue){const je=new G.aW("GET",ie),tt=Ue.toString();if(this.logPositionCache.has(tt))return this.logPositionCache.get(tt);this.sourceMapCache.has(ie)||this.sourceMapCache.set(ie,this.httpBackend.handle(je).pipe((0,oe.h)(ve=>ve instanceof G.Zn),(0,q.U)(ve=>ve.body),(0,_.X)(3),(0,W.d)(1)));const ke=this.sourceMapCache.get(ie).pipe((0,q.U)(ve=>te.getMapping(ve,Ue)),(0,I.K)(()=>(0,Fe.of)(Ue)),(0,W.d)(1));return this.logPositionCache.set(tt,ke),ke}getCallerDetails(ie,Ue){const je=te.getStackLine(Ue);return je?(0,Fe.of)([te.getPosition(je),te.getMapFilePath(je)]).pipe((0,R.w)(([tt,ke])=>ie?this._getSourceMap(ke,tt):(0,Fe.of)(tt))):(0,Fe.of)(new $e("",0,0))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();const Se=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let Xe=(()=>{class te{constructor(ie,Ue,je,tt,ke){this.mapperService=ie,this.httpService=Ue,this.platformId=tt,this.datePipe=ke,this._withCredentials=!1,this._isIE=(0,a.NF)(tt)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new zt(je),this._logFunc=this._isIE?this._logIE.bind(this):this._logModern.bind(this)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}trace(ie,...Ue){this._log(Je.TRACE,ie,Ue)}debug(ie,...Ue){this._log(Je.DEBUG,ie,Ue)}info(ie,...Ue){this._log(Je.INFO,ie,Ue)}log(ie,...Ue){this._log(Je.LOG,ie,Ue)}warn(ie,...Ue){this._log(Je.WARN,ie,Ue)}error(ie,...Ue){this._log(Je.ERROR,ie,Ue)}fatal(ie,...Ue){this._log(Je.FATAL,ie,Ue)}setCustomHttpHeaders(ie){this._customHttpHeaders=ie}setCustomParams(ie){this._customParams=ie}setWithCredentialsOptionValue(ie){this._withCredentials=ie}registerMonitor(ie){this._loggerMonitor=ie}updateConfig(ie){this.config.updateConfig(ie)}getConfigSnapshot(){return this.config.getConfig()}_logIE(ie,Ue,je,tt){switch(tt=tt||[],ie){case Je.WARN:console.warn(`${Ue} `,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`${Ue} `,je,...tt);break;case Je.INFO:console.info(`${Ue} `,je,...tt);break;default:console.log(`${Ue} `,je,...tt)}}_logModern(ie,Ue,je,tt){const ke=this.getConfigSnapshot().colorScheme,ve=Ie.getColor(ie,ke);switch(tt=tt||[],ie){case Je.WARN:console.warn(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.INFO:console.info(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.DEBUG:console.debug(`%c${Ue}`,`color:${ve}`,je,...tt);break;default:console.log(`%c${Ue}`,`color:${ve}`,je,...tt)}}_log(ie,Ue,je=[],tt=!0){const ke=this.config.getConfig(),ve=tt&&ke.serverLoggingUrl&&ie>=ke.serverLogLevel,mt=ie>=ke.level;if(!Ue||!ve&&!mt)return;const Qe=Se[ie];Ue="function"==typeof Ue?Ue():Ue;const dt=Ie.prepareAdditionalParameters(je),_t=ke.timestampFormat?this.datePipe.transform(new Date,ke.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(ke.enableSourceMaps,ke.proxiedSteps).subscribe(it=>{const St={message:Ie.prepareMessage(Ue),additional:dt,level:ie,timestamp:_t,fileName:it.fileName,lineNumber:it.lineNumber.toString()};if(this._loggerMonitor&&mt&&this._loggerMonitor.onLog(St),ve){St.message=Ue instanceof Error?Ue.stack:Ue,St.message=Ie.prepareMessage(St.message);const ot=this._customHttpHeaders||new G.WM;ot.set("Content-Type","application/json");const Et={headers:ot,params:this._customParams||new G.LE,responseType:ke.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(ke.serverLoggingUrl,St,Et).subscribe(Zt=>{},Zt=>{this._log(Je.ERROR,`FAILED TO LOG ON SERVER: ${Ue}`,[Zt],!1)})}if(mt&&!ke.disableConsoleLogging){const ot=Ie.prepareMetaString(_t,Qe,ke.disableFileDetails?null:it.fileName,it.lineNumber.toString());return this._logFunc(ie,ot,Ue,je)}})}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(et),s.LFG(vt),s.LFG(ze),s.LFG(s.Lbi),s.LFG(a.uU))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(et),(0,s.LFG)(vt),(0,s.LFG)(ze),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:te,providedIn:"root"}),te})()},591:(yt,be,p)=>{p.d(be,{X:()=>G});var a=p(8929),s=p(5279);class G extends a.xQ{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const _=super._subscribe(q);return _&&!_.closed&&q.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(q){super.next(this._value=q)}}},9312:(yt,be,p)=>{p.d(be,{P:()=>q});var a=p(8896),s=p(1086),G=p(1737);class q{constructor(W,I,R){this.kind=W,this.value=I,this.error=R,this.hasValue="N"===W}observe(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}}do(W,I,R){switch(this.kind){case"N":return W&&W(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(W,I,R){return W&&"function"==typeof W.next?this.observe(W):this.do(W,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,G._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(W){return void 0!==W?new q("N",W):q.undefinedValueNotification}static createError(W){return new q("E",void 0,W)}static createComplete(){return q.completeNotification}}q.completeNotification=new q("C"),q.undefinedValueNotification=new q("N",void 0)},6498:(yt,be,p)=>{p.d(be,{y:()=>R});var a=p(3489),G=p(7668),oe=p(3292),_=p(3821),W=p(4843),I=p(2830);let R=(()=>{class B{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ye=new B;return Ye.source=this,Ye.operator=ye,Ye}subscribe(ye,Ye,Fe){const{operator:ze}=this,_e=function q(B,ee,ye){if(B){if(B instanceof a.L)return B;if(B[G.b])return B[G.b]()}return B||ee||ye?new a.L(B,ee,ye):new a.L(oe.c)}(ye,Ye,Fe);if(_e.add(ze?ze.call(_e,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!_e.syncErrorThrowable?this._subscribe(_e):this._trySubscribe(_e)),I.v.useDeprecatedSynchronousErrorHandling&&_e.syncErrorThrowable&&(_e.syncErrorThrowable=!1,_e.syncErrorThrown))throw _e.syncErrorValue;return _e}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ye){I.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ye),function s(B){for(;B;){const{closed:ee,destination:ye,isStopped:Ye}=B;if(ee||Ye)return!1;B=ye&&ye instanceof a.L?ye:null}return!0}(ye)?ye.error(Ye):console.warn(Ye)}}forEach(ye,Ye){return new(Ye=H(Ye))((Fe,ze)=>{let _e;_e=this.subscribe(vt=>{try{ye(vt)}catch(Je){ze(Je),_e&&_e.unsubscribe()}},ze,Fe)})}_subscribe(ye){const{source:Ye}=this;return Ye&&Ye.subscribe(ye)}[_.L](){return this}pipe(...ye){return 0===ye.length?this:(0,W.U)(ye)(this)}toPromise(ye){return new(ye=H(ye))((Ye,Fe)=>{let ze;this.subscribe(_e=>ze=_e,_e=>Fe(_e),()=>Ye(ze))})}}return B.create=ee=>new B(ee),B})();function H(B){if(B||(B=I.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(yt,be,p)=>{p.d(be,{c:()=>G});var a=p(2830),s=p(2782);const G={closed:!0,next(oe){},error(oe){if(a.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,s.z)(oe)},complete(){}}},826:(yt,be,p)=>{p.d(be,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(oe,q,_,W,I){this.destination.next(q)}notifyError(oe,q){this.destination.error(oe)}notifyComplete(oe){this.destination.complete()}}},5647:(yt,be,p)=>{p.d(be,{t:()=>ee});var a=p(8929),s=p(6686),oe=p(2268);const W=new class q extends oe.v{}(class G extends s.o{constructor(Fe,ze){super(Fe,ze),this.scheduler=Fe,this.work=ze}schedule(Fe,ze=0){return ze>0?super.schedule(Fe,ze):(this.delay=ze,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,ze){return ze>0||this.closed?super.execute(Fe,ze):this._execute(Fe,ze)}requestAsyncId(Fe,ze,_e=0){return null!==_e&&_e>0||null===_e&&this.delay>0?super.requestAsyncId(Fe,ze,_e):Fe.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Fe=Number.POSITIVE_INFINITY,ze=Number.POSITIVE_INFINITY,_e){super(),this.scheduler=_e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Fe<1?1:Fe,this._windowTime=ze<1?1:ze,ze===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Fe){if(!this.isStopped){const ze=this._events;ze.push(Fe),ze.length>this._bufferSize&&ze.shift()}super.next(Fe)}nextTimeWindow(Fe){this.isStopped||(this._events.push(new ye(this._getNow(),Fe)),this._trimBufferThenGetEvents()),super.next(Fe)}_subscribe(Fe){const ze=this._infiniteTimeWindow,_e=ze?this._events:this._trimBufferThenGetEvents(),vt=this.scheduler,Je=_e.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Fe),zt=new B.W(this,Fe)),vt&&Fe.add(Fe=new R.ht(Fe,vt)),ze)for(let ut=0;utze&&(zt=Math.max(zt,Je-ze)),zt>0&&vt.splice(0,zt),vt}}class ye{constructor(Fe,ze){this.time=Fe,this.value=ze}}},8929:(yt,be,p)=>{p.d(be,{Yc:()=>W,xQ:()=>I});var a=p(6498),s=p(3489),G=p(2654),oe=p(5279),q=p(5283),_=p(7668);class W extends s.L{constructor(B){super(B),this.destination=B}}let I=(()=>{class H extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_.b](){return new W(this)}lift(ee){const ye=new R(this,this);return ye.operator=ee,ye}next(ee){if(this.closed)throw new oe.N;if(!this.isStopped){const{observers:ye}=this,Ye=ye.length,Fe=ye.slice();for(let ze=0;zenew R(B,ee),H})();class R extends I{constructor(B,ee){super(),this.destination=B,this.source=ee}next(B){const{destination:ee}=this;ee&&ee.next&&ee.next(B)}error(B){const{destination:ee}=this;ee&&ee.error&&this.destination.error(B)}complete(){const{destination:B}=this;B&&B.complete&&this.destination.complete()}_subscribe(B){const{source:ee}=this;return ee?this.source.subscribe(B):G.w.EMPTY}}},5283:(yt,be,p)=>{p.d(be,{W:()=>s});var a=p(2654);class s extends a.w{constructor(oe,q){super(),this.subject=oe,this.subscriber=q,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const oe=this.subject,q=oe.observers;if(this.subject=null,!q||0===q.length||oe.isStopped||oe.closed)return;const _=q.indexOf(this.subscriber);-1!==_&&q.splice(_,1)}}},3489:(yt,be,p)=>{p.d(be,{L:()=>W});var a=p(7043),s=p(3292),G=p(2654),oe=p(7668),q=p(2830),_=p(2782);class W extends G.w{constructor(H,B,ee){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!H){this.destination=s.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,H,B,ee)}}[oe.b](){return this}static create(H,B,ee){const ye=new W(H,B,ee);return ye.syncErrorThrowable=!1,ye}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class I extends W{constructor(H,B,ee,ye){super(),this._parentSubscriber=H;let Ye,Fe=this;(0,a.m)(B)?Ye=B:B&&(Ye=B.next,ee=B.error,ye=B.complete,B!==s.c&&(Fe=Object.create(B),(0,a.m)(Fe.unsubscribe)&&this.add(Fe.unsubscribe.bind(Fe)),Fe.unsubscribe=this.unsubscribe.bind(this))),this._context=Fe,this._next=Ye,this._error=ee,this._complete=ye}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;q.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:B}=this,{useDeprecatedSynchronousErrorHandling:ee}=q.v;if(this._error)ee&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(B.syncErrorThrowable)ee?(B.syncErrorValue=H,B.syncErrorThrown=!0):(0,_.z)(H),this.unsubscribe();else{if(this.unsubscribe(),ee)throw H;(0,_.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const B=()=>this._complete.call(this._context);q.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,B),this.unsubscribe()):(this.__tryOrUnsub(B),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,B){try{H.call(this._context,B)}catch(ee){if(this.unsubscribe(),q.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!q.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(ye){return q.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=ye,H.syncErrorThrown=!0,!0):((0,_.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(yt,be,p)=>{p.d(be,{w:()=>_});var a=p(6688),s=p(7830),G=p(7043);const q=(()=>{function I(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((H,B)=>`${B+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return I.prototype=Object.create(Error.prototype),I})();class _{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:B,_unsubscribe:ee,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let Ye=0;YeR.concat(H instanceof q?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(yt,be,p)=>{p.d(be,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(G){if(G){const oe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+oe.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=G},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(yt,be,p)=>{p.d(be,{IY:()=>oe,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),G=p(9249);class oe extends a.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _ extends a.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function I(R,H){if(H.closed)return;if(R instanceof s.y)return R.subscribe(H);let B;try{B=(0,G.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(yt,be,p)=>{p.d(be,{c:()=>q,N:()=>_});var a=p(8929),s=p(6498),G=p(2654),oe=p(4327);class q extends s.y{constructor(B,ee){super(),this.source=B,this.subjectFactory=ee,this._refCount=0,this._isComplete=!1}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let B=this._connection;return B||(this._isComplete=!1,B=this._connection=new G.w,B.add(this.source.subscribe(new W(this.getSubject(),this))),B.closed&&(this._connection=null,B=G.w.EMPTY)),B}refCount(){return(0,oe.x)()(this)}}const _=(()=>{const H=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends a.Yc{constructor(B,ee){super(B),this.connectable=ee}_error(B){this._unsubscribe(),super._error(B)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const B=this.connectable;if(B){this.connectable=null;const ee=B._connection;B._refCount=0,B._subject=null,B._connection=null,ee&&ee.unsubscribe()}}}},6053:(yt,be,p)=>{p.d(be,{aj:()=>W});var a=p(2866),s=p(6688),G=p(826),oe=p(448),q=p(3009);const _={};function W(...H){let B,ee;return(0,a.K)(H[H.length-1])&&(ee=H.pop()),"function"==typeof H[H.length-1]&&(B=H.pop()),1===H.length&&(0,s.k)(H[0])&&(H=H[0]),(0,q.n)(H,ee).lift(new I(B))}class I{constructor(B){this.resultSelector=B}call(B,ee){return ee.subscribe(new R(B,this.resultSelector))}}class R extends G.L{constructor(B,ee){super(B),this.resultSelector=ee,this.active=0,this.values=[],this.observables=[]}_next(B){this.values.push(_),this.observables.push(B)}_complete(){const B=this.observables,ee=B.length;if(0===ee)this.destination.complete();else{this.active=ee,this.toRespond=ee;for(let ye=0;ye{p.d(be,{z:()=>G});var a=p(1086),s=p(534);function G(...oe){return(0,s.u)()((0,a.of)(...oe))}},8514:(yt,be,p)=>{p.d(be,{P:()=>oe});var a=p(6498),s=p(5254),G=p(8896);function oe(q){return new a.y(_=>{let W;try{W=q()}catch(R){return void _.error(R)}return(W?(0,s.D)(W):(0,G.c)()).subscribe(_)})}},8896:(yt,be,p)=>{p.d(be,{E:()=>s,c:()=>G});var a=p(6498);const s=new a.y(q=>q.complete());function G(q){return q?function oe(q){return new a.y(_=>q.schedule(()=>_.complete()))}(q):s}},5254:(yt,be,p)=>{p.d(be,{D:()=>Fe});var a=p(6498),s=p(9249),G=p(2654),oe=p(3821),W=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Fe(ze,_e){return _e?function Ye(ze,_e){if(null!=ze){if(function H(ze){return ze&&"function"==typeof ze[oe.L]}(ze))return function q(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>{const zt=ze[oe.L]();Je.add(zt.subscribe({next(ut){Je.add(_e.schedule(()=>vt.next(ut)))},error(ut){Je.add(_e.schedule(()=>vt.error(ut)))},complete(){Je.add(_e.schedule(()=>vt.complete()))}}))})),Je})}(ze,_e);if((0,B.t)(ze))return function _(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>ze.then(zt=>{Je.add(_e.schedule(()=>{vt.next(zt),Je.add(_e.schedule(()=>vt.complete()))}))},zt=>{Je.add(_e.schedule(()=>vt.error(zt)))}))),Je})}(ze,_e);if((0,ee.z)(ze))return(0,W.r)(ze,_e);if(function ye(ze){return ze&&"function"==typeof ze[I.hZ]}(ze)||"string"==typeof ze)return function R(ze,_e){if(!ze)throw new Error("Iterable cannot be null");return new a.y(vt=>{const Je=new G.w;let zt;return Je.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),Je.add(_e.schedule(()=>{zt=ze[I.hZ](),Je.add(_e.schedule(function(){if(vt.closed)return;let ut,Ie;try{const $e=zt.next();ut=$e.value,Ie=$e.done}catch($e){return void vt.error($e)}Ie?vt.complete():(vt.next(ut),this.schedule())}))})),Je})}(ze,_e)}throw new TypeError((null!==ze&&typeof ze||ze)+" is not observable")}(ze,_e):ze instanceof a.y?ze:new a.y((0,s.s)(ze))}},3009:(yt,be,p)=>{p.d(be,{n:()=>oe});var a=p(6498),s=p(3650),G=p(6454);function oe(q,_){return _?(0,G.r)(q,_):new a.y((0,s.V)(q))}},3753:(yt,be,p)=>{p.d(be,{R:()=>_});var a=p(6498),s=p(6688),G=p(7043),oe=p(4850);function _(B,ee,ye,Ye){return(0,G.m)(ye)&&(Ye=ye,ye=void 0),Ye?_(B,ee,ye).pipe((0,oe.U)(Fe=>(0,s.k)(Fe)?Ye(...Fe):Ye(Fe))):new a.y(Fe=>{W(B,ee,function ze(_e){Fe.next(arguments.length>1?Array.prototype.slice.call(arguments):_e)},Fe,ye)})}function W(B,ee,ye,Ye,Fe){let ze;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const _e=B;B.addEventListener(ee,ye,Fe),ze=()=>_e.removeEventListener(ee,ye,Fe)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const _e=B;B.on(ee,ye),ze=()=>_e.off(ee,ye)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const _e=B;B.addListener(ee,ye),ze=()=>_e.removeListener(ee,ye)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let _e=0,vt=B.length;_e{p.d(be,{T:()=>q});var a=p(6498),s=p(2866),G=p(9146),oe=p(3009);function q(..._){let W=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(W=_.pop())):"number"==typeof R&&(W=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,G.J)(W)((0,oe.n)(_,I))}},1086:(yt,be,p)=>{p.d(be,{of:()=>oe});var a=p(2866),s=p(3009),G=p(6454);function oe(...q){let _=q[q.length-1];return(0,a.K)(_)?(q.pop(),(0,G.r)(q,_)):(0,s.n)(q)}},1737:(yt,be,p)=>{p.d(be,{_:()=>s});var a=p(6498);function s(oe,q){return new a.y(q?_=>q.schedule(G,0,{error:oe,subscriber:_}):_=>_.error(oe))}function G({error:oe,subscriber:q}){q.error(oe)}},8723:(yt,be,p)=>{p.d(be,{H:()=>q});var a=p(6498),s=p(353),G=p(4241),oe=p(2866);function q(W=0,I,R){let H=-1;return(0,G.k)(I)?H=Number(I)<1?1:Number(I):(0,oe.K)(I)&&(R=I),(0,oe.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,G.k)(W)?W:+W-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(W){const{index:I,period:R,subscriber:H}=W;if(H.next(I),!H.closed){if(-1===R)return H.complete();W.index=I+1,this.schedule(W,R)}}},7138:(yt,be,p)=>{p.d(be,{e:()=>W});var a=p(353),s=p(1177);class oe{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new q(R,this.durationSelector))}}class q extends s.Ds{constructor(R,H){super(R),this.durationSelector=H,this.hasValue=!1}_next(R){if(this.value=R,this.hasValue=!0,!this.throttled){let H;try{const{durationSelector:ee}=this;H=ee(R)}catch(ee){return this.destination.error(ee)}const B=(0,s.ft)(H,new s.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:R,hasValue:H,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),H&&(this.value=void 0,this.hasValue=!1,this.destination.next(R))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var _=p(8723);function W(I,R=a.P){return function G(I){return function(H){return H.lift(new oe(I))}}(()=>(0,_.H)(I,R))}},7221:(yt,be,p)=>{p.d(be,{K:()=>s});var a=p(1177);function s(q){return function(W){const I=new G(q),R=W.lift(I);return I.caught=R}}class G{constructor(_){this.selector=_}call(_,W){return W.subscribe(new oe(_,this.selector,this.caught))}}class oe extends a.Ds{constructor(_,W,I){super(_),this.selector=W,this.caught=I}error(_){if(!this.isStopped){let W;try{W=this.selector(_,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const I=new a.IY(this);this.add(I);const R=(0,a.ft)(W,I);R!==I&&this.add(R)}}}},534:(yt,be,p)=>{p.d(be,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(yt,be,p)=>{p.d(be,{b:()=>s});var a=p(1709);function s(G,oe){return(0,a.zg)(G,oe,1)}},13:(yt,be,p)=>{p.d(be,{b:()=>G});var a=p(3489),s=p(353);function G(W,I=s.P){return R=>R.lift(new oe(W,I))}class oe{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new q(I,this.dueTime,this.scheduler))}}class q extends a.L{constructor(I,R,H){super(I),this.dueTime=R,this.scheduler=H,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _(W){W.debouncedNext()}},8583:(yt,be,p)=>{p.d(be,{g:()=>q});var a=p(353),G=p(3489),oe=p(9312);function q(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return ye=>ye.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new W(H,this.delay,this.scheduler))}}class W extends G.L{constructor(H,B,ee){super(H),this.delay=B,this.scheduler=ee,this.queue=[],this.active=!1,this.errored=!1}static dispatch(H){const B=H.source,ee=B.queue,ye=H.scheduler,Ye=H.destination;for(;ee.length>0&&ee[0].time-ye.now()<=0;)ee.shift().notification.observe(Ye);if(ee.length>0){const Fe=Math.max(0,ee[0].time-ye.now());this.schedule(H,Fe)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(W.dispatch,this.delay,{source:this,destination:this.destination,scheduler:H}))}scheduleNotification(H){if(!0===this.errored)return;const B=this.scheduler,ee=new I(B.now()+this.delay,H);this.queue.push(ee),!1===this.active&&this._schedule(B)}_next(H){this.scheduleNotification(oe.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(oe.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(q,_){return W=>W.lift(new G(q,_))}class G{constructor(_,W){this.compare=_,this.keySelector=W}call(_,W){return W.subscribe(new oe(_,this.compare,this.keySelector))}}class oe extends a.L{constructor(_,W,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof W&&(this.compare=W)}compare(_,W){return _===W}_next(_){let W;try{const{keySelector:R}=this;W=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,W)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=W,this.destination.next(_))}}},2198:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q,_){return function(I){return I.lift(new G(q,_))}}class G{constructor(_,W){this.predicate=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.predicate,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.predicate=W,this.thisArg=I,this.count=0}_next(_){let W;try{W=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}W&&this.destination.next(_)}}},537:(yt,be,p)=>{p.d(be,{x:()=>G});var a=p(3489),s=p(2654);function G(_){return W=>W.lift(new oe(_))}class oe{constructor(W){this.callback=W}call(W,I){return I.subscribe(new q(W,this.callback))}}class q extends a.L{constructor(W,I){super(W),this.add(new s.w(I))}}},4850:(yt,be,p)=>{p.d(be,{U:()=>s});var a=p(3489);function s(q,_){return function(I){if("function"!=typeof q)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new G(q,_))}}class G{constructor(_,W){this.project=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.project,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.project=W,this.count=0,this.thisArg=I||this}_next(_){let W;try{W=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(W)}}},7604:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.value=_}call(_,W){return W.subscribe(new oe(_,this.value))}}class oe extends a.L{constructor(_,W){super(_),this.value=W}_next(_){this.destination.next(this.value)}}},9146:(yt,be,p)=>{p.d(be,{J:()=>G});var a=p(1709),s=p(5379);function G(oe=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,oe)}},1709:(yt,be,p)=>{p.d(be,{zg:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(oe((ee,ye)=>(0,s.D)(I(ee,ye)).pipe((0,a.U)((Ye,Fe)=>R(ee,Ye,ye,Fe))),H)):("number"==typeof R&&(H=R),B=>B.lift(new q(I,H)))}class q{constructor(R,H=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=H}call(R,H){return H.subscribe(new _(R,this.project,this.concurrent))}}class _ extends G.Ds{constructor(R,H,B=Number.POSITIVE_INFINITY){super(R),this.project=H,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(yt,be,p)=>{p.d(be,{O:()=>s});var a=p(1762);function s(oe,q){return function(W){let I;if(I="function"==typeof oe?oe:function(){return oe},"function"==typeof q)return W.lift(new G(I,q));const R=Object.create(W,a.N);return R.source=W,R.subjectFactory=I,R}}class G{constructor(q,_){this.subjectFactory=q,this.selector=_}call(q,_){const{selector:W}=this,I=this.subjectFactory(),R=W(I).subscribe(q);return R.add(_.subscribe(I)),R}}},7770:(yt,be,p)=>{p.d(be,{QV:()=>G,ht:()=>q});var a=p(3489),s=p(9312);function G(W,I=0){return function(H){return H.lift(new oe(W,I))}}class oe{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new q(I,this.scheduler,this.delay))}}class q extends a.L{constructor(I,R,H=0){super(I),this.scheduler=R,this.delay=H}static dispatch(I){const{notification:R,destination:H}=I;R.observe(H),this.unsubscribe()}scheduleMessage(I){this.destination.add(this.scheduler.schedule(q.dispatch,this.delay,new _(I,this.destination)))}_next(I){this.scheduleMessage(s.P.createNext(I))}_error(I){this.scheduleMessage(s.P.createError(I)),this.unsubscribe()}_complete(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()}}class _{constructor(I,R){this.notification=I,this.destination=R}}},4327:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new G(_))}}class G{constructor(_){this.connectable=_}call(_,W){const{connectable:I}=this;I._refCount++;const R=new oe(_,I),H=W.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class oe extends a.L{constructor(_,W){super(_),this.connectable=W}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const W=_._refCount;if(W<=0)return void(this.connection=null);if(_._refCount=W-1,W>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},9973:(yt,be,p)=>{p.d(be,{X:()=>s});var a=p(3489);function s(q=-1){return _=>_.lift(new G(q,_))}class G{constructor(_,W){this.count=_,this.source=W}call(_,W){return W.subscribe(new oe(_,this.count,this.source))}}class oe extends a.L{constructor(_,W,I){super(_),this.count=W,this.source=I}error(_){if(!this.isStopped){const{source:W,count:I}=this;if(0===I)return super.error(_);I>-1&&(this.count=I-1),W.subscribe(this._unsubscribeAndRecycle())}}}},2014:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(3489);function s(q,_){let W=!1;return arguments.length>=2&&(W=!0),function(R){return R.lift(new G(q,_,W))}}class G{constructor(_,W,I=!1){this.accumulator=_,this.seed=W,this.hasSeed=I}call(_,W){return W.subscribe(new oe(_,this.accumulator,this.seed,this.hasSeed))}}class oe extends a.L{constructor(_,W,I,R){super(_),this.accumulator=W,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(_){this.hasSeed=!0,this._seed=_}_next(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}_tryNext(_){const W=this.index++;let I;try{I=this.accumulator(this.seed,_,W)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(yt,be,p)=>{p.d(be,{B:()=>q});var a=p(2536),s=p(4327),G=p(8929);function oe(){return new G.xQ}function q(){return _=>(0,s.x)()((0,a.O)(oe)(_))}},5154:(yt,be,p)=>{p.d(be,{d:()=>s});var a=p(5647);function s(oe,q,_){let W;return W=oe&&"object"==typeof oe?oe:{bufferSize:oe,windowTime:q,refCount:!1,scheduler:_},I=>I.lift(function G({bufferSize:oe=Number.POSITIVE_INFINITY,windowTime:q=Number.POSITIVE_INFINITY,refCount:_,scheduler:W}){let I,H,R=0,B=!1,ee=!1;return function(Ye){let Fe;R++,!I||B?(B=!1,I=new a.t(oe,q,W),Fe=I.subscribe(this),H=Ye.subscribe({next(ze){I.next(ze)},error(ze){B=!0,I.error(ze)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Fe=I.subscribe(this),this.add(()=>{R--,Fe.unsubscribe(),Fe=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(W))}},1307:(yt,be,p)=>{p.d(be,{T:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.total=_}call(_,W){return W.subscribe(new oe(_,this.total))}}class oe extends a.L{constructor(_,W){super(_),this.total=W,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(yt,be,p)=>{p.d(be,{O:()=>G});var a=p(1961),s=p(2866);function G(...oe){const q=oe[oe.length-1];return(0,s.K)(q)?(oe.pop(),_=>(0,a.z)(oe,_,q)):_=>(0,a.z)(oe,_)}},7545:(yt,be,p)=>{p.d(be,{w:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(W,I){return"function"==typeof I?R=>R.pipe(oe((H,B)=>(0,s.D)(W(H,B)).pipe((0,a.U)((ee,ye)=>I(H,ee,B,ye))))):R=>R.lift(new q(W))}class q{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends G.Ds{constructor(I,R){super(I),this.project=R,this.index=0}_next(I){let R;const H=this.index++;try{R=this.project(I,H)}catch(B){return void this.destination.error(B)}this._innerSub(R)}_innerSub(I){const R=this.innerSubscription;R&&R.unsubscribe();const H=new G.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,G.ft)(I,H),this.innerSubscription!==H&&B.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(I){this.destination.next(I)}}},2986:(yt,be,p)=>{p.d(be,{q:()=>oe});var a=p(3489),s=p(4231),G=p(8896);function oe(W){return I=>0===W?(0,G.c)():I.lift(new q(W))}class q{constructor(I){if(this.total=I,this.total<0)throw new s.W}call(I,R){return R.subscribe(new _(I,this.total))}}class _ extends a.L{constructor(I,R){super(I),this.total=R,this.count=0}_next(I){const R=this.total,H=++this.count;H<=R&&(this.destination.next(I),H===R&&(this.destination.complete(),this.unsubscribe()))}}},7625:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(1177);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.notifier=_}call(_,W){const I=new oe(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),W.subscribe(I)):I}}class oe extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(yt,be,p)=>{p.d(be,{b:()=>oe});var a=p(3489),s=p(7876),G=p(7043);function oe(W,I,R){return function(B){return B.lift(new q(W,I,R))}}class q{constructor(I,R,H){this.nextOrObserver=I,this.error=R,this.complete=H}call(I,R){return R.subscribe(new _(I,this.nextOrObserver,this.error,this.complete))}}class _ extends a.L{constructor(I,R,H,B){super(I),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=H||s.Z,this._tapComplete=B||s.Z,(0,G.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||s.Z,this._tapError=R.error||s.Z,this._tapComplete=R.complete||s.Z)}_next(I){try{this._tapNext.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}},6454:(yt,be,p)=>{p.d(be,{r:()=>G});var a=p(6498),s=p(2654);function G(oe,q){return new a.y(_=>{const W=new s.w;let I=0;return W.add(q.schedule(function(){I!==oe.length?(_.next(oe[I++]),_.closed||W.add(this.schedule())):_.complete()})),W})}},6686:(yt,be,p)=>{p.d(be,{o:()=>G});var a=p(2654);class s extends a.w{constructor(q,_){super()}schedule(q,_=0){return this}}class G extends s{constructor(q,_){super(q,_),this.scheduler=q,this.work=_,this.pending=!1}schedule(q,_=0){if(this.closed)return this;this.state=q;const W=this.id,I=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(I,W,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(q,_,W=0){return setInterval(q.flush.bind(q,this),W)}recycleAsyncId(q,_,W=0){if(null!==W&&this.delay===W&&!1===this.pending)return _;clearInterval(_)}execute(q,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(q,_);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,_){let I,W=!1;try{this.work(q)}catch(R){W=!0,I=!!R&&R||new Error(R)}if(W)return this.unsubscribe(),I}_unsubscribe(){const q=this.id,_=this.scheduler,W=_.actions,I=W.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&W.splice(I,1),null!=q&&(this.id=this.recycleAsyncId(_,q,null)),this.delay=null}}},2268:(yt,be,p)=>{p.d(be,{v:()=>s});let a=(()=>{class G{constructor(q,_=G.now){this.SchedulerAction=q,this.now=_}schedule(q,_=0,W){return new this.SchedulerAction(this,q).schedule(W,_)}}return G.now=()=>Date.now(),G})();class s extends a{constructor(oe,q=a.now){super(oe,()=>s.delegate&&s.delegate!==this?s.delegate.now():q()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(oe,q=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(oe,q,_):super.schedule(oe,q,_)}flush(oe){const{actions:q}=this;if(this.active)return void q.push(oe);let _;this.active=!0;do{if(_=oe.execute(oe.state,oe.delay))break}while(oe=q.shift());if(this.active=!1,_){for(;oe=q.shift();)oe.unsubscribe();throw _}}}},353:(yt,be,p)=>{p.d(be,{z:()=>G,P:()=>oe});var a=p(6686);const G=new(p(2268).v)(a.o),oe=G},5430:(yt,be,p)=>{p.d(be,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(yt,be,p)=>{p.d(be,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(yt,be,p)=>{p.d(be,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(yt,be,p)=>{p.d(be,{W:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return G.prototype=Object.create(Error.prototype),G})()},5279:(yt,be,p)=>{p.d(be,{N:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return G.prototype=Object.create(Error.prototype),G})()},2782:(yt,be,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(be,{z:()=>a})},5379:(yt,be,p)=>{function a(s){return s}p.d(be,{y:()=>a})},6688:(yt,be,p)=>{p.d(be,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(yt,be,p)=>{p.d(be,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(yt,be,p)=>{function a(s){return"function"==typeof s}p.d(be,{m:()=>a})},4241:(yt,be,p)=>{p.d(be,{k:()=>s});var a=p(6688);function s(G){return!(0,a.k)(G)&&G-parseFloat(G)+1>=0}},7830:(yt,be,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(be,{K:()=>a})},8955:(yt,be,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(be,{t:()=>a})},2866:(yt,be,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(be,{K:()=>a})},7876:(yt,be,p)=>{function a(){}p.d(be,{Z:()=>a})},4843:(yt,be,p)=>{p.d(be,{z:()=>s,U:()=>G});var a=p(5379);function s(...oe){return G(oe)}function G(oe){return 0===oe.length?a.y:1===oe.length?oe[0]:function(_){return oe.reduce((W,I)=>I(W),_)}}},9249:(yt,be,p)=>{p.d(be,{s:()=>B});var a=p(3650),s=p(2782),oe=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>ye=>{const Ye=ee[_.L]();if("function"!=typeof Ye.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ye.subscribe(ye)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>ye=>(ee.then(Ye=>{ye.closed||(ye.next(Ye),ye.complete())},Ye=>ye.error(Ye)).then(null,s.z),ye))(ee);if(ee&&"function"==typeof ee[oe.hZ])return(ee=>ye=>{const Ye=ee[oe.hZ]();for(;;){let Fe;try{Fe=Ye.next()}catch(ze){return ye.error(ze),ye}if(Fe.done){ye.complete();break}if(ye.next(Fe.value),ye.closed)break}return"function"==typeof Ye.return&&ye.add(()=>{Ye.return&&Ye.return()}),ye})(ee);{const Ye=`You provided ${(0,H.K)(ee)?"an invalid object":`'${ee}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ye)}}},3650:(yt,be,p)=>{p.d(be,{V:()=>a});const a=s=>G=>{for(let oe=0,q=s.length;oe{p.d(be,{D:()=>q});var a=p(3489);class s extends a.L{constructor(W,I,R){super(),this.parent=W,this.outerValue=I,this.outerIndex=R,this.index=0}_next(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)}_error(W){this.parent.notifyError(W,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),oe=p(6498);function q(_,W,I,R,H=new s(_,I,R)){if(!H.closed)return W instanceof oe.y?W.subscribe(H):(0,G.s)(W)(H)}},655:(yt,be,p)=>{function oe(J,fe){var he={};for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&fe.indexOf(te)<0&&(he[te]=J[te]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var le=0;for(te=Object.getOwnPropertySymbols(J);le=0;je--)(Ue=J[je])&&(ie=(le<3?Ue(ie):le>3?Ue(fe,he,ie):Ue(fe,he))||ie);return le>3&&ie&&Object.defineProperty(fe,he,ie),ie}function I(J,fe,he,te){return new(he||(he=Promise))(function(ie,Ue){function je(ve){try{ke(te.next(ve))}catch(mt){Ue(mt)}}function tt(ve){try{ke(te.throw(ve))}catch(mt){Ue(mt)}}function ke(ve){ve.done?ie(ve.value):function le(ie){return ie instanceof he?ie:new he(function(Ue){Ue(ie)})}(ve.value).then(je,tt)}ke((te=te.apply(J,fe||[])).next())})}p.d(be,{_T:()=>oe,gn:()=>q,mG:()=>I})},1777:(yt,be,p)=>{p.d(be,{l3:()=>G,_j:()=>a,LC:()=>s,ZN:()=>vt,jt:()=>q,IO:()=>Fe,vP:()=>W,EY:()=>ze,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>oe,ZE:()=>Je,k1:()=>zt});class a{}class s{}const G="*";function oe(ut,Ie){return{type:7,name:ut,definitions:Ie,options:{}}}function q(ut,Ie=null){return{type:4,styles:Ie,timings:ut}}function W(ut,Ie=null){return{type:2,steps:ut,options:Ie}}function I(ut){return{type:6,styles:ut,offset:null}}function R(ut,Ie,$e){return{type:0,name:ut,styles:Ie,options:$e}}function B(ut,Ie,$e=null){return{type:1,expr:ut,animation:Ie,options:$e}}function Fe(ut,Ie,$e=null){return{type:11,selector:ut,animation:Ie,options:$e}}function ze(ut,Ie){return{type:12,timings:ut,animation:Ie}}function _e(ut){Promise.resolve(null).then(ut)}class vt{constructor(Ie=0,$e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ie+$e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}onStart(Ie){this._onStartFns.push(Ie)}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_e(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ie){this._position=this.totalTime?Ie*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}class Je{constructor(Ie){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ie;let $e=0,et=0,Se=0;const Xe=this.players.length;0==Xe?_e(()=>this._onFinish()):this.players.forEach(J=>{J.onDone(()=>{++$e==Xe&&this._onFinish()}),J.onDestroy(()=>{++et==Xe&&this._onDestroy()}),J.onStart(()=>{++Se==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((J,fe)=>Math.max(J,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}init(){this.players.forEach(Ie=>Ie.init())}onStart(Ie){this._onStartFns.push(Ie)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[])}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ie=>Ie.play())}pause(){this.players.forEach(Ie=>Ie.pause())}restart(){this.players.forEach(Ie=>Ie.restart())}finish(){this._onFinish(),this.players.forEach(Ie=>Ie.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ie=>Ie.destroy()),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this.players.forEach(Ie=>Ie.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ie){const $e=Ie*this.totalTime;this.players.forEach(et=>{const Se=et.totalTime?Math.min(1,$e/et.totalTime):1;et.setPosition(Se)})}getPosition(){const Ie=this.players.reduce(($e,et)=>null===$e||et.totalTime>$e.totalTime?et:$e,null);return null!=Ie?Ie.getPosition():0}beforeDestroy(){this.players.forEach(Ie=>{Ie.beforeDestroy&&Ie.beforeDestroy()})}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}const zt="!"},5664:(yt,be,p)=>{p.d(be,{rt:()=>Ne,tE:()=>Le,qV:()=>Et});var a=p(9808),s=p(5e3),G=p(591),oe=p(8929),q=p(1086),_=p(1159),W=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),ye=p(7144);let le=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function Ue(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const ue=function ie(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(ue&&(-1===dt(ue)||!this.isVisible(ue)))return!1;let Ae=$.nodeName.toLowerCase(),wt=dt($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function _t(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ae?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ae?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,ue){return function it(L){return!function tt(L){return function ve(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function je(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function ke(L){return function mt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Qe(L))}($)&&!this.isDisabled($)&&((null==ue?void 0:ue.ignoreVisibility)||this.isVisible($))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Qe(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function dt(L){if(!Qe(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class ot{constructor(E,$,ue,Ae,wt=!1){this._element=E,this._checker=$,this._ngZone=ue,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}destroy(){const E=this._startAnchor,$=this._endAnchor;E&&(E.removeEventListener("focus",this.startAnchorListener),E.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(E)))})}focusFirstTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(E)))})}focusLastTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(E)))})}_getRegionBoundary(E){const $=this._element.querySelectorAll(`[cdk-focus-region-${E}], [cdkFocusRegion${E}], [cdk-focus-${E}]`);return"start"==E?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(E){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const ue=this._getFirstTabbableElement($);return null==ue||ue.focus(E),!!ue}return $.focus(E),!0}return this.focusFirstTabbableElement(E)}focusFirstTabbableElement(E){const $=this._getRegionBoundary("start");return $&&$.focus(E),!!$}focusLastTabbableElement(E){const $=this._getRegionBoundary("end");return $&&$.focus(E),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=0;ue<$.length;ue++){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[ue]):null;if(Ae)return Ae}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=$.length-1;ue>=0;ue--){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[ue]):null;if(Ae)return Ae}return null}_createAnchor(){const E=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,E),E.classList.add("cdk-visually-hidden"),E.classList.add("cdk-focus-trap-anchor"),E.setAttribute("aria-hidden","true"),E}_toggleAnchorTabIndex(E,$){E?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(E){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}_executeOnStable(E){this._ngZone.isStable?E():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,ue,Ae){this._checker=$,this._ngZone=ue,this._document=Ae}create($,ue=!1){return new ot($,this._checker,this._ngZone,this._document,ue)}}return L.\u0275fac=function($){return new($||L)(s.LFG(le),s.LFG(s.R0b),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Sn=new s.OlP("cdk-input-modality-detector-options"),cn={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},qe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,ue,Ae,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Qt,vn;(null===(vn=null===(Qt=this._options)||void 0===Qt?void 0:Qt.ignoreKeys)||void 0===vn?void 0:vn.some(Vn=>Vn===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function Cn(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(At))},this._onTouchstart=At=>{!function Dt(L){const E=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!E||-1!==E.identifier||null!=E.radiusX&&1!==E.radiusX||null!=E.radiusY&&1!==E.radiusY)}(At)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(At)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},cn),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&ue.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,qe),Ae.addEventListener("mousedown",this._onMousedown,qe),Ae.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(Sn,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const He=new s.OlP("cdk-focus-monitor-default-options"),Ge=(0,ee.i$)({passive:!0,capture:!0});let Le=(()=>{class L{constructor($,ue,Ae,wt,At){this._ngZone=$,this._platform=ue,this._inputModalityDetector=Ae,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const vn=(0,ee.sA)(Qt),Vn="focus"===Qt.type?this._onFocus:this._onBlur;for(let An=vn;An;An=An.parentElement)Vn.call(this,Qt,An)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,ue=!1){const Ae=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,q.of)(null);const wt=(0,ee.kV)(Ae)||this._getDocument(),At=this._elementInfo.get(Ae);if(At)return ue&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:ue,subject:new oe.xQ,rootNode:wt};return this._elementInfo.set(Ae,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const ue=(0,B.fI)($),Ae=this._elementInfo.get(ue);Ae&&(Ae.subject.complete(),this._setClasses(ue),this._elementInfo.delete(ue),this._removeGlobalListeners(Ae))}focusVia($,ue,Ae){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,vn])=>this._originChanged(Qt,ue,vn)):(this._setOrigin(ue),"function"==typeof wt.focus&&wt.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach(($,ue)=>this.stopMonitoring(ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,ue){$.classList.toggle("cdk-focused",!!ue),$.classList.toggle("cdk-touch-focused","touch"===ue),$.classList.toggle("cdk-keyboard-focused","keyboard"===ue),$.classList.toggle("cdk-mouse-focused","mouse"===ue),$.classList.toggle("cdk-program-focused","program"===ue)}_setOrigin($,ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,ue){const Ae=this._elementInfo.get(ue),wt=(0,ee.sA)($);!Ae||!Ae.checkChildren&&ue!==wt||this._originChanged(ue,this._getFocusOrigin(wt),Ae)}_onBlur($,ue){const Ae=this._elementInfo.get(ue);!Ae||Ae.checkChildren&&$.relatedTarget instanceof Node&&ue.contains($.relatedTarget)||(this._setClasses(ue),this._emitOrigin(Ae.subject,null))}_emitOrigin($,ue){this._ngZone.run(()=>$.next(ue))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const ue=$.rootNode,Ae=this._rootNodeFocusListenerCount.get(ue)||0;Ae||this._ngZone.runOutsideAngular(()=>{ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ue,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners($){const ue=$.rootNode;if(this._rootNodeFocusListenerCount.has(ue)){const Ae=this._rootNodeFocusListenerCount.get(ue);Ae>1?this._rootNodeFocusListenerCount.set(ue,Ae-1):(ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,ue,Ae){this._setClasses($,ue),this._emitOrigin(Ae.subject,ue),this._lastFocusOrigin=ue}_getClosestElementsInfo($){const ue=[];return this._elementInfo.forEach((Ae,wt)=>{(wt===$||Ae.checkChildren&&wt.contains($))&&ue.push([wt,Ae])}),ue}}return L.\u0275fac=function($){return new($||L)(s.LFG(s.R0b),s.LFG(ee.t4),s.LFG(x),s.LFG(a.K0,8),s.LFG(He,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Be="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ce=(()=>{class L{constructor($,ue){this._platform=$,this._document=ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const ue=this._document.defaultView||window,Ae=ue&&ue.getComputedStyle?ue.getComputedStyle($):null,wt=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch($.remove(),wt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(nt),$.remove(V),$.remove(Be),this._hasCheckedHighContrastMode=!0;const ue=this.getHighContrastMode();1===ue?($.add(nt),$.add(V)):2===ue&&($.add(nt),$.add(Be))}}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Ne=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ce))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,ye.Q8]]}),L})()},226:(yt,be,p)=>{p.d(be,{vT:()=>R,Is:()=>W});var a=p(5e3),s=p(9808);const G=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function oe(){return(0,a.f3M)(s.K0)}}),q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const Ye=ee.documentElement?ee.documentElement.dir:null;this.value=function _(H){const B=(null==H?void 0:H.toLowerCase())||"";return"auto"===B&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?q.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||Ye||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(G,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(yt,be,p)=>{p.d(be,{t6:()=>oe,Eq:()=>q,Ig:()=>s,HM:()=>_,fI:()=>W,su:()=>G});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function G(R,H=0){return oe(R)?Number(R):H}function oe(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function q(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function W(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(yt,be,p)=>{p.d(be,{zL:()=>I,ZH:()=>s,jx:()=>W,JH:()=>zt,K5:()=>q,hY:()=>B,oh:()=>_e,b2:()=>se,MW:()=>Ge,SV:()=>Je,JU:()=>_,L_:()=>ee,Mf:()=>G,LH:()=>vt,Vb:()=>k});const s=8,G=9,q=13,_=16,W=17,I=18,B=27,ee=32,_e=37,vt=38,Je=39,zt=40,Ge=91,se=224;function k(Ee,...st){return st.length?st.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(yt,be,p)=>{p.d(be,{Yg:()=>zt,u3:()=>Ie,xu:()=>Ye,vx:()=>_e});var a=p(5e3),s=p(3191),G=p(8929),oe=p(6053),q=p(1961),_=p(6498),W=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),ye=p(925);let Ye=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})();const Fe=new Set;let ze,_e=(()=>{class $e{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Je}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt($e){if(!Fe.has($e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${$e} {body{ }}`,0),Fe.add($e))}catch(et){console.error(et)}}(Se),this._matchMedia(Se)}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(ye.t4))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return{matches:"all"===$e||""===$e,media:$e,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class $e{constructor(Se,Xe){this._mediaMatcher=Se,this._zone=Xe,this._queries=new Map,this._destroySubject=new G.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return ut((0,s.Eq)(Se)).some(J=>this._registerQuery(J).mql.matches)}observe(Se){const J=ut((0,s.Eq)(Se)).map(he=>this._registerQuery(he).observable);let fe=(0,oe.aj)(J);return fe=(0,q.z)(fe.pipe((0,W.q)(1)),fe.pipe((0,I.T)(1),(0,R.b)(0))),fe.pipe((0,H.U)(he=>{const te={matches:!1,breakpoints:{}};return he.forEach(({matches:le,query:ie})=>{te.matches=te.matches||le,te.breakpoints[ie]=le}),te}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const Xe=this._mediaMatcher.matchMedia(Se),fe={observable:new _.y(he=>{const te=le=>this._zone.run(()=>he.next(le));return Xe.addListener(te),()=>{Xe.removeListener(te)}}).pipe((0,B.O)(Xe),(0,H.U)(({matches:he})=>({query:Se,matches:he})),(0,ee.R)(this._destroySubject)),mql:Xe};return this._queries.set(Se,fe),fe}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(_e),a.LFG(a.R0b))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function ut($e){return $e.map(et=>et.split(",")).reduce((et,Se)=>et.concat(Se)).map(et=>et.trim())}const Ie={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(yt,be,p)=>{p.d(be,{Q8:()=>q});var a=p(5e3);let s=(()=>{class _{create(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}return _.\u0275fac=function(I){return new(I||_)},_.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(yt,be,p)=>{p.d(be,{pI:()=>Cn,xu:()=>_n,tR:()=>fe,aV:()=>gn,X_:()=>J,Vs:()=>Et,U8:()=>cn,Iu:()=>Ue});var a=p(3393),s=p(9808),G=p(5e3),oe=p(3191),q=p(925),_=p(226),W=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class ye{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new Ye(x,this.predicate,this.inclusive))}}class Ye extends B.L{constructor(x,z,P){super(x),this.predicate=z,this.inclusive=P,this.index=0}_next(x){const z=this.destination;let P;try{P=this.predicate(x,this.index++)}catch(pe){return void z.error(pe)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Fe=p(2986),ze=p(7625),_e=p(1159);const vt=(0,q.Mq)();class Je{constructor(x,z){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,oe.HM)(-this._previousScrollPosition.left),x.style.top=(0,oe.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,P=x.style,pe=this._document.body.style,j=P.scrollBehavior||"",me=pe.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),vt&&(P.scrollBehavior=pe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vt&&(P.scrollBehavior=j,pe.scrollBehavior=me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,P=this._viewportRuler.getViewportSize();return z.scrollHeight>P.height||z.scrollWidth>P.width}}class ut{constructor(x,z,P,pe){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=pe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function $e(qe,x){return x.some(z=>qe.bottomz.bottom||qe.rightz.right)}function et(qe,x){return x.some(z=>qe.topz.bottom||qe.leftz.right)}class Se{constructor(x,z,P,pe){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=pe,this._scrollSubscription=null}attach(x){this._overlayRef=x}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:P,height:pe}=this._viewportRuler.getViewportSize();$e(z,[{width:P,height:pe,bottom:pe,right:P,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xe=(()=>{class qe{constructor(z,P,pe,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=pe,this.noop=()=>new Ie,this.close=me=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,me),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=me=>new Se(this._scrollDispatcher,this._viewportRuler,this._ngZone,me),this._document=j}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.mF),G.LFG(a.rL),G.LFG(G.R0b),G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class J{constructor(x){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const z=Object.keys(x);for(const P of z)void 0!==x[P]&&(this[P]=x[P])}}}class fe{constructor(x,z,P,pe,j){this.offsetX=P,this.offsetY=pe,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class te{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class Ue{constructor(x,z,P,pe,j,me,He,Ge,Le){this._portalOutlet=x,this._host=z,this._pane=P,this._config=pe,this._ngZone=j,this._keyboardDispatcher=me,this._document=He,this._location=Ge,this._outsideClickDispatcher=Le,this._backdropElement=null,this._backdropClick=new I.xQ,this._attachments=new I.xQ,this._detachments=new I.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=Me=>this._backdropClick.next(Me),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let z=this._portalOutlet.attach(x);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Fe.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){var x;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(x=this._host)||void 0===x||x.remove(),this._previousHostParent=this._pane=this._host=null,z&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,oe.HM)(this._config.width),x.height=(0,oe.HM)(this._config.height),x.minWidth=(0,oe.HM)(this._config.minWidth),x.minHeight=(0,oe.HM)(this._config.minHeight),x.maxWidth=(0,oe.HM)(this._config.maxWidth),x.maxHeight=(0,oe.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let z;const P=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",P),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(z)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",P)}),x.style.pointerEvents="none",z=this._ngZone.runOutsideAngular(()=>setTimeout(P,500))}_toggleClasses(x,z,P){const pe=(0,oe.Eq)(z||[]).filter(j=>!!j);pe.length&&(P?x.classList.add(...pe):x.classList.remove(...pe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ze.R)((0,H.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.remove(),this._backdropElement===x&&(this._backdropElement=null))}}let je=(()=>{class qe{constructor(z,P){this._platform=P,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,q.Oy)()){const pe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let j=0;j{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._originRect,z=this._overlayRect,P=this._viewportRect,pe=this._containerRect,j=[];let me;for(let He of this._preferredPositions){let Ge=this._getOriginPoint(x,pe,He),Le=this._getOverlayPoint(Ge,z,He),Me=this._getOverlayFit(Le,z,P,He);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(He,Ge);this._canFitWithFlexibleDimensions(Me,Le,P)?j.push({position:He,origin:Ge,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ge,He)}):(!me||me.overlayFit.visibleAreaGe&&(Ge=Me,He=Le)}return this._isPushed=!1,void this._applyPosition(He.position,He.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(me.position,me.originPoint);this._applyPosition(me.position,me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._lastPosition||this._preferredPositions[0],z=this._getOriginPoint(this._originRect,this._containerRect,x);this._applyPosition(x,z)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,z,P){let pe,j;if("center"==P.originX)pe=x.left+x.width/2;else{const me=this._isRtl()?x.right:x.left,He=this._isRtl()?x.left:x.right;pe="start"==P.originX?me:He}return z.left<0&&(pe-=z.left),j="center"==P.originY?x.top+x.height/2:"top"==P.originY?x.top:x.bottom,z.top<0&&(j-=z.top),{x:pe,y:j}}_getOverlayPoint(x,z,P){let pe,j;return pe="center"==P.overlayX?-z.width/2:"start"===P.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,j="center"==P.overlayY?-z.height/2:"top"==P.overlayY?0:-z.height,{x:x.x+pe,y:x.y+j}}_getOverlayFit(x,z,P,pe){const j=dt(z);let{x:me,y:He}=x,Ge=this._getOffset(pe,"x"),Le=this._getOffset(pe,"y");Ge&&(me+=Ge),Le&&(He+=Le);let Be=0-He,nt=He+j.height-P.height,ce=this._subtractOverflows(j.width,0-me,me+j.width-P.width),Ne=this._subtractOverflows(j.height,Be,nt),L=ce*Ne;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Ne===j.height,fitsInViewportHorizontally:ce==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const pe=P.bottom-z.y,j=P.right-z.x,me=Qe(this._overlayRef.getConfig().minHeight),He=Qe(this._overlayRef.getConfig().minWidth),Le=x.fitsInViewportHorizontally||null!=He&&He<=j;return(x.fitsInViewportVertically||null!=me&&me<=pe)&&Le}return!1}_pushOverlayOnScreen(x,z,P){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const pe=dt(z),j=this._viewportRect,me=Math.max(x.x+pe.width-j.width,0),He=Math.max(x.y+pe.height-j.height,0),Ge=Math.max(j.top-P.top-x.y,0),Le=Math.max(j.left-P.left-x.x,0);let Me=0,V=0;return Me=pe.width<=j.width?Le||-me:x.xce&&!this._isInitialRender&&!this._growAfterOpen&&(me=x.y-ce/2)}if("end"===z.overlayX&&!pe||"start"===z.overlayX&&pe)Be=P.width-x.x+this._viewportMargin,Me=x.x-this._viewportMargin;else if("start"===z.overlayX&&!pe||"end"===z.overlayX&&pe)V=x.x,Me=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ce=this._lastBoundingBoxSize.width;Me=2*nt,V=x.x-nt,Me>ce&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ce/2)}return{top:me,left:V,bottom:He,right:Be,width:Me,height:j}}_setBoundingBoxStyles(x,z){const P=this._calculateBoundingBoxRect(x,z);!this._isInitialRender&&!this._growAfterOpen&&(P.height=Math.min(P.height,this._lastBoundingBoxSize.height),P.width=Math.min(P.width,this._lastBoundingBoxSize.width));const pe={};if(this._hasExactPosition())pe.top=pe.left="0",pe.bottom=pe.right=pe.maxHeight=pe.maxWidth="",pe.width=pe.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,me=this._overlayRef.getConfig().maxWidth;pe.height=(0,oe.HM)(P.height),pe.top=(0,oe.HM)(P.top),pe.bottom=(0,oe.HM)(P.bottom),pe.width=(0,oe.HM)(P.width),pe.left=(0,oe.HM)(P.left),pe.right=(0,oe.HM)(P.right),pe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",pe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(pe.maxHeight=(0,oe.HM)(j)),me&&(pe.maxWidth=(0,oe.HM)(me))}this._lastBoundingBoxSize=P,mt(this._boundingBox.style,pe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},pe=this._hasExactPosition(),j=this._hasFlexibleDimensions,me=this._overlayRef.getConfig();if(pe){const Me=this._viewportRuler.getViewportScrollPosition();mt(P,this._getExactOverlayY(z,x,Me)),mt(P,this._getExactOverlayX(z,x,Me))}else P.position="static";let He="",Ge=this._getOffset(z,"x"),Le=this._getOffset(z,"y");Ge&&(He+=`translateX(${Ge}px) `),Le&&(He+=`translateY(${Le}px)`),P.transform=He.trim(),me.maxHeight&&(pe?P.maxHeight=(0,oe.HM)(me.maxHeight):j&&(P.maxHeight="")),me.maxWidth&&(pe?P.maxWidth=(0,oe.HM)(me.maxWidth):j&&(P.maxWidth="")),mt(this._pane.style,P)}_getExactOverlayY(x,z,P){let pe={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?pe.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":pe.top=(0,oe.HM)(j.y),pe}_getExactOverlayX(x,z,P){let me,pe={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),me=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===me?pe.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":pe.left=(0,oe.HM)(j.x),pe}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(pe=>pe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:$e(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:$e(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,pe)=>P-Math.max(pe,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,P=this._viewportRuler.getViewportScrollPosition();return{top:P.top+this._viewportMargin,left:P.left+this._viewportMargin,right:P.left+x-this._viewportMargin,bottom:P.top+z-this._viewportMargin,width:x-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,z){return"x"===z?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,oe.Eq)(x).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof G.SBq)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const z=x.width||0,P=x.height||0;return{top:x.y,bottom:x.y+P,left:x.x,right:x.x+z,height:P,width:z}}}function mt(qe,x){for(let z in x)x.hasOwnProperty(z)&&(qe[z]=x[z]);return qe}function Qe(qe){if("number"!=typeof qe&&null!=qe){const[x,z]=qe.split(ke);return z&&"px"!==z?null:parseFloat(x)}return qe||null}function dt(qe){return{top:Math.floor(qe.top),right:Math.floor(qe.right),bottom:Math.floor(qe.bottom),left:Math.floor(qe.left),width:Math.floor(qe.width),height:Math.floor(qe.height)}}const _t="cdk-global-overlay-wrapper";class it{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const z=x.getConfig();this._overlayRef=x,this._width&&!z.width&&x.updateSize({width:this._width}),this._height&&!z.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(_t),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,P=this._overlayRef.getConfig(),{width:pe,height:j,maxWidth:me,maxHeight:He}=P,Ge=!("100%"!==pe&&"100vw"!==pe||me&&"100%"!==me&&"100vw"!==me),Le=!("100%"!==j&&"100vh"!==j||He&&"100%"!==He&&"100vh"!==He);x.position=this._cssPosition,x.marginLeft=Ge?"0":this._leftOffset,x.marginTop=Le?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ge?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,P=z.style;z.classList.remove(_t),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class qe{constructor(z,P,pe,j){this._viewportRuler=z,this._document=P,this._platform=pe,this._overlayContainer=j}global(){return new it}flexibleConnectedTo(z){return new ve(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.rL),G.LFG(s.K0),G.LFG(q.t4),G.LFG(je))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ot=(()=>{class qe{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const P=this._attachedOverlays.indexOf(z);P>-1&&this._attachedOverlays.splice(P,1),0===this._attachedOverlays.length&&this.detach()}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Et=(()=>{class qe extends ot{constructor(z){super(z),this._keydownListener=P=>{const pe=this._attachedOverlays;for(let j=pe.length-1;j>-1;j--)if(pe[j]._keydownEvents.observers.length>0){pe[j]._keydownEvents.next(P);break}}}add(z){super.add(z),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Zt=(()=>{class qe extends ot{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=pe=>{this._pointerDownEventTarget=(0,q.sA)(pe)},this._clickListener=pe=>{const j=(0,q.sA)(pe),me="click"===pe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const Le=He[Ge];if(!(Le._outsidePointerEvents.observers.length<1)&&Le.hasAttached()){if(Le.overlayElement.contains(j)||Le.overlayElement.contains(me))break;Le._outsidePointerEvents.next(pe)}}}}add(z){if(super.add(z),!this._isAttached){const P=this._document.body;P.addEventListener("pointerdown",this._pointerDownListener,!0),P.addEventListener("click",this._clickListener,!0),P.addEventListener("auxclick",this._clickListener,!0),P.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=P.style.cursor,P.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0),G.LFG(q.t4))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),mn=0,gn=(()=>{class qe{constructor(z,P,pe,j,me,He,Ge,Le,Me,V,Be){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=pe,this._positionBuilder=j,this._keyboardDispatcher=me,this._injector=He,this._ngZone=Ge,this._document=Le,this._directionality=Me,this._location=V,this._outsideClickDispatcher=Be}create(z){const P=this._createHostElement(),pe=this._createPaneElement(P),j=this._createPortalOutlet(pe),me=new J(z);return me.direction=me.direction||this._directionality.value,new Ue(j,P,pe,me,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const P=this._document.createElement("div");return P.id="cdk-overlay-"+mn++,P.classList.add("cdk-overlay-pane"),z.appendChild(P),P}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(G.z2F)),new W.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(Xe),G.LFG(je),G.LFG(G._Vd),G.LFG(St),G.LFG(Et),G.LFG(G.zs3),G.LFG(G.R0b),G.LFG(s.K0),G.LFG(_.Is),G.LFG(s.Ye),G.LFG(Zt))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ut=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],un=new G.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class qe{constructor(z){this.elementRef=z}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(G.SBq))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qe})(),Cn=(()=>{class qe{constructor(z,P,pe,j,me){this._overlay=z,this._dir=me,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new G.vpe,this.positionChange=new G.vpe,this.attach=new G.vpe,this.detach=new G.vpe,this.overlayKeydown=new G.vpe,this.overlayOutsideClick=new G.vpe,this._templatePortal=new W.UE(P,pe),this._scrollStrategyFactory=j,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,oe.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,oe.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,oe.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,oe.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,oe.Ig)(z)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ut);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(P=>{this.overlayKeydown.next(P),P.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(P)&&(P.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(P=>{this.overlayOutsideClick.next(P)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),P=new J({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(P.width=this.width),(this.height||0===this.height)&&(P.height=this.height),(this.minWidth||0===this.minWidth)&&(P.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(P.minHeight=this.minHeight),this.backdropClass&&(P.backdropClass=this.backdropClass),this.panelClass&&(P.panelClass=this.panelClass),P}_updatePositionStrategy(z){const P=this.positions.map(pe=>({originX:pe.originX,originY:pe.originY,overlayX:pe.overlayX,overlayY:pe.overlayY,offsetX:pe.offsetX||this.offsetX,offsetY:pe.offsetY||this.offsetY,panelClass:pe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(P).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(qe,x=!1){return z=>z.lift(new ye(qe,x))}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(gn),G.Y36(G.Rgc),G.Y36(G.s_b),G.Y36(un),G.Y36(_.Is,8))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[G.TTD]}),qe})();const Sn={provide:un,deps:[gn],useFactory:function Dt(qe){return()=>qe.scrollStrategies.reposition()}};let cn=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=G.oAB({type:qe}),qe.\u0275inj=G.cJS({providers:[gn,Sn],imports:[[_.vT,W.eL,a.Cl],a.Cl]}),qe})()},925:(yt,be,p)=>{p.d(be,{t4:()=>oe,ud:()=>q,sA:()=>zt,kV:()=>vt,Oy:()=>ut,_i:()=>Fe,i$:()=>B,Mq:()=>Ye});var a=p(5e3),s=p(9808);let G;try{G="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ie){G=!1}let R,ee,ye,ze,oe=(()=>{class Ie{constructor(et){this._platformId=et,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!G)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Ie.\u0275fac=function(et){return new(et||Ie)(a.LFG(a.Lbi))},Ie.\u0275prov=a.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),q=(()=>{class Ie{}return Ie.\u0275fac=function(et){return new(et||Ie)},Ie.\u0275mod=a.oAB({type:Ie}),Ie.\u0275inj=a.cJS({}),Ie})();function B(Ie){return function H(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Ie:!!Ie.capture}function Ye(){if(null==ye){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ye=!1,ye;if("scrollBehavior"in document.documentElement.style)ye=!0;else{const Ie=Element.prototype.scrollTo;ye=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return ye}function Fe(){if("object"!=typeof document||!document)return 0;if(null==ee){const Ie=document.createElement("div"),$e=Ie.style;Ie.dir="rtl",$e.width="1px",$e.overflow="auto",$e.visibility="hidden",$e.pointerEvents="none",$e.position="absolute";const et=document.createElement("div"),Se=et.style;Se.width="2px",Se.height="1px",Ie.appendChild(et),document.body.appendChild(Ie),ee=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,ee=0===Ie.scrollLeft?1:2),Ie.remove()}return ee}function vt(Ie){if(function _e(){if(null==ze){const Ie="undefined"!=typeof document?document.head:null;ze=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return ze}()){const $e=Ie.getRootNode?Ie.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&$e instanceof ShadowRoot)return $e}return null}function zt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(yt,be,p)=>{p.d(be,{en:()=>ye,Pl:()=>Je,C5:()=>H,u0:()=>Fe,eL:()=>ut,UE:()=>B});var a=p(5e3),s=p(9808);class R{attach(et){return this._attachedHost=et,et.attach(this)}detach(){let et=this._attachedHost;null!=et&&(this._attachedHost=null,et.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class H extends R{constructor(et,Se,Xe,J){super(),this.component=et,this.viewContainerRef=Se,this.injector=Xe,this.componentFactoryResolver=J}}class B extends R{constructor(et,Se,Xe){super(),this.templateRef=et,this.viewContainerRef=Se,this.context=Xe}get origin(){return this.templateRef.elementRef}attach(et,Se=this.context){return this.context=Se,super.attach(et)}detach(){return this.context=void 0,super.detach()}}class ee extends R{constructor(et){super(),this.element=et instanceof a.SBq?et.nativeElement:et}}class ye{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(et){return et instanceof H?(this._attachedPortal=et,this.attachComponentPortal(et)):et instanceof B?(this._attachedPortal=et,this.attachTemplatePortal(et)):this.attachDomPortal&&et instanceof ee?(this._attachedPortal=et,this.attachDomPortal(et)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(et){this._disposeFn=et}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ye{constructor(et,Se,Xe,J,fe){super(),this.outletElement=et,this._componentFactoryResolver=Se,this._appRef=Xe,this._defaultInjector=J,this.attachDomPortal=he=>{const te=he.element,le=this._document.createComment("dom-portal");te.parentNode.insertBefore(le,te),this.outletElement.appendChild(te),this._attachedPortal=he,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(te,le)})},this._document=fe}attachComponentPortal(et){const Xe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let J;return et.viewContainerRef?(J=et.viewContainerRef.createComponent(Xe,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>J.destroy())):(J=Xe.create(et.injector||this._defaultInjector),this._appRef.attachView(J.hostView),this.setDisposeFn(()=>{this._appRef.detachView(J.hostView),J.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=et,J}attachTemplatePortal(et){let Se=et.viewContainerRef,Xe=Se.createEmbeddedView(et.templateRef,et.context);return Xe.rootNodes.forEach(J=>this.outletElement.appendChild(J)),Xe.detectChanges(),this.setDisposeFn(()=>{let J=Se.indexOf(Xe);-1!==J&&Se.remove(J)}),this._attachedPortal=et,Xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let Je=(()=>{class $e extends ye{constructor(Se,Xe,J){super(),this._componentFactoryResolver=Se,this._viewContainerRef=Xe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=fe=>{const he=fe.element,te=this._document.createComment("dom-portal");fe.setAttachedHost(this),he.parentNode.insertBefore(te,he),this._getRootNode().appendChild(he),this._attachedPortal=fe,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(he,te)})},this._document=J}get portal(){return this._attachedPortal}set portal(Se){this.hasAttached()&&!Se&&!this._isInitialized||(this.hasAttached()&&super.detach(),Se&&super.attach(Se),this._attachedPortal=Se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Se){Se.setAttachedHost(this);const Xe=null!=Se.viewContainerRef?Se.viewContainerRef:this._viewContainerRef,fe=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component),he=Xe.createComponent(fe,Xe.length,Se.injector||Xe.injector);return Xe!==this._viewContainerRef&&this._getRootNode().appendChild(he.hostView.rootNodes[0]),super.setDisposeFn(()=>he.destroy()),this._attachedPortal=Se,this._attachedRef=he,this.attached.emit(he),he}attachTemplatePortal(Se){Se.setAttachedHost(this);const Xe=this._viewContainerRef.createEmbeddedView(Se.templateRef,Se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Se,this._attachedRef=Xe,this.attached.emit(Xe),Xe}_getRootNode(){const Se=this._viewContainerRef.element.nativeElement;return Se.nodeType===Se.ELEMENT_NODE?Se:Se.parentNode}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},$e.\u0275dir=a.lG2({type:$e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),$e})(),ut=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})()},3393:(yt,be,p)=>{p.d(be,{xd:()=>Dt,x0:()=>me,N7:()=>pe,mF:()=>cn,Cl:()=>Ge,rL:()=>x});var a=p(3191),s=p(5e3),G=p(6686),q=p(2268);const W=new class _ extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=requestAnimationFrame(()=>Me.flush(null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(cancelAnimationFrame(V),Me.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(Le){return Le in B&&(delete B[Le],!0)}const ye={setImmediate(Le){const Me=R++;return B[Me]=!0,H.then(()=>ee(Me)&&Le()),Me},clearImmediate(Le){ee(Le)}},_e=new class ze extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=ye.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(ye.clearImmediate(V),Me.scheduled=void 0)}});var Je=p(6498);function zt(Le){return!!Le&&(Le instanceof Je.y||"function"==typeof Le.lift&&"function"==typeof Le.subscribe)}var ut=p(8929),Ie=p(1086),$e=p(3753),et=p(2654),Se=p(3489);class J{call(Me,V){return V.subscribe(new fe(Me))}}class fe extends Se.L{constructor(Me){super(Me),this.hasPrev=!1}_next(Me){let V;this.hasPrev?V=[this.prev,Me]:this.hasPrev=!0,this.prev=Me,V&&this.destination.next(V)}}var he=p(5778),te=p(7138),le=p(2198),ie=p(7625),Ue=p(1059),je=p(7545),tt=p(5154),ke=p(9808),ve=p(925),mt=p(226);class _t extends class Qe{}{constructor(Me){super(),this._data=Me}connect(){return zt(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Me,V,Be,nt,ce){Me.forEachOperation((Ne,L,E)=>{let $,ue;null==Ne.previousIndex?($=this._insertView(()=>Be(Ne,L,E),E,V,nt(Ne)),ue=$?1:0):null==E?(this._detachAndCacheView(L,V),ue=3):($=this._moveView(L,E,V,nt(Ne)),ue=2),ce&&ce({context:null==$?void 0:$.context,operation:ue,record:Ne})})}detach(){for(const Me of this._viewCache)Me.destroy();this._viewCache=[]}_insertView(Me,V,Be,nt){const ce=this._insertViewFromCache(V,Be);if(ce)return void(ce.context.$implicit=nt);const Ne=Me();return Be.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index)}_detachAndCacheView(Me,V){const Be=V.detach(Me);this._maybeCacheView(Be,V)}_moveView(Me,V,Be,nt){const ce=Be.get(Me);return Be.move(ce,V),ce.context.$implicit=nt,ce}_maybeCacheView(Me,V){if(this._viewCache.length0?ce/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Be/this._itemSize),$=Math.max(0,Math.min(Ne,nt-E));Ne!=$&&(Ne=$,ce=$*this._itemSize,V.start=Math.floor(Ne)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ce-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Ne-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Ne))}}function Cn(Le){return Le._scrollStrategy}let Dt=(()=>{class Le{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _n(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(V){this._itemSize=(0,a.su)(V)}get minBufferPx(){return this._minBufferPx}set minBufferPx(V){this._minBufferPx=(0,a.su)(V)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(V){this._maxBufferPx=(0,a.su)(V)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:un,useFactory:Cn,deps:[(0,s.Gpc)(()=>Le)]}]),s.TTD]}),Le})(),cn=(()=>{class Le{constructor(V,Be,nt){this._ngZone=V,this._platform=Be,this._scrolled=new ut.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nt}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const Be=this.scrollContainers.get(V);Be&&(Be.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new Je.y(Be=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,te.e)(V)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(V,Be){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Be).pipe((0,le.h)(ce=>!ce||nt.indexOf(ce)>-1))}getAncestorScrollContainers(V){const Be=[];return this.scrollContainers.forEach((nt,ce)=>{this._scrollableContainsElement(ce,V)&&Be.push(ce)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Be){let nt=(0,a.fI)(Be),ce=V.getElementRef().nativeElement;do{if(nt==ce)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,$e.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(s.R0b),s.LFG(ve.t4),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})(),Mn=(()=>{class Le{constructor(V,Be,nt,ce){this.elementRef=V,this.scrollDispatcher=Be,this.ngZone=nt,this.dir=ce,this._destroyed=new ut.xQ,this._elementScrolled=new Je.y(Ne=>this.ngZone.runOutsideAngular(()=>(0,$e.R)(this.elementRef.nativeElement,"scroll").pipe((0,ie.R)(this._destroyed)).subscribe(Ne)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(V){const Be=this.elementRef.nativeElement,nt=this.dir&&"rtl"==this.dir.value;null==V.left&&(V.left=nt?V.end:V.start),null==V.right&&(V.right=nt?V.start:V.end),null!=V.bottom&&(V.top=Be.scrollHeight-Be.clientHeight-V.bottom),nt&&0!=(0,ve._i)()?(null!=V.left&&(V.right=Be.scrollWidth-Be.clientWidth-V.left),2==(0,ve._i)()?V.left=V.right:1==(0,ve._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Be.scrollWidth-Be.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Be=this.elementRef.nativeElement;(0,ve.Mq)()?Be.scrollTo(V):(null!=V.top&&(Be.scrollTop=V.top),null!=V.left&&(Be.scrollLeft=V.left))}measureScrollOffset(V){const Be="left",ce=this.elementRef.nativeElement;if("top"==V)return ce.scrollTop;if("bottom"==V)return ce.scrollHeight-ce.clientHeight-ce.scrollTop;const Ne=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Ne?"right":Be:"end"==V&&(V=Ne?Be:"right"),Ne&&2==(0,ve._i)()?V==Be?ce.scrollWidth-ce.clientWidth-ce.scrollLeft:ce.scrollLeft:Ne&&1==(0,ve._i)()?V==Be?ce.scrollLeft+ce.scrollWidth-ce.clientWidth:-ce.scrollLeft:V==Be?ce.scrollLeft:ce.scrollWidth-ce.clientWidth-ce.scrollLeft}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(cn),s.Y36(s.R0b),s.Y36(mt.Is,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Le})(),x=(()=>{class Le{constructor(V,Be,nt){this._platform=V,this._change=new ut.xQ,this._changeListener=ce=>{this._change.next(ce)},this._document=nt,Be.runOutsideAngular(()=>{if(V.isBrowser){const ce=this._getWindow();ce.addEventListener("resize",this._changeListener),ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:Be,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Be,height:nt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Be=this._getWindow(),nt=V.documentElement,ce=nt.getBoundingClientRect();return{top:-ce.top||V.body.scrollTop||Be.scrollY||nt.scrollTop||0,left:-ce.left||V.body.scrollLeft||Be.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,te.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(ve.t4),s.LFG(s.R0b),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const P="undefined"!=typeof requestAnimationFrame?W:_e;let pe=(()=>{class Le extends Mn{constructor(V,Be,nt,ce,Ne,L,E){super(V,L,nt,Ne),this.elementRef=V,this._changeDetectorRef=Be,this._scrollStrategy=ce,this._detachedSubject=new ut.xQ,this._renderedRangeSubject=new ut.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(ue=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(ue))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=et.w.EMPTY,this._viewportChanges=E.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(V){this._orientation!==V&&(this._orientation=V,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(V){this._appendOnly=(0,a.Ig)(V)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,Ue.O)(null),(0,te.e)(0,P)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(V){this.ngZone.runOutsideAngular(()=>{this._forOf=V,this._forOf.dataStream.pipe((0,ie.R)(this._detachedSubject)).subscribe(Be=>{const nt=Be.length;nt!==this._dataLength&&(this._dataLength=nt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(V){this._totalContentSize!==V&&(this._totalContentSize=V,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(V){(function z(Le,Me){return Le.start==Me.start&&Le.end==Me.end})(this._renderedRange,V)||(this.appendOnly&&(V={start:0,end:Math.max(this._renderedRange.end,V.end)}),this._renderedRangeSubject.next(this._renderedRange=V),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(V,Be="to-start"){const ce="horizontal"==this.orientation,Ne=ce?"X":"Y";let E=`translate${Ne}(${Number((ce&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Be&&(E+=` translate${Ne}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=E&&(this._renderedContentTransform=E,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(V,Be="auto"){const nt={behavior:Be};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Be="auto"){this._scrollStrategy.scrollToIndex(V,Be)}measureScrollOffset(V){return super.measureScrollOffset(V||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const V=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?V.offsetWidth:V.offsetHeight}measureRangeSize(V){return this._forOf?this._forOf.measureRangeSize(V,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const V=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?V.clientWidth:V.clientHeight}_markChangeDetectionNeeded(V){V&&this._runAfterChangeDetection.push(V),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const V=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Be of V)Be()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(un,8),s.Y36(mt.Is,8),s.Y36(cn),s.Y36(x))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Be){if(1&V&&s.Gf(gn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Be._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Be){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Be.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Be.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:Le}]),s.qOj],ngContentSelectors:Ut,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Be){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&V&&(s.xp6(3),s.Udp("width",Be._totalContentWidth)("height",Be._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Le})();function j(Le,Me,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===Le?"start"===Me?nt.left:nt.right:"start"===Me?nt.top:nt.bottom}let me=(()=>{class Le{constructor(V,Be,nt,ce,Ne,L){this._viewContainerRef=V,this._template=Be,this._differs=nt,this._viewRepeater=ce,this._viewport=Ne,this.viewChange=new ut.xQ,this._dataSourceChanges=new ut.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Ue.O)(null),function Xe(){return Le=>Le.lift(new J)}(),(0,je.w)(([E,$])=>this._changeDataSource(E,$)),(0,tt.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ut.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ie.R)(this._destroyed)).subscribe(E=>{this._renderedRange=E,L.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(V){this._cdkVirtualForOf=V,function dt(Le){return Le&&"function"==typeof Le.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new _t(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Be,nt)=>V(Be+(this._renderedRange?this._renderedRange.start:0),nt):void 0}set cdkVirtualForTemplate(V){V&&(this._needsUpdate=!0,this._template=V)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(V){this._viewRepeater.viewCacheSize=(0,a.su)(V)}measureRangeSize(V,Be){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ce=V.end-V.start;let Ne,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Ne&&L?j(Be,"end",L)-j(Be,"start",Ne):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const V=this._differ.diff(this._renderedItems);V?this._applyChanges(V):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((V,Be)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Be):Be)),this._needsUpdate=!0)}_changeDataSource(V,Be){return V&&V.disconnect(this),this._needsUpdate=!0,Be?Be.connect(this):(0,Ie.of)()}_updateContext(){const V=this._data.length;let Be=this._viewContainerRef.length;for(;Be--;){const nt=this._viewContainerRef.get(Be);nt.context.index=this._renderedRange.start+Be,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ce,Ne,L)=>this._getEmbeddedViewArgs(ce,L),ce=>ce.item),V.forEachIdentityChange(ce=>{this._viewContainerRef.get(ce.currentIndex).context.$implicit=ce.item});const Be=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ce=this._viewContainerRef.get(nt);ce.context.index=this._renderedRange.start+nt,ce.context.count=Be,this._updateComputedContextProperties(ce.context)}}_updateComputedContextProperties(V){V.first=0===V.index,V.last=V.index===V.count-1,V.even=V.index%2==0,V.odd=!V.even}_getEmbeddedViewArgs(V,Be){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Be}}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(mn),s.Y36(pe,4),s.Y36(s.R0b))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:mn,useClass:St}])]}),Le})(),He=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({}),Le})(),Ge=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[[mt.vT,ve.ud,He],mt.vT,He]}),Le})()},9808:(yt,be,p)=>{p.d(be,{mr:()=>Je,Ov:()=>vo,ez:()=>Vo,K0:()=>W,uU:()=>Ii,JJ:()=>qo,Do:()=>ut,V_:()=>H,Ye:()=>Ie,S$:()=>_e,mk:()=>$n,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Vt,ED:()=>hn,tP:()=>io,wE:()=>ie,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Wn,dv:()=>ot,NF:()=>hi,qS:()=>Lt,w_:()=>_,bD:()=>Lo,q:()=>G,Mx:()=>Un,HT:()=>q});var a=p(5e3);let s=null;function G(){return s}function q(b){s||(s=b)}class _{}const W=new a.OlP("DocumentToken");let I=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function R(){return(0,a.LFG)(B)}()},providedIn:"platform"}),b})();const H=new a.OlP("Location Initialized");let B=(()=>{class b extends I{constructor(w){super(),this._doc=w,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",w,!1),()=>Q.removeEventListener("hashchange",w)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(w){this.location.pathname=w}pushState(w,Q,xe){ee()?this._history.pushState(w,Q,xe):this.location.hash=xe}replaceState(w,Q,xe){ee()?this._history.replaceState(w,Q,xe):this.location.hash=xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(w=0){this._history.go(w)}getState(){return this._history.state}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(W))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function ye(){return new B((0,a.LFG)(W))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function Ye(b,Y){if(0==b.length)return Y;if(0==Y.length)return b;let w=0;return b.endsWith("/")&&w++,Y.startsWith("/")&&w++,2==w?b+Y.substring(1):1==w?b+Y:b+"/"+Y}function Fe(b){const Y=b.match(/#|\?|$/),w=Y&&Y.index||b.length;return b.slice(0,w-("/"===b[w-1]?1:0))+b.slice(w)}function ze(b){return b&&"?"!==b[0]?"?"+b:b}let _e=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function vt(b){const Y=(0,a.LFG)(W).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const Je=new a.OlP("appBaseHref");let zt=(()=>{class b extends _e{constructor(w,Q){if(super(),this._platformLocation=w,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}prepareExternalUrl(w){return Ye(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+ze(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&w?`${Q}${xe}`:Q}pushState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ut=(()=>{class b extends _e{constructor(w,Q){super(),this._platformLocation=w,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}path(w=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(w){const Q=Ye(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),Ie=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const xe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Fe(Se(xe)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(w=!1){return this.normalize(this._platformStrategy.path(w))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(w,Q=""){return this.path()==this.normalize(w+ze(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,Se(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",xe=null){this._platformStrategy.pushState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}replaceState(w,Q="",xe=null){this._platformStrategy.replaceState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformStrategy).historyGo)||void 0===xe||xe.call(Q,w)}onUrlChange(w){this._urlChangeListeners.push(w),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(w="",Q){this._urlChangeListeners.forEach(xe=>xe(w,Q))}subscribe(w,Q,xe){return this._subject.subscribe({next:w,error:Q,complete:xe})}}return b.normalizeQueryParams=ze,b.joinWithSlash=Ye,b.stripTrailingSlash=Fe,b.\u0275fac=function(w){return new(w||b)(a.LFG(_e),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function $e(){return new Ie((0,a.LFG)(_e),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function Se(b){return b.replace(/\/index.html$/,"")}var J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J))(),fe=(()=>((fe=fe||{})[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),te=(()=>((te=te||{})[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))();function _t(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function it(b,Y){return cn((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function ot(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===ie.CurrencyDecimal)return w[a.wAp.NumberSymbols][ie.Decimal];if(Y===ie.CurrencyGroup)return w[a.wAp.NumberSymbols][ie.Group]}return Q}const un=a.kL8;function _n(b){if(!b[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(b,Y){for(let w=Y;w>-1;w--)if(void 0!==b[w])return b[w];throw new Error("Locale data API: locale data undefined")}function Mn(b){const[Y,w]=b.split(":");return{hours:+Y,minutes:+w}}const P=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},j=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var me=(()=>((me=me||{})[me.Short=0]="Short",me[me.ShortGMT=1]="ShortGMT",me[me.Long=2]="Long",me[me.Extended=3]="Extended",me))(),He=(()=>((He=He||{})[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Le(b,Y,w,Q){let xe=function we(b){if(Ve(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[xe,ct=1,Mt=1]=b.split("-").map(kt=>+kt);return Me(xe,ct-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function ae(b){const Y=new Date(0);let w=0,Q=0;const xe=b[8]?Y.setUTCFullYear:Y.setFullYear,ct=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),xe.call(Y,Number(b[1]),Number(b[2])-1,Number(b[3]));const Mt=Number(b[4]||0)-w,kt=Number(b[5]||0)-Q,Fn=Number(b[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ct.call(Y,Mt,kt,Fn,Tn),Y}(Q)}const Y=new Date(b);if(!Ve(Y))throw new Error(`Unable to convert "${b}" into a date`);return Y}(b);Y=V(w,Y)||Y;let kt,Mt=[];for(;Y;){if(kt=j.exec(Y),!kt){Mt.push(Y);break}{Mt=Mt.concat(kt.slice(1));const Dn=Mt.pop();if(!Dn)break;Y=Dn}}let Fn=xe.getTimezoneOffset();Q&&(Fn=jn(Q,Fn),xe=function Re(b,Y,w){const Q=w?-1:1,xe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(jn(Y,xe)-xe))}(xe,Q,!0));let Tn="";return Mt.forEach(Dn=>{const dn=function ri(b){if(An[b])return An[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ge.Eras,te.Abbreviated);break;case"GGGG":Y=E(Ge.Eras,te.Wide);break;case"GGGGG":Y=E(Ge.Eras,te.Narrow);break;case"y":Y=Ne(He.FullYear,1,0,!1,!0);break;case"yy":Y=Ne(He.FullYear,2,0,!0,!0);break;case"yyy":Y=Ne(He.FullYear,3,0,!1,!0);break;case"yyyy":Y=Ne(He.FullYear,4,0,!1,!0);break;case"Y":Y=Vn(1);break;case"YY":Y=Vn(2,!0);break;case"YYY":Y=Vn(3);break;case"YYYY":Y=Vn(4);break;case"M":case"L":Y=Ne(He.Month,1,1);break;case"MM":case"LL":Y=Ne(He.Month,2,1);break;case"MMM":Y=E(Ge.Months,te.Abbreviated);break;case"MMMM":Y=E(Ge.Months,te.Wide);break;case"MMMMM":Y=E(Ge.Months,te.Narrow);break;case"LLL":Y=E(Ge.Months,te.Abbreviated,he.Standalone);break;case"LLLL":Y=E(Ge.Months,te.Wide,he.Standalone);break;case"LLLLL":Y=E(Ge.Months,te.Narrow,he.Standalone);break;case"w":Y=vn(1);break;case"ww":Y=vn(2);break;case"W":Y=vn(1,!0);break;case"d":Y=Ne(He.Date,1);break;case"dd":Y=Ne(He.Date,2);break;case"c":case"cc":Y=Ne(He.Day,1);break;case"ccc":Y=E(Ge.Days,te.Abbreviated,he.Standalone);break;case"cccc":Y=E(Ge.Days,te.Wide,he.Standalone);break;case"ccccc":Y=E(Ge.Days,te.Narrow,he.Standalone);break;case"cccccc":Y=E(Ge.Days,te.Short,he.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ge.Days,te.Abbreviated);break;case"EEEE":Y=E(Ge.Days,te.Wide);break;case"EEEEE":Y=E(Ge.Days,te.Narrow);break;case"EEEEEE":Y=E(Ge.Days,te.Short);break;case"a":case"aa":case"aaa":Y=E(Ge.DayPeriods,te.Abbreviated);break;case"aaaa":Y=E(Ge.DayPeriods,te.Wide);break;case"aaaaa":Y=E(Ge.DayPeriods,te.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ge.DayPeriods,te.Abbreviated,he.Standalone,!0);break;case"bbbb":Y=E(Ge.DayPeriods,te.Wide,he.Standalone,!0);break;case"bbbbb":Y=E(Ge.DayPeriods,te.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ge.DayPeriods,te.Abbreviated,he.Format,!0);break;case"BBBB":Y=E(Ge.DayPeriods,te.Wide,he.Format,!0);break;case"BBBBB":Y=E(Ge.DayPeriods,te.Narrow,he.Format,!0);break;case"h":Y=Ne(He.Hours,1,-12);break;case"hh":Y=Ne(He.Hours,2,-12);break;case"H":Y=Ne(He.Hours,1);break;case"HH":Y=Ne(He.Hours,2);break;case"m":Y=Ne(He.Minutes,1);break;case"mm":Y=Ne(He.Minutes,2);break;case"s":Y=Ne(He.Seconds,1);break;case"ss":Y=Ne(He.Seconds,2);break;case"S":Y=Ne(He.FractionalSeconds,1);break;case"SS":Y=Ne(He.FractionalSeconds,2);break;case"SSS":Y=Ne(He.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=ue(me.Short);break;case"ZZZZZ":Y=ue(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=ue(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=ue(me.Long);break;default:return null}return An[b]=Y,Y}(Dn);Tn+=dn?dn(xe,w,Fn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function Me(b,Y,w){const Q=new Date(0);return Q.setFullYear(b,Y,w),Q.setHours(0,0,0),Q}function V(b,Y){const w=function je(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(pe[w]=pe[w]||{},pe[w][Y])return pe[w][Y];let Q="";switch(Y){case"shortDate":Q=_t(b,le.Short);break;case"mediumDate":Q=_t(b,le.Medium);break;case"longDate":Q=_t(b,le.Long);break;case"fullDate":Q=_t(b,le.Full);break;case"shortTime":Q=it(b,le.Short);break;case"mediumTime":Q=it(b,le.Medium);break;case"longTime":Q=it(b,le.Long);break;case"fullTime":Q=it(b,le.Full);break;case"short":const xe=V(b,"shortTime"),ct=V(b,"shortDate");Q=Be(St(b,le.Short),[xe,ct]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Be(St(b,le.Medium),[Mt,kt]);break;case"long":const Fn=V(b,"longTime"),Tn=V(b,"longDate");Q=Be(St(b,le.Long),[Fn,Tn]);break;case"full":const Dn=V(b,"fullTime"),dn=V(b,"fullDate");Q=Be(St(b,le.Full),[Dn,dn])}return Q&&(pe[w][Y]=Q),Q}function Be(b,Y){return Y&&(b=b.replace(/\{([^}]+)}/g,function(w,Q){return null!=Y&&Q in Y?Y[Q]:w})),b}function nt(b,Y,w="-",Q,xe){let ct="";(b<0||xe&&b<=0)&&(xe?b=1-b:(b=-b,ct=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===He.Hours)0===kt&&-12===w&&(kt=12);else if(b===He.FractionalSeconds)return function ce(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Fn=ot(Mt,ie.MinusSign);return nt(kt,Y,Fn,Q,xe)}}function E(b,Y,w=he.Format,Q=!1){return function(xe,ct){return function $(b,Y,w,Q,xe,ct){switch(w){case Ge.Months:return function ve(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getMonth()];case Ge.Days:return function ke(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getDay()];case Ge.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(ct){const Tn=function Cn(b){const Y=(0,a.cg1)(b);return _n(Y),(Y[a.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Mn(Q):[Mn(Q[0]),Mn(Q[1])])}(Y),Dn=function Dt(b,Y,w){const Q=(0,a.cg1)(b);_n(Q);const ct=cn([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return cn(ct,w)||[]}(Y,xe,Q),dn=Tn.findIndex(Yn=>{if(Array.isArray(Yn)){const[On,Yt]=Yn,Eo=Mt>=On.hours&&kt>=On.minutes,D=Mt0?Math.floor(xe/60):Math.ceil(xe/60);switch(b){case me.Short:return(xe>=0?"+":"")+nt(Mt,2,ct)+nt(Math.abs(xe%60),2,ct);case me.ShortGMT:return"GMT"+(xe>=0?"+":"")+nt(Mt,1,ct);case me.Long:return"GMT"+(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);case me.Extended:return 0===Q?"Z":(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return Me(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function vn(b,Y=!1){return function(w,Q){let xe;if(Y){const ct=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();xe=1+Math.floor((Mt+ct)/7)}else{const ct=Qt(w),Mt=function At(b){const Y=Me(b,0,1).getDay();return Me(b,0,1+(Y<=4?4:11)-Y)}(ct.getFullYear()),kt=ct.getTime()-Mt.getTime();xe=1+Math.round(kt/6048e5)}return nt(xe,b,ot(Q,ie.MinusSign))}}function Vn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,ot(Q,ie.MinusSign),Y)}}const An={};function jn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Ve(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function De(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class rt{}let on=(()=>{class b extends rt{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(un(Q||this.locale)(w)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(a.soG))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})();function Lt(b,Y,w){return(0,a.dwT)(b,Y,w)}function Un(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[xe,ct]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(xe.trim()===Y)return decodeURIComponent(ct)}return null}let $n=(()=>{class b{constructor(w,Q,xe,ct){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=xe,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),w.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!!w[Q])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(w,Q){(w=w.trim())&&w.split(/\s+/g).forEach(xe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,xe):this._renderer.removeClass(this._ngEl.nativeElement,xe)})}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),b})();class Rn{constructor(Y,w,Q,xe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=xe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class b{constructor(w,Q,xe){this._viewContainer=w,this._template=Q,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const Q=this._viewContainer;w.forEachOperation((xe,ct,Mt)=>{if(null==xe.previousIndex)Q.createEmbeddedView(this._template,new Rn(xe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===ct?void 0:ct);else if(null!==ct){const kt=Q.get(ct);Q.move(kt,Mt),X(kt,xe)}});for(let xe=0,ct=Q.length;xe{X(Q.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),b})();function X(b,Y){b.context.$implicit=Y.item}let k=(()=>{class b{constructor(w,Q){this._viewContainer=w,this._context=new Ee,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){st("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){st("ngIfElse",w),this._elseTemplateRef=w,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),b})();class Ee{constructor(){this.$implicit=null,this.ngIf=null}}function st(b,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Ct{constructor(Y,w){this._viewContainerRef=Y,this._templateRef=w,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let Ot=(()=>{class b{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(w){this._ngSwitch=w,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(w){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(w)}_matchCase(w){const Q=w==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(w){if(this._defaultViews&&w!==this._defaultUsed){this._defaultUsed=w;for(let Q=0;Q{class b{constructor(w,Q,xe){this.ngSwitch=xe,xe._addCase(),this._view=new Ct(w,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),b})(),hn=(()=>{class b{constructor(w,Q,xe){xe._addDefault(new Ct(w,Q))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]]}),b})(),bi=(()=>{class b{constructor(w,Q,xe){this._ngEl=w,this._differs=Q,this._renderer=xe,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,Q){const[xe,ct]=w.split(".");null!=(Q=null!=Q&&ct?`${Q}${ct}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,xe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,xe)}_applyChanges(w){w.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),w.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),b})(),io=(()=>{class b{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),b})();function vi(b,Y){return new a.vHH(2100,"")}class ui{createSubscription(Y,w){return Y.subscribe({next:w,error:Q=>{throw Q}})}dispose(Y){Y.unsubscribe()}onDestroy(Y){Y.unsubscribe()}}class wi{createSubscription(Y,w){return Y.then(w,Q=>{throw Q})}dispose(Y){}onDestroy(Y){}}const ko=new wi,Fo=new ui;let vo=(()=>{class b{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,Q=>this._updateLatestValue(w,Q))}_selectStrategy(w){if((0,a.QGY)(w))return ko;if((0,a.F4k)(w))return Fo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,Q){w===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.sBO,16))},b.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1}),b})();const sr=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ii=(()=>{class b{constructor(w,Q){this.locale=w,this.defaultTimezone=Q}transform(w,Q="mediumDate",xe,ct){var Mt;if(null==w||""===w||w!=w)return null;try{return Le(w,Q,ct||this.locale,null!==(Mt=null!=xe?xe:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(kt){throw vi()}}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.soG,16),a.Y36(sr,24))},b.\u0275pipe=a.Yjl({name:"date",type:b,pure:!0}),b})(),qo=(()=>{class b{constructor(w){this._locale=w}transform(w,Q,xe){if(!function oi(b){return!(null==b||""===b||b!=b)}(w))return null;xe=xe||this._locale;try{return function rn(b,Y,w){return function ei(b,Y,w,Q,xe,ct,Mt=!1){let kt="",Fn=!1;if(isFinite(b)){let Tn=function Te(b){let Q,xe,ct,Mt,kt,Y=Math.abs(b)+"",w=0;for((xe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(ct=Y.search(/e/i))>0?(xe<0&&(xe=ct),xe+=+Y.slice(ct+1),Y=Y.substring(0,ct)):xe<0&&(xe=Y.length),ct=0;"0"===Y.charAt(ct);ct++);if(ct===(kt=Y.length))Q=[0],xe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(xe-=ct,Q=[],Mt=0;ct<=kt;ct++,Mt++)Q[Mt]=Number(Y.charAt(ct))}return xe>22&&(Q=Q.splice(0,21),w=xe-1,xe=1),{digits:Q,exponent:w,integerLen:xe}}(b);Mt&&(Tn=function Qn(b){if(0===b.digits[0])return b;const Y=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===Y?b.digits.push(0,0):1===Y&&b.digits.push(0),b.integerLen+=2),b}(Tn));let Dn=Y.minInt,dn=Y.minFrac,Yn=Y.maxFrac;if(ct){const y=ct.match(ht);if(null===y)throw new Error(`${ct} is not a valid digit info`);const U=y[1],at=y[3],Nt=y[5];null!=U&&(Dn=De(U)),null!=at&&(dn=De(at)),null!=Nt?Yn=De(Nt):null!=at&&dn>Yn&&(Yn=dn)}!function Ze(b,Y,w){if(Y>w)throw new Error(`The minimum number of digits after fraction (${Y}) is higher than the maximum (${w}).`);let Q=b.digits,xe=Q.length-b.integerLen;const ct=Math.min(Math.max(Y,xe),w);let Mt=ct+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let dn=Mt;dn=5)if(Mt-1<0){for(let dn=0;dn>Mt;dn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;xe=Tn?Yt.pop():Fn=!1),Yn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(Tn,dn,Yn);let On=Tn.digits,Yt=Tn.integerLen;const Eo=Tn.exponent;let D=[];for(Fn=On.every(y=>!y);Yt0?D=On.splice(Yt,On.length):(D=On,On=[0]);const C=[];for(On.length>=Y.lgSize&&C.unshift(On.splice(-Y.lgSize,On.length).join(""));On.length>Y.gSize;)C.unshift(On.splice(-Y.gSize,On.length).join(""));On.length&&C.unshift(On.join("")),kt=C.join(ot(w,Q)),D.length&&(kt+=ot(w,xe)+D.join("")),Eo&&(kt+=ot(w,ie.Exponential)+"+"+Eo)}else kt=ot(w,ie.Infinity);return kt=b<0&&!Fn?Y.negPre+kt+Y.negSuf:Y.posPre+kt+Y.posSuf,kt}(b,function bn(b,Y="-"){const w={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Q=b.split(";"),xe=Q[0],ct=Q[1],Mt=-1!==xe.indexOf(".")?xe.split("."):[xe.substring(0,xe.lastIndexOf("0")+1),xe.substring(xe.lastIndexOf("0")+1)],kt=Mt[0],Fn=Mt[1]||"";w.posPre=kt.substr(0,kt.indexOf("#"));for(let Dn=0;Dn{class b{}return b.\u0275fac=function(w){return new(w||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({providers:[{provide:rt,useClass:on}]}),b})();const Lo="browser";function hi(b){return b===Lo}let Qi=(()=>{class b{}return b.\u0275prov=(0,a.Yz7)({token:b,providedIn:"root",factory:()=>new Xo((0,a.LFG)(W),window)}),b})();class Xo{constructor(Y,w){this.document=Y,this.window=w,this.offset=()=>[0,0]}setOffset(Y){this.offset=Array.isArray(Y)?()=>Y:Y}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Y){this.supportsScrolling()&&this.window.scrollTo(Y[0],Y[1])}scrollToAnchor(Y){if(!this.supportsScrolling())return;const w=function Pi(b,Y){const w=b.getElementById(Y)||b.getElementsByName(Y)[0];if(w)return w;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const Q=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let xe=Q.currentNode;for(;xe;){const ct=xe.shadowRoot;if(ct){const Mt=ct.getElementById(Y)||ct.querySelector(`[name="${Y}"]`);if(Mt)return Mt}xe=Q.nextNode()}}return null}(this.document,Y);w&&(this.scrollToElement(w),this.attemptFocus(w))}setHistoryScrollRestoration(Y){if(this.supportScrollRestoration()){const w=this.window.history;w&&w.scrollRestoration&&(w.scrollRestoration=Y)}}scrollToElement(Y){const w=Y.getBoundingClientRect(),Q=w.left+this.window.pageXOffset,xe=w.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(Q-ct[0],xe-ct[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Bn(this.window.history)||Bn(Object.getPrototypeOf(this.window.history));return!(!Y||!Y.writable&&!Y.set)}catch(Y){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Y){return!1}}}function Bn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Wn{}},520:(yt,be,p)=>{p.d(be,{TP:()=>je,jN:()=>R,eN:()=>ie,JF:()=>cn,WM:()=>H,LE:()=>_e,aW:()=>Se,Zn:()=>he});var a=p(9808),s=p(5e3),G=p(1086),oe=p(6498),q=p(1406),_=p(2198),W=p(4850);class I{}class R{}class H{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(P=>{const pe=P.indexOf(":");if(pe>0){const j=P.slice(0,pe),me=j.toLowerCase(),He=P.slice(pe+1).trim();this.maybeSetNormalizedName(j,me),this.headers.has(me)?this.headers.get(me).push(He):this.headers.set(me,[He])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let pe=z[P];const j=P.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(j,pe),this.maybeSetNormalizedName(P,j))})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const P=this.headers.get(z.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,P){return this.clone({name:z,value:P,op:"a"})}set(z,P){return this.clone({name:z,value:P,op:"s"})}delete(z,P){return this.clone({name:z,value:P,op:"d"})}maybeSetNormalizedName(z,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,z)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(P=>{this.headers.set(P,z.headers.get(P)),this.normalizedNames.set(P,z.normalizedNames.get(P))})}clone(z){const P=new H;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([z]),P}applyUpdate(z){const P=z.name.toLowerCase();switch(z.op){case"a":case"s":let pe=z.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...pe),this.headers.set(P,j);break;case"d":const me=z.value;if(me){let He=this.headers.get(P);if(!He)return;He=He.filter(Ge=>-1===me.indexOf(Ge)),0===He.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,He)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>z(this.normalizedNames.get(P),this.headers.get(P)))}}class B{encodeKey(z){return Fe(z)}encodeValue(z){return Fe(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const ye=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(x){return encodeURIComponent(x).replace(ye,(z,P)=>{var pe;return null!==(pe=Ye[P])&&void 0!==pe?pe:z})}function ze(x){return`${x}`}class _e{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new B,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(x,z){const P=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(j=>{const me=j.indexOf("="),[He,Ge]=-1==me?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,me)),z.decodeValue(j.slice(me+1))],Le=P.get(He)||[];Le.push(Ge),P.set(He,Le)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const pe=z.fromObject[P];this.map.set(P,Array.isArray(pe)?pe:[pe])})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const P=this.map.get(z);return P?P[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,P){return this.clone({param:z,value:P,op:"a"})}appendAll(z){const P=[];return Object.keys(z).forEach(pe=>{const j=z[pe];Array.isArray(j)?j.forEach(me=>{P.push({param:pe,value:me,op:"a"})}):P.push({param:pe,value:j,op:"a"})}),this.clone(P)}set(z,P){return this.clone({param:z,value:P,op:"s"})}delete(z,P){return this.clone({param:z,value:P,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const P=this.encoder.encodeKey(z);return this.map.get(z).map(pe=>P+"="+this.encoder.encodeValue(pe)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new _e({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(z),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const P=("a"===z.op?this.map.get(z.param):void 0)||[];P.push(ze(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let pe=this.map.get(z.param)||[];const j=pe.indexOf(ze(z.value));-1!==j&&pe.splice(j,1),pe.length>0?this.map.set(z.param,pe):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(z,P){return this.map.set(z,P),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function ut(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Ie(x){return"undefined"!=typeof Blob&&x instanceof Blob}function $e(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Se{constructor(z,P,pe,j){let me;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function zt(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||j?(this.body=void 0!==pe?pe:null,me=j):me=pe,me&&(this.reportProgress=!!me.reportProgress,this.withCredentials=!!me.withCredentials,me.responseType&&(this.responseType=me.responseType),me.headers&&(this.headers=me.headers),me.context&&(this.context=me.context),me.params&&(this.params=me.params)),this.headers||(this.headers=new H),this.context||(this.context=new Je),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=P;else{const Ge=P.indexOf("?");this.urlWithParams=P+(-1===Ge?"?":Gent.set(ce,z.setHeaders[ce]),Me)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ce)=>nt.set(ce,z.setParams[ce]),V)),new Se(pe,j,He,{params:V,headers:Me,context:Be,reportProgress:Le,responseType:me,withCredentials:Ge})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class J{constructor(z,P=200,pe="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||pe,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends J{constructor(z={}){super(z),this.type=Xe.ResponseHeader}clone(z={}){return new fe({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class he extends J{constructor(z={}){super(z),this.type=Xe.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new he({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class te extends J{constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(x,z){return{body:z,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let ie=(()=>{class x{constructor(P){this.handler=P}request(P,pe,j={}){let me;if(P instanceof Se)me=P;else{let Le,Me;Le=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(Me=j.params instanceof _e?j.params:new _e({fromObject:j.params})),me=new Se(P,pe,void 0!==j.body?j.body:null,{headers:Le,context:j.context,params:Me,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const He=(0,G.of)(me).pipe((0,q.b)(Le=>this.handler.handle(Le)));if(P instanceof Se||"events"===j.observe)return He;const Ge=He.pipe((0,_.h)(Le=>Le instanceof he));switch(j.observe||"body"){case"body":switch(me.responseType){case"arraybuffer":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Le.body}));case"blob":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof Blob))throw new Error("Response is not a Blob.");return Le.body}));case"text":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&"string"!=typeof Le.body)throw new Error("Response is not a string.");return Le.body}));default:return Ge.pipe((0,W.U)(Le=>Le.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,pe={}){return this.request("DELETE",P,pe)}get(P,pe={}){return this.request("GET",P,pe)}head(P,pe={}){return this.request("HEAD",P,pe)}jsonp(P,pe){return this.request("JSONP",P,{params:(new _e).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,pe={}){return this.request("OPTIONS",P,pe)}patch(P,pe,j={}){return this.request("PATCH",P,le(j,pe))}post(P,pe,j={}){return this.request("POST",P,le(j,pe))}put(P,pe,j={}){return this.request("PUT",P,le(j,pe))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class Ue{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const je=new s.OlP("HTTP_INTERCEPTORS");let tt=(()=>{class x{intercept(P,pe){return pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const St=/^\)\]\}',?\n/;let Et=(()=>{class x{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new oe.y(pe=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ce,Ne)=>j.setRequestHeader(ce,Ne.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ce=P.detectContentTypeHeader();null!==ce&&j.setRequestHeader("Content-Type",ce)}if(P.responseType){const ce=P.responseType.toLowerCase();j.responseType="json"!==ce?ce:"text"}const me=P.serializeBody();let He=null;const Ge=()=>{if(null!==He)return He;const ce=1223===j.status?204:j.status,Ne=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function ot(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(j)||P.url;return He=new fe({headers:L,status:ce,statusText:Ne,url:E}),He},Le=()=>{let{headers:ce,status:Ne,statusText:L,url:E}=Ge(),$=null;204!==Ne&&($=void 0===j.response?j.responseText:j.response),0===Ne&&(Ne=$?200:0);let ue=Ne>=200&&Ne<300;if("json"===P.responseType&&"string"==typeof $){const Ae=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ae,ue&&(ue=!1,$={error:wt,text:$})}}ue?(pe.next(new he({body:$,headers:ce,status:Ne,statusText:L,url:E||void 0})),pe.complete()):pe.error(new te({error:$,headers:ce,status:Ne,statusText:L,url:E||void 0}))},Me=ce=>{const{url:Ne}=Ge(),L=new te({error:ce,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Ne||void 0});pe.error(L)};let V=!1;const Be=ce=>{V||(pe.next(Ge()),V=!0);let Ne={type:Xe.DownloadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),"text"===P.responseType&&!!j.responseText&&(Ne.partialText=j.responseText),pe.next(Ne)},nt=ce=>{let Ne={type:Xe.UploadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),pe.next(Ne)};return j.addEventListener("load",Le),j.addEventListener("error",Me),j.addEventListener("timeout",Me),j.addEventListener("abort",Me),P.reportProgress&&(j.addEventListener("progress",Be),null!==me&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(me),pe.next({type:Xe.Sent}),()=>{j.removeEventListener("error",Me),j.removeEventListener("abort",Me),j.removeEventListener("load",Le),j.removeEventListener("timeout",Me),P.reportProgress&&(j.removeEventListener("progress",Be),null!==me&&j.upload&&j.upload.removeEventListener("progress",nt)),j.readyState!==j.DONE&&j.abort()}})}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.JF))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const Zt=new s.OlP("XSRF_COOKIE_NAME"),mn=new s.OlP("XSRF_HEADER_NAME");class gn{}let Ut=(()=>{class x{constructor(P,pe,j){this.doc=P,this.platform=pe,this.cookieName=j,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.K0),s.LFG(s.Lbi),s.LFG(Zt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),un=(()=>{class x{constructor(P,pe){this.tokenService=P,this.headerName=pe}intercept(P,pe){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return pe.handle(P);const me=this.tokenService.getToken();return null!==me&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,me)})),pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(gn),s.LFG(mn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,pe){this.backend=P,this.injector=pe,this.chain=null}handle(P){if(null===this.chain){const pe=this.injector.get(je,[]);this.chain=pe.reduceRight((j,me)=>new Ue(j,me),this.backend)}return this.chain.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(R),s.LFG(s.zs3))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),Sn=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:un,useClass:tt}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Zt,useValue:P.cookieName}:[],P.headerName?{provide:mn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[un,{provide:je,useExisting:un,multi:!0},{provide:gn,useClass:Ut},{provide:Zt,useValue:"XSRF-TOKEN"},{provide:mn,useValue:"X-XSRF-TOKEN"}]}),x})(),cn=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[ie,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(yt,be,p)=>{p.d(be,{deG:()=>b2,tb:()=>Mh,AFp:()=>yh,ip1:()=>X4,CZH:()=>ks,hGG:()=>tp,z2F:()=>Ma,sBO:()=>O9,Sil:()=>t2,_Vd:()=>pa,EJc:()=>wh,SBq:()=>ma,qLn:()=>gs,vpe:()=>rr,tBr:()=>hs,XFs:()=>Dt,OlP:()=>li,zs3:()=>fo,ZZ4:()=>J1,aQg:()=>X1,soG:()=>Q1,YKP:()=>zu,h0i:()=>Ps,PXZ:()=>w9,R0b:()=>mo,FiY:()=>_r,Lbi:()=>Ch,g9A:()=>_h,Qsj:()=>uf,FYo:()=>bu,JOm:()=>jo,q3G:()=>mi,tp0:()=>Ar,Rgc:()=>_a,dDg:()=>zh,DyG:()=>Ys,GfV:()=>wu,s_b:()=>W1,ifc:()=>me,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>an,vHH:()=>Fe,EiD:()=>Ec,mCW:()=>fs,qzn:()=>Ir,JVY:()=>t3,pB0:()=>r3,eBb:()=>vc,L6k:()=>n3,LAX:()=>o3,cg1:()=>P4,kL8:()=>W0,yhl:()=>gc,dqk:()=>V,sIi:()=>bs,CqO:()=>X6,QGY:()=>y4,F4k:()=>J6,dwT:()=>i7,RDi:()=>Jo,AaK:()=>I,z3N:()=>er,qOj:()=>O1,TTD:()=>oi,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>we,Yz7:()=>_t,cJS:()=>St,oAB:()=>jn,Yjl:()=>ae,Y36:()=>ca,_UZ:()=>Z6,GkF:()=>Q6,BQk:()=>v4,ynx:()=>g4,qZA:()=>m4,TgZ:()=>p4,EpF:()=>q6,n5z:()=>lo,LFG:()=>zi,$8M:()=>uo,$Z:()=>K6,NdJ:()=>_4,CRH:()=>qu,O4$:()=>pi,oxw:()=>n0,ALo:()=>Nu,lcZ:()=>Ru,xi3:()=>Bu,Dn7:()=>Yu,Hsn:()=>r0,F$t:()=>o0,Q6J:()=>d4,s9C:()=>b4,MGl:()=>V1,hYB:()=>w4,DdM:()=>Pu,VKq:()=>Ou,WLB:()=>Au,l5B:()=>ku,iGM:()=>Ku,MAs:()=>L6,CHM:()=>c,oJD:()=>zc,LSH:()=>Ha,kYT:()=>qt,Udp:()=>D4,WFA:()=>C4,d8E:()=>x4,YNc:()=>V6,W1O:()=>th,_uU:()=>S0,Oqu:()=>S4,hij:()=>H1,AsE:()=>T4,Gf:()=>Zu});var a=p(8929),s=p(2654),G=p(6498),oe=p(6787),q=p(8117);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function R(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=_({__forward_ref__:_});function B(e){return e.__forward_ref__=B,e.toString=function(){return I(this())},e}function ee(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Fe extends Error{constructor(t,n){super(function ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ie(e,t){const n=t?` in ${t}`:"";throw new Fe(-201,`No provider for ${vt(e)} found${n}`)}function ke(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function St(e){return{providers:e.providers||[],imports:e.imports||[]}}function ot(e){return Et(e,Ut)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function gn(e){return e&&(e.hasOwnProperty(un)||e.hasOwnProperty(Cn))?e[un]:null}const Ut=_({\u0275prov:_}),un=_({\u0275inj:_}),_n=_({ngInjectableDef:_}),Cn=_({ngInjectorDef:_});var Dt=(()=>((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt))();let Sn;function Mn(e){const t=Sn;return Sn=e,t}function qe(e,t,n){const i=ot(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void Ie(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),me=(()=>{return(e=me||(me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",me;var e})();const He="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Le="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=He||"undefined"!=typeof global&&global||Ge||Le,ce={},Ne=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Ae=_({\u0275fac:_}),wt=_({__NG_ELEMENT_ID__:_});let At=0;function Qt(e){return z(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||me.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=Re(e.inputs,n),i.outputs=Re(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(An):null,i})}function Vn(e){return Ve(e)||function ht(e){return e[E]||null}(e)}function An(e){return function It(e){return e[$]||null}(e)}const ri={};function jn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=jt(e,!0);n.declarations=t.declarations||Ne,n.imports=t.imports||Ne,n.exports=t.exports||Ne})}function Re(e,t){if(null==e)return ce;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,t&&(t[o]=r)}return n}const we=Qt;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[L]||null}function jt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}const k=19;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function hn(e){return 0!=(8&e.flags)}function ni(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function oi(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=bo),Di}function Di(){const e=Lo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ce)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bo(e,t,n,i){const o=Lo(e)||function wo(e,t){return e[Vo]=t}(e,{previous:ce,current:null}),r=o.current||(o.current={}),u=o.previous,f=this.declaredInputs[n],v=u[f];r[f]=new ro(v&&v.currentValue,t,u===ce),e[i]=t}oi.ngInherit=!0;const Vo="__ngSimpleChanges__";function Lo(e){return e[Vo]||null}const Ei="http://www.w3.org/2000/svg";let Do;function Jo(e){Do=e}function Qi(){return void 0!==Do?Do:"undefined"!=typeof document?document:void 0}function Bn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Wn(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Wn(t[e])}function Q(e,t){return Wn(t[e.index])}function ct(e,t){return e.data[t]}function Mt(e,t){return e[t]}function kt(e,t){const n=t[e];return Ot(n)?n:n[0]}function Fn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function Yn(e){e[18]=0}function On(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return Yt.bindingsEnabled}function lt(){return Yt.lFrame.lView}function O(){return Yt.lFrame.tView}function c(e){return Yt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return Yt.lFrame.currentTNode}function ne(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function ge(){return Yt.lFrame.isParent}function Ce(){Yt.lFrame.isParent=!1}function Pt(){return Yt.isInCheckNoChangesMode}function Bt(e){Yt.isInCheckNoChangesMode=e}function Gt(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return Yt.lFrame.bindingIndex++}function pn(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){Yt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return Yt.lFrame.currentQueryIndex}function Bi(e){Yt.lFrame.currentQueryIndex=e}function Yi(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Li(e,t,n){if(n&Dt.SkipSelf){let o=t,r=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=Yi(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,e=r}const i=Yt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zo(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function fr(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pr=fr;function Rt(){const e=fr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return Yt.lFrame.selectedIndex}function Gn(e){Yt.lFrame.selectedIndex=e}function xn(){const e=Yt.lFrame;return ct(e.tView,e.selectedIndex)}function pi(){Yt.lFrame.currentNamespace=Ei}function Hi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{r.call(f)}finally{}}}else try{r.call(f)}finally{}}class No{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=Bn(e);let o=0;for(;ot){u=r-1;break}}}for(;r>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let yr=!0;function Tr(e){const t=yr;return yr=e,t}let Ea=0;function ur(e,t){const n=Rs(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,os(i.data,e),os(t,null),os(i.blueprint,null));const o=m(e,t),r=e.injectorIndex;if(Hs(o)){const u=cr(o),f=lr(o,t),v=f[1].data;for(let T=0;T<8;T++)t[r+T]=f[u+T]|v[u+T]}return t[r+8]=o,r}function os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function m(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const r=o[1],u=r.type;if(i=2===u?r.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function d(e,t,n){!function za(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(i=n[wt]),null==i&&(i=n[wt]=Ea++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Oe:t}(n);if("function"==typeof r){if(!Li(t,e,i))return i&Dt.Host?M(o,n,i):S(t,n,i,o);try{const u=r(i);if(null!=u||i&Dt.Optional)return u;Ie(n)}finally{pr()}}else if("number"==typeof r){let u=null,f=Rs(e,t),v=-1,T=i&Dt.Host?t[16][6]:null;for((-1===f||i&Dt.SkipSelf)&&(v=-1===f?m(e,t):t[f+8],-1!==v&&Hn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(In(r,f,N.data)){const re=pt(f,t,n,u,i,T);if(re!==de)return re}v=t[f+8],-1!==v&&Hn(i,t[1].data[f+8]===T)&&In(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Oe(){return new co(l(),lt())}function pt(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ni(f)&&yr:i!=u&&0!=(3&f.type),o&Dt.Host&&r===f);return null!==N?wn(t,u,N,f):de}function Ht(e,t,n,i,o){const r=e.providerIndexes,u=t.data,f=1048575&r,v=e.directiveStart,N=r>>20,Pe=o?f+N:e.directiveEnd;for(let We=i?f:f+N;We=v&>.type===n)return We}if(o){const We=u[v];if(We&&kn(We)&&We.type===n)return v}return null}function wn(e,t,n,i){let o=e[n];const r=t.data;if(function ar(e){return e instanceof No}(o)){const u=o;u.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(vt(r[n]));const f=Tr(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?Mn(u.injectImpl):null;Li(e,i,Dt.Default);try{o=e[n]=u.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ci(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const u=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==v&&Mn(v),Tr(f),u.resolving=!1,pr()}}return o}function In(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ae]||Ui(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ae]||Ui(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ui(e){return ye(e)?()=>{const t=Ui(ee(e));return t&&t()}:Ti(e)}function uo(e){return function h(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Sa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const u=new o(...r);return f.annotation=u,f;function f(v,T,N){const re=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;re.length<=N;)re.push(null);return(re[N]=re[N]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const b2=new li("AnalyzeForEntryComponents"),Ys=Function;function ho(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?To(n,t):t(n))}function tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function js(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function E2(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ta(e,t){const n=Or(e,t);if(n>=0)return e[1|n]}function Or(e,t){return function oc(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const r=i+(o-i>>1),u=e[r<t?o=r:i=r+1}return~(o<({token:e})),-1),_r=us(Pr("Optional"),8),Ar=us(Pr("SkipSelf"),4);let Ks,Zs;function Fr(e){var t;return(null===(t=function Aa(){if(void 0===Ks&&(Ks=null,V.trustedTypes))try{Ks=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ks}())||void 0===t?void 0:t.createHTML(e))||e}function fc(e){var t;return(null===(t=function ka(){if(void 0===Zs&&(Zs=null,V.trustedTypes))try{Zs=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Zs}())||void 0===t?void 0:t.createHTML(e))||e}class Cr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Q2 extends Cr{getTypeName(){return"HTML"}}class q2 extends Cr{getTypeName(){return"Style"}}class J2 extends Cr{getTypeName(){return"Script"}}class X2 extends Cr{getTypeName(){return"URL"}}class e3 extends Cr{getTypeName(){return"ResourceURL"}}function er(e){return e instanceof Cr?e.changingThisBreaksApplicationSecurity:e}function Ir(e,t){const n=gc(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function gc(e){return e instanceof Cr&&e.getTypeName()||null}function t3(e){return new Q2(e)}function n3(e){return new q2(e)}function vc(e){return new J2(e)}function o3(e){return new X2(e)}function r3(e){return new e3(e)}class s3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Fr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class a3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Fr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0fs(t.trim())).join(", ")),this.buf.push(" ",u,'="',Dc(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!Cc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dc(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const f3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p3=/([^\#-~ |!])/g;function Dc(e){return e.replace(/&/g,"&").replace(f3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(p3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Ec(e,t){let n=null;try{Qs=Qs||function yc(e){const t=new a3(e);return function c3(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new s3(t):t}(e);let i=t?String(t):"";n=Qs.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Qs.getInertBodyElement(i)}while(i!==r);return Fr((new d3).sanitizeChildren(La(n)||n))}finally{if(n){const i=La(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function La(e){return"content"in e&&function m3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=(()=>((mi=mi||{})[mi.NONE=0]="NONE",mi[mi.HTML=1]="HTML",mi[mi.STYLE=2]="STYLE",mi[mi.SCRIPT=3]="SCRIPT",mi[mi.URL=4]="URL",mi[mi.RESOURCE_URL=5]="RESOURCE_URL",mi))();function zc(e){const t=ps();return t?fc(t.sanitize(mi.HTML,e)||""):Ir(e,"HTML")?fc(er(e)):Ec(Qi(),_e(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(_e(e))}function ps(){const e=lt();return e&&e[12]}const Pc="__ngContext__";function ki(e,t){e[Pc]=t}function Ra(e){const t=function ms(e){return e[Pc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qs(e){return e.ngOriginalError}function T3(e,...t){e.error(...t)}class gs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function S3(e){return e&&e.ngErrorLogger||T3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&qs(t);for(;n&&qs(n);)n=qs(n);return n||null}}const Lc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Yo(e){return e instanceof Function?e():e}var jo=(()=>((jo=jo||{})[jo.Important=1]="Important",jo[jo.DashCase=2]="DashCase",jo))();function ja(e,t){return undefined(e,t)}function vs(e){const t=e[3];return Vt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Vt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Wn(i);0===e&&null!==n?null==o?Kc(t,n,f):Mr(t,n,f,o||null,!0):1===e&&null!==n?Mr(t,n,f,o||null,!0):2===e?function nl(e,t,n){const i=Js(e,t);i&&function q3(e,t,n,i){Bn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=r&&function X3(e,t,n,i,o){const r=n[7];r!==Wn(n)&&Hr(t,e,i,r,o);for(let f=10;f0&&(e[n-1][4]=i[4]);const r=js(e,10+t);!function j3(e,t){ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=r[k];null!==u&&u.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function $c(e,t){if(!(256&t[2])){const n=t[11];Bn(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function W3(e){let t=e[13];if(!t)return Za(e[1],e);for(;t;){let n=null;if(Ot(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&Za(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&Za(t[1],t),n=t&&t[4]}t=n}}(t)}}function Za(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Q3(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=T]():i[o=-T].unsubscribe(),r+=2}else{const u=i[o=n[r+1]];n[r].call(u)}if(null!==i){for(let r=o+1;rr?"":o[re+1].toLowerCase();const We=8&i?Pe:null;if(We&&-1!==rl(We,T,0)||2&i&&T!==Pe){if(xo(i))return!1;u=!0}}}}else{if(!u&&!xo(i)&&!xo(v))return!1;if(u&&xo(v))continue;u=!1,i=v|1&i}}return xo(i)||u}function xo(e){return 0==(1&e)}function o8(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let r=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!xo(u)&&(t+=e1(r,o),o=""),i=u,r=r||!xo(i);n++}return""!==o&&(t+=e1(r,o)),t}const yn={};function ll(e){ul(O(),lt(),sn()+e,Pt())}function ul(e,t,n,i){if(!i)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Ni(t,r,n)}else{const r=e.preOrderHooks;null!==r&&ji(t,r,0,n)}Gn(n)}function ta(e,t){return e<<17|t<<2}function Po(e){return e>>17&32767}function t1(e){return 2|e}function tr(e){return(131068&e)>>2}function n1(e,t){return-131069&e|t<<2}function o1(e){return 1|e}function bl(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&ul(e,t,20,Pt()),n(i,o)}finally{Gn(r)}}function Dl(e,t,n){if(hn(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=v&&f.push(v),f.push(i,o,u)}}function Al(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function v1(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H8(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&_1(n)}}function _1(e){for(let i=Ua(e);null!==i;i=$a(i))for(let o=10;o0&&_1(r)}const n=e[1].components;if(null!==n)for(let i=0;i0&&_1(o)}}function U8(e,t){const n=kt(t,e),i=n[1];(function $8(e,t){for(let n=t.length;nPromise.resolve(null))();function Hl(e){return e[7]||(e[7]=[])}function Nl(e){return e.cleanup||(e.cleanup=[])}function Rl(e,t,n){return(null===e||kn(e))&&(n=function b(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Bl(e,t){const n=e[9],i=n?n.get(gs,null):null;i&&i.handleError(t)}function Yl(e,t,n,i,o){for(let r=0;rthis.processProvider(f,t,n)),To([t],f=>this.processInjectorType(f,[],r)),this.records.set(D1,jr(void 0,this));const u=this.records.get(E1);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:I(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=cs,i=Dt.Default){this.assertNotDestroyed();const o=ac(this),r=Mn(void 0);try{if(!(i&Dt.SkipSelf)){let f=this.records.get(t);if(void 0===f){const v=function a6(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&ot(t);f=v&&this.injectableDefInScope(v)?jr(S1(t),Ms):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&Dt.Self?Ul():this.parent).get(t,n=i&Dt.Optional&&n===cs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Ws]=u[Ws]||[]).unshift(I(t)),o)throw u;return function H2(e,t,n,i){const o=e[Ws];throw t[sc]&&o.unshift(t[sc]),e.message=function N2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let r=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];r.push(u+":"+("string"==typeof f?JSON.stringify(f):I(f)))}o=`{${r.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(A2,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ws]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Mn(r),ac(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(I(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,"")}processInjectorType(t,n,i){if(!(t=ee(t)))return!1;let o=gn(t);const r=null==o&&t.ngModule||void 0,u=void 0===r?t:r,f=-1!==i.indexOf(u);if(void 0!==r&&(o=gn(r)),null==o)return!1;if(null!=o.imports&&!f){let N;i.push(u);try{To(o.imports,re=>{this.processInjectorType(re,n,i)&&(void 0===N&&(N=[]),N.push(re))})}finally{}if(void 0!==N)for(let re=0;rethis.processProvider(gt,Pe,We||Ne))}}this.injectorDefTypes.add(u);const v=Ti(u)||(()=>new u);this.records.set(u,jr(v,Ms));const T=o.providers;if(null!=T&&!f){const N=t;To(T,re=>this.processProvider(re,N,T))}return void 0!==r&&void 0!==t.providers}processProvider(t,n,i){let o=Ur(t=ee(t))?t:ee(t&&t.provide);const r=function t6(e,t,n){return Kl(e)?jr(void 0,e.useValue):jr(Gl(e),Ms)}(t);if(Ur(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=jr(void 0,Ms,!0),u.factory=()=>Pa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,r)}hydrate(t,n){return n.value===Ms&&(n.value=J8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Zl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function S1(e){const t=ot(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Fe(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Fe(204,"");const n=function Zt(e){const t=e&&(e[Ut]||e[_n]);if(t){const n=function mn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,"")}function Gl(e,t,n){let i;if(Ur(e)){const o=ee(e);return Ti(o)||S1(o)}if(Kl(e))i=()=>ee(e.useValue);else if(function o6(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Pa(e.deps||[]));else if(function n6(e){return!(!e||!e.useExisting)}(e))i=()=>zi(ee(e.useExisting));else{const o=ee(e&&(e.useClass||e.provide));if(!function s6(e){return!!e.deps}(e))return Ti(o)||S1(o);i=()=>new o(...Pa(e.deps))}return i}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kl(e){return null!==e&&"object"==typeof e&&F2 in e}function Ur(e){return"function"==typeof e}let fo=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return $l({name:""},i,n,"");{const r=null!==(o=n.name)&&void 0!==o?o:"";return $l({name:r},n.parent,n.providers,r)}}}return e.THROW_IF_NOT_FOUND=cs,e.NULL=new jl,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>zi(D1)}),e.__NG_ELEMENT_ID__=-1,e})();function g6(e,t){Hi(Ra(e)[1],l())}function O1(e){let t=function a4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Fe(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=A1(e.inputs),u.declaredInputs=A1(e.declaredInputs),u.outputs=A1(e.outputs);const f=o.hostBindings;f&&C6(e,f);const v=o.viewQuery,T=o.contentQueries;if(v&&y6(e,v),T&&_6(e,T),W(e.inputs,o.inputs),W(e.declaredInputs,o.declaredInputs),W(e.outputs,o.outputs),kn(o)&&o.data.animation){const N=e.data;N.animation=(N.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}(i)}function A1(e){return e===ce?{}:e===Ne?[]:e}function y6(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function _6(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,r)=>{t(i,o,r),n(i,o,r)}:t}function C6(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let sa=null;function $r(){if(!sa){const e=V.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(Wn(zn[i.index])):i.index;if(Bn(n)){let zn=null;if(!f&&v&&(zn=function _5(e,t,n,i){const o=e.cleanup;if(null!=o)for(let r=0;rv?f[v]:null}"string"==typeof u&&(r+=2)}return null}(e,t,o,i.index)),null!==zn)(zn.__ngLastListenerFn__||zn).__ngNextListenerFn__=r,zn.__ngLastListenerFn__=r,We=!1;else{r=M4(i,t,re,r,!1);const Kn=n.listen($t,o,r);Pe.push(r,Kn),N&&N.push(o,nn,bt,bt+1)}}else r=M4(i,t,re,r,!0),$t.addEventListener(o,r,u),Pe.push(r),N&&N.push(o,nn,bt,u)}else r=M4(i,t,re,r,!1);const gt=i.outputs;let xt;if(We&&null!==gt&&(xt=gt[o])){const Ft=xt.length;if(Ft)for(let $t=0;$t0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function C5(e,t){let n=null;const i=function r8(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(Si.key,Si.keyEnd)}function m0(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function S5(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),zs(e,t,n))}function zs(e,t,n){for(;t=0;n=m0(t,n))to(e,p0(t),!0)}function Wo(e,t,n,i){const o=lt(),r=O(),u=pn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[sn()],o,o[11],e,o[u+1]=function L5(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=I(er(e)))),e}(t,n),i,u)}function Go(e,t,n,i){const o=O(),r=pn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[sn()];if(z0(f,i)&&!M0(o,r)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=R(v,n||"")),f4(o,f,u,n,i)}else!function V5(e,t,n,i,o,r,u,f){o===yn&&(o=Ne);let v=0,T=0,N=0=e.expandoStartIndex}function b0(e,t,n,i){const o=e.data;if(null===o[n+1]){const r=o[sn()],u=M0(e,n);z0(r,i)&&null===t&&!u&&(t=!1),t=function O5(e,t,n,i){const o=Oi(e);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=z4(null,e,t,n,i),t.attrs,i),r=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=z4(o,e,t,n,i),null===r){let v=function A5(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==tr(i))return e[Po(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=z4(null,e,t,v[1],i),v=la(v,t.attrs,i),function k5(e,t,n,i){e[Po(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else r=function F5(e,t,n){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(T=!0)}else N=n;if(o)if(0!==v){const Pe=Po(e[f+1]);e[i+1]=ta(Pe,f),0!==Pe&&(e[Pe+1]=n1(e[Pe+1],i)),e[f+1]=function d8(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=ta(f,0),0!==f&&(e[f+1]=n1(e[f+1],i)),f=i;else e[i+1]=ta(v,0),0===f?f=i:e[v+1]=n1(e[v+1],i),v=i;T&&(e[i+1]=t1(e[i+1])),f0(e,N,i,!0),f0(e,N,i,!1),function b5(e,t,n,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Or(r,t)>=0&&(n[i+1]=o1(n[i+1]))}(t,N,e,i,r),u=ta(f,v),r?t.classBindings=u:t.styleBindings=u}(o,r,t,n,u,i)}}function z4(e,t,n,i,o){let r=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[o],T=Array.isArray(v),N=T?v[1]:v,re=null===N;let Pe=n[o+1];Pe===yn&&(Pe=re?Ne:void 0);let We=re?Ta(Pe,i):N===i?Pe:void 0;if(T&&!L1(We)&&(We=Ta(v,i)),L1(We)&&(f=We,u))return f;const gt=e[o+1];o=u?Po(gt):tr(gt)}if(null!==t){let v=r?t.residualClasses:t.residualStyles;null!=v&&(f=Ta(v,i))}return f}function L1(e){return void 0!==e}function z0(e,t){return 0!=(e.flags&(t?16:32))}function S0(e,t=""){const n=lt(),i=O(),o=e+20,r=i.firstCreatePass?Rr(i,o,1,t,null):i.data[o],u=n[o]=function Wa(e,t){return Bn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),ne(r,!1)}function S4(e){return H1("",e,""),S4}function H1(e,t,n){const i=lt(),o=Wr(i,e,t,n);return o!==yn&&nr(i,sn(),o),H1}function T4(e,t,n,i,o){const r=lt(),u=Gr(r,e,t,n,i,o);return u!==yn&&nr(r,sn(),u),T4}function I0(e,t,n){Go(to,or,Wr(lt(),e,t,n),!0)}function x4(e,t,n){const i=lt();if(Fi(i,Jt(),t)){const r=O(),u=xn();no(r,u,i,e,t,Rl(Oi(r.data),u,i),n,!0)}return x4}const Jr=void 0;var n7=["en",[["a","p"],["AM","PM"],Jr],[["AM","PM"],Jr,Jr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Jr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Jr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Jr,"{1} 'at' {0}",Jr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function t7(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ss={};function i7(e,t,n){"string"!=typeof t&&(n=t,t=e[an.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][an.ExtraData]=n)}function P4(e){const t=function o7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=G0(t);if(n)return n;const i=t.split("-")[0];if(n=G0(i),n)return n;if("en"===i)return n7;throw new Error(`Missing locale data for the locale "${e}".`)}function W0(e){return P4(e)[an.PluralCase]}function G0(e){return e in Ss||(Ss[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Ss[e]}var an=(()=>((an=an||{})[an.LocaleId=0]="LocaleId",an[an.DayPeriodsFormat=1]="DayPeriodsFormat",an[an.DayPeriodsStandalone=2]="DayPeriodsStandalone",an[an.DaysFormat=3]="DaysFormat",an[an.DaysStandalone=4]="DaysStandalone",an[an.MonthsFormat=5]="MonthsFormat",an[an.MonthsStandalone=6]="MonthsStandalone",an[an.Eras=7]="Eras",an[an.FirstDayOfWeek=8]="FirstDayOfWeek",an[an.WeekendRange=9]="WeekendRange",an[an.DateFormat=10]="DateFormat",an[an.TimeFormat=11]="TimeFormat",an[an.DateTimeFormat=12]="DateTimeFormat",an[an.NumberSymbols=13]="NumberSymbols",an[an.NumberFormats=14]="NumberFormats",an[an.CurrencyCode=15]="CurrencyCode",an[an.CurrencySymbol=16]="CurrencySymbol",an[an.CurrencyName=17]="CurrencyName",an[an.Currencies=18]="Currencies",an[an.Directionality=19]="Directionality",an[an.PluralCase=20]="PluralCase",an[an.ExtraData=21]="ExtraData",an))();const N1="en-US";let K0=N1;function k4(e,t,n,i,o){if(e=ee(e),Array.isArray(e))for(let r=0;r>20;if(Ur(e)||!e.multi){const We=new No(v,o,ca),gt=I4(f,t,o?N:N+Pe,re);-1===gt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(We),u.push(We)):(n[gt]=We,u[gt]=We)}else{const We=I4(f,t,N+Pe,re),gt=I4(f,t,N,N+Pe),xt=We>=0&&n[We],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!xt){d(ur(T,u),r,f);const $t=function nf(e,t,n,i,o){const r=new No(e,n,ca);return r.multi=[],r.index=t,r.componentProviders=0,yu(r,o,i&&!n),r}(o?tf:ef,n.length,o,i,v);!o&&Ft&&(n[gt].providerFactory=$t),F4(r,e,t.length,0),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push($t),u.push($t)}else F4(r,e,We>-1?We:gt,yu(n[o?gt:We],v,!o&&i));!o&&i&&Ft&&n[gt].componentProviders++}}}function F4(e,t,n,i){const o=Ur(t),r=function r6(e){return!!e.useClass}(t);if(o||r){const v=(r?ee(t.useClass):t).prototype.ngOnDestroy;if(v){const T=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const N=T.indexOf(n);-1===N?T.push(n,[i,v]):T[N+1].push(i,v)}else T.push(n,v)}}}function yu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function I4(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function X7(e,t,n){const i=O();if(i.firstCreatePass){const o=kn(e);k4(n,i.data,i.blueprint,o,!0),k4(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Cu{}class af{resolveComponentFactory(t){throw function sf(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let pa=(()=>{class e{}return e.NULL=new af,e})();function cf(){return xs(l(),lt())}function xs(e,t){return new ma(Q(e,t))}let ma=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=cf,e})();function lf(e){return e instanceof ma?e.nativeElement:e}class bu{}let uf=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function df(){const e=lt(),n=kt(l().index,e);return function hf(e){return e[11]}(Ot(n)?n:e)}(),e})(),ff=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class wu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new wu("13.1.3"),L4={};function U1(e,t,n,i,o=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(Wn(r)),Vt(r))for(let f=10;f-1&&(Ka(t,i),js(n,i))}this._attachedToViewContainer=!1}$c(this._lView[1],this._lView)}onDestroy(t){Tl(this._lView[1],this._lView,null,t)}markForCheck(){C1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b1(this._lView[1],this._lView,this.context)}checkNoChanges(){!function G8(e,t,n){Bt(!0);try{b1(e,t,n)}finally{Bt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $3(e,t){ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,"");this._appRef=t}}class mf extends ga{constructor(t){super(t),this._view=t}detectChanges(){Ll(this._view)}checkNoChanges(){!function K8(e){Bt(!0);try{Ll(e)}finally{Bt(!1)}}(this._view)}get context(){return null}}class Du extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new H4(n,this.ngModule)}}function Eu(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const vf=new li("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Lc});class H4 extends Cu{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function u8(e){return e.map(l8).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Eu(this.componentDef.inputs)}get outputs(){return Eu(this.componentDef.outputs)}create(t,n,i,o){const r=(o=o||this.ngModule)?function yf(e,t){return{get:(n,i,o)=>{const r=e.get(n,L4,o);return r!==L4||i===L4?r:t.get(n,i,o)}}}(t,o.injector):t,u=r.get(bu,Pi),f=r.get(ff,null),v=u.createRenderer(null,this.componentDef),T=this.componentDef.selectors[0][0]||"div",N=i?function Sl(e,t,n){if(Bn(e))return e.selectRootElement(t,n===me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):Ga(u.createRenderer(null,this.componentDef),T,function gf(e){const t=e.toLowerCase();return"svg"===t?Ei:"math"===t?"http://www.w3.org/1998/MathML/":null}(T)),re=this.componentDef.onPush?576:528,Pe=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),We=oa(0,null,null,1,0,null,null,null,null,null),gt=Nr(null,We,Pe,re,null,null,u,v,f,r);let xt,Ft;Ho(gt);try{const $t=function r4(e,t,n,i,o,r){const u=n[1];n[20]=e;const v=Rr(u,20,2,"#host",null),T=v.mergedAttrs=t.hostAttrs;null!==T&&(Cs(v,T,!0),null!==e&&(is(o,e,T),null!==v.classes&&Xa(o,e,v.classes),null!==v.styles&&ol(o,e,v.styles)));const N=i.createRenderer(e,t),re=Nr(n,El(t),null,t.onPush?64:16,n[20],v,i,N,r||null,null);return u.firstCreatePass&&(d(ur(v,n),u,t.type),v1(u,v),kl(v,n.length,1)),ra(n,re),n[20]=re}(N,this.componentDef,gt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:nn}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,nn.join(" "))}if(Ft=ct(We,20),void 0!==n){const bt=Ft.projection=[];for(let nn=0;nnv(u,t)),t.contentQueries){const v=l();t.contentQueries(1,u,v.directiveStart)}const f=l();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Gn(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,gt,Pe,[g6]),_s(We,gt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(Ft,gt),gt,Ft)}}class Cf extends class rf{}{constructor(t,n,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=n,this.hostView=this.changeDetectorRef=new mf(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ps{}class zu{}const Os=new Map;class xu extends Ps{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Du(this);const i=jt(t);this._bootstrapComponents=Yo(i.bootstrap),this._r3Injector=Wl(t,n,[{provide:Ps,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],I(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=fo.THROW_IF_NOT_FOUND,i=Dt.Default){return t===fo||t===Ps||t===D1?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class N4 extends zu{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function bf(e){const t=new Set;!function n(i){const o=jt(i,!0),r=o.id;null!==r&&(function Su(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}(r,Os.get(r),i),Os.set(r,i));const u=Yo(o.imports);for(const f of u)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new xu(this.moduleType,t)}}function Pu(e,t,n){const i=Gt()+e,o=lt();return o[i]===yn?$o(o,i,n?t.call(n):t()):function ws(e,t){return e[t]}(o,i)}function Ou(e,t,n,i){return Fu(lt(),Gt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Gt(),e,t,n,i,o)}function ku(e,t,n,i,o,r,u){return function Lu(e,t,n,i,o,r,u,f,v){const T=t+n;return function po(e,t,n,i,o,r){const u=br(e,t,n,i);return br(e,t+2,o,r)||u}(e,T,o,r,u,f)?$o(e,T+4,v?i.call(v,o,r,u,f):i(o,r,u,f)):va(e,T+4)}(lt(),Gt(),e,t,n,i,o,r,u)}function va(e,t){const n=e[t];return n===yn?void 0:n}function Fu(e,t,n,i,o,r){const u=t+n;return Fi(e,u,o)?$o(e,u+1,r?i.call(r,o):i(o)):va(e,u+1)}function Iu(e,t,n,i,o,r,u){const f=t+n;return br(e,f,o,r)?$o(e,f+2,u?i.call(u,o,r):i(o,r)):va(e,f+2)}function Vu(e,t,n,i,o,r,u,f){const v=t+n;return function aa(e,t,n,i,o){const r=br(e,t,n,i);return Fi(e,t+2,o)||r}(e,v,o,r,u)?$o(e,v+3,f?i.call(f,o,r,u):i(o,r,u)):va(e,v+3)}function Nu(e,t){const n=O();let i;const o=e+20;n.firstCreatePass?(i=function xf(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Ti(i.type)),u=Mn(ca);try{const f=Tr(!1),v=r();return Tr(f),function Qd(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,lt(),o,v),v}finally{Mn(u)}}function Ru(e,t,n){const i=e+20,o=lt(),r=Mt(o,i);return ya(o,i)?Fu(o,Gt(),t,r.transform,n,r):r.transform(n)}function Bu(e,t,n,i){const o=e+20,r=lt(),u=Mt(r,o);return ya(r,o)?Iu(r,Gt(),t,u.transform,n,i,u):u.transform(n,i)}function Yu(e,t,n,i,o){const r=e+20,u=lt(),f=Mt(u,r);return ya(u,r)?Vu(u,Gt(),t,f.transform,n,i,o,f):f.transform(n,i,o)}function ya(e,t){return e[1].data[t].pure}function R4(e){return t=>{setTimeout(e,void 0,t)}}const rr=class Af extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,r,u;let f=t,v=n||(()=>null),T=i;if(t&&"object"==typeof t){const re=t;f=null===(o=re.next)||void 0===o?void 0:o.bind(re),v=null===(r=re.error)||void 0===r?void 0:r.bind(re),T=null===(u=re.complete)||void 0===u?void 0:u.bind(re)}this.__isAsync&&(v=R4(v),f&&(f=R4(f)),T&&(T=R4(T)));const N=super.subscribe({next:f,error:v,complete:T});return t instanceof s.w&&t.add(N),N}};function kf(){return this._results[$r()]()}class B4{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=$r(),i=B4.prototype;i[n]||(i[n]=kf)}get changes(){return this._changes||(this._changes=new rr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=ho(t);(this._changesDetected=!function w2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=Vf,e})();const Ff=_a,If=class extends Ff{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Nr(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[k];return null!==r&&(i[k]=r.createEmbeddedView(n)),_s(n,i,t),new ga(i)}};function Vf(){return $1(l(),lt())}function $1(e,t){return 4&e.type?new If(t,e,xs(e,t)):null}let W1=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lf,e})();function Lf(){return $u(l(),lt())}const Hf=W1,ju=class extends Hf{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=m(this._hostTNode,this._hostLView);if(Hs(t)){const n=lr(t,this._hostLView),i=cr(t);return new co(n[1].data[i+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uu(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,r){const u=t&&!function ss(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const re=n||{};f=re.index,i=re.injector,o=re.projectableNodes,r=re.ngModuleRef}const v=u?t:new H4(Ve(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const re=T.get(Ps,null);re&&(r=re)}const N=v.create(T,o,void 0,r);return this.insert(N.hostView,f),N}insert(t,n){const i=t._lView,o=i[1];if(function Dn(e){return Vt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const re=i[3],Pe=new ju(re,re[6],re[3]);Pe.detach(Pe.indexOf(t))}}const r=this._adjustIndex(n),u=this._lContainer;!function G3(e,t,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[f/2]);else{const T=r[f+1],N=t[-v];for(let re=10;re{class e{constructor(n){this.appInits=n,this.resolve=Z1,this.reject=Z1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:f,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(zi(X4,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const yh=new li("AppId"),u9={provide:yh,useFactory:function l9(){return`${e2()}${e2()}${e2()}`},deps:[]};function e2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _h=new li("Platform Initializer"),Ch=new li("Platform ID"),Mh=new li("appBootstrapListener");let bh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const Q1=new li("LocaleId"),wh=new li("DefaultCurrencyCode");class h9{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let t2=(()=>{class e{compileModuleSync(n){return new N4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),r=Yo(jt(n).declarations).reduce((u,f)=>{const v=Ve(f);return v&&u.push(new H4(v)),u},[]);return new h9(i,r)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const f9=(()=>Promise.resolve(0))();function n2(e){"undefined"==typeof Zone?f9.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function p9(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function v9(e){const t=()=>{!function g9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,r2(e),e.isCheckStableRunning=!0,o2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),r2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,u,f)=>{try{return Dh(e),n.invokeTask(o,r,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Eh(e)}},onInvoke:(n,i,o,r,u,f,v)=>{try{return Dh(e),n.invoke(o,r,u,f,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eh(e)}},onHasTask:(n,i,o,r)=>{n.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,r2(e),o2(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(n,i,o,r)=>(n.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const r=this._inner,u=r.scheduleEventTask("NgZoneEvent: "+o,t,m9,Z1,Z1);try{return r.runTask(u,n,i)}finally{r.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const m9={};function o2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function r2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eh(e){e._nesting--,o2(e)}class y9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let zh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mo.assertNotInAngularZone(),n2(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())n2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==r),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(zi(mo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),Sh=(()=>{class e{constructor(){this._applications=new Map,s2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return s2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class _9{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function C9(e){s2=e}let Ko,s2=new _9;const Th=new li("AllowMultipleToken");class w9{constructor(t,n){this.name=t,this.token=n}}function xh(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(r=[])=>{let u=Ph();if(!u||u.injector.get(Th,!1))if(e)e(n.concat(r).concat({provide:o,useValue:!0}));else{const f=n.concat(r).concat({provide:o,useValue:!0},{provide:E1,useValue:"platform"});!function D9(e){if(Ko&&!Ko.destroyed&&!Ko.injector.get(Th,!1))throw new Fe(400,"");Ko=e.get(Oh);const t=e.get(_h,null);t&&t.forEach(n=>n())}(fo.create({providers:f,name:i}))}return function E9(e){const t=Ph();if(!t)throw new Fe(401,"");return t}()}}function Ph(){return Ko&&!Ko.destroyed?Ko:null}let Oh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function z9(e,t){let n;return n="noop"===e?new y9:("zone.js"===e?void 0:e)||new mo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:mo,useValue:f}];return f.run(()=>{const T=fo.create({providers:v,parent:this.injector,name:n.moduleType.name}),N=n.create(T),re=N.injector.get(gs,null);if(!re)throw new Fe(402,"");return f.runOutsideAngular(()=>{const Pe=f.onError.subscribe({next:We=>{re.handleError(We)}});N.onDestroy(()=>{a2(this._modules,N),Pe.unsubscribe()})}),function S9(e,t,n){try{const i=n();return y4(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(re,f,()=>{const Pe=N.injector.get(ks);return Pe.runInitializers(),Pe.donePromise.then(()=>(function c7(e){ke(e,"Expected localeId to be defined"),"string"==typeof e&&(K0=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Q1,N1)||N1),this._moduleDoBootstrap(N),N))})})}bootstrapModule(n,i=[]){const o=Ah({},i);return function M9(e,t,n){const i=new N4(n);return Promise.resolve(i)}(0,0,n).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ma);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Fe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(zi(fo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function Ah(e,t){return Array.isArray(t)?t.reduce(Ah,e):Object.assign(Object.assign({},e),t)}let Ma=(()=>{class e{constructor(n,i,o,r,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new G.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new G.y(T=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),n2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const re=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),re.unsubscribe()}});this.isStable=(0,oe.T)(f,v.pipe((0,q.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Fe(405,"");let o;o=n instanceof Cu?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const r=function b9(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ps),f=o.create(fo.NULL,[],i||o.selector,r),v=f.location.nativeElement,T=f.injector.get(zh,null),N=T&&f.injector.get(Sh);return T&&N&&N.registerApplication(v,T),f.onDestroy(()=>{this.detachView(f.hostView),a2(this.components,f),N&&N.unregisterApplication(v)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Fe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;a2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mh,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(zi(mo),zi(fo),zi(gs),zi(pa),zi(ks))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function a2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Fh=!0,Ih=!1;function x9(){return Ih=!0,Fh}function P9(){if(Ih)throw new Error("Cannot enable prod mode after platform setup.");Fh=!1}let O9=(()=>{class e{}return e.__NG_ELEMENT_ID__=A9,e})();function A9(e){return function k9(e,t,n){if(ni(e)&&!n){const i=kt(e.index,t);return new ga(i,i)}return 47&e.type?new ga(t[16],t):null}(l(),lt(),16==(16&e))}class Bh{constructor(){}supports(t){return bs(t)}create(t){return new N9(t)}}const H9=(e,t)=>t;class N9{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H9}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,r=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,r,o)):t=this._addAfter(new R9(n,i),r,o),t}_verifyReinsertion(t,n,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class R9{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class B9{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new B9,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jh(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const r=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const r=o._prev,u=o._next;return r&&(r._next=u),u&&(u._prev=r),o._next=null,o._prev=null,o}const i=new j9(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class j9{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $h(){return new J1([new Bh])}let J1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||$h()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:$h}),e})();function Wh(){return new X1([new Uh])}let X1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Wh()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Wh}),e})();const U9=[new Uh],W9=new J1([new Bh]),G9=new X1(U9),K9=xh(null,"core",[{provide:Ch,useValue:"unknown"},{provide:Oh,deps:[fo]},{provide:Sh,deps:[]},{provide:bh,deps:[]}]),X9=[{provide:Ma,useClass:Ma,deps:[mo,fo,gs,pa,ks]},{provide:vf,deps:[mo],useFactory:function ep(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ks,useClass:ks,deps:[[new _r,X4]]},{provide:t2,useClass:t2,deps:[]},u9,{provide:J1,useFactory:function Z9(){return W9},deps:[]},{provide:X1,useFactory:function Q9(){return G9},deps:[]},{provide:Q1,useFactory:function q9(e){return e||function J9(){return"undefined"!=typeof $localize&&$localize.locale||N1}()},deps:[[new hs(Q1),new _r,new Ar]]},{provide:wh,useValue:"USD"}];let tp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zi(Ma))},e.\u0275mod=jn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(yt,be,p)=>{p.d(be,{TO:()=>Un,ve:()=>_e,Wl:()=>Ye,Fj:()=>vt,qu:()=>Yt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>dn,JU:()=>ee,a5:()=>Cn,JJ:()=>qe,JL:()=>x,F:()=>se,On:()=>kn,Mq:()=>hn,c5:()=>Mt,UX:()=>Yn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),G=p(6498),oe=p(6688),q=p(4850),_=p(7830),W=p(5254);function R(D,C){return new G.y(y=>{const U=D.length;if(0===U)return void y.complete();const at=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),at[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,ne)=>(g[F]=at[ne],g),{}):at),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(y,U){this._renderer.setProperty(this._elementRef.nativeElement,y,U)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq))},D.\u0275dir=a.lG2({type:D}),D})(),B=(()=>{class D extends H{}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const ee=new a.OlP("NgValueAccessor"),ye={provide:ee,useExisting:(0,a.Gpc)(()=>Ye),multi:!0};let Ye=(()=>{class D extends B{writeValue(y){this.setProperty("checked",y)}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,U){1&y&&a.NdJ("change",function(Nt){return U.onChange(Nt.target.checked)})("blur",function(){return U.onTouched()})},features:[a._Bn([ye]),a.qOj]}),D})();const Fe={provide:ee,useExisting:(0,a.Gpc)(()=>vt),multi:!0},_e=new a.OlP("CompositionEventMode");let vt=(()=>{class D extends H{constructor(y,U,at){super(y,U),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ze(){const D=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(_e,8))},D.\u0275dir=a.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(y,U){1&y&&a.NdJ("input",function(Nt){return U._handleInput(Nt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(Nt){return U._compositionEnd(Nt.target.value)})},features:[a._Bn([Fe]),a.qOj]}),D})();function Je(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ut=new a.OlP("NgValidators"),Ie=new a.OlP("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class et{static min(C){return function Se(D){return C=>{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y>D?{max:{max:D,actual:C.value}}:null}}(C)}static required(C){return J(C)}static requiredTrue(C){return function fe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function he(D){return Je(D.value)||$e.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function te(D){return C=>Je(C.value)||!zt(C.value)?null:C.value.lengthzt(C.value)&&C.value.length>D?{maxlength:{requiredLength:D,actualLength:C.value.length}}:null}(C)}static pattern(C){return ie(C)}static nullValidator(C){return null}static compose(C){return dt(C)}static composeAsync(C){return it(C)}}function J(D){return Je(D.value)?{required:!0}:null}function ie(D){if(!D)return Ue;let C,y;return"string"==typeof D?(y="","^"!==D.charAt(0)&&(y+="^"),y+=D,"$"!==D.charAt(D.length-1)&&(y+="$"),C=new RegExp(y)):(y=D.toString(),C=D),U=>{if(Je(U.value))return null;const at=U.value;return C.test(at)?null:{pattern:{requiredPattern:y,actualValue:at}}}}function Ue(D){return null}function je(D){return null!=D}function tt(D){const C=(0,a.QGY)(D)?(0,W.D)(D):D;return(0,a.CqO)(C),C}function ke(D){let C={};return D.forEach(y=>{C=null!=y?Object.assign(Object.assign({},C),y):C}),0===Object.keys(C).length?null:C}function ve(D,C){return C.map(y=>y(D))}function Qe(D){return D.map(C=>function mt(D){return!D.validate}(C)?C:y=>C.validate(y))}function dt(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return ke(ve(y,C))}}function _t(D){return null!=D?dt(Qe(D)):null}function it(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,oe.k)(C))return R(C,null);if((0,_.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const y=Object.keys(C);return R(y.map(U=>C[U]),y)}}if("function"==typeof D[D.length-1]){const C=D.pop();return R(D=1===D.length&&(0,oe.k)(D[0])?D[0]:D,null).pipe((0,q.U)(y=>C(...y)))}return R(D,null)}(ve(y,C).map(tt)).pipe((0,q.U)(ke))}}function St(D){return null!=D?it(Qe(D)):null}function ot(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Zt(D){return D._rawAsyncValidators}function mn(D){return D?Array.isArray(D)?D:[D]:[]}function gn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Ut(D,C){const y=mn(C);return mn(D).forEach(at=>{gn(y,at)||y.push(at)}),y}function un(D,C){return mn(C).filter(y=>!gn(D,y))}class _n{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(C){this._rawValidators=C||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(C){this._rawAsyncValidators=C||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(C){this._onDestroyCallbacks.push(C)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(C=>C()),this._onDestroyCallbacks=[]}reset(C){this.control&&this.control.reset(C)}hasError(C,y){return!!this.control&&this.control.hasError(C,y)}getError(C,y){return this.control?this.control.getError(C,y):null}}class Cn extends _n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dt extends _n{get formDirective(){return null}get path(){return null}}class Sn{constructor(C){this._cd=C}is(C){var y,U,at;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(at=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===at?void 0:at[C])}}let qe=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Cn,2))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[a.qOj]}),D})(),x=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[a.qOj]}),D})();function $(D,C){return[...C.path,D]}function ue(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Vn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&ri(D,C)})}(D,C),function jn(D,C){const y=(U,at)=>{C.valueAccessor.writeValue(U),at&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function An(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&ri(D,C),"submit"!==D.updateOn&&D.markAsTouched()})}(D,C),function At(D,C){if(C.valueAccessor.setDisabledState){const y=U=>{C.valueAccessor.setDisabledState(U)};D.registerOnDisabledChange(y),C._registerOnDestroy(()=>{D._unregisterOnDisabledChange(y)})}}(D,C)}function Ae(D,C,y=!0){const U=()=>{};C.valueAccessor&&(C.valueAccessor.registerOnChange(U),C.valueAccessor.registerOnTouched(U)),vn(D,C),D&&(C._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function wt(D,C){D.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(C)})}function Qt(D,C){const y=Et(D);null!==C.validator?D.setValidators(ot(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Zt(D);null!==C.asyncValidator?D.setAsyncValidators(ot(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const at=()=>D.updateValueAndValidity();wt(C._rawValidators,at),wt(C._rawAsyncValidators,at)}function vn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const at=Et(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.validator);Nt.length!==at.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const at=Zt(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.asyncValidator);Nt.length!==at.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function ri(D,C){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),C.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function qt(D,C){Qt(D,C)}function Ve(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function It(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function jt(D,C){if(!C)return null;let y,U,at;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===vt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:at=Nt}),at||U||y||null}function fn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Zn="VALID",ii="INVALID",En="PENDING",ei="DISABLED";function Tt(D){return(Te(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?_t(D):D||null}function bn(D,C){return(Te(C)?C.asyncValidators:D)||null}function Qn(D){return Array.isArray(D)?St(D):D||null}function Te(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const Ze=D=>D instanceof $n,De=D=>D instanceof Nn,rt=D=>D instanceof Rn;function Wt(D){return Ze(D)?D.value:D.getRawValue()}function on(D,C){const y=De(D),U=D.controls;if(!(y?Object.keys(U):U).length)throw new a.vHH(1e3,"");if(!U[C])throw new a.vHH(1001,"")}function Lt(D,C){De(D),D._forEachChild((U,at)=>{if(void 0===C[at])throw new a.vHH(1002,"")})}class Un{constructor(C,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=C,this._rawAsyncValidators=y,this._composedValidatorFn=rn(this._rawValidators),this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(C){this._rawValidators=this._composedValidatorFn=C}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(C){this._rawAsyncValidators=this._composedAsyncValidatorFn=C}get parent(){return this._parent}get valid(){return this.status===Zn}get invalid(){return this.status===ii}get pending(){return this.status==En}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(C){this._rawValidators=C,this._composedValidatorFn=rn(C)}setAsyncValidators(C){this._rawAsyncValidators=C,this._composedAsyncValidatorFn=Qn(C)}addValidators(C){this.setValidators(Ut(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Ut(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(un(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(un(C,this._rawAsyncValidators))}hasValidator(C){return gn(this._rawValidators,C)}hasAsyncValidator(C){return gn(this._rawAsyncValidators,C)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(C={}){this.touched=!0,this._parent&&!C.onlySelf&&this._parent.markAsTouched(C)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(C=>C.markAllAsTouched())}markAsUntouched(C={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}markAsDirty(C={}){this.pristine=!1,this._parent&&!C.onlySelf&&this._parent.markAsDirty(C)}markAsPristine(C={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}markAsPending(C={}){this.status=En,!1!==C.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!C.onlySelf&&this._parent.markAsPending(C)}disable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=ei,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this._updateValue(),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=Zn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(C){this._parent&&!C.onlySelf&&(this._parent.updateValueAndValidity(C),C.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(C){this._parent=C}updateValueAndValidity(C={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===En)&&this._runAsyncValidator(C.emitEvent)),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!C.onlySelf&&this._parent.updateValueAndValidity(C)}_updateTreeValidity(C={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(C)),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=tt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:C})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(C,y={}){this.errors=C,this._updateControlsErrors(!1!==y.emitEvent)}get(C){return function Ln(D,C,y){if(null==C||(Array.isArray(C)||(C=C.split(y)),Array.isArray(C)&&0===C.length))return null;let U=D;return C.forEach(at=>{U=De(U)?U.controls.hasOwnProperty(at)?U.controls[at]:null:rt(U)&&U.at(at)||null}),U}(this,C,".")}getError(C,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[C]:null}hasError(C,y){return!!this.getError(C,y)}get root(){let C=this;for(;C._parent;)C=C._parent;return C}_updateControlsErrors(C){this.status=this._calculateStatus(),C&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(C)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ii)?ii:Zn}_anyControlsHaveStatus(C){return this._anyControls(y=>y.status===C)}_anyControlsDirty(){return this._anyControls(C=>C.dirty)}_anyControlsTouched(){return this._anyControls(C=>C.touched)}_updatePristine(C={}){this.pristine=!this._anyControlsDirty(),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}_updateTouched(C={}){this.touched=this._anyControlsTouched(),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}_isBoxedValue(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}_registerOnCollectionChange(C){this._onCollectionChange=C}_setUpdateStrategy(C){Te(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $n extends Un{constructor(C=null,y,U){super(Tt(y),bn(U,y)),this._onChange=[],this._pendingChange=!1,this._applyFormState(C),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(C,y={}){this.value=this._pendingValue=C,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(C,y={}){this.setValue(C,y)}reset(C=null,y={}){this._applyFormState(C),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(C){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(C){this._onChange.push(C)}_unregisterOnChange(C){fn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){fn(this._onDisabledChange,C)}_forEachChild(C){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(C){this._isBoxedValue(C)?(this.value=this._pendingValue=C.value,C.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=C}}class Nn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(C,y){return this.controls[C]?this.controls[C]:(this.controls[C]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(C,y,U={}){this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],y&&this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(C){return this.controls.hasOwnProperty(C)&&this.controls[C].enabled}setValue(C,y={}){Lt(this,C),Object.keys(C).forEach(U=>{on(this,U),this.controls[U].setValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(Object.keys(C).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C={},y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=Wt(y),C))}_syncPendingControls(){let C=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&C(U,y)})}_setUpControls(){this._forEachChild(C=>{C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(C){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&C(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(C,y,U)=>((y.enabled||this.disabled)&&(C[U]=y.value),C))}_reduceChildren(C,y){let U=C;return this._forEachChild((at,Nt)=>{U=y(U,at,Nt)}),U}_allControlsDisabled(){for(const C of Object.keys(this.controls))if(this.controls[C].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Rn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(C){return this.controls[C]}push(C,y={}){this.controls.push(C),this._registerControl(C),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(C,y,U={}){this.controls.splice(C,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),y&&(this.controls.splice(C,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(C,y={}){Lt(this,C),C.forEach((U,at)=>{on(this,at),this.at(at).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,at)=>{this.at(at)&&this.at(at).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>Wt(C))}clear(C={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:C.emitEvent}))}_syncPendingControls(){let C=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){this.controls.forEach((y,U)=>{C(y,U)})}_updateValue(){this.value=this.controls.filter(C=>C.enabled||this.disabled).map(C=>C.value)}_anyControls(C){return this.controls.some(y=>y.enabled&&C(y))}_setUpControls(){this._forEachChild(C=>this._registerControl(C))}_allControlsDisabled(){for(const C of this.controls)if(C.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(C){C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Dt,useExisting:(0,a.Gpc)(()=>se)},X=(()=>Promise.resolve(null))();let se=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Nn({},_t(y),St(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){X.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),ue(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),fn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),at=new Nn({});qt(at,y),U.registerControl(y.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){X.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([qn]),a.qOj]}),D})(),k=(()=>{class D extends Dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const Vt={provide:Dt,useExisting:(0,a.Gpc)(()=>hn)};let hn=(()=>{class D extends k{constructor(y,U,at){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(at)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Vt]),a.qOj]}),D})();const ni={provide:Cn,useExisting:(0,a.Gpc)(()=>kn)},ai=(()=>Promise.resolve(null))();let kn=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this.control=new $n,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Ve(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ue(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(y){ai.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1})})}_updateDisabled(y){const U=y.isDisabled.currentValue,at=""===U||U&&"false"!==U;ai.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([ni]),a.qOj,a.TTD]}),D})(),bi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),wi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})();const Wi=new a.OlP("NgModelWithFormControlWarning"),yo={provide:Cn,useExisting:(0,a.Gpc)(()=>_o)};let _o=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=jt(0,at)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ae(U,this,!1),ue(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ve(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([yo]),a.qOj,a.TTD]}),D})();const sr={provide:Dt,useExisting:(0,a.Gpc)(()=>Ii)};let Ii=(()=>{class D extends Dt{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return ue(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ae(y.control||null,y,!1),fn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,at=this.form.get(y.path);U!==at&&(Ae(U||null,y),Ze(at)&&(ue(at,y),y.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);qt(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Re(D,C){return vn(D,C)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qt(this.form,this),this._oldForm&&vn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([sr]),a.qOj,a.TTD]}),D})();const Qo={provide:Cn,useExisting:(0,a.Gpc)(()=>oo)};let oo=(()=>{class D extends Cn{constructor(y,U,at,Nt,lt){super(),this._ngModelWarningConfig=lt,this._added=!1,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Ve(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,13),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Qo]),a.qOj,a.TTD]}),D})();const Xo={provide:ut,useExisting:(0,a.Gpc)(()=>Pi),multi:!0};let Pi=(()=>{class D{constructor(){this._required=!1}get required(){return this._required}set required(y){this._required=null!=y&&!1!==y&&"false"!=`${y}`,this._onChange&&this._onChange()}validate(y){return this.required?J(y):null}registerOnValidatorChange(y){this._onChange=y}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("required",U.required?"":null)},inputs:{required:"required"},features:[a._Bn([Xo])]}),D})();const ct={provide:ut,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=Ue}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=ie(this.pattern)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([ct]),a.TTD]}),D})(),Dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[[wi]]}),D})(),dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yn=(()=>{class D{static withConfig(y){return{ngModule:D,providers:[{provide:Wi,useValue:y.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yt=(()=>{class D{group(y,U=null){const at=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function On(D){return void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn}(U)?(Nt=null!=U.validators?U.validators:null,lt=null!=U.asyncValidators?U.asyncValidators:null,O=null!=U.updateOn?U.updateOn:void 0):(Nt=null!=U.validator?U.validator:null,lt=null!=U.asyncValidator?U.asyncValidator:null)),new Nn(at,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,at){return new $n(y,U,at)}array(y,U,at){const Nt=y.map(lt=>this._createControl(lt));return new Rn(Nt,U,at)}_reduceControls(y){const U={};return Object.keys(y).forEach(at=>{U[at]=this._createControl(y[at])}),U}_createControl(y){return Ze(y)||De(y)||rt(y)?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:Yn}),D})()},6360:(yt,be,p)=>{p.d(be,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),G=p(1777);function oe(){return"undefined"!=typeof window&&void 0!==window.document}function q(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new G.ZN;case 1:return O[0];default:return new G.ZE(O)}}function W(O,c,l,g,F={},ne={}){const ge=[],Ce=[];let Ke=-1,ft=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Gt=Bt==Ke,ln=Gt&&ft||{};Object.keys(Pt).forEach(Kt=>{let Jt=Kt,pn=Pt[Kt];if("offset"!==Kt)switch(Jt=c.normalizePropertyName(Jt,ge),pn){case G.k1:pn=F[Kt];break;case G.l3:pn=ne[Kt];break;default:pn=c.normalizeStyleValue(Kt,Jt,pn,ge)}ln[Jt]=pn}),Gt||Ce.push(ln),ft=ln,Ke=Bt}),ge.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ge.join(Pt)}`)}return Ce}function I(O,c,l,g){switch(c){case"start":O.onStart(()=>g(l&&R(l,"start",O)));break;case"done":O.onDone(()=>g(l&&R(l,"done",O)));break;case"destroy":O.onDestroy(()=>g(l&&R(l,"destroy",O)))}}function R(O,c,l){const g=l.totalTime,ne=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ge=O._data;return null!=ge&&(ne._data=ge),ne}function H(O,c,l,g,F="",ne=0,ge){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:ne,disabled:!!ge}}function B(O,c,l){let g;return O instanceof Map?(g=O.get(c),g||O.set(c,g=l)):(g=O[c],g||(g=O[c]=l)),g}function ee(O){const c=O.indexOf(":");return[O.substring(1,c),O.substr(c+1)]}let ye=(O,c)=>!1,Ye=(O,c,l)=>[];(q()||"undefined"!=typeof Element)&&(ye=oe()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),Ye=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let _e=null,vt=!1;function Je(O){_e||(_e=function zt(){return"undefined"!=typeof document?document.body:null}()||{},vt=!!_e.style&&"WebkitAppearance"in _e.style);let c=!0;return _e.style&&!function ze(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in _e.style,!c&&vt&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in _e.style)),c}const ut=ye,Ie=Ye;function $e(O){const c={};return Object.keys(O).forEach(l=>{const g=l.replace(/([a-z])([A-Z])/g,"$1-$2");c[g]=O[l]}),c}let et=(()=>{class O{validateStyleProperty(l){return Je(l)}matchesElement(l,g){return!1}containsElement(l,g){return ut(l,g)}query(l,g,F){return Ie(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,ne,ge,Ce=[],Ke){return new G.ZN(F,ne)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O{}return O.NOOP=new et,O})();const he="ng-enter",te="ng-leave",le="ng-trigger",ie=".ng-trigger",Ue="ng-animating",je=".ng-animating";function tt(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ke(parseFloat(c[1]),c[2])}function ke(O,c){return"s"===c?1e3*O:O}function ve(O,c,l){return O.hasOwnProperty("duration")?O:function mt(O,c,l){let F,ne=0,ge="";if("string"==typeof O){const Ce=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ce)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=ke(parseFloat(Ce[1]),Ce[2]);const Ke=Ce[3];null!=Ke&&(ne=ke(parseFloat(Ke),Ce[4]));const ft=Ce[5];ft&&(ge=ft)}else F=O;if(!l){let Ce=!1,Ke=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ce=!0),ne<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ce=!0),Ce&&c.splice(Ke,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:ne,easing:ge}}(O,c,l)}function Qe(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function _t(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Qe(O,l);return l}function it(O,c,l){return l?c+":"+l+";":""}function St(O){let c="";for(let l=0;l{const F=Dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=O.style[F]),O.style[F]=c[g]}),q()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),q()&&St(O))}function Zt(O){return Array.isArray(O)?1==O.length?O[0]:(0,G.vP)(O):O}const gn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ut(O){let c=[];if("string"==typeof O){let l;for(;l=gn.exec(O);)c.push(l[1]);gn.lastIndex=0}return c}function un(O,c,l){const g=O.toString(),F=g.replace(gn,(ne,ge)=>{let Ce=c[ge];return c.hasOwnProperty(ge)||(l.push(`Please provide a value for the animation param ${ge}`),Ce=""),Ce.toString()});return F==g?O:F}function _n(O){const c=[];let l=O.next();for(;!l.done;)c.push(l.value),l=O.next();return c}const Cn=/-+([a-z0-9])/g;function Dt(O){return O.replace(Cn,(...c)=>c[1].toUpperCase())}function Sn(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cn(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let ne=c[0],ge=[];if(g.forEach(Ce=>{ne.hasOwnProperty(Ce)||ge.push(Ce),ne[Ce]=l[Ce]}),ge.length)for(var F=1;Ffunction pe(O,c,l){if(":"==O[0]){const Ke=function j(O,c){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g) *"}}(O,l);if("function"==typeof Ke)return void c.push(Ke);O=Ke}const g=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(`The provided transition expression "${O}" is not supported`),c;const F=g[1],ne=g[2],ge=g[3];c.push(Ge(F,ge));"<"==ne[0]&&!(F==z&&ge==z)&&c.push(Ge(ge,F))}(g,l,c)):l.push(O),l}const me=new Set(["true","1"]),He=new Set(["false","0"]);function Ge(O,c){const l=me.has(O)||He.has(O),g=me.has(c)||He.has(c);return(F,ne)=>{let ge=O==z||O==F,Ce=c==z||c==ne;return!ge&&l&&"boolean"==typeof F&&(ge=F?me.has(O):He.has(O)),!Ce&&g&&"boolean"==typeof ne&&(Ce=ne?me.has(c):He.has(c)),ge&&Ce}}const Me=new RegExp("s*:selfs*,?","g");function V(O,c,l){return new nt(O).build(c,l)}class nt{constructor(c){this._driver=c}build(c,l){const g=new L(l);return this._resetContextStyleTimingState(g),qe(this,Zt(c),g)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,l){let g=l.queryCount=0,F=l.depCount=0;const ne=[],ge=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ce=>{if(this._resetContextStyleTimingState(l),0==Ce.type){const Ke=Ce,ft=Ke.name;ft.toString().split(/\s*,\s*/).forEach(Pt=>{Ke.name=Pt,ne.push(this.visitState(Ke,l))}),Ke.name=ft}else if(1==Ce.type){const Ke=this.visitTransition(Ce,l);g+=Ke.queryCount,F+=Ke.depCount,ge.push(Ke)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ne,transitions:ge,queryCount:g,depCount:F,options:null}}visitState(c,l){const g=this.visitStyle(c.styles,l),F=c.options&&c.options.params||null;if(g.containsDynamicStyles){const ne=new Set,ge=F||{};if(g.styles.forEach(Ce=>{if($(Ce)){const Ke=Ce;Object.keys(Ke).forEach(ft=>{Ut(Ke[ft]).forEach(Pt=>{ge.hasOwnProperty(Pt)||ne.add(Pt)})})}}),ne.size){const Ce=_n(ne.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ce.join(", ")}`)}}return{type:0,name:c.name,style:g,options:F?{params:F}:null}}visitTransition(c,l){l.queryCount=0,l.depCount=0;const g=qe(this,Zt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ae(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>qe(this,g,l)),options:Ae(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const ne=c.steps.map(ge=>{l.currentTime=g;const Ce=qe(this,ge,l);return F=Math.max(F,l.currentTime),Ce});return l.currentTime=F,{type:3,steps:ne,options:Ae(c.options)}}visitAnimate(c,l){const g=function ue(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ve(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=wt(0,0,"");return ne.dynamic=!0,ne.strValue=g,ne}return l=l||ve(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,ne=c.styles?c.styles:(0,G.oB)({});if(5==ne.type)F=this.visitKeyframes(ne,l);else{let ge=c.styles,Ce=!1;if(!ge){Ce=!0;const ft={};g.easing&&(ft.easing=g.easing),ge=(0,G.oB)(ft)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(ge,l);Ke.isEmptyStep=Ce,F=Ke}return l.currentAnimateTimings=null,{type:4,timings:g,style:F,options:null}}visitStyle(c,l){const g=this._makeStyleAst(c,l);return this._validateStyleAst(g,l),g}_makeStyleAst(c,l){const g=[];Array.isArray(c.styles)?c.styles.forEach(ge=>{"string"==typeof ge?ge==G.l3?g.push(ge):l.errors.push(`The provided style string value ${ge} is not allowed.`):g.push(ge)}):g.push(c.styles);let F=!1,ne=null;return g.forEach(ge=>{if($(ge)){const Ce=ge,Ke=Ce.easing;if(Ke&&(ne=Ke,delete Ce.easing),!F)for(let ft in Ce)if(Ce[ft].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:ne,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,ne=l.currentTime;g&&ne>0&&(ne-=g.duration+g.delay),c.styles.forEach(ge=>{"string"!=typeof ge&&Object.keys(ge).forEach(Ce=>{if(!this._driver.validateStyleProperty(Ce))return void l.errors.push(`The provided animation property "${Ce}" is not a supported CSS property for animations`);const Ke=l.collectedStyles[l.currentQuerySelector],ft=Ke[Ce];let Pt=!0;ft&&(ne!=F&&ne>=ft.startTime&&F<=ft.endTime&&(l.errors.push(`The CSS property "${Ce}" that exists between the times of "${ft.startTime}ms" and "${ft.endTime}ms" is also being animated in a parallel animation between the times of "${ne}ms" and "${F}ms"`),Pt=!1),ne=ft.startTime),Pt&&(Ke[Ce]={startTime:ne,endTime:F}),l.options&&function mn(O,c,l){const g=c.params||{},F=Ut(O);F.length&&F.forEach(ne=>{g.hasOwnProperty(ne)||l.push(`Unable to resolve the local animation param ${ne} in the given list of values`)})}(ge[Ce],l.options,l.errors)})})}visitKeyframes(c,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),g;let ne=0;const ge=[];let Ce=!1,Ke=!1,ft=0;const Pt=c.steps.map(Jn=>{const ti=this._makeStyleAst(Jn,l);let _i=null!=ti.offset?ti.offset:function E(O){if("string"==typeof O)return null;let c=null;if(Array.isArray(O))O.forEach(l=>{if($(l)&&l.hasOwnProperty("offset")){const g=l;c=parseFloat(g.offset),delete g.offset}});else if($(O)&&O.hasOwnProperty("offset")){const l=O;c=parseFloat(l.offset),delete l.offset}return c}(ti.styles),di=0;return null!=_i&&(ne++,di=ti.offset=_i),Ke=Ke||di<0||di>1,Ce=Ce||di0&&ne{const _i=Gt>0?ti==ln?1:Gt*ti:ge[ti],di=_i*pn;l.currentTime=Kt+Jt.delay+di,Jt.duration=di,this._validateStyleAst(Jn,l),Jn.offset=_i,g.styles.push(Jn)}),g}visitReference(c,l){return{type:8,animation:qe(this,Zt(c.animation),l),options:Ae(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ae(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ae(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[ne,ge]=function ce(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(Me,"")),O=O.replace(/@\*/g,ie).replace(/@\w+/g,l=>ie+"-"+l.substr(1)).replace(/:animating/g,je),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+ne:ne,B(l.collectedStyles,l.currentQuerySelector,{});const Ce=qe(this,Zt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:ne,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Ce,originalSelector:c.selector,options:Ae(c.options)}}visitStagger(c,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const g="full"===c.timings?{duration:0,delay:0,easing:"full"}:ve(c.timings,l.errors,!0);return{type:12,animation:qe(this,Zt(c.animation),l),timings:g,options:null}}}class L{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function $(O){return!Array.isArray(O)&&"object"==typeof O}function Ae(O){return O?(O=Qe(O)).params&&(O.params=function Ne(O){return O?Qe(O):null}(O.params)):O={},O}function wt(O,c,l){return{duration:O,delay:c,easing:l}}function At(O,c,l,g,F,ne,ge=null,Ce=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:ne,totalTime:F+ne,easing:ge,subTimeline:Ce}}class Qt{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,l){let g=this._map.get(c);g||this._map.set(c,g=[]),g.push(...l)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),jn=new RegExp(":leave","g");function qt(O,c,l,g,F,ne={},ge={},Ce,Ke,ft=[]){return(new Re).buildKeyframes(O,c,l,g,F,ne,ge,Ce,Ke,ft)}class Re{buildKeyframes(c,l,g,F,ne,ge,Ce,Ke,ft,Pt=[]){ft=ft||new Qt;const Bt=new ae(c,l,ft,F,ne,Pt,[]);Bt.options=Ke,Bt.currentTimeline.setStyles([ge],null,Bt.errors,Ke),qe(this,g,Bt);const Gt=Bt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(Ce).length){let ln;for(let Kt=Gt.length-1;Kt>=0;Kt--){const Jt=Gt[Kt];if(Jt.element===l){ln=Jt;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([Ce],null,Bt.errors,Ke)}return Gt.length?Gt.map(ln=>ln.buildKeyframes()):[At(l,[],[],[],0,0,"",!1)]}visitTrigger(c,l){}visitState(c,l){}visitTransition(c,l){}visitAnimateChild(c,l){const g=l.subInstructions.get(l.element);if(g){const F=l.createSubContext(c.options),ne=l.currentTimeline.currentTime,ge=this._visitSubInstructions(g,F,F.options);ne!=ge&&l.transformIntoNewTimeline(ge)}l.previousNode=c}visitAnimateRef(c,l){const g=l.createSubContext(c.options);g.transformIntoNewTimeline(),this.visitReference(c.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=c}_visitSubInstructions(c,l,g){let ne=l.currentTimeline.currentTime;const ge=null!=g.duration?tt(g.duration):null,Ce=null!=g.delay?tt(g.delay):null;return 0!==ge&&c.forEach(Ke=>{const ft=l.appendInstructionToTimeline(Ke,ge,Ce);ne=Math.max(ne,ft.duration+ft.delay)}),ne}visitReference(c,l){l.updateOptions(c.options,!0),qe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const ne=c.options;if(ne&&(ne.params||ne.delay)&&(F=l.createSubContext(ne),F.transformIntoNewTimeline(),null!=ne.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=we);const ge=tt(ne.delay);F.delayNextStep(ge)}c.steps.length&&(c.steps.forEach(ge=>qe(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const ne=c.options&&c.options.delay?tt(c.options.delay):0;c.steps.forEach(ge=>{const Ce=l.createSubContext(c.options);ne&&Ce.delayNextStep(ne),qe(this,ge,Ce),F=Math.max(F,Ce.currentTimeline.currentTime),g.push(Ce.currentTimeline)}),g.forEach(ge=>l.currentTimeline.mergeTimelineCollectedStyles(ge)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ve(l.params?un(g,l.params,l.errors):g,l.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,l){const g=l.currentAnimateTimings=this._visitTiming(c.timings,l),F=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),F.snapshotCurrentStyles());const ne=c.style;5==ne.type?this.visitKeyframes(ne,l):(l.incrementTime(g.duration),this.visitStyle(ne,l),F.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=c}visitStyle(c,l){const g=l.currentTimeline,F=l.currentAnimateTimings;!F&&g.getCurrentStyleProperties().length&&g.forwardFrame();const ne=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(ne):g.setStyles(c.styles,ne,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,ne=g.duration,Ce=l.createSubContext().currentTimeline;Ce.easing=g.easing,c.styles.forEach(Ke=>{Ce.forwardTime((Ke.offset||0)*ne),Ce.setStyles(Ke.styles,Ke.easing,l.errors,l.options),Ce.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Ce),l.transformIntoNewTimeline(F+ne),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},ne=F.delay?tt(F.delay):0;ne&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=we);let ge=g;const Ce=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Ce.length;let Ke=null;Ce.forEach((ft,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,ft);ne&&Bt.delayNextStep(ne),ft===l.element&&(Ke=Bt.currentTimeline),qe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ge),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,ne=c.timings,ge=Math.abs(ne.duration),Ce=ge*(l.currentQueryTotal-1);let Ke=ge*l.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":Ke=Ce-Ke;break;case"full":Ke=g.currentStaggerTime}const Pt=l.currentTimeline;Ke&&Pt.delayNextStep(Ke);const Bt=Pt.currentTime;qe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const we={};class ae{constructor(c,l,g,F,ne,ge,Ce,Ke){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=ne,this.errors=ge,this.timelines=Ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ve(this._driver,l,0),Ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,l){if(!c)return;const g=c;let F=this.options;null!=g.duration&&(F.duration=tt(g.duration)),null!=g.delay&&(F.delay=tt(g.delay));const ne=g.params;if(ne){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(ne).forEach(Ce=>{(!l||!ge.hasOwnProperty(Ce))&&(ge[Ce]=un(ne[Ce],ge,this.errors))})}}_copyOptions(){const c={};if(this.options){const l=this.options.params;if(l){const g=c.params={};Object.keys(l).forEach(F=>{g[F]=l[F]})}}return c}createSubContext(c=null,l,g){const F=l||this.element,ne=new ae(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(c),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(c){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,l,g){const F={duration:null!=l?l:c.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+c.delay,easing:""},ne=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(ne),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,ne,ge){let Ce=[];if(F&&Ce.push(this.element),c.length>0){c=(c=c.replace(An,"."+this._enterClassName)).replace(jn,"."+this._leaveClassName);let ft=this._driver.query(this.element,c,1!=g);0!==g&&(ft=g<0?ft.slice(ft.length+g,ft.length):ft.slice(0,g)),Ce.push(...ft)}return!ne&&0==Ce.length&&ge.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Ce}}class Ve{constructor(c,l,g,F){this._driver=c,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=F,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+c),l&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,l){return this.applyStylesToKeyframe(),new Ve(this._driver,c,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,l){this._localTimelineStyles[c]=l,this._globalTimelineStyles[c]=l,this._styleSummary[c]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||G.l3,this._currentKeyframe[l]=G.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const ne=F&&F.params||{},ge=function jt(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(ne=>{l[ne]=G.l3})):_t(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ge).forEach(Ce=>{const Ke=un(ge[Ce],ne,g);this._pendingStyles[Ce]=Ke,this._localTimelineStyles.hasOwnProperty(Ce)||(this._backFill[Ce]=this._globalTimelineStyles.hasOwnProperty(Ce)?this._globalTimelineStyles[Ce]:G.l3),this._updateStyle(Ce,Ke)})}applyStylesToKeyframe(){const c=this._pendingStyles,l=Object.keys(c);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=c[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const l=this._localTimelineStyles[c];this._pendingStyles[c]=l,this._updateStyle(c,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let l in this._currentKeyframe)c.push(l);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(l=>{const g=this._styleSummary[l],F=c._styleSummary[l];(!g||F.time>g.time)&&this._updateStyle(l,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ce,Ke)=>{const ft=_t(Ce,!0);Object.keys(ft).forEach(Pt=>{const Bt=ft[Pt];Bt==G.k1?c.add(Pt):Bt==G.l3&&l.add(Pt)}),g||(ft.offset=Ke/this.duration),F.push(ft)});const ne=c.size?_n(c.values()):[],ge=l.size?_n(l.values()):[];if(g){const Ce=F[0],Ke=Qe(Ce);Ce.offset=0,Ke.offset=1,F=[Ce,Ke]}return At(this.element,F,ne,ge,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(c,l,g,F,ne,ge,Ce=!1){super(c,l,ge.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=ne,this._stretchStartingKeyframe=Ce,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:l,duration:g,easing:F}=this.timings;if(this._stretchStartingKeyframe&&l){const ne=[],ge=g+l,Ce=l/ge,Ke=_t(c[0],!1);Ke.offset=0,ne.push(Ke);const ft=_t(c[0],!1);ft.offset=It(Ce),ne.push(ft);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Gt=_t(c[Bt],!1);Gt.offset=It((l+Gt.offset*g)/ge),ne.push(Gt)}g=ge,l=0,F="",c=ne}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function It(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class Pn{}class Zn extends Pn{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let ne="";const ge=g.toString().trim();if(ii[l]&&0!==g&&"0"!==g)if("number"==typeof g)ne="px";else{const Ce=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Ce&&0==Ce[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ge+ne}}const ii=(()=>function En(O){const c={};return O.forEach(l=>c[l]=!0),c}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ei(O,c,l,g,F,ne,ge,Ce,Ke,ft,Pt,Bt,Gt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:ne,toState:g,toStyles:ge,timelines:Ce,queriedElements:Ke,preStyleProps:ft,postStyleProps:Pt,totalTime:Bt,errors:Gt}}const Ln={};class Tt{constructor(c,l,g){this._triggerName=c,this.ast=l,this._stateStyles=g}match(c,l,g,F){return function rn(O,c,l,g,F){return O.some(ne=>ne(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],ne=this._stateStyles[c],ge=F?F.buildStyles(l,g):{};return ne?ne.buildStyles(l,g):ge}build(c,l,g,F,ne,ge,Ce,Ke,ft,Pt){const Bt=[],Gt=this.ast.options&&this.ast.options.params||Ln,Kt=this.buildStyles(g,Ce&&Ce.params||Ln,Bt),Jt=Ke&&Ke.params||Ln,pn=this.buildStyles(F,Jt,Bt),Jn=new Set,ti=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Gt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,ne,ge,Kt,pn,qi,ft,Bt);let fi=0;if(Oi.forEach(Yi=>{fi=Math.max(Yi.duration+Yi.delay,fi)}),Bt.length)return ei(l,this._triggerName,g,F,di,Kt,pn,[],[],ti,_i,fi,Bt);Oi.forEach(Yi=>{const Li=Yi.element,Ho=B(ti,Li,{});Yi.preStyleProps.forEach(ao=>Ho[ao]=!0);const zo=B(_i,Li,{});Yi.postStyleProps.forEach(ao=>zo[ao]=!0),Li!==l&&Jn.add(Li)});const Bi=_n(Jn.values());return ei(l,this._triggerName,g,F,di,Kt,pn,Oi,Bi,ti,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Qe(this.defaultParams);return Object.keys(c).forEach(ne=>{const ge=c[ne];null!=ge&&(F[ne]=ge)}),this.styles.styles.forEach(ne=>{if("string"!=typeof ne){const ge=ne;Object.keys(ge).forEach(Ce=>{let Ke=ge[Ce];Ke.length>1&&(Ke=un(Ke,F,l));const ft=this.normalizer.normalizePropertyName(Ce,l);Ke=this.normalizer.normalizeStyleValue(Ce,ft,Ke,l),g[ft]=Ke})}}),g}}class Te{constructor(c,l,g){this.name=c,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(F=>{this.states[F.name]=new bn(F.style,F.options&&F.options.params||{},g)}),De(this.states,"true","1"),De(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function Ze(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Ce)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,l,g,F){return this.transitionFactories.find(ge=>ge.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function De(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const rt=new Qt;class Wt{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(c,l){const g=[],F=V(this._driver,l,g);if(g.length)throw new Error(`Unable to build the animation due to the following errors: ${g.join("\n")}`);this._animations[c]=F}_buildPlayer(c,l,g){const F=c.element,ne=W(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,ne,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],ne=this._animations[c];let ge;const Ce=new Map;if(ne?(ge=qt(this._driver,l,ne,he,te,{},{},g,rt,F),ge.forEach(Pt=>{const Bt=B(Ce,Pt.element,{});Pt.postStyleProps.forEach(Gt=>Bt[Gt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ge=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Ce.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Gt=>{Pt[Gt]=this._driver.computeStyle(Bt,Gt,G.l3)})});const ft=_(ge.map(Pt=>{const Bt=Ce.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=ft,ft.onDestroy(()=>this.destroy(c)),this.players.push(ft),ft}destroy(c){const l=this._getPlayer(c);l.destroy(),delete this._playersById[c];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(c){const l=this._playersById[c];if(!l)throw new Error(`Unable to find the timeline player referenced by ${c}`);return l}listen(c,l,g,F){const ne=H(l,"","","");return I(this._getPlayer(c),g,ne,F),()=>{}}command(c,l,g,F){if("register"==g)return void this.register(c,F[0]);if("create"==g)return void this.create(c,l,F[0]||{});const ne=this._getPlayer(c);switch(g){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const on="ng-animate-queued",Un="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},se={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k="__ng_removed";class Ee{constructor(c,l=""){this.namespaceId=l;const g=c&&c.hasOwnProperty("value");if(this.value=function ai(O){return null!=O?O:null}(g?c.value:c),g){const ne=Qe(c);delete ne.value,this.options=ne}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const l=c.params;if(l){const g=this.options.params;Object.keys(l).forEach(F=>{null==g[F]&&(g[F]=l[F])})}}}const st="void",Ct=new Ee(st);class Ot{constructor(c,l,g){this.id=c,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,ui(l,this._hostClassName)}listen(c,l,g,F){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${g}" because the animation trigger "${l}" doesn't exist!`);if(null==g||0==g.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function bi(O){return"start"==O||"done"==O}(g))throw new Error(`The provided animation trigger event "${g}" for the animation trigger "${l}" is not supported!`);const ne=B(this._elementListeners,c,[]),ge={name:l,phase:g,callback:F};ne.push(ge);const Ce=B(this._engine.statesByElement,c,{});return Ce.hasOwnProperty(l)||(ui(c,le),ui(c,le+"-"+l),Ce[l]=Ct),()=>{this._engine.afterFlush(()=>{const Ke=ne.indexOf(ge);Ke>=0&&ne.splice(Ke,1),this._triggers[l]||delete Ce[l]})}}register(c,l){return!this._triggers[c]&&(this._triggers[c]=l,!0)}_getTrigger(c){const l=this._triggers[c];if(!l)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return l}trigger(c,l,g,F=!0){const ne=this._getTrigger(l),ge=new hn(this.id,l,c);let Ce=this._engine.statesByElement.get(c);Ce||(ui(c,le),ui(c,le+"-"+l),this._engine.statesByElement.set(c,Ce={}));let Ke=Ce[l];const ft=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ft.absorbOptions(Ke.options),Ce[l]=ft,Ke||(Ke=Ct),ft.value!==st&&Ke.value===ft.value){if(!function Zo(O,c){const l=Object.keys(O),g=Object.keys(c);if(l.length!=g.length)return!1;for(let F=0;F{Et(c,pn),ot(c,Jn)})}return}const Gt=B(this._engine.playersByElement,c,[]);Gt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let ln=ne.matchTransition(Ke.value,ft.value,c,ft.params),Kt=!1;if(!ln){if(!F)return;ln=ne.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:ln,fromState:Ke,toState:ft,player:ge,isFallbackTransition:Kt}),Kt||(ui(c,on),ge.onStart(()=>{wi(c,on)})),ge.onDone(()=>{let Jt=this.players.indexOf(ge);Jt>=0&&this.players.splice(Jt,1);const pn=this._engine.playersByElement.get(c);if(pn){let Jn=pn.indexOf(ge);Jn>=0&&pn.splice(Jn,1)}}),this.players.push(ge),Gt.push(ge),ge}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((l,g)=>{delete l[c]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(F=>F.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const l=this._engine.playersByElement.get(c);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,l){const g=this._engine.driver.query(c,ie,!0);g.forEach(F=>{if(F[k])return;const ne=this._engine.fetchNamespacesByElement(F);ne.size?ne.forEach(ge=>ge.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const ne=this._engine.statesByElement.get(c),ge=new Map;if(ne){const Ce=[];if(Object.keys(ne).forEach(Ke=>{if(ge.set(Ke,ne[Ke].value),this._triggers[Ke]){const ft=this.trigger(c,Ke,st,F);ft&&Ce.push(ft)}}),Ce.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ge),g&&_(Ce).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const l=this._elementListeners.get(c),g=this._engine.statesByElement.get(c);if(l&&g){const F=new Set;l.forEach(ne=>{const ge=ne.name;if(F.has(ge))return;F.add(ge);const Ke=this._triggers[ge].fallbackTransition,ft=g[ge]||Ct,Pt=new Ee(st),Bt=new hn(this.id,ge,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ge,transition:Ke,fromState:ft,toState:Pt,player:Bt,isFallbackTransition:!0})})}}removeNode(c,l){const g=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,l),this.triggerLeaveAnimation(c,l,!0))return;let F=!1;if(g.totalAnimations){const ne=g.players.length?g.playersByQueriedElement.get(c):[];if(ne&&ne.length)F=!0;else{let ge=c;for(;ge=ge.parentNode;)if(g.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const ne=c[k];(!ne||ne===X)&&(g.afterFlush(()=>this.clearElementCache(c)),g.destroyInnerAnimations(c),g._onRemovalComplete(c,l))}}insertNode(c,l){ui(c,this._hostClassName)}drainQueuedTransitions(c){const l=[];return this._queue.forEach(g=>{const F=g.player;if(F.destroyed)return;const ne=g.element,ge=this._elementListeners.get(ne);ge&&ge.forEach(Ce=>{if(Ce.name==g.triggerName){const Ke=H(ne,g.triggerName,g.fromState.value,g.toState.value);Ke._data=c,I(g.player,Ce.phase,Ke,Ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const ne=g.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==ne||0==ge?ne-ge:this._engine.driver.containsElement(g.element,F.element)?1:-1})}destroy(c){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let l=!1;return this._elementListeners.has(c)&&(l=!0),l=!!this._queue.find(g=>g.element===c)||l,l}}class Vt{constructor(c,l,g){this.bodyNode=c,this.driver=l,this._normalizer=g,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(F,ne)=>{}}_onRemovalComplete(c,l){this.onRemovalComplete(c,l)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&c.push(g)})}),c}createNamespace(c,l){const g=new Ot(c,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[c]=g}_balanceNamespaceList(c,l){const g=this._namespaceList.length-1;if(g>=0){let F=!1;for(let ne=g;ne>=0;ne--)if(this.driver.containsElement(this._namespaceList[ne].hostElement,l)){this._namespaceList.splice(ne+1,0,c),F=!0;break}F||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(l,c),c}register(c,l){let g=this._namespaceLookup[c];return g||(g=this.createNamespace(c,l)),g}registerTrigger(c,l,g){let F=this._namespaceLookup[c];F&&F.register(l,g)&&this.totalAnimations++}destroy(c,l){if(!c)return;const g=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[c];const F=this._namespaceList.indexOf(g);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const l=new Set,g=this.statesByElement.get(c);if(g){const F=Object.keys(g);for(let ne=0;ne=0&&this.collectedLeaveElements.splice(ge,1)}if(c){const ge=this._fetchNamespace(c);ge&&ge.insertNode(l,g)}F&&this.collectEnterElement(l)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,l){l?this.disabledNodes.has(c)||(this.disabledNodes.add(c),ui(c,Un)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,Un))}removeNode(c,l,g,F){if(kn(l)){const ne=c?this._fetchNamespace(c):null;if(ne?ne.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ge=this.namespacesByHostElement.get(l);ge&&ge.id!==c&&ge.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,ne){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(c,l,g,F,ne){return kn(l)?this._fetchNamespace(c).listen(l,g,F,ne):()=>{}}_buildInstruction(c,l,g,F,ne){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,ne)}destroyInnerAnimations(c){let l=this.driver.query(c,ie,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,je,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(c){const l=this.playersByElement.get(c);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(c){const l=this.playersByQueriedElement.get(c);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return _(this.players).onDone(()=>c());c()})}processLeaveNode(c){var l;const g=c[k];if(g&&g.setForRemoval){if(c[k]=X,g.namespaceId){this.destroyInnerAnimations(c);const F=this._fetchNamespace(g.namespaceId);F&&F.clearElementCache(c)}this._onRemovalComplete(c,g.setForRemoval)}(null===(l=c.classList)||void 0===l?void 0:l.contains(Un))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(c=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,F)=>this._balanceNamespaceList(g,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?_(l).onDone(()=>{g.forEach(F=>F())}):g.forEach(F=>F())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,l){const g=new Qt,F=[],ne=new Map,ge=[],Ce=new Map,Ke=new Map,ft=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let en=0;en{const en=he+Jt++;Kt.set(Xt,en),Rt.forEach(sn=>ui(sn,en))});const pn=[],Jn=new Set,ti=new Set;for(let Rt=0;RtJn.add(sn)):ti.add(Xt))}const _i=new Map,di=vi(Gt,Array.from(Jn));di.forEach((Rt,Xt)=>{const en=te+Jt++;_i.set(Xt,en),Rt.forEach(sn=>ui(sn,en))}),c.push(()=>{ln.forEach((Rt,Xt)=>{const en=Kt.get(Xt);Rt.forEach(sn=>wi(sn,en))}),di.forEach((Rt,Xt)=>{const en=_i.get(Xt);Rt.forEach(sn=>wi(sn,en))}),pn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(en=>{const sn=en.player,Gn=en.element;if(qi.push(sn),this.collectedEnterElements.length){const Ci=Gn[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(en.triggerName)){const Hi=Ci.previousTriggersValues.get(en.triggerName),Ni=this.statesByElement.get(en.element);Ni&&Ni[en.triggerName]&&(Ni[en.triggerName].value=Hi)}return void sn.destroy()}}const xn=!Bt||!this.driver.containsElement(Bt,Gn),pi=_i.get(Gn),Ji=Kt.get(Gn),Xn=this._buildInstruction(en,g,Ji,pi,xn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(xn)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);if(en.isFallbackTransition)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append(Gn,Xn.timelines),ge.push({instruction:Xn,player:sn,element:Gn}),Xn.queriedElements.forEach(Ci=>B(Ce,Ci,[]).push(sn)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let ji=Ke.get(Hi);ji||Ke.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let ji=ft.get(Hi);ji||ft.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))})});if(Oi.length){const Rt=[];Oi.forEach(Xt=>{Rt.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(en=>Rt.push(`- ${en}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Bi=new Map;ge.forEach(Rt=>{const Xt=Rt.element;g.has(Xt)&&(Bi.set(Xt,Xt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,fi))}),F.forEach(Rt=>{const Xt=Rt.element;this._getPreviousPlayers(Xt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(sn=>{B(fi,Xt,[]).push(sn),sn.destroy()})});const Yi=pn.filter(Rt=>Wi(Rt,Ke,ft)),Li=new Map;Ao(Li,this.driver,ti,ft,G.l3).forEach(Rt=>{Wi(Rt,Ke,ft)&&Yi.push(Rt)});const zo=new Map;ln.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Ke,G.k1)}),Yi.forEach(Rt=>{const Xt=Li.get(Rt),en=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),en))});const ao=[],fr=[],pr={};ge.forEach(Rt=>{const{element:Xt,player:en,instruction:sn}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return en.onDestroy(()=>ot(Xt,sn.toStyles)),en.disabled=!0,en.overrideTotalTime(sn.totalTime),void F.push(en);let Gn=pr;if(Bi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Bi.get(pi);if(Xn){Gn=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Bi.set(Xn,Gn))}const xn=this._buildAnimation(en.namespaceId,sn,fi,ne,zo,Li);if(en.setRealPlayer(xn),Gn===pr)ao.push(en);else{const pi=this.playersByElement.get(Gn);pi&&pi.length&&(en.parentPlayer=_(pi)),F.push(en)}}else Et(Xt,sn.fromStyles),en.onDestroy(()=>ot(Xt,sn.toStyles)),fr.push(en),Pt.has(Xt)&&F.push(en)}),fr.forEach(Rt=>{const Xt=ne.get(Rt.element);if(Xt&&Xt.length){const en=_(Xt);Rt.setRealPlayer(en)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!xn.destroyed);Gn.length?ko(this,Xt,Gn):this.processLeaveNode(Xt)}return pn.length=0,ao.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const Xt=this.players.indexOf(Rt);this.players.splice(Xt,1)}),Rt.play()}),ao}elementContainsData(c,l){let g=!1;const F=l[k];return F&&F.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(c).elementContainsData(l)||g}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,l,g,F,ne){let ge=[];if(l){const Ce=this.playersByQueriedElement.get(c);Ce&&(ge=Ce)}else{const Ce=this.playersByElement.get(c);if(Ce){const Ke=!ne||ne==st;Ce.forEach(ft=>{ft.queued||!Ke&&ft.triggerName!=F||ge.push(ft)})}}return(g||F)&&(ge=ge.filter(Ce=>!(g&&g!=Ce.namespaceId||F&&F!=Ce.triggerName))),ge}_beforeAnimationBuild(c,l,g){const ne=l.element,ge=l.isRemovalTransition?void 0:c,Ce=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ft=Ke.element,Pt=ft!==ne,Bt=B(g,ft,[]);this._getPreviousPlayers(ft,Pt,ge,Ce,l.toState).forEach(ln=>{const Kt=ln.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),ln.destroy(),Bt.push(ln)})}Et(ne,l.fromStyles)}_buildAnimation(c,l,g,F,ne,ge){const Ce=l.triggerName,Ke=l.element,ft=[],Pt=new Set,Bt=new Set,Gt=l.timelines.map(Kt=>{const Jt=Kt.element;Pt.add(Jt);const pn=Jt[k];if(pn&&pn.removedBeforeQueried)return new G.ZN(Kt.duration,Kt.delay);const Jn=Jt!==Ke,ti=function Fo(O){const c=[];return vo(O,c),c}((g.get(Jt)||qn).map(fi=>fi.getRealPlayer())).filter(fi=>!!fi.element&&fi.element===Jt),_i=ne.get(Jt),di=ge.get(Jt),qi=W(0,this._normalizer,0,Kt.keyframes,_i,di),Oi=this._buildPlayer(Kt,qi,ti);if(Kt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new hn(c,Ce,Jt);fi.setRealPlayer(Oi),ft.push(fi)}return Oi});ft.forEach(Kt=>{B(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function ni(O,c,l){let g;if(O instanceof Map){if(g=O.get(c),g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&O.delete(c)}}else if(g=O[c],g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&delete O[c]}return g}(this.playersByQueriedElement,Kt.element,Kt))}),Pt.forEach(Kt=>ui(Kt,Ue));const ln=_(Gt);return ln.onDestroy(()=>{Pt.forEach(Kt=>wi(Kt,Ue)),ot(Ke,l.toStyles)}),Bt.forEach(Kt=>{B(F,Kt,[]).push(ln)}),ln}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new G.ZN(c.duration,c.delay)}}class hn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new G.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(g=>I(c,l,void 0,g))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const l=this._player;l.triggerCallback&&c.onStart(()=>l.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,l){B(this._queuedCallbacks,c,[]).push(l)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const l=this._player;l.triggerCallback&&l.triggerCallback(c)}}function kn(O){return O&&1===O.nodeType}function io(O,c){const l=O.style.display;return O.style.display=null!=c?c:"none",l}function Ao(O,c,l,g,F){const ne=[];l.forEach(Ke=>ne.push(io(Ke)));const ge=[];g.forEach((Ke,ft)=>{const Pt={};Ke.forEach(Bt=>{const Gt=Pt[Bt]=c.computeStyle(ft,Bt,F);(!Gt||0==Gt.length)&&(ft[k]=se,ge.push(ft))}),O.set(ft,Pt)});let Ce=0;return l.forEach(Ke=>io(Ke,ne[Ce++])),ge}function vi(O,c){const l=new Map;if(O.forEach(Ce=>l.set(Ce,[])),0==c.length)return l;const F=new Set(c),ne=new Map;function ge(Ce){if(!Ce)return 1;let Ke=ne.get(Ce);if(Ke)return Ke;const ft=Ce.parentNode;return Ke=l.has(ft)?ft:F.has(ft)?1:ge(ft),ne.set(Ce,Ke),Ke}return c.forEach(Ce=>{const Ke=ge(Ce);1!==Ke&&l.get(Ke).push(Ce)}),l}function ui(O,c){var l;null===(l=O.classList)||void 0===l||l.add(c)}function wi(O,c){var l;null===(l=O.classList)||void 0===l||l.remove(c)}function ko(O,c,l){_(l).onDone(()=>O.processLeaveNode(c))}function vo(O,c){for(let l=0;lF.add(ne)):c.set(O,g),l.delete(O),!0}class yo{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(F,ne)=>{},this._transitionEngine=new Vt(c,l,g),this._timelineEngine=new Wt(c,l,g),this._transitionEngine.onRemovalComplete=(F,ne)=>this.onRemovalComplete(F,ne)}registerTrigger(c,l,g,F,ne){const ge=c+"-"+F;let Ce=this._triggerCache[ge];if(!Ce){const Ke=[],ft=V(this._driver,ne,Ke);if(Ke.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Ke.join("\n - ")}`);Ce=function Qn(O,c,l){return new Te(O,c,l)}(F,ft,this._normalizer),this._triggerCache[ge]=Ce}this._transitionEngine.registerTrigger(l,F,Ce)}register(c,l){this._transitionEngine.register(c,l)}destroy(c,l){this._transitionEngine.destroy(c,l)}onInsert(c,l,g,F){this._transitionEngine.insertNode(c,l,g,F)}onRemove(c,l,g,F){this._transitionEngine.removeNode(c,l,F||!1,g)}disableAnimations(c,l){this._transitionEngine.markElementAsDisabled(c,l)}process(c,l,g,F){if("@"==g.charAt(0)){const[ne,ge]=ee(g);this._timelineEngine.command(ne,l,ge,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,ne){if("@"==g.charAt(0)){const[ge,Ce]=ee(g);return this._timelineEngine.listen(ge,l,Ce,ne)}return this._transitionEngine.listen(c,l,g,F,ne)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _o(O,c){let l=null,g=null;return Array.isArray(c)&&c.length?(l=Ii(c[0]),c.length>1&&(g=Ii(c[c.length-1]))):c&&(l=Ii(c)),l||g?new sr(O,l,g):null}let sr=(()=>{class O{constructor(l,g,F){this._element=l,this._startStyles=g,this._endStyles=F,this._state=0;let ne=O.initialStylesByElement.get(l);ne||O.initialStylesByElement.set(l,ne={}),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Ii(O){let c=null;const l=Object.keys(O);for(let g=0;gthis._handleCallback(Ke)}apply(){(function qo(O,c){const l=bo(O,"").trim();let g=0;l.length&&(g=function Vo(O,c){let l=0;for(let g=0;g=this._delay&&g>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Ti(O,c){const g=bo(O,"").split(","),F=oi(g,c);F>=0&&(g.splice(F,1),Di(O,"",g.join(",")))}(this._element,this._name))}}function oo(O,c,l){Di(O,"PlayState",l,ro(O,c))}function ro(O,c){const l=bo(O,"");return l.indexOf(",")>0?oi(l.split(","),c):oi([l],c)}function oi(O,c){for(let l=0;l=0)return l;return-1}function Zi(O,c,l){l?O.removeEventListener(Gi,c):O.addEventListener(Gi,c)}function Di(O,c,l,g){const F=Mo+c;if(null!=g){const ne=O.style[F];if(ne.length){const ge=ne.split(",");ge[g]=l,l=ge.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,ne,ge,Ce,Ke){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=ne,this._finalStyles=Ce,this._specialStyles=Ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ge||"linear",this.totalTime=F+ne,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(g=>{"offset"!=g&&(c[g]=l?this._finalStyles[g]:x(this.element,g))})}this.currentSnapshot=c}}class Vi extends G.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=$e(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const l=this._startingStyles[c];l?this.element.style.setProperty(c,l):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class so{constructor(){this._count=0}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Ce=>$e(Ce));let F=`@keyframes ${l} {\n`,ne="";g.forEach(Ce=>{ne=" ";const Ke=parseFloat(Ce.offset);F+=`${ne}${100*Ke}% {\n`,ne+=" ",Object.keys(Ce).forEach(ft=>{const Pt=Ce[ft];switch(ft){case"offset":return;case"easing":return void(Pt&&(F+=`${ne}animation-timing-function: ${Pt};\n`));default:return void(F+=`${ne}${ft}: ${Pt};\n`)}}),F+=`${ne}}\n`}),F+="}\n";const ge=document.createElement("style");return ge.textContent=F,ge}animate(c,l,g,F,ne,ge=[],Ce){const Ke=ge.filter(pn=>pn instanceof xi),ft={};cn(g,F)&&Ke.forEach(pn=>{let Jn=pn.currentSnapshot;Object.keys(Jn).forEach(ti=>ft[ti]=Jn[ti])});const Pt=function Jo(O){let c={};return O&&(Array.isArray(O)?O:[O]).forEach(g=>{Object.keys(g).forEach(F=>{"offset"==F||"easing"==F||(c[F]=g[F])})}),c}(l=Mn(c,l,ft));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Gt=this.buildKeyframeElement(c,Bt,l);(function Do(O){var c;const l=null===(c=O.getRootNode)||void 0===c?void 0:c.call(O);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(c).appendChild(Gt);const Kt=_o(c,l),Jt=new xi(c,l,Bt,g,F,ne,Pt,Kt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Gt)),Jt}}class Pi{constructor(c,l,g,F){this.element=c,this.keyframes=l,this.options=g,this._specialStyles=F,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,l,g){return c.animate(l,g)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(g=>{"offset"!=g&&(c[g]=this._finished?l[g]:x(this.element,g))})}this.currentSnapshot=c}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(b().toString()),this._cssKeyframesDriver=new so}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,ne,ge=[],Ce){if(!Ce&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,ne,ge);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};ne&&(Pt.easing=ne);const Bt={},Gt=ge.filter(Kt=>Kt instanceof Pi);cn(g,F)&&Gt.forEach(Kt=>{let Jt=Kt.currentSnapshot;Object.keys(Jt).forEach(pn=>Bt[pn]=Jt[pn])});const ln=_o(c,l=Mn(c,l=l.map(Kt=>_t(Kt,!1)),Bt));return new Pi(c,l,Pt,ln)}}function b(){return oe()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends G._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(l)?(0,G.vP)(l):l;return ct(this._renderer,null,g,"register",[F]),new Q(g,this._renderer)}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(Y.K0))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Q extends G.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new xe(this._id,c,l||{},this._renderer)}}class xe{constructor(c,l,g,F){this.id=c,this.element=l,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(c,l){return this._renderer.listen(this.element,`@@${this.id}:${c}`,l)}_command(c,...l){return ct(this._renderer,this.element,this.id,c,l)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,l;return null!==(l=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==l?l:0}}function ct(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Fn=(()=>{class O{constructor(l,g,F){this.delegate=l,this.engine=g,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(ne,ge)=>{const Ce=null==ge?void 0:ge.parentNode(ne);Ce&&ge.removeChild(Ce,ne)}}createRenderer(l,g){const ne=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(ne);return Pt||(Pt=new Tn("",ne,this.engine),this._rendererCache.set(ne,Pt)),Pt}const ge=g.id,Ce=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Ce,l);const Ke=Pt=>{Array.isArray(Pt)?Pt.forEach(Ke):this.engine.registerTrigger(ge,Ce,l,Pt.name,Pt)};return g.data.animation.forEach(Ke),new Dn(this,Ce,ne,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,F){l>=0&&lg(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ne=>{const[ge,Ce]=ne;ge(Ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(yo),a.LFG(a.R0b))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Tn{constructor(c,l,g){this.namespaceId=c,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?F=>l.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,l){return this.delegate.createElement(c,l)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,l){this.delegate.appendChild(c,l),this.engine.onInsert(this.namespaceId,l,c,!1)}insertBefore(c,l,g,F=!0){this.delegate.insertBefore(c,l,g),this.engine.onInsert(this.namespaceId,l,c,F)}removeChild(c,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}selectRootElement(c,l){return this.delegate.selectRootElement(c,l)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,l,g,F){this.delegate.setAttribute(c,l,g,F)}removeAttribute(c,l,g){this.delegate.removeAttribute(c,l,g)}addClass(c,l){this.delegate.addClass(c,l)}removeClass(c,l){this.delegate.removeClass(c,l)}setStyle(c,l,g,F){this.delegate.setStyle(c,l,g,F)}removeStyle(c,l,g){this.delegate.removeStyle(c,l,g)}setProperty(c,l,g){"@"==l.charAt(0)&&l==kt?this.disableAnimations(c,!!g):this.delegate.setProperty(c,l,g)}setValue(c,l){this.delegate.setValue(c,l)}listen(c,l,g){return this.delegate.listen(c,l,g)}disableAnimations(c,l){this.engine.disableAnimations(c,l)}}class Dn extends Tn{constructor(c,l,g,F){super(l,g,F),this.factory=c,this.namespaceId=l}setProperty(c,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==kt?this.disableAnimations(c,g=void 0===g||!!g):this.engine.process(this.namespaceId,c,l.substr(1),g):this.delegate.setProperty(c,l,g)}listen(c,l,g){if("@"==l.charAt(0)){const F=function dn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let ne=l.substr(1),ge="";return"@"!=ne.charAt(0)&&([ne,ge]=function Yn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(ne)),this.engine.listen(this.namespaceId,F,ne,ge,Ce=>{this.factory.scheduleListenerCallback(Ce._data||-1,g,Ce)})}return this.delegate.listen(c,l,g)}}let On=(()=>{class O extends yo{constructor(l,g,F){super(l.body,g,F)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(Y.K0),a.LFG(Se),a.LFG(Pn))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:G._j,useClass:w},{provide:Pn,useFactory:function Eo(){return new Zn}},{provide:yo,useClass:On},{provide:a.FYo,useFactory:function D(O,c,l){return new Fn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:Se,useFactory:function Yt(){return function Wn(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],at=[{provide:Se,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?at:U}}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:U,imports:[s.b2]}),O})()},2313:(yt,be,p)=>{p.d(be,{b2:()=>_n,H7:()=>An,q6:()=>Ut,se:()=>le});var a=p(9808),s=p(5e3);class G extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends G{static makeCurrent(){(0,a.HT)(new oe)}onAndCancel(we,ae,Ve){return we.addEventListener(ae,Ve,!1),()=>{we.removeEventListener(ae,Ve,!1)}}dispatchEvent(we,ae){we.dispatchEvent(ae)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,ae){return(ae=ae||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,ae){return"window"===ae?window:"document"===ae?we:"body"===ae?we.body:null}getBaseHref(we){const ae=function _(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==ae?null:function I(Re){W=W||document.createElement("a"),W.setAttribute("href",Re);const we=W.pathname;return"/"===we.charAt(0)?we:`/${we}`}(ae)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,a.Mx)(document.cookie,we)}}let W,q=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(Re,we,ae){return()=>{ae.get(s.CZH).donePromise.then(()=>{const Ve=(0,a.q)(),ht=we.querySelectorAll(`style[ng-transition="${Re}"]`);for(let It=0;It{const It=we.findTestabilityInTree(Ve,ht);if(null==It)throw new Error("Could not find testability for element.");return It},s.dqk.getAllAngularTestabilities=()=>we.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>we.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Ve=>{const ht=s.dqk.getAllAngularTestabilities();let It=ht.length,jt=!1;const fn=function(Pn){jt=jt||Pn,It--,0==It&&Ve(jt)};ht.forEach(function(Pn){Pn.whenStable(fn)})})}findTestabilityInTree(we,ae,Ve){if(null==ae)return null;const ht=we.getTestability(ae);return null!=ht?ht:Ve?(0,a.q)().isShadowRoot(ae)?this.findTestabilityInTree(we,ae.host,!0):this.findTestabilityInTree(we,ae.parentElement,!0):null}}let ye=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ye=new s.OlP("EventManagerPlugins");let Fe=(()=>{class Re{constructor(ae,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ae.forEach(ht=>ht.manager=this),this._plugins=ae.slice().reverse()}addEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addEventListener(ae,Ve,ht)}addGlobalEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(ae,Ve,ht)}getZone(){return this._zone}_findPluginFor(ae){const Ve=this._eventNameToPlugin.get(ae);if(Ve)return Ve;const ht=this._plugins;for(let It=0;It{class Re{constructor(){this._stylesSet=new Set}addStyles(ae){const Ve=new Set;ae.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(ae){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),vt=(()=>{class Re extends _e{constructor(ae){super(),this._doc=ae,this._hostNodes=new Map,this._hostNodes.set(ae.head,[])}_addStylesToHost(ae,Ve,ht){ae.forEach(It=>{const jt=this._doc.createElement("style");jt.textContent=It,ht.push(Ve.appendChild(jt))})}addHost(ae){const Ve=[];this._addStylesToHost(this._stylesSet,ae,Ve),this._hostNodes.set(ae,Ve)}removeHost(ae){const Ve=this._hostNodes.get(ae);Ve&&Ve.forEach(Je),this._hostNodes.delete(ae)}onStylesAdded(ae){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(ae,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ae=>ae.forEach(Je))}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function Je(Re){(0,a.q)().remove(Re)}const zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ut=/%COMP%/g;function fe(Re,we,ae){for(let Ve=0;Ve{if("__ngUnwrap__"===we)return Re;!1===Re(we)&&(we.preventDefault(),we.returnValue=!1)}}let le=(()=>{class Re{constructor(ae,Ve,ht){this.eventManager=ae,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ae)}createRenderer(ae,Ve){if(!ae||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new tt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(ae),ht}case 1:case s.ifc.ShadowDom:return new ke(this.eventManager,this.sharedStylesHost,ae,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=fe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Fe),s.LFG(vt),s.LFG(s.AFp))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ie{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,ae){return ae?document.createElementNS(zt[ae]||ae,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,ae){we.appendChild(ae)}insertBefore(we,ae,Ve){we&&we.insertBefore(ae,Ve)}removeChild(we,ae){we&&we.removeChild(ae)}selectRootElement(we,ae){let Ve="string"==typeof we?document.querySelector(we):we;if(!Ve)throw new Error(`The selector "${we}" did not match any elements`);return ae||(Ve.textContent=""),Ve}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,ae,Ve,ht){if(ht){ae=ht+":"+ae;const It=zt[ht];It?we.setAttributeNS(It,ae,Ve):we.setAttribute(ae,Ve)}else we.setAttribute(ae,Ve)}removeAttribute(we,ae,Ve){if(Ve){const ht=zt[Ve];ht?we.removeAttributeNS(ht,ae):we.removeAttribute(`${Ve}:${ae}`)}else we.removeAttribute(ae)}addClass(we,ae){we.classList.add(ae)}removeClass(we,ae){we.classList.remove(ae)}setStyle(we,ae,Ve,ht){ht&(s.JOm.DashCase|s.JOm.Important)?we.style.setProperty(ae,Ve,ht&s.JOm.Important?"important":""):we.style[ae]=Ve}removeStyle(we,ae,Ve){Ve&s.JOm.DashCase?we.style.removeProperty(ae):we.style[ae]=""}setProperty(we,ae,Ve){we[ae]=Ve}setValue(we,ae){we.nodeValue=ae}listen(we,ae,Ve){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,ae,he(Ve)):this.eventManager.addEventListener(we,ae,he(Ve))}}class tt extends ie{constructor(we,ae,Ve,ht){super(we),this.component=Ve;const It=fe(ht+"-"+Ve.id,Ve.styles,[]);ae.addStyles(It),this.contentAttr=function Xe(Re){return"_ngcontent-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id),this.hostAttr=function J(Re){return"_nghost-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,ae){const Ve=super.createElement(we,ae);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ke extends ie{constructor(we,ae,Ve,ht){super(we),this.sharedStylesHost=ae,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=fe(ht.id,ht.styles,[]);for(let jt=0;jt{class Re extends ze{constructor(ae){super(ae)}supports(ae){return!0}addEventListener(ae,Ve,ht){return ae.addEventListener(Ve,ht,!1),()=>this.removeEventListener(ae,Ve,ht)}removeEventListener(ae,Ve,ht){return ae.removeEventListener(Ve,ht)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const mt=["alt","control","meta","shift"],dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_t={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},it={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let St=(()=>{class Re extends ze{constructor(ae){super(ae)}supports(ae){return null!=Re.parseEventName(ae)}addEventListener(ae,Ve,ht){const It=Re.parseEventName(Ve),jt=Re.eventCallback(It.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(ae,It.domEventName,jt))}static parseEventName(ae){const Ve=ae.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const It=Re._normalizeKey(Ve.pop());let jt="";if(mt.forEach(Pn=>{const si=Ve.indexOf(Pn);si>-1&&(Ve.splice(si,1),jt+=Pn+".")}),jt+=It,0!=Ve.length||0===It.length)return null;const fn={};return fn.domEventName=ht,fn.fullKey=jt,fn}static getEventFullKey(ae){let Ve="",ht=function ot(Re){let we=Re.key;if(null==we){if(we=Re.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===Re.location&&_t.hasOwnProperty(we)&&(we=_t[we]))}return dt[we]||we}(ae);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),mt.forEach(It=>{It!=ht&&it[It](ae)&&(Ve+=It+".")}),Ve+=ht,Ve}static eventCallback(ae,Ve,ht){return It=>{Re.getEventFullKey(It)===ae&&ht.runGuarded(()=>Ve(It))}}static _normalizeKey(ae){return"esc"===ae?"escape":ae}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ut=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){oe.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function mn(){return(0,s.RDi)(document),document},deps:[]}]),un=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Zt(){return new s.qLn},deps:[]},{provide:Ye,useClass:ve,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:Ye,useClass:St,multi:!0,deps:[a.K0]},{provide:le,useClass:le,deps:[Fe,vt,s.AFp]},{provide:s.FYo,useExisting:le},{provide:_e,useExisting:vt},{provide:vt,useClass:vt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Fe,useClass:Fe,deps:[Ye,s.R0b]},{provide:a.JF,useClass:ye,deps:[]}];let _n=(()=>{class Re{constructor(ae){if(ae)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ae){return{ngModule:Re,providers:[{provide:s.AFp,useValue:ae.appId},{provide:R,useExisting:s.AFp},B]}}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Re,12))},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:un,imports:[a.ez,s.hGG]}),Re})();"undefined"!=typeof window&&window;let An=(()=>{class Re{}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new(ae||Re):s.LFG(jn),Ve},providedIn:"root"}),Re})(),jn=(()=>{class Re extends An{constructor(ae){super(),this._doc=ae}sanitize(ae,Ve){if(null==Ve)return null;switch(ae){case s.q3G.NONE:return Ve;case s.q3G.HTML:return(0,s.qzn)(Ve,"HTML")?(0,s.z3N)(Ve):(0,s.EiD)(this._doc,String(Ve)).toString();case s.q3G.STYLE:return(0,s.qzn)(Ve,"Style")?(0,s.z3N)(Ve):Ve;case s.q3G.SCRIPT:if((0,s.qzn)(Ve,"Script"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Ve),(0,s.qzn)(Ve,"URL")?(0,s.z3N)(Ve):(0,s.mCW)(String(Ve));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Ve,"ResourceURL"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ae} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ae){return(0,s.JVY)(ae)}bypassSecurityTrustStyle(ae){return(0,s.L6k)(ae)}bypassSecurityTrustScript(ae){return(0,s.eBb)(ae)}bypassSecurityTrustUrl(ae){return(0,s.LAX)(ae)}bypassSecurityTrustResourceUrl(ae){return(0,s.pB0)(ae)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new ae:function ri(Re){return new jn(Re.get(a.K0))}(s.LFG(s.zs3)),Ve},providedIn:"root"}),Re})()},2302:(yt,be,p)=>{p.d(be,{gz:()=>k,m2:()=>Et,OD:()=>ot,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const G=(()=>{function m(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return m.prototype=Object.create(Error.prototype),m})();var oe=p(5254),q=p(1086),_=p(591),W=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),ye=p(8929),Ye=p(2198),Fe=p(3489),ze=p(4231);function _e(m){return function(h){return 0===m?(0,B.c)():h.lift(new vt(m))}}class vt{constructor(d){if(this.total=d,this.total<0)throw new ze.W}call(d,h){return h.subscribe(new Je(d,this.total))}}class Je extends Fe.L{constructor(d,h){super(d),this.total=h,this.ring=new Array,this.count=0}_next(d){const h=this.ring,M=this.total,S=this.count++;h.length0){const M=this.count>=this.total?this.total:this.count,S=this.ring;for(let K=0;Kd.lift(new ut(m))}class ut{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new Ie(d,this.errorFactory))}}class Ie extends Fe.L{constructor(d,h){super(d),this.errorFactory=h,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(h){d=h}this.destination.error(d)}}}function $e(){return new G}function et(m=null){return d=>d.lift(new Se(m))}class Se{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Xe(d,this.defaultValue))}}class Xe extends Fe.L{constructor(d,h){super(d),this.defaultValue=h,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var J=p(5379),he=p(2986);function te(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,(0,he.q)(1),h?et(d):zt(()=>new G))}var le=p(4850),ie=p(7545),Ue=p(1059),je=p(2014),tt=p(7221),ke=p(1406),ve=p(1709),mt=p(2994),Qe=p(4327),dt=p(537),_t=p(9146),it=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class ot extends St{constructor(d,h,M="imperative",S=null){super(d,h),this.navigationTrigger=M,this.restoredState=S}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Et extends St{constructor(d,h,M){super(d,h),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mn extends St{constructor(d,h,M){super(d,h),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends St{constructor(d,h,M,S,K){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=K}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dt{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cn{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qe{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(d,h,M){this.routerEvent=d,this.position=h,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const P="primary";class pe{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h[0]:h}return null}getAll(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function j(m){return new pe(m)}const me="ngNavigationCancelingError";function He(m){const d=Error("NavigationCancelingError: "+m);return d[me]=!0,d}function Le(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[K]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ce(m){return m.length>0?m[m.length-1]:null}function L(m,d){for(const h in m)m.hasOwnProperty(h)&&d(m[h],h)}function E(m){return(0,a.CqO)(m)?m:(0,a.QGY)(m)?(0,oe.D)(Promise.resolve(m)):(0,q.of)(m)}const ue={exact:function Qt(m,d,h){if(!ae(m.segments,d.segments)||!ri(m.segments,d.segments,h)||m.numberOfChildren!==d.numberOfChildren)return!1;for(const M in d.children)if(!m.children[M]||!Qt(m.children[M],d.children[M],h))return!1;return!0},subset:Vn},Ae={exact:function At(m,d){return V(m,d)},subset:function vn(m,d){return Object.keys(d).length<=Object.keys(m).length&&Object.keys(d).every(h=>Be(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return ue[h.paths](m.root,d.root,h.matrixParams)&&Ae[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Vn(m,d,h){return An(m,d,d.segments,h)}function An(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!ae(S,h)||d.hasChildren()||!ri(S,h,M))}if(m.segments.length===h.length){if(!ae(m.segments,h)||!ri(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Vn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),K=h.slice(m.segments.length);return!!(ae(m.segments,S)&&ri(m.segments,S,M)&&m.children[P])&&An(m.children[P],d,K,M)}}function ri(m,d,h){return d.every((M,S)=>Ae[h](m[S].parameters,M.parameters))}class jn{constructor(d,h,M){this.root=d,this.queryParams=h,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return jt.serialize(this)}}class qt{constructor(d,h){this.segments=d,this.children=h,this.parent=null,L(h,(M,S)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fn(this)}}class Re{constructor(d,h){this.path=d,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=j(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function ae(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class It{parse(d){const h=new on(d);return new jn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${Pn(d.root,!0)}`,M=function bn(m){const d=Object.keys(m).map(h=>{const M=m[h];return Array.isArray(M)?M.map(S=>`${Zn(h)}=${Zn(S)}`).join("&"):`${Zn(h)}=${Zn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ii(m){return encodeURI(m)}(d.fragment)}`:""}`}}const jt=new It;function fn(m){return m.segments.map(d=>Tt(d)).join("/")}function Pn(m,d){if(!m.hasChildren())return fn(m);if(d){const h=m.children[P]?Pn(m.children[P],!1):"",M=[];return L(m.children,(S,K)=>{K!==P&&M.push(`${K}:${Pn(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Ve(m,d){let h=[];return L(m.children,(M,S)=>{S===P&&(h=h.concat(d(M,S)))}),L(m.children,(M,S)=>{S!==P&&(h=h.concat(d(M,S)))}),h}(m,(M,S)=>S===P?[Pn(m.children[P],!1)]:[`${S}:${Pn(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${fn(m)}/${h[0]}`:`${fn(m)}/(${h.join("//")})`}}function si(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zn(m){return si(m).replace(/%3B/gi,";")}function En(m){return si(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(m){return decodeURIComponent(m)}function Ln(m){return ei(m.replace(/\+/g,"%20"))}function Tt(m){return`${En(m.path)}${function rn(m){return Object.keys(m).map(d=>`;${En(d)}=${En(m[d])}`).join("")}(m.parameters)}`}const Qn=/^[^\/()?;=#]+/;function Te(m){const d=m.match(Qn);return d?d[0]:""}const Ze=/^[^=?&#]+/,rt=/^[^&#]+/;class on{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(d.length>0||Object.keys(h).length>0)&&(M[P]=new qt(d,h)),M}parseSegment(){const d=Te(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Re(ei(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=Te(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=Te(this.remaining);S&&(M=S,this.capture(M))}d[ei(h)]=ei(M)}parseQueryParam(d){const h=function De(m){const d=m.match(Ze);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function Wt(m){const d=m.match(rt);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Ln(h),K=Ln(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(K)}else d[S]=K}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Te(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let K;M.indexOf(":")>-1?(K=M.substr(0,M.indexOf(":")),this.capture(K),this.capture(":")):d&&(K=P);const de=this.parseChildren();h[K]=1===Object.keys(de).length?de[P]:new qt([],de),this.consumeOptional("//")}return h}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class Lt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const h=this.pathFromRoot(d);return h.length>1?h[h.length-2]:null}children(d){const h=Un(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=Un(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=$n(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return $n(d,this._root).map(h=>h.value)}}function Un(m,d){if(m===d.value)return d;for(const h of d.children){const M=Un(m,h);if(M)return M}return null}function $n(m,d){if(m===d.value)return[d];for(const h of d.children){const M=$n(m,h);if(M.length)return M.unshift(d),M}return[]}class Nn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function Rn(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Lt{constructor(d,h){super(d),this.snapshot=h,Vt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function se(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Nn(de,[]))}(m,d),M=new _.X([new Re("",{})]),S=new _.X({}),K=new _.X({}),de=new _.X({}),Oe=new _.X(""),pt=new k(M,S,de,Oe,K,P,d,h.root);return pt.snapshot=h.root,new qn(new Nn(pt,[]),h)}class k{constructor(d,h,M,S,K,de,Oe,pt){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this._futureSnapshot=pt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,le.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(d=>j(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(m,d="emptyOnly"){const h=m.pathFromRoot;let M=0;if("always"!==d)for(M=h.length-1;M>=1;){const S=h[M],K=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(K.component)break;M--}}return function st(m){return m.reduce((d,h)=>({params:Object.assign(Object.assign({},d.params),h.params),data:Object.assign(Object.assign({},d.data),h.data),resolve:Object.assign(Object.assign({},d.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(M))}class Ct{constructor(d,h,M,S,K,de,Oe,pt,Ht,wn,tn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this.routeConfig=pt,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=j(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ot extends Lt{constructor(d,h){super(h),this.url=d,Vt(this,h)}toString(){return hn(this._root)}}function Vt(m,d){d.value._routerState=m,d.children.forEach(h=>Vt(m,h))}function hn(m){const d=m.children.length>0?` { ${m.children.map(hn).join(", ")} } `:"";return`${m.value}${d}`}function ni(m){if(m.snapshot){const d=m.snapshot,h=m._futureSnapshot;m.snapshot=h,V(d.queryParams,h.queryParams)||m.queryParams.next(h.queryParams),d.fragment!==h.fragment&&m.fragment.next(h.fragment),V(d.params,h.params)||m.params.next(h.params),function Me(m,d){if(m.length!==d.length)return!1;for(let h=0;hV(h.parameters,d[M].parameters))}(m.url,d.url);return h&&!(!m.parent!=!d.parent)&&(!m.parent||ai(m.parent,d.parent))}function bi(m,d,h){if(h&&m.shouldReuseRoute(d.value,h.value.snapshot)){const M=h.value;M._futureSnapshot=d.value;const S=function io(m,d,h){return d.children.map(M=>{for(const S of h.children)if(m.shouldReuseRoute(M.value,S.value.snapshot))return bi(m,M,S);return bi(m,M)})}(m,d,h);return new Nn(M,S)}{if(m.shouldAttach(d.value)){const K=m.retrieve(d.value);if(null!==K){const de=K.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Oe=>bi(m,Oe)),de}}const M=function Ao(m){return new k(new _.X(m.url),new _.X(m.params),new _.X(m.queryParams),new _.X(m.fragment),new _.X(m.data),m.outlet,m.component,m)}(d.value),S=d.children.map(K=>bi(m,K));return new Nn(M,S)}}function ui(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function wi(m){return"object"==typeof m&&null!=m&&m.outlets}function ko(m,d,h,M,S){let K={};return M&&L(M,(de,Oe)=>{K[Oe]=Array.isArray(de)?de.map(pt=>`${pt}`):`${de}`}),new jn(h.root===m?d:Fo(h.root,m,d),K,S)}function Fo(m,d,h){const M={};return L(m.children,(S,K)=>{M[K]=S===d?h:Fo(S,d,h)}),new qt(m.segments,M)}class vo{constructor(d,h,M){if(this.isAbsolute=d,this.numberOfDoubleDots=h,this.commands=M,d&&M.length>0&&ui(M[0]))throw new Error("Root segment cannot have matrix parameters");const S=M.find(wi);if(S&&S!==ce(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wi{constructor(d,h,M){this.segmentGroup=d,this.processChildren=h,this.index=M}}function Ii(m,d,h){if(m||(m=new qt([],{})),0===m.segments.length&&m.hasChildren())return Co(m,d,h);const M=function Io(m,d,h){let M=0,S=d;const K={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return K;const de=m.segments[S],Oe=h[M];if(wi(Oe))break;const pt=`${Oe}`,Ht=M0&&void 0===pt)break;if(pt&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(pt,Ht,de))return K;M+=2}else{if(!Qo(pt,{},de))return K;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof K&&(K=[K]),null!==K&&(S[de]=Ii(m.children[de],d,K))}),L(m.children,(K,de)=>{void 0===M[de]&&(S[de]=K)}),new qt(m.segments,S)}}function Mo(m,d,h){const M=m.segments.slice(0,d);let S=0;for(;S{"string"==typeof h&&(h=[h]),null!==h&&(d[M]=Mo(new qt([],{}),0,h))}),d}function Ki(m){const d={};return L(m,(h,M)=>d[M]=`${h}`),d}function Qo(m,d,h){return m==h.path&&V(d,h.parameters)}class qo{constructor(d,h,M,S){this.routeReuseStrategy=d,this.futureState=h,this.currState=M,this.forwardEvent=S}activate(d){const h=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,M,d),ni(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{const de=K.value.outlet;this.deactivateRoutes(K,S[de],M),delete S[de]}),L(S,(K,de)=>{this.deactivateRouteAndItsChildren(K,M)})}deactivateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(S===K)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else K&&this.deactivateRouteAndItsChildren(h,M)}deactivateRouteAndItsChildren(d,h){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,h):this.deactivateRouteAndOutlet(d,h)}detachAndStoreRouteSubtree(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Oe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Oe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{this.activateRoutes(K,S[K.value.outlet],M),this.forwardEvent(new x(K.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(ni(S),S===K)if(S.component){const de=M.getOrCreateContext(S.outlet);this.activateChildRoutes(d,h,de.children)}else this.activateChildRoutes(d,h,M);else if(S.component){const de=M.getOrCreateContext(S.outlet);if(this.routeReuseStrategy.shouldAttach(S.snapshot)){const Oe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Oe.contexts),de.attachRef=Oe.componentRef,de.route=Oe.route.value,de.outlet&&de.outlet.attach(Oe.componentRef,Oe.route.value),ni(Oe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Oe=function Ti(m){for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(S.snapshot),pt=Oe?Oe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=pt,de.outlet&&de.outlet.activateWith(S,pt),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function oi(m){return"function"==typeof m}function Di(m){return m instanceof jn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,ie.w)(m=>(0,W.aj)(m.map(d=>d.pipe((0,he.q)(1),(0,Ue.O)(xi)))).pipe((0,je.R)((d,h)=>{let M=!1;return h.reduce((S,K,de)=>S!==xi?S:(K===xi&&(M=!0),M||!1!==K&&de!==h.length-1&&!Di(K)?S:K),d)},xi),(0,Ye.h)(d=>d!==xi),(0,le.U)(d=>Di(d)?d:!0===d),(0,he.q)(1)))}class hi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ei,this.attachRef=null}}class Ei{constructor(){this.contexts=new Map}onChildOutletCreated(d,h){const M=this.getOrCreateContext(d);M.outlet=h,this.contexts.set(d,M)}onChildOutletDestroyed(d){const h=this.getContext(d);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let h=this.getContext(d);return h||(h=new hi,this.contexts.set(d,h)),h}getContext(d){return this.contexts.get(d)||null}}let so=(()=>{class m{constructor(h,M,S,K,de){this.parentContexts=h,this.location=M,this.resolver=S,this.changeDetector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=K||P,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,M){this.activated=h,this._activatedRoute=M,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const de=(M=M||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),Oe=this.parentContexts.getOrCreateContext(this.name).children,pt=new Do(h,Oe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,pt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(Ei),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},m.\u0275dir=a.lG2({type:m,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),m})();class Do{constructor(d,h,M){this.route=d,this.childContexts=h,this.parent=M}get(d,h){return d===k?this.route:d===Ei?this.childContexts:this.parent.get(d,h)}}let Jo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,M){1&h&&a._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),m})();function Qi(m,d=""){for(let h=0;hyi(M)===d);return h.push(...m.filter(M=>yi(M)!==d)),h}const b={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Y(m,d,h){var M;if(""===d.path)return"full"===d.pathMatch&&(m.hasChildren()||h.length>0)?Object.assign({},b):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const K=(d.matcher||Le)(h,m,d);if(!K)return Object.assign({},b);const de={};L(K.posParams,(pt,Ht)=>{de[Ht]=pt.path});const Oe=K.consumed.length>0?Object.assign(Object.assign({},de),K.consumed[K.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:K.consumed,lastChild:K.consumed.length,parameters:Oe,positionalParamSegments:null!==(M=K.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function ct(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function xe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const K of h)if(""===K.path&&yi(K)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(K)]=de}return S}(m,d,M,new qt(h,m.children)));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:[]}}if(0===h.length&&function Mt(m,d,h){return h.some(M=>kt(m,d,M))}(m,h,M)){const de=new qt(m.segments,function Q(m,d,h,M,S,K){const de={};for(const Oe of M)if(kt(m,h,Oe)&&!S[yi(Oe)]){const pt=new qt([],{});pt._sourceSegment=m,pt._segmentIndexShift="legacy"===K?m.segments.length:d.length,de[yi(Oe)]=pt}return Object.assign(Object.assign({},S),de)}(m,d,h,M,m.children,S));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:h}}const K=new qt(m.segments,m.children);return K._sourceSegment=m,K._segmentIndexShift=d.length,{segmentGroup:K,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Fn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function Tn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class dn{constructor(d){this.urlTree=d}}function Yn(m){return new I.y(d=>d.error(new Dn(m)))}function On(m){return new I.y(d=>d.error(new dn(m)))}function Yt(m){return new I.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${m}'`)))}class C{constructor(d,h,M,S,K){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=K,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=w(this.urlTree.root,[],[],this.config).segmentGroup,h=new qt(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,h,P).pipe((0,le.U)(K=>this.createUrlTree(U(K),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(K=>{if(K instanceof dn)return this.allowRedirects=!1,this.match(K.urlTree);throw K instanceof Dn?this.noMatchError(K):K}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,le.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,tt.K)(S=>{throw S instanceof Dn?this.noMatchError(S):S}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,h,M){const S=d.segments.length>0?new qt([],{[P]:d}):d;return new jn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,le.U)(K=>new qt([],K))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const K of Object.keys(M.children))"primary"===K?S.unshift(K):S.push(K);return(0,oe.D)(S).pipe((0,ke.b)(K=>{const de=M.children[K],Oe=Wn(h,K);return this.expandSegmentGroup(d,Oe,de,K).pipe((0,le.U)(pt=>({segment:pt,outlet:K})))}),(0,je.R)((K,de)=>(K[de.outlet]=de.segment,K),{}),function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,_e(1),h?et(d):zt(()=>new G))}())}expandSegment(d,h,M,S,K,de){return(0,oe.D)(M).pipe((0,ke.b)(Oe=>this.expandSegmentAgainstRoute(d,h,M,Oe,S,K,de).pipe((0,tt.K)(Ht=>{if(Ht instanceof Dn)return(0,q.of)(null);throw Ht}))),te(Oe=>!!Oe),(0,tt.K)((Oe,pt)=>{if(Oe instanceof G||"EmptyError"===Oe.name){if(Tn(h,S,K))return(0,q.of)(new qt([],{}));throw new Dn(h)}throw Oe}))}expandSegmentAgainstRoute(d,h,M,S,K,de,Oe){return Fn(S,h,K,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,K,de):Oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de):Yn(h):Yn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const K=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?On(K):this.lineralizeSegments(M,K).pipe((0,ve.zg)(de=>{const Oe=new qt(de,{});return this.expandSegment(d,Oe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){const{matched:Oe,consumedSegments:pt,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,K);if(!Oe)return Yn(h);const tn=this.applyRedirectCommands(pt,S.redirectTo,wn);return S.redirectTo.startsWith("/")?On(tn):this.lineralizeSegments(S,tn).pipe((0,ve.zg)(In=>this.expandSegment(d,h,M,In.concat(K.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,K){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,q.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,le.U)(In=>(M._loadedConfig=In,new qt(S,{})))):(0,q.of)(new qt(S,{}));const{matched:de,consumedSegments:Oe,lastChild:pt}=Y(h,M,S);if(!de)return Yn(h);const Ht=S.slice(pt);return this.getChildConfig(d,M,S).pipe((0,ve.zg)(tn=>{const In=tn.module,Hn=tn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Oe,Ht,Hn),Ui=new qt(co.segments,co.children);if(0===lo.length&&Ui.hasChildren())return this.expandChildren(In,Hn,Ui).pipe((0,le.U)(eo=>new qt(Oe,eo)));if(0===Hn.length&&0===lo.length)return(0,q.of)(new qt(Oe,{}));const uo=yi(M)===K;return this.expandSegment(In,Ui,Hn,lo,uo?P:K,!0).pipe((0,le.U)(Ai=>new qt(Oe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,q.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,q.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ve.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,le.U)(K=>(h._loadedConfig=K,K))):function Eo(m){return new I.y(d=>d.error(He(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,q.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,q.of)(!0);const K=S.map(de=>{const Oe=d.get(de);let pt;if(function bo(m){return m&&oi(m.canLoad)}(Oe))pt=Oe.canLoad(h,M);else{if(!oi(Oe))throw new Error("Invalid CanLoad guard");pt=Oe(h,M)}return E(pt)});return(0,q.of)(K).pipe(Vi(),(0,mt.b)(de=>{if(!Di(de))return;const Oe=He(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Oe.url=de,Oe}),(0,le.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,q.of)(M);if(S.numberOfChildren>1||!S.children[P])return Yt(d.redirectTo);S=S.children[P]}}applyRedirectCommands(d,h,M){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),d,M)}applyRedirectCreatreUrlTree(d,h,M,S){const K=this.createSegmentGroup(d,h.root,M,S);return new jn(K,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,K)=>{if("string"==typeof S&&S.startsWith(":")){const Oe=S.substring(1);M[K]=h[Oe]}else M[K]=S}),M}createSegmentGroup(d,h,M,S){const K=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Oe,pt)=>{de[pt]=this.createSegmentGroup(d,Oe,M,S)}),new qt(K,de)}createSegments(d,h,M,S){return h.map(K=>K.path.startsWith(":")?this.findPosParam(d,K,S):this.findOrReturn(K,M))}findPosParam(d,h,M){const S=M[h.path.substring(1)];if(!S)throw new Error(`Cannot redirect to '${d}'. Cannot find '${h.path}'.`);return S}findOrReturn(d,h){let M=0;for(const S of h){if(S.path===d.path)return h.splice(M),S;M++}return d}}function U(m){const d={};for(const M of Object.keys(m.children)){const K=U(m.children[M]);(K.segments.length>0||K.hasChildren())&&(d[M]=K)}return function y(m){if(1===m.numberOfChildren&&m.children[P]){const d=m.children[P];return new qt(m.segments.concat(d.segments),d.children)}return m}(new qt(m.segments,d))}class Nt{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class lt{constructor(d,h){this.component=d,this.route=h}}function O(m,d,h){const M=m._root;return F(M,d?d._root:null,h,[M.value])}function l(m,d,h){const M=function g(m){if(!m)return null;for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(d);return(M?M.module.injector:h).get(m)}function F(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=Rn(d);return m.children.forEach(de=>{(function ne(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=m.value,de=d?d.value:null,Oe=h?h.getContext(m.value.outlet):null;if(de&&K.routeConfig===de.routeConfig){const pt=function ge(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!ae(m.url,d.url);case"pathParamsOrQueryParamsChange":return!ae(m.url,d.url)||!V(m.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ai(m,d)||!V(m.queryParams,d.queryParams);default:return!ai(m,d)}}(de,K,K.routeConfig.runGuardsAndResolvers);pt?S.canActivateChecks.push(new Nt(M)):(K.data=de.data,K._resolvedData=de._resolvedData),F(m,d,K.component?Oe?Oe.children:null:h,M,S),pt&&Oe&&Oe.outlet&&Oe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Oe.outlet.component,de))}else de&&Ce(d,Oe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,K.component?Oe?Oe.children:null:h,M,S)})(de,K[de.value.outlet],h,M.concat([de.value]),S),delete K[de.value.outlet]}),L(K,(de,Oe)=>Ce(de,h.getContext(Oe),S)),S}function Ce(m,d,h){const M=Rn(m),S=m.value;L(M,(K,de)=>{Ce(K,S.component?d?d.children.getContext(de):null:d,h)}),h.canDeactivateChecks.push(new lt(S.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,S))}class pn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,K,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=K,this.relativeLinkResolution=de}recognize(){const d=w(this.urlTree.root,[],[],this.config.filter(de=>void 0===de.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,d,P);if(null===h)return null;const M=new Ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},P,this.rootComponentType,null,this.urlTree.root,-1,{}),S=new Nn(M,h),K=new Ot(this.url,S);return this.inheritParamsAndData(K._root),K}inheritParamsAndData(d){const h=d.value,M=Ee(h,this.paramsInheritanceStrategy);h.params=Object.freeze(M.params),h.data=Object.freeze(M.data),d.children.forEach(S=>this.inheritParamsAndData(S))}processSegmentGroup(d,h,M){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,h):this.processSegment(d,h,h.segments,M)}processChildren(d,h){const M=[];for(const K of Object.keys(h.children)){const de=h.children[K],Oe=Wn(d,K),pt=this.processSegmentGroup(Oe,de,K);if(null===pt)return null;M.push(...pt)}const S=fi(M);return function di(m){m.sort((d,h)=>d.value.outlet===P?-1:h.value.outlet===P?1:d.value.outlet.localeCompare(h.value.outlet))}(S),S}processSegment(d,h,M,S){for(const K of d){const de=this.processSegmentAgainstRoute(K,h,M,S);if(null!==de)return de}return Tn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Fn(d,h,M,S))return null;let K,de=[],Oe=[];if("**"===d.path){const Hn=M.length>0?ce(M).parameters:{};K=new Ct(M,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+M.length,zo(d))}else{const Hn=Y(h,d,M);if(!Hn.matched)return null;de=Hn.consumedSegments,Oe=M.slice(Hn.lastChild),K=new Ct(de,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+de.length,zo(d))}const pt=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Oe,pt.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Hn=this.processChildren(pt,Ht);return null===Hn?null:[new Nn(K,Hn)]}if(0===pt.length&&0===wn.length)return[new Nn(K,[])];const tn=yi(d)===S,In=this.processSegment(pt,Ht,wn,tn?P:S);return null===In?null:[new Nn(K,In)]}}function Oi(m){const d=m.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function fi(m){const d=[],h=new Set;for(const M of m){if(!Oi(M)){d.push(M);continue}const S=d.find(K=>M.value.routeConfig===K.value.routeConfig);void 0!==S?(S.children.push(...M.children),h.add(S)):d.push(M)}for(const M of h){const S=fi(M.children);d.push(new Nn(M.value,S))}return d.filter(M=>!h.has(M))}function Yi(m){let d=m;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Li(m){let d=m,h=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,h+=d._segmentIndexShift?d._segmentIndexShift:0;return h-1}function Ho(m){return m.data||{}}function zo(m){return m.resolve||{}}function en(m){return(0,ie.w)(d=>{const h=m(d);return h?(0,oe.D)(h).pipe((0,le.U)(()=>d)):(0,q.of)(d)})}class xn extends class Gn{shouldDetach(d){return!1}store(d,h){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,h){return d.routeConfig===h.routeConfig}}{}const pi=new a.OlP("ROUTES");class Ji{constructor(d,h,M,S){this.injector=d,this.compiler=h,this.onLoadStartListener=M,this.onLoadEndListener=S}load(d,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const S=this.loadModuleFactory(h.loadChildren).pipe((0,le.U)(K=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=K.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,tt.K)(K=>{throw h._loader$=void 0,K}));return h._loader$=new ee.c(S,()=>new ye.xQ).pipe((0,Qe.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ve.zg)(h=>h instanceof a.YKP?(0,q.of)(h):(0,oe.D)(this.compiler.compileModuleAsync(h))))}}class mr{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,h){return d}}function ts(m){throw m}function Ci(m,d,h){return d.parse("/")}function Hi(m,d){return(0,q.of)(null)}const Ni={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ji={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class m{constructor(h,M,S,K,de,Oe,pt){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=K,this.config=pt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=ts,this.malformedUriErrorHandler=Ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hi,afterPreactivation:Hi},this.urlHandlingStrategy=new mr,this.routeReuseStrategy=new xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=de.get(a.h0i),this.console=de.get(a.c2e);const tn=de.get(a.R0b);this.isNgZoneEnabled=tn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(pt),this.currentUrlTree=function $(){return new jn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Oe,In=>this.triggerEvent(new Dt(In)),In=>this.triggerEvent(new Sn(In))),this.routerState=X(this.currentUrlTree,this.rootComponentType),this.transitions=new _.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const M=this.events;return h.pipe((0,Ye.h)(S=>0!==S.id),(0,le.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,ie.w)(S=>{let K=!1,de=!1;return(0,q.of)(S).pipe((0,mt.b)(Oe=>{this.currentNavigation={id:Oe.id,initialUrl:Oe.currentRawUrl,extractedUrl:Oe.extractedUrl,trigger:Oe.source,extras:Oe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ie.w)(Oe=>{const pt=this.browserUrlTree.toString(),Ht=!this.navigated||Oe.extractedUrl.toString()!==pt||pt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Oe.rawUrl))return gr(Oe.source)&&(this.browserUrlTree=Oe.extractedUrl),(0,q.of)(Oe).pipe((0,ie.w)(tn=>{const In=this.transitions.getValue();return M.next(new ot(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),In!==this.transitions.getValue()?B.E:Promise.resolve(tn)}),function at(m,d,h,M){return(0,ie.w)(S=>function D(m,d,h,M,S){return new C(m,d,h,M,S).apply()}(m,d,h,S.extractedUrl,M).pipe((0,le.U)(K=>Object.assign(Object.assign({},S),{urlAfterRedirects:K}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mt.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ve.zg)(K=>function ti(m,d,h,M,S="emptyOnly",K="legacy"){try{const de=new _i(m,d,h,M,S,K).recognize();return null===de?Jn(new pn):(0,q.of)(de)}catch(de){return Jn(de)}}(m,d,K.urlAfterRedirects,h(K.urlAfterRedirects),M,S).pipe((0,le.U)(de=>Object.assign(Object.assign({},K),{targetSnapshot:de}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mt.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Hn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const In=new gn(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);M.next(In)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:In,extractedUrl:Hn,source:co,restoredState:lo,extras:Ui}=Oe,uo=new ot(In,this.serializeUrl(Hn),co,lo);M.next(uo);const So=X(Hn,this.rootComponentType).snapshot;return(0,q.of)(Object.assign(Object.assign({},Oe),{targetSnapshot:So,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Ui),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Oe.rawUrl,Oe.resolve(null),B.E}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.beforePreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,mt.b)(Oe=>{const pt=new Ut(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot);this.triggerEvent(pt)}),(0,le.U)(Oe=>Object.assign(Object.assign({},Oe),{guards:O(Oe.targetSnapshot,Oe.currentSnapshot,this.rootContexts)})),function Ke(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:K,canDeactivateChecks:de}}=h;return 0===de.length&&0===K.length?(0,q.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function ft(m,d,h,M){return(0,oe.D)(m).pipe((0,ve.zg)(S=>function Jt(m,d,h,M,S){const K=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!K||0===K.length)return(0,q.of)(!0);const de=K.map(Oe=>{const pt=l(Oe,d,S);let Ht;if(function wo(m){return m&&oi(m.canDeactivate)}(pt))Ht=E(pt.canDeactivate(m,d,h,M));else{if(!oi(pt))throw new Error("Invalid CanDeactivate guard");Ht=E(pt(m,d,h,M))}return Ht.pipe(te())});return(0,q.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),te(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ve.zg)(Oe=>Oe&&function Zi(m){return"boolean"==typeof m}(Oe)?function Pt(m,d,h,M){return(0,oe.D)(d).pipe((0,ke.b)(S=>(0,R.z)(function Gt(m,d){return null!==m&&d&&d(new cn(m)),(0,q.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new qe(m)),(0,q.of)(!0)}(S.route,M),function Kt(m,d,h){const M=d[d.length-1],K=d.slice(0,d.length-1).reverse().map(de=>function c(m){const d=m.routeConfig?m.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:m,guards:d}:null}(de)).filter(de=>null!==de).map(de=>(0,H.P)(()=>{const Oe=de.guards.map(pt=>{const Ht=l(pt,de.node,h);let wn;if(function Lo(m){return m&&oi(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!oi(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(te())});return(0,q.of)(Oe).pipe(Vi())}));return(0,q.of)(K).pipe(Vi())}(m,S.path,h),function ln(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,q.of)(!0);const S=M.map(K=>(0,H.P)(()=>{const de=l(K,d,h);let Oe;if(function Vo(m){return m&&oi(m.canActivate)}(de))Oe=E(de.canActivate(d,m));else{if(!oi(de))throw new Error("Invalid CanActivate guard");Oe=E(de(d,m))}return Oe.pipe(te())}));return(0,q.of)(S).pipe(Vi())}(m,S.route,h))),te(S=>!0!==S,!0))}(M,K,m,d):(0,q.of)(Oe)),(0,le.U)(Oe=>Object.assign(Object.assign({},h),{guardsResult:Oe})))})}(this.ngModule.injector,Oe=>this.triggerEvent(Oe)),(0,mt.b)(Oe=>{if(Di(Oe.guardsResult)){const Ht=He(`Redirecting to "${this.serializeUrl(Oe.guardsResult)}"`);throw Ht.url=Oe.guardsResult,Ht}const pt=new un(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot,!!Oe.guardsResult);this.triggerEvent(pt)}),(0,Ye.h)(Oe=>!!Oe.guardsResult||(this.restoreHistory(Oe),this.cancelNavigationTransition(Oe,""),!1)),en(Oe=>{if(Oe.guards.canActivateChecks.length)return(0,q.of)(Oe).pipe((0,mt.b)(pt=>{const Ht=new _n(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}),(0,ie.w)(pt=>{let Ht=!1;return(0,q.of)(pt).pipe(function fr(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,q.of)(h);let K=0;return(0,oe.D)(S).pipe((0,ke.b)(de=>function pr(m,d,h,M){return function Rt(m,d,h,M){const S=Object.keys(m);if(0===S.length)return(0,q.of)({});const K={};return(0,oe.D)(S).pipe((0,ve.zg)(de=>function Xt(m,d,h,M){const S=l(m,d,M);return E(S.resolve?S.resolve(d,h):S(d,h))}(m[de],d,h,M).pipe((0,mt.b)(Oe=>{K[de]=Oe}))),_e(1),(0,ve.zg)(()=>Object.keys(K).length===S.length?(0,q.of)(K):B.E))}(m._resolve,m,d,M).pipe((0,le.U)(K=>(m._resolvedData=K,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,mt.b)(()=>K++),_e(1),(0,ve.zg)(de=>K===S.length?(0,q.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mt.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(pt),this.cancelNavigationTransition(pt,"At least one route resolver didn't emit any value."))}}))}),(0,mt.b)(pt=>{const Ht=new Cn(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}))}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.afterPreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,le.U)(Oe=>{const pt=function kn(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Oe.targetSnapshot,Oe.currentRouterState);return Object.assign(Object.assign({},Oe),{targetRouterState:pt})}),(0,mt.b)(Oe=>{this.currentUrlTree=Oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Oe.urlAfterRedirects,Oe.rawUrl),this.routerState=Oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Oe),this.browserUrlTree=Oe.urlAfterRedirects)}),((m,d,h)=>(0,le.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Oe=>this.triggerEvent(Oe)),(0,mt.b)({next(){K=!0},complete(){K=!0}}),(0,dt.x)(()=>{var Oe;K||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id)===S.id&&(this.currentNavigation=null)}),(0,tt.K)(Oe=>{if(de=!0,function Ge(m){return m&&m[me]}(Oe)){const pt=Di(Oe.url);pt||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Zt(S.id,this.serializeUrl(S.extractedUrl),Oe.message);M.next(Ht),pt?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Oe.url,this.rawUrlTree),tn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,tn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const pt=new mn(S.id,this.serializeUrl(S.extractedUrl),Oe);M.next(pt);try{S.resolve(this.errorHandler(Oe))}catch(Ht){S.reject(Ht)}}return B.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const M="popstate"===h.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var S;const K={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const pt=Object.assign({},de);delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(K.state=pt)}const Oe=this.parseUrl(h.url);this.scheduleNavigation(Oe,M,de,K)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Qi(h),this.config=h.map(Pi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,M={}){const{relativeTo:S,queryParams:K,fragment:de,queryParamsHandling:Oe,preserveFragment:pt}=M,Ht=S||this.routerState.root,wn=pt?this.currentUrlTree.fragment:de;let tn=null;switch(Oe){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),K);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=K||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const K=function Zo(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new vo(!0,0,m);let d=0,h=!1;const M=m.reduce((S,K,de)=>{if("object"==typeof K&&null!=K){if(K.outlets){const Oe={};return L(K.outlets,(pt,Ht)=>{Oe[Ht]="string"==typeof pt?pt.split("/"):pt}),[...S,{outlets:Oe}]}if(K.segmentPath)return[...S,K.segmentPath]}return"string"!=typeof K?[...S,K]:0===de?(K.split("/").forEach((Oe,pt)=>{0==pt&&"."===Oe||(0==pt&&""===Oe?h=!0:".."===Oe?d++:""!=Oe&&S.push(Oe))}),S):[...S,K]},[]);return new vo(h,d,M)}(h);if(K.toRoot())return ko(d.root,new qt([],{}),d,M,S);const de=function yo(m,d,h){if(m.isAbsolute)return new Wi(d.root,!0,0);if(-1===h.snapshot._lastPathIndex){const K=h.snapshot._urlSegment;return new Wi(K,K===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,K=h;for(;K>S;){if(K-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Wi(M,!1,S-K)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(K,d,m),Oe=de.processChildren?Co(de.segmentGroup,de.index,K.commands):Ii(de.segmentGroup,de.index,K.commands);return ko(de.segmentGroup,Oe,d,M,S)}(Ht,this.currentUrlTree,h,tn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),K=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(K,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const K=h[S];return null!=K&&(M[S]=K),M},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Et(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,M,S,K,de){var Oe,pt,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,tn=gr(M)&&wn&&!gr(wn.source),In=wn.rawUrl.toString()===h.toString(),Hn=wn.id===(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id);if(tn&&In&&Hn)return Promise.resolve(!0);let lo,Ui,uo;de?(lo=de.resolve,Ui=de.reject,uo=de.promise):uo=new Promise((eo,Bs)=>{lo=eo,Ui=Bs});const So=++this.navigationId;let Ai;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(S=this.location.getState()),Ai=S&&S.\u0275routerPageId?S.\u0275routerPageId:K.replaceUrl||K.skipLocationChange?null!==(pt=this.browserPageId)&&void 0!==pt?pt:0:(null!==(Ht=this.browserPageId)&&void 0!==Ht?Ht:0)+1):Ai=0,this.setTransition({id:So,targetPageId:Ai,source:M,restoredState:S,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:K,resolve:lo,reject:Ui,promise:uo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),uo.catch(eo=>Promise.reject(eo))}setBrowserUrl(h,M){const S=this.urlSerializer.serialize(h),K=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",K):this.location.go(S,"",K)}restoreHistory(h,M=!1){var S,K;if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(S=this.currentNavigation)||void 0===S?void 0:S.finalUrl)||0===de?this.currentUrlTree===(null===(K=this.currentNavigation)||void 0===K?void 0:K.finalUrl)&&0===de&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(de)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,M){const S=new Zt(h.id,this.serializeUrl(h.extractedUrl),M);this.triggerEvent(S),h.resolve(!1)}generateNgRouterState(h,M){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:M}:{navigationId:h}}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function gr(m){return"imperative"!==m}let Xi=(()=>{class m{constructor(h,M,S,K,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=K,this.el=de,this.commands=null,this.onChanges=new ye.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const M=this.renderer,S=this.el.nativeElement;null!==h?M.setAttribute(S,"tabindex",h):M.removeAttribute(S,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},m.\u0275dir=a.lG2({type:m,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,M){1&h&&a.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})(),No=(()=>{class m{constructor(h,M,S){this.router=h,this.route=M,this.locationStrategy=S,this.commands=null,this.href=null,this.onChanges=new ye.xQ,this.subscription=h.events.subscribe(K=>{K instanceof Et&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,M,S,K,de){if(0!==h||M||S||K||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Oe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.Y36(it.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(K){return M.onClick(K.button,K.ctrlKey,K.shiftKey,K.altKey,K.metaKey)}),2&h&&a.uIk("target",M.target)("href",M.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})();function ar(m){return""===m||!!m}class Er{}class Is{preload(d,h){return h().pipe((0,tt.K)(()=>(0,q.of)(null)))}}class Vs{preload(d,h){return(0,q.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,K){this.router=h,this.injector=S,this.preloadingStrategy=K,this.loader=new Ji(S,M,pt=>h.triggerEvent(new Dt(pt)),pt=>h.triggerEvent(new Sn(pt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ye.h)(h=>h instanceof Et),(0,ke.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(a.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,M){const S=[];for(const K of M)if(K.loadChildren&&!K.canLoad&&K._loadedConfig){const de=K._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else K.loadChildren&&!K.canLoad?S.push(this.preloadConfig(h,K)):K.children&&S.push(this.processRoutes(h,K.children));return(0,oe.D)(S).pipe((0,_t.J)(),(0,le.U)(K=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,q.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ve.zg)(K=>(M._loadedConfig=K,this.processRoutes(K.module,K.routes)))))}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(ci),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Er))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})(),ns=(()=>{class m{constructor(h,M,S={}){this.router=h,this.viewportScroller=M,this.options=S,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},S.scrollPositionRestoration=S.scrollPositionRestoration||"disabled",S.anchorScrolling=S.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Et&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof z&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,M){this.router.triggerEvent(new z(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();const Ro=new a.OlP("ROUTER_CONFIGURATION"),zr=new a.OlP("ROUTER_FORROOT_GUARD"),Sr=[it.Ye,{provide:ht,useClass:It},{provide:ci,useFactory:function Tr(m,d,h,M,S,K,de={},Oe,pt){const Ht=new ci(null,m,d,h,M,S,nt(K));return Oe&&(Ht.urlHandlingStrategy=Oe),pt&&(Ht.routeReuseStrategy=pt),function ec(m,d){m.errorHandler&&(d.errorHandler=m.errorHandler),m.malformedUriErrorHandler&&(d.malformedUriErrorHandler=m.malformedUriErrorHandler),m.onSameUrlNavigation&&(d.onSameUrlNavigation=m.onSameUrlNavigation),m.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=m.paramsInheritanceStrategy),m.relativeLinkResolution&&(d.relativeLinkResolution=m.relativeLinkResolution),m.urlUpdateStrategy&&(d.urlUpdateStrategy=m.urlUpdateStrategy),m.canceledNavigationResolution&&(d.canceledNavigationResolution=m.canceledNavigationResolution)}(de,Ht),de.enableTracing&&Ht.events.subscribe(wn=>{var tn,In;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(In=console.groupEnd)||void 0===In||In.call(console)}),Ht},deps:[ht,Ei,it.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class sn{},new a.FiY]]},Ei,{provide:k,useFactory:function Ns(m){return m.routerState.root},deps:[ci]},wa,Vs,Is,{provide:Ro,useValue:{enableTracing:!1}}];function Ls(){return new a.PXZ("Router",ci)}let Hs=(()=>{class m{constructor(h,M){}static forRoot(h,M){return{ngModule:m,providers:[Sr,yr(h),{provide:zr,useFactory:lr,deps:[[ci,new a.FiY,new a.tp0]]},{provide:Ro,useValue:M||{}},{provide:it.S$,useFactory:Da,deps:[it.lw,[new a.tBr(it.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,it.EM,Ro]},{provide:Er,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:Vs},{provide:a.PXZ,multi:!0,useFactory:Ls},[xr,{provide:a.ip1,multi:!0,useFactory:Ea,deps:[xr]},{provide:ur,useFactory:za,deps:[xr]},{provide:a.tb,multi:!0,useExisting:ur}]]}}static forChild(h){return{ngModule:m,providers:[yr(h)]}}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(zr,8),a.LFG(ci,8))},m.\u0275mod=a.oAB({type:m}),m.\u0275inj=a.cJS({}),m})();function cr(m,d,h){return h.scrollOffset&&d.setOffset(h.scrollOffset),new ns(m,d,h)}function Da(m,d,h={}){return h.useHash?new it.Do(m,d):new it.b0(m,d)}function lr(m){return"guarded"}function yr(m){return[{provide:a.deG,multi:!0,useValue:m},{provide:pi,multi:!0,useValue:m}]}let xr=(()=>{class m{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ye.xQ}appInitializer(){return this.injector.get(it.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Oe=>M=Oe),K=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(K.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(K.hooks.afterPreactivation=()=>this.initNavigation?(0,q.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),K.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),K=this.injector.get(ns),de=this.injector.get(ci),Oe=this.injector.get(a.z2F);h===Oe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),K.init(),de.resetRootComponentType(Oe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(a.zs3))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function Ea(m){return m.appInitializer.bind(m)}function za(m){return m.bootstrapListener.bind(m)}const ur=new a.OlP("Router Initializer")},9193:(yt,be,p)=>{p.d(be,{V65:()=>mn,ud1:()=>qt,Hkd:()=>jt,XuQ:()=>Pn,bBn:()=>ei,BOg:()=>st,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>Wt,UKj:()=>kn,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Yn,VWu:()=>qi,rMt:()=>Jt,vEg:()=>mr,RIp:()=>ns,RU0:()=>pi,M8e:()=>gr,ssy:()=>m,Z5F:()=>yr,iUK:()=>Ht,LJh:()=>Ui,NFG:()=>To,WH2:()=>Us,UTl:()=>vc,nrZ:()=>Vr,gvV:()=>Fc,d2H:()=>Tc,LBP:()=>qs,_ry:()=>Ic,eFY:()=>Qc,sZJ:()=>e1,np6:()=>ml,UY$:()=>v8,w1L:()=>Nr,rHg:()=>Il,v6v:()=>v1,cN2:()=>Cs,FsU:()=>Zl,s_U:()=>p6,TSL:()=>P1,uIz:()=>wr,d_$:()=>Dr});const mn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},jt={name:"caret-down",theme:"fill",icon:''},Pn={name:"caret-down",theme:"outline",icon:''},ei={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},Wt={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},st={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},kn={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Yn={name:"dashboard",theme:"outline",icon:''},Jt={name:"double-right",theme:"outline",icon:''},qi={name:"double-left",theme:"outline",icon:''},pi={name:"ellipsis",theme:"outline",icon:''},mr={name:"down",theme:"outline",icon:''},gr={name:"exclamation-circle",theme:"fill",icon:''},ns={name:"edit",theme:"outline",icon:''},yr={name:"eye",theme:"outline",icon:''},m={name:"exclamation-circle",theme:"outline",icon:''},Ht={name:"file",theme:"fill",icon:''},Ui={name:"file",theme:"outline",icon:''},To={name:"filter",theme:"fill",icon:''},Us={name:"form",theme:"outline",icon:''},vc={name:"info-circle",theme:"fill",icon:''},Vr={name:"info-circle",theme:"outline",icon:''},Tc={name:"loading",theme:"outline",icon:''},Fc={name:"left",theme:"outline",icon:''},Ic={name:"menu-unfold",theme:"outline",icon:''},qs={name:"menu-fold",theme:"outline",icon:''},Qc={name:"paper-clip",theme:"outline",icon:''},e1={name:"question-circle",theme:"outline",icon:''},ml={name:"right",theme:"outline",icon:''},v8={name:"rotate-left",theme:"outline",icon:''},Nr={name:"rotate-right",theme:"outline",icon:''},v1={name:"star",theme:"fill",icon:''},Il={name:"search",theme:"outline",icon:''},Cs={name:"swap-right",theme:"outline",icon:''},Zl={name:"up",theme:"outline",icon:''},p6={name:"upload",theme:"outline",icon:''},P1={name:"vertical-align-top",theme:"outline",icon:''},wr={name:"zoom-in",theme:"outline",icon:''},Dr={name:"zoom-out",theme:"outline",icon:''}},8076:(yt,be,p)=>{p.d(be,{J_:()=>oe,c8:()=>W,YK:()=>I,LU:()=>R,Rq:()=>ye,mF:()=>ee,$C:()=>Ye});var a=p(1777);let s=(()=>{class ze{}return ze.SLOW="0.3s",ze.BASE="0.2s",ze.FAST="0.1s",ze})(),G=(()=>{class ze{}return ze.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",ze.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",ze.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",ze.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",ze.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",ze.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",ze.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",ze.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",ze.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",ze.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",ze.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",ze.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",ze.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",ze.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",ze})();const oe=(0,a.X$)("collapseMotion",[(0,a.SB)("expanded",(0,a.oB)({height:"*"})),(0,a.SB)("collapsed",(0,a.oB)({height:0,overflow:"hidden"})),(0,a.SB)("hidden",(0,a.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,a.eR)("expanded => collapsed",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`))]),W=((0,a.X$)("treeCollapseMotion",[(0,a.eR)("* => *",[(0,a.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,a.oB)({overflow:"hidden"}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,a.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,a.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,a.X$)("fadeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:1}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:0}))])]),(0,a.X$)("helpMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"translateY(-5px)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:1,transform:"translateY(0)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"translateY(0)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:0,transform:"translateY(-5px)"}))])])),I=(0,a.X$)("moveUpMotion",[(0,a.eR)("* => enter",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,a.eR)("* => leave",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),R=(0,a.X$)("notificationMotion",[(0,a.SB)("enterRight",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterRight",[(0,a.oB)({opacity:0,transform:"translateX(5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("enterLeft",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterLeft",[(0,a.oB)({opacity:0,transform:"translateX(-5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("leave",(0,a.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,a.eR)("* => leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)("100ms linear")])]),H=`${s.BASE} ${G.EASE_OUT_QUINT}`,B=`${s.BASE} ${G.EASE_IN_QUINT}`,ee=(0,a.X$)("slideMotion",[(0,a.SB)("void",(0,a.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,a.SB)("enter",(0,a.oB)({opacity:1,transform:"scaleY(1)"})),(0,a.eR)("void => *",[(0,a.jt)(H)]),(0,a.eR)("* => void",[(0,a.jt)(B)])]),ye=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Ye=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${G.EASE_OUT_CIRC}`,(0,a.oB)({opacity:1,transform:"scale(1)"}))]),(0,a.eR)("active => void",[(0,a.oB)({opacity:1,transform:"scale(1)"}),(0,a.jt)(`${s.BASE} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scale(0.8)"}))])]);(0,a.X$)("zoomBadgeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_OUT_BACK}`,(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(yt,be,p)=>{p.d(be,{o2:()=>G,M8:()=>oe,uf:()=>s,Bh:()=>a});const a=["success","processing","error","default","warning"],s=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function G(q){return-1!==s.indexOf(q)}function oe(q){return-1!==a.indexOf(q)}},9439:(yt,be,p)=>{p.d(be,{jY:()=>W,oS:()=>I});var a=p(5e3),s=p(8929),G=p(2198),oe=p(7604);const q=new a.OlP("nz-config"),_=function(R){return void 0!==R};let W=(()=>{class R{constructor(B){this.configUpdated$=new s.xQ,this.config=B||{}}getConfig(){return this.config}getConfigForComponent(B){return this.config[B]}getConfigChangeEventForComponent(B){return this.configUpdated$.pipe((0,G.h)(ee=>ee===B),(0,oe.h)(void 0))}set(B,ee){this.config[B]=Object.assign(Object.assign({},this.config[B]),ee),this.configUpdated$.next(B)}}return R.\u0275fac=function(B){return new(B||R)(a.LFG(q,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const ye=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,ye,{configurable:!0,writable:!0,enumerable:!1}),{get(){var Ye,Fe;const ze=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[ye],_e=((null===(Ye=this.propertyAssignCounter)||void 0===Ye?void 0:Ye[B])||0)>1,vt=null===(Fe=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Fe?void 0:Fe[B];return _e&&_(ze)?ze:_(vt)?vt:ze},set(Ye){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)(Ye):this[ye]=Ye},configurable:!0,enumerable:!0}}}},4351:(yt,be,p)=>{p.d(be,{N:()=>a});const a={isTestMode:!1}},6947:(yt,be,p)=>{p.d(be,{Bq:()=>oe,ZK:()=>W});var a=p(5e3),s=p(4351);const G={},oe="[NG-ZORRO]:";const W=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function q(...H){const B=H.reduce((ee,ye)=>ee+ye.toString(),"");return!G[B]&&(G[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(oe,...B),...H)},4832:(yt,be,p)=>{p.d(be,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),G=p(655),oe=p(3191),q=p(6360),_=p(1721);const W="nz-animate-disabled";let I=(()=>{class H{constructor(ee,ye,Ye){this.element=ee,this.renderer=ye,this.animationType=Ye,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,oe.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,W):this.renderer.removeClass(ee,W))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(q.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,G.gn)([(0,_.yF)()],H.prototype,"nzNoAnimation",void 0),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({imports:[[a.ez]]}),H})()},969:(yt,be,p)=>{p.d(be,{T:()=>q,f:()=>G});var a=p(9808),s=p(5e3);let G=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new oe,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(I,R){return!0}recreateView(){this.viewContainer.clear();const I=this.nzStringTemplateOutlet instanceof s.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(I?this.nzStringTemplateOutlet:this.templateRef,I?this.nzStringTemplateOutletContext:this.context)}updateContext(){const R=this.nzStringTemplateOutlet instanceof s.Rgc?this.nzStringTemplateOutletContext:this.context,H=this.embeddedViewRef.context;if(R)for(const B of Object.keys(R))H[B]=R[B]}ngOnChanges(I){const{nzStringTemplateOutletContext:R,nzStringTemplateOutlet:H}=I;H&&(this.context.$implicit=H.currentValue),(()=>{let ye=!1;if(H)if(H.firstChange)ye=!0;else{const _e=H.currentValue instanceof s.Rgc;ye=H.previousValue instanceof s.Rgc||_e}return R&&(ze=>{const _e=Object.keys(ze.previousValue||{}),vt=Object.keys(ze.currentValue||{});if(_e.length===vt.length){for(const Je of vt)if(-1===_e.indexOf(Je))return!0;return!1}return!0})(R)||ye})()?this.recreateView():this.updateContext()}}return _.\u0275fac=function(I){return new(I||_)(s.Y36(s.s_b),s.Y36(s.Rgc))},_.\u0275dir=s.lG2({type:_,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[s.TTD]}),_})();class oe{}let q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(yt,be,p)=>{p.d(be,{Ek:()=>I,hQ:()=>ye,e4:()=>Ye,yW:()=>W,d_:()=>ee});var a=p(655),s=p(2845),G=p(5e3),oe=p(7625),q=p(4090),_=p(1721);const W={top:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},I=[W.top,W.right,W.bottom,W.left];function ee(Fe){for(const ze in W)if(Fe.connectionPair.originX===W[ze].originX&&Fe.connectionPair.originY===W[ze].originY&&Fe.connectionPair.overlayX===W[ze].overlayX&&Fe.connectionPair.overlayY===W[ze].overlayY)return ze}new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let ye=(()=>{class Fe{constructor(_e,vt){this.cdkConnectedOverlay=_e,this.nzDestroyService=vt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,oe.R)(this.nzDestroyService)).subscribe(Je=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(Je)})}updateArrowPosition(_e){const vt=this.getOriginRect(),Je=ee(_e);let zt=0,ut=0;"topLeft"===Je||"bottomLeft"===Je?zt=vt.width/2-14:"topRight"===Je||"bottomRight"===Je?zt=-(vt.width/2-14):"leftTop"===Je||"rightTop"===Je?ut=vt.height/2-10:("leftBottom"===Je||"rightBottom"===Je)&&(ut=-(vt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ut)&&(this.cdkConnectedOverlay.offsetY=ut,this.cdkConnectedOverlay.offsetX=zt,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof s.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const _e=this.getFlexibleConnectedPositionStrategyOrigin();if(_e instanceof G.SBq)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const vt=_e.width||0,Je=_e.height||0;return{top:_e.y,bottom:_e.y+Je,left:_e.x,right:_e.x+vt,height:Je,width:vt}}}return Fe.\u0275fac=function(_e){return new(_e||Fe)(G.Y36(s.pI),G.Y36(q.kn))},Fe.\u0275dir=G.lG2({type:Fe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[G._Bn([q.kn])]}),(0,a.gn)([(0,_.yF)()],Fe.prototype,"nzArrowPointAtCenter",void 0),Fe})(),Ye=(()=>{class Fe{}return Fe.\u0275fac=function(_e){return new(_e||Fe)},Fe.\u0275mod=G.oAB({type:Fe}),Fe.\u0275inj=G.cJS({}),Fe})()},4090:(yt,be,p)=>{p.d(be,{G_:()=>Je,r3:()=>Ie,kn:()=>$e,rI:()=>ee,KV:()=>Ye,WV:()=>zt,ow:()=>ut});var a=p(5e3),s=p(8929),G=p(7138),oe=p(537),q=p(7625),_=p(4850),W=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class Se{constructor(J,fe){this.ngZone=J,this.rendererFactory2=fe,this.resizeSource$=new s.xQ,this.listeners=0,this.disposeHandle=B,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=B}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,G.e)(16),(0,oe.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=B)}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(a.R0b),a.LFG(a.FYo))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ye=new Map;let Ye=(()=>{class Se{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?ye:this._singletonRegistry}registerSingletonWithKey(J,fe){const he=this.singletonRegistry.has(J),te=he?this.singletonRegistry.get(J):this.withNewTarget(fe);he||this.singletonRegistry.set(J,te)}getSingletonWithKey(J){return this.singletonRegistry.has(J)?this.singletonRegistry.get(J).target:null}withNewTarget(J){return{target:J}}}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();var Je=(()=>{return(Se=Je||(Je={})).xxl="xxl",Se.xl="xl",Se.lg="lg",Se.md="md",Se.sm="sm",Se.xs="xs",Je;var Se})();const zt={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ut={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Ie=(()=>{class Se{constructor(J,fe){this.resizeService=J,this.mediaMatcher=fe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(J,fe){if(fe){const he=()=>this.matchMedia(J,!0);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)((te,le)=>te[0]===le[0]),(0,_.U)(te=>te[1]))}{const he=()=>this.matchMedia(J);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)())}}matchMedia(J,fe){let he=Je.md;const te={};return Object.keys(J).map(le=>{const ie=le,Ue=this.mediaMatcher.matchMedia(zt[ie]).matches;te[le]=Ue,Ue&&(he=ie)}),fe?[he,te]:he}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(ee),a.LFG(H.vx))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),$e=(()=>{class Se extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return Se.\u0275fac=function(){let Xe;return function(fe){return(Xe||(Xe=a.n5z(Se)))(fe||Se)}}(),Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac}),Se})()},1721:(yt,be,p)=>{p.d(be,{yF:()=>vt,Rn:()=>zt,cO:()=>_,pW:()=>Ie,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>je,tI:()=>te,D8:()=>x,Sm:()=>ke,sw:()=>ye,WX:()=>Fe,YM:()=>tt,He:()=>Ye});var a=p(3191),s=p(6947),G=p(8929),oe=p(2986);function _(j,me){if(!j||!me||j.length!==me.length)return!1;const He=j.length;for(let Ge=0;GeYe(me,j))}function Ie(j){if(!j.getClientRects().length)return{top:0,left:0};const me=j.getBoundingClientRect(),He=j.ownerDocument.defaultView;return{top:me.top+He.pageYOffset,left:me.left+He.pageXOffset}}function te(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function je(j){return"number"==typeof j&&isFinite(j)}function tt(j,me){return Math.round(j*Math.pow(10,me))/Math.pow(10,me)}function ke(j,me=0){return j.reduce((He,Ge)=>He+Ge,me)}let cn,Mn;"undefined"!=typeof window&&window;const qe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",me="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const He="vertical"===j;if(He&&cn)return cn;if(!He&&Mn)return Mn;const Ge=document.createElement("div");Object.keys(qe).forEach(Me=>{Ge.style[Me]=qe[Me]}),Ge.className=`${me}-hide-scrollbar scroll-div-append-to-body`,He?Ge.style.overflowY="scroll":Ge.style.overflowX="scroll",document.body.appendChild(Ge);let Le=0;return He?(Le=Ge.offsetWidth-Ge.clientWidth,cn=Le):(Le=Ge.offsetHeight-Ge.clientHeight,Mn=Le),document.body.removeChild(Ge),Le}function P(){const j=new G.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,oe.q)(1))}},4147:(yt,be,p)=>{p.d(be,{Vz:()=>ve,SQ:()=>Ue,BL:()=>Qe});var a=p(655),s=p(1159),G=p(2845),oe=p(7429),q=p(9808),_=p(5e3),W=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),ye=p(4832),Ye=p(969),Fe=p(647);const ze=["drawerTemplate"];function _e(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(ot),_.oxw(2).maskClick()}),_.qZA()}if(2&it){const ot=_.oxw(2);_.Q6J("ngStyle",ot.nzMaskStyle)}}function vt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&it){const ot=St.$implicit;_.xp6(1),_.Q6J("nzType",ot)}}function Je(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(ot),_.oxw(3).closeClick()}),_.YNc(1,vt,2,1,"ng-container",17),_.qZA()}if(2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzCloseIcon)}}function zt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",ot.nzTitle,_.oJD)}}function ut(it,St){if(1&it&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzTitle)}}function Ie(it,St){if(1&it&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,Je,2,1,"button",14),_.YNc(3,ut,2,1,"div",15),_.qZA(),_.qZA()),2&it){const ot=_.oxw(2);_.ekj("ant-drawer-header-close-only",!ot.nzTitle),_.xp6(2),_.Q6J("ngIf",ot.nzClosable),_.xp6(1),_.Q6J("ngIf",ot.nzTitle)}}function $e(it,St){}function et(it,St){1&it&&_.GkF(0)}function Se(it,St){if(1&it&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.nzContent)("ngTemplateOutletContext",ot.templateContext)}}function Xe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,Se,2,2,"ng-container",21),_.BQk()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ot.isTemplateRef(ot.nzContent))}}function J(it,St){}function fe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,J,0,0,"ng-template",23),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.contentFromContentChild)}}function he(it,St){if(1&it&&_.YNc(0,fe,2,1,"ng-container",21),2&it){const ot=_.oxw(2);_.Q6J("ngIf",ot.contentFromContentChild&&(ot.isOpen||ot.inAnimation))}}function te(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",ot.nzFooter,_.oJD)}}function le(it,St){if(1&it&&(_.TgZ(0,"div",24),_.YNc(1,te,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzFooter)}}function ie(it,St){if(1&it&&(_.TgZ(0,"div",1),_.YNc(1,_e,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,Ie,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,$e,0,0,"ng-template",7),_.YNc(8,Xe,2,1,"ng-container",8),_.YNc(9,he,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,le,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&it){const ot=_.MAs(10),Et=_.oxw();_.Udp("transform",Et.offsetTransform)("transition",Et.placementChanging?"none":null)("z-index",Et.nzZIndex),_.ekj("ant-drawer-rtl","rtl"===Et.dir)("ant-drawer-open",Et.isOpen)("no-mask",!Et.nzMask)("ant-drawer-top","top"===Et.nzPlacement)("ant-drawer-bottom","bottom"===Et.nzPlacement)("ant-drawer-right","right"===Et.nzPlacement)("ant-drawer-left","left"===Et.nzPlacement),_.Q6J("nzNoAnimation",Et.nzNoAnimation),_.xp6(1),_.Q6J("ngIf",Et.nzMask),_.xp6(1),_.Gre("ant-drawer-content-wrapper ",Et.nzWrapClassName,""),_.Udp("width",Et.width)("height",Et.height)("transform",Et.transform)("transition",Et.placementChanging?"none":null),_.xp6(2),_.Udp("height",Et.isLeftOrRight?"100%":null),_.xp6(1),_.Q6J("ngIf",Et.nzTitle||Et.nzClosable),_.xp6(1),_.Q6J("ngStyle",Et.nzBodyStyle),_.xp6(2),_.Q6J("ngIf",Et.nzContent)("ngIfElse",ot),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let Ue=(()=>{class it{constructor(ot){this.templateRef=ot}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.Rgc))},it.\u0275dir=_.lG2({type:it,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),it})();class je{}let ve=(()=>{class it extends je{constructor(ot,Et,Zt,mn,gn,Ut,un,_n,Cn,Dt,Sn){super(),this.cdr=ot,this.document=Et,this.nzConfigService=Zt,this.renderer=mn,this.overlay=gn,this.injector=Ut,this.changeDetectorRef=un,this.focusTrapFactory=_n,this.viewContainerRef=Cn,this.overlayKeyboardDispatcher=Dt,this.directionality=Sn,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzMaskStyle={},this.nzBodyStyle={},this.nzWidth=256,this.nzHeight=256,this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new _.vpe,this.nzOnClose=new _.vpe,this.nzVisibleChange=new _.vpe,this.destroy$=new W.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new W.xQ,this.nzAfterClose=new W.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(ot){this.isOpen=ot}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,H.WX)(this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,H.WX)(this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(ot){return ot instanceof _.Rgc}ngOnInit(){var ot;null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,I.R)(this.destroy$)).subscribe(Et=>{this.dir=Et,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(ot){const{nzPlacement:Et,nzVisible:Zt}=ot;Zt&&(ot.nzVisible.currentValue?this.open():this.close()),Et&&!Et.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(ot){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(ot),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof _.DyG){const ot=_.zs3.create({parent:this.injector,providers:[{provide:je,useValue:this}]}),Et=new oe.C5(this.nzContent,null,ot),Zt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Zt.instance,Object.assign(Zt.instance,this.nzContentParams),Zt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new oe.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,I.R)(this.destroy$)).subscribe(ot=>{ot.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var ot;null===(ot=this.overlayRef)||void 0===ot||ot.dispose(),this.overlayRef=null}getOverlayConfig(){return new G.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.sBO),_.Y36(q.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(G.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(G.Vs),_.Y36(ee.Is,8))},it.\u0275cmp=_.Xpm({type:it,selectors:[["nz-drawer"]],contentQueries:function(ot,Et,Zt){if(1&ot&&_.Suo(Zt,Ue,7,_.Rgc),2&ot){let mn;_.iGM(mn=_.CRH())&&(Et.contentFromContentChild=mn.first)}},viewQuery:function(ot,Et){if(1&ot&&(_.Gf(ze,7),_.Gf(oe.Pl,5)),2&ot){let Zt;_.iGM(Zt=_.CRH())&&(Et.drawerTemplate=Zt.first),_.iGM(Zt=_.CRH())&&(Et.bodyPortalOutlet=Zt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[_.qOj,_.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(ot,Et){1&ot&&_.YNc(0,ie,12,40,"ng-template",null,0,_.W1O)},directives:[ye.P,q.O5,q.PC,Ye.f,Fe.Ls,oe.Pl,q.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],it.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],it.prototype,"nzDirection",void 0),it})(),mt=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({}),it})(),Qe=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({imports:[[ee.vT,q.ez,G.U8,oe.eL,Fe.PV,Ye.T,ye.g,mt]]}),it})()},4170:(yt,be,p)=>{p.d(be,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>q});var a=p(5e3),s=p(591),G=p(6947),oe={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},DatePicker:{lang:{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"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{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"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},q={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const _=new a.OlP("nz-i18n"),W=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ae,wt){this._change=new s.X(this._locale),this.setLocale(Ae||q),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ae,wt){let At=this._getObjectPath(this._locale,Ae);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ae}setLocale(Ae){this._locale&&this._locale.locale===Ae.locale||(this._locale=Ae,this._change.next(Ae))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ae){this.dateLocale=Ae}getDateLocale(){return this.dateLocale}getLocaleData(Ae,wt){const At=Ae?this._getObjectPath(this._locale,Ae):this._locale;return!At&&!wt&&(0,G.ZK)(`Missing translations for "${Ae}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),At||wt||this._getObjectPath(oe,Ae)||{}}_getObjectPath(Ae,wt){let At=Ae;const Qt=wt.split("."),vn=Qt.length;let Vn=0;for(;At&&Vn{class ${}return $.\u0275fac=function(Ae){return new(Ae||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(yt,be,p)=>{p.d(be,{sV:()=>Wt,Ls:()=>Rn,PV:()=>qn});var a=p(925),s=p(5e3),G=p(655),oe=p(8929),q=p(5254),_=p(7625),W=p(9808);function I(X,se){(function H(X){return"string"==typeof X&&-1!==X.indexOf(".")&&1===parseFloat(X)})(X)&&(X="100%");var k=function B(X){return"string"==typeof X&&-1!==X.indexOf("%")}(X);return X=360===se?X:Math.min(se,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*se),10)/100),Math.abs(X-se)<1e-6?1:X=360===se?(X<0?X%se+se:X%se)/parseFloat(String(se)):X%se/parseFloat(String(se))}function R(X){return Math.min(1,Math.max(0,X))}function ee(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function ye(X){return X<=1?100*Number(X)+"%":X}function Ye(X){return 1===X.length?"0"+X:String(X)}function ze(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=0,Vt=(Ee+st)/2;if(Ee===st)Ot=0,Ct=0;else{var hn=Ee-st;switch(Ot=Vt>.5?hn/(2-Ee-st):hn/(Ee+st),Ee){case X:Ct=(se-k)/hn+(se1&&(k-=1),k<1/6?X+6*k*(se-X):k<.5?se:k<2/3?X+(se-X)*(2/3-k)*6:X}function Je(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=Ee,Vt=Ee-st,hn=0===Ee?0:Vt/Ee;if(Ee===st)Ct=0;else{switch(Ee){case X:Ct=(se-k)/Vt+(se>16,g:(65280&X)>>8,b:255&X}}(se)),this.originalInput=se;var st=function he(X){var se={r:0,g:0,b:0},k=1,Ee=null,st=null,Ct=null,Ot=!1,Vt=!1;return"string"==typeof X&&(X=function ke(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var se=!1;if(fe[X])X=fe[X],se=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=tt.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=tt.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=tt.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=tt.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=tt.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=tt.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=tt.hex8.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),a:Se(k[4]),format:se?"name":"hex8"}:(k=tt.hex6.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),format:se?"name":"hex"}:(k=tt.hex4.exec(X))?{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),a:Se(k[4]+k[4]),format:se?"name":"hex8"}:!!(k=tt.hex3.exec(X))&&{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),format:se?"name":"hex"}}(X)),"object"==typeof X&&(ve(X.r)&&ve(X.g)&&ve(X.b)?(se=function Fe(X,se,k){return{r:255*I(X,255),g:255*I(se,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Vt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ve(X.h)&&ve(X.s)&&ve(X.v)?(Ee=ye(X.s),st=ye(X.v),se=function zt(X,se,k){X=6*I(X,360),se=I(se,100),k=I(k,100);var Ee=Math.floor(X),st=X-Ee,Ct=k*(1-se),Ot=k*(1-st*se),Vt=k*(1-(1-st)*se),hn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Vt,k][hn],g:255*[Vt,k,k,Ot,Ct,Ct][hn],b:255*[Ct,Ct,Vt,k,k,Ot][hn]}}(X.h,Ee,st),Ot=!0,Vt="hsv"):ve(X.h)&&ve(X.s)&&ve(X.l)&&(Ee=ye(X.s),Ct=ye(X.l),se=function vt(X,se,k){var Ee,st,Ct;if(X=I(X,360),se=I(se,100),k=I(k,100),0===se)st=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+se):k+se-k*se,Vt=2*k-Ot;Ee=_e(Vt,Ot,X+1/3),st=_e(Vt,Ot,X),Ct=_e(Vt,Ot,X-1/3)}return{r:255*Ee,g:255*st,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Vt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Vt,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:k}}(se);this.originalInput=se,this.r=st.r,this.g=st.g,this.b=st.b,this.a=st.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:st.format,this.gradientType=k.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=st.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},X.prototype.getLuminance=function(){var se=this.toRgb(),Ct=se.r/255,Ot=se.g/255,Vt=se.b/255;return.2126*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.7152*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))+.0722*(Vt<=.03928?Vt/12.92:Math.pow((Vt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(se){return this.a=ee(se),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var se=Je(this.r,this.g,this.b);return{h:360*se.h,s:se.s,v:se.v,a:this.a}},X.prototype.toHsvString=function(){var se=Je(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+st+"%)":"hsva("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var se=ze(this.r,this.g,this.b);return{h:360*se.h,s:se.s,l:se.l,a:this.a}},X.prototype.toHslString=function(){var se=ze(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+st+"%)":"hsla("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHex=function(se){return void 0===se&&(se=!1),ut(this.r,this.g,this.b,se)},X.prototype.toHexString=function(se){return void 0===se&&(se=!1),"#"+this.toHex(se)},X.prototype.toHex8=function(se){return void 0===se&&(se=!1),function Ie(X,se,k,Ee,st){var Ct=[Ye(Math.round(X).toString(16)),Ye(Math.round(se).toString(16)),Ye(Math.round(k).toString(16)),Ye(et(Ee))];return st&&Ct[0].startsWith(Ct[0].charAt(1))&&Ct[1].startsWith(Ct[1].charAt(1))&&Ct[2].startsWith(Ct[2].charAt(1))&&Ct[3].startsWith(Ct[3].charAt(1))?Ct[0].charAt(0)+Ct[1].charAt(0)+Ct[2].charAt(0)+Ct[3].charAt(0):Ct.join("")}(this.r,this.g,this.b,this.a,se)},X.prototype.toHex8String=function(se){return void 0===se&&(se=!1),"#"+this.toHex8(se)},X.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},X.prototype.toRgbString=function(){var se=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+se+", "+k+", "+Ee+")":"rgba("+se+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var se=function(k){return Math.round(100*I(k,255))+"%"};return{r:se(this.r),g:se(this.g),b:se(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var se=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%)":"rgba("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var se="#"+ut(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(fe);k=0&&(se.startsWith("hex")||"name"===se)?"name"===se&&0===this.a?this.toName():this.toRgbString():("rgb"===se&&(Ee=this.toRgbString()),"prgb"===se&&(Ee=this.toPercentageRgbString()),("hex"===se||"hex6"===se)&&(Ee=this.toHexString()),"hex3"===se&&(Ee=this.toHexString(!0)),"hex4"===se&&(Ee=this.toHex8String(!0)),"hex8"===se&&(Ee=this.toHex8String()),"name"===se&&(Ee=this.toName()),"hsl"===se&&(Ee=this.toHslString()),"hsv"===se&&(Ee=this.toHsvString()),Ee||this.toHexString())},X.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},X.prototype.clone=function(){return new X(this.toString())},X.prototype.lighten=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l+=se/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(se){void 0===se&&(se=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-se/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-se/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-se/100*255))),new X(k)},X.prototype.darken=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l-=se/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(se){return void 0===se&&(se=10),this.mix("white",se)},X.prototype.shade=function(se){return void 0===se&&(se=10),this.mix("black",se)},X.prototype.desaturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s-=se/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s+=se/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(se){var k=this.toHsl(),Ee=(k.h+se)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(se,k){void 0===k&&(k=50);var Ee=this.toRgb(),st=new X(se).toRgb(),Ct=k/100;return new X({r:(st.r-Ee.r)*Ct+Ee.r,g:(st.g-Ee.g)*Ct+Ee.g,b:(st.b-Ee.b)*Ct+Ee.b,a:(st.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(se,k){void 0===se&&(se=6),void 0===k&&(k=30);var Ee=this.toHsl(),st=360/k,Ct=[this];for(Ee.h=(Ee.h-(st*se>>1)+720)%360;--se;)Ee.h=(Ee.h+st)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var se=this.toHsl();return se.h=(se.h+180)%360,new X(se)},X.prototype.monochromatic=function(se){void 0===se&&(se=6);for(var k=this.toHsv(),Ee=k.h,st=k.s,Ct=k.v,Ot=[],Vt=1/se;se--;)Ot.push(new X({h:Ee,s:st,v:Ct})),Ct=(Ct+Vt)%1;return Ot},X.prototype.splitcomplement=function(){var se=this.toHsl(),k=se.h;return[this,new X({h:(k+72)%360,s:se.s,l:se.l}),new X({h:(k+216)%360,s:se.s,l:se.l})]},X.prototype.onBackground=function(se){var k=this.toRgb(),Ee=new X(se).toRgb();return new X({r:Ee.r+(k.r-Ee.r)*k.a,g:Ee.g+(k.g-Ee.g)*k.a,b:Ee.b+(k.b-Ee.b)*k.a})},X.prototype.triad=function(){return this.polyad(3)},X.prototype.tetrad=function(){return this.polyad(4)},X.prototype.polyad=function(se){for(var k=this.toHsl(),Ee=k.h,st=[this],Ct=360/se,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*se:Math.round(X.h)+2*se:k?Math.round(X.h)+2*se:Math.round(X.h)-2*se)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Ut(X,se,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*se:4===se?X.s+.16:X.s+.05*se)>1&&(Ee=1),k&&5===se&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function un(X,se,k){var Ee;return(Ee=k?X.v+.05*se:X.v-.15*se)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new mt(X),st=5;st>0;st-=1){var Ct=Ee.toHsv(),Ot=new mt({h:gn(Ct,st,!0),s:Ut(Ct,st,!0),v:un(Ct,st,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Vt=1;Vt<=4;Vt+=1){var hn=Ee.toHsv(),ni=new mt({h:gn(hn,Vt),s:Ut(hn,Vt),v:un(hn,Vt)}).toHexString();k.push(ni)}return"dark"===se.theme?mn.map(function(ai){var kn=ai.index,bi=ai.opacity;return new mt(se.backgroundColor||"#141414").mix(k[kn],100*bi).toHexString()}):k}var Cn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dt={},Sn={};Object.keys(Cn).forEach(function(X){Dt[X]=_n(Cn[X]),Dt[X].primary=Dt[X][5],Sn[X]=_n(Cn[X],{theme:"dark",backgroundColor:"#141414"}),Sn[X].primary=Sn[X][5]});var V=p(520),Be=p(1086),nt=p(6498),ce=p(4850),Ne=p(2994),L=p(537),E=p(7221),$=p(8117),ue=p(2198),Ae=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function vn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Vn(X){return _n(X)[0]}function An(X,se){switch(se){case"fill":return`${X}-fill`;case"outline":return`${X}-o`;case"twotone":return`${X}-twotone`;case void 0:return X;default:throw new Error(`${At}Theme "${se}" is not a recognized theme!`)}}function Re(X){return"object"==typeof X&&"string"==typeof X.name&&("string"==typeof X.theme||void 0===X.theme)&&"string"==typeof X.icon}function ht(X){const se=X.split(":");switch(se.length){case 1:return[X,""];case 2:return[se[1],se[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Zn(){return new Error(`${At} tag not found.`)}let ei=(()=>{class X{constructor(k,Ee,st,Ct){this._rendererFactory=k,this._handler=Ee,this._document=st,this.sanitizer=Ct,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new oe.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new V.eN(this._handler))}set twoToneColor({primaryColor:k,secondaryColor:Ee}){this._twoToneColorPalette.primaryColor=k,this._twoToneColorPalette.secondaryColor=Ee||Vn(k)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?vn("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=k=>{this._jsonpIconLoad$.next(k)})}changeAssetsSource(k){this._assetsUrlRoot=k.endsWith("/")?k:k+"/"}addIcon(...k){k.forEach(Ee=>{this._svgDefinitions.set(An(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[st,Ct]=ht(k);if(!Ct)throw function jt(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:k,icon:Ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(k,Ee){const st=Re(k)?k:this._svgDefinitions.get(k)||null;return(st?(0,Be.of)(st):this._loadIconDynamically(k)).pipe((0,ce.U)(Ot=>{if(!Ot)throw function fn(X){return new Error(`${At}the icon ${X} does not exist or is not registered.`)}(k);return this._loadSVGFromCacheOrCreateNew(Ot,Ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(k){if(!this._http&&!this._enableJsonpLoading)return(0,Be.of)(function Pn(){return function Qt(X){console.error(`${At} ${X}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ee=this._inProgressFetches.get(k);if(!Ee){const[st,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function we(X){const se=X.split("-"),k=function jn(X){return"o"===X?"outline":X}(se.splice(se.length-1,1)[0]);return{name:se.join("-"),theme:k,icon:""}}(st),hn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${st}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ni=this.sanitizer.sanitize(s.q3G.URL,hn);if(!ni)throw function si(X){return new Error(`${At}The url "${X}" is unsafe.`)}(hn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ni):this._http.get(ni,{responseType:"text"}).pipe((0,ce.U)(kn=>Object.assign(Object.assign({},Ot),{icon:kn})))).pipe((0,Ne.b)(kn=>this.addIcon(kn)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Be.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(st=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Vt(),st.error(function ii(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Vt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,ue.h)(hn=>hn.name===k.name&&hn.theme===k.theme),(0,Ae.q)(1)).subscribe(hn=>{st.next(hn),Vt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let st;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Vn(Ct)||this._twoToneColorPalette.secondaryColor,Vt="twotone"===k.theme?function ri(X,se,k,Ee){return`${An(X,se)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:An(k.name,k.theme),hn=this._svgRenderedDefinitions.get(Vt);return hn?st=hn.icon:(st=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function It(X){return""!==ht(X)[1]}(k.name)?k.icon:function Ve(X){return X.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(k.icon)),"twotone"===k.theme,Ct,Ot)),this._svgRenderedDefinitions.set(Vt,Object.assign(Object.assign({},k),{icon:st}))),function ae(X){return X.cloneNode(!0)}(st)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const st=Ee.querySelector("svg");if(!st)throw Zn;return st}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,st,Ct){if(Ee){const Ot=k.childNodes,Vt=Ot.length;for(let hn=0;hn{class X{constructor(k,Ee,st){this._iconService=k,this._elementRef=Ee,this._renderer=st}ngOnChanges(k){(k.type||k.theme||k.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(k=>{if(this.type){const Ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(st=>{!function Ln(X,se){return X.type===se.type&&X.theme===se.theme&&X.twoToneColor===se.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(st),k(st))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(Re(k))return k;{const[st,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(st)?(Ee&&vn(`'type' ${st} already gets a theme inside so 'theme' ${Ee} would be ignored`),st):An(st,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,st=Ee.childNodes;for(let Ot=st.length-1;Ot>=0;Ot--){const Vt=st[Ot];"svg"===(null===(k=Vt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Vt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(ei),s.Y36(s.SBq),s.Y36(s.Qsj))},X.\u0275dir=s.lG2({type:X,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[s.TTD]}),X})();var Qn=p(1721),Te=p(6947),Ze=p(9193),De=p(9439);const rt=[Ze.V65,Ze.ud1,Ze.bBn,Ze.BOg,Ze.Hkd,Ze.XuQ,Ze.Rfq,Ze.yQU,Ze.U2Q,Ze.UKj,Ze.OYp,Ze.BXH,Ze.eLU,Ze.x0x,Ze.VWu,Ze.rMt,Ze.vEg,Ze.RIp,Ze.RU0,Ze.M8e,Ze.ssy,Ze.Z5F,Ze.iUK,Ze.LJh,Ze.NFG,Ze.UTl,Ze.nrZ,Ze.gvV,Ze.d2H,Ze.eFY,Ze.sZJ,Ze.np6,Ze.w1L,Ze.UY$,Ze.v6v,Ze.rHg,Ze.v6v,Ze.s_U,Ze.TSL,Ze.FsU,Ze.cN2,Ze.uIz,Ze.d_$],Wt=new s.OlP("nz_icons"),Lt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let Un=(()=>{class X extends ei{constructor(k,Ee,st,Ct,Ot,Vt){super(k,Ct,Ot,Ee),this.nzConfigService=st,this.configUpdated$=new oe.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...rt,...Vt||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(k){k.getAttribute("viewBox")||this._renderer.setAttribute(k,"viewBox","0 0 1024 1024"),(!k.getAttribute("width")||!k.getAttribute("height"))&&(this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em")),k.getAttribute("fill")||this._renderer.setAttribute(k,"fill","currentColor")}fetchFromIconfont(k){const{scriptUrl:Ee}=k;if(this._document&&!this.iconfontCache.has(Ee)){const st=this._renderer.createElement("script");this._renderer.setAttribute(st,"src",Ee),this._renderer.setAttribute(st,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,st),this.iconfontCache.add(Ee)}}createIconfontIcon(k){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const k=this.getConfig();this.defaultTheme=k.nzTheme||"outline"}configDefaultTwotoneColor(){const Ee=this.getConfig().nzTwotoneColor||Lt;let st=Lt;Ee&&(Ee.startsWith("#")?st=Ee:(0,Te.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:st}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.FYo),s.LFG(wt.H7),s.LFG(De.jY),s.LFG(V.jN,8),s.LFG(W.K0,8),s.LFG(Wt,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const $n=new s.OlP("nz_icons_patch");let Nn=(()=>{class X{constructor(k,Ee){this.extraIcons=k,this.rootIconService=Ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(k=>this.rootIconService.addIcon(k)),this.patched=!0)}}return X.\u0275fac=function(k){return new(k||X)(s.LFG($n,2),s.LFG(Un))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),Rn=(()=>{class X extends Tt{constructor(k,Ee,st,Ct,Ot,Vt){super(Ct,st,Ot),this.ngZone=k,this.changeDetectorRef=Ee,this.iconService=Ct,this.renderer=Ot,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new oe.xQ,Vt&&Vt.doPatch(),this.el=st.nativeElement}set nzSpin(k){this.spin=k}set nzType(k){this.type=k}set nzTheme(k){this.theme=k}set nzTwotoneColor(k){this.twoToneColor=k}set nzIconfont(k){this.iconfont=k}ngOnChanges(k){const{nzType:Ee,nzTwotoneColor:st,nzSpin:Ct,nzTheme:Ot,nzRotate:Vt}=k;Ee||st||Ct||Ot?this.changeIcon2():Vt?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const k=this.el.children;let Ee=k.length;if(!this.type&&k.length)for(;Ee--;){const st=k[Ee];"svg"===st.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(st)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,q.D)(this._changeIcon()).pipe((0,_.R)(this.destroy$)).subscribe(k=>{this.changeDetectorRef.detectChanges(),k&&(this.setSVGData(k),this.handleSpin(k),this.handleRotate(k))})})}handleSpin(k){this.spin||"loading"===this.type?this.renderer.addClass(k,"anticon-spin"):this.renderer.removeClass(k,"anticon-spin")}handleRotate(k){this.nzRotate?this.renderer.setAttribute(k,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(k,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(k){this.renderer.setAttribute(k,"data-icon",this.type),this.renderer.setAttribute(k,"aria-hidden","true")}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(Un),s.Y36(s.Qsj),s.Y36(Nn,8))},X.\u0275dir=s.lG2({type:X,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(k,Ee){2&k&&s.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[s.qOj,s.TTD]}),(0,G.gn)([(0,Qn.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:Wt,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Nn,{provide:$n,useValue:k}]}}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=s.oAB({type:X}),X.\u0275inj=s.cJS({imports:[[a.ud]]}),X})()},4219:(yt,be,p)=>{p.d(be,{hl:()=>cn,Cc:()=>Dt,wO:()=>Le,YV:()=>Be,r9:()=>qe,ip:()=>nt});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(6787),_=p(6053),W=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),ye=p(7625),Ye=p(1059),Fe=p(7545),ze=p(1721),_e=p(2302),vt=p(226),Je=p(2845),zt=p(6950),ut=p(925),Ie=p(4832),$e=p(9808),et=p(647),Se=p(969),Xe=p(8076);const J=["nz-submenu-title",""];function fe(ce,Ne){if(1&ce&&s._UZ(0,"i",4),2&ce){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function he(ce,Ne){if(1&ce&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ce){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function te(ce,Ne){1&ce&&s._UZ(0,"i",8)}function le(ce,Ne){1&ce&&s._UZ(0,"i",9)}function ie(ce,Ne){if(1&ce&&(s.TgZ(0,"span",5),s.YNc(1,te,1,0,"i",6),s.YNc(2,le,1,0,"i",7),s.qZA()),2&ce){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ue(ce,Ne){1&ce&&s._UZ(0,"i",10)}const je=["*"],tt=["nz-submenu-inline-child",""];function ke(ce,Ne){}const ve=["nz-submenu-none-inline-child",""];function mt(ce,Ne){}const Qe=["nz-submenu",""];function dt(ce,Ne){1&ce&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function _t(ce,Ne){if(1&ce&&s._UZ(0,"div",6),2&ce){const L=s.oxw(),E=s.MAs(7);s.Q6J("mode",L.mode)("nzOpen",L.nzOpen)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("menuClass",L.nzMenuClassName)("templateOutlet",E)}}function it(ce,Ne){if(1&ce){const L=s.EpF();s.TgZ(0,"div",8),s.NdJ("subMenuMouseState",function($){return s.CHM(L),s.oxw(2).setMouseEnterState($)}),s.qZA()}if(2&ce){const L=s.oxw(2),E=s.MAs(7);s.Q6J("theme",L.theme)("mode",L.mode)("nzOpen",L.nzOpen)("position",L.position)("nzDisabled",L.nzDisabled)("isMenuInsideDropDown",L.isMenuInsideDropDown)("templateOutlet",E)("menuClass",L.nzMenuClassName)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)}}function St(ce,Ne){if(1&ce){const L=s.EpF();s.YNc(0,it,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ce){const L=s.oxw(),E=s.MAs(1);s.Q6J("cdkConnectedOverlayPositions",L.overlayPositions)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayWidth",L.triggerWidth)("cdkConnectedOverlayOpen",L.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function ot(ce,Ne){1&ce&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Zt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let cn=(()=>{class ce{constructor(){this.descendantMenuItemClick$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.theme$=new oe.X("light"),this.mode$=new oe.X("vertical"),this.inlineIndent$=new oe.X(24),this.isChildSubMenuOpen$=new oe.X(!1)}onDescendantMenuItemClick(L){this.descendantMenuItemClick$.next(L)}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setMode(L){this.mode$.next(L)}setTheme(L){this.theme$.next(L)}setInlineIndent(L){this.inlineIndent$.next(L)}}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),Mn=(()=>{class ce{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,W.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new oe.X(!1),this.isChildSubMenuOpen$=new oe.X(!1),this.isMouseEnterTitleOrOverlay$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.destroy$=new G.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ue=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ae=(0,q.T)(this.isMouseEnterTitleOrOverlay$,ue);(0,_.aj)([this.isChildSubMenuOpen$,Ae]).pipe((0,W.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,ye.R)(this.destroy$)).pipe((0,ee.x)()).subscribe(At=>{this.setOpenStateWithoutDebounce(At),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(At):this.nzMenuService.isChildSubMenuOpen$.next(At)})}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setOpenStateWithoutDebounce(L){this.isCurrentSubMenuOpen$.next(L)}setMouseEnterTitleOrOverlayState(L){this.isMouseEnterTitleOrOverlay$.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.LFG(ce,12),s.LFG(cn),s.LFG(Dt))},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),qe=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=ue,this.directionality=Ae,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new G.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new G.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Qt&&this.router.events.pipe((0,ye.R)(this.destroy$),(0,R.h)(vn=>vn instanceof _e.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(L){this.nzDisabled?(L.preventDefault(),L.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(L){this.nzSelected=L,this.selected$.next(L)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const L=this.hasActiveLinks();this.nzSelected!==L&&(this.nzSelected=L,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const L=this.isLinkActive(this.router);return this.routerLink&&L(this.routerLink)||this.routerLinkWithHref&&L(this.routerLinkWithHref)||this.listOfRouterLink.some(L)||this.listOfRouterLinkWithHref.some(L)}isLinkActive(L){return E=>L.isActive(E.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var L;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(_e.rH,8),s.Y36(_e.yS,8),s.Y36(_e.F0,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,_e.rH,5),s.Suo($,_e.yS,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfRouterLink=ue),s.iGM(ue=s.CRH())&&(E.listOfRouterLinkWithHref=ue)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(ue){return E.clickMenuItem(ue)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.nzPaddingLeft||E.inlinePaddingLeft,"px")("padding-right","rtl"===E.dir?E.nzPaddingLeft||E.inlinePaddingLeft:null,"px"),s.ekj("ant-dropdown-menu-item",E.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",E.isMenuInsideDropDown&&E.nzSelected)("ant-dropdown-menu-item-danger",E.isMenuInsideDropDown&&E.nzDanger)("ant-dropdown-menu-item-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-item",!E.isMenuInsideDropDown)("ant-menu-item-selected",!E.isMenuInsideDropDown&&E.nzSelected)("ant-menu-item-danger",!E.isMenuInsideDropDown&&E.nzDanger)("ant-menu-item-disabled",!E.isMenuInsideDropDown&&E.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelected",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDanger",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouter",void 0),ce})(),x=(()=>{class ce{constructor(L,E){this.cdr=L,this.directionality=E,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new s.vpe,this.subMenuMouseState=new s.vpe,this.dir="ltr",this.destroy$=new G.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(L,E){1&L&&s.NdJ("click",function(){return E.clickTitle()})("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.paddingLeft,"px")("padding-right","rtl"===E.dir?E.paddingLeft:null,"px"),s.ekj("ant-dropdown-menu-submenu-title",E.isMenuInsideDropDown)("ant-menu-submenu-title",!E.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:J,ngContentSelectors:je,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(L,E){if(1&L&&(s.F$t(),s.YNc(0,fe,1,1,"i",0),s.YNc(1,he,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,ie,3,2,"span",2),s.YNc(4,Ue,1,0,"ng-template",null,3,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("ngIf",E.nzIcon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",E.nzTitle),s.xp6(2),s.Q6J("ngIf",E.isMenuInsideDropDown)("ngIfElse",$)}},directives:[$e.O5,et.Ls,Se.f,$e.RF,$e.n9,$e.ED],encapsulation:2,changeDetection:0}),ce})(),z=(()=>{class ce{constructor(L,E,$){this.elementRef=L,this.renderer=E,this.directionality=$,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:ue}=L;(E||$)&&this.calcMotionState(),ue&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.removeClass(this.elementRef.nativeElement,Ae)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.addClass(this.elementRef.nativeElement,Ae)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(L,E){2&L&&(s.d8E("@collapseMotion",E.expandState),s.ekj("ant-menu-rtl","rtl"===E.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[s.TTD],attrs:tt,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,ke,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[$e.tP],encapsulation:2,data:{animation:[Xe.J_]},changeDetection:0}),ce})(),P=(()=>{class ce{constructor(L){this.directionality=L,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new s.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(L,E){1&L&&s.NdJ("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.d8E("@slideMotion",E.expandState)("@zoomBigMotion",E.expandState),s.ekj("ant-menu-light","light"===E.theme)("ant-menu-dark","dark"===E.theme)("ant-menu-submenu-placement-bottom","horizontal"===E.mode)("ant-menu-submenu-placement-right","vertical"===E.mode&&"right"===E.position)("ant-menu-submenu-placement-left","vertical"===E.mode&&"left"===E.position)("ant-menu-submenu-rtl","rtl"===E.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[s.TTD],attrs:ve,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,mt,0,0,"ng-template",1),s.qZA()),2&L&&(s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-menu",!E.isMenuInsideDropDown)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown)("ant-menu-vertical",!E.isMenuInsideDropDown)("ant-dropdown-menu-sub",E.isMenuInsideDropDown)("ant-menu-sub",!E.isMenuInsideDropDown)("ant-menu-rtl","rtl"===E.dir),s.Q6J("ngClass",E.menuClass),s.xp6(1),s.Q6J("ngTemplateOutlet",E.templateOutlet))},directives:[$e.mk,$e.tP],encapsulation:2,data:{animation:[Xe.$C,Xe.mF]},changeDetection:0}),ce})();const pe=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let me=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=ue,this.isMenuInsideDropDown=Ae,this.directionality=wt,this.noAnimation=At,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new s.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new G.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=pe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(L){this.nzSubmenuService.setOpenStateWithoutDebounce(L)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(L){this.isActive=L,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(L)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(L){const E=(0,zt.d_)(L);"rightTop"===E||"rightBottom"===E||"right"===E?this.position="right":("leftTop"===E||"leftBottom"===E||"left"===E)&&(this.position="left")}ngOnInit(){var L;this.nzMenuService.theme$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=pe),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.isActive=E,E!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=E,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,q.T)(E,...L.map(ue=>ue.selected$));E.pipe((0,Ye.O)(L),(0,Fe.w)(()=>$),(0,Ye.O)(!0),(0,W.U)(()=>L.some(ue=>ue.nzSelected)),(0,ye.R)(this.destroy$)).subscribe(ue=>{this.isSelected=ue,this.cdr.markForCheck()})}ngOnChanges(L){const{nzOpen:E}=L;E&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ut.t4),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(Ie.P,9))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ce,5),s.Suo($,qe,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue),s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue)}},viewQuery:function(L,E){if(1&L&&s.Gf(Je.xu,7,s.SBq),2&L){let $;s.iGM($=s.CRH())&&(E.cdkOverlayOrigin=$.first)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu-submenu",E.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-dropdown-menu-submenu-open",E.isMenuInsideDropDown&&E.nzOpen)("ant-dropdown-menu-submenu-selected",E.isMenuInsideDropDown&&E.isSelected)("ant-dropdown-menu-submenu-vertical",E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-dropdown-menu-submenu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-dropdown-menu-submenu-inline",E.isMenuInsideDropDown&&"inline"===E.mode)("ant-dropdown-menu-submenu-active",E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu",!E.isMenuInsideDropDown)("ant-menu-submenu-disabled",!E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-submenu-open",!E.isMenuInsideDropDown&&E.nzOpen)("ant-menu-submenu-selected",!E.isMenuInsideDropDown&&E.isSelected)("ant-menu-submenu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-menu-submenu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-menu-submenu-inline",!E.isMenuInsideDropDown&&"inline"===E.mode)("ant-menu-submenu-active",!E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu-rtl","rtl"===E.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[s._Bn([Mn]),s.TTD],attrs:Qe,ngContentSelectors:Zt,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(L,E){if(1&L&&(s.F$t(Et),s.TgZ(0,"div",0,1),s.NdJ("subMenuMouseState",function(ue){return E.setMouseEnterState(ue)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,dt,1,0,"ng-content",2),s.qZA(),s.YNc(3,_t,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,ot,1,0,"ng-template",null,5,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("nzIcon",E.nzIcon)("nzTitle",E.nzTitle)("mode",E.mode)("nzDisabled",E.nzDisabled)("isMenuInsideDropDown",E.isMenuInsideDropDown)("paddingLeft",E.nzPaddingLeft||E.inlinePaddingLeft),s.xp6(2),s.Q6J("ngIf",!E.nzTitle),s.xp6(1),s.Q6J("ngIf","inline"===E.mode)("ngIfElse",$)}},directives:[x,z,P,Je.xu,$e.O5,Ie.P,Je.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzOpen",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),ce})();function He(ce,Ne){return ce||Ne}function Ge(ce){return ce||!1}let Le=(()=>{class ce{constructor(L,E,$,ue){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=ue,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new s.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new oe.X(this.nzInlineCollapsed),this.mode$=new oe.X(this.nzMode),this.destroy$=new G.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(L){this.nzInlineCollapsed=L,this.inlineCollapsed$.next(L)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(L=>L.nzOpen),this.listOfNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var L;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.nzClick.emit(E),this.nzSelectable&&!E.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach($=>$.setSelectedState($===E))}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,ye.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:ue,nzMode:Ae}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ue&&this.nzMenuService.setTheme(this.nzTheme),Ae&&(this.mode$.next(this.nzMode),!L.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(wt=>wt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(Dt),s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,qe,5),s.Suo($,me,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue),s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-dropdown-menu-root",E.isMenuInsideDropDown)("ant-dropdown-menu-light",E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-dropdown-menu-dark",E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-dropdown-menu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-dropdown-menu-inline",E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-dropdown-menu-inline-collapsed",E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu",!E.isMenuInsideDropDown)("ant-menu-root",!E.isMenuInsideDropDown)("ant-menu-light",!E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-menu-dark",!E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-menu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-menu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-menu-inline",!E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-menu-inline-collapsed",!E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu-rtl","rtl"===E.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[s._Bn([{provide:Sn,useClass:cn},{provide:cn,useFactory:He,deps:[[new s.tp0,new s.FiY,cn],Sn]},{provide:Dt,useFactory:Ge,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelectable",void 0),ce})(),Be=(()=>{class ce{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275mod=s.oAB({type:ce}),ce.\u0275inj=s.cJS({imports:[[vt.vT,$e.ez,ut.ud,Je.U8,et.PV,Ie.g,Se.T]]}),ce})()},9727:(yt,be,p)=>{p.d(be,{Ay:()=>Xe,Gm:()=>Se,XJ:()=>et,gR:()=>Ue,dD:()=>ie});var a=p(7429),s=p(5e3),G=p(8929),oe=p(2198),q=p(2986),_=p(7625),W=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),ye=p(4090),Ye=p(2845),Fe=p(226);function ze(je,tt){1&je&&s._UZ(0,"i",10)}function _e(je,tt){1&je&&s._UZ(0,"i",11)}function vt(je,tt){1&je&&s._UZ(0,"i",12)}function Je(je,tt){1&je&&s._UZ(0,"i",13)}function zt(je,tt){1&je&&s._UZ(0,"i",14)}function ut(je,tt){if(1&je&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&je){const ke=s.oxw();s.xp6(1),s.Q6J("innerHTML",ke.instance.content,s.oJD)}}function Ie(je,tt){if(1&je){const ke=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(mt){return s.CHM(ke),s.oxw().remove(mt.id,mt.userAction)}),s.qZA()}2&je&&s.Q6J("instance",tt.$implicit)}let $e=0;class et{constructor(tt,ke,ve){this.nzSingletonService=tt,this.overlay=ke,this.injector=ve}remove(tt){this.container&&(tt?this.container.remove(tt):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${$e++}`}withContainer(tt){let ke=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(ke)return ke;const ve=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),mt=new a.C5(tt,null,this.injector),Qe=ve.attach(mt);return ve.overlayElement.style.zIndex="1010",ke||(this.container=ke=Qe.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,ke)),ke}}let Se=(()=>{class je{constructor(ke,ve){this.cdr=ke,this.nzConfigService=ve,this.instances=[],this.destroy$=new G.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(ke){const ve=this.onCreate(ke);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ve],this.readyInstances(),ve}remove(ke,ve=!1){this.instances.some((mt,Qe)=>mt.messageId===ke&&(this.instances.splice(Qe,1),this.instances=[...this.instances],this.onRemove(mt,ve),this.readyInstances(),!0))}removeAll(){this.instances.forEach(ke=>this.onRemove(ke,!1)),this.instances=[],this.readyInstances()}onCreate(ke){return ke.options=this.mergeOptions(ke.options),ke.onClose=new G.xQ,ke}onRemove(ke,ve){ke.onClose.next(ve),ke.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(ke){const{nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe}=this.config;return Object.assign({nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe},ke)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275dir=s.lG2({type:je}),je})(),Xe=(()=>{class je{constructor(ke){this.cdr=ke,this.destroyed=new s.vpe,this.animationStateChanged=new G.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,oe.h)(ke=>"done"===ke.phaseName&&"leave"===ke.toState),(0,q.q)(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(ke=!1){this.userAction=ke,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:ke})},200)):this.destroyed.next({id:this.instance.messageId,userAction:ke})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275dir=s.lG2({type:je}),je})(),J=(()=>{class je extends Xe{constructor(ke){super(ke),this.destroyed=new s.vpe}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[s.qOj],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Qe){return ve.animationStateChanged.next(Qe)})("mouseenter",function(){return ve.onEnter()})("mouseleave",function(){return ve.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,ze,1,0,"i",4),s.YNc(5,_e,1,0,"i",5),s.YNc(6,vt,1,0,"i",6),s.YNc(7,Je,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ut,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&ke&&(s.Q6J("@moveUpMotion",ve.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ve.instance.type),s.xp6(1),s.Q6J("ngSwitch",ve.instance.type),s.xp6(1),s.Q6J("ngSwitchCase","success"),s.xp6(1),s.Q6J("ngSwitchCase","info"),s.xp6(1),s.Q6J("ngSwitchCase","warning"),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","loading"),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),je})();const fe="message",he={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let te=(()=>{class je extends Se{constructor(ke,ve){super(ke,ve),this.dir="ltr";const mt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==mt?void 0:mt.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const ke=this.nzConfigService.getConfigForComponent(fe);if(ke){const{nzDirection:ve}=ke;this.dir=ve||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},he),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[s.qOj],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.YNc(1,Ie,1,1,"nz-message",1),s.qZA()),2&ke&&(s.Udp("top",ve.top),s.ekj("ant-message-rtl","rtl"===ve.dir),s.xp6(1),s.Q6J("ngForOf",ve.instances))},directives:[J,H.sg],encapsulation:2,changeDetection:0}),je})(),le=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({}),je})(),ie=(()=>{class je extends et{constructor(ke,ve,mt){super(ke,ve,mt),this.componentPrefix="message-"}success(ke,ve){return this.createInstance({type:"success",content:ke},ve)}error(ke,ve){return this.createInstance({type:"error",content:ke},ve)}info(ke,ve){return this.createInstance({type:"info",content:ke},ve)}warning(ke,ve){return this.createInstance({type:"warning",content:ke},ve)}loading(ke,ve){return this.createInstance({type:"loading",content:ke},ve)}create(ke,ve,mt){return this.createInstance({type:ke,content:ve},mt)}createInstance(ke,ve){return this.container=this.withContainer(te),this.container.create(Object.assign(Object.assign({},ke),{createdAt:new Date,messageId:this.getInstanceId(),options:ve}))}}return je.\u0275fac=function(ke){return new(ke||je)(s.LFG(ye.KV),s.LFG(Ye.aV),s.LFG(s.zs3))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:le}),je})(),Ue=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({imports:[[Fe.vT,H.ez,Ye.U8,B.PV,ee.T,le]]}),je})()},5278:(yt,be,p)=>{p.d(be,{L8:()=>je,zb:()=>ke});var a=p(5e3),s=p(8076),G=p(9727),oe=p(9808),q=p(647),_=p(969),W=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),ye=p(4090);function Ye(ve,mt){1&ve&&a._UZ(0,"i",16)}function Fe(ve,mt){1&ve&&a._UZ(0,"i",17)}function ze(ve,mt){1&ve&&a._UZ(0,"i",18)}function _e(ve,mt){1&ve&&a._UZ(0,"i",19)}const vt=function(ve){return{"ant-notification-notice-with-icon":ve}};function Je(ve,mt){if(1&ve&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,Ye,1,0,"i",10),a.YNc(5,Fe,1,0,"i",11),a.YNc(6,ze,1,0,"i",12),a.YNc(7,_e,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,vt,"blank"!==Qe.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Qe.instance.type),a.xp6(1),a.Q6J("ngSwitch",Qe.instance.type),a.xp6(1),a.Q6J("ngSwitchCase","success"),a.xp6(1),a.Q6J("ngSwitchCase","info"),a.xp6(1),a.Q6J("ngSwitchCase","warning"),a.xp6(1),a.Q6J("ngSwitchCase","error"),a.xp6(1),a.Q6J("innerHTML",Qe.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Qe.instance.content,a.oJD)}}function zt(ve,mt){}function ut(ve,mt){if(1&ve&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ve){const Qe=mt.$implicit;a.xp6(1),a.Q6J("nzType",Qe)}}function Ie(ve,mt){if(1&ve&&(a.ynx(0),a.YNc(1,ut,2,1,"ng-container",20),a.BQk()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Qe.instance.options?null:Qe.instance.options.nzCloseIcon)}}function $e(ve,mt){1&ve&&a._UZ(0,"i",22)}const et=function(ve,mt){return{$implicit:ve,data:mt}};function Se(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function Xe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function J(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function fe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}let he=(()=>{class ve extends G.Ay{constructor(Qe){super(Qe),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Qe){this.instance.onClick.next(Qe)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],features:[a.qOj],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message",3,"innerHTML"],[1,"ant-notification-notice-description",3,"innerHTML"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(Qe,dt){if(1&Qe&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(it){return dt.animationStateChanged.next(it)})("click",function(it){return dt.onClick(it)})("mouseenter",function(){return dt.onEnter()})("mouseleave",function(){return dt.onLeave()}),a.YNc(1,Je,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return dt.close()}),a.TgZ(4,"span",4),a.YNc(5,Ie,2,1,"ng-container",5),a.YNc(6,$e,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Qe){const _t=a.MAs(7);a.Q6J("ngStyle",(null==dt.instance.options?null:dt.instance.options.nzStyle)||null)("ngClass",(null==dt.instance.options?null:dt.instance.options.nzClass)||"")("@notificationMotion",dt.state),a.xp6(1),a.Q6J("ngIf",!dt.instance.template),a.xp6(1),a.Q6J("ngIf",dt.instance.template)("ngTemplateOutlet",dt.instance.template)("ngTemplateOutletContext",a.WLB(9,et,dt,null==dt.instance.options?null:dt.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==dt.instance.options?null:dt.instance.options.nzCloseIcon)("ngIfElse",_t)}},directives:[oe.PC,oe.mk,oe.O5,oe.RF,oe.n9,q.Ls,oe.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ve})();const te="notification",le={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let ie=(()=>{class ve extends G.Gm{constructor(Qe,dt){super(Qe,dt),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const _t=this.nzConfigService.getConfigForComponent(te);this.dir=(null==_t?void 0:_t.nzDirection)||"ltr"}create(Qe){const dt=this.onCreate(Qe),_t=dt.options.nzKey,it=this.instances.find(St=>St.options.nzKey===Qe.options.nzKey);return _t&&it?this.replaceNotification(it,dt):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,dt]),this.readyInstances(),dt}onCreate(Qe){return Qe.options=this.mergeOptions(Qe.options),Qe.onClose=new R.xQ,Qe.onClick=new R.xQ,Qe}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(te).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Qe=this.nzConfigService.getConfigForComponent(te);if(Qe){const{nzDirection:dt}=Qe;this.dir=dt||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},le),this.config),this.nzConfigService.getConfigForComponent(te)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Qe,dt){Qe.title=dt.title,Qe.content=dt.content,Qe.template=dt.template,Qe.type=dt.type,Qe.options=dt.options}readyInstances(){this.topLeftInstances=this.instances.filter(Qe=>"topLeft"===Qe.options.nzPlacement),this.topRightInstances=this.instances.filter(Qe=>"topRight"===Qe.options.nzPlacement||!Qe.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Qe=>"bottomLeft"===Qe.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Qe=>"bottomRight"===Qe.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Qe){const{nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St}=this.config;return Object.assign({nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St},Qe)}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO),a.Y36(ee.jY))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],features:[a.qOj],decls:8,vars:28,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[3,"instance","placement","destroyed"]],template:function(Qe,dt){1&Qe&&(a.TgZ(0,"div",0),a.YNc(1,Se,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Xe,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,J,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,fe,1,2,"nz-notification",1),a.qZA()),2&Qe&&(a.Udp("top",dt.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topLeftInstances),a.xp6(1),a.Udp("top",dt.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topRightInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomLeftInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomRightInstances))},directives:[he,oe.sg],encapsulation:2,changeDetection:0}),ve})(),Ue=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({}),ve})(),je=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[W.vT,oe.ez,I.U8,q.PV,_.T,Ue]]}),ve})(),tt=0,ke=(()=>{class ve extends G.XJ{constructor(Qe,dt,_t){super(Qe,dt,_t),this.componentPrefix="notification-"}success(Qe,dt,_t){return this.createInstance({type:"success",title:Qe,content:dt},_t)}error(Qe,dt,_t){return this.createInstance({type:"error",title:Qe,content:dt},_t)}info(Qe,dt,_t){return this.createInstance({type:"info",title:Qe,content:dt},_t)}warning(Qe,dt,_t){return this.createInstance({type:"warning",title:Qe,content:dt},_t)}blank(Qe,dt,_t){return this.createInstance({type:"blank",title:Qe,content:dt},_t)}create(Qe,dt,_t,it){return this.createInstance({type:Qe,title:dt,content:_t},it)}template(Qe,dt){return this.createInstance({template:Qe},dt)}generateMessageId(){return`${this.componentPrefix}-${tt++}`}createInstance(Qe,dt){return this.container=this.withContainer(ie),this.container.create(Object.assign(Object.assign({},Qe),{createdAt:new Date,messageId:this.generateMessageId(),options:dt}))}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.LFG(ye.KV),a.LFG(I.aV),a.LFG(a.zs3))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac,providedIn:Ue}),ve})()},7525:(yt,be,p)=>{p.d(be,{W:()=>J,j:()=>fe});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(5647),_=p(8723),W=p(1177);class R{constructor(te){this.durationSelector=te}call(te,le){return le.subscribe(new H(te,this.durationSelector))}}class H extends W.Ds{constructor(te,le){super(te),this.durationSelector=le,this.hasValue=!1}_next(te){try{const le=this.durationSelector.call(this,te);le&&this._tryNext(te,le)}catch(le){this.destination.error(le)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(te,le){let ie=this.durationSubscription;this.value=te,this.hasValue=!0,ie&&(ie.unsubscribe(),this.remove(ie)),ie=(0,W.ft)(le,new W.IY(this)),ie&&!ie.closed&&this.add(this.durationSubscription=ie)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const te=this.value,le=this.durationSubscription;le&&(this.durationSubscription=void 0,le.unsubscribe(),this.remove(le)),this.value=void 0,this.hasValue=!1,super._next(te)}}}var B=p(1059),ee=p(5778),ye=p(7545),Ye=p(7625),Fe=p(9439),ze=p(1721),_e=p(226),vt=p(9808),Je=p(7144);function zt(he,te){1&he&&(s.TgZ(0,"span",3),s._UZ(1,"i",4),s._UZ(2,"i",4),s._UZ(3,"i",4),s._UZ(4,"i",4),s.qZA())}function ut(he,te){}function Ie(he,te){if(1&he&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&he){const le=s.oxw(2);s.xp6(1),s.Oqu(le.nzTip)}}function $e(he,te){if(1&he&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ut,0,0,"ng-template",6),s.YNc(3,Ie,2,1,"div",7),s.qZA(),s.qZA()),2&he){const le=s.oxw(),ie=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===le.dir)("ant-spin-spinning",le.isLoading)("ant-spin-lg","large"===le.nzSize)("ant-spin-sm","small"===le.nzSize)("ant-spin-show-text",le.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",le.nzIndicator||ie),s.xp6(1),s.Q6J("ngIf",le.nzTip)}}function et(he,te){if(1&he&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&he){const le=s.oxw();s.ekj("ant-spin-blur",le.isLoading)}}const Se=["*"];let J=(()=>{class he{constructor(le,ie,Ue){this.nzConfigService=le,this.cdr=ie,this.directionality=Ue,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new G.xQ,this.spinning$=new oe.X(this.nzSpinning),this.delay$=new q.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var le;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,ye.w)(Ue=>0===Ue?this.spinning$:this.spinning$.pipe(function I(he){return te=>te.lift(new R(he))}(je=>(0,_.H)(je?Ue:0)))),(0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.isLoading=Ue,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,Ye.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(le=this.directionality.change)||void 0===le||le.pipe((0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(le){const{nzSpinning:ie,nzDelay:Ue}=le;ie&&this.spinning$.next(this.nzSpinning),Ue&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return he.\u0275fac=function(le){return new(le||he)(s.Y36(Fe.jY),s.Y36(s.sBO),s.Y36(_e.Is,8))},he.\u0275cmp=s.Xpm({type:he,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(le,ie){2&le&&s.ekj("ant-spin-nested-loading",!ie.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:Se,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(le,ie){1&le&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,$e,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&le&&(s.xp6(2),s.Q6J("ngIf",ie.isLoading),s.xp6(1),s.Q6J("ngIf",!ie.nzSimple))},directives:[vt.O5,vt.tP],encapsulation:2}),(0,a.gn)([(0,Fe.oS)()],he.prototype,"nzIndicator",void 0),(0,a.gn)([(0,ze.Rn)()],he.prototype,"nzDelay",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSimple",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSpinning",void 0),he})(),fe=(()=>{class he{}return he.\u0275fac=function(le){return new(le||he)},he.\u0275mod=s.oAB({type:he}),he.\u0275inj=s.cJS({imports:[[_e.vT,vt.ez,Je.Q8]]}),he})()},404:(yt,be,p)=>{p.d(be,{cg:()=>et,SY:()=>Ie});var a=p(655),s=p(5e3),G=p(8076),oe=p(8693),q=p(1721),_=p(8929),W=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),ye=p(2845),Ye=p(9808),Fe=p(969);const ze=["overlay"];function _e(Se,Xe){if(1&Se&&(s.ynx(0),s._uU(1),s.BQk()),2&Se){const J=s.oxw(2);s.xp6(1),s.Oqu(J.nzTitle)}}function vt(Se,Xe){if(1&Se&&(s.TgZ(0,"div",2),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s._UZ(3,"span",5),s.qZA(),s.TgZ(4,"div",6),s.YNc(5,_e,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&Se){const J=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===J.dir),s.Q6J("ngClass",J._classMap)("ngStyle",J.nzOverlayStyle)("@.disabled",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("nzNoAnimation",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",J.nzTitle)("nzStringTemplateOutletContext",J.nzTitleContext)}}let Je=(()=>{class Se{constructor(J,fe,he,te,le,ie){this.elementRef=J,this.hostView=fe,this.resolver=he,this.renderer=te,this.noAnimation=le,this.nzConfigService=ie,this.visibleChange=new s.vpe,this.internalVisible=!1,this.destroy$=new _.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const J=this.placement;return Array.isArray(J)&&J.length>0?J:"string"==typeof J&&J?[J]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(J){const{trigger:fe}=J;fe&&!fe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(J)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var J;null===(J=this.component)||void 0===J||J.show()}hide(){var J;null===(J=this.component)||void 0===J||J.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const J=this.componentRef;this.component=J.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),J.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,W.x)(),(0,I.R)(this.destroy$)).subscribe(fe=>{this.internalVisible=fe,this.visibleChange.emit(fe)})}registerTriggers(){const J=this.elementRef.nativeElement,fe=this.trigger;if(this.removeTriggerListeners(),"hover"===fe){let he;this.triggerDisposables.push(this.renderer.listen(J,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(J,"mouseleave",()=>{var te;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(te=this.component)||void 0===te?void 0:te.overlay.overlayRef)&&!he&&(he=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(he,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(he,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===fe?(this.triggerDisposables.push(this.renderer.listen(J,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(J,"focusout",()=>this.hide()))):"click"===fe&&this.triggerDisposables.push(this.renderer.listen(J,"click",he=>{he.preventDefault(),this.show()}))}updatePropertiesByChanges(J){this.updatePropertiesByKeys(Object.keys(J))}updatePropertiesByKeys(J){var fe;const he=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(J||Object.keys(he).filter(te=>!te.startsWith("directive"))).forEach(te=>{if(he[te]){const[le,ie]=he[te];this.updateComponentValue(le,ie())}}),null===(fe=this.component)||void 0===fe||fe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(J,fe){void 0!==fe&&(this.component[J]=fe)}delayEnterLeave(J,fe,he=-1){this.delayTimer?this.clearTogglingTimer():he>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,fe?this.show():this.hide()},1e3*he):fe&&J?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(J=>J()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P),s.Y36(B.jY))},Se.\u0275dir=s.lG2({type:Se,features:[s.TTD]}),Se})(),zt=(()=>{class Se{constructor(J,fe,he){this.cdr=J,this.directionality=fe,this.noAnimation=he,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new _.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...R.Ek],this.destroy$=new _.xQ}set nzVisible(J){const fe=(0,q.sw)(J);this._visible!==fe&&(this._visible=fe,this.nzVisibleChange.next(fe))}get nzVisible(){return this._visible}set nzTrigger(J){this._trigger=J}get nzTrigger(){return this._trigger}set nzPlacement(J){const fe=J.map(he=>R.yW[he]);this._positions=[...fe,...R.Ek]}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,I.R)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(J){this.preferredPlacement=(0,R.d_)(J),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(J){this.origin=J,this.cdr.markForCheck()}onClickOutside(J){!this.origin.nativeElement.contains(J.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},Se.\u0275dir=s.lG2({type:Se,viewQuery:function(J,fe){if(1&J&&s.Gf(ze,5),2&J){let he;s.iGM(he=s.CRH())&&(fe.overlay=he.first)}}}),Se})(),Ie=(()=>{class Se extends Je{constructor(J,fe,he,te,le){super(J,fe,he,te,le),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent($e)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},Se.\u0275dir=s.lG2({type:Se,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(J,fe){2&J&&s.ekj("ant-tooltip-open",fe.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[s.qOj]}),(0,a.gn)([(0,q.yF)()],Se.prototype,"arrowPointAtCenter",void 0),Se})(),$e=(()=>{class Se extends zt{constructor(J,fe,he){super(J,fe,he),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ut(Se){return!(Se instanceof s.Rgc||""!==Se&&(0,q.DX)(Se))}(this.nzTitle)}updateStyles(){const J=this.nzColor&&(0,oe.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:J},this._contentStyleMap={backgroundColor:this.nzColor&&!J?this.nzColor:null}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[s.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(J,fe){1&J&&(s.YNc(0,vt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(te){return fe.onClickOutside(te)})("detach",function(){return fe.hide()})("positionChange",function(te){return fe.onPositionChange(te)})),2&J&&s.Q6J("cdkConnectedOverlayOrigin",fe.origin)("cdkConnectedOverlayOpen",fe._visible)("cdkConnectedOverlayPositions",fe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",fe.nzArrowPointAtCenter)},directives:[ye.pI,R.hQ,Ye.mk,Ye.PC,H.P,Fe.f],encapsulation:2,data:{animation:[G.$C]},changeDetection:0}),Se})(),et=(()=>{class Se{}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[ee.vT,Ye.ez,ye.U8,Fe.T,R.e4,H.g]]}),Se})()}},yt=>{yt(yt.s=434)}]); \ No newline at end of file +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(yt,be,p)=>{p.d(be,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(yt,be,p)=>{p.d(be,{V:()=>s});var a=p(5e3);let s=(()=>{class G{constructor(){this.impl=localStorage}hasData(q){return null!==this.getData(q)}getData(q){return this.impl.getItem(q)}setData(q,_){this.impl.setItem(q,_)}removeData(q){this.impl.removeItem(q)}clearData(){this.impl.clear()}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})()},2340:(yt,be,p)=>{p.d(be,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(2306)._z.DEBUG,traceRouterScrolling:!1}},434:(yt,be,p)=>{var a=p(2313),s=p(5e3),G=p(4182),oe=p(520),q=p(5113),_=p(6360),W=p(9808);const I=void 0,H=["zh",[["\u4e0a\u5348","\u4e0b\u5348"],I,I],I,[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"]],I,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]],I,[["\u516c\u5143\u524d","\u516c\u5143"],I,I],0,[6,0],["y/M/d","y\u5e74M\u6708d\u65e5",I,"y\u5e74M\u6708d\u65e5EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",I,I,I],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"CNY","\xa5","\u4eba\u6c11\u5e01",{AUD:["AU$","$"],CNY:["\xa5"],ILR:["ILS"],JPY:["JP\xa5","\xa5"],KRW:["\uffe6","\u20a9"],PHP:[I,"\u20b1"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function R(Te){return 5}];var B=p(8514),ee=p(1737),ye=p(3753),Ye=p(1086),Fe=p(1961),ze=p(8929),_e=p(6498),vt=p(7876);const Je=new _e.y(vt.Z);var ut=p(6787),Ie=p(4850),$e=p(2198),et=p(7545),Se=p(2536),J=p(2986),fe=p(2994),he=p(8583);const te="Service workers are disabled or not supported by this browser";class ie{constructor(Ze){if(this.serviceWorker=Ze,Ze){const rt=(0,ye.R)(Ze,"controllerchange").pipe((0,Ie.U)(()=>Ze.controller)),Wt=(0,B.P)(()=>(0,Ye.of)(Ze.controller)),on=(0,Fe.z)(Wt,rt);this.worker=on.pipe((0,$e.h)(Rn=>!!Rn)),this.registration=this.worker.pipe((0,et.w)(()=>Ze.getRegistration()));const Nn=(0,ye.R)(Ze,"message").pipe((0,Ie.U)(Rn=>Rn.data)).pipe((0,$e.h)(Rn=>Rn&&Rn.type)).pipe(function Xe(Te){return Te?(0,Se.O)(()=>new ze.xQ,Te):(0,Se.O)(new ze.xQ)}());Nn.connect(),this.events=Nn}else this.worker=this.events=this.registration=function le(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(te)}postMessage(Ze,De){return this.worker.pipe((0,J.q)(1),(0,fe.b)(rt=>{rt.postMessage(Object.assign({action:Ze},De))})).toPromise().then(()=>{})}postMessageWithOperation(Ze,De,rt){const Wt=this.waitForOperationCompleted(rt),on=this.postMessage(Ze,De);return Promise.all([on,Wt]).then(([,Lt])=>Lt)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(Ze){let De;return De="string"==typeof Ze?rt=>rt.type===Ze:rt=>Ze.includes(rt.type),this.events.pipe((0,$e.h)(De))}nextEventOfType(Ze){return this.eventsOfType(Ze).pipe((0,J.q)(1))}waitForOperationCompleted(Ze){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,$e.h)(De=>De.nonce===Ze),(0,J.q)(1),(0,Ie.U)(De=>{if(void 0!==De.result)return De.result;throw new Error(De.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Ue=(()=>{class Te{constructor(De){if(this.sw=De,this.subscriptionChanges=new ze.xQ,!De.isEnabled)return this.messages=Je,this.notificationClicks=Je,void(this.subscription=Je);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Ie.U)(Wt=>Wt.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Ie.U)(Wt=>Wt.data)),this.pushManager=this.sw.registration.pipe((0,Ie.U)(Wt=>Wt.pushManager));const rt=this.pushManager.pipe((0,et.w)(Wt=>Wt.getSubscription()));this.subscription=(0,ut.T)(rt,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(De){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const rt={userVisibleOnly:!0};let Wt=this.decodeBase64(De.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),on=new Uint8Array(new ArrayBuffer(Wt.length));for(let Lt=0;LtLt.subscribe(rt)),(0,J.q)(1)).toPromise().then(Lt=>(this.subscriptionChanges.next(Lt),Lt))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,J.q)(1),(0,et.w)(rt=>{if(null===rt)throw new Error("Not subscribed to push notifications.");return rt.unsubscribe().then(Wt=>{if(!Wt)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(te))}decodeBase64(De){return atob(De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),je=(()=>{class Te{constructor(De){if(this.sw=De,!De.isEnabled)return this.versionUpdates=Je,this.available=Je,this.activated=Je,void(this.unrecoverable=Je);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,$e.h)(rt=>"VERSION_READY"===rt.type),(0,Ie.U)(rt=>({type:"UPDATE_AVAILABLE",current:rt.currentVersion,available:rt.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:De},De)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(te));const De=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:De},De)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ie))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class tt{}const ke=new s.OlP("NGSW_REGISTER_SCRIPT");function ve(Te,Ze,De,rt){return()=>{if(!(0,W.NF)(rt)||!("serviceWorker"in navigator)||!1===De.enabled)return;let on;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof De.registrationStrategy)on=De.registrationStrategy();else{const[Un,...$n]=(De.registrationStrategy||"registerWhenStable:30000").split(":");switch(Un){case"registerImmediately":on=(0,Ye.of)(null);break;case"registerWithDelay":on=mt(+$n[0]||0);break;case"registerWhenStable":on=$n[0]?(0,ut.T)(Qe(Te),mt(+$n[0])):Qe(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${De.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>on.pipe((0,J.q)(1)).subscribe(()=>navigator.serviceWorker.register(Ze,{scope:De.scope}).catch(Un=>console.error("Service worker registration failed with:",Un))))}}function mt(Te){return(0,Ye.of)(null).pipe((0,he.g)(Te))}function Qe(Te){return Te.get(s.z2F).isStable.pipe((0,$e.h)(De=>De))}function dt(Te,Ze){return new ie((0,W.NF)(Ze)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let _t=(()=>{class Te{static register(De,rt={}){return{ngModule:Te,providers:[{provide:ke,useValue:De},{provide:tt,useValue:rt},{provide:ie,useFactory:dt,deps:[tt,s.Lbi]},{provide:s.ip1,useFactory:ve,deps:[s.zs3,ke,tt,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[Ue,je]}),Te})();var it=p(2306),St=p(4170),ot=p(7625),Et=p(655),Zt=p(4090),mn=p(1721),gn=p(4219),Ut=p(925),un=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,Ze){}function cn(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzZeroTrigger||rt)}}function Mn(Te,Ze){}function qe(Te,Ze){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const De=s.oxw(),rt=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",De.nzTrigger||rt)}}function x(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"right":"left")}}function z(Te,Ze){if(1&Te&&s._UZ(0,"i",5),2&Te){const De=s.oxw(2);s.Q6J("nzType",De.nzCollapsed?"left":"right")}}function P(Te,Ze){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const De=s.oxw();s.Q6J("ngIf",!De.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",De.nzReverseArrow)}}function pe(Te,Ze){1&Te&&s._UZ(0,"i",6)}function j(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(De);const Wt=s.oxw();return Wt.setCollapsed(!Wt.nzCollapsed)}),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("matchBreakPoint",De.matchBreakPoint)("nzCollapsedWidth",De.nzCollapsedWidth)("nzCollapsed",De.nzCollapsed)("nzBreakpoint",De.nzBreakpoint)("nzReverseArrow",De.nzReverseArrow)("nzTrigger",De.nzTrigger)("nzZeroTrigger",De.nzZeroTrigger)("siderWidth",De.widthSetting)}}let me=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-content"]],exportAs:["nzContent"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ge=(()=>{class Te{constructor(De,rt){this.elementRef=De,this.renderer=rt,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(s.SBq),s.Y36(s.Qsj))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-header"]],exportAs:["nzHeader"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Le=(()=>{class Te{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(De,rt){2&De&&(s.Udp("width",rt.isNormalTrigger?rt.siderWidth:null),s.ekj("ant-layout-sider-trigger",rt.isNormalTrigger)("ant-layout-sider-zero-width-trigger",rt.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",rt.isZeroTrigger&&rt.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",rt.isZeroTrigger&&!rt.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[s.TTD],attrs:Dt,decls:6,vars:2,consts:[[4,"ngIf"],["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(De,rt){1&De&&(s.YNc(0,cn,2,1,"ng-container",0),s.YNc(1,qe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,pe,1,0,"ng-template",null,2,s.W1O)),2&De&&(s.Q6J("ngIf",rt.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",rt.isNormalTrigger))},directives:[W.O5,W.tP,un.Ls],encapsulation:2,changeDetection:0}),Te})(),Me=(()=>{class Te{constructor(De,rt,Wt){this.platform=De,this.cdr=rt,this.breakpointService=Wt,this.destroy$=new ze.xQ,this.nzMenuDirective=null,this.nzCollapsedChange=new s.vpe,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,mn.WX)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(De){De!==this.nzCollapsed&&(this.nzCollapsed=De,this.nzCollapsedChange.emit(De),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Zt.ow,!0).pipe((0,ot.R)(this.destroy$)).subscribe(De=>{const rt=this.nzBreakpoint;rt&&(0,mn.ov)().subscribe(()=>{this.matchBreakPoint=!De[rt],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(De){const{nzCollapsed:rt,nzCollapsedWidth:Wt,nzWidth:on}=De;(rt||Wt||on)&&this.updateStyleMap(),rt&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(Ut.t4),s.Y36(s.sBO),s.Y36(Zt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,gn.wO,5),2&De){let on;s.iGM(on=s.CRH())&&(rt.nzMenuDirective=on.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(De,rt){2&De&&(s.Udp("flex",rt.flexSetting)("max-width",rt.widthSetting)("min-width",rt.widthSetting)("width",rt.widthSetting),s.ekj("ant-layout-sider-zero-width",rt.nzCollapsed&&0===rt.nzCollapsedWidth)("ant-layout-sider-light","light"===rt.nzTheme)("ant-layout-sider-dark","dark"===rt.nzTheme)("ant-layout-sider-collapsed",rt.nzCollapsed)("ant-layout-sider-has-trigger",rt.nzCollapsible&&null!==rt.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:"nzReverseArrow",nzCollapsible:"nzCollapsible",nzCollapsed:"nzCollapsed"},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[s.TTD],ngContentSelectors:Cn,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click",4,"ngIf"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth","click"]],template:function(De,rt){1&De&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&De&&(s.xp6(2),s.Q6J("ngIf",rt.nzCollapsible&&null!==rt.nzTrigger))},directives:[Le,W.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,mn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(De){this.directionality=De,this.dir="ltr",this.destroy$=new ze.xQ}ngOnInit(){var De;this.dir=this.directionality.value,null===(De=this.directionality.change)||void 0===De||De.pipe((0,ot.R)(this.destroy$)).subscribe(rt=>{this.dir=rt})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(De,rt,Wt){if(1&De&&s.Suo(Wt,Me,4),2&De){let on;s.iGM(on=s.CRH())&&(rt.listOfNzSiderComponent=on)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(De,rt){2&De&&s.ekj("ant-layout-rtl","rtl"===rt.dir)("ant-layout-has-sider",rt.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(De,rt){1&De&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Be=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,un.PV,q.xu,Ut.ud]]}),Te})();var nt=p(4147),ce=p(404);let Ae=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,W.ez,Ut.ud,un.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),vn=p(2302);let Vn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-page-not-found"]],decls:5,vars:0,consts:[[1,"content"],["src","assets/images/bili-404.png","all","\u80a5\u80a0\u62b1\u6b49\uff0c\u4f60\u8981\u627e\u7684\u9875\u9762\u4e0d\u89c1\u4e86"],[1,"btn-wrapper"],["href","/",1,"goback-btn"]],template:function(De,rt){1&De&&(s.TgZ(0,"div",0),s._UZ(1,"img",1),s.TgZ(2,"div",2),s.TgZ(3,"a",3),s._uU(4,"\u8fd4\u56de\u9996\u9875"),s.qZA(),s.qZA(),s.qZA())},styles:[".content[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:980px}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]{display:inline-block;padding:0 20px;border-radius:4px;font-size:16px;line-height:40px;text-align:center;vertical-align:middle;color:#fff;background:#00a1d6;transition:.3s;cursor:pointer}.content[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%] .goback-btn[_ngcontent-%COMP%]:hover{background:#00b5e5}"],changeDetection:0}),Te})();const ri=[{path:"tasks",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(869)]).then(p.bind(p,5869)).then(Te=>Te.TasksModule)},{path:"settings",loadChildren:()=>Promise.all([p.e(146),p.e(66),p.e(592),p.e(694)]).then(p.bind(p,9694)).then(Te=>Te.SettingsModule),data:{scrollBehavior:p(4704).g.KEEP_POSITION}},{path:"about",loadChildren:()=>Promise.all([p.e(146),p.e(592),p.e(103)]).then(p.bind(p,5103)).then(Te=>Te.AboutModule)},{path:"",pathMatch:"full",redirectTo:"/tasks"},{path:"**",component:Vn}];let jn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[vn.Bz.forRoot(ri,{preloadingStrategy:vn.wm})],vn.Bz]}),Te})();function qt(Te,Ze){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const De=s.MAs(3);s.Q6J("ngTemplateOutlet",De)}}function Re(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Wt){return s.CHM(De),s.oxw().collapsed=Wt}),s.TgZ(1,"a",13),s.TgZ(2,"div",14),s.TgZ(3,"div",15),s._UZ(4,"img",16),s.qZA(),s.TgZ(5,"h1",17),s._uU(6),s.qZA(),s.qZA(),s.qZA(),s.TgZ(7,"nav",18),s.TgZ(8,"ul",19),s.TgZ(9,"li",20),s._UZ(10,"i",21),s.TgZ(11,"span"),s.TgZ(12,"a",22),s._uU(13,"\u4efb\u52a1"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(14,"li",20),s._UZ(15,"i",23),s.TgZ(16,"span"),s.TgZ(17,"a",24),s._uU(18,"\u8bbe\u7f6e"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(19,"li",20),s._UZ(20,"i",25),s.TgZ(21,"span"),s.TgZ(22,"a",26),s._uU(23,"\u5173\u4e8e"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzTheme",De.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",De.collapsed),s.xp6(2),s.ekj("collapsed",De.collapsed),s.xp6(4),s.Oqu(De.title),s.xp6(2),s.Q6J("nzTheme",De.theme)("nzInlineCollapsed",De.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",De.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",De.collapsed?"\u5173\u4e8e":"")}}function we(Te,Ze){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const De=s.oxw();s.Q6J("nzSize","large")("nzSpinning",De.loading)}}function ae(Te,Ze){if(1&Te&&(s.ynx(0),s.TgZ(1,"nz-layout"),s.GkF(2,11),s.qZA(),s.BQk()),2&Te){s.oxw(2);const De=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",De)}}const Ve=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,Ze){if(1&Te){const De=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(De),s.oxw().collapsed=!0}),s.YNc(1,ae,3,1,"ng-container",29),s.qZA()}if(2&Te){const De=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Ve))("nzClosable",!1)("nzVisible",!De.collapsed)}}let It=(()=>{class Te{constructor(De,rt,Wt){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new ze.xQ,De.events.subscribe(on=>{on instanceof vn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):on instanceof vn.m2&&(this.loading=!1)}),Wt.observe(q.u3.XSmall).pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.useDrawer=on.matches,this.useDrawer&&(this.collapsed=!0),rt.markForCheck()}),Wt.observe("(max-width: 1036px)").pipe((0,ot.R)(this.destroyed)).subscribe(on=>{this.collapsed=on.matches,rt.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(De){return new(De||Te)(s.Y36(vn.F0),s.Y36(s.sBO),s.Y36(q.Yg))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["app-root"]],decls:15,vars:4,consts:[[3,"ngTemplateOutlet",4,"ngIf"],["sider",""],[1,"app-header"],[1,"sidebar-trigger"],["nz-icon","",3,"nzType","click"],[1,"icon-actions"],["href","https://github.com/acgnhiki/blrec","title","GitHub","target","_blank",1,"external-link"],["nz-icon","","nzType","github"],[1,"main-content"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose",4,"ngIf"],[3,"ngTemplateOutlet"],["nzCollapsible","",1,"sidebar",3,"nzTheme","nzTrigger","nzCollapsedWidth","nzCollapsed","nzCollapsedChange"],["href","/","title","Home","alt","Home"],[1,"sidebar-header"],[1,"app-logo-container"],["alt","Logo","src","assets/images/logo.png",1,"app-logo"],[1,"app-title"],[1,"sidebar-menu"],["nz-menu","","nzMode","inline",3,"nzTheme","nzInlineCollapsed"],["nz-menu-item","","nzMatchRouter","true","nz-tooltip","","nzTooltipPlacement","right",3,"nzTooltipTitle"],["nz-icon","","nzType","unordered-list","nzTheme","outline"],["routerLink","/tasks"],["nz-icon","","nzType","setting","nzTheme","outline"],["routerLink","/settings"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["routerLink","/about"],[1,"spinner",3,"nzSize","nzSpinning"],["nzWidth","200px","nzPlacement","left",3,"nzBodyStyle","nzClosable","nzVisible","nzOnClose"],[4,"nzDrawerContent"]],template:function(De,rt){1&De&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,Re,24,12,"ng-template",null,1,s.W1O),s.TgZ(4,"nz-layout"),s.TgZ(5,"nz-header",2),s.TgZ(6,"div",3),s.TgZ(7,"i",4),s.NdJ("click",function(){return rt.collapsed=!rt.collapsed}),s.qZA(),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"a",6),s._UZ(10,"i",7),s.qZA(),s.qZA(),s.qZA(),s.TgZ(11,"nz-content",8),s.YNc(12,we,1,2,"nz-spin",9),s._UZ(13,"router-outlet"),s.qZA(),s.qZA(),s.qZA(),s.YNc(14,ht,2,4,"nz-drawer",10)),2&De&&(s.xp6(1),s.Q6J("ngIf",!rt.useDrawer),s.xp6(6),s.Q6J("nzType",rt.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",rt.loading),s.xp6(2),s.Q6J("ngIf",rt.useDrawer))},directives:[V,W.O5,W.tP,Me,gn.wO,gn.r9,ce.SY,un.Ls,vn.yS,Ge,me,wt.W,vn.lC,nt.Vz,nt.SQ],styles:[".spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] > nz-layout[_ngcontent-%COMP%]{height:100%;width:100%}.sidebar[_ngcontent-%COMP%]{--app-header-height: 56px;--app-logo-size: 32px;position:relative;z-index:10;min-height:100vh;border-right:1px solid #f0f0f0}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:var(--app-header-height);overflow:hidden}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%]{flex:none;width:var(--app-header-height);height:var(--app-header-height);display:flex;align-items:center;justify-content:center}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-logo-container[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:var(--app-logo-size);height:var(--app-logo-size)}.sidebar[_ngcontent-%COMP%] .sidebar-header[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{font-family:Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;font-size:1rem;font-weight:600;margin:0;overflow:hidden;white-space:nowrap;text-overflow:clip;opacity:1;transition-property:width,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.645,.045,.355,1)}.sidebar[_ngcontent-%COMP%] .sidebar-header.collapsed[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{opacity:0}.sidebar[_ngcontent-%COMP%] .sidebar-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:100%}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;width:100%;height:var(--app-header-height);margin:0;padding:0;z-index:2;background:#fff;box-shadow:0 1px 4px #00152914}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]{--icon-size: 20px;display:flex;align-items:center;justify-content:center;height:100%;width:var(--app-header-height);cursor:pointer;transition:all .3s,padding 0s}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%]:hover{color:#1890ff}.app-header[_ngcontent-%COMP%] .sidebar-trigger[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%]{--icon-size: 24px;display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:calc((var(--app-header-height) - var(--icon-size)) / 2)}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:#000}.app-header[_ngcontent-%COMP%] .icon-actions[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:var(--icon-size)}.main-content[_ngcontent-%COMP%]{overflow:hidden}"],changeDetection:0}),Te})(),jt=(()=>{class Te{constructor(De){if(De)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[W.ez]]}),Te})();var fn=p(9193);const Pn=[fn.LBP,fn._ry,fn.Ej7,fn.WH2];let si=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:un.sV,useValue:Pn}],imports:[[un.PV],un.PV]}),Te})();var Zn=p(2340),ii=p(7221),En=p(9973),ei=p(2323);const Ln="app-api-key";let Tt=(()=>{class Te{constructor(De){this.storage=De}hasApiKey(){return this.storage.hasData(Ln)}getApiKey(){var De;return null!==(De=this.storage.getData(Ln))&&void 0!==De?De:""}setApiKey(De){this.storage.setData(Ln,De)}removeApiKey(){this.storage.removeData(Ln)}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(ei.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const bn=[{provide:oe.TP,useClass:(()=>{class Te{constructor(De){this.auth=De}intercept(De,rt){return rt.handle(De.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ii.K)(Wt=>{var on;if(401===Wt.status){this.auth.hasApiKey()&&this.auth.removeApiKey();const Lt=null!==(on=window.prompt("API Key:"))&&void 0!==on?on:"";this.auth.setApiKey(Lt)}throw Wt}),(0,En.X)(3))}}return Te.\u0275fac=function(De){return new(De||Te)(s.LFG(Tt))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,W.qS)(H);let Qn=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[It]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},bn],imports:[[a.b2,jn,G.u5,oe.JF,q.xu,_.PW,_t.register("ngsw-worker.js",{enabled:Zn.N.production,registrationStrategy:"registerWhenStable:30000"}),Be,nt.BL,gn.ip,ce.cg,Ae,wt.j,At.gR,Qt.L8,si,it.f9.forRoot({level:Zn.N.ngxLoggerLevel}),jt]]}),Te})();Zn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(Qn).catch(Te=>console.error(Te))},2306:(yt,be,p)=>{p.d(be,{f9:()=>_e,Kf:()=>Xe,_z:()=>Je});var a=p(9808),s=p(5e3),G=p(520),oe=p(2198),q=p(4850),_=p(9973),W=p(5154),I=p(7221),R=p(7545),H={},B={};function ee(te){for(var le=[],ie=0,Ue=0,je=0;je>>=1,le.push(ve?0===Ue?-2147483648:-Ue:Ue),Ue=ie=0}}return le}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(te,le){H[te]=le,B[le]=te});var Fe=p(1086);class ze{}let _e=(()=>{class te{static forRoot(ie){return{ngModule:te,providers:[{provide:ze,useValue:ie||{}}]}}static forChild(){return{ngModule:te}}}return te.\u0275fac=function(ie){return new(ie||te)},te.\u0275mod=s.oAB({type:te}),te.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),te})(),vt=(()=>{class te{constructor(ie){this.httpBackend=ie}logOnServer(ie,Ue,je){const tt=new G.aW("POST",ie,Ue,je||{});return this.httpBackend.handle(tt).pipe((0,oe.h)(ke=>ke instanceof G.Zn),(0,q.U)(ke=>ke.body))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();var Je=(()=>{return(te=Je||(Je={}))[te.TRACE=0]="TRACE",te[te.DEBUG=1]="DEBUG",te[te.INFO=2]="INFO",te[te.LOG=3]="LOG",te[te.WARN=4]="WARN",te[te.ERROR=5]="ERROR",te[te.FATAL=6]="FATAL",te[te.OFF=7]="OFF",Je;var te})();class zt{constructor(le){this.config=le,this._config=le}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(le){this._config=this._clone(le)}getConfig(){return this._clone(this._config)}_clone(le){const ie=new ze;return Object.keys(le).forEach(Ue=>{ie[Ue]=le[Ue]}),ie}}const ut=["purple","teal","gray","gray","red","red","red"];class Ie{static prepareMetaString(le,ie,Ue,je){return`${le} ${ie}${Ue?` [${Ue}:${je}]`:""}`}static getColor(le,ie){switch(le){case Je.TRACE:return this.getColorFromConfig(Je.TRACE,ie);case Je.DEBUG:return this.getColorFromConfig(Je.DEBUG,ie);case Je.INFO:return this.getColorFromConfig(Je.INFO,ie);case Je.LOG:return this.getColorFromConfig(Je.LOG,ie);case Je.WARN:return this.getColorFromConfig(Je.WARN,ie);case Je.ERROR:return this.getColorFromConfig(Je.ERROR,ie);case Je.FATAL:return this.getColorFromConfig(Je.FATAL,ie);default:return}}static getColorFromConfig(le,ie){return ie?ie[le]:ut[le]}static prepareMessage(le){try{"string"!=typeof le&&!(le instanceof Error)&&(le=JSON.stringify(le,null,2))}catch(ie){le='The provided "message" value could not be parsed with JSON.stringify().'}return le}static prepareAdditionalParameters(le){return null==le?null:le.map((ie,Ue)=>{try{return"object"==typeof ie&&JSON.stringify(ie),ie}catch(je){return`The additional[${Ue}] value could not be parsed using JSON.stringify().`}})}}class $e{constructor(le,ie,Ue){this.fileName=le,this.lineNumber=ie,this.columnNumber=Ue}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let et=(()=>{class te{constructor(ie){this.httpBackend=ie,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(ie){const Ue=new Error;try{throw Ue}catch(je){try{let tt=4;return Ue.stack.split("\n")[0].includes(".js:")||(tt+=1),Ue.stack.split("\n")[tt+(ie||0)]}catch(tt){return null}}}static getPosition(ie){const Ue=ie.lastIndexOf("/");let je=ie.indexOf(")");je<0&&(je=void 0);const ke=ie.substring(Ue+1,je).split(":");return 3===ke.length?new $e(ke[0],+ke[1],+ke[2]):new $e("unknown",0,0)}static getTranspileLocation(ie){let Ue=ie.indexOf("(");Ue<0&&(Ue=ie.lastIndexOf("@"),Ue<0&&(Ue=ie.lastIndexOf(" ")));let je=ie.indexOf(")");return je<0&&(je=void 0),ie.substring(Ue+1,je)}static getMapFilePath(ie){const Ue=te.getTranspileLocation(ie),je=Ue.substring(0,Ue.lastIndexOf(":"));return je.substring(0,je.lastIndexOf(":"))+".map"}static getMapping(ie,Ue){let je=0,tt=0,ke=0;const ve=ie.mappings.split(";");for(let mt=0;mt=4&&(Qe+=it[0],je+=it[1],tt+=it[2],ke+=it[3]),mt===Ue.lineNumber){if(Qe===Ue.columnNumber)return new $e(ie.sources[je],tt,ke);if(_t+1===dt.length)return new $e(ie.sources[je],tt,0)}}}return new $e("unknown",0,0)}_getSourceMap(ie,Ue){const je=new G.aW("GET",ie),tt=Ue.toString();if(this.logPositionCache.has(tt))return this.logPositionCache.get(tt);this.sourceMapCache.has(ie)||this.sourceMapCache.set(ie,this.httpBackend.handle(je).pipe((0,oe.h)(ve=>ve instanceof G.Zn),(0,q.U)(ve=>ve.body),(0,_.X)(3),(0,W.d)(1)));const ke=this.sourceMapCache.get(ie).pipe((0,q.U)(ve=>te.getMapping(ve,Ue)),(0,I.K)(()=>(0,Fe.of)(Ue)),(0,W.d)(1));return this.logPositionCache.set(tt,ke),ke}getCallerDetails(ie,Ue){const je=te.getStackLine(Ue);return je?(0,Fe.of)([te.getPosition(je),te.getMapFilePath(je)]).pipe((0,R.w)(([tt,ke])=>ie?this._getSourceMap(ke,tt):(0,Fe.of)(tt))):(0,Fe.of)(new $e("",0,0))}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(G.jN))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(G.jN))},token:te,providedIn:"root"}),te})();const Se=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let Xe=(()=>{class te{constructor(ie,Ue,je,tt,ke){this.mapperService=ie,this.httpService=Ue,this.platformId=tt,this.datePipe=ke,this._withCredentials=!1,this._isIE=(0,a.NF)(tt)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new zt(je),this._logFunc=this._isIE?this._logIE.bind(this):this._logModern.bind(this)}get level(){return this.config.level}get serverLogLevel(){return this.config.serverLogLevel}trace(ie,...Ue){this._log(Je.TRACE,ie,Ue)}debug(ie,...Ue){this._log(Je.DEBUG,ie,Ue)}info(ie,...Ue){this._log(Je.INFO,ie,Ue)}log(ie,...Ue){this._log(Je.LOG,ie,Ue)}warn(ie,...Ue){this._log(Je.WARN,ie,Ue)}error(ie,...Ue){this._log(Je.ERROR,ie,Ue)}fatal(ie,...Ue){this._log(Je.FATAL,ie,Ue)}setCustomHttpHeaders(ie){this._customHttpHeaders=ie}setCustomParams(ie){this._customParams=ie}setWithCredentialsOptionValue(ie){this._withCredentials=ie}registerMonitor(ie){this._loggerMonitor=ie}updateConfig(ie){this.config.updateConfig(ie)}getConfigSnapshot(){return this.config.getConfig()}_logIE(ie,Ue,je,tt){switch(tt=tt||[],ie){case Je.WARN:console.warn(`${Ue} `,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`${Ue} `,je,...tt);break;case Je.INFO:console.info(`${Ue} `,je,...tt);break;default:console.log(`${Ue} `,je,...tt)}}_logModern(ie,Ue,je,tt){const ke=this.getConfigSnapshot().colorScheme,ve=Ie.getColor(ie,ke);switch(tt=tt||[],ie){case Je.WARN:console.warn(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.ERROR:case Je.FATAL:console.error(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.INFO:console.info(`%c${Ue}`,`color:${ve}`,je,...tt);break;case Je.DEBUG:console.debug(`%c${Ue}`,`color:${ve}`,je,...tt);break;default:console.log(`%c${Ue}`,`color:${ve}`,je,...tt)}}_log(ie,Ue,je=[],tt=!0){const ke=this.config.getConfig(),ve=tt&&ke.serverLoggingUrl&&ie>=ke.serverLogLevel,mt=ie>=ke.level;if(!Ue||!ve&&!mt)return;const Qe=Se[ie];Ue="function"==typeof Ue?Ue():Ue;const dt=Ie.prepareAdditionalParameters(je),_t=ke.timestampFormat?this.datePipe.transform(new Date,ke.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(ke.enableSourceMaps,ke.proxiedSteps).subscribe(it=>{const St={message:Ie.prepareMessage(Ue),additional:dt,level:ie,timestamp:_t,fileName:it.fileName,lineNumber:it.lineNumber.toString()};if(this._loggerMonitor&&mt&&this._loggerMonitor.onLog(St),ve){St.message=Ue instanceof Error?Ue.stack:Ue,St.message=Ie.prepareMessage(St.message);const ot=this._customHttpHeaders||new G.WM;ot.set("Content-Type","application/json");const Et={headers:ot,params:this._customParams||new G.LE,responseType:ke.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(ke.serverLoggingUrl,St,Et).subscribe(Zt=>{},Zt=>{this._log(Je.ERROR,`FAILED TO LOG ON SERVER: ${Ue}`,[Zt],!1)})}if(mt&&!ke.disableConsoleLogging){const ot=Ie.prepareMetaString(_t,Qe,ke.disableFileDetails?null:it.fileName,it.lineNumber.toString());return this._logFunc(ie,ot,Ue,je)}})}}return te.\u0275fac=function(ie){return new(ie||te)(s.LFG(et),s.LFG(vt),s.LFG(ze),s.LFG(s.Lbi),s.LFG(a.uU))},te.\u0275prov=(0,s.Yz7)({factory:function(){return new te((0,s.LFG)(et),(0,s.LFG)(vt),(0,s.LFG)(ze),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:te,providedIn:"root"}),te})()},591:(yt,be,p)=>{p.d(be,{X:()=>G});var a=p(8929),s=p(5279);class G extends a.xQ{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const _=super._subscribe(q);return _&&!_.closed&&q.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(q){super.next(this._value=q)}}},9312:(yt,be,p)=>{p.d(be,{P:()=>q});var a=p(8896),s=p(1086),G=p(1737);class q{constructor(W,I,R){this.kind=W,this.value=I,this.error=R,this.hasValue="N"===W}observe(W){switch(this.kind){case"N":return W.next&&W.next(this.value);case"E":return W.error&&W.error(this.error);case"C":return W.complete&&W.complete()}}do(W,I,R){switch(this.kind){case"N":return W&&W(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(W,I,R){return W&&"function"==typeof W.next?this.observe(W):this.do(W,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,G._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(W){return void 0!==W?new q("N",W):q.undefinedValueNotification}static createError(W){return new q("E",void 0,W)}static createComplete(){return q.completeNotification}}q.completeNotification=new q("C"),q.undefinedValueNotification=new q("N",void 0)},6498:(yt,be,p)=>{p.d(be,{y:()=>R});var a=p(3489),G=p(7668),oe=p(3292),_=p(3821),W=p(4843),I=p(2830);let R=(()=>{class B{constructor(ye){this._isScalar=!1,ye&&(this._subscribe=ye)}lift(ye){const Ye=new B;return Ye.source=this,Ye.operator=ye,Ye}subscribe(ye,Ye,Fe){const{operator:ze}=this,_e=function q(B,ee,ye){if(B){if(B instanceof a.L)return B;if(B[G.b])return B[G.b]()}return B||ee||ye?new a.L(B,ee,ye):new a.L(oe.c)}(ye,Ye,Fe);if(_e.add(ze?ze.call(_e,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!_e.syncErrorThrowable?this._subscribe(_e):this._trySubscribe(_e)),I.v.useDeprecatedSynchronousErrorHandling&&_e.syncErrorThrowable&&(_e.syncErrorThrowable=!1,_e.syncErrorThrown))throw _e.syncErrorValue;return _e}_trySubscribe(ye){try{return this._subscribe(ye)}catch(Ye){I.v.useDeprecatedSynchronousErrorHandling&&(ye.syncErrorThrown=!0,ye.syncErrorValue=Ye),function s(B){for(;B;){const{closed:ee,destination:ye,isStopped:Ye}=B;if(ee||Ye)return!1;B=ye&&ye instanceof a.L?ye:null}return!0}(ye)?ye.error(Ye):console.warn(Ye)}}forEach(ye,Ye){return new(Ye=H(Ye))((Fe,ze)=>{let _e;_e=this.subscribe(vt=>{try{ye(vt)}catch(Je){ze(Je),_e&&_e.unsubscribe()}},ze,Fe)})}_subscribe(ye){const{source:Ye}=this;return Ye&&Ye.subscribe(ye)}[_.L](){return this}pipe(...ye){return 0===ye.length?this:(0,W.U)(ye)(this)}toPromise(ye){return new(ye=H(ye))((Ye,Fe)=>{let ze;this.subscribe(_e=>ze=_e,_e=>Fe(_e),()=>Ye(ze))})}}return B.create=ee=>new B(ee),B})();function H(B){if(B||(B=I.v.Promise||Promise),!B)throw new Error("no Promise impl found");return B}},3292:(yt,be,p)=>{p.d(be,{c:()=>G});var a=p(2830),s=p(2782);const G={closed:!0,next(oe){},error(oe){if(a.v.useDeprecatedSynchronousErrorHandling)throw oe;(0,s.z)(oe)},complete(){}}},826:(yt,be,p)=>{p.d(be,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(oe,q,_,W,I){this.destination.next(q)}notifyError(oe,q){this.destination.error(oe)}notifyComplete(oe){this.destination.complete()}}},5647:(yt,be,p)=>{p.d(be,{t:()=>ee});var a=p(8929),s=p(6686),oe=p(2268);const W=new class q extends oe.v{}(class G extends s.o{constructor(Fe,ze){super(Fe,ze),this.scheduler=Fe,this.work=ze}schedule(Fe,ze=0){return ze>0?super.schedule(Fe,ze):(this.delay=ze,this.state=Fe,this.scheduler.flush(this),this)}execute(Fe,ze){return ze>0||this.closed?super.execute(Fe,ze):this._execute(Fe,ze)}requestAsyncId(Fe,ze,_e=0){return null!==_e&&_e>0||null===_e&&this.delay>0?super.requestAsyncId(Fe,ze,_e):Fe.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Fe=Number.POSITIVE_INFINITY,ze=Number.POSITIVE_INFINITY,_e){super(),this.scheduler=_e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Fe<1?1:Fe,this._windowTime=ze<1?1:ze,ze===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Fe){if(!this.isStopped){const ze=this._events;ze.push(Fe),ze.length>this._bufferSize&&ze.shift()}super.next(Fe)}nextTimeWindow(Fe){this.isStopped||(this._events.push(new ye(this._getNow(),Fe)),this._trimBufferThenGetEvents()),super.next(Fe)}_subscribe(Fe){const ze=this._infiniteTimeWindow,_e=ze?this._events:this._trimBufferThenGetEvents(),vt=this.scheduler,Je=_e.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Fe),zt=new B.W(this,Fe)),vt&&Fe.add(Fe=new R.ht(Fe,vt)),ze)for(let ut=0;utze&&(zt=Math.max(zt,Je-ze)),zt>0&&vt.splice(0,zt),vt}}class ye{constructor(Fe,ze){this.time=Fe,this.value=ze}}},8929:(yt,be,p)=>{p.d(be,{Yc:()=>W,xQ:()=>I});var a=p(6498),s=p(3489),G=p(2654),oe=p(5279),q=p(5283),_=p(7668);class W extends s.L{constructor(B){super(B),this.destination=B}}let I=(()=>{class H extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[_.b](){return new W(this)}lift(ee){const ye=new R(this,this);return ye.operator=ee,ye}next(ee){if(this.closed)throw new oe.N;if(!this.isStopped){const{observers:ye}=this,Ye=ye.length,Fe=ye.slice();for(let ze=0;zenew R(B,ee),H})();class R extends I{constructor(B,ee){super(),this.destination=B,this.source=ee}next(B){const{destination:ee}=this;ee&&ee.next&&ee.next(B)}error(B){const{destination:ee}=this;ee&&ee.error&&this.destination.error(B)}complete(){const{destination:B}=this;B&&B.complete&&this.destination.complete()}_subscribe(B){const{source:ee}=this;return ee?this.source.subscribe(B):G.w.EMPTY}}},5283:(yt,be,p)=>{p.d(be,{W:()=>s});var a=p(2654);class s extends a.w{constructor(oe,q){super(),this.subject=oe,this.subscriber=q,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const oe=this.subject,q=oe.observers;if(this.subject=null,!q||0===q.length||oe.isStopped||oe.closed)return;const _=q.indexOf(this.subscriber);-1!==_&&q.splice(_,1)}}},3489:(yt,be,p)=>{p.d(be,{L:()=>W});var a=p(7043),s=p(3292),G=p(2654),oe=p(7668),q=p(2830),_=p(2782);class W extends G.w{constructor(H,B,ee){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!H){this.destination=s.c;break}if("object"==typeof H){H instanceof W?(this.syncErrorThrowable=H.syncErrorThrowable,this.destination=H,H.add(this)):(this.syncErrorThrowable=!0,this.destination=new I(this,H));break}default:this.syncErrorThrowable=!0,this.destination=new I(this,H,B,ee)}}[oe.b](){return this}static create(H,B,ee){const ye=new W(H,B,ee);return ye.syncErrorThrowable=!1,ye}next(H){this.isStopped||this._next(H)}error(H){this.isStopped||(this.isStopped=!0,this._error(H))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(H){this.destination.next(H)}_error(H){this.destination.error(H),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:H}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=H,this}}class I extends W{constructor(H,B,ee,ye){super(),this._parentSubscriber=H;let Ye,Fe=this;(0,a.m)(B)?Ye=B:B&&(Ye=B.next,ee=B.error,ye=B.complete,B!==s.c&&(Fe=Object.create(B),(0,a.m)(Fe.unsubscribe)&&this.add(Fe.unsubscribe.bind(Fe)),Fe.unsubscribe=this.unsubscribe.bind(this))),this._context=Fe,this._next=Ye,this._error=ee,this._complete=ye}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;q.v.useDeprecatedSynchronousErrorHandling&&B.syncErrorThrowable?this.__tryOrSetError(B,this._next,H)&&this.unsubscribe():this.__tryOrUnsub(this._next,H)}}error(H){if(!this.isStopped){const{_parentSubscriber:B}=this,{useDeprecatedSynchronousErrorHandling:ee}=q.v;if(this._error)ee&&B.syncErrorThrowable?(this.__tryOrSetError(B,this._error,H),this.unsubscribe()):(this.__tryOrUnsub(this._error,H),this.unsubscribe());else if(B.syncErrorThrowable)ee?(B.syncErrorValue=H,B.syncErrorThrown=!0):(0,_.z)(H),this.unsubscribe();else{if(this.unsubscribe(),ee)throw H;(0,_.z)(H)}}}complete(){if(!this.isStopped){const{_parentSubscriber:H}=this;if(this._complete){const B=()=>this._complete.call(this._context);q.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?(this.__tryOrSetError(H,B),this.unsubscribe()):(this.__tryOrUnsub(B),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(H,B){try{H.call(this._context,B)}catch(ee){if(this.unsubscribe(),q.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!q.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(ye){return q.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=ye,H.syncErrorThrown=!0,!0):((0,_.z)(ye),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(yt,be,p)=>{p.d(be,{w:()=>_});var a=p(6688),s=p(7830),G=p(7043);const q=(()=>{function I(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((H,B)=>`${B+1}) ${H.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return I.prototype=Object.create(Error.prototype),I})();class _{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._ctorUnsubscribe=!0,this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:H,_ctorUnsubscribe:B,_unsubscribe:ee,_subscriptions:ye}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let Ye=0;YeR.concat(H instanceof q?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(yt,be,p)=>{p.d(be,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(G){if(G){const oe=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+oe.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=G},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(yt,be,p)=>{p.d(be,{IY:()=>oe,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),G=p(9249);class oe extends a.L{constructor(H){super(),this.parent=H}_next(H){this.parent.notifyNext(H)}_error(H){this.parent.notifyError(H),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class _ extends a.L{notifyNext(H){this.destination.next(H)}notifyError(H){this.destination.error(H)}notifyComplete(){this.destination.complete()}}function I(R,H){if(H.closed)return;if(R instanceof s.y)return R.subscribe(H);let B;try{B=(0,G.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(yt,be,p)=>{p.d(be,{c:()=>q,N:()=>_});var a=p(8929),s=p(6498),G=p(2654),oe=p(4327);class q extends s.y{constructor(B,ee){super(),this.source=B,this.subjectFactory=ee,this._refCount=0,this._isComplete=!1}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let B=this._connection;return B||(this._isComplete=!1,B=this._connection=new G.w,B.add(this.source.subscribe(new W(this.getSubject(),this))),B.closed&&(this._connection=null,B=G.w.EMPTY)),B}refCount(){return(0,oe.x)()(this)}}const _=(()=>{const H=q.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}}})();class W extends a.Yc{constructor(B,ee){super(B),this.connectable=ee}_error(B){this._unsubscribe(),super._error(B)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const B=this.connectable;if(B){this.connectable=null;const ee=B._connection;B._refCount=0,B._subject=null,B._connection=null,ee&&ee.unsubscribe()}}}},6053:(yt,be,p)=>{p.d(be,{aj:()=>W});var a=p(2866),s=p(6688),G=p(826),oe=p(448),q=p(3009);const _={};function W(...H){let B,ee;return(0,a.K)(H[H.length-1])&&(ee=H.pop()),"function"==typeof H[H.length-1]&&(B=H.pop()),1===H.length&&(0,s.k)(H[0])&&(H=H[0]),(0,q.n)(H,ee).lift(new I(B))}class I{constructor(B){this.resultSelector=B}call(B,ee){return ee.subscribe(new R(B,this.resultSelector))}}class R extends G.L{constructor(B,ee){super(B),this.resultSelector=ee,this.active=0,this.values=[],this.observables=[]}_next(B){this.values.push(_),this.observables.push(B)}_complete(){const B=this.observables,ee=B.length;if(0===ee)this.destination.complete();else{this.active=ee,this.toRespond=ee;for(let ye=0;ye{p.d(be,{z:()=>G});var a=p(1086),s=p(534);function G(...oe){return(0,s.u)()((0,a.of)(...oe))}},8514:(yt,be,p)=>{p.d(be,{P:()=>oe});var a=p(6498),s=p(5254),G=p(8896);function oe(q){return new a.y(_=>{let W;try{W=q()}catch(R){return void _.error(R)}return(W?(0,s.D)(W):(0,G.c)()).subscribe(_)})}},8896:(yt,be,p)=>{p.d(be,{E:()=>s,c:()=>G});var a=p(6498);const s=new a.y(q=>q.complete());function G(q){return q?function oe(q){return new a.y(_=>q.schedule(()=>_.complete()))}(q):s}},5254:(yt,be,p)=>{p.d(be,{D:()=>Fe});var a=p(6498),s=p(9249),G=p(2654),oe=p(3821),W=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Fe(ze,_e){return _e?function Ye(ze,_e){if(null!=ze){if(function H(ze){return ze&&"function"==typeof ze[oe.L]}(ze))return function q(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>{const zt=ze[oe.L]();Je.add(zt.subscribe({next(ut){Je.add(_e.schedule(()=>vt.next(ut)))},error(ut){Je.add(_e.schedule(()=>vt.error(ut)))},complete(){Je.add(_e.schedule(()=>vt.complete()))}}))})),Je})}(ze,_e);if((0,B.t)(ze))return function _(ze,_e){return new a.y(vt=>{const Je=new G.w;return Je.add(_e.schedule(()=>ze.then(zt=>{Je.add(_e.schedule(()=>{vt.next(zt),Je.add(_e.schedule(()=>vt.complete()))}))},zt=>{Je.add(_e.schedule(()=>vt.error(zt)))}))),Je})}(ze,_e);if((0,ee.z)(ze))return(0,W.r)(ze,_e);if(function ye(ze){return ze&&"function"==typeof ze[I.hZ]}(ze)||"string"==typeof ze)return function R(ze,_e){if(!ze)throw new Error("Iterable cannot be null");return new a.y(vt=>{const Je=new G.w;let zt;return Je.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),Je.add(_e.schedule(()=>{zt=ze[I.hZ](),Je.add(_e.schedule(function(){if(vt.closed)return;let ut,Ie;try{const $e=zt.next();ut=$e.value,Ie=$e.done}catch($e){return void vt.error($e)}Ie?vt.complete():(vt.next(ut),this.schedule())}))})),Je})}(ze,_e)}throw new TypeError((null!==ze&&typeof ze||ze)+" is not observable")}(ze,_e):ze instanceof a.y?ze:new a.y((0,s.s)(ze))}},3009:(yt,be,p)=>{p.d(be,{n:()=>oe});var a=p(6498),s=p(3650),G=p(6454);function oe(q,_){return _?(0,G.r)(q,_):new a.y((0,s.V)(q))}},3753:(yt,be,p)=>{p.d(be,{R:()=>_});var a=p(6498),s=p(6688),G=p(7043),oe=p(4850);function _(B,ee,ye,Ye){return(0,G.m)(ye)&&(Ye=ye,ye=void 0),Ye?_(B,ee,ye).pipe((0,oe.U)(Fe=>(0,s.k)(Fe)?Ye(...Fe):Ye(Fe))):new a.y(Fe=>{W(B,ee,function ze(_e){Fe.next(arguments.length>1?Array.prototype.slice.call(arguments):_e)},Fe,ye)})}function W(B,ee,ye,Ye,Fe){let ze;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const _e=B;B.addEventListener(ee,ye,Fe),ze=()=>_e.removeEventListener(ee,ye,Fe)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const _e=B;B.on(ee,ye),ze=()=>_e.off(ee,ye)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const _e=B;B.addListener(ee,ye),ze=()=>_e.removeListener(ee,ye)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let _e=0,vt=B.length;_e{p.d(be,{T:()=>q});var a=p(6498),s=p(2866),G=p(9146),oe=p(3009);function q(..._){let W=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(W=_.pop())):"number"==typeof R&&(W=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,G.J)(W)((0,oe.n)(_,I))}},1086:(yt,be,p)=>{p.d(be,{of:()=>oe});var a=p(2866),s=p(3009),G=p(6454);function oe(...q){let _=q[q.length-1];return(0,a.K)(_)?(q.pop(),(0,G.r)(q,_)):(0,s.n)(q)}},1737:(yt,be,p)=>{p.d(be,{_:()=>s});var a=p(6498);function s(oe,q){return new a.y(q?_=>q.schedule(G,0,{error:oe,subscriber:_}):_=>_.error(oe))}function G({error:oe,subscriber:q}){q.error(oe)}},8723:(yt,be,p)=>{p.d(be,{H:()=>q});var a=p(6498),s=p(353),G=p(4241),oe=p(2866);function q(W=0,I,R){let H=-1;return(0,G.k)(I)?H=Number(I)<1?1:Number(I):(0,oe.K)(I)&&(R=I),(0,oe.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,G.k)(W)?W:+W-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(W){const{index:I,period:R,subscriber:H}=W;if(H.next(I),!H.closed){if(-1===R)return H.complete();W.index=I+1,this.schedule(W,R)}}},7138:(yt,be,p)=>{p.d(be,{e:()=>W});var a=p(353),s=p(1177);class oe{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new q(R,this.durationSelector))}}class q extends s.Ds{constructor(R,H){super(R),this.durationSelector=H,this.hasValue=!1}_next(R){if(this.value=R,this.hasValue=!0,!this.throttled){let H;try{const{durationSelector:ee}=this;H=ee(R)}catch(ee){return this.destination.error(ee)}const B=(0,s.ft)(H,new s.IY(this));!B||B.closed?this.clearThrottle():this.add(this.throttled=B)}}clearThrottle(){const{value:R,hasValue:H,throttled:B}=this;B&&(this.remove(B),this.throttled=void 0,B.unsubscribe()),H&&(this.value=void 0,this.hasValue=!1,this.destination.next(R))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var _=p(8723);function W(I,R=a.P){return function G(I){return function(H){return H.lift(new oe(I))}}(()=>(0,_.H)(I,R))}},7221:(yt,be,p)=>{p.d(be,{K:()=>s});var a=p(1177);function s(q){return function(W){const I=new G(q),R=W.lift(I);return I.caught=R}}class G{constructor(_){this.selector=_}call(_,W){return W.subscribe(new oe(_,this.selector,this.caught))}}class oe extends a.Ds{constructor(_,W,I){super(_),this.selector=W,this.caught=I}error(_){if(!this.isStopped){let W;try{W=this.selector(_,this.caught)}catch(H){return void super.error(H)}this._unsubscribeAndRecycle();const I=new a.IY(this);this.add(I);const R=(0,a.ft)(W,I);R!==I&&this.add(R)}}}},534:(yt,be,p)=>{p.d(be,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(yt,be,p)=>{p.d(be,{b:()=>s});var a=p(1709);function s(G,oe){return(0,a.zg)(G,oe,1)}},13:(yt,be,p)=>{p.d(be,{b:()=>G});var a=p(3489),s=p(353);function G(W,I=s.P){return R=>R.lift(new oe(W,I))}class oe{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new q(I,this.dueTime,this.scheduler))}}class q extends a.L{constructor(I,R,H){super(I),this.dueTime=R,this.scheduler=H,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(I){this.clearDebounce(),this.lastValue=I,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:I}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(I)}}clearDebounce(){const I=this.debouncedSubscription;null!==I&&(this.remove(I),I.unsubscribe(),this.debouncedSubscription=null)}}function _(W){W.debouncedNext()}},8583:(yt,be,p)=>{p.d(be,{g:()=>q});var a=p(353),G=p(3489),oe=p(9312);function q(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return ye=>ye.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new W(H,this.delay,this.scheduler))}}class W extends G.L{constructor(H,B,ee){super(H),this.delay=B,this.scheduler=ee,this.queue=[],this.active=!1,this.errored=!1}static dispatch(H){const B=H.source,ee=B.queue,ye=H.scheduler,Ye=H.destination;for(;ee.length>0&&ee[0].time-ye.now()<=0;)ee.shift().notification.observe(Ye);if(ee.length>0){const Fe=Math.max(0,ee[0].time-ye.now());this.schedule(H,Fe)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(W.dispatch,this.delay,{source:this,destination:this.destination,scheduler:H}))}scheduleNotification(H){if(!0===this.errored)return;const B=this.scheduler,ee=new I(B.now()+this.delay,H);this.queue.push(ee),!1===this.active&&this._schedule(B)}_next(H){this.scheduleNotification(oe.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(oe.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(q,_){return W=>W.lift(new G(q,_))}class G{constructor(_,W){this.compare=_,this.keySelector=W}call(_,W){return W.subscribe(new oe(_,this.compare,this.keySelector))}}class oe extends a.L{constructor(_,W,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof W&&(this.compare=W)}compare(_,W){return _===W}_next(_){let W;try{const{keySelector:R}=this;W=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,W)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=W,this.destination.next(_))}}},2198:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q,_){return function(I){return I.lift(new G(q,_))}}class G{constructor(_,W){this.predicate=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.predicate,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.predicate=W,this.thisArg=I,this.count=0}_next(_){let W;try{W=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}W&&this.destination.next(_)}}},537:(yt,be,p)=>{p.d(be,{x:()=>G});var a=p(3489),s=p(2654);function G(_){return W=>W.lift(new oe(_))}class oe{constructor(W){this.callback=W}call(W,I){return I.subscribe(new q(W,this.callback))}}class q extends a.L{constructor(W,I){super(W),this.add(new s.w(I))}}},4850:(yt,be,p)=>{p.d(be,{U:()=>s});var a=p(3489);function s(q,_){return function(I){if("function"!=typeof q)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new G(q,_))}}class G{constructor(_,W){this.project=_,this.thisArg=W}call(_,W){return W.subscribe(new oe(_,this.project,this.thisArg))}}class oe extends a.L{constructor(_,W,I){super(_),this.project=W,this.count=0,this.thisArg=I||this}_next(_){let W;try{W=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(W)}}},7604:(yt,be,p)=>{p.d(be,{h:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.value=_}call(_,W){return W.subscribe(new oe(_,this.value))}}class oe extends a.L{constructor(_,W){super(_),this.value=W}_next(_){this.destination.next(this.value)}}},9146:(yt,be,p)=>{p.d(be,{J:()=>G});var a=p(1709),s=p(5379);function G(oe=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,oe)}},1709:(yt,be,p)=>{p.d(be,{zg:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(oe((ee,ye)=>(0,s.D)(I(ee,ye)).pipe((0,a.U)((Ye,Fe)=>R(ee,Ye,ye,Fe))),H)):("number"==typeof R&&(H=R),B=>B.lift(new q(I,H)))}class q{constructor(R,H=Number.POSITIVE_INFINITY){this.project=R,this.concurrent=H}call(R,H){return H.subscribe(new _(R,this.project,this.concurrent))}}class _ extends G.Ds{constructor(R,H,B=Number.POSITIVE_INFINITY){super(R),this.project=H,this.concurrent=B,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(R){this.active0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2536:(yt,be,p)=>{p.d(be,{O:()=>s});var a=p(1762);function s(oe,q){return function(W){let I;if(I="function"==typeof oe?oe:function(){return oe},"function"==typeof q)return W.lift(new G(I,q));const R=Object.create(W,a.N);return R.source=W,R.subjectFactory=I,R}}class G{constructor(q,_){this.subjectFactory=q,this.selector=_}call(q,_){const{selector:W}=this,I=this.subjectFactory(),R=W(I).subscribe(q);return R.add(_.subscribe(I)),R}}},7770:(yt,be,p)=>{p.d(be,{QV:()=>G,ht:()=>q});var a=p(3489),s=p(9312);function G(W,I=0){return function(H){return H.lift(new oe(W,I))}}class oe{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new q(I,this.scheduler,this.delay))}}class q extends a.L{constructor(I,R,H=0){super(I),this.scheduler=R,this.delay=H}static dispatch(I){const{notification:R,destination:H}=I;R.observe(H),this.unsubscribe()}scheduleMessage(I){this.destination.add(this.scheduler.schedule(q.dispatch,this.delay,new _(I,this.destination)))}_next(I){this.scheduleMessage(s.P.createNext(I))}_error(I){this.scheduleMessage(s.P.createError(I)),this.unsubscribe()}_complete(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()}}class _{constructor(I,R){this.notification=I,this.destination=R}}},4327:(yt,be,p)=>{p.d(be,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new G(_))}}class G{constructor(_){this.connectable=_}call(_,W){const{connectable:I}=this;I._refCount++;const R=new oe(_,I),H=W.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class oe extends a.L{constructor(_,W){super(_),this.connectable=W}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const W=_._refCount;if(W<=0)return void(this.connection=null);if(_._refCount=W-1,W>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},9973:(yt,be,p)=>{p.d(be,{X:()=>s});var a=p(3489);function s(q=-1){return _=>_.lift(new G(q,_))}class G{constructor(_,W){this.count=_,this.source=W}call(_,W){return W.subscribe(new oe(_,this.count,this.source))}}class oe extends a.L{constructor(_,W,I){super(_),this.count=W,this.source=I}error(_){if(!this.isStopped){const{source:W,count:I}=this;if(0===I)return super.error(_);I>-1&&(this.count=I-1),W.subscribe(this._unsubscribeAndRecycle())}}}},2014:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(3489);function s(q,_){let W=!1;return arguments.length>=2&&(W=!0),function(R){return R.lift(new G(q,_,W))}}class G{constructor(_,W,I=!1){this.accumulator=_,this.seed=W,this.hasSeed=I}call(_,W){return W.subscribe(new oe(_,this.accumulator,this.seed,this.hasSeed))}}class oe extends a.L{constructor(_,W,I,R){super(_),this.accumulator=W,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(_){this.hasSeed=!0,this._seed=_}_next(_){if(this.hasSeed)return this._tryNext(_);this.seed=_,this.destination.next(_)}_tryNext(_){const W=this.index++;let I;try{I=this.accumulator(this.seed,_,W)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(yt,be,p)=>{p.d(be,{B:()=>q});var a=p(2536),s=p(4327),G=p(8929);function oe(){return new G.xQ}function q(){return _=>(0,s.x)()((0,a.O)(oe)(_))}},5154:(yt,be,p)=>{p.d(be,{d:()=>s});var a=p(5647);function s(oe,q,_){let W;return W=oe&&"object"==typeof oe?oe:{bufferSize:oe,windowTime:q,refCount:!1,scheduler:_},I=>I.lift(function G({bufferSize:oe=Number.POSITIVE_INFINITY,windowTime:q=Number.POSITIVE_INFINITY,refCount:_,scheduler:W}){let I,H,R=0,B=!1,ee=!1;return function(Ye){let Fe;R++,!I||B?(B=!1,I=new a.t(oe,q,W),Fe=I.subscribe(this),H=Ye.subscribe({next(ze){I.next(ze)},error(ze){B=!0,I.error(ze)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Fe=I.subscribe(this),this.add(()=>{R--,Fe.unsubscribe(),Fe=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(W))}},1307:(yt,be,p)=>{p.d(be,{T:()=>s});var a=p(3489);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.total=_}call(_,W){return W.subscribe(new oe(_,this.total))}}class oe extends a.L{constructor(_,W){super(_),this.total=W,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(yt,be,p)=>{p.d(be,{O:()=>G});var a=p(1961),s=p(2866);function G(...oe){const q=oe[oe.length-1];return(0,s.K)(q)?(oe.pop(),_=>(0,a.z)(oe,_,q)):_=>(0,a.z)(oe,_)}},7545:(yt,be,p)=>{p.d(be,{w:()=>oe});var a=p(4850),s=p(5254),G=p(1177);function oe(W,I){return"function"==typeof I?R=>R.pipe(oe((H,B)=>(0,s.D)(W(H,B)).pipe((0,a.U)((ee,ye)=>I(H,ee,B,ye))))):R=>R.lift(new q(W))}class q{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends G.Ds{constructor(I,R){super(I),this.project=R,this.index=0}_next(I){let R;const H=this.index++;try{R=this.project(I,H)}catch(B){return void this.destination.error(B)}this._innerSub(R)}_innerSub(I){const R=this.innerSubscription;R&&R.unsubscribe();const H=new G.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,G.ft)(I,H),this.innerSubscription!==H&&B.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(I){this.destination.next(I)}}},2986:(yt,be,p)=>{p.d(be,{q:()=>oe});var a=p(3489),s=p(4231),G=p(8896);function oe(W){return I=>0===W?(0,G.c)():I.lift(new q(W))}class q{constructor(I){if(this.total=I,this.total<0)throw new s.W}call(I,R){return R.subscribe(new _(I,this.total))}}class _ extends a.L{constructor(I,R){super(I),this.total=R,this.count=0}_next(I){const R=this.total,H=++this.count;H<=R&&(this.destination.next(I),H===R&&(this.destination.complete(),this.unsubscribe()))}}},7625:(yt,be,p)=>{p.d(be,{R:()=>s});var a=p(1177);function s(q){return _=>_.lift(new G(q))}class G{constructor(_){this.notifier=_}call(_,W){const I=new oe(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),W.subscribe(I)):I}}class oe extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(yt,be,p)=>{p.d(be,{b:()=>oe});var a=p(3489),s=p(7876),G=p(7043);function oe(W,I,R){return function(B){return B.lift(new q(W,I,R))}}class q{constructor(I,R,H){this.nextOrObserver=I,this.error=R,this.complete=H}call(I,R){return R.subscribe(new _(I,this.nextOrObserver,this.error,this.complete))}}class _ extends a.L{constructor(I,R,H,B){super(I),this._tapNext=s.Z,this._tapError=s.Z,this._tapComplete=s.Z,this._tapError=H||s.Z,this._tapComplete=B||s.Z,(0,G.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||s.Z,this._tapError=R.error||s.Z,this._tapComplete=R.complete||s.Z)}_next(I){try{this._tapNext.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.next(I)}_error(I){try{this._tapError.call(this._context,I)}catch(R){return void this.destination.error(R)}this.destination.error(I)}_complete(){try{this._tapComplete.call(this._context)}catch(I){return void this.destination.error(I)}return this.destination.complete()}}},6454:(yt,be,p)=>{p.d(be,{r:()=>G});var a=p(6498),s=p(2654);function G(oe,q){return new a.y(_=>{const W=new s.w;let I=0;return W.add(q.schedule(function(){I!==oe.length?(_.next(oe[I++]),_.closed||W.add(this.schedule())):_.complete()})),W})}},6686:(yt,be,p)=>{p.d(be,{o:()=>G});var a=p(2654);class s extends a.w{constructor(q,_){super()}schedule(q,_=0){return this}}class G extends s{constructor(q,_){super(q,_),this.scheduler=q,this.work=_,this.pending=!1}schedule(q,_=0){if(this.closed)return this;this.state=q;const W=this.id,I=this.scheduler;return null!=W&&(this.id=this.recycleAsyncId(I,W,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(q,_,W=0){return setInterval(q.flush.bind(q,this),W)}recycleAsyncId(q,_,W=0){if(null!==W&&this.delay===W&&!1===this.pending)return _;clearInterval(_)}execute(q,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const W=this._execute(q,_);if(W)return W;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(q,_){let I,W=!1;try{this.work(q)}catch(R){W=!0,I=!!R&&R||new Error(R)}if(W)return this.unsubscribe(),I}_unsubscribe(){const q=this.id,_=this.scheduler,W=_.actions,I=W.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&W.splice(I,1),null!=q&&(this.id=this.recycleAsyncId(_,q,null)),this.delay=null}}},2268:(yt,be,p)=>{p.d(be,{v:()=>s});let a=(()=>{class G{constructor(q,_=G.now){this.SchedulerAction=q,this.now=_}schedule(q,_=0,W){return new this.SchedulerAction(this,q).schedule(W,_)}}return G.now=()=>Date.now(),G})();class s extends a{constructor(oe,q=a.now){super(oe,()=>s.delegate&&s.delegate!==this?s.delegate.now():q()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(oe,q=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(oe,q,_):super.schedule(oe,q,_)}flush(oe){const{actions:q}=this;if(this.active)return void q.push(oe);let _;this.active=!0;do{if(_=oe.execute(oe.state,oe.delay))break}while(oe=q.shift());if(this.active=!1,_){for(;oe=q.shift();)oe.unsubscribe();throw _}}}},353:(yt,be,p)=>{p.d(be,{z:()=>G,P:()=>oe});var a=p(6686);const G=new(p(2268).v)(a.o),oe=G},5430:(yt,be,p)=>{p.d(be,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(yt,be,p)=>{p.d(be,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(yt,be,p)=>{p.d(be,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(yt,be,p)=>{p.d(be,{W:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return G.prototype=Object.create(Error.prototype),G})()},5279:(yt,be,p)=>{p.d(be,{N:()=>s});const s=(()=>{function G(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return G.prototype=Object.create(Error.prototype),G})()},2782:(yt,be,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(be,{z:()=>a})},5379:(yt,be,p)=>{function a(s){return s}p.d(be,{y:()=>a})},6688:(yt,be,p)=>{p.d(be,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(yt,be,p)=>{p.d(be,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(yt,be,p)=>{function a(s){return"function"==typeof s}p.d(be,{m:()=>a})},4241:(yt,be,p)=>{p.d(be,{k:()=>s});var a=p(6688);function s(G){return!(0,a.k)(G)&&G-parseFloat(G)+1>=0}},7830:(yt,be,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(be,{K:()=>a})},8955:(yt,be,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(be,{t:()=>a})},2866:(yt,be,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(be,{K:()=>a})},7876:(yt,be,p)=>{function a(){}p.d(be,{Z:()=>a})},4843:(yt,be,p)=>{p.d(be,{z:()=>s,U:()=>G});var a=p(5379);function s(...oe){return G(oe)}function G(oe){return 0===oe.length?a.y:1===oe.length?oe[0]:function(_){return oe.reduce((W,I)=>I(W),_)}}},9249:(yt,be,p)=>{p.d(be,{s:()=>B});var a=p(3650),s=p(2782),oe=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>ye=>{const Ye=ee[_.L]();if("function"!=typeof Ye.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ye.subscribe(ye)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>ye=>(ee.then(Ye=>{ye.closed||(ye.next(Ye),ye.complete())},Ye=>ye.error(Ye)).then(null,s.z),ye))(ee);if(ee&&"function"==typeof ee[oe.hZ])return(ee=>ye=>{const Ye=ee[oe.hZ]();for(;;){let Fe;try{Fe=Ye.next()}catch(ze){return ye.error(ze),ye}if(Fe.done){ye.complete();break}if(ye.next(Fe.value),ye.closed)break}return"function"==typeof Ye.return&&ye.add(()=>{Ye.return&&Ye.return()}),ye})(ee);{const Ye=`You provided ${(0,H.K)(ee)?"an invalid object":`'${ee}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ye)}}},3650:(yt,be,p)=>{p.d(be,{V:()=>a});const a=s=>G=>{for(let oe=0,q=s.length;oe{p.d(be,{D:()=>q});var a=p(3489);class s extends a.L{constructor(W,I,R){super(),this.parent=W,this.outerValue=I,this.outerIndex=R,this.index=0}_next(W){this.parent.notifyNext(this.outerValue,W,this.outerIndex,this.index++,this)}_error(W){this.parent.notifyError(W,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var G=p(9249),oe=p(6498);function q(_,W,I,R,H=new s(_,I,R)){if(!H.closed)return W instanceof oe.y?W.subscribe(H):(0,G.s)(W)(H)}},655:(yt,be,p)=>{function oe(J,fe){var he={};for(var te in J)Object.prototype.hasOwnProperty.call(J,te)&&fe.indexOf(te)<0&&(he[te]=J[te]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var le=0;for(te=Object.getOwnPropertySymbols(J);le=0;je--)(Ue=J[je])&&(ie=(le<3?Ue(ie):le>3?Ue(fe,he,ie):Ue(fe,he))||ie);return le>3&&ie&&Object.defineProperty(fe,he,ie),ie}function I(J,fe,he,te){return new(he||(he=Promise))(function(ie,Ue){function je(ve){try{ke(te.next(ve))}catch(mt){Ue(mt)}}function tt(ve){try{ke(te.throw(ve))}catch(mt){Ue(mt)}}function ke(ve){ve.done?ie(ve.value):function le(ie){return ie instanceof he?ie:new he(function(Ue){Ue(ie)})}(ve.value).then(je,tt)}ke((te=te.apply(J,fe||[])).next())})}p.d(be,{_T:()=>oe,gn:()=>q,mG:()=>I})},1777:(yt,be,p)=>{p.d(be,{l3:()=>G,_j:()=>a,LC:()=>s,ZN:()=>vt,jt:()=>q,IO:()=>Fe,vP:()=>W,EY:()=>ze,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>oe,ZE:()=>Je,k1:()=>zt});class a{}class s{}const G="*";function oe(ut,Ie){return{type:7,name:ut,definitions:Ie,options:{}}}function q(ut,Ie=null){return{type:4,styles:Ie,timings:ut}}function W(ut,Ie=null){return{type:2,steps:ut,options:Ie}}function I(ut){return{type:6,styles:ut,offset:null}}function R(ut,Ie,$e){return{type:0,name:ut,styles:Ie,options:$e}}function B(ut,Ie,$e=null){return{type:1,expr:ut,animation:Ie,options:$e}}function Fe(ut,Ie,$e=null){return{type:11,selector:ut,animation:Ie,options:$e}}function ze(ut,Ie){return{type:12,timings:ut,animation:Ie}}function _e(ut){Promise.resolve(null).then(ut)}class vt{constructor(Ie=0,$e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ie+$e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}onStart(Ie){this._onStartFns.push(Ie)}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){_e(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ie){this._position=this.totalTime?Ie*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}class Je{constructor(Ie){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ie;let $e=0,et=0,Se=0;const Xe=this.players.length;0==Xe?_e(()=>this._onFinish()):this.players.forEach(J=>{J.onDone(()=>{++$e==Xe&&this._onFinish()}),J.onDestroy(()=>{++et==Xe&&this._onDestroy()}),J.onStart(()=>{++Se==Xe&&this._onStart()})}),this.totalTime=this.players.reduce((J,fe)=>Math.max(J,fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ie=>Ie()),this._onDoneFns=[])}init(){this.players.forEach(Ie=>Ie.init())}onStart(Ie){this._onStartFns.push(Ie)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ie=>Ie()),this._onStartFns=[])}onDone(Ie){this._onDoneFns.push(Ie)}onDestroy(Ie){this._onDestroyFns.push(Ie)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ie=>Ie.play())}pause(){this.players.forEach(Ie=>Ie.pause())}restart(){this.players.forEach(Ie=>Ie.restart())}finish(){this._onFinish(),this.players.forEach(Ie=>Ie.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ie=>Ie.destroy()),this._onDestroyFns.forEach(Ie=>Ie()),this._onDestroyFns=[])}reset(){this.players.forEach(Ie=>Ie.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ie){const $e=Ie*this.totalTime;this.players.forEach(et=>{const Se=et.totalTime?Math.min(1,$e/et.totalTime):1;et.setPosition(Se)})}getPosition(){const Ie=this.players.reduce(($e,et)=>null===$e||et.totalTime>$e.totalTime?et:$e,null);return null!=Ie?Ie.getPosition():0}beforeDestroy(){this.players.forEach(Ie=>{Ie.beforeDestroy&&Ie.beforeDestroy()})}triggerCallback(Ie){const $e="start"==Ie?this._onStartFns:this._onDoneFns;$e.forEach(et=>et()),$e.length=0}}const zt="!"},5664:(yt,be,p)=>{p.d(be,{rt:()=>Ne,tE:()=>Le,qV:()=>Et});var a=p(9808),s=p(5e3),G=p(591),oe=p(8929),q=p(1086),_=p(1159),W=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),ye=p(7144);let le=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function Ue(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const ue=function ie(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(ue&&(-1===dt(ue)||!this.isVisible(ue)))return!1;let Ae=$.nodeName.toLowerCase(),wt=dt($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ae||"object"===Ae||this._platform.WEBKIT&&this._platform.IOS&&!function _t(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ae?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ae?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,ue){return function it(L){return!function tt(L){return function ve(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function je(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function ke(L){return function mt(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Qe(L))}($)&&!this.isDisabled($)&&((null==ue?void 0:ue.ignoreVisibility)||this.isVisible($))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Qe(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function dt(L){if(!Qe(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class ot{constructor(E,$,ue,Ae,wt=!1){this._element=E,this._checker=$,this._ngZone=ue,this._document=Ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,wt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(E){this._enabled=E,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}destroy(){const E=this._startAnchor,$=this._endAnchor;E&&(E.removeEventListener("focus",this.startAnchorListener),E.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(E)))})}focusFirstTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(E)))})}focusLastTabbableElementWhenReady(E){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(E)))})}_getRegionBoundary(E){const $=this._element.querySelectorAll(`[cdk-focus-region-${E}], [cdkFocusRegion${E}], [cdk-focus-${E}]`);return"start"==E?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(E){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const ue=this._getFirstTabbableElement($);return null==ue||ue.focus(E),!!ue}return $.focus(E),!0}return this.focusFirstTabbableElement(E)}focusFirstTabbableElement(E){const $=this._getRegionBoundary("start");return $&&$.focus(E),!!$}focusLastTabbableElement(E){const $=this._getRegionBoundary("end");return $&&$.focus(E),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=0;ue<$.length;ue++){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[ue]):null;if(Ae)return Ae}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let ue=$.length-1;ue>=0;ue--){const Ae=$[ue].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[ue]):null;if(Ae)return Ae}return null}_createAnchor(){const E=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,E),E.classList.add("cdk-visually-hidden"),E.classList.add("cdk-focus-trap-anchor"),E.setAttribute("aria-hidden","true"),E}_toggleAnchorTabIndex(E,$){E?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(E){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(E,this._startAnchor),this._toggleAnchorTabIndex(E,this._endAnchor))}_executeOnStable(E){this._ngZone.isStable?E():this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,ue,Ae){this._checker=$,this._ngZone=ue,this._document=Ae}create($,ue=!1){return new ot($,this._checker,this._ngZone,this._document,ue)}}return L.\u0275fac=function($){return new($||L)(s.LFG(le),s.LFG(s.R0b),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const Sn=new s.OlP("cdk-input-modality-detector-options"),cn={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},qe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,ue,Ae,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new G.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Qt,vn;(null===(vn=null===(Qt=this._options)||void 0===Qt?void 0:Qt.ignoreKeys)||void 0===vn?void 0:vn.some(Vn=>Vn===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ee.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function Cn(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,ee.sA)(At))},this._onTouchstart=At=>{!function Dt(L){const E=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!E||-1!==E.identifier||null!=E.radiusX&&1!==E.radiusX||null!=E.radiusY&&1!==E.radiusY)}(At)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ee.sA)(At)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},cn),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&ue.runOutsideAngular(()=>{Ae.addEventListener("keydown",this._onKeydown,qe),Ae.addEventListener("mousedown",this._onMousedown,qe),Ae.addEventListener("touchstart",this._onTouchstart,qe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,qe),document.removeEventListener("mousedown",this._onMousedown,qe),document.removeEventListener("touchstart",this._onTouchstart,qe))}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(Sn,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const He=new s.OlP("cdk-focus-monitor-default-options"),Ge=(0,ee.i$)({passive:!0,capture:!0});let Le=(()=>{class L{constructor($,ue,Ae,wt,At){this._ngZone=$,this._platform=ue,this._inputModalityDetector=Ae,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new oe.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const vn=(0,ee.sA)(Qt),Vn="focus"===Qt.type?this._onFocus:this._onBlur;for(let An=vn;An;An=An.parentElement)Vn.call(this,Qt,An)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,ue=!1){const Ae=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ae.nodeType)return(0,q.of)(null);const wt=(0,ee.kV)(Ae)||this._getDocument(),At=this._elementInfo.get(Ae);if(At)return ue&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:ue,subject:new oe.xQ,rootNode:wt};return this._elementInfo.set(Ae,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const ue=(0,B.fI)($),Ae=this._elementInfo.get(ue);Ae&&(Ae.subject.complete(),this._setClasses(ue),this._elementInfo.delete(ue),this._removeGlobalListeners(Ae))}focusVia($,ue,Ae){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,vn])=>this._originChanged(Qt,ue,vn)):(this._setOrigin(ue),"function"==typeof wt.focus&&wt.focus(Ae))}ngOnDestroy(){this._elementInfo.forEach(($,ue)=>this.stopMonitoring(ue))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,ue){$.classList.toggle("cdk-focused",!!ue),$.classList.toggle("cdk-touch-focused","touch"===ue),$.classList.toggle("cdk-keyboard-focused","keyboard"===ue),$.classList.toggle("cdk-mouse-focused","mouse"===ue),$.classList.toggle("cdk-program-focused","program"===ue)}_setOrigin($,ue=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&ue,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,ue){const Ae=this._elementInfo.get(ue),wt=(0,ee.sA)($);!Ae||!Ae.checkChildren&&ue!==wt||this._originChanged(ue,this._getFocusOrigin(wt),Ae)}_onBlur($,ue){const Ae=this._elementInfo.get(ue);!Ae||Ae.checkChildren&&$.relatedTarget instanceof Node&&ue.contains($.relatedTarget)||(this._setClasses(ue),this._emitOrigin(Ae.subject,null))}_emitOrigin($,ue){this._ngZone.run(()=>$.next(ue))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const ue=$.rootNode,Ae=this._rootNodeFocusListenerCount.get(ue)||0;Ae||this._ngZone.runOutsideAngular(()=>{ue.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ue,Ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,H.R)(this._stopInputModalityDetector)).subscribe(wt=>{this._setOrigin(wt,!0)}))}_removeGlobalListeners($){const ue=$.rootNode;if(this._rootNodeFocusListenerCount.has(ue)){const Ae=this._rootNodeFocusListenerCount.get(ue);Ae>1?this._rootNodeFocusListenerCount.set(ue,Ae-1):(ue.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ue.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ue))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,ue,Ae){this._setClasses($,ue),this._emitOrigin(Ae.subject,ue),this._lastFocusOrigin=ue}_getClosestElementsInfo($){const ue=[];return this._elementInfo.forEach((Ae,wt)=>{(wt===$||Ae.checkChildren&&wt.contains($))&&ue.push([wt,Ae])}),ue}}return L.\u0275fac=function($){return new($||L)(s.LFG(s.R0b),s.LFG(ee.t4),s.LFG(x),s.LFG(a.K0,8),s.LFG(He,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Be="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ce=(()=>{class L{constructor($,ue){this._platform=$,this._document=ue}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const ue=this._document.defaultView||window,Ae=ue&&ue.getComputedStyle?ue.getComputedStyle($):null,wt=(Ae&&Ae.backgroundColor||"").replace(/ /g,"");switch($.remove(),wt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(nt),$.remove(V),$.remove(Be),this._hasCheckedHighContrastMode=!0;const ue=this.getHighContrastMode();1===ue?($.add(nt),$.add(V)):2===ue&&($.add(nt),$.add(Be))}}}return L.\u0275fac=function($){return new($||L)(s.LFG(ee.t4),s.LFG(a.K0))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),Ne=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ce))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,ye.Q8]]}),L})()},226:(yt,be,p)=>{p.d(be,{vT:()=>R,Is:()=>W});var a=p(5e3),s=p(9808);const G=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function oe(){return(0,a.f3M)(s.K0)}}),q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let W=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const Ye=ee.documentElement?ee.documentElement.dir:null;this.value=function _(H){const B=(null==H?void 0:H.toLowerCase())||"";return"auto"===B&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?q.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||Ye||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(G,8))},H.\u0275prov=a.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=a.oAB({type:H}),H.\u0275inj=a.cJS({}),H})()},3191:(yt,be,p)=>{p.d(be,{t6:()=>oe,Eq:()=>q,Ig:()=>s,HM:()=>_,fI:()=>W,su:()=>G});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function G(R,H=0){return oe(R)?Number(R):H}function oe(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function q(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function W(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(yt,be,p)=>{p.d(be,{zL:()=>I,ZH:()=>s,jx:()=>W,JH:()=>zt,K5:()=>q,hY:()=>B,oh:()=>_e,b2:()=>se,MW:()=>Ge,SV:()=>Je,JU:()=>_,L_:()=>ee,Mf:()=>G,LH:()=>vt,Vb:()=>k});const s=8,G=9,q=13,_=16,W=17,I=18,B=27,ee=32,_e=37,vt=38,Je=39,zt=40,Ge=91,se=224;function k(Ee,...st){return st.length?st.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(yt,be,p)=>{p.d(be,{Yg:()=>zt,u3:()=>Ie,xu:()=>Ye,vx:()=>_e});var a=p(5e3),s=p(3191),G=p(8929),oe=p(6053),q=p(1961),_=p(6498),W=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),ye=p(925);let Ye=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})();const Fe=new Set;let ze,_e=(()=>{class $e{constructor(Se){this._platform=Se,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Je}matchMedia(Se){return(this._platform.WEBKIT||this._platform.BLINK)&&function vt($e){if(!Fe.has($e))try{ze||(ze=document.createElement("style"),ze.setAttribute("type","text/css"),document.head.appendChild(ze)),ze.sheet&&(ze.sheet.insertRule(`@media ${$e} {body{ }}`,0),Fe.add($e))}catch(et){console.error(et)}}(Se),this._matchMedia(Se)}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(ye.t4))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return{matches:"all"===$e||""===$e,media:$e,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class $e{constructor(Se,Xe){this._mediaMatcher=Se,this._zone=Xe,this._queries=new Map,this._destroySubject=new G.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Se){return ut((0,s.Eq)(Se)).some(J=>this._registerQuery(J).mql.matches)}observe(Se){const J=ut((0,s.Eq)(Se)).map(he=>this._registerQuery(he).observable);let fe=(0,oe.aj)(J);return fe=(0,q.z)(fe.pipe((0,W.q)(1)),fe.pipe((0,I.T)(1),(0,R.b)(0))),fe.pipe((0,H.U)(he=>{const te={matches:!1,breakpoints:{}};return he.forEach(({matches:le,query:ie})=>{te.matches=te.matches||le,te.breakpoints[ie]=le}),te}))}_registerQuery(Se){if(this._queries.has(Se))return this._queries.get(Se);const Xe=this._mediaMatcher.matchMedia(Se),fe={observable:new _.y(he=>{const te=le=>this._zone.run(()=>he.next(le));return Xe.addListener(te),()=>{Xe.removeListener(te)}}).pipe((0,B.O)(Xe),(0,H.U)(({matches:he})=>({query:Se,matches:he})),(0,ee.R)(this._destroySubject)),mql:Xe};return this._queries.set(Se,fe),fe}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.LFG(_e),a.LFG(a.R0b))},$e.\u0275prov=a.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function ut($e){return $e.map(et=>et.split(",")).reduce((et,Se)=>et.concat(Se)).map(et=>et.trim())}const Ie={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(yt,be,p)=>{p.d(be,{Q8:()=>q});var a=p(5e3);let s=(()=>{class _{create(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}return _.\u0275fac=function(I){return new(I||_)},_.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(yt,be,p)=>{p.d(be,{pI:()=>Cn,xu:()=>_n,tR:()=>fe,aV:()=>gn,X_:()=>J,Vs:()=>Et,U8:()=>cn,Iu:()=>Ue});var a=p(3393),s=p(9808),G=p(5e3),oe=p(3191),q=p(925),_=p(226),W=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class ye{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new Ye(x,this.predicate,this.inclusive))}}class Ye extends B.L{constructor(x,z,P){super(x),this.predicate=z,this.inclusive=P,this.index=0}_next(x){const z=this.destination;let P;try{P=this.predicate(x,this.index++)}catch(pe){return void z.error(pe)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Fe=p(2986),ze=p(7625),_e=p(1159);const vt=(0,q.Mq)();class Je{constructor(x,z){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=z}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,oe.HM)(-this._previousScrollPosition.left),x.style.top=(0,oe.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,P=x.style,pe=this._document.body.style,j=P.scrollBehavior||"",me=pe.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),vt&&(P.scrollBehavior=pe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),vt&&(P.scrollBehavior=j,pe.scrollBehavior=me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const z=this._document.body,P=this._viewportRuler.getViewportSize();return z.scrollHeight>P.height||z.scrollWidth>P.width}}class ut{constructor(x,z,P,pe){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=pe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const z=this._viewportRuler.getViewportScrollPosition().top;Math.abs(z-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function $e(qe,x){return x.some(z=>qe.bottomz.bottom||qe.rightz.right)}function et(qe,x){return x.some(z=>qe.topz.bottom||qe.leftz.right)}class Se{constructor(x,z,P,pe){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=pe,this._scrollSubscription=null}attach(x){this._overlayRef=x}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const z=this._overlayRef.overlayElement.getBoundingClientRect(),{width:P,height:pe}=this._viewportRuler.getViewportSize();$e(z,[{width:P,height:pe,bottom:pe,right:P,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xe=(()=>{class qe{constructor(z,P,pe,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=pe,this.noop=()=>new Ie,this.close=me=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,me),this.block=()=>new Je(this._viewportRuler,this._document),this.reposition=me=>new Se(this._scrollDispatcher,this._viewportRuler,this._ngZone,me),this._document=j}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.mF),G.LFG(a.rL),G.LFG(G.R0b),G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class J{constructor(x){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const z=Object.keys(x);for(const P of z)void 0!==x[P]&&(this[P]=x[P])}}}class fe{constructor(x,z,P,pe,j){this.offsetX=P,this.offsetY=pe,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class te{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class Ue{constructor(x,z,P,pe,j,me,He,Ge,Le){this._portalOutlet=x,this._host=z,this._pane=P,this._config=pe,this._ngZone=j,this._keyboardDispatcher=me,this._document=He,this._location=Ge,this._outsideClickDispatcher=Le,this._backdropElement=null,this._backdropClick=new I.xQ,this._attachments=new I.xQ,this._detachments=new I.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=Me=>this._backdropClick.next(Me),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,pe.scrollStrategy&&(this._scrollStrategy=pe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=pe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let z=this._portalOutlet.attach(x);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Fe.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),z}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){var x;const z=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(x=this._host)||void 0===x||x.remove(),this._previousHostParent=this._pane=this._host=null,z&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,oe.HM)(this._config.width),x.height=(0,oe.HM)(this._config.height),x.minWidth=(0,oe.HM)(this._config.minWidth),x.minHeight=(0,oe.HM)(this._config.minHeight),x.maxWidth=(0,oe.HM)(this._config.maxWidth),x.maxHeight=(0,oe.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let z;const P=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",P),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(z)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",P)}),x.style.pointerEvents="none",z=this._ngZone.runOutsideAngular(()=>setTimeout(P,500))}_toggleClasses(x,z,P){const pe=(0,oe.Eq)(z||[]).filter(j=>!!j);pe.length&&(P?x.classList.add(...pe):x.classList.remove(...pe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ze.R)((0,H.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.remove(),this._backdropElement===x&&(this._backdropElement=null))}}let je=(()=>{class qe{constructor(z,P){this._platform=P,this._document=z}ngOnDestroy(){var z;null===(z=this._containerElement)||void 0===z||z.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const z="cdk-overlay-container";if(this._platform.isBrowser||(0,q.Oy)()){const pe=this._document.querySelectorAll(`.${z}[platform="server"], .${z}[platform="test"]`);for(let j=0;j{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._originRect,z=this._overlayRect,P=this._viewportRect,pe=this._containerRect,j=[];let me;for(let He of this._preferredPositions){let Ge=this._getOriginPoint(x,pe,He),Le=this._getOverlayPoint(Ge,z,He),Me=this._getOverlayFit(Le,z,P,He);if(Me.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(He,Ge);this._canFitWithFlexibleDimensions(Me,Le,P)?j.push({position:He,origin:Ge,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ge,He)}):(!me||me.overlayFit.visibleAreaGe&&(Ge=Me,He=Le)}return this._isPushed=!1,void this._applyPosition(He.position,He.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(me.position,me.originPoint);this._applyPosition(me.position,me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(tt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const x=this._lastPosition||this._preferredPositions[0],z=this._getOriginPoint(this._originRect,this._containerRect,x);this._applyPosition(x,z)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,z,P){let pe,j;if("center"==P.originX)pe=x.left+x.width/2;else{const me=this._isRtl()?x.right:x.left,He=this._isRtl()?x.left:x.right;pe="start"==P.originX?me:He}return z.left<0&&(pe-=z.left),j="center"==P.originY?x.top+x.height/2:"top"==P.originY?x.top:x.bottom,z.top<0&&(j-=z.top),{x:pe,y:j}}_getOverlayPoint(x,z,P){let pe,j;return pe="center"==P.overlayX?-z.width/2:"start"===P.overlayX?this._isRtl()?-z.width:0:this._isRtl()?0:-z.width,j="center"==P.overlayY?-z.height/2:"top"==P.overlayY?0:-z.height,{x:x.x+pe,y:x.y+j}}_getOverlayFit(x,z,P,pe){const j=dt(z);let{x:me,y:He}=x,Ge=this._getOffset(pe,"x"),Le=this._getOffset(pe,"y");Ge&&(me+=Ge),Le&&(He+=Le);let Be=0-He,nt=He+j.height-P.height,ce=this._subtractOverflows(j.width,0-me,me+j.width-P.width),Ne=this._subtractOverflows(j.height,Be,nt),L=ce*Ne;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Ne===j.height,fitsInViewportHorizontally:ce==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const pe=P.bottom-z.y,j=P.right-z.x,me=Qe(this._overlayRef.getConfig().minHeight),He=Qe(this._overlayRef.getConfig().minWidth),Le=x.fitsInViewportHorizontally||null!=He&&He<=j;return(x.fitsInViewportVertically||null!=me&&me<=pe)&&Le}return!1}_pushOverlayOnScreen(x,z,P){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const pe=dt(z),j=this._viewportRect,me=Math.max(x.x+pe.width-j.width,0),He=Math.max(x.y+pe.height-j.height,0),Ge=Math.max(j.top-P.top-x.y,0),Le=Math.max(j.left-P.left-x.x,0);let Me=0,V=0;return Me=pe.width<=j.width?Le||-me:x.xce&&!this._isInitialRender&&!this._growAfterOpen&&(me=x.y-ce/2)}if("end"===z.overlayX&&!pe||"start"===z.overlayX&&pe)Be=P.width-x.x+this._viewportMargin,Me=x.x-this._viewportMargin;else if("start"===z.overlayX&&!pe||"end"===z.overlayX&&pe)V=x.x,Me=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ce=this._lastBoundingBoxSize.width;Me=2*nt,V=x.x-nt,Me>ce&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ce/2)}return{top:me,left:V,bottom:He,right:Be,width:Me,height:j}}_setBoundingBoxStyles(x,z){const P=this._calculateBoundingBoxRect(x,z);!this._isInitialRender&&!this._growAfterOpen&&(P.height=Math.min(P.height,this._lastBoundingBoxSize.height),P.width=Math.min(P.width,this._lastBoundingBoxSize.width));const pe={};if(this._hasExactPosition())pe.top=pe.left="0",pe.bottom=pe.right=pe.maxHeight=pe.maxWidth="",pe.width=pe.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,me=this._overlayRef.getConfig().maxWidth;pe.height=(0,oe.HM)(P.height),pe.top=(0,oe.HM)(P.top),pe.bottom=(0,oe.HM)(P.bottom),pe.width=(0,oe.HM)(P.width),pe.left=(0,oe.HM)(P.left),pe.right=(0,oe.HM)(P.right),pe.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",pe.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(pe.maxHeight=(0,oe.HM)(j)),me&&(pe.maxWidth=(0,oe.HM)(me))}this._lastBoundingBoxSize=P,mt(this._boundingBox.style,pe)}_resetBoundingBoxStyles(){mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},pe=this._hasExactPosition(),j=this._hasFlexibleDimensions,me=this._overlayRef.getConfig();if(pe){const Me=this._viewportRuler.getViewportScrollPosition();mt(P,this._getExactOverlayY(z,x,Me)),mt(P,this._getExactOverlayX(z,x,Me))}else P.position="static";let He="",Ge=this._getOffset(z,"x"),Le=this._getOffset(z,"y");Ge&&(He+=`translateX(${Ge}px) `),Le&&(He+=`translateY(${Le}px)`),P.transform=He.trim(),me.maxHeight&&(pe?P.maxHeight=(0,oe.HM)(me.maxHeight):j&&(P.maxHeight="")),me.maxWidth&&(pe?P.maxWidth=(0,oe.HM)(me.maxWidth):j&&(P.maxWidth="")),mt(this._pane.style,P)}_getExactOverlayY(x,z,P){let pe={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?pe.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":pe.top=(0,oe.HM)(j.y),pe}_getExactOverlayX(x,z,P){let me,pe={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),me=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===me?pe.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":pe.left=(0,oe.HM)(j.x),pe}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(pe=>pe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:$e(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:$e(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,pe)=>P-Math.max(pe,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,z=this._document.documentElement.clientHeight,P=this._viewportRuler.getViewportScrollPosition();return{top:P.top+this._viewportMargin,left:P.left+this._viewportMargin,right:P.left+x-this._viewportMargin,bottom:P.top+z-this._viewportMargin,width:x-2*this._viewportMargin,height:z-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,z){return"x"===z?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,oe.Eq)(x).forEach(z=>{""!==z&&-1===this._appliedPanelClasses.indexOf(z)&&(this._appliedPanelClasses.push(z),this._pane.classList.add(z))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof G.SBq)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const z=x.width||0,P=x.height||0;return{top:x.y,bottom:x.y+P,left:x.x,right:x.x+z,height:P,width:z}}}function mt(qe,x){for(let z in x)x.hasOwnProperty(z)&&(qe[z]=x[z]);return qe}function Qe(qe){if("number"!=typeof qe&&null!=qe){const[x,z]=qe.split(ke);return z&&"px"!==z?null:parseFloat(x)}return qe||null}function dt(qe){return{top:Math.floor(qe.top),right:Math.floor(qe.right),bottom:Math.floor(qe.bottom),left:Math.floor(qe.left),width:Math.floor(qe.width),height:Math.floor(qe.height)}}const _t="cdk-global-overlay-wrapper";class it{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const z=x.getConfig();this._overlayRef=x,this._width&&!z.width&&x.updateSize({width:this._width}),this._height&&!z.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(_t),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement.style,P=this._overlayRef.getConfig(),{width:pe,height:j,maxWidth:me,maxHeight:He}=P,Ge=!("100%"!==pe&&"100vw"!==pe||me&&"100%"!==me&&"100vw"!==me),Le=!("100%"!==j&&"100vh"!==j||He&&"100%"!==He&&"100vh"!==He);x.position=this._cssPosition,x.marginLeft=Ge?"0":this._leftOffset,x.marginTop=Le?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ge?z.justifyContent="flex-start":"center"===this._justifyContent?z.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?z.justifyContent="flex-end":"flex-end"===this._justifyContent&&(z.justifyContent="flex-start"):z.justifyContent=this._justifyContent,z.alignItems=Le?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,z=this._overlayRef.hostElement,P=z.style;z.classList.remove(_t),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class qe{constructor(z,P,pe,j){this._viewportRuler=z,this._document=P,this._platform=pe,this._overlayContainer=j}global(){return new it}flexibleConnectedTo(z){return new ve(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(a.rL),G.LFG(s.K0),G.LFG(q.t4),G.LFG(je))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),ot=(()=>{class qe{constructor(z){this._attachedOverlays=[],this._document=z}ngOnDestroy(){this.detach()}add(z){this.remove(z),this._attachedOverlays.push(z)}remove(z){const P=this._attachedOverlays.indexOf(z);P>-1&&this._attachedOverlays.splice(P,1),0===this._attachedOverlays.length&&this.detach()}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Et=(()=>{class qe extends ot{constructor(z){super(z),this._keydownListener=P=>{const pe=this._attachedOverlays;for(let j=pe.length-1;j>-1;j--)if(pe[j]._keydownEvents.observers.length>0){pe[j]._keydownEvents.next(P);break}}}add(z){super.add(z),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),Zt=(()=>{class qe extends ot{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=pe=>{this._pointerDownEventTarget=(0,q.sA)(pe)},this._clickListener=pe=>{const j=(0,q.sA)(pe),me="click"===pe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const He=this._attachedOverlays.slice();for(let Ge=He.length-1;Ge>-1;Ge--){const Le=He[Ge];if(!(Le._outsidePointerEvents.observers.length<1)&&Le.hasAttached()){if(Le.overlayElement.contains(j)||Le.overlayElement.contains(me))break;Le._outsidePointerEvents.next(pe)}}}}add(z){if(super.add(z),!this._isAttached){const P=this._document.body;P.addEventListener("pointerdown",this._pointerDownListener,!0),P.addEventListener("click",this._clickListener,!0),P.addEventListener("auxclick",this._clickListener,!0),P.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=P.style.cursor,P.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const z=this._document.body;z.removeEventListener("pointerdown",this._pointerDownListener,!0),z.removeEventListener("click",this._clickListener,!0),z.removeEventListener("auxclick",this._clickListener,!0),z.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(z.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(s.K0),G.LFG(q.t4))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})(),mn=0,gn=(()=>{class qe{constructor(z,P,pe,j,me,He,Ge,Le,Me,V,Be){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=pe,this._positionBuilder=j,this._keyboardDispatcher=me,this._injector=He,this._ngZone=Ge,this._document=Le,this._directionality=Me,this._location=V,this._outsideClickDispatcher=Be}create(z){const P=this._createHostElement(),pe=this._createPaneElement(P),j=this._createPortalOutlet(pe),me=new J(z);return me.direction=me.direction||this._directionality.value,new Ue(j,P,pe,me,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(z){const P=this._document.createElement("div");return P.id="cdk-overlay-"+mn++,P.classList.add("cdk-overlay-pane"),z.appendChild(P),P}_createHostElement(){const z=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(z),z}_createPortalOutlet(z){return this._appRef||(this._appRef=this._injector.get(G.z2F)),new W.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return qe.\u0275fac=function(z){return new(z||qe)(G.LFG(Xe),G.LFG(je),G.LFG(G._Vd),G.LFG(St),G.LFG(Et),G.LFG(G.zs3),G.LFG(G.R0b),G.LFG(s.K0),G.LFG(_.Is),G.LFG(s.Ye),G.LFG(Zt))},qe.\u0275prov=G.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const Ut=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],un=new G.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class qe{constructor(z){this.elementRef=z}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(G.SBq))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),qe})(),Cn=(()=>{class qe{constructor(z,P,pe,j,me){this._overlay=z,this._dir=me,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new G.vpe,this.positionChange=new G.vpe,this.attach=new G.vpe,this.detach=new G.vpe,this.overlayKeydown=new G.vpe,this.overlayOutsideClick=new G.vpe,this._templatePortal=new W.UE(P,pe),this._scrollStrategyFactory=j,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(z){this._offsetX=z,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(z){this._offsetY=z,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,oe.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,oe.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,oe.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,oe.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,oe.Ig)(z)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(z){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),z.origin&&this.open&&this._position.apply()),z.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ut);const z=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=z.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=z.detachments().subscribe(()=>this.detach.emit()),z.keydownEvents().subscribe(P=>{this.overlayKeydown.next(P),P.keyCode===_e.hY&&!this.disableClose&&!(0,_e.Vb)(P)&&(P.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(P=>{this.overlayOutsideClick.next(P)})}_buildConfig(){const z=this._position=this.positionStrategy||this._createPositionStrategy(),P=new J({direction:this._dir,positionStrategy:z,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(P.width=this.width),(this.height||0===this.height)&&(P.height=this.height),(this.minWidth||0===this.minWidth)&&(P.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(P.minHeight=this.minHeight),this.backdropClass&&(P.backdropClass=this.backdropClass),this.panelClass&&(P.panelClass=this.panelClass),P}_updatePositionStrategy(z){const P=this.positions.map(pe=>({originX:pe.originX,originY:pe.originY,overlayX:pe.overlayX,overlayY:pe.overlayY,offsetX:pe.offsetX||this.offsetX,offsetY:pe.offsetY||this.offsetY,panelClass:pe.panelClass||void 0}));return z.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(P).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const z=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(z),z}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof _n?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(z=>{this.backdropClick.emit(z)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ee(qe,x=!1){return z=>z.lift(new ye(qe,x))}(()=>this.positionChange.observers.length>0)).subscribe(z=>{this.positionChange.emit(z),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return qe.\u0275fac=function(z){return new(z||qe)(G.Y36(gn),G.Y36(G.Rgc),G.Y36(G.s_b),G.Y36(un),G.Y36(_.Is,8))},qe.\u0275dir=G.lG2({type:qe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[G.TTD]}),qe})();const Sn={provide:un,deps:[gn],useFactory:function Dt(qe){return()=>qe.scrollStrategies.reposition()}};let cn=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=G.oAB({type:qe}),qe.\u0275inj=G.cJS({providers:[gn,Sn],imports:[[_.vT,W.eL,a.Cl],a.Cl]}),qe})()},925:(yt,be,p)=>{p.d(be,{t4:()=>oe,ud:()=>q,sA:()=>zt,kV:()=>vt,Oy:()=>ut,_i:()=>Fe,i$:()=>B,Mq:()=>Ye});var a=p(5e3),s=p(9808);let G;try{G="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ie){G=!1}let R,ee,ye,ze,oe=(()=>{class Ie{constructor(et){this._platformId=et,this.isBrowser=this._platformId?(0,s.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!G)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Ie.\u0275fac=function(et){return new(et||Ie)(a.LFG(a.Lbi))},Ie.\u0275prov=a.Yz7({token:Ie,factory:Ie.\u0275fac,providedIn:"root"}),Ie})(),q=(()=>{class Ie{}return Ie.\u0275fac=function(et){return new(et||Ie)},Ie.\u0275mod=a.oAB({type:Ie}),Ie.\u0275inj=a.cJS({}),Ie})();function B(Ie){return function H(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?Ie:!!Ie.capture}function Ye(){if(null==ye){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ye=!1,ye;if("scrollBehavior"in document.documentElement.style)ye=!0;else{const Ie=Element.prototype.scrollTo;ye=!!Ie&&!/\{\s*\[native code\]\s*\}/.test(Ie.toString())}}return ye}function Fe(){if("object"!=typeof document||!document)return 0;if(null==ee){const Ie=document.createElement("div"),$e=Ie.style;Ie.dir="rtl",$e.width="1px",$e.overflow="auto",$e.visibility="hidden",$e.pointerEvents="none",$e.position="absolute";const et=document.createElement("div"),Se=et.style;Se.width="2px",Se.height="1px",Ie.appendChild(et),document.body.appendChild(Ie),ee=0,0===Ie.scrollLeft&&(Ie.scrollLeft=1,ee=0===Ie.scrollLeft?1:2),Ie.remove()}return ee}function vt(Ie){if(function _e(){if(null==ze){const Ie="undefined"!=typeof document?document.head:null;ze=!(!Ie||!Ie.createShadowRoot&&!Ie.attachShadow)}return ze}()){const $e=Ie.getRootNode?Ie.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&$e instanceof ShadowRoot)return $e}return null}function zt(Ie){return Ie.composedPath?Ie.composedPath()[0]:Ie.target}function ut(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(yt,be,p)=>{p.d(be,{en:()=>ye,Pl:()=>Je,C5:()=>H,u0:()=>Fe,eL:()=>ut,UE:()=>B});var a=p(5e3),s=p(9808);class R{attach(et){return this._attachedHost=et,et.attach(this)}detach(){let et=this._attachedHost;null!=et&&(this._attachedHost=null,et.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class H extends R{constructor(et,Se,Xe,J){super(),this.component=et,this.viewContainerRef=Se,this.injector=Xe,this.componentFactoryResolver=J}}class B extends R{constructor(et,Se,Xe){super(),this.templateRef=et,this.viewContainerRef=Se,this.context=Xe}get origin(){return this.templateRef.elementRef}attach(et,Se=this.context){return this.context=Se,super.attach(et)}detach(){return this.context=void 0,super.detach()}}class ee extends R{constructor(et){super(),this.element=et instanceof a.SBq?et.nativeElement:et}}class ye{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(et){return et instanceof H?(this._attachedPortal=et,this.attachComponentPortal(et)):et instanceof B?(this._attachedPortal=et,this.attachTemplatePortal(et)):this.attachDomPortal&&et instanceof ee?(this._attachedPortal=et,this.attachDomPortal(et)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(et){this._disposeFn=et}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Fe extends ye{constructor(et,Se,Xe,J,fe){super(),this.outletElement=et,this._componentFactoryResolver=Se,this._appRef=Xe,this._defaultInjector=J,this.attachDomPortal=he=>{const te=he.element,le=this._document.createComment("dom-portal");te.parentNode.insertBefore(le,te),this.outletElement.appendChild(te),this._attachedPortal=he,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(te,le)})},this._document=fe}attachComponentPortal(et){const Xe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let J;return et.viewContainerRef?(J=et.viewContainerRef.createComponent(Xe,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>J.destroy())):(J=Xe.create(et.injector||this._defaultInjector),this._appRef.attachView(J.hostView),this.setDisposeFn(()=>{this._appRef.detachView(J.hostView),J.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(J)),this._attachedPortal=et,J}attachTemplatePortal(et){let Se=et.viewContainerRef,Xe=Se.createEmbeddedView(et.templateRef,et.context);return Xe.rootNodes.forEach(J=>this.outletElement.appendChild(J)),Xe.detectChanges(),this.setDisposeFn(()=>{let J=Se.indexOf(Xe);-1!==J&&Se.remove(J)}),this._attachedPortal=et,Xe}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let Je=(()=>{class $e extends ye{constructor(Se,Xe,J){super(),this._componentFactoryResolver=Se,this._viewContainerRef=Xe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=fe=>{const he=fe.element,te=this._document.createComment("dom-portal");fe.setAttachedHost(this),he.parentNode.insertBefore(te,he),this._getRootNode().appendChild(he),this._attachedPortal=fe,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(he,te)})},this._document=J}get portal(){return this._attachedPortal}set portal(Se){this.hasAttached()&&!Se&&!this._isInitialized||(this.hasAttached()&&super.detach(),Se&&super.attach(Se),this._attachedPortal=Se||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Se){Se.setAttachedHost(this);const Xe=null!=Se.viewContainerRef?Se.viewContainerRef:this._viewContainerRef,fe=(Se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Se.component),he=Xe.createComponent(fe,Xe.length,Se.injector||Xe.injector);return Xe!==this._viewContainerRef&&this._getRootNode().appendChild(he.hostView.rootNodes[0]),super.setDisposeFn(()=>he.destroy()),this._attachedPortal=Se,this._attachedRef=he,this.attached.emit(he),he}attachTemplatePortal(Se){Se.setAttachedHost(this);const Xe=this._viewContainerRef.createEmbeddedView(Se.templateRef,Se.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Se,this._attachedRef=Xe,this.attached.emit(Xe),Xe}_getRootNode(){const Se=this._viewContainerRef.element.nativeElement;return Se.nodeType===Se.ELEMENT_NODE?Se:Se.parentNode}}return $e.\u0275fac=function(Se){return new(Se||$e)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},$e.\u0275dir=a.lG2({type:$e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),$e})(),ut=(()=>{class $e{}return $e.\u0275fac=function(Se){return new(Se||$e)},$e.\u0275mod=a.oAB({type:$e}),$e.\u0275inj=a.cJS({}),$e})()},3393:(yt,be,p)=>{p.d(be,{xd:()=>Dt,x0:()=>me,N7:()=>pe,mF:()=>cn,Cl:()=>Ge,rL:()=>x});var a=p(3191),s=p(5e3),G=p(6686),q=p(2268);const W=new class _ extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=requestAnimationFrame(()=>Me.flush(null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(cancelAnimationFrame(V),Me.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(Le){return Le in B&&(delete B[Le],!0)}const ye={setImmediate(Le){const Me=R++;return B[Me]=!0,H.then(()=>ee(Me)&&Le()),Me},clearImmediate(Le){ee(Le)}},_e=new class ze extends q.v{flush(Me){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Be,nt=-1,ce=V.length;Me=Me||V.shift();do{if(Be=Me.execute(Me.state,Me.delay))break}while(++nt0?super.requestAsyncId(Me,V,Be):(Me.actions.push(this),Me.scheduled||(Me.scheduled=ye.setImmediate(Me.flush.bind(Me,null))))}recycleAsyncId(Me,V,Be=0){if(null!==Be&&Be>0||null===Be&&this.delay>0)return super.recycleAsyncId(Me,V,Be);0===Me.actions.length&&(ye.clearImmediate(V),Me.scheduled=void 0)}});var Je=p(6498);function zt(Le){return!!Le&&(Le instanceof Je.y||"function"==typeof Le.lift&&"function"==typeof Le.subscribe)}var ut=p(8929),Ie=p(1086),$e=p(3753),et=p(2654),Se=p(3489);class J{call(Me,V){return V.subscribe(new fe(Me))}}class fe extends Se.L{constructor(Me){super(Me),this.hasPrev=!1}_next(Me){let V;this.hasPrev?V=[this.prev,Me]:this.hasPrev=!0,this.prev=Me,V&&this.destination.next(V)}}var he=p(5778),te=p(7138),le=p(2198),ie=p(7625),Ue=p(1059),je=p(7545),tt=p(5154),ke=p(9808),ve=p(925),mt=p(226);class _t extends class Qe{}{constructor(Me){super(),this._data=Me}connect(){return zt(this._data)?this._data:(0,Ie.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Me,V,Be,nt,ce){Me.forEachOperation((Ne,L,E)=>{let $,ue;null==Ne.previousIndex?($=this._insertView(()=>Be(Ne,L,E),E,V,nt(Ne)),ue=$?1:0):null==E?(this._detachAndCacheView(L,V),ue=3):($=this._moveView(L,E,V,nt(Ne)),ue=2),ce&&ce({context:null==$?void 0:$.context,operation:ue,record:Ne})})}detach(){for(const Me of this._viewCache)Me.destroy();this._viewCache=[]}_insertView(Me,V,Be,nt){const ce=this._insertViewFromCache(V,Be);if(ce)return void(ce.context.$implicit=nt);const Ne=Me();return Be.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index)}_detachAndCacheView(Me,V){const Be=V.detach(Me);this._maybeCacheView(Be,V)}_moveView(Me,V,Be,nt){const ce=Be.get(Me);return Be.move(ce,V),ce.context.$implicit=nt,ce}_maybeCacheView(Me,V){if(this._viewCache.length0?ce/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Be/this._itemSize),$=Math.max(0,Math.min(Ne,nt-E));Ne!=$&&(Ne=$,ce=$*this._itemSize,V.start=Math.floor(Ne)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ce-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Ne-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Ne))}}function Cn(Le){return Le._scrollStrategy}let Dt=(()=>{class Le{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new _n(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(V){this._itemSize=(0,a.su)(V)}get minBufferPx(){return this._minBufferPx}set minBufferPx(V){this._minBufferPx=(0,a.su)(V)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(V){this._maxBufferPx=(0,a.su)(V)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275dir=s.lG2({type:Le,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:un,useFactory:Cn,deps:[(0,s.Gpc)(()=>Le)]}]),s.TTD]}),Le})(),cn=(()=>{class Le{constructor(V,Be,nt){this._ngZone=V,this._platform=Be,this._scrolled=new ut.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=nt}register(V){this.scrollContainers.has(V)||this.scrollContainers.set(V,V.elementScrolled().subscribe(()=>this._scrolled.next(V)))}deregister(V){const Be=this.scrollContainers.get(V);Be&&(Be.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new Je.y(Be=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,te.e)(V)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ie.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(V,Be){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Be).pipe((0,le.h)(ce=>!ce||nt.indexOf(ce)>-1))}getAncestorScrollContainers(V){const Be=[];return this.scrollContainers.forEach((nt,ce)=>{this._scrollableContainsElement(ce,V)&&Be.push(ce)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Be){let nt=(0,a.fI)(Be),ce=V.getElementRef().nativeElement;do{if(nt==ce)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,$e.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(s.R0b),s.LFG(ve.t4),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})(),Mn=(()=>{class Le{constructor(V,Be,nt,ce){this.elementRef=V,this.scrollDispatcher=Be,this.ngZone=nt,this.dir=ce,this._destroyed=new ut.xQ,this._elementScrolled=new Je.y(Ne=>this.ngZone.runOutsideAngular(()=>(0,$e.R)(this.elementRef.nativeElement,"scroll").pipe((0,ie.R)(this._destroyed)).subscribe(Ne)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(V){const Be=this.elementRef.nativeElement,nt=this.dir&&"rtl"==this.dir.value;null==V.left&&(V.left=nt?V.end:V.start),null==V.right&&(V.right=nt?V.start:V.end),null!=V.bottom&&(V.top=Be.scrollHeight-Be.clientHeight-V.bottom),nt&&0!=(0,ve._i)()?(null!=V.left&&(V.right=Be.scrollWidth-Be.clientWidth-V.left),2==(0,ve._i)()?V.left=V.right:1==(0,ve._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Be.scrollWidth-Be.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Be=this.elementRef.nativeElement;(0,ve.Mq)()?Be.scrollTo(V):(null!=V.top&&(Be.scrollTop=V.top),null!=V.left&&(Be.scrollLeft=V.left))}measureScrollOffset(V){const Be="left",ce=this.elementRef.nativeElement;if("top"==V)return ce.scrollTop;if("bottom"==V)return ce.scrollHeight-ce.clientHeight-ce.scrollTop;const Ne=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Ne?"right":Be:"end"==V&&(V=Ne?Be:"right"),Ne&&2==(0,ve._i)()?V==Be?ce.scrollWidth-ce.clientWidth-ce.scrollLeft:ce.scrollLeft:Ne&&1==(0,ve._i)()?V==Be?ce.scrollLeft+ce.scrollWidth-ce.clientWidth:-ce.scrollLeft:V==Be?ce.scrollLeft:ce.scrollWidth-ce.clientWidth-ce.scrollLeft}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(cn),s.Y36(s.R0b),s.Y36(mt.Is,8))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Le})(),x=(()=>{class Le{constructor(V,Be,nt){this._platform=V,this._change=new ut.xQ,this._changeListener=ce=>{this._change.next(ce)},this._document=nt,Be.runOutsideAngular(()=>{if(V.isBrowser){const ce=this._getWindow();ce.addEventListener("resize",this._changeListener),ce.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const V=this._getWindow();V.removeEventListener("resize",this._changeListener),V.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const V={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),V}getViewportRect(){const V=this.getViewportScrollPosition(),{width:Be,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Be,height:nt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Be=this._getWindow(),nt=V.documentElement,ce=nt.getBoundingClientRect();return{top:-ce.top||V.body.scrollTop||Be.scrollY||nt.scrollTop||0,left:-ce.left||V.body.scrollLeft||Be.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,te.e)(V)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const V=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:V.innerWidth,height:V.innerHeight}:{width:0,height:0}}}return Le.\u0275fac=function(V){return new(V||Le)(s.LFG(ve.t4),s.LFG(s.R0b),s.LFG(ke.K0,8))},Le.\u0275prov=s.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();const P="undefined"!=typeof requestAnimationFrame?W:_e;let pe=(()=>{class Le extends Mn{constructor(V,Be,nt,ce,Ne,L,E){super(V,L,nt,Ne),this.elementRef=V,this._changeDetectorRef=Be,this._scrollStrategy=ce,this._detachedSubject=new ut.xQ,this._renderedRangeSubject=new ut.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new Je.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(ue=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(ue))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=et.w.EMPTY,this._viewportChanges=E.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(V){this._orientation!==V&&(this._orientation=V,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(V){this._appendOnly=(0,a.Ig)(V)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,Ue.O)(null),(0,te.e)(0,P)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(V){this.ngZone.runOutsideAngular(()=>{this._forOf=V,this._forOf.dataStream.pipe((0,ie.R)(this._detachedSubject)).subscribe(Be=>{const nt=Be.length;nt!==this._dataLength&&(this._dataLength=nt,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(V){this._totalContentSize!==V&&(this._totalContentSize=V,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(V){(function z(Le,Me){return Le.start==Me.start&&Le.end==Me.end})(this._renderedRange,V)||(this.appendOnly&&(V={start:0,end:Math.max(this._renderedRange.end,V.end)}),this._renderedRangeSubject.next(this._renderedRange=V),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(V,Be="to-start"){const ce="horizontal"==this.orientation,Ne=ce?"X":"Y";let E=`translate${Ne}(${Number((ce&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Be&&(E+=` translate${Ne}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=E&&(this._renderedContentTransform=E,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(V,Be="auto"){const nt={behavior:Be};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Be="auto"){this._scrollStrategy.scrollToIndex(V,Be)}measureScrollOffset(V){return super.measureScrollOffset(V||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const V=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?V.offsetWidth:V.offsetHeight}measureRangeSize(V){return this._forOf?this._forOf.measureRangeSize(V,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const V=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?V.clientWidth:V.clientHeight}_markChangeDetectionNeeded(V){V&&this._runAfterChangeDetection.push(V),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const V=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Be of V)Be()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(un,8),s.Y36(mt.Is,8),s.Y36(cn),s.Y36(x))},Le.\u0275cmp=s.Xpm({type:Le,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Be){if(1&V&&s.Gf(gn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Be._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Be){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Be.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Be.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:Le}]),s.qOj],ngContentSelectors:Ut,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Be){1&V&&(s.F$t(),s.TgZ(0,"div",0,1),s.Hsn(2),s.qZA(),s._UZ(3,"div",2)),2&V&&(s.xp6(3),s.Udp("width",Be._totalContentWidth)("height",Be._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),Le})();function j(Le,Me,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===Le?"start"===Me?nt.left:nt.right:"start"===Me?nt.top:nt.bottom}let me=(()=>{class Le{constructor(V,Be,nt,ce,Ne,L){this._viewContainerRef=V,this._template=Be,this._differs=nt,this._viewRepeater=ce,this._viewport=Ne,this.viewChange=new ut.xQ,this._dataSourceChanges=new ut.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Ue.O)(null),function Xe(){return Le=>Le.lift(new J)}(),(0,je.w)(([E,$])=>this._changeDataSource(E,$)),(0,tt.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ut.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ie.R)(this._destroyed)).subscribe(E=>{this._renderedRange=E,L.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(V){this._cdkVirtualForOf=V,function dt(Le){return Le&&"function"==typeof Le.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new _t(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Be,nt)=>V(Be+(this._renderedRange?this._renderedRange.start:0),nt):void 0}set cdkVirtualForTemplate(V){V&&(this._needsUpdate=!0,this._template=V)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(V){this._viewRepeater.viewCacheSize=(0,a.su)(V)}measureRangeSize(V,Be){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ce=V.end-V.start;let Ne,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Ne&&L?j(Be,"end",L)-j(Be,"start",Ne):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const V=this._differ.diff(this._renderedItems);V?this._applyChanges(V):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((V,Be)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Be):Be)),this._needsUpdate=!0)}_changeDataSource(V,Be){return V&&V.disconnect(this),this._needsUpdate=!0,Be?Be.connect(this):(0,Ie.of)()}_updateContext(){const V=this._data.length;let Be=this._viewContainerRef.length;for(;Be--;){const nt=this._viewContainerRef.get(Be);nt.context.index=this._renderedRange.start+Be,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ce,Ne,L)=>this._getEmbeddedViewArgs(ce,L),ce=>ce.item),V.forEachIdentityChange(ce=>{this._viewContainerRef.get(ce.currentIndex).context.$implicit=ce.item});const Be=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ce=this._viewContainerRef.get(nt);ce.context.index=this._renderedRange.start+nt,ce.context.count=Be,this._updateComputedContextProperties(ce.context)}}_updateComputedContextProperties(V){V.first=0===V.index,V.last=V.index===V.count-1,V.even=V.index%2==0,V.odd=!V.even}_getEmbeddedViewArgs(V,Be){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Be}}}return Le.\u0275fac=function(V){return new(V||Le)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(mn),s.Y36(pe,4),s.Y36(s.R0b))},Le.\u0275dir=s.lG2({type:Le,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:mn,useClass:St}])]}),Le})(),He=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({}),Le})(),Ge=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=s.oAB({type:Le}),Le.\u0275inj=s.cJS({imports:[[mt.vT,ve.ud,He],mt.vT,He]}),Le})()},9808:(yt,be,p)=>{p.d(be,{mr:()=>Je,Ov:()=>vo,ez:()=>Vo,K0:()=>W,uU:()=>Ii,JJ:()=>qo,Do:()=>ut,V_:()=>H,Ye:()=>Ie,S$:()=>_e,mk:()=>$n,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Vt,ED:()=>hn,tP:()=>io,wE:()=>ie,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Wn,dv:()=>ot,NF:()=>hi,qS:()=>Lt,w_:()=>_,bD:()=>Lo,q:()=>G,Mx:()=>Un,HT:()=>q});var a=p(5e3);let s=null;function G(){return s}function q(b){s||(s=b)}class _{}const W=new a.OlP("DocumentToken");let I=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function R(){return(0,a.LFG)(B)}()},providedIn:"platform"}),b})();const H=new a.OlP("Location Initialized");let B=(()=>{class b extends I{constructor(w){super(),this._doc=w,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=G().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",w,!1),()=>Q.removeEventListener("hashchange",w)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(w){this.location.pathname=w}pushState(w,Q,xe){ee()?this._history.pushState(w,Q,xe):this.location.hash=xe}replaceState(w,Q,xe){ee()?this._history.replaceState(w,Q,xe):this.location.hash=xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(w=0){this._history.go(w)}getState(){return this._history.state}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(W))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function ye(){return new B((0,a.LFG)(W))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function Ye(b,Y){if(0==b.length)return Y;if(0==Y.length)return b;let w=0;return b.endsWith("/")&&w++,Y.startsWith("/")&&w++,2==w?b+Y.substring(1):1==w?b+Y:b+"/"+Y}function Fe(b){const Y=b.match(/#|\?|$/),w=Y&&Y.index||b.length;return b.slice(0,w-("/"===b[w-1]?1:0))+b.slice(w)}function ze(b){return b&&"?"!==b[0]?"?"+b:b}let _e=(()=>{class b{historyGo(w){throw new Error("Not implemented")}}return b.\u0275fac=function(w){return new(w||b)},b.\u0275prov=a.Yz7({token:b,factory:function(){return function vt(b){const Y=(0,a.LFG)(W).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const Je=new a.OlP("appBaseHref");let zt=(()=>{class b extends _e{constructor(w,Q){if(super(),this._platformLocation=w,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}prepareExternalUrl(w){return Ye(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+ze(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&w?`${Q}${xe}`:Q}pushState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){const Mt=this.prepareExternalUrl(xe+ze(ct));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ut=(()=>{class b extends _e{constructor(w,Q){super(),this._platformLocation=w,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(w){this._removeListenerFns.push(this._platformLocation.onPopState(w),this._platformLocation.onHashChange(w))}getBaseHref(){return this._baseHref}path(w=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(w){const Q=Ye(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,xe,ct){let Mt=this.prepareExternalUrl(xe+ze(ct));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformLocation).historyGo)||void 0===xe||xe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(Je,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),Ie=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const xe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Fe(Se(xe)),this._platformStrategy.onPopState(ct=>{this._subject.emit({url:this.path(!0),pop:!0,state:ct.state,type:ct.type})})}path(w=!1){return this.normalize(this._platformStrategy.path(w))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(w,Q=""){return this.path()==this.normalize(w+ze(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,Se(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",xe=null){this._platformStrategy.pushState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}replaceState(w,Q="",xe=null){this._platformStrategy.replaceState(xe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+ze(Q)),xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,xe;null===(xe=(Q=this._platformStrategy).historyGo)||void 0===xe||xe.call(Q,w)}onUrlChange(w){this._urlChangeListeners.push(w),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(w="",Q){this._urlChangeListeners.forEach(xe=>xe(w,Q))}subscribe(w,Q,xe){return this._subject.subscribe({next:w,error:Q,complete:xe})}}return b.normalizeQueryParams=ze,b.joinWithSlash=Ye,b.stripTrailingSlash=Fe,b.\u0275fac=function(w){return new(w||b)(a.LFG(_e),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function $e(){return new Ie((0,a.LFG)(_e),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function Se(b){return b.replace(/\/index.html$/,"")}var J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Percent=1]="Percent",J[J.Currency=2]="Currency",J[J.Scientific=3]="Scientific",J))(),fe=(()=>((fe=fe||{})[fe.Zero=0]="Zero",fe[fe.One=1]="One",fe[fe.Two=2]="Two",fe[fe.Few=3]="Few",fe[fe.Many=4]="Many",fe[fe.Other=5]="Other",fe))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),te=(()=>((te=te||{})[te.Narrow=0]="Narrow",te[te.Abbreviated=1]="Abbreviated",te[te.Wide=2]="Wide",te[te.Short=3]="Short",te))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))();function _t(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function it(b,Y){return cn((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return cn((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function ot(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===ie.CurrencyDecimal)return w[a.wAp.NumberSymbols][ie.Decimal];if(Y===ie.CurrencyGroup)return w[a.wAp.NumberSymbols][ie.Group]}return Q}const un=a.kL8;function _n(b){if(!b[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(b,Y){for(let w=Y;w>-1;w--)if(void 0!==b[w])return b[w];throw new Error("Locale data API: locale data undefined")}function Mn(b){const[Y,w]=b.split(":");return{hours:+Y,minutes:+w}}const P=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},j=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var me=(()=>((me=me||{})[me.Short=0]="Short",me[me.ShortGMT=1]="ShortGMT",me[me.Long=2]="Long",me[me.Extended=3]="Extended",me))(),He=(()=>((He=He||{})[He.FullYear=0]="FullYear",He[He.Month=1]="Month",He[He.Date=2]="Date",He[He.Hours=3]="Hours",He[He.Minutes=4]="Minutes",He[He.Seconds=5]="Seconds",He[He.FractionalSeconds=6]="FractionalSeconds",He[He.Day=7]="Day",He))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Le(b,Y,w,Q){let xe=function we(b){if(Ve(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[xe,ct=1,Mt=1]=b.split("-").map(kt=>+kt);return Me(xe,ct-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function ae(b){const Y=new Date(0);let w=0,Q=0;const xe=b[8]?Y.setUTCFullYear:Y.setFullYear,ct=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),xe.call(Y,Number(b[1]),Number(b[2])-1,Number(b[3]));const Mt=Number(b[4]||0)-w,kt=Number(b[5]||0)-Q,Fn=Number(b[6]||0),Tn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ct.call(Y,Mt,kt,Fn,Tn),Y}(Q)}const Y=new Date(b);if(!Ve(Y))throw new Error(`Unable to convert "${b}" into a date`);return Y}(b);Y=V(w,Y)||Y;let kt,Mt=[];for(;Y;){if(kt=j.exec(Y),!kt){Mt.push(Y);break}{Mt=Mt.concat(kt.slice(1));const Dn=Mt.pop();if(!Dn)break;Y=Dn}}let Fn=xe.getTimezoneOffset();Q&&(Fn=jn(Q,Fn),xe=function Re(b,Y,w){const Q=w?-1:1,xe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(jn(Y,xe)-xe))}(xe,Q,!0));let Tn="";return Mt.forEach(Dn=>{const dn=function ri(b){if(An[b])return An[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ge.Eras,te.Abbreviated);break;case"GGGG":Y=E(Ge.Eras,te.Wide);break;case"GGGGG":Y=E(Ge.Eras,te.Narrow);break;case"y":Y=Ne(He.FullYear,1,0,!1,!0);break;case"yy":Y=Ne(He.FullYear,2,0,!0,!0);break;case"yyy":Y=Ne(He.FullYear,3,0,!1,!0);break;case"yyyy":Y=Ne(He.FullYear,4,0,!1,!0);break;case"Y":Y=Vn(1);break;case"YY":Y=Vn(2,!0);break;case"YYY":Y=Vn(3);break;case"YYYY":Y=Vn(4);break;case"M":case"L":Y=Ne(He.Month,1,1);break;case"MM":case"LL":Y=Ne(He.Month,2,1);break;case"MMM":Y=E(Ge.Months,te.Abbreviated);break;case"MMMM":Y=E(Ge.Months,te.Wide);break;case"MMMMM":Y=E(Ge.Months,te.Narrow);break;case"LLL":Y=E(Ge.Months,te.Abbreviated,he.Standalone);break;case"LLLL":Y=E(Ge.Months,te.Wide,he.Standalone);break;case"LLLLL":Y=E(Ge.Months,te.Narrow,he.Standalone);break;case"w":Y=vn(1);break;case"ww":Y=vn(2);break;case"W":Y=vn(1,!0);break;case"d":Y=Ne(He.Date,1);break;case"dd":Y=Ne(He.Date,2);break;case"c":case"cc":Y=Ne(He.Day,1);break;case"ccc":Y=E(Ge.Days,te.Abbreviated,he.Standalone);break;case"cccc":Y=E(Ge.Days,te.Wide,he.Standalone);break;case"ccccc":Y=E(Ge.Days,te.Narrow,he.Standalone);break;case"cccccc":Y=E(Ge.Days,te.Short,he.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ge.Days,te.Abbreviated);break;case"EEEE":Y=E(Ge.Days,te.Wide);break;case"EEEEE":Y=E(Ge.Days,te.Narrow);break;case"EEEEEE":Y=E(Ge.Days,te.Short);break;case"a":case"aa":case"aaa":Y=E(Ge.DayPeriods,te.Abbreviated);break;case"aaaa":Y=E(Ge.DayPeriods,te.Wide);break;case"aaaaa":Y=E(Ge.DayPeriods,te.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ge.DayPeriods,te.Abbreviated,he.Standalone,!0);break;case"bbbb":Y=E(Ge.DayPeriods,te.Wide,he.Standalone,!0);break;case"bbbbb":Y=E(Ge.DayPeriods,te.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ge.DayPeriods,te.Abbreviated,he.Format,!0);break;case"BBBB":Y=E(Ge.DayPeriods,te.Wide,he.Format,!0);break;case"BBBBB":Y=E(Ge.DayPeriods,te.Narrow,he.Format,!0);break;case"h":Y=Ne(He.Hours,1,-12);break;case"hh":Y=Ne(He.Hours,2,-12);break;case"H":Y=Ne(He.Hours,1);break;case"HH":Y=Ne(He.Hours,2);break;case"m":Y=Ne(He.Minutes,1);break;case"mm":Y=Ne(He.Minutes,2);break;case"s":Y=Ne(He.Seconds,1);break;case"ss":Y=Ne(He.Seconds,2);break;case"S":Y=Ne(He.FractionalSeconds,1);break;case"SS":Y=Ne(He.FractionalSeconds,2);break;case"SSS":Y=Ne(He.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=ue(me.Short);break;case"ZZZZZ":Y=ue(me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=ue(me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=ue(me.Long);break;default:return null}return An[b]=Y,Y}(Dn);Tn+=dn?dn(xe,w,Fn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Tn}function Me(b,Y,w){const Q=new Date(0);return Q.setFullYear(b,Y,w),Q.setHours(0,0,0),Q}function V(b,Y){const w=function je(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(pe[w]=pe[w]||{},pe[w][Y])return pe[w][Y];let Q="";switch(Y){case"shortDate":Q=_t(b,le.Short);break;case"mediumDate":Q=_t(b,le.Medium);break;case"longDate":Q=_t(b,le.Long);break;case"fullDate":Q=_t(b,le.Full);break;case"shortTime":Q=it(b,le.Short);break;case"mediumTime":Q=it(b,le.Medium);break;case"longTime":Q=it(b,le.Long);break;case"fullTime":Q=it(b,le.Full);break;case"short":const xe=V(b,"shortTime"),ct=V(b,"shortDate");Q=Be(St(b,le.Short),[xe,ct]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Be(St(b,le.Medium),[Mt,kt]);break;case"long":const Fn=V(b,"longTime"),Tn=V(b,"longDate");Q=Be(St(b,le.Long),[Fn,Tn]);break;case"full":const Dn=V(b,"fullTime"),dn=V(b,"fullDate");Q=Be(St(b,le.Full),[Dn,dn])}return Q&&(pe[w][Y]=Q),Q}function Be(b,Y){return Y&&(b=b.replace(/\{([^}]+)}/g,function(w,Q){return null!=Y&&Q in Y?Y[Q]:w})),b}function nt(b,Y,w="-",Q,xe){let ct="";(b<0||xe&&b<=0)&&(xe?b=1-b:(b=-b,ct=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===He.Hours)0===kt&&-12===w&&(kt=12);else if(b===He.FractionalSeconds)return function ce(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Fn=ot(Mt,ie.MinusSign);return nt(kt,Y,Fn,Q,xe)}}function E(b,Y,w=he.Format,Q=!1){return function(xe,ct){return function $(b,Y,w,Q,xe,ct){switch(w){case Ge.Months:return function ve(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getMonth()];case Ge.Days:return function ke(b,Y,w){const Q=(0,a.cg1)(b),ct=cn([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return cn(ct,w)}(Y,xe,Q)[b.getDay()];case Ge.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(ct){const Tn=function Cn(b){const Y=(0,a.cg1)(b);return _n(Y),(Y[a.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Mn(Q):[Mn(Q[0]),Mn(Q[1])])}(Y),Dn=function Dt(b,Y,w){const Q=(0,a.cg1)(b);_n(Q);const ct=cn([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return cn(ct,w)||[]}(Y,xe,Q),dn=Tn.findIndex(Yn=>{if(Array.isArray(Yn)){const[On,Yt]=Yn,Eo=Mt>=On.hours&&kt>=On.minutes,D=Mt0?Math.floor(xe/60):Math.ceil(xe/60);switch(b){case me.Short:return(xe>=0?"+":"")+nt(Mt,2,ct)+nt(Math.abs(xe%60),2,ct);case me.ShortGMT:return"GMT"+(xe>=0?"+":"")+nt(Mt,1,ct);case me.Long:return"GMT"+(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);case me.Extended:return 0===Q?"Z":(xe>=0?"+":"")+nt(Mt,2,ct)+":"+nt(Math.abs(xe%60),2,ct);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return Me(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function vn(b,Y=!1){return function(w,Q){let xe;if(Y){const ct=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();xe=1+Math.floor((Mt+ct)/7)}else{const ct=Qt(w),Mt=function At(b){const Y=Me(b,0,1).getDay();return Me(b,0,1+(Y<=4?4:11)-Y)}(ct.getFullYear()),kt=ct.getTime()-Mt.getTime();xe=1+Math.round(kt/6048e5)}return nt(xe,b,ot(Q,ie.MinusSign))}}function Vn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,ot(Q,ie.MinusSign),Y)}}const An={};function jn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Ve(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function De(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class rt{}let on=(()=>{class b extends rt{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(un(Q||this.locale)(w)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(a.soG))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})();function Lt(b,Y,w){return(0,a.dwT)(b,Y,w)}function Un(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[xe,ct]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(xe.trim()===Y)return decodeURIComponent(ct)}return null}let $n=(()=>{class b{constructor(w,Q,xe,ct){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=xe,this._renderer=ct,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(w){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof w?w.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(w){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof w?w.split(/\s+/):w,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const w=this._iterableDiffer.diff(this._rawClass);w&&this._applyIterableChanges(w)}else if(this._keyValueDiffer){const w=this._keyValueDiffer.diff(this._rawClass);w&&this._applyKeyValueChanges(w)}}_applyKeyValueChanges(w){w.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),w.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(w){w.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),w.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!!w[Q])))}_removeClasses(w){w&&(Array.isArray(w)||w instanceof Set?w.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(w).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(w,Q){(w=w.trim())&&w.split(/\s+/g).forEach(xe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,xe):this._renderer.removeClass(this._ngEl.nativeElement,xe)})}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),b})();class Rn{constructor(Y,w,Q,xe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=xe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{class b{constructor(w,Q,xe){this._viewContainer=w,this._template=Q,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(w){this._ngForOf=w,this._ngForOfDirty=!0}set ngForTrackBy(w){this._trackByFn=w}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(w){w&&(this._template=w)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const w=this._ngForOf;!this._differ&&w&&(this._differ=this._differs.find(w).create(this.ngForTrackBy))}if(this._differ){const w=this._differ.diff(this._ngForOf);w&&this._applyChanges(w)}}_applyChanges(w){const Q=this._viewContainer;w.forEachOperation((xe,ct,Mt)=>{if(null==xe.previousIndex)Q.createEmbeddedView(this._template,new Rn(xe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===ct?void 0:ct);else if(null!==ct){const kt=Q.get(ct);Q.move(kt,Mt),X(kt,xe)}});for(let xe=0,ct=Q.length;xe{X(Q.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),b})();function X(b,Y){b.context.$implicit=Y.item}let k=(()=>{class b{constructor(w,Q){this._viewContainer=w,this._context=new Ee,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(w){this._context.$implicit=this._context.ngIf=w,this._updateView()}set ngIfThen(w){st("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){st("ngIfElse",w),this._elseTemplateRef=w,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(w,Q){return!0}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),b})();class Ee{constructor(){this.$implicit=null,this.ngIf=null}}function st(b,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Ct{constructor(Y,w){this._viewContainerRef=Y,this._templateRef=w,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let Ot=(()=>{class b{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(w){this._ngSwitch=w,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(w){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(w)}_matchCase(w){const Q=w==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(w){if(this._defaultViews&&w!==this._defaultUsed){this._defaultUsed=w;for(let Q=0;Q{class b{constructor(w,Q,xe){this.ngSwitch=xe,xe._addCase(),this._view=new Ct(w,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),b})(),hn=(()=>{class b{constructor(w,Q,xe){xe._addDefault(new Ct(w,Q))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ot,9))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngSwitchDefault",""]]}),b})(),bi=(()=>{class b{constructor(w,Q,xe){this._ngEl=w,this._differs=Q,this._renderer=xe,this._ngStyle=null,this._differ=null}set ngStyle(w){this._ngStyle=w,!this._differ&&w&&(this._differ=this._differs.find(w).create())}ngDoCheck(){if(this._differ){const w=this._differ.diff(this._ngStyle);w&&this._applyChanges(w)}}_setStyle(w,Q){const[xe,ct]=w.split(".");null!=(Q=null!=Q&&ct?`${Q}${ct}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,xe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,xe)}_applyChanges(w){w.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),w.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),w.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),b})(),io=(()=>{class b{constructor(w){this._viewContainerRef=w,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(w){if(w.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&w.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.s_b))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),b})();function vi(b,Y){return new a.vHH(2100,"")}class ui{createSubscription(Y,w){return Y.subscribe({next:w,error:Q=>{throw Q}})}dispose(Y){Y.unsubscribe()}onDestroy(Y){Y.unsubscribe()}}class wi{createSubscription(Y,w){return Y.then(w,Q=>{throw Q})}dispose(Y){}onDestroy(Y){}}const ko=new wi,Fo=new ui;let vo=(()=>{class b{constructor(w){this._ref=w,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(w){return this._obj?w!==this._obj?(this._dispose(),this.transform(w)):this._latestValue:(w&&this._subscribe(w),this._latestValue)}_subscribe(w){this._obj=w,this._strategy=this._selectStrategy(w),this._subscription=this._strategy.createSubscription(w,Q=>this._updateLatestValue(w,Q))}_selectStrategy(w){if((0,a.QGY)(w))return ko;if((0,a.F4k)(w))return Fo;throw vi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(w,Q){w===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.sBO,16))},b.\u0275pipe=a.Yjl({name:"async",type:b,pure:!1}),b})();const sr=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ii=(()=>{class b{constructor(w,Q){this.locale=w,this.defaultTimezone=Q}transform(w,Q="mediumDate",xe,ct){var Mt;if(null==w||""===w||w!=w)return null;try{return Le(w,Q,ct||this.locale,null!==(Mt=null!=xe?xe:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(kt){throw vi()}}}return b.\u0275fac=function(w){return new(w||b)(a.Y36(a.soG,16),a.Y36(sr,24))},b.\u0275pipe=a.Yjl({name:"date",type:b,pure:!0}),b})(),qo=(()=>{class b{constructor(w){this._locale=w}transform(w,Q,xe){if(!function oi(b){return!(null==b||""===b||b!=b)}(w))return null;xe=xe||this._locale;try{return function rn(b,Y,w){return function ei(b,Y,w,Q,xe,ct,Mt=!1){let kt="",Fn=!1;if(isFinite(b)){let Tn=function Te(b){let Q,xe,ct,Mt,kt,Y=Math.abs(b)+"",w=0;for((xe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(ct=Y.search(/e/i))>0?(xe<0&&(xe=ct),xe+=+Y.slice(ct+1),Y=Y.substring(0,ct)):xe<0&&(xe=Y.length),ct=0;"0"===Y.charAt(ct);ct++);if(ct===(kt=Y.length))Q=[0],xe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(xe-=ct,Q=[],Mt=0;ct<=kt;ct++,Mt++)Q[Mt]=Number(Y.charAt(ct))}return xe>22&&(Q=Q.splice(0,21),w=xe-1,xe=1),{digits:Q,exponent:w,integerLen:xe}}(b);Mt&&(Tn=function Qn(b){if(0===b.digits[0])return b;const Y=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===Y?b.digits.push(0,0):1===Y&&b.digits.push(0),b.integerLen+=2),b}(Tn));let Dn=Y.minInt,dn=Y.minFrac,Yn=Y.maxFrac;if(ct){const y=ct.match(ht);if(null===y)throw new Error(`${ct} is not a valid digit info`);const U=y[1],at=y[3],Nt=y[5];null!=U&&(Dn=De(U)),null!=at&&(dn=De(at)),null!=Nt?Yn=De(Nt):null!=at&&dn>Yn&&(Yn=dn)}!function Ze(b,Y,w){if(Y>w)throw new Error(`The minimum number of digits after fraction (${Y}) is higher than the maximum (${w}).`);let Q=b.digits,xe=Q.length-b.integerLen;const ct=Math.min(Math.max(Y,xe),w);let Mt=ct+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let dn=Mt;dn=5)if(Mt-1<0){for(let dn=0;dn>Mt;dn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;xe=Tn?Yt.pop():Fn=!1),Yn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(Tn,dn,Yn);let On=Tn.digits,Yt=Tn.integerLen;const Eo=Tn.exponent;let D=[];for(Fn=On.every(y=>!y);Yt0?D=On.splice(Yt,On.length):(D=On,On=[0]);const C=[];for(On.length>=Y.lgSize&&C.unshift(On.splice(-Y.lgSize,On.length).join(""));On.length>Y.gSize;)C.unshift(On.splice(-Y.gSize,On.length).join(""));On.length&&C.unshift(On.join("")),kt=C.join(ot(w,Q)),D.length&&(kt+=ot(w,xe)+D.join("")),Eo&&(kt+=ot(w,ie.Exponential)+"+"+Eo)}else kt=ot(w,ie.Infinity);return kt=b<0&&!Fn?Y.negPre+kt+Y.negSuf:Y.posPre+kt+Y.posSuf,kt}(b,function bn(b,Y="-"){const w={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Q=b.split(";"),xe=Q[0],ct=Q[1],Mt=-1!==xe.indexOf(".")?xe.split("."):[xe.substring(0,xe.lastIndexOf("0")+1),xe.substring(xe.lastIndexOf("0")+1)],kt=Mt[0],Fn=Mt[1]||"";w.posPre=kt.substr(0,kt.indexOf("#"));for(let Dn=0;Dn{class b{}return b.\u0275fac=function(w){return new(w||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({providers:[{provide:rt,useClass:on}]}),b})();const Lo="browser";function hi(b){return b===Lo}let Qi=(()=>{class b{}return b.\u0275prov=(0,a.Yz7)({token:b,providedIn:"root",factory:()=>new Xo((0,a.LFG)(W),window)}),b})();class Xo{constructor(Y,w){this.document=Y,this.window=w,this.offset=()=>[0,0]}setOffset(Y){this.offset=Array.isArray(Y)?()=>Y:Y}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Y){this.supportsScrolling()&&this.window.scrollTo(Y[0],Y[1])}scrollToAnchor(Y){if(!this.supportsScrolling())return;const w=function Pi(b,Y){const w=b.getElementById(Y)||b.getElementsByName(Y)[0];if(w)return w;if("function"==typeof b.createTreeWalker&&b.body&&(b.body.createShadowRoot||b.body.attachShadow)){const Q=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let xe=Q.currentNode;for(;xe;){const ct=xe.shadowRoot;if(ct){const Mt=ct.getElementById(Y)||ct.querySelector(`[name="${Y}"]`);if(Mt)return Mt}xe=Q.nextNode()}}return null}(this.document,Y);w&&(this.scrollToElement(w),this.attemptFocus(w))}setHistoryScrollRestoration(Y){if(this.supportScrollRestoration()){const w=this.window.history;w&&w.scrollRestoration&&(w.scrollRestoration=Y)}}scrollToElement(Y){const w=Y.getBoundingClientRect(),Q=w.left+this.window.pageXOffset,xe=w.top+this.window.pageYOffset,ct=this.offset();this.window.scrollTo(Q-ct[0],xe-ct[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Bn(this.window.history)||Bn(Object.getPrototypeOf(this.window.history));return!(!Y||!Y.writable&&!Y.set)}catch(Y){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Y){return!1}}}function Bn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Wn{}},520:(yt,be,p)=>{p.d(be,{TP:()=>je,jN:()=>R,eN:()=>ie,JF:()=>cn,WM:()=>H,LE:()=>_e,aW:()=>Se,Zn:()=>he});var a=p(9808),s=p(5e3),G=p(1086),oe=p(6498),q=p(1406),_=p(2198),W=p(4850);class I{}class R{}class H{constructor(z){this.normalizedNames=new Map,this.lazyUpdate=null,z?this.lazyInit="string"==typeof z?()=>{this.headers=new Map,z.split("\n").forEach(P=>{const pe=P.indexOf(":");if(pe>0){const j=P.slice(0,pe),me=j.toLowerCase(),He=P.slice(pe+1).trim();this.maybeSetNormalizedName(j,me),this.headers.has(me)?this.headers.get(me).push(He):this.headers.set(me,[He])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let pe=z[P];const j=P.toLowerCase();"string"==typeof pe&&(pe=[pe]),pe.length>0&&(this.headers.set(j,pe),this.maybeSetNormalizedName(P,j))})}:this.headers=new Map}has(z){return this.init(),this.headers.has(z.toLowerCase())}get(z){this.init();const P=this.headers.get(z.toLowerCase());return P&&P.length>0?P[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(z){return this.init(),this.headers.get(z.toLowerCase())||null}append(z,P){return this.clone({name:z,value:P,op:"a"})}set(z,P){return this.clone({name:z,value:P,op:"s"})}delete(z,P){return this.clone({name:z,value:P,op:"d"})}maybeSetNormalizedName(z,P){this.normalizedNames.has(P)||this.normalizedNames.set(P,z)}init(){this.lazyInit&&(this.lazyInit instanceof H?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(z=>this.applyUpdate(z)),this.lazyUpdate=null))}copyFrom(z){z.init(),Array.from(z.headers.keys()).forEach(P=>{this.headers.set(P,z.headers.get(P)),this.normalizedNames.set(P,z.normalizedNames.get(P))})}clone(z){const P=new H;return P.lazyInit=this.lazyInit&&this.lazyInit instanceof H?this.lazyInit:this,P.lazyUpdate=(this.lazyUpdate||[]).concat([z]),P}applyUpdate(z){const P=z.name.toLowerCase();switch(z.op){case"a":case"s":let pe=z.value;if("string"==typeof pe&&(pe=[pe]),0===pe.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...pe),this.headers.set(P,j);break;case"d":const me=z.value;if(me){let He=this.headers.get(P);if(!He)return;He=He.filter(Ge=>-1===me.indexOf(Ge)),0===He.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,He)}else this.headers.delete(P),this.normalizedNames.delete(P)}}forEach(z){this.init(),Array.from(this.normalizedNames.keys()).forEach(P=>z(this.normalizedNames.get(P),this.headers.get(P)))}}class B{encodeKey(z){return Fe(z)}encodeValue(z){return Fe(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const ye=/%(\d[a-f0-9])/gi,Ye={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Fe(x){return encodeURIComponent(x).replace(ye,(z,P)=>{var pe;return null!==(pe=Ye[P])&&void 0!==pe?pe:z})}function ze(x){return`${x}`}class _e{constructor(z={}){if(this.updates=null,this.cloneFrom=null,this.encoder=z.encoder||new B,z.fromString){if(z.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(x,z){const P=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(j=>{const me=j.indexOf("="),[He,Ge]=-1==me?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,me)),z.decodeValue(j.slice(me+1))],Le=P.get(He)||[];Le.push(Ge),P.set(He,Le)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const pe=z.fromObject[P];this.map.set(P,Array.isArray(pe)?pe:[pe])})):this.map=null}has(z){return this.init(),this.map.has(z)}get(z){this.init();const P=this.map.get(z);return P?P[0]:null}getAll(z){return this.init(),this.map.get(z)||null}keys(){return this.init(),Array.from(this.map.keys())}append(z,P){return this.clone({param:z,value:P,op:"a"})}appendAll(z){const P=[];return Object.keys(z).forEach(pe=>{const j=z[pe];Array.isArray(j)?j.forEach(me=>{P.push({param:pe,value:me,op:"a"})}):P.push({param:pe,value:j,op:"a"})}),this.clone(P)}set(z,P){return this.clone({param:z,value:P,op:"s"})}delete(z,P){return this.clone({param:z,value:P,op:"d"})}toString(){return this.init(),this.keys().map(z=>{const P=this.encoder.encodeKey(z);return this.map.get(z).map(pe=>P+"="+this.encoder.encodeValue(pe)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new _e({encoder:this.encoder});return P.cloneFrom=this.cloneFrom||this,P.updates=(this.updates||[]).concat(z),P}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(z=>this.map.set(z,this.cloneFrom.map.get(z))),this.updates.forEach(z=>{switch(z.op){case"a":case"s":const P=("a"===z.op?this.map.get(z.param):void 0)||[];P.push(ze(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let pe=this.map.get(z.param)||[];const j=pe.indexOf(ze(z.value));-1!==j&&pe.splice(j,1),pe.length>0?this.map.set(z.param,pe):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class Je{constructor(){this.map=new Map}set(z,P){return this.map.set(z,P),this}get(z){return this.map.has(z)||this.map.set(z,z.defaultValue()),this.map.get(z)}delete(z){return this.map.delete(z),this}has(z){return this.map.has(z)}keys(){return this.map.keys()}}function ut(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Ie(x){return"undefined"!=typeof Blob&&x instanceof Blob}function $e(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Se{constructor(z,P,pe,j){let me;if(this.url=P,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=z.toUpperCase(),function zt(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||j?(this.body=void 0!==pe?pe:null,me=j):me=pe,me&&(this.reportProgress=!!me.reportProgress,this.withCredentials=!!me.withCredentials,me.responseType&&(this.responseType=me.responseType),me.headers&&(this.headers=me.headers),me.context&&(this.context=me.context),me.params&&(this.params=me.params)),this.headers||(this.headers=new H),this.context||(this.context=new Je),this.params){const He=this.params.toString();if(0===He.length)this.urlWithParams=P;else{const Ge=P.indexOf("?");this.urlWithParams=P+(-1===Ge?"?":Gent.set(ce,z.setHeaders[ce]),Me)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ce)=>nt.set(ce,z.setParams[ce]),V)),new Se(pe,j,He,{params:V,headers:Me,context:Be,reportProgress:Le,responseType:me,withCredentials:Ge})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class J{constructor(z,P=200,pe="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||pe,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends J{constructor(z={}){super(z),this.type=Xe.ResponseHeader}clone(z={}){return new fe({headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class he extends J{constructor(z={}){super(z),this.type=Xe.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new he({body:void 0!==z.body?z.body:this.body,headers:z.headers||this.headers,status:void 0!==z.status?z.status:this.status,statusText:z.statusText||this.statusText,url:z.url||this.url||void 0})}}class te extends J{constructor(z){super(z,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${z.url||"(unknown url)"}`:`Http failure response for ${z.url||"(unknown url)"}: ${z.status} ${z.statusText}`,this.error=z.error||null}}function le(x,z){return{body:z,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let ie=(()=>{class x{constructor(P){this.handler=P}request(P,pe,j={}){let me;if(P instanceof Se)me=P;else{let Le,Me;Le=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(Me=j.params instanceof _e?j.params:new _e({fromObject:j.params})),me=new Se(P,pe,void 0!==j.body?j.body:null,{headers:Le,context:j.context,params:Me,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const He=(0,G.of)(me).pipe((0,q.b)(Le=>this.handler.handle(Le)));if(P instanceof Se||"events"===j.observe)return He;const Ge=He.pipe((0,_.h)(Le=>Le instanceof he));switch(j.observe||"body"){case"body":switch(me.responseType){case"arraybuffer":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Le.body}));case"blob":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&!(Le.body instanceof Blob))throw new Error("Response is not a Blob.");return Le.body}));case"text":return Ge.pipe((0,W.U)(Le=>{if(null!==Le.body&&"string"!=typeof Le.body)throw new Error("Response is not a string.");return Le.body}));default:return Ge.pipe((0,W.U)(Le=>Le.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,pe={}){return this.request("DELETE",P,pe)}get(P,pe={}){return this.request("GET",P,pe)}head(P,pe={}){return this.request("HEAD",P,pe)}jsonp(P,pe){return this.request("JSONP",P,{params:(new _e).append(pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,pe={}){return this.request("OPTIONS",P,pe)}patch(P,pe,j={}){return this.request("PATCH",P,le(j,pe))}post(P,pe,j={}){return this.request("POST",P,le(j,pe))}put(P,pe,j={}){return this.request("PUT",P,le(j,pe))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class Ue{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const je=new s.OlP("HTTP_INTERCEPTORS");let tt=(()=>{class x{intercept(P,pe){return pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const St=/^\)\]\}',?\n/;let Et=(()=>{class x{constructor(P){this.xhrFactory=P}handle(P){if("JSONP"===P.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new oe.y(pe=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ce,Ne)=>j.setRequestHeader(ce,Ne.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ce=P.detectContentTypeHeader();null!==ce&&j.setRequestHeader("Content-Type",ce)}if(P.responseType){const ce=P.responseType.toLowerCase();j.responseType="json"!==ce?ce:"text"}const me=P.serializeBody();let He=null;const Ge=()=>{if(null!==He)return He;const ce=1223===j.status?204:j.status,Ne=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function ot(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(j)||P.url;return He=new fe({headers:L,status:ce,statusText:Ne,url:E}),He},Le=()=>{let{headers:ce,status:Ne,statusText:L,url:E}=Ge(),$=null;204!==Ne&&($=void 0===j.response?j.responseText:j.response),0===Ne&&(Ne=$?200:0);let ue=Ne>=200&&Ne<300;if("json"===P.responseType&&"string"==typeof $){const Ae=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ae,ue&&(ue=!1,$={error:wt,text:$})}}ue?(pe.next(new he({body:$,headers:ce,status:Ne,statusText:L,url:E||void 0})),pe.complete()):pe.error(new te({error:$,headers:ce,status:Ne,statusText:L,url:E||void 0}))},Me=ce=>{const{url:Ne}=Ge(),L=new te({error:ce,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Ne||void 0});pe.error(L)};let V=!1;const Be=ce=>{V||(pe.next(Ge()),V=!0);let Ne={type:Xe.DownloadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),"text"===P.responseType&&!!j.responseText&&(Ne.partialText=j.responseText),pe.next(Ne)},nt=ce=>{let Ne={type:Xe.UploadProgress,loaded:ce.loaded};ce.lengthComputable&&(Ne.total=ce.total),pe.next(Ne)};return j.addEventListener("load",Le),j.addEventListener("error",Me),j.addEventListener("timeout",Me),j.addEventListener("abort",Me),P.reportProgress&&(j.addEventListener("progress",Be),null!==me&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(me),pe.next({type:Xe.Sent}),()=>{j.removeEventListener("error",Me),j.removeEventListener("abort",Me),j.removeEventListener("load",Le),j.removeEventListener("timeout",Me),P.reportProgress&&(j.removeEventListener("progress",Be),null!==me&&j.upload&&j.upload.removeEventListener("progress",nt)),j.readyState!==j.DONE&&j.abort()}})}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.JF))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();const Zt=new s.OlP("XSRF_COOKIE_NAME"),mn=new s.OlP("XSRF_HEADER_NAME");class gn{}let Ut=(()=>{class x{constructor(P,pe,j){this.doc=P,this.platform=pe,this.cookieName=j,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const P=this.doc.cookie||"";return P!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(P,this.cookieName),this.lastCookieString=P),this.lastToken}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(a.K0),s.LFG(s.Lbi),s.LFG(Zt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),un=(()=>{class x{constructor(P,pe){this.tokenService=P,this.headerName=pe}intercept(P,pe){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return pe.handle(P);const me=this.tokenService.getToken();return null!==me&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,me)})),pe.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(gn),s.LFG(mn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,pe){this.backend=P,this.injector=pe,this.chain=null}handle(P){if(null===this.chain){const pe=this.injector.get(je,[]);this.chain=pe.reduceRight((j,me)=>new Ue(j,me),this.backend)}return this.chain.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(R),s.LFG(s.zs3))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),Sn=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:un,useClass:tt}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Zt,useValue:P.cookieName}:[],P.headerName?{provide:mn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[un,{provide:je,useExisting:un,multi:!0},{provide:gn,useClass:Ut},{provide:Zt,useValue:"XSRF-TOKEN"},{provide:mn,useValue:"X-XSRF-TOKEN"}]}),x})(),cn=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[ie,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(yt,be,p)=>{p.d(be,{deG:()=>b2,tb:()=>Mh,AFp:()=>yh,ip1:()=>X4,CZH:()=>ks,hGG:()=>tp,z2F:()=>Ma,sBO:()=>O9,Sil:()=>t2,_Vd:()=>pa,EJc:()=>wh,SBq:()=>ma,qLn:()=>gs,vpe:()=>rr,tBr:()=>hs,XFs:()=>Dt,OlP:()=>li,zs3:()=>fo,ZZ4:()=>J1,aQg:()=>X1,soG:()=>Q1,YKP:()=>zu,h0i:()=>Ps,PXZ:()=>w9,R0b:()=>mo,FiY:()=>_r,Lbi:()=>Ch,g9A:()=>_h,Qsj:()=>uf,FYo:()=>bu,JOm:()=>jo,q3G:()=>mi,tp0:()=>Ar,Rgc:()=>_a,dDg:()=>zh,DyG:()=>Ys,GfV:()=>wu,s_b:()=>W1,ifc:()=>me,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>an,vHH:()=>Fe,EiD:()=>Ec,mCW:()=>fs,qzn:()=>Ir,JVY:()=>t3,pB0:()=>r3,eBb:()=>vc,L6k:()=>n3,LAX:()=>o3,cg1:()=>P4,kL8:()=>W0,yhl:()=>gc,dqk:()=>V,sIi:()=>bs,CqO:()=>X6,QGY:()=>y4,F4k:()=>J6,dwT:()=>i7,RDi:()=>Jo,AaK:()=>I,z3N:()=>er,qOj:()=>O1,TTD:()=>oi,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>we,Yz7:()=>_t,cJS:()=>St,oAB:()=>jn,Yjl:()=>ae,Y36:()=>ca,_UZ:()=>Z6,GkF:()=>Q6,BQk:()=>v4,ynx:()=>g4,qZA:()=>m4,TgZ:()=>p4,EpF:()=>q6,n5z:()=>lo,LFG:()=>zi,$8M:()=>uo,$Z:()=>K6,NdJ:()=>_4,CRH:()=>qu,O4$:()=>pi,oxw:()=>n0,ALo:()=>Nu,lcZ:()=>Ru,xi3:()=>Bu,Dn7:()=>Yu,Hsn:()=>r0,F$t:()=>o0,Q6J:()=>d4,s9C:()=>b4,MGl:()=>V1,hYB:()=>w4,DdM:()=>Pu,VKq:()=>Ou,WLB:()=>Au,l5B:()=>ku,iGM:()=>Ku,MAs:()=>L6,CHM:()=>c,oJD:()=>zc,LSH:()=>Ha,kYT:()=>qt,Udp:()=>D4,WFA:()=>C4,d8E:()=>x4,YNc:()=>V6,W1O:()=>th,_uU:()=>S0,Oqu:()=>S4,hij:()=>H1,AsE:()=>T4,Gf:()=>Zu});var a=p(8929),s=p(2654),G=p(6498),oe=p(6787),q=p(8117);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function W(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function I(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(I).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function R(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const H=_({__forward_ref__:_});function B(e){return e.__forward_ref__=B,e.toString=function(){return I(this())},e}function ee(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Fe extends Error{constructor(t,n){super(function ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function vt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}function Ie(e,t){const n=t?` in ${t}`:"";throw new Fe(-201,`No provider for ${vt(e)} found${n}`)}function ke(e,t){null==e&&function ve(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function St(e){return{providers:e.providers||[],imports:e.imports||[]}}function ot(e){return Et(e,Ut)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function gn(e){return e&&(e.hasOwnProperty(un)||e.hasOwnProperty(Cn))?e[un]:null}const Ut=_({\u0275prov:_}),un=_({\u0275inj:_}),_n=_({ngInjectableDef:_}),Cn=_({ngInjectorDef:_});var Dt=(()=>((Dt=Dt||{})[Dt.Default=0]="Default",Dt[Dt.Host=1]="Host",Dt[Dt.Self=2]="Self",Dt[Dt.SkipSelf=4]="SkipSelf",Dt[Dt.Optional=8]="Optional",Dt))();let Sn;function Mn(e){const t=Sn;return Sn=e,t}function qe(e,t,n){const i=ot(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Dt.Optional?null:void 0!==t?t:void Ie(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),me=(()=>{return(e=me||(me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",me;var e})();const He="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Le="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=He||"undefined"!=typeof global&&global||Ge||Le,ce={},Ne=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),ue=_({\u0275mod:_}),Ae=_({\u0275fac:_}),wt=_({__NG_ELEMENT_ID__:_});let At=0;function Qt(e){return z(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===P.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ne,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||me.Emulated,id:"c",styles:e.styles||Ne,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=Re(e.inputs,n),i.outputs=Re(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(An):null,i})}function Vn(e){return Ve(e)||function ht(e){return e[E]||null}(e)}function An(e){return function It(e){return e[$]||null}(e)}const ri={};function jn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ne,declarations:e.declarations||Ne,imports:e.imports||Ne,exports:e.exports||Ne,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=jt(e,!0);n.declarations=t.declarations||Ne,n.imports=t.imports||Ne,n.exports=t.exports||Ne})}function Re(e,t){if(null==e)return ce;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,t&&(t[o]=r)}return n}const we=Qt;function ae(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[L]||null}function jt(e,t){const n=e[ue]||null;if(!n&&!0===t)throw new Error(`Type ${I(e)} does not have '\u0275mod' property.`);return n}const k=19;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function hn(e){return 0!=(8&e.flags)}function ni(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function kn(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ae)?e[Ae]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function oi(){return Zi}function Zi(e){return e.type.prototype.ngOnChanges&&(e.setInput=bo),Di}function Di(){const e=Lo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===ce)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function bo(e,t,n,i){const o=Lo(e)||function wo(e,t){return e[Vo]=t}(e,{previous:ce,current:null}),r=o.current||(o.current={}),u=o.previous,f=this.declaredInputs[n],v=u[f];r[f]=new ro(v&&v.currentValue,t,u===ce),e[i]=t}oi.ngInherit=!0;const Vo="__ngSimpleChanges__";function Lo(e){return e[Vo]||null}const Ei="http://www.w3.org/2000/svg";let Do;function Jo(e){Do=e}function Qi(){return void 0!==Do?Do:"undefined"!=typeof document?document:void 0}function Bn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Wn(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Wn(t[e])}function Q(e,t){return Wn(t[e.index])}function ct(e,t){return e.data[t]}function Mt(e,t){return e[t]}function kt(e,t){const n=t[e];return Ot(n)?n:n[0]}function Fn(e){return 4==(4&e[2])}function Tn(e){return 128==(128&e[2])}function dn(e,t){return null==t?null:e[t]}function Yn(e){e[18]=0}function On(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return Yt.bindingsEnabled}function lt(){return Yt.lFrame.lView}function O(){return Yt.lFrame.tView}function c(e){return Yt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return Yt.lFrame.currentTNode}function ne(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function ge(){return Yt.lFrame.isParent}function Ce(){Yt.lFrame.isParent=!1}function Pt(){return Yt.isInCheckNoChangesMode}function Bt(e){Yt.isInCheckNoChangesMode=e}function Gt(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return Yt.lFrame.bindingIndex++}function pn(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){Yt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return Yt.lFrame.currentQueryIndex}function Bi(e){Yt.lFrame.currentQueryIndex=e}function Yi(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Li(e,t,n){if(n&Dt.SkipSelf){let o=t,r=e;for(;!(o=o.parent,null!==o||n&Dt.Host||(o=Yi(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;t=o,e=r}const i=Yt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zo(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ao(e):t}function ao(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function fr(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pr=fr;function Rt(){const e=fr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return Yt.lFrame.selectedIndex}function Gn(e){Yt.lFrame.selectedIndex=e}function xn(){const e=Yt.lFrame;return ct(e.tView,e.selectedIndex)}function pi(){Yt.lFrame.currentNamespace=Ei}function Hi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[v]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{r.call(f)}finally{}}}else try{r.call(f)}finally{}}class No{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function is(e,t,n){const i=Bn(e);let o=0;for(;ot){u=r-1;break}}}for(;r>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let yr=!0;function Tr(e){const t=yr;return yr=e,t}let Ea=0;function ur(e,t){const n=Rs(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,os(i.data,e),os(t,null),os(i.blueprint,null));const o=m(e,t),r=e.injectorIndex;if(Hs(o)){const u=cr(o),f=lr(o,t),v=f[1].data;for(let T=0;T<8;T++)t[r+T]=f[u+T]|v[u+T]}return t[r+8]=o,r}function os(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Rs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function m(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const r=o[1],u=r.type;if(i=2===u?r.declTNode:1===u?o[6]:null,null===i)return-1;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function d(e,t,n){!function za(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(wt)&&(i=n[wt]),null==i&&(i=n[wt]=Ea++);const o=255&i;t.data[e+(o>>5)]|=1<=0?255&t:Oe:t}(n);if("function"==typeof r){if(!Li(t,e,i))return i&Dt.Host?M(o,n,i):S(t,n,i,o);try{const u=r(i);if(null!=u||i&Dt.Optional)return u;Ie(n)}finally{pr()}}else if("number"==typeof r){let u=null,f=Rs(e,t),v=-1,T=i&Dt.Host?t[16][6]:null;for((-1===f||i&Dt.SkipSelf)&&(v=-1===f?m(e,t):t[f+8],-1!==v&&Hn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(In(r,f,N.data)){const re=pt(f,t,n,u,i,T);if(re!==de)return re}v=t[f+8],-1!==v&&Hn(i,t[1].data[f+8]===T)&&In(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Oe(){return new co(l(),lt())}function pt(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ni(f)&&yr:i!=u&&0!=(3&f.type),o&Dt.Host&&r===f);return null!==N?wn(t,u,N,f):de}function Ht(e,t,n,i,o){const r=e.providerIndexes,u=t.data,f=1048575&r,v=e.directiveStart,N=r>>20,Pe=o?f+N:e.directiveEnd;for(let We=i?f:f+N;We=v&>.type===n)return We}if(o){const We=u[v];if(We&&kn(We)&&We.type===n)return v}return null}function wn(e,t,n,i){let o=e[n];const r=t.data;if(function ar(e){return e instanceof No}(o)){const u=o;u.resolving&&function Je(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Fe(-200,`Circular dependency in DI detected for ${e}${n}`)}(vt(r[n]));const f=Tr(u.canSeeViewProviders);u.resolving=!0;const v=u.injectImpl?Mn(u.injectImpl):null;Li(e,i,Dt.Default);try{o=e[n]=u.factory(void 0,r,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ci(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=t.type.prototype;if(i){const u=Zi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r))}(n,r[n],t)}finally{null!==v&&Mn(v),Tr(f),u.resolving=!1,pr()}}return o}function In(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ae]||Ui(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ae]||Ui(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ui(e){return ye(e)?()=>{const t=Ui(ee(e));return t&&t()}:Ti(e)}function uo(e){return function h(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o{const i=function Sa(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...r){if(this instanceof o)return i.apply(this,r),this;const u=new o(...r);return f.annotation=u,f;function f(v,T,N){const re=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;re.length<=N;)re.push(null);return(re[N]=re[N]||[]).push(u),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class li{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const b2=new li("AnalyzeForEntryComponents"),Ys=Function;function ho(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?To(n,t):t(n))}function tc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function js(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function E2(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ta(e,t){const n=Or(e,t);if(n>=0)return e[1|n]}function Or(e,t){return function oc(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const r=i+(o-i>>1),u=e[r<t?o=r:i=r+1}return~(o<({token:e})),-1),_r=us(Pr("Optional"),8),Ar=us(Pr("SkipSelf"),4);let Ks,Zs;function Fr(e){var t;return(null===(t=function Aa(){if(void 0===Ks&&(Ks=null,V.trustedTypes))try{Ks=V.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ks}())||void 0===t?void 0:t.createHTML(e))||e}function fc(e){var t;return(null===(t=function ka(){if(void 0===Zs&&(Zs=null,V.trustedTypes))try{Zs=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Zs}())||void 0===t?void 0:t.createHTML(e))||e}class Cr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Q2 extends Cr{getTypeName(){return"HTML"}}class q2 extends Cr{getTypeName(){return"Style"}}class J2 extends Cr{getTypeName(){return"Script"}}class X2 extends Cr{getTypeName(){return"URL"}}class e3 extends Cr{getTypeName(){return"ResourceURL"}}function er(e){return e instanceof Cr?e.changingThisBreaksApplicationSecurity:e}function Ir(e,t){const n=gc(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function gc(e){return e instanceof Cr&&e.getTypeName()||null}function t3(e){return new Q2(e)}function n3(e){return new q2(e)}function vc(e){return new J2(e)}function o3(e){return new X2(e)}function r3(e){return new e3(e)}class s3{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Fr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class a3{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Fr(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Fr(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0fs(t.trim())).join(", ")),this.buf.push(" ",u,'="',Dc(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fa.hasOwnProperty(n)&&!Cc.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dc(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const f3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p3=/([^\#-~ |!])/g;function Dc(e){return e.replace(/&/g,"&").replace(f3,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(p3,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qs;function Ec(e,t){let n=null;try{Qs=Qs||function yc(e){const t=new a3(e);return function c3(){try{return!!(new window.DOMParser).parseFromString(Fr(""),"text/html")}catch(e){return!1}}()?new s3(t):t}(e);let i=t?String(t):"";n=Qs.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Qs.getInertBodyElement(i)}while(i!==r);return Fr((new d3).sanitizeChildren(La(n)||n))}finally{if(n){const i=La(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function La(e){return"content"in e&&function m3(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var mi=(()=>((mi=mi||{})[mi.NONE=0]="NONE",mi[mi.HTML=1]="HTML",mi[mi.STYLE=2]="STYLE",mi[mi.SCRIPT=3]="SCRIPT",mi[mi.URL=4]="URL",mi[mi.RESOURCE_URL=5]="RESOURCE_URL",mi))();function zc(e){const t=ps();return t?fc(t.sanitize(mi.HTML,e)||""):Ir(e,"HTML")?fc(er(e)):Ec(Qi(),_e(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(_e(e))}function ps(){const e=lt();return e&&e[12]}const Pc="__ngContext__";function ki(e,t){e[Pc]=t}function Ra(e){const t=function ms(e){return e[Pc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function qs(e){return e.ngOriginalError}function T3(e,...t){e.error(...t)}class gs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function S3(e){return e&&e.ngErrorLogger||T3}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&qs(t);for(;n&&qs(n);)n=qs(n);return n||null}}const Lc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Yo(e){return e instanceof Function?e():e}var jo=(()=>((jo=jo||{})[jo.Important=1]="Important",jo[jo.DashCase=2]="DashCase",jo))();function ja(e,t){return undefined(e,t)}function vs(e){const t=e[3];return Vt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Vt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Wn(i);0===e&&null!==n?null==o?Kc(t,n,f):Mr(t,n,f,o||null,!0):1===e&&null!==n?Mr(t,n,f,o||null,!0):2===e?function nl(e,t,n){const i=Js(e,t);i&&function q3(e,t,n,i){Bn(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=r&&function X3(e,t,n,i,o){const r=n[7];r!==Wn(n)&&Hr(t,e,i,r,o);for(let f=10;f0&&(e[n-1][4]=i[4]);const r=js(e,10+t);!function j3(e,t){ys(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=r[k];null!==u&&u.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function $c(e,t){if(!(256&t[2])){const n=t[11];Bn(n)&&n.destroyNode&&ys(e,t,n,3,null,null),function W3(e){let t=e[13];if(!t)return Za(e[1],e);for(;t;){let n=null;if(Ot(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&Za(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&Za(t[1],t),n=t&&t[4]}t=n}}(t)}}function Za(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Q3(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[o=T]():i[o=-T].unsubscribe(),r+=2}else{const u=i[o=n[r+1]];n[r].call(u)}if(null!==i){for(let r=o+1;rr?"":o[re+1].toLowerCase();const We=8&i?Pe:null;if(We&&-1!==rl(We,T,0)||2&i&&T!==Pe){if(xo(i))return!1;u=!0}}}}else{if(!u&&!xo(i)&&!xo(v))return!1;if(u&&xo(v))continue;u=!1,i=v|1&i}}return xo(i)||u}function xo(e){return 0==(1&e)}function o8(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let r=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&i?o+="."+u:4&i&&(o+=" "+u);else""!==o&&!xo(u)&&(t+=e1(r,o),o=""),i=u,r=r||!xo(i);n++}return""!==o&&(t+=e1(r,o)),t}const yn={};function ll(e){ul(O(),lt(),sn()+e,Pt())}function ul(e,t,n,i){if(!i)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&Ni(t,r,n)}else{const r=e.preOrderHooks;null!==r&&ji(t,r,0,n)}Gn(n)}function ta(e,t){return e<<17|t<<2}function Po(e){return e>>17&32767}function t1(e){return 2|e}function tr(e){return(131068&e)>>2}function n1(e,t){return-131069&e|t<<2}function o1(e){return 1|e}function bl(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&ul(e,t,20,Pt()),n(i,o)}finally{Gn(r)}}function Dl(e,t,n){if(hn(t)){const o=t.directiveEnd;for(let r=t.directiveStart;r0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=v&&f.push(v),f.push(i,o,u)}}function Al(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function v1(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H8(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&_1(n)}}function _1(e){for(let i=Ua(e);null!==i;i=$a(i))for(let o=10;o0&&_1(r)}const n=e[1].components;if(null!==n)for(let i=0;i0&&_1(o)}}function U8(e,t){const n=kt(t,e),i=n[1];(function $8(e,t){for(let n=t.length;nPromise.resolve(null))();function Hl(e){return e[7]||(e[7]=[])}function Nl(e){return e.cleanup||(e.cleanup=[])}function Rl(e,t,n){return(null===e||kn(e))&&(n=function b(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Bl(e,t){const n=e[9],i=n?n.get(gs,null):null;i&&i.handleError(t)}function Yl(e,t,n,i,o){for(let r=0;rthis.processProvider(f,t,n)),To([t],f=>this.processInjectorType(f,[],r)),this.records.set(D1,jr(void 0,this));const u=this.records.get(E1);this.scope=null!=u?u.value:null,this.source=o||("object"==typeof t?null:I(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=cs,i=Dt.Default){this.assertNotDestroyed();const o=ac(this),r=Mn(void 0);try{if(!(i&Dt.SkipSelf)){let f=this.records.get(t);if(void 0===f){const v=function a6(e){return"function"==typeof e||"object"==typeof e&&e instanceof li}(t)&&ot(t);f=v&&this.injectableDefInScope(v)?jr(S1(t),Ms):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(i&Dt.Self?Ul():this.parent).get(t,n=i&Dt.Optional&&n===cs?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[Ws]=u[Ws]||[]).unshift(I(t)),o)throw u;return function H2(e,t,n,i){const o=e[Ws];throw t[sc]&&o.unshift(t[sc]),e.message=function N2(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=I(t);if(Array.isArray(t))o=t.map(I).join(" -> ");else if("object"==typeof t){let r=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];r.push(u+":"+("string"==typeof f?JSON.stringify(f):I(f)))}o=`{${r.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(A2,"\n ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[Ws]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Mn(r),ac(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push(I(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,"")}processInjectorType(t,n,i){if(!(t=ee(t)))return!1;let o=gn(t);const r=null==o&&t.ngModule||void 0,u=void 0===r?t:r,f=-1!==i.indexOf(u);if(void 0!==r&&(o=gn(r)),null==o)return!1;if(null!=o.imports&&!f){let N;i.push(u);try{To(o.imports,re=>{this.processInjectorType(re,n,i)&&(void 0===N&&(N=[]),N.push(re))})}finally{}if(void 0!==N)for(let re=0;rethis.processProvider(gt,Pe,We||Ne))}}this.injectorDefTypes.add(u);const v=Ti(u)||(()=>new u);this.records.set(u,jr(v,Ms));const T=o.providers;if(null!=T&&!f){const N=t;To(T,re=>this.processProvider(re,N,T))}return void 0!==r&&void 0!==t.providers}processProvider(t,n,i){let o=Ur(t=ee(t))?t:ee(t&&t.provide);const r=function t6(e,t,n){return Kl(e)?jr(void 0,e.useValue):jr(Gl(e),Ms)}(t);if(Ur(t)||!0!==t.multi)this.records.get(o);else{let u=this.records.get(o);u||(u=jr(void 0,Ms,!0),u.factory=()=>Pa(u.multi),this.records.set(o,u)),o=t,u.multi.push(t)}this.records.set(o,r)}hydrate(t,n){return n.value===Ms&&(n.value=J8,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Zl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ee(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function S1(e){const t=ot(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Fe(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Fe(204,"");const n=function Zt(e){const t=e&&(e[Ut]||e[_n]);if(t){const n=function mn(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,"")}function Gl(e,t,n){let i;if(Ur(e)){const o=ee(e);return Ti(o)||S1(o)}if(Kl(e))i=()=>ee(e.useValue);else if(function o6(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Pa(e.deps||[]));else if(function n6(e){return!(!e||!e.useExisting)}(e))i=()=>zi(ee(e.useExisting));else{const o=ee(e&&(e.useClass||e.provide));if(!function s6(e){return!!e.deps}(e))return Ti(o)||S1(o);i=()=>new o(...Pa(e.deps))}return i}function jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kl(e){return null!==e&&"object"==typeof e&&F2 in e}function Ur(e){return"function"==typeof e}let fo=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return $l({name:""},i,n,"");{const r=null!==(o=n.name)&&void 0!==o?o:"";return $l({name:r},n.parent,n.providers,r)}}}return e.THROW_IF_NOT_FOUND=cs,e.NULL=new jl,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>zi(D1)}),e.__NG_ELEMENT_ID__=-1,e})();function g6(e,t){Hi(Ra(e)[1],l())}function O1(e){let t=function a4(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(kn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Fe(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const u=e;u.inputs=A1(e.inputs),u.declaredInputs=A1(e.declaredInputs),u.outputs=A1(e.outputs);const f=o.hostBindings;f&&C6(e,f);const v=o.viewQuery,T=o.contentQueries;if(v&&y6(e,v),T&&_6(e,T),W(e.inputs,o.inputs),W(e.declaredInputs,o.declaredInputs),W(e.outputs,o.outputs),kn(o)&&o.data.animation){const N=e.data;N.animation=(N.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let u=0;u=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Sr(o.hostAttrs,n=Sr(n,o.hostAttrs))}}(i)}function A1(e){return e===ce?{}:e===Ne?[]:e}function y6(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function _6(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,r)=>{t(i,o,r),n(i,o,r)}:t}function C6(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let sa=null;function $r(){if(!sa){const e=V.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nf(Wn(zn[i.index])):i.index;if(Bn(n)){let zn=null;if(!f&&v&&(zn=function _5(e,t,n,i){const o=e.cleanup;if(null!=o)for(let r=0;rv?f[v]:null}"string"==typeof u&&(r+=2)}return null}(e,t,o,i.index)),null!==zn)(zn.__ngLastListenerFn__||zn).__ngNextListenerFn__=r,zn.__ngLastListenerFn__=r,We=!1;else{r=M4(i,t,re,r,!1);const Kn=n.listen($t,o,r);Pe.push(r,Kn),N&&N.push(o,nn,bt,bt+1)}}else r=M4(i,t,re,r,!0),$t.addEventListener(o,r,u),Pe.push(r),N&&N.push(o,nn,bt,u)}else r=M4(i,t,re,r,!1);const gt=i.outputs;let xt;if(We&&null!==gt&&(xt=gt[o])){const Ft=xt.length;if(Ft)for(let $t=0;$t0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}(e)}function C5(e,t){let n=null;const i=function r8(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}const Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(Si.key,Si.keyEnd)}function m0(e,t){const n=Si.textEnd;return n===t?-1:(t=Si.keyEnd=function S5(e,t,n){for(;t32;)t++;return t}(e,Si.key=t,n),zs(e,t,n))}function zs(e,t,n){for(;t=0;n=m0(t,n))to(e,p0(t),!0)}function Wo(e,t,n,i){const o=lt(),r=O(),u=pn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[sn()],o,o[11],e,o[u+1]=function L5(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=I(er(e)))),e}(t,n),i,u)}function Go(e,t,n,i){const o=O(),r=pn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[sn()];if(z0(f,i)&&!M0(o,r)){let v=i?f.classesWithoutHost:f.stylesWithoutHost;null!==v&&(n=R(v,n||"")),f4(o,f,u,n,i)}else!function V5(e,t,n,i,o,r,u,f){o===yn&&(o=Ne);let v=0,T=0,N=0=e.expandoStartIndex}function b0(e,t,n,i){const o=e.data;if(null===o[n+1]){const r=o[sn()],u=M0(e,n);z0(r,i)&&null===t&&!u&&(t=!1),t=function O5(e,t,n,i){const o=Oi(e);let r=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=z4(null,e,t,n,i),t.attrs,i),r=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=z4(o,e,t,n,i),null===r){let v=function A5(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==tr(i))return e[Po(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=z4(null,e,t,v[1],i),v=la(v,t.attrs,i),function k5(e,t,n,i){e[Po(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else r=function F5(e,t,n){let i;const o=t.directiveEnd;for(let r=1+t.directiveStylingLast;r0)&&(T=!0)}else N=n;if(o)if(0!==v){const Pe=Po(e[f+1]);e[i+1]=ta(Pe,f),0!==Pe&&(e[Pe+1]=n1(e[Pe+1],i)),e[f+1]=function d8(e,t){return 131071&e|t<<17}(e[f+1],i)}else e[i+1]=ta(f,0),0!==f&&(e[f+1]=n1(e[f+1],i)),f=i;else e[i+1]=ta(v,0),0===f?f=i:e[v+1]=n1(e[v+1],i),v=i;T&&(e[i+1]=t1(e[i+1])),f0(e,N,i,!0),f0(e,N,i,!1),function b5(e,t,n,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof t&&Or(r,t)>=0&&(n[i+1]=o1(n[i+1]))}(t,N,e,i,r),u=ta(f,v),r?t.classBindings=u:t.styleBindings=u}(o,r,t,n,u,i)}}function z4(e,t,n,i,o){let r=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const v=e[o],T=Array.isArray(v),N=T?v[1]:v,re=null===N;let Pe=n[o+1];Pe===yn&&(Pe=re?Ne:void 0);let We=re?Ta(Pe,i):N===i?Pe:void 0;if(T&&!L1(We)&&(We=Ta(v,i)),L1(We)&&(f=We,u))return f;const gt=e[o+1];o=u?Po(gt):tr(gt)}if(null!==t){let v=r?t.residualClasses:t.residualStyles;null!=v&&(f=Ta(v,i))}return f}function L1(e){return void 0!==e}function z0(e,t){return 0!=(e.flags&(t?16:32))}function S0(e,t=""){const n=lt(),i=O(),o=e+20,r=i.firstCreatePass?Rr(i,o,1,t,null):i.data[o],u=n[o]=function Wa(e,t){return Bn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),ne(r,!1)}function S4(e){return H1("",e,""),S4}function H1(e,t,n){const i=lt(),o=Wr(i,e,t,n);return o!==yn&&nr(i,sn(),o),H1}function T4(e,t,n,i,o){const r=lt(),u=Gr(r,e,t,n,i,o);return u!==yn&&nr(r,sn(),u),T4}function I0(e,t,n){Go(to,or,Wr(lt(),e,t,n),!0)}function x4(e,t,n){const i=lt();if(Fi(i,Jt(),t)){const r=O(),u=xn();no(r,u,i,e,t,Rl(Oi(r.data),u,i),n,!0)}return x4}const Jr=void 0;var n7=["en",[["a","p"],["AM","PM"],Jr],[["AM","PM"],Jr,Jr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Jr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Jr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Jr,"{1} 'at' {0}",Jr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function t7(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ss={};function i7(e,t,n){"string"!=typeof t&&(n=t,t=e[an.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][an.ExtraData]=n)}function P4(e){const t=function o7(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=G0(t);if(n)return n;const i=t.split("-")[0];if(n=G0(i),n)return n;if("en"===i)return n7;throw new Error(`Missing locale data for the locale "${e}".`)}function W0(e){return P4(e)[an.PluralCase]}function G0(e){return e in Ss||(Ss[e]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[e]),Ss[e]}var an=(()=>((an=an||{})[an.LocaleId=0]="LocaleId",an[an.DayPeriodsFormat=1]="DayPeriodsFormat",an[an.DayPeriodsStandalone=2]="DayPeriodsStandalone",an[an.DaysFormat=3]="DaysFormat",an[an.DaysStandalone=4]="DaysStandalone",an[an.MonthsFormat=5]="MonthsFormat",an[an.MonthsStandalone=6]="MonthsStandalone",an[an.Eras=7]="Eras",an[an.FirstDayOfWeek=8]="FirstDayOfWeek",an[an.WeekendRange=9]="WeekendRange",an[an.DateFormat=10]="DateFormat",an[an.TimeFormat=11]="TimeFormat",an[an.DateTimeFormat=12]="DateTimeFormat",an[an.NumberSymbols=13]="NumberSymbols",an[an.NumberFormats=14]="NumberFormats",an[an.CurrencyCode=15]="CurrencyCode",an[an.CurrencySymbol=16]="CurrencySymbol",an[an.CurrencyName=17]="CurrencyName",an[an.Currencies=18]="Currencies",an[an.Directionality=19]="Directionality",an[an.PluralCase=20]="PluralCase",an[an.ExtraData=21]="ExtraData",an))();const N1="en-US";let K0=N1;function k4(e,t,n,i,o){if(e=ee(e),Array.isArray(e))for(let r=0;r>20;if(Ur(e)||!e.multi){const We=new No(v,o,ca),gt=I4(f,t,o?N:N+Pe,re);-1===gt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(We),u.push(We)):(n[gt]=We,u[gt]=We)}else{const We=I4(f,t,N+Pe,re),gt=I4(f,t,N,N+Pe),xt=We>=0&&n[We],Ft=gt>=0&&n[gt];if(o&&!Ft||!o&&!xt){d(ur(T,u),r,f);const $t=function nf(e,t,n,i,o){const r=new No(e,n,ca);return r.multi=[],r.index=t,r.componentProviders=0,yu(r,o,i&&!n),r}(o?tf:ef,n.length,o,i,v);!o&&Ft&&(n[gt].providerFactory=$t),F4(r,e,t.length,0),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push($t),u.push($t)}else F4(r,e,We>-1?We:gt,yu(n[o?gt:We],v,!o&&i));!o&&i&&Ft&&n[gt].componentProviders++}}}function F4(e,t,n,i){const o=Ur(t),r=function r6(e){return!!e.useClass}(t);if(o||r){const v=(r?ee(t.useClass):t).prototype.ngOnDestroy;if(v){const T=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const N=T.indexOf(n);-1===N?T.push(n,[i,v]):T[N+1].push(i,v)}else T.push(n,v)}}}function yu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function I4(e,t,n,i){for(let o=n;o{n.providersResolver=(i,o)=>function X7(e,t,n){const i=O();if(i.firstCreatePass){const o=kn(e);k4(n,i.data,i.blueprint,o,!0),k4(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class Cu{}class af{resolveComponentFactory(t){throw function sf(e){const t=Error(`No component factory found for ${I(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let pa=(()=>{class e{}return e.NULL=new af,e})();function cf(){return xs(l(),lt())}function xs(e,t){return new ma(Q(e,t))}let ma=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=cf,e})();function lf(e){return e instanceof ma?e.nativeElement:e}class bu{}let uf=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function df(){const e=lt(),n=kt(l().index,e);return function hf(e){return e[11]}(Ot(n)?n:e)}(),e})(),ff=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class wu{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new wu("13.1.3"),L4={};function U1(e,t,n,i,o=!1){for(;null!==n;){const r=t[n.index];if(null!==r&&i.push(Wn(r)),Vt(r))for(let f=10;f-1&&(Ka(t,i),js(n,i))}this._attachedToViewContainer=!1}$c(this._lView[1],this._lView)}onDestroy(t){Tl(this._lView[1],this._lView,null,t)}markForCheck(){C1(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b1(this._lView[1],this._lView,this.context)}checkNoChanges(){!function G8(e,t,n){Bt(!0);try{b1(e,t,n)}finally{Bt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $3(e,t){ys(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,"");this._appRef=t}}class mf extends ga{constructor(t){super(t),this._view=t}detectChanges(){Ll(this._view)}checkNoChanges(){!function K8(e){Bt(!0);try{Ll(e)}finally{Bt(!1)}}(this._view)}get context(){return null}}class Du extends pa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new H4(n,this.ngModule)}}function Eu(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const vf=new li("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Lc});class H4 extends Cu{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function u8(e){return e.map(l8).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Eu(this.componentDef.inputs)}get outputs(){return Eu(this.componentDef.outputs)}create(t,n,i,o){const r=(o=o||this.ngModule)?function yf(e,t){return{get:(n,i,o)=>{const r=e.get(n,L4,o);return r!==L4||i===L4?r:t.get(n,i,o)}}}(t,o.injector):t,u=r.get(bu,Pi),f=r.get(ff,null),v=u.createRenderer(null,this.componentDef),T=this.componentDef.selectors[0][0]||"div",N=i?function Sl(e,t,n){if(Bn(e))return e.selectRootElement(t,n===me.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):Ga(u.createRenderer(null,this.componentDef),T,function gf(e){const t=e.toLowerCase();return"svg"===t?Ei:"math"===t?"http://www.w3.org/1998/MathML/":null}(T)),re=this.componentDef.onPush?576:528,Pe=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),We=oa(0,null,null,1,0,null,null,null,null,null),gt=Nr(null,We,Pe,re,null,null,u,v,f,r);let xt,Ft;Ho(gt);try{const $t=function r4(e,t,n,i,o,r){const u=n[1];n[20]=e;const v=Rr(u,20,2,"#host",null),T=v.mergedAttrs=t.hostAttrs;null!==T&&(Cs(v,T,!0),null!==e&&(is(o,e,T),null!==v.classes&&Xa(o,e,v.classes),null!==v.styles&&ol(o,e,v.styles)));const N=i.createRenderer(e,t),re=Nr(n,El(t),null,t.onPush?64:16,n[20],v,i,N,r||null,null);return u.firstCreatePass&&(d(ur(v,n),u,t.type),v1(u,v),kl(v,n.length,1)),ra(n,re),n[20]=re}(N,this.componentDef,gt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:nn}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,nn.join(" "))}if(Ft=ct(We,20),void 0!==n){const bt=Ft.projection=[];for(let nn=0;nnv(u,t)),t.contentQueries){const v=l();t.contentQueries(1,u,v.directiveStart)}const f=l();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Gn(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,gt,Pe,[g6]),_s(We,gt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(Ft,gt),gt,Ft)}}class Cf extends class rf{}{constructor(t,n,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=n,this.hostView=this.changeDetectorRef=new mf(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ps{}class zu{}const Os=new Map;class xu extends Ps{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Du(this);const i=jt(t);this._bootstrapComponents=Yo(i.bootstrap),this._r3Injector=Wl(t,n,[{provide:Ps,useValue:this},{provide:pa,useValue:this.componentFactoryResolver}],I(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=fo.THROW_IF_NOT_FOUND,i=Dt.Default){return t===fo||t===Ps||t===D1?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class N4 extends zu{constructor(t){super(),this.moduleType=t,null!==jt(t)&&function bf(e){const t=new Set;!function n(i){const o=jt(i,!0),r=o.id;null!==r&&(function Su(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${I(t)} vs ${I(t.name)}`)}(r,Os.get(r),i),Os.set(r,i));const u=Yo(o.imports);for(const f of u)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new xu(this.moduleType,t)}}function Pu(e,t,n){const i=Gt()+e,o=lt();return o[i]===yn?$o(o,i,n?t.call(n):t()):function ws(e,t){return e[t]}(o,i)}function Ou(e,t,n,i){return Fu(lt(),Gt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Gt(),e,t,n,i,o)}function ku(e,t,n,i,o,r,u){return function Lu(e,t,n,i,o,r,u,f,v){const T=t+n;return function po(e,t,n,i,o,r){const u=br(e,t,n,i);return br(e,t+2,o,r)||u}(e,T,o,r,u,f)?$o(e,T+4,v?i.call(v,o,r,u,f):i(o,r,u,f)):va(e,T+4)}(lt(),Gt(),e,t,n,i,o,r,u)}function va(e,t){const n=e[t];return n===yn?void 0:n}function Fu(e,t,n,i,o,r){const u=t+n;return Fi(e,u,o)?$o(e,u+1,r?i.call(r,o):i(o)):va(e,u+1)}function Iu(e,t,n,i,o,r,u){const f=t+n;return br(e,f,o,r)?$o(e,f+2,u?i.call(u,o,r):i(o,r)):va(e,f+2)}function Vu(e,t,n,i,o,r,u,f){const v=t+n;return function aa(e,t,n,i,o){const r=br(e,t,n,i);return Fi(e,t+2,o)||r}(e,v,o,r,u)?$o(e,v+3,f?i.call(f,o,r,u):i(o,r,u)):va(e,v+3)}function Nu(e,t){const n=O();let i;const o=e+20;n.firstCreatePass?(i=function xf(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Ti(i.type)),u=Mn(ca);try{const f=Tr(!1),v=r();return Tr(f),function Qd(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,lt(),o,v),v}finally{Mn(u)}}function Ru(e,t,n){const i=e+20,o=lt(),r=Mt(o,i);return ya(o,i)?Fu(o,Gt(),t,r.transform,n,r):r.transform(n)}function Bu(e,t,n,i){const o=e+20,r=lt(),u=Mt(r,o);return ya(r,o)?Iu(r,Gt(),t,u.transform,n,i,u):u.transform(n,i)}function Yu(e,t,n,i,o){const r=e+20,u=lt(),f=Mt(u,r);return ya(u,r)?Vu(u,Gt(),t,f.transform,n,i,o,f):f.transform(n,i,o)}function ya(e,t){return e[1].data[t].pure}function R4(e){return t=>{setTimeout(e,void 0,t)}}const rr=class Af extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,r,u;let f=t,v=n||(()=>null),T=i;if(t&&"object"==typeof t){const re=t;f=null===(o=re.next)||void 0===o?void 0:o.bind(re),v=null===(r=re.error)||void 0===r?void 0:r.bind(re),T=null===(u=re.complete)||void 0===u?void 0:u.bind(re)}this.__isAsync&&(v=R4(v),f&&(f=R4(f)),T&&(T=R4(T)));const N=super.subscribe({next:f,error:v,complete:T});return t instanceof s.w&&t.add(N),N}};function kf(){return this._results[$r()]()}class B4{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=$r(),i=B4.prototype;i[n]||(i[n]=kf)}get changes(){return this._changes||(this._changes=new rr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=ho(t);(this._changesDetected=!function w2(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=Vf,e})();const Ff=_a,If=class extends Ff{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Nr(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const r=this._declarationLView[k];return null!==r&&(i[k]=r.createEmbeddedView(n)),_s(n,i,t),new ga(i)}};function Vf(){return $1(l(),lt())}function $1(e,t){return 4&e.type?new If(t,e,xs(e,t)):null}let W1=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lf,e})();function Lf(){return $u(l(),lt())}const Hf=W1,ju=class extends Hf{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=m(this._hostTNode,this._hostLView);if(Hs(t)){const n=lr(t,this._hostLView),i=cr(t);return new co(n[1].data[i+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Uu(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,r){const u=t&&!function ss(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const re=n||{};f=re.index,i=re.injector,o=re.projectableNodes,r=re.ngModuleRef}const v=u?t:new H4(Ve(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const re=T.get(Ps,null);re&&(r=re)}const N=v.create(T,o,void 0,r);return this.insert(N.hostView,f),N}insert(t,n){const i=t._lView,o=i[1];if(function Dn(e){return Vt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const re=i[3],Pe=new ju(re,re[6],re[3]);Pe.detach(Pe.indexOf(t))}}const r=this._adjustIndex(n),u=this._lContainer;!function G3(e,t,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=t),i0)i.push(u[f/2]);else{const T=r[f+1],N=t[-v];for(let re=10;re{class e{constructor(n){this.appInits=n,this.resolve=Z1,this.reject=Z1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:f,error:v})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(zi(X4,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const yh=new li("AppId"),u9={provide:yh,useFactory:function l9(){return`${e2()}${e2()}${e2()}`},deps:[]};function e2(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _h=new li("Platform Initializer"),Ch=new li("Platform ID"),Mh=new li("appBootstrapListener");let bh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const Q1=new li("LocaleId"),wh=new li("DefaultCurrencyCode");class h9{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let t2=(()=>{class e{compileModuleSync(n){return new N4(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),r=Yo(jt(n).declarations).reduce((u,f)=>{const v=Ve(f);return v&&u.push(new H4(v)),u},[]);return new h9(i,r)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const f9=(()=>Promise.resolve(0))();function n2(e){"undefined"==typeof Zone?f9.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function p9(){let e=V.requestAnimationFrame,t=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function v9(e){const t=()=>{!function g9(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(V,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,r2(e),e.isCheckStableRunning=!0,o2(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),r2(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,r,u,f)=>{try{return Dh(e),n.invokeTask(o,r,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&t(),Eh(e)}},onInvoke:(n,i,o,r,u,f,v)=>{try{return Dh(e),n.invoke(o,r,u,f,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eh(e)}},onHasTask:(n,i,o,r)=>{n.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,r2(e),o2(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(n,i,o,r)=>(n.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!mo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(mo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const r=this._inner,u=r.scheduleEventTask("NgZoneEvent: "+o,t,m9,Z1,Z1);try{return r.runTask(u,n,i)}finally{r.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const m9={};function o2(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function r2(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eh(e){e._nesting--,o2(e)}class y9{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let zh=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{mo.assertNotInAngularZone(),n2(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())n2(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==r),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:r,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(zi(mo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),Sh=(()=>{class e{constructor(){this._applications=new Map,s2.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return s2.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class _9{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function C9(e){s2=e}let Ko,s2=new _9;const Th=new li("AllowMultipleToken");class w9{constructor(t,n){this.name=t,this.token=n}}function xh(e,t,n=[]){const i=`Platform: ${t}`,o=new li(i);return(r=[])=>{let u=Ph();if(!u||u.injector.get(Th,!1))if(e)e(n.concat(r).concat({provide:o,useValue:!0}));else{const f=n.concat(r).concat({provide:o,useValue:!0},{provide:E1,useValue:"platform"});!function D9(e){if(Ko&&!Ko.destroyed&&!Ko.injector.get(Th,!1))throw new Fe(400,"");Ko=e.get(Oh);const t=e.get(_h,null);t&&t.forEach(n=>n())}(fo.create({providers:f,name:i}))}return function E9(e){const t=Ph();if(!t)throw new Fe(401,"");return t}()}}function Ph(){return Ko&&!Ko.destroyed?Ko:null}let Oh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const f=function z9(e,t){let n;return n="noop"===e?new y9:("zone.js"===e?void 0:e)||new mo({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:mo,useValue:f}];return f.run(()=>{const T=fo.create({providers:v,parent:this.injector,name:n.moduleType.name}),N=n.create(T),re=N.injector.get(gs,null);if(!re)throw new Fe(402,"");return f.runOutsideAngular(()=>{const Pe=f.onError.subscribe({next:We=>{re.handleError(We)}});N.onDestroy(()=>{a2(this._modules,N),Pe.unsubscribe()})}),function S9(e,t,n){try{const i=n();return y4(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(re,f,()=>{const Pe=N.injector.get(ks);return Pe.runInitializers(),Pe.donePromise.then(()=>(function c7(e){ke(e,"Expected localeId to be defined"),"string"==typeof e&&(K0=e.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Q1,N1)||N1),this._moduleDoBootstrap(N),N))})})}bootstrapModule(n,i=[]){const o=Ah({},i);return function M9(e,t,n){const i=new N4(n);return Promise.resolve(i)}(0,0,n).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(n){const i=n.injector.get(Ma);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Fe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(zi(fo))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function Ah(e,t){return Array.isArray(t)?t.reduce(Ah,e):Object.assign(Object.assign({},e),t)}let Ma=(()=>{class e{constructor(n,i,o,r,u){this._zone=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=r,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const f=new G.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new G.y(T=>{let N;this._zone.runOutsideAngular(()=>{N=this._zone.onStable.subscribe(()=>{mo.assertNotInAngularZone(),n2(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,T.next(!0))})})});const re=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),re.unsubscribe()}});this.isStable=(0,oe.T)(f,v.pipe((0,q.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Fe(405,"");let o;o=n instanceof Cu?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const r=function b9(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ps),f=o.create(fo.NULL,[],i||o.selector,r),v=f.location.nativeElement,T=f.injector.get(zh,null),N=T&&f.injector.get(Sh);return T&&N&&N.registerApplication(v,T),f.onDestroy(()=>{this.detachView(f.hostView),a2(this.components,f),N&&N.unregisterApplication(v)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new Fe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;a2(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mh,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(zi(mo),zi(fo),zi(gs),zi(pa),zi(ks))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function a2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Fh=!0,Ih=!1;function x9(){return Ih=!0,Fh}function P9(){if(Ih)throw new Error("Cannot enable prod mode after platform setup.");Fh=!1}let O9=(()=>{class e{}return e.__NG_ELEMENT_ID__=A9,e})();function A9(e){return function k9(e,t,n){if(ni(e)&&!n){const i=kt(e.index,t);return new ga(i,i)}return 47&e.type?new ga(t[16],t):null}(l(),lt(),16==(16&e))}class Bh{constructor(){}supports(t){return bs(t)}create(t){return new N9(t)}}const H9=(e,t)=>t;class N9{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H9}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,r=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,r,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,r,o)):t=this._addAfter(new R9(n,i),r,o),t}_verifyReinsertion(t,n,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?t=this._reinsertAfter(r,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,r=t._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yh),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yh),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class R9{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class B9{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yh{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new B9,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jh(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const r=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const r=o._prev,u=o._next;return r&&(r._next=u),u&&(u._prev=r),o._next=null,o._prev=null,o}const i=new j9(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class j9{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $h(){return new J1([new Bh])}let J1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||$h()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:$h}),e})();function Wh(){return new X1([new Uh])}let X1=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Wh()),deps:[[e,new Ar,new _r]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Fe(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Wh}),e})();const U9=[new Uh],W9=new J1([new Bh]),G9=new X1(U9),K9=xh(null,"core",[{provide:Ch,useValue:"unknown"},{provide:Oh,deps:[fo]},{provide:Sh,deps:[]},{provide:bh,deps:[]}]),X9=[{provide:Ma,useClass:Ma,deps:[mo,fo,gs,pa,ks]},{provide:vf,deps:[mo],useFactory:function ep(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:ks,useClass:ks,deps:[[new _r,X4]]},{provide:t2,useClass:t2,deps:[]},u9,{provide:J1,useFactory:function Z9(){return W9},deps:[]},{provide:X1,useFactory:function Q9(){return G9},deps:[]},{provide:Q1,useFactory:function q9(e){return e||function J9(){return"undefined"!=typeof $localize&&$localize.locale||N1}()},deps:[[new hs(Q1),new _r,new Ar]]},{provide:wh,useValue:"USD"}];let tp=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(zi(Ma))},e.\u0275mod=jn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(yt,be,p)=>{p.d(be,{TO:()=>Un,ve:()=>_e,Wl:()=>Ye,Fj:()=>vt,qu:()=>Yt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>dn,JU:()=>ee,a5:()=>Cn,JJ:()=>qe,JL:()=>x,F:()=>se,On:()=>kn,Mq:()=>hn,c5:()=>Mt,UX:()=>Yn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),G=p(6498),oe=p(6688),q=p(4850),_=p(7830),W=p(5254);function R(D,C){return new G.y(y=>{const U=D.length;if(0===U)return void y.complete();const at=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),at[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,ne)=>(g[F]=at[ne],g),{}):at),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=at=>{},this.onTouched=()=>{}}setProperty(y,U){this._renderer.setProperty(this._elementRef.nativeElement,y,U)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq))},D.\u0275dir=a.lG2({type:D}),D})(),B=(()=>{class D extends H{}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const ee=new a.OlP("NgValueAccessor"),ye={provide:ee,useExisting:(0,a.Gpc)(()=>Ye),multi:!0};let Ye=(()=>{class D extends B{writeValue(y){this.setProperty("checked",y)}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,U){1&y&&a.NdJ("change",function(Nt){return U.onChange(Nt.target.checked)})("blur",function(){return U.onTouched()})},features:[a._Bn([ye]),a.qOj]}),D})();const Fe={provide:ee,useExisting:(0,a.Gpc)(()=>vt),multi:!0},_e=new a.OlP("CompositionEventMode");let vt=(()=>{class D extends H{constructor(y,U,at){super(y,U),this._compositionMode=at,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ze(){const D=(0,s.q)()?(0,s.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(_e,8))},D.\u0275dir=a.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(y,U){1&y&&a.NdJ("input",function(Nt){return U._handleInput(Nt.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(Nt){return U._compositionEnd(Nt.target.value)})},features:[a._Bn([Fe]),a.qOj]}),D})();function Je(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ut=new a.OlP("NgValidators"),Ie=new a.OlP("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class et{static min(C){return function Se(D){return C=>{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(Je(C.value)||Je(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y>D?{max:{max:D,actual:C.value}}:null}}(C)}static required(C){return J(C)}static requiredTrue(C){return function fe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function he(D){return Je(D.value)||$e.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function te(D){return C=>Je(C.value)||!zt(C.value)?null:C.value.lengthzt(C.value)&&C.value.length>D?{maxlength:{requiredLength:D,actualLength:C.value.length}}:null}(C)}static pattern(C){return ie(C)}static nullValidator(C){return null}static compose(C){return dt(C)}static composeAsync(C){return it(C)}}function J(D){return Je(D.value)?{required:!0}:null}function ie(D){if(!D)return Ue;let C,y;return"string"==typeof D?(y="","^"!==D.charAt(0)&&(y+="^"),y+=D,"$"!==D.charAt(D.length-1)&&(y+="$"),C=new RegExp(y)):(y=D.toString(),C=D),U=>{if(Je(U.value))return null;const at=U.value;return C.test(at)?null:{pattern:{requiredPattern:y,actualValue:at}}}}function Ue(D){return null}function je(D){return null!=D}function tt(D){const C=(0,a.QGY)(D)?(0,W.D)(D):D;return(0,a.CqO)(C),C}function ke(D){let C={};return D.forEach(y=>{C=null!=y?Object.assign(Object.assign({},C),y):C}),0===Object.keys(C).length?null:C}function ve(D,C){return C.map(y=>y(D))}function Qe(D){return D.map(C=>function mt(D){return!D.validate}(C)?C:y=>C.validate(y))}function dt(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return ke(ve(y,C))}}function _t(D){return null!=D?dt(Qe(D)):null}function it(D){if(!D)return null;const C=D.filter(je);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,oe.k)(C))return R(C,null);if((0,_.K)(C)&&Object.getPrototypeOf(C)===Object.prototype){const y=Object.keys(C);return R(y.map(U=>C[U]),y)}}if("function"==typeof D[D.length-1]){const C=D.pop();return R(D=1===D.length&&(0,oe.k)(D[0])?D[0]:D,null).pipe((0,q.U)(y=>C(...y)))}return R(D,null)}(ve(y,C).map(tt)).pipe((0,q.U)(ke))}}function St(D){return null!=D?it(Qe(D)):null}function ot(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Zt(D){return D._rawAsyncValidators}function mn(D){return D?Array.isArray(D)?D:[D]:[]}function gn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Ut(D,C){const y=mn(C);return mn(D).forEach(at=>{gn(y,at)||y.push(at)}),y}function un(D,C){return mn(C).filter(y=>!gn(D,y))}class _n{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(C){this._rawValidators=C||[],this._composedValidatorFn=_t(this._rawValidators)}_setAsyncValidators(C){this._rawAsyncValidators=C||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(C){this._onDestroyCallbacks.push(C)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(C=>C()),this._onDestroyCallbacks=[]}reset(C){this.control&&this.control.reset(C)}hasError(C,y){return!!this.control&&this.control.hasError(C,y)}getError(C,y){return this.control?this.control.getError(C,y):null}}class Cn extends _n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dt extends _n{get formDirective(){return null}get path(){return null}}class Sn{constructor(C){this._cd=C}is(C){var y,U,at;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(at=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===at?void 0:at[C])}}let qe=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Cn,2))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[a.qOj]}),D})(),x=(()=>{class D extends Sn{constructor(y){super(y)}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&a.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[a.qOj]}),D})();function $(D,C){return[...C.path,D]}function ue(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Vn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&ri(D,C)})}(D,C),function jn(D,C){const y=(U,at)=>{C.valueAccessor.writeValue(U),at&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function An(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&ri(D,C),"submit"!==D.updateOn&&D.markAsTouched()})}(D,C),function At(D,C){if(C.valueAccessor.setDisabledState){const y=U=>{C.valueAccessor.setDisabledState(U)};D.registerOnDisabledChange(y),C._registerOnDestroy(()=>{D._unregisterOnDisabledChange(y)})}}(D,C)}function Ae(D,C,y=!0){const U=()=>{};C.valueAccessor&&(C.valueAccessor.registerOnChange(U),C.valueAccessor.registerOnTouched(U)),vn(D,C),D&&(C._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function wt(D,C){D.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(C)})}function Qt(D,C){const y=Et(D);null!==C.validator?D.setValidators(ot(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Zt(D);null!==C.asyncValidator?D.setAsyncValidators(ot(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const at=()=>D.updateValueAndValidity();wt(C._rawValidators,at),wt(C._rawAsyncValidators,at)}function vn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const at=Et(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.validator);Nt.length!==at.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const at=Zt(D);if(Array.isArray(at)&&at.length>0){const Nt=at.filter(lt=>lt!==C.asyncValidator);Nt.length!==at.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function ri(D,C){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),C.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function qt(D,C){Qt(D,C)}function Ve(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function It(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function jt(D,C){if(!C)return null;let y,U,at;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===vt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:at=Nt}),at||U||y||null}function fn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Zn="VALID",ii="INVALID",En="PENDING",ei="DISABLED";function Tt(D){return(Te(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?_t(D):D||null}function bn(D,C){return(Te(C)?C.asyncValidators:D)||null}function Qn(D){return Array.isArray(D)?St(D):D||null}function Te(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const Ze=D=>D instanceof $n,De=D=>D instanceof Nn,rt=D=>D instanceof Rn;function Wt(D){return Ze(D)?D.value:D.getRawValue()}function on(D,C){const y=De(D),U=D.controls;if(!(y?Object.keys(U):U).length)throw new a.vHH(1e3,"");if(!U[C])throw new a.vHH(1001,"")}function Lt(D,C){De(D),D._forEachChild((U,at)=>{if(void 0===C[at])throw new a.vHH(1002,"")})}class Un{constructor(C,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=C,this._rawAsyncValidators=y,this._composedValidatorFn=rn(this._rawValidators),this._composedAsyncValidatorFn=Qn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(C){this._rawValidators=this._composedValidatorFn=C}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(C){this._rawAsyncValidators=this._composedAsyncValidatorFn=C}get parent(){return this._parent}get valid(){return this.status===Zn}get invalid(){return this.status===ii}get pending(){return this.status==En}get disabled(){return this.status===ei}get enabled(){return this.status!==ei}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(C){this._rawValidators=C,this._composedValidatorFn=rn(C)}setAsyncValidators(C){this._rawAsyncValidators=C,this._composedAsyncValidatorFn=Qn(C)}addValidators(C){this.setValidators(Ut(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Ut(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(un(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(un(C,this._rawAsyncValidators))}hasValidator(C){return gn(this._rawValidators,C)}hasAsyncValidator(C){return gn(this._rawAsyncValidators,C)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(C={}){this.touched=!0,this._parent&&!C.onlySelf&&this._parent.markAsTouched(C)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(C=>C.markAllAsTouched())}markAsUntouched(C={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}markAsDirty(C={}){this.pristine=!1,this._parent&&!C.onlySelf&&this._parent.markAsDirty(C)}markAsPristine(C={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}markAsPending(C={}){this.status=En,!1!==C.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!C.onlySelf&&this._parent.markAsPending(C)}disable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=ei,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this._updateValue(),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(C={}){const y=this._parentMarkedDirty(C.onlySelf);this.status=Zn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},C),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},C),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(C){this._parent&&!C.onlySelf&&(this._parent.updateValueAndValidity(C),C.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(C){this._parent=C}updateValueAndValidity(C={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Zn||this.status===En)&&this._runAsyncValidator(C.emitEvent)),!1!==C.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!C.onlySelf&&this._parent.updateValueAndValidity(C)}_updateTreeValidity(C={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(C)),this.updateValueAndValidity({onlySelf:!0,emitEvent:C.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ei:Zn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=tt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:C})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(C,y={}){this.errors=C,this._updateControlsErrors(!1!==y.emitEvent)}get(C){return function Ln(D,C,y){if(null==C||(Array.isArray(C)||(C=C.split(y)),Array.isArray(C)&&0===C.length))return null;let U=D;return C.forEach(at=>{U=De(U)?U.controls.hasOwnProperty(at)?U.controls[at]:null:rt(U)&&U.at(at)||null}),U}(this,C,".")}getError(C,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[C]:null}hasError(C,y){return!!this.getError(C,y)}get root(){let C=this;for(;C._parent;)C=C._parent;return C}_updateControlsErrors(C){this.status=this._calculateStatus(),C&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(C)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?ei:this.errors?ii:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ii)?ii:Zn}_anyControlsHaveStatus(C){return this._anyControls(y=>y.status===C)}_anyControlsDirty(){return this._anyControls(C=>C.dirty)}_anyControlsTouched(){return this._anyControls(C=>C.touched)}_updatePristine(C={}){this.pristine=!this._anyControlsDirty(),this._parent&&!C.onlySelf&&this._parent._updatePristine(C)}_updateTouched(C={}){this.touched=this._anyControlsTouched(),this._parent&&!C.onlySelf&&this._parent._updateTouched(C)}_isBoxedValue(C){return"object"==typeof C&&null!==C&&2===Object.keys(C).length&&"value"in C&&"disabled"in C}_registerOnCollectionChange(C){this._onCollectionChange=C}_setUpdateStrategy(C){Te(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $n extends Un{constructor(C=null,y,U){super(Tt(y),bn(U,y)),this._onChange=[],this._pendingChange=!1,this._applyFormState(C),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(C,y={}){this.value=this._pendingValue=C,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(C,y={}){this.setValue(C,y)}reset(C=null,y={}){this._applyFormState(C),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(C){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(C){this._onChange.push(C)}_unregisterOnChange(C){fn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){fn(this._onDisabledChange,C)}_forEachChild(C){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(C){this._isBoxedValue(C)?(this.value=this._pendingValue=C.value,C.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=C}}class Nn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(C,y){return this.controls[C]?this.controls[C]:(this.controls[C]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(C,y,U={}){this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),delete this.controls[C],y&&this.registerControl(C,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(C){return this.controls.hasOwnProperty(C)&&this.controls[C].enabled}setValue(C,y={}){Lt(this,C),Object.keys(C).forEach(U=>{on(this,U),this.controls[U].setValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(Object.keys(C).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(C[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C={},y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=Wt(y),C))}_syncPendingControls(){let C=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&C(U,y)})}_setUpControls(){this._forEachChild(C=>{C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(C){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&C(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(C,y,U)=>((y.enabled||this.disabled)&&(C[U]=y.value),C))}_reduceChildren(C,y){let U=C;return this._forEachChild((at,Nt)=>{U=y(U,at,Nt)}),U}_allControlsDisabled(){for(const C of Object.keys(this.controls))if(this.controls[C].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Rn extends Un{constructor(C,y,U){super(Tt(y),bn(U,y)),this.controls=C,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(C){return this.controls[C]}push(C,y={}){this.controls.push(C),this._registerControl(C),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(C,y,U={}){this.controls.splice(C,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(C,y={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(C,y,U={}){this.controls[C]&&this.controls[C]._registerOnCollectionChange(()=>{}),this.controls.splice(C,1),y&&(this.controls.splice(C,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(C,y={}){Lt(this,C),C.forEach((U,at)=>{on(this,at),this.at(at).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,at)=>{this.at(at)&&this.at(at).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,at)=>{U.reset(C[at],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>Wt(C))}clear(C={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:C.emitEvent}))}_syncPendingControls(){let C=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return C&&this.updateValueAndValidity({onlySelf:!0}),C}_forEachChild(C){this.controls.forEach((y,U)=>{C(y,U)})}_updateValue(){this.value=this.controls.filter(C=>C.enabled||this.disabled).map(C=>C.value)}_anyControls(C){return this.controls.some(y=>y.enabled&&C(y))}_setUpControls(){this._forEachChild(C=>this._registerControl(C))}_allControlsDisabled(){for(const C of this.controls)if(C.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(C){C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange)}}const qn={provide:Dt,useExisting:(0,a.Gpc)(()=>se)},X=(()=>Promise.resolve(null))();let se=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Nn({},_t(y),St(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){X.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),ue(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),fn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),at=new Nn({});qt(at,y),U.registerControl(y.name,at),at.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){X.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){X.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,It(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([qn]),a.qOj]}),D})(),k=(()=>{class D extends Dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return D.\u0275fac=function(){let C;return function(U){return(C||(C=a.n5z(D)))(U||D)}}(),D.\u0275dir=a.lG2({type:D,features:[a.qOj]}),D})();const Vt={provide:Dt,useExisting:(0,a.Gpc)(()=>hn)};let hn=(()=>{class D extends k{constructor(y,U,at){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(at)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Vt]),a.qOj]}),D})();const ni={provide:Cn,useExisting:(0,a.Gpc)(()=>kn)},ai=(()=>Promise.resolve(null))();let kn=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this.control=new $n,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Ve(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ue(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(y){ai.then(()=>{this.control.setValue(y,{emitViewToModelChange:!1})})}_updateDisabled(y){const U=y.isDisabled.currentValue,at=""===U||U&&"false"!==U;ai.then(()=>{at&&!this.control.disabled?this.control.disable():!at&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([ni]),a.qOj,a.TTD]}),D})(),bi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),wi=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({}),D})();const Wi=new a.OlP("NgModelWithFormControlWarning"),yo={provide:Cn,useExisting:(0,a.Gpc)(()=>_o)};let _o=(()=>{class D extends Cn{constructor(y,U,at,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=jt(0,at)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ae(U,this,!1),ue(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ve(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ae(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([yo]),a.qOj,a.TTD]}),D})();const sr={provide:Dt,useExisting:(0,a.Gpc)(()=>Ii)};let Ii=(()=>{class D extends Dt{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return ue(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ae(y.control||null,y,!1),fn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,It(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,at=this.form.get(y.path);U!==at&&(Ae(U||null,y),Ze(at)&&(ue(at,y),y.control=at))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);qt(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Re(D,C){return vn(D,C)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qt(this.form,this),this._oldForm&&vn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(ut,10),a.Y36(Ie,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&a.NdJ("submit",function(Nt){return U.onSubmit(Nt)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([sr]),a.qOj,a.TTD]}),D})();const Qo={provide:Cn,useExisting:(0,a.Gpc)(()=>oo)};let oo=(()=>{class D extends Cn{constructor(y,U,at,Nt,lt){super(),this._ngModelWarningConfig=lt,this._added=!1,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=y,this._setValidators(U),this._setAsyncValidators(at),this.valueAccessor=jt(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Ve(y,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,13),a.Y36(ut,10),a.Y36(Ie,10),a.Y36(ee,10),a.Y36(Wi,8))},D.\u0275dir=a.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Qo]),a.qOj,a.TTD]}),D})();const Xo={provide:ut,useExisting:(0,a.Gpc)(()=>Pi),multi:!0};let Pi=(()=>{class D{constructor(){this._required=!1}get required(){return this._required}set required(y){this._required=null!=y&&!1!==y&&"false"!=`${y}`,this._onChange&&this._onChange()}validate(y){return this.required?J(y):null}registerOnValidatorChange(y){this._onChange=y}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("required",U.required?"":null)},inputs:{required:"required"},features:[a._Bn([Xo])]}),D})();const ct={provide:ut,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=Ue}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=ie(this.pattern)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275dir=a.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&a.uIk("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([ct]),a.TTD]}),D})(),Dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[[wi]]}),D})(),dn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yn=(()=>{class D{static withConfig(y){return{ngModule:D,providers:[{provide:Wi,useValue:y.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Yt=(()=>{class D{group(y,U=null){const at=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function On(D){return void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn}(U)?(Nt=null!=U.validators?U.validators:null,lt=null!=U.asyncValidators?U.asyncValidators:null,O=null!=U.updateOn?U.updateOn:void 0):(Nt=null!=U.validator?U.validator:null,lt=null!=U.asyncValidator?U.asyncValidator:null)),new Nn(at,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,at){return new $n(y,U,at)}array(y,U,at){const Nt=y.map(lt=>this._createControl(lt));return new Rn(Nt,U,at)}_reduceControls(y){const U={};return Object.keys(y).forEach(at=>{U[at]=this._createControl(y[at])}),U}_createControl(y){return Ze(y)||De(y)||rt(y)?y:Array.isArray(y)?this.control(y[0],y.length>1?y[1]:null,y.length>2?y[2]:null):this.control(y)}}return D.\u0275fac=function(y){return new(y||D)},D.\u0275prov=a.Yz7({token:D,factory:D.\u0275fac,providedIn:Yn}),D})()},6360:(yt,be,p)=>{p.d(be,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),G=p(1777);function oe(){return"undefined"!=typeof window&&void 0!==window.document}function q(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new G.ZN;case 1:return O[0];default:return new G.ZE(O)}}function W(O,c,l,g,F={},ne={}){const ge=[],Ce=[];let Ke=-1,ft=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Gt=Bt==Ke,ln=Gt&&ft||{};Object.keys(Pt).forEach(Kt=>{let Jt=Kt,pn=Pt[Kt];if("offset"!==Kt)switch(Jt=c.normalizePropertyName(Jt,ge),pn){case G.k1:pn=F[Kt];break;case G.l3:pn=ne[Kt];break;default:pn=c.normalizeStyleValue(Kt,Jt,pn,ge)}ln[Jt]=pn}),Gt||Ce.push(ln),ft=ln,Ke=Bt}),ge.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ge.join(Pt)}`)}return Ce}function I(O,c,l,g){switch(c){case"start":O.onStart(()=>g(l&&R(l,"start",O)));break;case"done":O.onDone(()=>g(l&&R(l,"done",O)));break;case"destroy":O.onDestroy(()=>g(l&&R(l,"destroy",O)))}}function R(O,c,l){const g=l.totalTime,ne=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ge=O._data;return null!=ge&&(ne._data=ge),ne}function H(O,c,l,g,F="",ne=0,ge){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:ne,disabled:!!ge}}function B(O,c,l){let g;return O instanceof Map?(g=O.get(c),g||O.set(c,g=l)):(g=O[c],g||(g=O[c]=l)),g}function ee(O){const c=O.indexOf(":");return[O.substring(1,c),O.substr(c+1)]}let ye=(O,c)=>!1,Ye=(O,c,l)=>[];(q()||"undefined"!=typeof Element)&&(ye=oe()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),Ye=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let _e=null,vt=!1;function Je(O){_e||(_e=function zt(){return"undefined"!=typeof document?document.body:null}()||{},vt=!!_e.style&&"WebkitAppearance"in _e.style);let c=!0;return _e.style&&!function ze(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in _e.style,!c&&vt&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in _e.style)),c}const ut=ye,Ie=Ye;function $e(O){const c={};return Object.keys(O).forEach(l=>{const g=l.replace(/([a-z])([A-Z])/g,"$1-$2");c[g]=O[l]}),c}let et=(()=>{class O{validateStyleProperty(l){return Je(l)}matchesElement(l,g){return!1}containsElement(l,g){return ut(l,g)}query(l,g,F){return Ie(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,ne,ge,Ce=[],Ke){return new G.ZN(F,ne)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),Se=(()=>{class O{}return O.NOOP=new et,O})();const he="ng-enter",te="ng-leave",le="ng-trigger",ie=".ng-trigger",Ue="ng-animating",je=".ng-animating";function tt(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ke(parseFloat(c[1]),c[2])}function ke(O,c){return"s"===c?1e3*O:O}function ve(O,c,l){return O.hasOwnProperty("duration")?O:function mt(O,c,l){let F,ne=0,ge="";if("string"==typeof O){const Ce=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ce)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=ke(parseFloat(Ce[1]),Ce[2]);const Ke=Ce[3];null!=Ke&&(ne=ke(parseFloat(Ke),Ce[4]));const ft=Ce[5];ft&&(ge=ft)}else F=O;if(!l){let Ce=!1,Ke=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Ce=!0),ne<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Ce=!0),Ce&&c.splice(Ke,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:ne,easing:ge}}(O,c,l)}function Qe(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function _t(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Qe(O,l);return l}function it(O,c,l){return l?c+":"+l+";":""}function St(O){let c="";for(let l=0;l{const F=Dt(g);l&&!l.hasOwnProperty(g)&&(l[g]=O.style[F]),O.style[F]=c[g]}),q()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),q()&&St(O))}function Zt(O){return Array.isArray(O)?1==O.length?O[0]:(0,G.vP)(O):O}const gn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ut(O){let c=[];if("string"==typeof O){let l;for(;l=gn.exec(O);)c.push(l[1]);gn.lastIndex=0}return c}function un(O,c,l){const g=O.toString(),F=g.replace(gn,(ne,ge)=>{let Ce=c[ge];return c.hasOwnProperty(ge)||(l.push(`Please provide a value for the animation param ${ge}`),Ce=""),Ce.toString()});return F==g?O:F}function _n(O){const c=[];let l=O.next();for(;!l.done;)c.push(l.value),l=O.next();return c}const Cn=/-+([a-z0-9])/g;function Dt(O){return O.replace(Cn,(...c)=>c[1].toUpperCase())}function Sn(O){return O.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function cn(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let ne=c[0],ge=[];if(g.forEach(Ce=>{ne.hasOwnProperty(Ce)||ge.push(Ce),ne[Ce]=l[Ce]}),ge.length)for(var F=1;Ffunction pe(O,c,l){if(":"==O[0]){const Ke=function j(O,c){switch(O){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,g)=>parseFloat(g)>parseFloat(l);case":decrement":return(l,g)=>parseFloat(g) *"}}(O,l);if("function"==typeof Ke)return void c.push(Ke);O=Ke}const g=O.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==g||g.length<4)return l.push(`The provided transition expression "${O}" is not supported`),c;const F=g[1],ne=g[2],ge=g[3];c.push(Ge(F,ge));"<"==ne[0]&&!(F==z&&ge==z)&&c.push(Ge(ge,F))}(g,l,c)):l.push(O),l}const me=new Set(["true","1"]),He=new Set(["false","0"]);function Ge(O,c){const l=me.has(O)||He.has(O),g=me.has(c)||He.has(c);return(F,ne)=>{let ge=O==z||O==F,Ce=c==z||c==ne;return!ge&&l&&"boolean"==typeof F&&(ge=F?me.has(O):He.has(O)),!Ce&&g&&"boolean"==typeof ne&&(Ce=ne?me.has(c):He.has(c)),ge&&Ce}}const Me=new RegExp("s*:selfs*,?","g");function V(O,c,l){return new nt(O).build(c,l)}class nt{constructor(c){this._driver=c}build(c,l){const g=new L(l);return this._resetContextStyleTimingState(g),qe(this,Zt(c),g)}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,l){let g=l.queryCount=0,F=l.depCount=0;const ne=[],ge=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Ce=>{if(this._resetContextStyleTimingState(l),0==Ce.type){const Ke=Ce,ft=Ke.name;ft.toString().split(/\s*,\s*/).forEach(Pt=>{Ke.name=Pt,ne.push(this.visitState(Ke,l))}),Ke.name=ft}else if(1==Ce.type){const Ke=this.visitTransition(Ce,l);g+=Ke.queryCount,F+=Ke.depCount,ge.push(Ke)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:ne,transitions:ge,queryCount:g,depCount:F,options:null}}visitState(c,l){const g=this.visitStyle(c.styles,l),F=c.options&&c.options.params||null;if(g.containsDynamicStyles){const ne=new Set,ge=F||{};if(g.styles.forEach(Ce=>{if($(Ce)){const Ke=Ce;Object.keys(Ke).forEach(ft=>{Ut(Ke[ft]).forEach(Pt=>{ge.hasOwnProperty(Pt)||ne.add(Pt)})})}}),ne.size){const Ce=_n(ne.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Ce.join(", ")}`)}}return{type:0,name:c.name,style:g,options:F?{params:F}:null}}visitTransition(c,l){l.queryCount=0,l.depCount=0;const g=qe(this,Zt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ae(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>qe(this,g,l)),options:Ae(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const ne=c.steps.map(ge=>{l.currentTime=g;const Ce=qe(this,ge,l);return F=Math.max(F,l.currentTime),Ce});return l.currentTime=F,{type:3,steps:ne,options:Ae(c.options)}}visitAnimate(c,l){const g=function ue(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ve(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=wt(0,0,"");return ne.dynamic=!0,ne.strValue=g,ne}return l=l||ve(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,ne=c.styles?c.styles:(0,G.oB)({});if(5==ne.type)F=this.visitKeyframes(ne,l);else{let ge=c.styles,Ce=!1;if(!ge){Ce=!0;const ft={};g.easing&&(ft.easing=g.easing),ge=(0,G.oB)(ft)}l.currentTime+=g.duration+g.delay;const Ke=this.visitStyle(ge,l);Ke.isEmptyStep=Ce,F=Ke}return l.currentAnimateTimings=null,{type:4,timings:g,style:F,options:null}}visitStyle(c,l){const g=this._makeStyleAst(c,l);return this._validateStyleAst(g,l),g}_makeStyleAst(c,l){const g=[];Array.isArray(c.styles)?c.styles.forEach(ge=>{"string"==typeof ge?ge==G.l3?g.push(ge):l.errors.push(`The provided style string value ${ge} is not allowed.`):g.push(ge)}):g.push(c.styles);let F=!1,ne=null;return g.forEach(ge=>{if($(ge)){const Ce=ge,Ke=Ce.easing;if(Ke&&(ne=Ke,delete Ce.easing),!F)for(let ft in Ce)if(Ce[ft].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:ne,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,ne=l.currentTime;g&&ne>0&&(ne-=g.duration+g.delay),c.styles.forEach(ge=>{"string"!=typeof ge&&Object.keys(ge).forEach(Ce=>{if(!this._driver.validateStyleProperty(Ce))return void l.errors.push(`The provided animation property "${Ce}" is not a supported CSS property for animations`);const Ke=l.collectedStyles[l.currentQuerySelector],ft=Ke[Ce];let Pt=!0;ft&&(ne!=F&&ne>=ft.startTime&&F<=ft.endTime&&(l.errors.push(`The CSS property "${Ce}" that exists between the times of "${ft.startTime}ms" and "${ft.endTime}ms" is also being animated in a parallel animation between the times of "${ne}ms" and "${F}ms"`),Pt=!1),ne=ft.startTime),Pt&&(Ke[Ce]={startTime:ne,endTime:F}),l.options&&function mn(O,c,l){const g=c.params||{},F=Ut(O);F.length&&F.forEach(ne=>{g.hasOwnProperty(ne)||l.push(`Unable to resolve the local animation param ${ne} in the given list of values`)})}(ge[Ce],l.options,l.errors)})})}visitKeyframes(c,l){const g={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),g;let ne=0;const ge=[];let Ce=!1,Ke=!1,ft=0;const Pt=c.steps.map(Jn=>{const ti=this._makeStyleAst(Jn,l);let _i=null!=ti.offset?ti.offset:function E(O){if("string"==typeof O)return null;let c=null;if(Array.isArray(O))O.forEach(l=>{if($(l)&&l.hasOwnProperty("offset")){const g=l;c=parseFloat(g.offset),delete g.offset}});else if($(O)&&O.hasOwnProperty("offset")){const l=O;c=parseFloat(l.offset),delete l.offset}return c}(ti.styles),di=0;return null!=_i&&(ne++,di=ti.offset=_i),Ke=Ke||di<0||di>1,Ce=Ce||di0&&ne{const _i=Gt>0?ti==ln?1:Gt*ti:ge[ti],di=_i*pn;l.currentTime=Kt+Jt.delay+di,Jt.duration=di,this._validateStyleAst(Jn,l),Jn.offset=_i,g.styles.push(Jn)}),g}visitReference(c,l){return{type:8,animation:qe(this,Zt(c.animation),l),options:Ae(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ae(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ae(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[ne,ge]=function ce(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(Me,"")),O=O.replace(/@\*/g,ie).replace(/@\w+/g,l=>ie+"-"+l.substr(1)).replace(/:animating/g,je),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+ne:ne,B(l.collectedStyles,l.currentQuerySelector,{});const Ce=qe(this,Zt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:ne,limit:F.limit||0,optional:!!F.optional,includeSelf:ge,animation:Ce,originalSelector:c.selector,options:Ae(c.options)}}visitStagger(c,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const g="full"===c.timings?{duration:0,delay:0,easing:"full"}:ve(c.timings,l.errors,!0);return{type:12,animation:qe(this,Zt(c.animation),l),timings:g,options:null}}}class L{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function $(O){return!Array.isArray(O)&&"object"==typeof O}function Ae(O){return O?(O=Qe(O)).params&&(O.params=function Ne(O){return O?Qe(O):null}(O.params)):O={},O}function wt(O,c,l){return{duration:O,delay:c,easing:l}}function At(O,c,l,g,F,ne,ge=null,Ce=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:ne,totalTime:F+ne,easing:ge,subTimeline:Ce}}class Qt{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,l){let g=this._map.get(c);g||this._map.set(c,g=[]),g.push(...l)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),jn=new RegExp(":leave","g");function qt(O,c,l,g,F,ne={},ge={},Ce,Ke,ft=[]){return(new Re).buildKeyframes(O,c,l,g,F,ne,ge,Ce,Ke,ft)}class Re{buildKeyframes(c,l,g,F,ne,ge,Ce,Ke,ft,Pt=[]){ft=ft||new Qt;const Bt=new ae(c,l,ft,F,ne,Pt,[]);Bt.options=Ke,Bt.currentTimeline.setStyles([ge],null,Bt.errors,Ke),qe(this,g,Bt);const Gt=Bt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(Ce).length){let ln;for(let Kt=Gt.length-1;Kt>=0;Kt--){const Jt=Gt[Kt];if(Jt.element===l){ln=Jt;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([Ce],null,Bt.errors,Ke)}return Gt.length?Gt.map(ln=>ln.buildKeyframes()):[At(l,[],[],[],0,0,"",!1)]}visitTrigger(c,l){}visitState(c,l){}visitTransition(c,l){}visitAnimateChild(c,l){const g=l.subInstructions.get(l.element);if(g){const F=l.createSubContext(c.options),ne=l.currentTimeline.currentTime,ge=this._visitSubInstructions(g,F,F.options);ne!=ge&&l.transformIntoNewTimeline(ge)}l.previousNode=c}visitAnimateRef(c,l){const g=l.createSubContext(c.options);g.transformIntoNewTimeline(),this.visitReference(c.animation,g),l.transformIntoNewTimeline(g.currentTimeline.currentTime),l.previousNode=c}_visitSubInstructions(c,l,g){let ne=l.currentTimeline.currentTime;const ge=null!=g.duration?tt(g.duration):null,Ce=null!=g.delay?tt(g.delay):null;return 0!==ge&&c.forEach(Ke=>{const ft=l.appendInstructionToTimeline(Ke,ge,Ce);ne=Math.max(ne,ft.duration+ft.delay)}),ne}visitReference(c,l){l.updateOptions(c.options,!0),qe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const ne=c.options;if(ne&&(ne.params||ne.delay)&&(F=l.createSubContext(ne),F.transformIntoNewTimeline(),null!=ne.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=we);const ge=tt(ne.delay);F.delayNextStep(ge)}c.steps.length&&(c.steps.forEach(ge=>qe(this,ge,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const ne=c.options&&c.options.delay?tt(c.options.delay):0;c.steps.forEach(ge=>{const Ce=l.createSubContext(c.options);ne&&Ce.delayNextStep(ne),qe(this,ge,Ce),F=Math.max(F,Ce.currentTimeline.currentTime),g.push(Ce.currentTimeline)}),g.forEach(ge=>l.currentTimeline.mergeTimelineCollectedStyles(ge)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ve(l.params?un(g,l.params,l.errors):g,l.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,l){const g=l.currentAnimateTimings=this._visitTiming(c.timings,l),F=l.currentTimeline;g.delay&&(l.incrementTime(g.delay),F.snapshotCurrentStyles());const ne=c.style;5==ne.type?this.visitKeyframes(ne,l):(l.incrementTime(g.duration),this.visitStyle(ne,l),F.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=c}visitStyle(c,l){const g=l.currentTimeline,F=l.currentAnimateTimings;!F&&g.getCurrentStyleProperties().length&&g.forwardFrame();const ne=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(ne):g.setStyles(c.styles,ne,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,ne=g.duration,Ce=l.createSubContext().currentTimeline;Ce.easing=g.easing,c.styles.forEach(Ke=>{Ce.forwardTime((Ke.offset||0)*ne),Ce.setStyles(Ke.styles,Ke.easing,l.errors,l.options),Ce.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Ce),l.transformIntoNewTimeline(F+ne),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},ne=F.delay?tt(F.delay):0;ne&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=we);let ge=g;const Ce=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Ce.length;let Ke=null;Ce.forEach((ft,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,ft);ne&&Bt.delayNextStep(ne),ft===l.element&&(Ke=Bt.currentTimeline),qe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ge=Math.max(ge,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ge),Ke&&(l.currentTimeline.mergeTimelineCollectedStyles(Ke),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,ne=c.timings,ge=Math.abs(ne.duration),Ce=ge*(l.currentQueryTotal-1);let Ke=ge*l.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":Ke=Ce-Ke;break;case"full":Ke=g.currentStaggerTime}const Pt=l.currentTimeline;Ke&&Pt.delayNextStep(Ke);const Bt=Pt.currentTime;qe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const we={};class ae{constructor(c,l,g,F,ne,ge,Ce,Ke){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=ne,this.errors=ge,this.timelines=Ce,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=we,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ke||new Ve(this._driver,l,0),Ce.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,l){if(!c)return;const g=c;let F=this.options;null!=g.duration&&(F.duration=tt(g.duration)),null!=g.delay&&(F.delay=tt(g.delay));const ne=g.params;if(ne){let ge=F.params;ge||(ge=this.options.params={}),Object.keys(ne).forEach(Ce=>{(!l||!ge.hasOwnProperty(Ce))&&(ge[Ce]=un(ne[Ce],ge,this.errors))})}}_copyOptions(){const c={};if(this.options){const l=this.options.params;if(l){const g=c.params={};Object.keys(l).forEach(F=>{g[F]=l[F]})}}return c}createSubContext(c=null,l,g){const F=l||this.element,ne=new ae(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(c),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(c){return this.previousNode=we,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,l,g){const F={duration:null!=l?l:c.duration,delay:this.currentTimeline.currentTime+(null!=g?g:0)+c.delay,easing:""},ne=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(ne),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,ne,ge){let Ce=[];if(F&&Ce.push(this.element),c.length>0){c=(c=c.replace(An,"."+this._enterClassName)).replace(jn,"."+this._leaveClassName);let ft=this._driver.query(this.element,c,1!=g);0!==g&&(ft=g<0?ft.slice(ft.length+g,ft.length):ft.slice(0,g)),Ce.push(...ft)}return!ne&&0==Ce.length&&ge.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Ce}}class Ve{constructor(c,l,g,F){this._driver=c,this.element=l,this.startTime=g,this._elementTimelineStylesLookup=F,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+c),l&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,l){return this.applyStylesToKeyframe(),new Ve(this._driver,c,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,l){this._localTimelineStyles[c]=l,this._globalTimelineStyles[c]=l,this._styleSummary[c]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||G.l3,this._currentKeyframe[l]=G.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const ne=F&&F.params||{},ge=function jt(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(ne=>{l[ne]=G.l3})):_t(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ge).forEach(Ce=>{const Ke=un(ge[Ce],ne,g);this._pendingStyles[Ce]=Ke,this._localTimelineStyles.hasOwnProperty(Ce)||(this._backFill[Ce]=this._globalTimelineStyles.hasOwnProperty(Ce)?this._globalTimelineStyles[Ce]:G.l3),this._updateStyle(Ce,Ke)})}applyStylesToKeyframe(){const c=this._pendingStyles,l=Object.keys(c);0!=l.length&&(this._pendingStyles={},l.forEach(g=>{this._currentKeyframe[g]=c[g]}),Object.keys(this._localTimelineStyles).forEach(g=>{this._currentKeyframe.hasOwnProperty(g)||(this._currentKeyframe[g]=this._localTimelineStyles[g])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const l=this._localTimelineStyles[c];this._pendingStyles[c]=l,this._updateStyle(c,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let l in this._currentKeyframe)c.push(l);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(l=>{const g=this._styleSummary[l],F=c._styleSummary[l];(!g||F.time>g.time)&&this._updateStyle(l,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,l=new Set,g=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ce,Ke)=>{const ft=_t(Ce,!0);Object.keys(ft).forEach(Pt=>{const Bt=ft[Pt];Bt==G.k1?c.add(Pt):Bt==G.l3&&l.add(Pt)}),g||(ft.offset=Ke/this.duration),F.push(ft)});const ne=c.size?_n(c.values()):[],ge=l.size?_n(l.values()):[];if(g){const Ce=F[0],Ke=Qe(Ce);Ce.offset=0,Ke.offset=1,F=[Ce,Ke]}return At(this.element,F,ne,ge,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(c,l,g,F,ne,ge,Ce=!1){super(c,l,ge.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=ne,this._stretchStartingKeyframe=Ce,this.timings={duration:ge.duration,delay:ge.delay,easing:ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:l,duration:g,easing:F}=this.timings;if(this._stretchStartingKeyframe&&l){const ne=[],ge=g+l,Ce=l/ge,Ke=_t(c[0],!1);Ke.offset=0,ne.push(Ke);const ft=_t(c[0],!1);ft.offset=It(Ce),ne.push(ft);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Gt=_t(c[Bt],!1);Gt.offset=It((l+Gt.offset*g)/ge),ne.push(Gt)}g=ge,l=0,F="",c=ne}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function It(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class Pn{}class Zn extends Pn{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let ne="";const ge=g.toString().trim();if(ii[l]&&0!==g&&"0"!==g)if("number"==typeof g)ne="px";else{const Ce=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Ce&&0==Ce[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ge+ne}}const ii=(()=>function En(O){const c={};return O.forEach(l=>c[l]=!0),c}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function ei(O,c,l,g,F,ne,ge,Ce,Ke,ft,Pt,Bt,Gt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:ne,toState:g,toStyles:ge,timelines:Ce,queriedElements:Ke,preStyleProps:ft,postStyleProps:Pt,totalTime:Bt,errors:Gt}}const Ln={};class Tt{constructor(c,l,g){this._triggerName=c,this.ast=l,this._stateStyles=g}match(c,l,g,F){return function rn(O,c,l,g,F){return O.some(ne=>ne(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],ne=this._stateStyles[c],ge=F?F.buildStyles(l,g):{};return ne?ne.buildStyles(l,g):ge}build(c,l,g,F,ne,ge,Ce,Ke,ft,Pt){const Bt=[],Gt=this.ast.options&&this.ast.options.params||Ln,Kt=this.buildStyles(g,Ce&&Ce.params||Ln,Bt),Jt=Ke&&Ke.params||Ln,pn=this.buildStyles(F,Jt,Bt),Jn=new Set,ti=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Gt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,ne,ge,Kt,pn,qi,ft,Bt);let fi=0;if(Oi.forEach(Yi=>{fi=Math.max(Yi.duration+Yi.delay,fi)}),Bt.length)return ei(l,this._triggerName,g,F,di,Kt,pn,[],[],ti,_i,fi,Bt);Oi.forEach(Yi=>{const Li=Yi.element,Ho=B(ti,Li,{});Yi.preStyleProps.forEach(ao=>Ho[ao]=!0);const zo=B(_i,Li,{});Yi.postStyleProps.forEach(ao=>zo[ao]=!0),Li!==l&&Jn.add(Li)});const Bi=_n(Jn.values());return ei(l,this._triggerName,g,F,di,Kt,pn,Oi,Bi,ti,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Qe(this.defaultParams);return Object.keys(c).forEach(ne=>{const ge=c[ne];null!=ge&&(F[ne]=ge)}),this.styles.styles.forEach(ne=>{if("string"!=typeof ne){const ge=ne;Object.keys(ge).forEach(Ce=>{let Ke=ge[Ce];Ke.length>1&&(Ke=un(Ke,F,l));const ft=this.normalizer.normalizePropertyName(Ce,l);Ke=this.normalizer.normalizeStyleValue(Ce,ft,Ke,l),g[ft]=Ke})}}),g}}class Te{constructor(c,l,g){this.name=c,this.ast=l,this._normalizer=g,this.transitionFactories=[],this.states={},l.states.forEach(F=>{this.states[F.name]=new bn(F.style,F.options&&F.options.params||{},g)}),De(this.states,"true","1"),De(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function Ze(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ge,Ce)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,l,g,F){return this.transitionFactories.find(ge=>ge.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function De(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const rt=new Qt;class Wt{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._animations={},this._playersById={},this.players=[]}register(c,l){const g=[],F=V(this._driver,l,g);if(g.length)throw new Error(`Unable to build the animation due to the following errors: ${g.join("\n")}`);this._animations[c]=F}_buildPlayer(c,l,g){const F=c.element,ne=W(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,ne,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],ne=this._animations[c];let ge;const Ce=new Map;if(ne?(ge=qt(this._driver,l,ne,he,te,{},{},g,rt,F),ge.forEach(Pt=>{const Bt=B(Ce,Pt.element,{});Pt.postStyleProps.forEach(Gt=>Bt[Gt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ge=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Ce.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Gt=>{Pt[Gt]=this._driver.computeStyle(Bt,Gt,G.l3)})});const ft=_(ge.map(Pt=>{const Bt=Ce.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=ft,ft.onDestroy(()=>this.destroy(c)),this.players.push(ft),ft}destroy(c){const l=this._getPlayer(c);l.destroy(),delete this._playersById[c];const g=this.players.indexOf(l);g>=0&&this.players.splice(g,1)}_getPlayer(c){const l=this._playersById[c];if(!l)throw new Error(`Unable to find the timeline player referenced by ${c}`);return l}listen(c,l,g,F){const ne=H(l,"","","");return I(this._getPlayer(c),g,ne,F),()=>{}}command(c,l,g,F){if("register"==g)return void this.register(c,F[0]);if("create"==g)return void this.create(c,l,F[0]||{});const ne=this._getPlayer(c);switch(g){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const on="ng-animate-queued",Un="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},se={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},k="__ng_removed";class Ee{constructor(c,l=""){this.namespaceId=l;const g=c&&c.hasOwnProperty("value");if(this.value=function ai(O){return null!=O?O:null}(g?c.value:c),g){const ne=Qe(c);delete ne.value,this.options=ne}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const l=c.params;if(l){const g=this.options.params;Object.keys(l).forEach(F=>{null==g[F]&&(g[F]=l[F])})}}}const st="void",Ct=new Ee(st);class Ot{constructor(c,l,g){this.id=c,this.hostElement=l,this._engine=g,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,ui(l,this._hostClassName)}listen(c,l,g,F){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${g}" because the animation trigger "${l}" doesn't exist!`);if(null==g||0==g.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if(!function bi(O){return"start"==O||"done"==O}(g))throw new Error(`The provided animation trigger event "${g}" for the animation trigger "${l}" is not supported!`);const ne=B(this._elementListeners,c,[]),ge={name:l,phase:g,callback:F};ne.push(ge);const Ce=B(this._engine.statesByElement,c,{});return Ce.hasOwnProperty(l)||(ui(c,le),ui(c,le+"-"+l),Ce[l]=Ct),()=>{this._engine.afterFlush(()=>{const Ke=ne.indexOf(ge);Ke>=0&&ne.splice(Ke,1),this._triggers[l]||delete Ce[l]})}}register(c,l){return!this._triggers[c]&&(this._triggers[c]=l,!0)}_getTrigger(c){const l=this._triggers[c];if(!l)throw new Error(`The provided animation trigger "${c}" has not been registered!`);return l}trigger(c,l,g,F=!0){const ne=this._getTrigger(l),ge=new hn(this.id,l,c);let Ce=this._engine.statesByElement.get(c);Ce||(ui(c,le),ui(c,le+"-"+l),this._engine.statesByElement.set(c,Ce={}));let Ke=Ce[l];const ft=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Ke&&ft.absorbOptions(Ke.options),Ce[l]=ft,Ke||(Ke=Ct),ft.value!==st&&Ke.value===ft.value){if(!function Zo(O,c){const l=Object.keys(O),g=Object.keys(c);if(l.length!=g.length)return!1;for(let F=0;F{Et(c,pn),ot(c,Jn)})}return}const Gt=B(this._engine.playersByElement,c,[]);Gt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let ln=ne.matchTransition(Ke.value,ft.value,c,ft.params),Kt=!1;if(!ln){if(!F)return;ln=ne.fallbackTransition,Kt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:ln,fromState:Ke,toState:ft,player:ge,isFallbackTransition:Kt}),Kt||(ui(c,on),ge.onStart(()=>{wi(c,on)})),ge.onDone(()=>{let Jt=this.players.indexOf(ge);Jt>=0&&this.players.splice(Jt,1);const pn=this._engine.playersByElement.get(c);if(pn){let Jn=pn.indexOf(ge);Jn>=0&&pn.splice(Jn,1)}}),this.players.push(ge),Gt.push(ge),ge}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((l,g)=>{delete l[c]}),this._elementListeners.forEach((l,g)=>{this._elementListeners.set(g,l.filter(F=>F.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const l=this._engine.playersByElement.get(c);l&&(l.forEach(g=>g.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,l){const g=this._engine.driver.query(c,ie,!0);g.forEach(F=>{if(F[k])return;const ne=this._engine.fetchNamespacesByElement(F);ne.size?ne.forEach(ge=>ge.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const ne=this._engine.statesByElement.get(c),ge=new Map;if(ne){const Ce=[];if(Object.keys(ne).forEach(Ke=>{if(ge.set(Ke,ne[Ke].value),this._triggers[Ke]){const ft=this.trigger(c,Ke,st,F);ft&&Ce.push(ft)}}),Ce.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ge),g&&_(Ce).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const l=this._elementListeners.get(c),g=this._engine.statesByElement.get(c);if(l&&g){const F=new Set;l.forEach(ne=>{const ge=ne.name;if(F.has(ge))return;F.add(ge);const Ke=this._triggers[ge].fallbackTransition,ft=g[ge]||Ct,Pt=new Ee(st),Bt=new hn(this.id,ge,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ge,transition:Ke,fromState:ft,toState:Pt,player:Bt,isFallbackTransition:!0})})}}removeNode(c,l){const g=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,l),this.triggerLeaveAnimation(c,l,!0))return;let F=!1;if(g.totalAnimations){const ne=g.players.length?g.playersByQueriedElement.get(c):[];if(ne&&ne.length)F=!0;else{let ge=c;for(;ge=ge.parentNode;)if(g.statesByElement.get(ge)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const ne=c[k];(!ne||ne===X)&&(g.afterFlush(()=>this.clearElementCache(c)),g.destroyInnerAnimations(c),g._onRemovalComplete(c,l))}}insertNode(c,l){ui(c,this._hostClassName)}drainQueuedTransitions(c){const l=[];return this._queue.forEach(g=>{const F=g.player;if(F.destroyed)return;const ne=g.element,ge=this._elementListeners.get(ne);ge&&ge.forEach(Ce=>{if(Ce.name==g.triggerName){const Ke=H(ne,g.triggerName,g.fromState.value,g.toState.value);Ke._data=c,I(g.player,Ce.phase,Ke,Ce.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const ne=g.transition.ast.depCount,ge=F.transition.ast.depCount;return 0==ne||0==ge?ne-ge:this._engine.driver.containsElement(g.element,F.element)?1:-1})}destroy(c){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let l=!1;return this._elementListeners.has(c)&&(l=!0),l=!!this._queue.find(g=>g.element===c)||l,l}}class Vt{constructor(c,l,g){this.bodyNode=c,this.driver=l,this._normalizer=g,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(F,ne)=>{}}_onRemovalComplete(c,l){this.onRemovalComplete(c,l)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(l=>{l.players.forEach(g=>{g.queued&&c.push(g)})}),c}createNamespace(c,l){const g=new Ot(c,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(g,l):(this.newHostElements.set(l,g),this.collectEnterElement(l)),this._namespaceLookup[c]=g}_balanceNamespaceList(c,l){const g=this._namespaceList.length-1;if(g>=0){let F=!1;for(let ne=g;ne>=0;ne--)if(this.driver.containsElement(this._namespaceList[ne].hostElement,l)){this._namespaceList.splice(ne+1,0,c),F=!0;break}F||this._namespaceList.splice(0,0,c)}else this._namespaceList.push(c);return this.namespacesByHostElement.set(l,c),c}register(c,l){let g=this._namespaceLookup[c];return g||(g=this.createNamespace(c,l)),g}registerTrigger(c,l,g){let F=this._namespaceLookup[c];F&&F.register(l,g)&&this.totalAnimations++}destroy(c,l){if(!c)return;const g=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(g.hostElement),delete this._namespaceLookup[c];const F=this._namespaceList.indexOf(g);F>=0&&this._namespaceList.splice(F,1)}),this.afterFlushAnimationsDone(()=>g.destroy(l))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const l=new Set,g=this.statesByElement.get(c);if(g){const F=Object.keys(g);for(let ne=0;ne=0&&this.collectedLeaveElements.splice(ge,1)}if(c){const ge=this._fetchNamespace(c);ge&&ge.insertNode(l,g)}F&&this.collectEnterElement(l)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,l){l?this.disabledNodes.has(c)||(this.disabledNodes.add(c),ui(c,Un)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,Un))}removeNode(c,l,g,F){if(kn(l)){const ne=c?this._fetchNamespace(c):null;if(ne?ne.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ge=this.namespacesByHostElement.get(l);ge&&ge.id!==c&&ge.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,ne){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(c,l,g,F,ne){return kn(l)?this._fetchNamespace(c).listen(l,g,F,ne):()=>{}}_buildInstruction(c,l,g,F,ne){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,ne)}destroyInnerAnimations(c){let l=this.driver.query(c,ie,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,je,!0),l.forEach(g=>this.finishActiveQueriedAnimationOnElement(g)))}destroyActiveAnimationsForElement(c){const l=this.playersByElement.get(c);l&&l.forEach(g=>{g.queued?g.markedForDestroy=!0:g.destroy()})}finishActiveQueriedAnimationOnElement(c){const l=this.playersByQueriedElement.get(c);l&&l.forEach(g=>g.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return _(this.players).onDone(()=>c());c()})}processLeaveNode(c){var l;const g=c[k];if(g&&g.setForRemoval){if(c[k]=X,g.namespaceId){this.destroyInnerAnimations(c);const F=this._fetchNamespace(g.namespaceId);F&&F.clearElementCache(c)}this._onRemovalComplete(c,g.setForRemoval)}(null===(l=c.classList)||void 0===l?void 0:l.contains(Un))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(F=>{this.markElementAsDisabled(F,!1)})}flush(c=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((g,F)=>this._balanceNamespaceList(g,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let g=0;gg()),this._flushFns=[],this._whenQuietFns.length){const g=this._whenQuietFns;this._whenQuietFns=[],l.length?_(l).onDone(()=>{g.forEach(F=>F())}):g.forEach(F=>F())}}reportError(c){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${c.join("\n")}`)}_flushAnimations(c,l){const g=new Qt,F=[],ne=new Map,ge=[],Ce=new Map,Ke=new Map,ft=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let en=0;en{const en=he+Jt++;Kt.set(Xt,en),Rt.forEach(sn=>ui(sn,en))});const pn=[],Jn=new Set,ti=new Set;for(let Rt=0;RtJn.add(sn)):ti.add(Xt))}const _i=new Map,di=vi(Gt,Array.from(Jn));di.forEach((Rt,Xt)=>{const en=te+Jt++;_i.set(Xt,en),Rt.forEach(sn=>ui(sn,en))}),c.push(()=>{ln.forEach((Rt,Xt)=>{const en=Kt.get(Xt);Rt.forEach(sn=>wi(sn,en))}),di.forEach((Rt,Xt)=>{const en=_i.get(Xt);Rt.forEach(sn=>wi(sn,en))}),pn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(en=>{const sn=en.player,Gn=en.element;if(qi.push(sn),this.collectedEnterElements.length){const Ci=Gn[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(en.triggerName)){const Hi=Ci.previousTriggersValues.get(en.triggerName),Ni=this.statesByElement.get(en.element);Ni&&Ni[en.triggerName]&&(Ni[en.triggerName].value=Hi)}return void sn.destroy()}}const xn=!Bt||!this.driver.containsElement(Bt,Gn),pi=_i.get(Gn),Ji=Kt.get(Gn),Xn=this._buildInstruction(en,g,Ji,pi,xn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(xn)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);if(en.isFallbackTransition)return sn.onStart(()=>Et(Gn,Xn.fromStyles)),sn.onDestroy(()=>ot(Gn,Xn.toStyles)),void F.push(sn);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append(Gn,Xn.timelines),ge.push({instruction:Xn,player:sn,element:Gn}),Xn.queriedElements.forEach(Ci=>B(Ce,Ci,[]).push(sn)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let ji=Ke.get(Hi);ji||Ke.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let ji=ft.get(Hi);ji||ft.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))})});if(Oi.length){const Rt=[];Oi.forEach(Xt=>{Rt.push(`@${Xt.triggerName} has failed due to:\n`),Xt.errors.forEach(en=>Rt.push(`- ${en}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Bi=new Map;ge.forEach(Rt=>{const Xt=Rt.element;g.has(Xt)&&(Bi.set(Xt,Xt),this._beforeAnimationBuild(Rt.player.namespaceId,Rt.instruction,fi))}),F.forEach(Rt=>{const Xt=Rt.element;this._getPreviousPlayers(Xt,!1,Rt.namespaceId,Rt.triggerName,null).forEach(sn=>{B(fi,Xt,[]).push(sn),sn.destroy()})});const Yi=pn.filter(Rt=>Wi(Rt,Ke,ft)),Li=new Map;Ao(Li,this.driver,ti,ft,G.l3).forEach(Rt=>{Wi(Rt,Ke,ft)&&Yi.push(Rt)});const zo=new Map;ln.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Ke,G.k1)}),Yi.forEach(Rt=>{const Xt=Li.get(Rt),en=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),en))});const ao=[],fr=[],pr={};ge.forEach(Rt=>{const{element:Xt,player:en,instruction:sn}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return en.onDestroy(()=>ot(Xt,sn.toStyles)),en.disabled=!0,en.overrideTotalTime(sn.totalTime),void F.push(en);let Gn=pr;if(Bi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Bi.get(pi);if(Xn){Gn=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Bi.set(Xn,Gn))}const xn=this._buildAnimation(en.namespaceId,sn,fi,ne,zo,Li);if(en.setRealPlayer(xn),Gn===pr)ao.push(en);else{const pi=this.playersByElement.get(Gn);pi&&pi.length&&(en.parentPlayer=_(pi)),F.push(en)}}else Et(Xt,sn.fromStyles),en.onDestroy(()=>ot(Xt,sn.toStyles)),fr.push(en),Pt.has(Xt)&&F.push(en)}),fr.forEach(Rt=>{const Xt=ne.get(Rt.element);if(Xt&&Xt.length){const en=_(Xt);Rt.setRealPlayer(en)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!xn.destroyed);Gn.length?ko(this,Xt,Gn):this.processLeaveNode(Xt)}return pn.length=0,ao.forEach(Rt=>{this.players.push(Rt),Rt.onDone(()=>{Rt.destroy();const Xt=this.players.indexOf(Rt);this.players.splice(Xt,1)}),Rt.play()}),ao}elementContainsData(c,l){let g=!1;const F=l[k];return F&&F.setForRemoval&&(g=!0),this.playersByElement.has(l)&&(g=!0),this.playersByQueriedElement.has(l)&&(g=!0),this.statesByElement.has(l)&&(g=!0),this._fetchNamespace(c).elementContainsData(l)||g}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,l,g,F,ne){let ge=[];if(l){const Ce=this.playersByQueriedElement.get(c);Ce&&(ge=Ce)}else{const Ce=this.playersByElement.get(c);if(Ce){const Ke=!ne||ne==st;Ce.forEach(ft=>{ft.queued||!Ke&&ft.triggerName!=F||ge.push(ft)})}}return(g||F)&&(ge=ge.filter(Ce=>!(g&&g!=Ce.namespaceId||F&&F!=Ce.triggerName))),ge}_beforeAnimationBuild(c,l,g){const ne=l.element,ge=l.isRemovalTransition?void 0:c,Ce=l.isRemovalTransition?void 0:l.triggerName;for(const Ke of l.timelines){const ft=Ke.element,Pt=ft!==ne,Bt=B(g,ft,[]);this._getPreviousPlayers(ft,Pt,ge,Ce,l.toState).forEach(ln=>{const Kt=ln.getRealPlayer();Kt.beforeDestroy&&Kt.beforeDestroy(),ln.destroy(),Bt.push(ln)})}Et(ne,l.fromStyles)}_buildAnimation(c,l,g,F,ne,ge){const Ce=l.triggerName,Ke=l.element,ft=[],Pt=new Set,Bt=new Set,Gt=l.timelines.map(Kt=>{const Jt=Kt.element;Pt.add(Jt);const pn=Jt[k];if(pn&&pn.removedBeforeQueried)return new G.ZN(Kt.duration,Kt.delay);const Jn=Jt!==Ke,ti=function Fo(O){const c=[];return vo(O,c),c}((g.get(Jt)||qn).map(fi=>fi.getRealPlayer())).filter(fi=>!!fi.element&&fi.element===Jt),_i=ne.get(Jt),di=ge.get(Jt),qi=W(0,this._normalizer,0,Kt.keyframes,_i,di),Oi=this._buildPlayer(Kt,qi,ti);if(Kt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new hn(c,Ce,Jt);fi.setRealPlayer(Oi),ft.push(fi)}return Oi});ft.forEach(Kt=>{B(this.playersByQueriedElement,Kt.element,[]).push(Kt),Kt.onDone(()=>function ni(O,c,l){let g;if(O instanceof Map){if(g=O.get(c),g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&O.delete(c)}}else if(g=O[c],g){if(g.length){const F=g.indexOf(l);g.splice(F,1)}0==g.length&&delete O[c]}return g}(this.playersByQueriedElement,Kt.element,Kt))}),Pt.forEach(Kt=>ui(Kt,Ue));const ln=_(Gt);return ln.onDestroy(()=>{Pt.forEach(Kt=>wi(Kt,Ue)),ot(Ke,l.toStyles)}),Bt.forEach(Kt=>{B(F,Kt,[]).push(ln)}),ln}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new G.ZN(c.duration,c.delay)}}class hn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new G.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(g=>I(c,l,void 0,g))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const l=this._player;l.triggerCallback&&c.onStart(()=>l.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,l){B(this._queuedCallbacks,c,[]).push(l)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const l=this._player;l.triggerCallback&&l.triggerCallback(c)}}function kn(O){return O&&1===O.nodeType}function io(O,c){const l=O.style.display;return O.style.display=null!=c?c:"none",l}function Ao(O,c,l,g,F){const ne=[];l.forEach(Ke=>ne.push(io(Ke)));const ge=[];g.forEach((Ke,ft)=>{const Pt={};Ke.forEach(Bt=>{const Gt=Pt[Bt]=c.computeStyle(ft,Bt,F);(!Gt||0==Gt.length)&&(ft[k]=se,ge.push(ft))}),O.set(ft,Pt)});let Ce=0;return l.forEach(Ke=>io(Ke,ne[Ce++])),ge}function vi(O,c){const l=new Map;if(O.forEach(Ce=>l.set(Ce,[])),0==c.length)return l;const F=new Set(c),ne=new Map;function ge(Ce){if(!Ce)return 1;let Ke=ne.get(Ce);if(Ke)return Ke;const ft=Ce.parentNode;return Ke=l.has(ft)?ft:F.has(ft)?1:ge(ft),ne.set(Ce,Ke),Ke}return c.forEach(Ce=>{const Ke=ge(Ce);1!==Ke&&l.get(Ke).push(Ce)}),l}function ui(O,c){var l;null===(l=O.classList)||void 0===l||l.add(c)}function wi(O,c){var l;null===(l=O.classList)||void 0===l||l.remove(c)}function ko(O,c,l){_(l).onDone(()=>O.processLeaveNode(c))}function vo(O,c){for(let l=0;lF.add(ne)):c.set(O,g),l.delete(O),!0}class yo{constructor(c,l,g){this.bodyNode=c,this._driver=l,this._normalizer=g,this._triggerCache={},this.onRemovalComplete=(F,ne)=>{},this._transitionEngine=new Vt(c,l,g),this._timelineEngine=new Wt(c,l,g),this._transitionEngine.onRemovalComplete=(F,ne)=>this.onRemovalComplete(F,ne)}registerTrigger(c,l,g,F,ne){const ge=c+"-"+F;let Ce=this._triggerCache[ge];if(!Ce){const Ke=[],ft=V(this._driver,ne,Ke);if(Ke.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Ke.join("\n - ")}`);Ce=function Qn(O,c,l){return new Te(O,c,l)}(F,ft,this._normalizer),this._triggerCache[ge]=Ce}this._transitionEngine.registerTrigger(l,F,Ce)}register(c,l){this._transitionEngine.register(c,l)}destroy(c,l){this._transitionEngine.destroy(c,l)}onInsert(c,l,g,F){this._transitionEngine.insertNode(c,l,g,F)}onRemove(c,l,g,F){this._transitionEngine.removeNode(c,l,F||!1,g)}disableAnimations(c,l){this._transitionEngine.markElementAsDisabled(c,l)}process(c,l,g,F){if("@"==g.charAt(0)){const[ne,ge]=ee(g);this._timelineEngine.command(ne,l,ge,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,ne){if("@"==g.charAt(0)){const[ge,Ce]=ee(g);return this._timelineEngine.listen(ge,l,Ce,ne)}return this._transitionEngine.listen(c,l,g,F,ne)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function _o(O,c){let l=null,g=null;return Array.isArray(c)&&c.length?(l=Ii(c[0]),c.length>1&&(g=Ii(c[c.length-1]))):c&&(l=Ii(c)),l||g?new sr(O,l,g):null}let sr=(()=>{class O{constructor(l,g,F){this._element=l,this._startStyles=g,this._endStyles=F,this._state=0;let ne=O.initialStylesByElement.get(l);ne||O.initialStylesByElement.set(l,ne={}),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&ot(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ot(this._element,this._initialStyles),this._endStyles&&(ot(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(O.initialStylesByElement.delete(this._element),this._startStyles&&(Et(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),ot(this._element,this._initialStyles),this._state=3)}}return O.initialStylesByElement=new WeakMap,O})();function Ii(O){let c=null;const l=Object.keys(O);for(let g=0;gthis._handleCallback(Ke)}apply(){(function qo(O,c){const l=bo(O,"").trim();let g=0;l.length&&(g=function Vo(O,c){let l=0;for(let g=0;g=this._delay&&g>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function Ti(O,c){const g=bo(O,"").split(","),F=oi(g,c);F>=0&&(g.splice(F,1),Di(O,"",g.join(",")))}(this._element,this._name))}}function oo(O,c,l){Di(O,"PlayState",l,ro(O,c))}function ro(O,c){const l=bo(O,"");return l.indexOf(",")>0?oi(l.split(","),c):oi([l],c)}function oi(O,c){for(let l=0;l=0)return l;return-1}function Zi(O,c,l){l?O.removeEventListener(Gi,c):O.addEventListener(Gi,c)}function Di(O,c,l,g){const F=Mo+c;if(null!=g){const ne=O.style[F];if(ne.length){const ge=ne.split(",");ge[g]=l,l=ge.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,ne,ge,Ce,Ke){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=ne,this._finalStyles=Ce,this._specialStyles=Ke,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ge||"linear",this.totalTime=F+ne,this._buildStyler()}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(c=>c()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(c=>c()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(c){this._styler.setPosition(c)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qo(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}beforeDestroy(){this.init();const c={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(g=>{"offset"!=g&&(c[g]=l?this._finalStyles[g]:x(this.element,g))})}this.currentSnapshot=c}}class Vi extends G.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=$e(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(c=>{this._startingStyles[c]=this.element.style[c]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(c=>this.element.style.setProperty(c,this._styles[c])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(c=>{const l=this._startingStyles[c];l?this.element.style.setProperty(c,l):this.element.style.removeProperty(c)}),this._startingStyles=null,super.destroy())}}class so{constructor(){this._count=0}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Ce=>$e(Ce));let F=`@keyframes ${l} {\n`,ne="";g.forEach(Ce=>{ne=" ";const Ke=parseFloat(Ce.offset);F+=`${ne}${100*Ke}% {\n`,ne+=" ",Object.keys(Ce).forEach(ft=>{const Pt=Ce[ft];switch(ft){case"offset":return;case"easing":return void(Pt&&(F+=`${ne}animation-timing-function: ${Pt};\n`));default:return void(F+=`${ne}${ft}: ${Pt};\n`)}}),F+=`${ne}}\n`}),F+="}\n";const ge=document.createElement("style");return ge.textContent=F,ge}animate(c,l,g,F,ne,ge=[],Ce){const Ke=ge.filter(pn=>pn instanceof xi),ft={};cn(g,F)&&Ke.forEach(pn=>{let Jn=pn.currentSnapshot;Object.keys(Jn).forEach(ti=>ft[ti]=Jn[ti])});const Pt=function Jo(O){let c={};return O&&(Array.isArray(O)?O:[O]).forEach(g=>{Object.keys(g).forEach(F=>{"offset"==F||"easing"==F||(c[F]=g[F])})}),c}(l=Mn(c,l,ft));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Gt=this.buildKeyframeElement(c,Bt,l);(function Do(O){var c;const l=null===(c=O.getRootNode)||void 0===c?void 0:c.call(O);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(c).appendChild(Gt);const Kt=_o(c,l),Jt=new xi(c,l,Bt,g,F,ne,Pt,Kt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Gt)),Jt}}class Pi{constructor(c,l,g,F){this.element=c,this.keyframes=l,this.options=g,this._specialStyles=F,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=g.duration,this._delay=g.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,l,g){return c.animate(l,g)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(g=>{"offset"!=g&&(c[g]=this._finished?l[g]:x(this.element,g))})}this.currentSnapshot=c}triggerCallback(c){const l="start"==c?this._onStartFns:this._onDoneFns;l.forEach(g=>g()),l.length=0}}class yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(b().toString()),this._cssKeyframesDriver=new so}validateStyleProperty(c){return Je(c)}matchesElement(c,l){return!1}containsElement(c,l){return ut(c,l)}query(c,l,g){return Ie(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,ne,ge=[],Ce){if(!Ce&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,ne,ge);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};ne&&(Pt.easing=ne);const Bt={},Gt=ge.filter(Kt=>Kt instanceof Pi);cn(g,F)&&Gt.forEach(Kt=>{let Jt=Kt.currentSnapshot;Object.keys(Jt).forEach(pn=>Bt[pn]=Jt[pn])});const ln=_o(c,l=Mn(c,l=l.map(Kt=>_t(Kt,!1)),Bt));return new Pi(c,l,Pt,ln)}}function b(){return oe()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends G._j{constructor(l,g){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(g.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(l){const g=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(l)?(0,G.vP)(l):l;return ct(this._renderer,null,g,"register",[F]),new Q(g,this._renderer)}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(Y.K0))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Q extends G.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new xe(this._id,c,l||{},this._renderer)}}class xe{constructor(c,l,g,F){this.id=c,this.element=l,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",g)}_listen(c,l){return this._renderer.listen(this.element,`@@${this.id}:${c}`,l)}_command(c,...l){return ct(this._renderer,this.element,this.id,c,l)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,l;return null!==(l=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==l?l:0}}function ct(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Fn=(()=>{class O{constructor(l,g,F){this.delegate=l,this.engine=g,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),g.onRemovalComplete=(ne,ge)=>{const Ce=null==ge?void 0:ge.parentNode(ne);Ce&&ge.removeChild(Ce,ne)}}createRenderer(l,g){const ne=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(ne);return Pt||(Pt=new Tn("",ne,this.engine),this._rendererCache.set(ne,Pt)),Pt}const ge=g.id,Ce=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Ce,l);const Ke=Pt=>{Array.isArray(Pt)?Pt.forEach(Ke):this.engine.registerTrigger(ge,Ce,l,Pt.name,Pt)};return g.data.animation.forEach(Ke),new Dn(this,Ce,ne,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,g,F){l>=0&&lg(F)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ne=>{const[ge,Ce]=ne;ge(Ce)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([g,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(a.FYo),a.LFG(yo),a.LFG(a.R0b))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();class Tn{constructor(c,l,g){this.namespaceId=c,this.delegate=l,this.engine=g,this.destroyNode=this.delegate.destroyNode?F=>l.destroyNode(F):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,l){return this.delegate.createElement(c,l)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,l){this.delegate.appendChild(c,l),this.engine.onInsert(this.namespaceId,l,c,!1)}insertBefore(c,l,g,F=!0){this.delegate.insertBefore(c,l,g),this.engine.onInsert(this.namespaceId,l,c,F)}removeChild(c,l,g){this.engine.onRemove(this.namespaceId,l,this.delegate,g)}selectRootElement(c,l){return this.delegate.selectRootElement(c,l)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,l,g,F){this.delegate.setAttribute(c,l,g,F)}removeAttribute(c,l,g){this.delegate.removeAttribute(c,l,g)}addClass(c,l){this.delegate.addClass(c,l)}removeClass(c,l){this.delegate.removeClass(c,l)}setStyle(c,l,g,F){this.delegate.setStyle(c,l,g,F)}removeStyle(c,l,g){this.delegate.removeStyle(c,l,g)}setProperty(c,l,g){"@"==l.charAt(0)&&l==kt?this.disableAnimations(c,!!g):this.delegate.setProperty(c,l,g)}setValue(c,l){this.delegate.setValue(c,l)}listen(c,l,g){return this.delegate.listen(c,l,g)}disableAnimations(c,l){this.engine.disableAnimations(c,l)}}class Dn extends Tn{constructor(c,l,g,F){super(l,g,F),this.factory=c,this.namespaceId=l}setProperty(c,l,g){"@"==l.charAt(0)?"."==l.charAt(1)&&l==kt?this.disableAnimations(c,g=void 0===g||!!g):this.engine.process(this.namespaceId,c,l.substr(1),g):this.delegate.setProperty(c,l,g)}listen(c,l,g){if("@"==l.charAt(0)){const F=function dn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let ne=l.substr(1),ge="";return"@"!=ne.charAt(0)&&([ne,ge]=function Yn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(ne)),this.engine.listen(this.namespaceId,F,ne,ge,Ce=>{this.factory.scheduleListenerCallback(Ce._data||-1,g,Ce)})}return this.delegate.listen(c,l,g)}}let On=(()=>{class O extends yo{constructor(l,g,F){super(l.body,g,F)}ngOnDestroy(){this.flush()}}return O.\u0275fac=function(l){return new(l||O)(a.LFG(Y.K0),a.LFG(Se),a.LFG(Pn))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:G._j,useClass:w},{provide:Pn,useFactory:function Eo(){return new Zn}},{provide:yo,useClass:On},{provide:a.FYo,useFactory:function D(O,c,l){return new Fn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:Se,useFactory:function Yt(){return function Wn(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],at=[{provide:Se,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?at:U}}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275mod=a.oAB({type:O}),O.\u0275inj=a.cJS({providers:U,imports:[s.b2]}),O})()},2313:(yt,be,p)=>{p.d(be,{b2:()=>_n,H7:()=>An,q6:()=>Ut,se:()=>le});var a=p(9808),s=p(5e3);class G extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class oe extends G{static makeCurrent(){(0,a.HT)(new oe)}onAndCancel(we,ae,Ve){return we.addEventListener(ae,Ve,!1),()=>{we.removeEventListener(ae,Ve,!1)}}dispatchEvent(we,ae){we.dispatchEvent(ae)}remove(we){we.parentNode&&we.parentNode.removeChild(we)}createElement(we,ae){return(ae=ae||this.getDefaultDocument()).createElement(we)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(we){return we.nodeType===Node.ELEMENT_NODE}isShadowRoot(we){return we instanceof DocumentFragment}getGlobalEventTarget(we,ae){return"window"===ae?window:"document"===ae?we:"body"===ae?we.body:null}getBaseHref(we){const ae=function _(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==ae?null:function I(Re){W=W||document.createElement("a"),W.setAttribute("href",Re);const we=W.pathname;return"/"===we.charAt(0)?we:`/${we}`}(ae)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(we){return(0,a.Mx)(document.cookie,we)}}let W,q=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(Re,we,ae){return()=>{ae.get(s.CZH).donePromise.then(()=>{const Ve=(0,a.q)(),ht=we.querySelectorAll(`style[ng-transition="${Re}"]`);for(let It=0;It{const It=we.findTestabilityInTree(Ve,ht);if(null==It)throw new Error("Could not find testability for element.");return It},s.dqk.getAllAngularTestabilities=()=>we.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>we.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Ve=>{const ht=s.dqk.getAllAngularTestabilities();let It=ht.length,jt=!1;const fn=function(Pn){jt=jt||Pn,It--,0==It&&Ve(jt)};ht.forEach(function(Pn){Pn.whenStable(fn)})})}findTestabilityInTree(we,ae,Ve){if(null==ae)return null;const ht=we.getTestability(ae);return null!=ht?ht:Ve?(0,a.q)().isShadowRoot(ae)?this.findTestabilityInTree(we,ae.host,!0):this.findTestabilityInTree(we,ae.parentElement,!0):null}}let ye=(()=>{class Re{build(){return new XMLHttpRequest}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ye=new s.OlP("EventManagerPlugins");let Fe=(()=>{class Re{constructor(ae,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ae.forEach(ht=>ht.manager=this),this._plugins=ae.slice().reverse()}addEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addEventListener(ae,Ve,ht)}addGlobalEventListener(ae,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(ae,Ve,ht)}getZone(){return this._zone}_findPluginFor(ae){const Ve=this._eventNameToPlugin.get(ae);if(Ve)return Ve;const ht=this._plugins;for(let It=0;It{class Re{constructor(){this._stylesSet=new Set}addStyles(ae){const Ve=new Set;ae.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(ae){}getAllStyles(){return Array.from(this._stylesSet)}}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})(),vt=(()=>{class Re extends _e{constructor(ae){super(),this._doc=ae,this._hostNodes=new Map,this._hostNodes.set(ae.head,[])}_addStylesToHost(ae,Ve,ht){ae.forEach(It=>{const jt=this._doc.createElement("style");jt.textContent=It,ht.push(Ve.appendChild(jt))})}addHost(ae){const Ve=[];this._addStylesToHost(this._stylesSet,ae,Ve),this._hostNodes.set(ae,Ve)}removeHost(ae){const Ve=this._hostNodes.get(ae);Ve&&Ve.forEach(Je),this._hostNodes.delete(ae)}onStylesAdded(ae){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(ae,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ae=>ae.forEach(Je))}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function Je(Re){(0,a.q)().remove(Re)}const zt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ut=/%COMP%/g;function fe(Re,we,ae){for(let Ve=0;Ve{if("__ngUnwrap__"===we)return Re;!1===Re(we)&&(we.preventDefault(),we.returnValue=!1)}}let le=(()=>{class Re{constructor(ae,Ve,ht){this.eventManager=ae,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ae)}createRenderer(ae,Ve){if(!ae||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new tt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(ae),ht}case 1:case s.ifc.ShadowDom:return new ke(this.eventManager,this.sharedStylesHost,ae,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=fe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Fe),s.LFG(vt),s.LFG(s.AFp))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();class ie{constructor(we){this.eventManager=we,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(we,ae){return ae?document.createElementNS(zt[ae]||ae,we):document.createElement(we)}createComment(we){return document.createComment(we)}createText(we){return document.createTextNode(we)}appendChild(we,ae){we.appendChild(ae)}insertBefore(we,ae,Ve){we&&we.insertBefore(ae,Ve)}removeChild(we,ae){we&&we.removeChild(ae)}selectRootElement(we,ae){let Ve="string"==typeof we?document.querySelector(we):we;if(!Ve)throw new Error(`The selector "${we}" did not match any elements`);return ae||(Ve.textContent=""),Ve}parentNode(we){return we.parentNode}nextSibling(we){return we.nextSibling}setAttribute(we,ae,Ve,ht){if(ht){ae=ht+":"+ae;const It=zt[ht];It?we.setAttributeNS(It,ae,Ve):we.setAttribute(ae,Ve)}else we.setAttribute(ae,Ve)}removeAttribute(we,ae,Ve){if(Ve){const ht=zt[Ve];ht?we.removeAttributeNS(ht,ae):we.removeAttribute(`${Ve}:${ae}`)}else we.removeAttribute(ae)}addClass(we,ae){we.classList.add(ae)}removeClass(we,ae){we.classList.remove(ae)}setStyle(we,ae,Ve,ht){ht&(s.JOm.DashCase|s.JOm.Important)?we.style.setProperty(ae,Ve,ht&s.JOm.Important?"important":""):we.style[ae]=Ve}removeStyle(we,ae,Ve){Ve&s.JOm.DashCase?we.style.removeProperty(ae):we.style[ae]=""}setProperty(we,ae,Ve){we[ae]=Ve}setValue(we,ae){we.nodeValue=ae}listen(we,ae,Ve){return"string"==typeof we?this.eventManager.addGlobalEventListener(we,ae,he(Ve)):this.eventManager.addEventListener(we,ae,he(Ve))}}class tt extends ie{constructor(we,ae,Ve,ht){super(we),this.component=Ve;const It=fe(ht+"-"+Ve.id,Ve.styles,[]);ae.addStyles(It),this.contentAttr=function Xe(Re){return"_ngcontent-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id),this.hostAttr=function J(Re){return"_nghost-%COMP%".replace(ut,Re)}(ht+"-"+Ve.id)}applyToHost(we){super.setAttribute(we,this.hostAttr,"")}createElement(we,ae){const Ve=super.createElement(we,ae);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ke extends ie{constructor(we,ae,Ve,ht){super(we),this.sharedStylesHost=ae,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const It=fe(ht.id,ht.styles,[]);for(let jt=0;jt{class Re extends ze{constructor(ae){super(ae)}supports(ae){return!0}addEventListener(ae,Ve,ht){return ae.addEventListener(Ve,ht,!1),()=>this.removeEventListener(ae,Ve,ht)}removeEventListener(ae,Ve,ht){return ae.removeEventListener(Ve,ht)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const mt=["alt","control","meta","shift"],dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_t={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},it={alt:Re=>Re.altKey,control:Re=>Re.ctrlKey,meta:Re=>Re.metaKey,shift:Re=>Re.shiftKey};let St=(()=>{class Re extends ze{constructor(ae){super(ae)}supports(ae){return null!=Re.parseEventName(ae)}addEventListener(ae,Ve,ht){const It=Re.parseEventName(Ve),jt=Re.eventCallback(It.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(ae,It.domEventName,jt))}static parseEventName(ae){const Ve=ae.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const It=Re._normalizeKey(Ve.pop());let jt="";if(mt.forEach(Pn=>{const si=Ve.indexOf(Pn);si>-1&&(Ve.splice(si,1),jt+=Pn+".")}),jt+=It,0!=Ve.length||0===It.length)return null;const fn={};return fn.domEventName=ht,fn.fullKey=jt,fn}static getEventFullKey(ae){let Ve="",ht=function ot(Re){let we=Re.key;if(null==we){if(we=Re.keyIdentifier,null==we)return"Unidentified";we.startsWith("U+")&&(we=String.fromCharCode(parseInt(we.substring(2),16)),3===Re.location&&_t.hasOwnProperty(we)&&(we=_t[we]))}return dt[we]||we}(ae);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),mt.forEach(It=>{It!=ht&&it[It](ae)&&(Ve+=It+".")}),Ve+=ht,Ve}static eventCallback(ae,Ve,ht){return It=>{Re.getEventFullKey(It)===ae&&ht.runGuarded(()=>Ve(It))}}static _normalizeKey(ae){return"esc"===ae?"escape":ae}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Ut=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){oe.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function mn(){return(0,s.RDi)(document),document},deps:[]}]),un=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Zt(){return new s.qLn},deps:[]},{provide:Ye,useClass:ve,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:Ye,useClass:St,multi:!0,deps:[a.K0]},{provide:le,useClass:le,deps:[Fe,vt,s.AFp]},{provide:s.FYo,useExisting:le},{provide:_e,useExisting:vt},{provide:vt,useClass:vt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Fe,useClass:Fe,deps:[Ye,s.R0b]},{provide:a.JF,useClass:ye,deps:[]}];let _n=(()=>{class Re{constructor(ae){if(ae)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ae){return{ngModule:Re,providers:[{provide:s.AFp,useValue:ae.appId},{provide:R,useExisting:s.AFp},B]}}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(Re,12))},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({providers:un,imports:[a.ez,s.hGG]}),Re})();"undefined"!=typeof window&&window;let An=(()=>{class Re{}return Re.\u0275fac=function(ae){return new(ae||Re)},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new(ae||Re):s.LFG(jn),Ve},providedIn:"root"}),Re})(),jn=(()=>{class Re extends An{constructor(ae){super(),this._doc=ae}sanitize(ae,Ve){if(null==Ve)return null;switch(ae){case s.q3G.NONE:return Ve;case s.q3G.HTML:return(0,s.qzn)(Ve,"HTML")?(0,s.z3N)(Ve):(0,s.EiD)(this._doc,String(Ve)).toString();case s.q3G.STYLE:return(0,s.qzn)(Ve,"Style")?(0,s.z3N)(Ve):Ve;case s.q3G.SCRIPT:if((0,s.qzn)(Ve,"Script"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Ve),(0,s.qzn)(Ve,"URL")?(0,s.z3N)(Ve):(0,s.mCW)(String(Ve));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Ve,"ResourceURL"))return(0,s.z3N)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ae} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ae){return(0,s.JVY)(ae)}bypassSecurityTrustStyle(ae){return(0,s.L6k)(ae)}bypassSecurityTrustScript(ae){return(0,s.eBb)(ae)}bypassSecurityTrustUrl(ae){return(0,s.LAX)(ae)}bypassSecurityTrustResourceUrl(ae){return(0,s.pB0)(ae)}}return Re.\u0275fac=function(ae){return new(ae||Re)(s.LFG(a.K0))},Re.\u0275prov=s.Yz7({token:Re,factory:function(ae){let Ve=null;return Ve=ae?new ae:function ri(Re){return new jn(Re.get(a.K0))}(s.LFG(s.zs3)),Ve},providedIn:"root"}),Re})()},2302:(yt,be,p)=>{p.d(be,{gz:()=>k,m2:()=>Et,OD:()=>ot,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const G=(()=>{function m(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return m.prototype=Object.create(Error.prototype),m})();var oe=p(5254),q=p(1086),_=p(591),W=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),ye=p(8929),Ye=p(2198),Fe=p(3489),ze=p(4231);function _e(m){return function(h){return 0===m?(0,B.c)():h.lift(new vt(m))}}class vt{constructor(d){if(this.total=d,this.total<0)throw new ze.W}call(d,h){return h.subscribe(new Je(d,this.total))}}class Je extends Fe.L{constructor(d,h){super(d),this.total=h,this.ring=new Array,this.count=0}_next(d){const h=this.ring,M=this.total,S=this.count++;h.length0){const M=this.count>=this.total?this.total:this.count,S=this.ring;for(let K=0;Kd.lift(new ut(m))}class ut{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new Ie(d,this.errorFactory))}}class Ie extends Fe.L{constructor(d,h){super(d),this.errorFactory=h,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(h){d=h}this.destination.error(d)}}}function $e(){return new G}function et(m=null){return d=>d.lift(new Se(m))}class Se{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Xe(d,this.defaultValue))}}class Xe extends Fe.L{constructor(d,h){super(d),this.defaultValue=h,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var J=p(5379),he=p(2986);function te(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,(0,he.q)(1),h?et(d):zt(()=>new G))}var le=p(4850),ie=p(7545),Ue=p(1059),je=p(2014),tt=p(7221),ke=p(1406),ve=p(1709),mt=p(2994),Qe=p(4327),dt=p(537),_t=p(9146),it=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class ot extends St{constructor(d,h,M="imperative",S=null){super(d,h),this.navigationTrigger=M,this.restoredState=S}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Et extends St{constructor(d,h,M){super(d,h),this.urlAfterRedirects=M}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class mn extends St{constructor(d,h,M){super(d,h),this.error=M}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ut extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class un extends St{constructor(d,h,M,S,K){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=K}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn extends St{constructor(d,h,M,S){super(d,h),this.urlAfterRedirects=M,this.state=S}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dt{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class cn{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mn{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qe{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class x{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(d,h,M){this.routerEvent=d,this.position=h,this.anchor=M}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const P="primary";class pe{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h[0]:h}return null}getAll(d){if(this.has(d)){const h=this.params[d];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function j(m){return new pe(m)}const me="ngNavigationCancelingError";function He(m){const d=Error("NavigationCancelingError: "+m);return d[me]=!0,d}function Le(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[K]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ce(m){return m.length>0?m[m.length-1]:null}function L(m,d){for(const h in m)m.hasOwnProperty(h)&&d(m[h],h)}function E(m){return(0,a.CqO)(m)?m:(0,a.QGY)(m)?(0,oe.D)(Promise.resolve(m)):(0,q.of)(m)}const ue={exact:function Qt(m,d,h){if(!ae(m.segments,d.segments)||!ri(m.segments,d.segments,h)||m.numberOfChildren!==d.numberOfChildren)return!1;for(const M in d.children)if(!m.children[M]||!Qt(m.children[M],d.children[M],h))return!1;return!0},subset:Vn},Ae={exact:function At(m,d){return V(m,d)},subset:function vn(m,d){return Object.keys(d).length<=Object.keys(m).length&&Object.keys(d).every(h=>Be(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return ue[h.paths](m.root,d.root,h.matrixParams)&&Ae[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Vn(m,d,h){return An(m,d,d.segments,h)}function An(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!ae(S,h)||d.hasChildren()||!ri(S,h,M))}if(m.segments.length===h.length){if(!ae(m.segments,h)||!ri(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Vn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),K=h.slice(m.segments.length);return!!(ae(m.segments,S)&&ri(m.segments,S,M)&&m.children[P])&&An(m.children[P],d,K,M)}}function ri(m,d,h){return d.every((M,S)=>Ae[h](m[S].parameters,M.parameters))}class jn{constructor(d,h,M){this.root=d,this.queryParams=h,this.fragment=M}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return jt.serialize(this)}}class qt{constructor(d,h){this.segments=d,this.children=h,this.parent=null,L(h,(M,S)=>M.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fn(this)}}class Re{constructor(d,h){this.path=d,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=j(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function ae(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class It{parse(d){const h=new on(d);return new jn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${Pn(d.root,!0)}`,M=function bn(m){const d=Object.keys(m).map(h=>{const M=m[h];return Array.isArray(M)?M.map(S=>`${Zn(h)}=${Zn(S)}`).join("&"):`${Zn(h)}=${Zn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ii(m){return encodeURI(m)}(d.fragment)}`:""}`}}const jt=new It;function fn(m){return m.segments.map(d=>Tt(d)).join("/")}function Pn(m,d){if(!m.hasChildren())return fn(m);if(d){const h=m.children[P]?Pn(m.children[P],!1):"",M=[];return L(m.children,(S,K)=>{K!==P&&M.push(`${K}:${Pn(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Ve(m,d){let h=[];return L(m.children,(M,S)=>{S===P&&(h=h.concat(d(M,S)))}),L(m.children,(M,S)=>{S!==P&&(h=h.concat(d(M,S)))}),h}(m,(M,S)=>S===P?[Pn(m.children[P],!1)]:[`${S}:${Pn(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${fn(m)}/${h[0]}`:`${fn(m)}/(${h.join("//")})`}}function si(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zn(m){return si(m).replace(/%3B/gi,";")}function En(m){return si(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(m){return decodeURIComponent(m)}function Ln(m){return ei(m.replace(/\+/g,"%20"))}function Tt(m){return`${En(m.path)}${function rn(m){return Object.keys(m).map(d=>`;${En(d)}=${En(m[d])}`).join("")}(m.parameters)}`}const Qn=/^[^\/()?;=#]+/;function Te(m){const d=m.match(Qn);return d?d[0]:""}const Ze=/^[^=?&#]+/,rt=/^[^&#]+/;class on{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let M={};return this.peekStartsWith("(")&&(M=this.parseParens(!1)),(d.length>0||Object.keys(h).length>0)&&(M[P]=new qt(d,h)),M}parseSegment(){const d=Te(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Re(ei(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=Te(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=Te(this.remaining);S&&(M=S,this.capture(M))}d[ei(h)]=ei(M)}parseQueryParam(d){const h=function De(m){const d=m.match(Ze);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function Wt(m){const d=m.match(rt);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Ln(h),K=Ln(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(K)}else d[S]=K}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=Te(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let K;M.indexOf(":")>-1?(K=M.substr(0,M.indexOf(":")),this.capture(K),this.capture(":")):d&&(K=P);const de=this.parseChildren();h[K]=1===Object.keys(de).length?de[P]:new qt([],de),this.consumeOptional("//")}return h}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class Lt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const h=this.pathFromRoot(d);return h.length>1?h[h.length-2]:null}children(d){const h=Un(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=Un(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=$n(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return $n(d,this._root).map(h=>h.value)}}function Un(m,d){if(m===d.value)return d;for(const h of d.children){const M=Un(m,h);if(M)return M}return null}function $n(m,d){if(m===d.value)return[d];for(const h of d.children){const M=$n(m,h);if(M.length)return M.unshift(d),M}return[]}class Nn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function Rn(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Lt{constructor(d,h){super(d),this.snapshot=h,Vt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function se(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Nn(de,[]))}(m,d),M=new _.X([new Re("",{})]),S=new _.X({}),K=new _.X({}),de=new _.X({}),Oe=new _.X(""),pt=new k(M,S,de,Oe,K,P,d,h.root);return pt.snapshot=h.root,new qn(new Nn(pt,[]),h)}class k{constructor(d,h,M,S,K,de,Oe,pt){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this._futureSnapshot=pt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,le.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,le.U)(d=>j(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(m,d="emptyOnly"){const h=m.pathFromRoot;let M=0;if("always"!==d)for(M=h.length-1;M>=1;){const S=h[M],K=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(K.component)break;M--}}return function st(m){return m.reduce((d,h)=>({params:Object.assign(Object.assign({},d.params),h.params),data:Object.assign(Object.assign({},d.data),h.data),resolve:Object.assign(Object.assign({},d.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(M))}class Ct{constructor(d,h,M,S,K,de,Oe,pt,Ht,wn,tn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=K,this.outlet=de,this.component=Oe,this.routeConfig=pt,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=j(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=j(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(M=>M.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ot extends Lt{constructor(d,h){super(h),this.url=d,Vt(this,h)}toString(){return hn(this._root)}}function Vt(m,d){d.value._routerState=m,d.children.forEach(h=>Vt(m,h))}function hn(m){const d=m.children.length>0?` { ${m.children.map(hn).join(", ")} } `:"";return`${m.value}${d}`}function ni(m){if(m.snapshot){const d=m.snapshot,h=m._futureSnapshot;m.snapshot=h,V(d.queryParams,h.queryParams)||m.queryParams.next(h.queryParams),d.fragment!==h.fragment&&m.fragment.next(h.fragment),V(d.params,h.params)||m.params.next(h.params),function Me(m,d){if(m.length!==d.length)return!1;for(let h=0;hV(h.parameters,d[M].parameters))}(m.url,d.url);return h&&!(!m.parent!=!d.parent)&&(!m.parent||ai(m.parent,d.parent))}function bi(m,d,h){if(h&&m.shouldReuseRoute(d.value,h.value.snapshot)){const M=h.value;M._futureSnapshot=d.value;const S=function io(m,d,h){return d.children.map(M=>{for(const S of h.children)if(m.shouldReuseRoute(M.value,S.value.snapshot))return bi(m,M,S);return bi(m,M)})}(m,d,h);return new Nn(M,S)}{if(m.shouldAttach(d.value)){const K=m.retrieve(d.value);if(null!==K){const de=K.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Oe=>bi(m,Oe)),de}}const M=function Ao(m){return new k(new _.X(m.url),new _.X(m.params),new _.X(m.queryParams),new _.X(m.fragment),new _.X(m.data),m.outlet,m.component,m)}(d.value),S=d.children.map(K=>bi(m,K));return new Nn(M,S)}}function ui(m){return"object"==typeof m&&null!=m&&!m.outlets&&!m.segmentPath}function wi(m){return"object"==typeof m&&null!=m&&m.outlets}function ko(m,d,h,M,S){let K={};return M&&L(M,(de,Oe)=>{K[Oe]=Array.isArray(de)?de.map(pt=>`${pt}`):`${de}`}),new jn(h.root===m?d:Fo(h.root,m,d),K,S)}function Fo(m,d,h){const M={};return L(m.children,(S,K)=>{M[K]=S===d?h:Fo(S,d,h)}),new qt(m.segments,M)}class vo{constructor(d,h,M){if(this.isAbsolute=d,this.numberOfDoubleDots=h,this.commands=M,d&&M.length>0&&ui(M[0]))throw new Error("Root segment cannot have matrix parameters");const S=M.find(wi);if(S&&S!==ce(M))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wi{constructor(d,h,M){this.segmentGroup=d,this.processChildren=h,this.index=M}}function Ii(m,d,h){if(m||(m=new qt([],{})),0===m.segments.length&&m.hasChildren())return Co(m,d,h);const M=function Io(m,d,h){let M=0,S=d;const K={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return K;const de=m.segments[S],Oe=h[M];if(wi(Oe))break;const pt=`${Oe}`,Ht=M0&&void 0===pt)break;if(pt&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(pt,Ht,de))return K;M+=2}else{if(!Qo(pt,{},de))return K;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof K&&(K=[K]),null!==K&&(S[de]=Ii(m.children[de],d,K))}),L(m.children,(K,de)=>{void 0===M[de]&&(S[de]=K)}),new qt(m.segments,S)}}function Mo(m,d,h){const M=m.segments.slice(0,d);let S=0;for(;S{"string"==typeof h&&(h=[h]),null!==h&&(d[M]=Mo(new qt([],{}),0,h))}),d}function Ki(m){const d={};return L(m,(h,M)=>d[M]=`${h}`),d}function Qo(m,d,h){return m==h.path&&V(d,h.parameters)}class qo{constructor(d,h,M,S){this.routeReuseStrategy=d,this.futureState=h,this.currState=M,this.forwardEvent=S}activate(d){const h=this.futureState._root,M=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,M,d),ni(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{const de=K.value.outlet;this.deactivateRoutes(K,S[de],M),delete S[de]}),L(S,(K,de)=>{this.deactivateRouteAndItsChildren(K,M)})}deactivateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(S===K)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else K&&this.deactivateRouteAndItsChildren(h,M)}deactivateRouteAndItsChildren(d,h){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,h):this.deactivateRouteAndOutlet(d,h)}detachAndStoreRouteSubtree(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Oe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Oe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,K=Rn(d);for(const de of Object.keys(K))this.deactivateRouteAndItsChildren(K[de],S);M&&M.outlet&&(M.outlet.deactivate(),M.children.onOutletDeactivated(),M.attachRef=null,M.resolver=null,M.route=null)}activateChildRoutes(d,h,M){const S=Rn(h);d.children.forEach(K=>{this.activateRoutes(K,S[K.value.outlet],M),this.forwardEvent(new x(K.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,K=h?h.value:null;if(ni(S),S===K)if(S.component){const de=M.getOrCreateContext(S.outlet);this.activateChildRoutes(d,h,de.children)}else this.activateChildRoutes(d,h,M);else if(S.component){const de=M.getOrCreateContext(S.outlet);if(this.routeReuseStrategy.shouldAttach(S.snapshot)){const Oe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Oe.contexts),de.attachRef=Oe.componentRef,de.route=Oe.route.value,de.outlet&&de.outlet.attach(Oe.componentRef,Oe.route.value),ni(Oe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Oe=function Ti(m){for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(S.snapshot),pt=Oe?Oe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=pt,de.outlet&&de.outlet.activateWith(S,pt),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function oi(m){return"function"==typeof m}function Di(m){return m instanceof jn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,ie.w)(m=>(0,W.aj)(m.map(d=>d.pipe((0,he.q)(1),(0,Ue.O)(xi)))).pipe((0,je.R)((d,h)=>{let M=!1;return h.reduce((S,K,de)=>S!==xi?S:(K===xi&&(M=!0),M||!1!==K&&de!==h.length-1&&!Di(K)?S:K),d)},xi),(0,Ye.h)(d=>d!==xi),(0,le.U)(d=>Di(d)?d:!0===d),(0,he.q)(1)))}class hi{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ei,this.attachRef=null}}class Ei{constructor(){this.contexts=new Map}onChildOutletCreated(d,h){const M=this.getOrCreateContext(d);M.outlet=h,this.contexts.set(d,M)}onChildOutletDestroyed(d){const h=this.getContext(d);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let h=this.getContext(d);return h||(h=new hi,this.contexts.set(d,h)),h}getContext(d){return this.contexts.get(d)||null}}let so=(()=>{class m{constructor(h,M,S,K,de){this.parentContexts=h,this.location=M,this.resolver=S,this.changeDetector=de,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=K||P,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,M){this.activated=h,this._activatedRoute=M,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,M){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const de=(M=M||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),Oe=this.parentContexts.getOrCreateContext(this.name).children,pt=new Do(h,Oe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,pt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(Ei),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},m.\u0275dir=a.lG2({type:m,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),m})();class Do{constructor(d,h,M){this.route=d,this.childContexts=h,this.parent=M}get(d,h){return d===k?this.route:d===Ei?this.childContexts:this.parent.get(d,h)}}let Jo=(()=>{class m{}return m.\u0275fac=function(h){return new(h||m)},m.\u0275cmp=a.Xpm({type:m,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,M){1&h&&a._UZ(0,"router-outlet")},directives:[so],encapsulation:2}),m})();function Qi(m,d=""){for(let h=0;hyi(M)===d);return h.push(...m.filter(M=>yi(M)!==d)),h}const b={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Y(m,d,h){var M;if(""===d.path)return"full"===d.pathMatch&&(m.hasChildren()||h.length>0)?Object.assign({},b):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const K=(d.matcher||Le)(h,m,d);if(!K)return Object.assign({},b);const de={};L(K.posParams,(pt,Ht)=>{de[Ht]=pt.path});const Oe=K.consumed.length>0?Object.assign(Object.assign({},de),K.consumed[K.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:K.consumed,lastChild:K.consumed.length,parameters:Oe,positionalParamSegments:null!==(M=K.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function ct(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function xe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const K of h)if(""===K.path&&yi(K)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(K)]=de}return S}(m,d,M,new qt(h,m.children)));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:[]}}if(0===h.length&&function Mt(m,d,h){return h.some(M=>kt(m,d,M))}(m,h,M)){const de=new qt(m.segments,function Q(m,d,h,M,S,K){const de={};for(const Oe of M)if(kt(m,h,Oe)&&!S[yi(Oe)]){const pt=new qt([],{});pt._sourceSegment=m,pt._segmentIndexShift="legacy"===K?m.segments.length:d.length,de[yi(Oe)]=pt}return Object.assign(Object.assign({},S),de)}(m,d,h,M,m.children,S));return de._sourceSegment=m,de._segmentIndexShift=d.length,{segmentGroup:de,slicedSegments:h}}const K=new qt(m.segments,m.children);return K._sourceSegment=m,K._segmentIndexShift=d.length,{segmentGroup:K,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Fn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function Tn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class dn{constructor(d){this.urlTree=d}}function Yn(m){return new I.y(d=>d.error(new Dn(m)))}function On(m){return new I.y(d=>d.error(new dn(m)))}function Yt(m){return new I.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${m}'`)))}class C{constructor(d,h,M,S,K){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=K,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=w(this.urlTree.root,[],[],this.config).segmentGroup,h=new qt(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,h,P).pipe((0,le.U)(K=>this.createUrlTree(U(K),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,tt.K)(K=>{if(K instanceof dn)return this.allowRedirects=!1,this.match(K.urlTree);throw K instanceof Dn?this.noMatchError(K):K}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,le.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,tt.K)(S=>{throw S instanceof Dn?this.noMatchError(S):S}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,h,M){const S=d.segments.length>0?new qt([],{[P]:d}):d;return new jn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,le.U)(K=>new qt([],K))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const K of Object.keys(M.children))"primary"===K?S.unshift(K):S.push(K);return(0,oe.D)(S).pipe((0,ke.b)(K=>{const de=M.children[K],Oe=Wn(h,K);return this.expandSegmentGroup(d,Oe,de,K).pipe((0,le.U)(pt=>({segment:pt,outlet:K})))}),(0,je.R)((K,de)=>(K[de.outlet]=de.segment,K),{}),function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,Ye.h)((S,K)=>m(S,K,M)):J.y,_e(1),h?et(d):zt(()=>new G))}())}expandSegment(d,h,M,S,K,de){return(0,oe.D)(M).pipe((0,ke.b)(Oe=>this.expandSegmentAgainstRoute(d,h,M,Oe,S,K,de).pipe((0,tt.K)(Ht=>{if(Ht instanceof Dn)return(0,q.of)(null);throw Ht}))),te(Oe=>!!Oe),(0,tt.K)((Oe,pt)=>{if(Oe instanceof G||"EmptyError"===Oe.name){if(Tn(h,S,K))return(0,q.of)(new qt([],{}));throw new Dn(h)}throw Oe}))}expandSegmentAgainstRoute(d,h,M,S,K,de,Oe){return Fn(S,h,K,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,K,de):Oe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de):Yn(h):Yn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const K=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?On(K):this.lineralizeSegments(M,K).pipe((0,ve.zg)(de=>{const Oe=new qt(de,{});return this.expandSegment(d,Oe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,K,de){const{matched:Oe,consumedSegments:pt,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,K);if(!Oe)return Yn(h);const tn=this.applyRedirectCommands(pt,S.redirectTo,wn);return S.redirectTo.startsWith("/")?On(tn):this.lineralizeSegments(S,tn).pipe((0,ve.zg)(In=>this.expandSegment(d,h,M,In.concat(K.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,K){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,q.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,le.U)(In=>(M._loadedConfig=In,new qt(S,{})))):(0,q.of)(new qt(S,{}));const{matched:de,consumedSegments:Oe,lastChild:pt}=Y(h,M,S);if(!de)return Yn(h);const Ht=S.slice(pt);return this.getChildConfig(d,M,S).pipe((0,ve.zg)(tn=>{const In=tn.module,Hn=tn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Oe,Ht,Hn),Ui=new qt(co.segments,co.children);if(0===lo.length&&Ui.hasChildren())return this.expandChildren(In,Hn,Ui).pipe((0,le.U)(eo=>new qt(Oe,eo)));if(0===Hn.length&&0===lo.length)return(0,q.of)(new qt(Oe,{}));const uo=yi(M)===K;return this.expandSegment(In,Ui,Hn,lo,uo?P:K,!0).pipe((0,le.U)(Ai=>new qt(Oe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,q.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,q.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ve.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,le.U)(K=>(h._loadedConfig=K,K))):function Eo(m){return new I.y(d=>d.error(He(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,q.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,q.of)(!0);const K=S.map(de=>{const Oe=d.get(de);let pt;if(function bo(m){return m&&oi(m.canLoad)}(Oe))pt=Oe.canLoad(h,M);else{if(!oi(Oe))throw new Error("Invalid CanLoad guard");pt=Oe(h,M)}return E(pt)});return(0,q.of)(K).pipe(Vi(),(0,mt.b)(de=>{if(!Di(de))return;const Oe=He(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Oe.url=de,Oe}),(0,le.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,q.of)(M);if(S.numberOfChildren>1||!S.children[P])return Yt(d.redirectTo);S=S.children[P]}}applyRedirectCommands(d,h,M){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),d,M)}applyRedirectCreatreUrlTree(d,h,M,S){const K=this.createSegmentGroup(d,h.root,M,S);return new jn(K,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,K)=>{if("string"==typeof S&&S.startsWith(":")){const Oe=S.substring(1);M[K]=h[Oe]}else M[K]=S}),M}createSegmentGroup(d,h,M,S){const K=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Oe,pt)=>{de[pt]=this.createSegmentGroup(d,Oe,M,S)}),new qt(K,de)}createSegments(d,h,M,S){return h.map(K=>K.path.startsWith(":")?this.findPosParam(d,K,S):this.findOrReturn(K,M))}findPosParam(d,h,M){const S=M[h.path.substring(1)];if(!S)throw new Error(`Cannot redirect to '${d}'. Cannot find '${h.path}'.`);return S}findOrReturn(d,h){let M=0;for(const S of h){if(S.path===d.path)return h.splice(M),S;M++}return d}}function U(m){const d={};for(const M of Object.keys(m.children)){const K=U(m.children[M]);(K.segments.length>0||K.hasChildren())&&(d[M]=K)}return function y(m){if(1===m.numberOfChildren&&m.children[P]){const d=m.children[P];return new qt(m.segments.concat(d.segments),d.children)}return m}(new qt(m.segments,d))}class Nt{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class lt{constructor(d,h){this.component=d,this.route=h}}function O(m,d,h){const M=m._root;return F(M,d?d._root:null,h,[M.value])}function l(m,d,h){const M=function g(m){if(!m)return null;for(let d=m.parent;d;d=d.parent){const h=d.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(d);return(M?M.module.injector:h).get(m)}function F(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=Rn(d);return m.children.forEach(de=>{(function ne(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const K=m.value,de=d?d.value:null,Oe=h?h.getContext(m.value.outlet):null;if(de&&K.routeConfig===de.routeConfig){const pt=function ge(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!ae(m.url,d.url);case"pathParamsOrQueryParamsChange":return!ae(m.url,d.url)||!V(m.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ai(m,d)||!V(m.queryParams,d.queryParams);default:return!ai(m,d)}}(de,K,K.routeConfig.runGuardsAndResolvers);pt?S.canActivateChecks.push(new Nt(M)):(K.data=de.data,K._resolvedData=de._resolvedData),F(m,d,K.component?Oe?Oe.children:null:h,M,S),pt&&Oe&&Oe.outlet&&Oe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Oe.outlet.component,de))}else de&&Ce(d,Oe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,K.component?Oe?Oe.children:null:h,M,S)})(de,K[de.value.outlet],h,M.concat([de.value]),S),delete K[de.value.outlet]}),L(K,(de,Oe)=>Ce(de,h.getContext(Oe),S)),S}function Ce(m,d,h){const M=Rn(m),S=m.value;L(M,(K,de)=>{Ce(K,S.component?d?d.children.getContext(de):null:d,h)}),h.canDeactivateChecks.push(new lt(S.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,S))}class pn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,K,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=K,this.relativeLinkResolution=de}recognize(){const d=w(this.urlTree.root,[],[],this.config.filter(de=>void 0===de.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,d,P);if(null===h)return null;const M=new Ct([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},P,this.rootComponentType,null,this.urlTree.root,-1,{}),S=new Nn(M,h),K=new Ot(this.url,S);return this.inheritParamsAndData(K._root),K}inheritParamsAndData(d){const h=d.value,M=Ee(h,this.paramsInheritanceStrategy);h.params=Object.freeze(M.params),h.data=Object.freeze(M.data),d.children.forEach(S=>this.inheritParamsAndData(S))}processSegmentGroup(d,h,M){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,h):this.processSegment(d,h,h.segments,M)}processChildren(d,h){const M=[];for(const K of Object.keys(h.children)){const de=h.children[K],Oe=Wn(d,K),pt=this.processSegmentGroup(Oe,de,K);if(null===pt)return null;M.push(...pt)}const S=fi(M);return function di(m){m.sort((d,h)=>d.value.outlet===P?-1:h.value.outlet===P?1:d.value.outlet.localeCompare(h.value.outlet))}(S),S}processSegment(d,h,M,S){for(const K of d){const de=this.processSegmentAgainstRoute(K,h,M,S);if(null!==de)return de}return Tn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Fn(d,h,M,S))return null;let K,de=[],Oe=[];if("**"===d.path){const Hn=M.length>0?ce(M).parameters:{};K=new Ct(M,Hn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+M.length,zo(d))}else{const Hn=Y(h,d,M);if(!Hn.matched)return null;de=Hn.consumedSegments,Oe=M.slice(Hn.lastChild),K=new Ct(de,Hn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ho(d),yi(d),d.component,d,Yi(h),Li(h)+de.length,zo(d))}const pt=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Oe,pt.filter(Hn=>void 0===Hn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Hn=this.processChildren(pt,Ht);return null===Hn?null:[new Nn(K,Hn)]}if(0===pt.length&&0===wn.length)return[new Nn(K,[])];const tn=yi(d)===S,In=this.processSegment(pt,Ht,wn,tn?P:S);return null===In?null:[new Nn(K,In)]}}function Oi(m){const d=m.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function fi(m){const d=[],h=new Set;for(const M of m){if(!Oi(M)){d.push(M);continue}const S=d.find(K=>M.value.routeConfig===K.value.routeConfig);void 0!==S?(S.children.push(...M.children),h.add(S)):d.push(M)}for(const M of h){const S=fi(M.children);d.push(new Nn(M.value,S))}return d.filter(M=>!h.has(M))}function Yi(m){let d=m;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Li(m){let d=m,h=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,h+=d._segmentIndexShift?d._segmentIndexShift:0;return h-1}function Ho(m){return m.data||{}}function zo(m){return m.resolve||{}}function en(m){return(0,ie.w)(d=>{const h=m(d);return h?(0,oe.D)(h).pipe((0,le.U)(()=>d)):(0,q.of)(d)})}class xn extends class Gn{shouldDetach(d){return!1}store(d,h){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,h){return d.routeConfig===h.routeConfig}}{}const pi=new a.OlP("ROUTES");class Ji{constructor(d,h,M,S){this.injector=d,this.compiler=h,this.onLoadStartListener=M,this.onLoadEndListener=S}load(d,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const S=this.loadModuleFactory(h.loadChildren).pipe((0,le.U)(K=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=K.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,tt.K)(K=>{throw h._loader$=void 0,K}));return h._loader$=new ee.c(S,()=>new ye.xQ).pipe((0,Qe.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ve.zg)(h=>h instanceof a.YKP?(0,q.of)(h):(0,oe.D)(this.compiler.compileModuleAsync(h))))}}class mr{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,h){return d}}function ts(m){throw m}function Ci(m,d,h){return d.parse("/")}function Hi(m,d){return(0,q.of)(null)}const Ni={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ji={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ci=(()=>{class m{constructor(h,M,S,K,de,Oe,pt){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=K,this.config=pt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ye.xQ,this.errorHandler=ts,this.malformedUriErrorHandler=Ci,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hi,afterPreactivation:Hi},this.urlHandlingStrategy=new mr,this.routeReuseStrategy=new xn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=de.get(a.h0i),this.console=de.get(a.c2e);const tn=de.get(a.R0b);this.isNgZoneEnabled=tn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(pt),this.currentUrlTree=function $(){return new jn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Oe,In=>this.triggerEvent(new Dt(In)),In=>this.triggerEvent(new Sn(In))),this.routerState=X(this.currentUrlTree,this.rootComponentType),this.transitions=new _.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const M=this.events;return h.pipe((0,Ye.h)(S=>0!==S.id),(0,le.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,ie.w)(S=>{let K=!1,de=!1;return(0,q.of)(S).pipe((0,mt.b)(Oe=>{this.currentNavigation={id:Oe.id,initialUrl:Oe.currentRawUrl,extractedUrl:Oe.extractedUrl,trigger:Oe.source,extras:Oe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ie.w)(Oe=>{const pt=this.browserUrlTree.toString(),Ht=!this.navigated||Oe.extractedUrl.toString()!==pt||pt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Oe.rawUrl))return gr(Oe.source)&&(this.browserUrlTree=Oe.extractedUrl),(0,q.of)(Oe).pipe((0,ie.w)(tn=>{const In=this.transitions.getValue();return M.next(new ot(tn.id,this.serializeUrl(tn.extractedUrl),tn.source,tn.restoredState)),In!==this.transitions.getValue()?B.E:Promise.resolve(tn)}),function at(m,d,h,M){return(0,ie.w)(S=>function D(m,d,h,M,S){return new C(m,d,h,M,S).apply()}(m,d,h,S.extractedUrl,M).pipe((0,le.U)(K=>Object.assign(Object.assign({},S),{urlAfterRedirects:K}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mt.b)(tn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:tn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ve.zg)(K=>function ti(m,d,h,M,S="emptyOnly",K="legacy"){try{const de=new _i(m,d,h,M,S,K).recognize();return null===de?Jn(new pn):(0,q.of)(de)}catch(de){return Jn(de)}}(m,d,K.urlAfterRedirects,h(K.urlAfterRedirects),M,S).pipe((0,le.U)(de=>Object.assign(Object.assign({},K),{targetSnapshot:de}))))}(this.rootComponentType,this.config,tn=>this.serializeUrl(tn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mt.b)(tn=>{if("eager"===this.urlUpdateStrategy){if(!tn.extras.skipLocationChange){const Hn=this.urlHandlingStrategy.merge(tn.urlAfterRedirects,tn.rawUrl);this.setBrowserUrl(Hn,tn)}this.browserUrlTree=tn.urlAfterRedirects}const In=new gn(tn.id,this.serializeUrl(tn.extractedUrl),this.serializeUrl(tn.urlAfterRedirects),tn.targetSnapshot);M.next(In)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:In,extractedUrl:Hn,source:co,restoredState:lo,extras:Ui}=Oe,uo=new ot(In,this.serializeUrl(Hn),co,lo);M.next(uo);const So=X(Hn,this.rootComponentType).snapshot;return(0,q.of)(Object.assign(Object.assign({},Oe),{targetSnapshot:So,urlAfterRedirects:Hn,extras:Object.assign(Object.assign({},Ui),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Oe.rawUrl,Oe.resolve(null),B.E}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.beforePreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,mt.b)(Oe=>{const pt=new Ut(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot);this.triggerEvent(pt)}),(0,le.U)(Oe=>Object.assign(Object.assign({},Oe),{guards:O(Oe.targetSnapshot,Oe.currentSnapshot,this.rootContexts)})),function Ke(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:K,canDeactivateChecks:de}}=h;return 0===de.length&&0===K.length?(0,q.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function ft(m,d,h,M){return(0,oe.D)(m).pipe((0,ve.zg)(S=>function Jt(m,d,h,M,S){const K=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!K||0===K.length)return(0,q.of)(!0);const de=K.map(Oe=>{const pt=l(Oe,d,S);let Ht;if(function wo(m){return m&&oi(m.canDeactivate)}(pt))Ht=E(pt.canDeactivate(m,d,h,M));else{if(!oi(pt))throw new Error("Invalid CanDeactivate guard");Ht=E(pt(m,d,h,M))}return Ht.pipe(te())});return(0,q.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),te(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ve.zg)(Oe=>Oe&&function Zi(m){return"boolean"==typeof m}(Oe)?function Pt(m,d,h,M){return(0,oe.D)(d).pipe((0,ke.b)(S=>(0,R.z)(function Gt(m,d){return null!==m&&d&&d(new cn(m)),(0,q.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new qe(m)),(0,q.of)(!0)}(S.route,M),function Kt(m,d,h){const M=d[d.length-1],K=d.slice(0,d.length-1).reverse().map(de=>function c(m){const d=m.routeConfig?m.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:m,guards:d}:null}(de)).filter(de=>null!==de).map(de=>(0,H.P)(()=>{const Oe=de.guards.map(pt=>{const Ht=l(pt,de.node,h);let wn;if(function Lo(m){return m&&oi(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!oi(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(te())});return(0,q.of)(Oe).pipe(Vi())}));return(0,q.of)(K).pipe(Vi())}(m,S.path,h),function ln(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,q.of)(!0);const S=M.map(K=>(0,H.P)(()=>{const de=l(K,d,h);let Oe;if(function Vo(m){return m&&oi(m.canActivate)}(de))Oe=E(de.canActivate(d,m));else{if(!oi(de))throw new Error("Invalid CanActivate guard");Oe=E(de(d,m))}return Oe.pipe(te())}));return(0,q.of)(S).pipe(Vi())}(m,S.route,h))),te(S=>!0!==S,!0))}(M,K,m,d):(0,q.of)(Oe)),(0,le.U)(Oe=>Object.assign(Object.assign({},h),{guardsResult:Oe})))})}(this.ngModule.injector,Oe=>this.triggerEvent(Oe)),(0,mt.b)(Oe=>{if(Di(Oe.guardsResult)){const Ht=He(`Redirecting to "${this.serializeUrl(Oe.guardsResult)}"`);throw Ht.url=Oe.guardsResult,Ht}const pt=new un(Oe.id,this.serializeUrl(Oe.extractedUrl),this.serializeUrl(Oe.urlAfterRedirects),Oe.targetSnapshot,!!Oe.guardsResult);this.triggerEvent(pt)}),(0,Ye.h)(Oe=>!!Oe.guardsResult||(this.restoreHistory(Oe),this.cancelNavigationTransition(Oe,""),!1)),en(Oe=>{if(Oe.guards.canActivateChecks.length)return(0,q.of)(Oe).pipe((0,mt.b)(pt=>{const Ht=new _n(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}),(0,ie.w)(pt=>{let Ht=!1;return(0,q.of)(pt).pipe(function fr(m,d){return(0,ve.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,q.of)(h);let K=0;return(0,oe.D)(S).pipe((0,ke.b)(de=>function pr(m,d,h,M){return function Rt(m,d,h,M){const S=Object.keys(m);if(0===S.length)return(0,q.of)({});const K={};return(0,oe.D)(S).pipe((0,ve.zg)(de=>function Xt(m,d,h,M){const S=l(m,d,M);return E(S.resolve?S.resolve(d,h):S(d,h))}(m[de],d,h,M).pipe((0,mt.b)(Oe=>{K[de]=Oe}))),_e(1),(0,ve.zg)(()=>Object.keys(K).length===S.length?(0,q.of)(K):B.E))}(m._resolve,m,d,M).pipe((0,le.U)(K=>(m._resolvedData=K,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,mt.b)(()=>K++),_e(1),(0,ve.zg)(de=>K===S.length?(0,q.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mt.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(pt),this.cancelNavigationTransition(pt,"At least one route resolver didn't emit any value."))}}))}),(0,mt.b)(pt=>{const Ht=new Cn(pt.id,this.serializeUrl(pt.extractedUrl),this.serializeUrl(pt.urlAfterRedirects),pt.targetSnapshot);this.triggerEvent(Ht)}))}),en(Oe=>{const{targetSnapshot:pt,id:Ht,extractedUrl:wn,rawUrl:tn,extras:{skipLocationChange:In,replaceUrl:Hn}}=Oe;return this.hooks.afterPreactivation(pt,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:tn,skipLocationChange:!!In,replaceUrl:!!Hn})}),(0,le.U)(Oe=>{const pt=function kn(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Oe.targetSnapshot,Oe.currentRouterState);return Object.assign(Object.assign({},Oe),{targetRouterState:pt})}),(0,mt.b)(Oe=>{this.currentUrlTree=Oe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Oe.urlAfterRedirects,Oe.rawUrl),this.routerState=Oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Oe),this.browserUrlTree=Oe.urlAfterRedirects)}),((m,d,h)=>(0,le.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Oe=>this.triggerEvent(Oe)),(0,mt.b)({next(){K=!0},complete(){K=!0}}),(0,dt.x)(()=>{var Oe;K||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id)===S.id&&(this.currentNavigation=null)}),(0,tt.K)(Oe=>{if(de=!0,function Ge(m){return m&&m[me]}(Oe)){const pt=Di(Oe.url);pt||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Zt(S.id,this.serializeUrl(S.extractedUrl),Oe.message);M.next(Ht),pt?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Oe.url,this.rawUrlTree),tn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,tn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const pt=new mn(S.id,this.serializeUrl(S.extractedUrl),Oe);M.next(pt);try{S.resolve(this.errorHandler(Oe))}catch(Ht){S.reject(Ht)}}return B.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const M="popstate"===h.type?"popstate":"hashchange";"popstate"===M&&setTimeout(()=>{var S;const K={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const pt=Object.assign({},de);delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(K.state=pt)}const Oe=this.parseUrl(h.url);this.scheduleNavigation(Oe,M,de,K)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){Qi(h),this.config=h.map(Pi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,M={}){const{relativeTo:S,queryParams:K,fragment:de,queryParamsHandling:Oe,preserveFragment:pt}=M,Ht=S||this.routerState.root,wn=pt?this.currentUrlTree.fragment:de;let tn=null;switch(Oe){case"merge":tn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),K);break;case"preserve":tn=this.currentUrlTree.queryParams;break;default:tn=K||null}return null!==tn&&(tn=this.removeEmptyProps(tn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const K=function Zo(m){if("string"==typeof m[0]&&1===m.length&&"/"===m[0])return new vo(!0,0,m);let d=0,h=!1;const M=m.reduce((S,K,de)=>{if("object"==typeof K&&null!=K){if(K.outlets){const Oe={};return L(K.outlets,(pt,Ht)=>{Oe[Ht]="string"==typeof pt?pt.split("/"):pt}),[...S,{outlets:Oe}]}if(K.segmentPath)return[...S,K.segmentPath]}return"string"!=typeof K?[...S,K]:0===de?(K.split("/").forEach((Oe,pt)=>{0==pt&&"."===Oe||(0==pt&&""===Oe?h=!0:".."===Oe?d++:""!=Oe&&S.push(Oe))}),S):[...S,K]},[]);return new vo(h,d,M)}(h);if(K.toRoot())return ko(d.root,new qt([],{}),d,M,S);const de=function yo(m,d,h){if(m.isAbsolute)return new Wi(d.root,!0,0);if(-1===h.snapshot._lastPathIndex){const K=h.snapshot._urlSegment;return new Wi(K,K===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,K=h;for(;K>S;){if(K-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Wi(M,!1,S-K)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(K,d,m),Oe=de.processChildren?Co(de.segmentGroup,de.index,K.commands):Ii(de.segmentGroup,de.index,K.commands);return ko(de.segmentGroup,Oe,d,M,S)}(Ht,this.currentUrlTree,h,tn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),K=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(K,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const K=h[S];return null!=K&&(M[S]=K),M},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Et(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,M,S,K,de){var Oe,pt,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,tn=gr(M)&&wn&&!gr(wn.source),In=wn.rawUrl.toString()===h.toString(),Hn=wn.id===(null===(Oe=this.currentNavigation)||void 0===Oe?void 0:Oe.id);if(tn&&In&&Hn)return Promise.resolve(!0);let lo,Ui,uo;de?(lo=de.resolve,Ui=de.reject,uo=de.promise):uo=new Promise((eo,Bs)=>{lo=eo,Ui=Bs});const So=++this.navigationId;let Ai;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(S=this.location.getState()),Ai=S&&S.\u0275routerPageId?S.\u0275routerPageId:K.replaceUrl||K.skipLocationChange?null!==(pt=this.browserPageId)&&void 0!==pt?pt:0:(null!==(Ht=this.browserPageId)&&void 0!==Ht?Ht:0)+1):Ai=0,this.setTransition({id:So,targetPageId:Ai,source:M,restoredState:S,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:K,resolve:lo,reject:Ui,promise:uo,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),uo.catch(eo=>Promise.reject(eo))}setBrowserUrl(h,M){const S=this.urlSerializer.serialize(h),K=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",K):this.location.go(S,"",K)}restoreHistory(h,M=!1){var S,K;if("computed"===this.canceledNavigationResolution){const de=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(S=this.currentNavigation)||void 0===S?void 0:S.finalUrl)||0===de?this.currentUrlTree===(null===(K=this.currentNavigation)||void 0===K?void 0:K.finalUrl)&&0===de&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(de)}else"replace"===this.canceledNavigationResolution&&(M&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,M){const S=new Zt(h.id,this.serializeUrl(h.extractedUrl),M);this.triggerEvent(S),h.resolve(!1)}generateNgRouterState(h,M){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:M}:{navigationId:h}}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function gr(m){return"imperative"!==m}let Xi=(()=>{class m{constructor(h,M,S,K,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=K,this.el=de,this.commands=null,this.onChanges=new ye.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const M=this.renderer,S=this.el.nativeElement;null!==h?M.setAttribute(S,"tabindex",h):M.removeAttribute(S,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},m.\u0275dir=a.lG2({type:m,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,M){1&h&&a.NdJ("click",function(){return M.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})(),No=(()=>{class m{constructor(h,M,S){this.router=h,this.route=M,this.locationStrategy=S,this.commands=null,this.href=null,this.onChanges=new ye.xQ,this.subscription=h.events.subscribe(K=>{K instanceof Et&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,M,S,K,de){if(0!==h||M||S||K||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Oe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Oe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ar(this.preserveFragment)})}}return m.\u0275fac=function(h){return new(h||m)(a.Y36(ci),a.Y36(k),a.Y36(it.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(K){return M.onClick(K.button,K.ctrlKey,K.shiftKey,K.altKey,K.metaKey)}),2&h&&a.uIk("target",M.target)("href",M.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),m})();function ar(m){return""===m||!!m}class Er{}class Is{preload(d,h){return h().pipe((0,tt.K)(()=>(0,q.of)(null)))}}class Vs{preload(d,h){return(0,q.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,K){this.router=h,this.injector=S,this.preloadingStrategy=K,this.loader=new Ji(S,M,pt=>h.triggerEvent(new Dt(pt)),pt=>h.triggerEvent(new Sn(pt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ye.h)(h=>h instanceof Et),(0,ke.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(a.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,M){const S=[];for(const K of M)if(K.loadChildren&&!K.canLoad&&K._loadedConfig){const de=K._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else K.loadChildren&&!K.canLoad?S.push(this.preloadConfig(h,K)):K.children&&S.push(this.processRoutes(h,K.children));return(0,oe.D)(S).pipe((0,_t.J)(),(0,le.U)(K=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,q.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ve.zg)(K=>(M._loadedConfig=K,this.processRoutes(K.module,K.routes)))))}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(ci),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Er))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})(),ns=(()=>{class m{constructor(h,M,S={}){this.router=h,this.viewportScroller=M,this.options=S,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},S.scrollPositionRestoration=S.scrollPositionRestoration||"disabled",S.anchorScrolling=S.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof ot?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Et&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof z&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,M){this.router.triggerEvent(new z(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,M))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return m.\u0275fac=function(h){a.$Z()},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();const Ro=new a.OlP("ROUTER_CONFIGURATION"),zr=new a.OlP("ROUTER_FORROOT_GUARD"),Sr=[it.Ye,{provide:ht,useClass:It},{provide:ci,useFactory:function Tr(m,d,h,M,S,K,de={},Oe,pt){const Ht=new ci(null,m,d,h,M,S,nt(K));return Oe&&(Ht.urlHandlingStrategy=Oe),pt&&(Ht.routeReuseStrategy=pt),function ec(m,d){m.errorHandler&&(d.errorHandler=m.errorHandler),m.malformedUriErrorHandler&&(d.malformedUriErrorHandler=m.malformedUriErrorHandler),m.onSameUrlNavigation&&(d.onSameUrlNavigation=m.onSameUrlNavigation),m.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=m.paramsInheritanceStrategy),m.relativeLinkResolution&&(d.relativeLinkResolution=m.relativeLinkResolution),m.urlUpdateStrategy&&(d.urlUpdateStrategy=m.urlUpdateStrategy),m.canceledNavigationResolution&&(d.canceledNavigationResolution=m.canceledNavigationResolution)}(de,Ht),de.enableTracing&&Ht.events.subscribe(wn=>{var tn,In;null===(tn=console.group)||void 0===tn||tn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(In=console.groupEnd)||void 0===In||In.call(console)}),Ht},deps:[ht,Ei,it.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class sn{},new a.FiY]]},Ei,{provide:k,useFactory:function Ns(m){return m.routerState.root},deps:[ci]},wa,Vs,Is,{provide:Ro,useValue:{enableTracing:!1}}];function Ls(){return new a.PXZ("Router",ci)}let Hs=(()=>{class m{constructor(h,M){}static forRoot(h,M){return{ngModule:m,providers:[Sr,yr(h),{provide:zr,useFactory:lr,deps:[[ci,new a.FiY,new a.tp0]]},{provide:Ro,useValue:M||{}},{provide:it.S$,useFactory:Da,deps:[it.lw,[new a.tBr(it.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,it.EM,Ro]},{provide:Er,useExisting:M&&M.preloadingStrategy?M.preloadingStrategy:Vs},{provide:a.PXZ,multi:!0,useFactory:Ls},[xr,{provide:a.ip1,multi:!0,useFactory:Ea,deps:[xr]},{provide:ur,useFactory:za,deps:[xr]},{provide:a.tb,multi:!0,useExisting:ur}]]}}static forChild(h){return{ngModule:m,providers:[yr(h)]}}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(zr,8),a.LFG(ci,8))},m.\u0275mod=a.oAB({type:m}),m.\u0275inj=a.cJS({}),m})();function cr(m,d,h){return h.scrollOffset&&d.setOffset(h.scrollOffset),new ns(m,d,h)}function Da(m,d,h={}){return h.useHash?new it.Do(m,d):new it.b0(m,d)}function lr(m){return"guarded"}function yr(m){return[{provide:a.deG,multi:!0,useValue:m},{provide:pi,multi:!0,useValue:m}]}let xr=(()=>{class m{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new ye.xQ}appInitializer(){return this.injector.get(it.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Oe=>M=Oe),K=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(K.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(K.hooks.afterPreactivation=()=>this.initNavigation?(0,q.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),K.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),K=this.injector.get(ns),de=this.injector.get(ci),Oe=this.injector.get(a.z2F);h===Oe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),K.init(),de.resetRootComponentType(Oe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return m.\u0275fac=function(h){return new(h||m)(a.LFG(a.zs3))},m.\u0275prov=a.Yz7({token:m,factory:m.\u0275fac}),m})();function Ea(m){return m.appInitializer.bind(m)}function za(m){return m.bootstrapListener.bind(m)}const ur=new a.OlP("Router Initializer")},9193:(yt,be,p)=>{p.d(be,{V65:()=>mn,ud1:()=>qt,Hkd:()=>jt,XuQ:()=>Pn,bBn:()=>ei,BOg:()=>st,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>Wt,UKj:()=>kn,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Yn,VWu:()=>qi,rMt:()=>Jt,vEg:()=>mr,RIp:()=>ns,RU0:()=>pi,M8e:()=>gr,ssy:()=>m,Z5F:()=>yr,iUK:()=>Ht,LJh:()=>Ui,NFG:()=>To,WH2:()=>Us,UTl:()=>vc,nrZ:()=>Vr,gvV:()=>Fc,d2H:()=>Tc,LBP:()=>qs,_ry:()=>Ic,eFY:()=>Qc,sZJ:()=>e1,np6:()=>ml,UY$:()=>v8,w1L:()=>Nr,rHg:()=>Il,v6v:()=>v1,cN2:()=>Cs,FsU:()=>Zl,s_U:()=>p6,TSL:()=>P1,uIz:()=>wr,d_$:()=>Dr});const mn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},jt={name:"caret-down",theme:"fill",icon:''},Pn={name:"caret-down",theme:"outline",icon:''},ei={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},Wt={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},st={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},kn={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Yn={name:"dashboard",theme:"outline",icon:''},Jt={name:"double-right",theme:"outline",icon:''},qi={name:"double-left",theme:"outline",icon:''},pi={name:"ellipsis",theme:"outline",icon:''},mr={name:"down",theme:"outline",icon:''},gr={name:"exclamation-circle",theme:"fill",icon:''},ns={name:"edit",theme:"outline",icon:''},yr={name:"eye",theme:"outline",icon:''},m={name:"exclamation-circle",theme:"outline",icon:''},Ht={name:"file",theme:"fill",icon:''},Ui={name:"file",theme:"outline",icon:''},To={name:"filter",theme:"fill",icon:''},Us={name:"form",theme:"outline",icon:''},vc={name:"info-circle",theme:"fill",icon:''},Vr={name:"info-circle",theme:"outline",icon:''},Tc={name:"loading",theme:"outline",icon:''},Fc={name:"left",theme:"outline",icon:''},Ic={name:"menu-unfold",theme:"outline",icon:''},qs={name:"menu-fold",theme:"outline",icon:''},Qc={name:"paper-clip",theme:"outline",icon:''},e1={name:"question-circle",theme:"outline",icon:''},ml={name:"right",theme:"outline",icon:''},v8={name:"rotate-left",theme:"outline",icon:''},Nr={name:"rotate-right",theme:"outline",icon:''},v1={name:"star",theme:"fill",icon:''},Il={name:"search",theme:"outline",icon:''},Cs={name:"swap-right",theme:"outline",icon:''},Zl={name:"up",theme:"outline",icon:''},p6={name:"upload",theme:"outline",icon:''},P1={name:"vertical-align-top",theme:"outline",icon:''},wr={name:"zoom-in",theme:"outline",icon:''},Dr={name:"zoom-out",theme:"outline",icon:''}},8076:(yt,be,p)=>{p.d(be,{J_:()=>oe,c8:()=>W,YK:()=>I,LU:()=>R,Rq:()=>ye,mF:()=>ee,$C:()=>Ye});var a=p(1777);let s=(()=>{class ze{}return ze.SLOW="0.3s",ze.BASE="0.2s",ze.FAST="0.1s",ze})(),G=(()=>{class ze{}return ze.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",ze.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",ze.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",ze.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",ze.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",ze.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",ze.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",ze.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",ze.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",ze.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",ze.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",ze.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",ze.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",ze.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",ze})();const oe=(0,a.X$)("collapseMotion",[(0,a.SB)("expanded",(0,a.oB)({height:"*"})),(0,a.SB)("collapsed",(0,a.oB)({height:0,overflow:"hidden"})),(0,a.SB)("hidden",(0,a.oB)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,a.eR)("expanded => collapsed",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${G.EASE_IN_OUT}`))]),W=((0,a.X$)("treeCollapseMotion",[(0,a.eR)("* => *",[(0,a.IO)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,a.oB)({overflow:"hidden"}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,a.IO)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,a.oB)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,a.EY)(0,[(0,a.jt)(`150ms ${G.EASE_IN_OUT}`,(0,a.oB)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,a.X$)("fadeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:1}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({opacity:0}))])]),(0,a.X$)("helpMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"translateY(-5px)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:1,transform:"translateY(0)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"translateY(0)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT}`,(0,a.oB)({opacity:0,transform:"translateY(-5px)"}))])])),I=(0,a.X$)("moveUpMotion",[(0,a.eR)("* => enter",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,a.eR)("* => leave",[(0,a.oB)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,a.jt)(`${s.BASE}`,(0,a.oB)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),R=(0,a.X$)("notificationMotion",[(0,a.SB)("enterRight",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterRight",[(0,a.oB)({opacity:0,transform:"translateX(5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("enterLeft",(0,a.oB)({opacity:1,transform:"translateX(0)"})),(0,a.eR)("* => enterLeft",[(0,a.oB)({opacity:0,transform:"translateX(-5%)"}),(0,a.jt)("100ms linear")]),(0,a.SB)("leave",(0,a.oB)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,a.eR)("* => leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)("100ms linear")])]),H=`${s.BASE} ${G.EASE_OUT_QUINT}`,B=`${s.BASE} ${G.EASE_IN_QUINT}`,ee=(0,a.X$)("slideMotion",[(0,a.SB)("void",(0,a.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,a.SB)("enter",(0,a.oB)({opacity:1,transform:"scaleY(1)"})),(0,a.eR)("void => *",[(0,a.jt)(H)]),(0,a.eR)("* => void",[(0,a.jt)(B)])]),ye=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),Ye=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${G.EASE_OUT_CIRC}`,(0,a.oB)({opacity:1,transform:"scale(1)"}))]),(0,a.eR)("active => void",[(0,a.oB)({opacity:1,transform:"scale(1)"}),(0,a.jt)(`${s.BASE} ${G.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scale(0.8)"}))])]);(0,a.X$)("zoomBadgeMotion",[(0,a.eR)(":enter",[(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_OUT_BACK}`,(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,a.jt)(`${s.SLOW} ${G.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(yt,be,p)=>{p.d(be,{o2:()=>G,M8:()=>oe,uf:()=>s,Bh:()=>a});const a=["success","processing","error","default","warning"],s=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function G(q){return-1!==s.indexOf(q)}function oe(q){return-1!==a.indexOf(q)}},9439:(yt,be,p)=>{p.d(be,{jY:()=>W,oS:()=>I});var a=p(5e3),s=p(8929),G=p(2198),oe=p(7604);const q=new a.OlP("nz-config"),_=function(R){return void 0!==R};let W=(()=>{class R{constructor(B){this.configUpdated$=new s.xQ,this.config=B||{}}getConfig(){return this.config}getConfigForComponent(B){return this.config[B]}getConfigChangeEventForComponent(B){return this.configUpdated$.pipe((0,G.h)(ee=>ee===B),(0,oe.h)(void 0))}set(B,ee){this.config[B]=Object.assign(Object.assign({},this.config[B]),ee),this.configUpdated$.next(B)}}return R.\u0275fac=function(B){return new(B||R)(a.LFG(q,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const ye=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,ye,{configurable:!0,writable:!0,enumerable:!1}),{get(){var Ye,Fe;const ze=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[ye],_e=((null===(Ye=this.propertyAssignCounter)||void 0===Ye?void 0:Ye[B])||0)>1,vt=null===(Fe=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Fe?void 0:Fe[B];return _e&&_(ze)?ze:_(vt)?vt:ze},set(Ye){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)(Ye):this[ye]=Ye},configurable:!0,enumerable:!0}}}},4351:(yt,be,p)=>{p.d(be,{N:()=>a});const a={isTestMode:!1}},6947:(yt,be,p)=>{p.d(be,{Bq:()=>oe,ZK:()=>W});var a=p(5e3),s=p(4351);const G={},oe="[NG-ZORRO]:";const W=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function q(...H){const B=H.reduce((ee,ye)=>ee+ye.toString(),"");return!G[B]&&(G[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(oe,...B),...H)},4832:(yt,be,p)=>{p.d(be,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),G=p(655),oe=p(3191),q=p(6360),_=p(1721);const W="nz-animate-disabled";let I=(()=>{class H{constructor(ee,ye,Ye){this.element=ee,this.renderer=ye,this.animationType=Ye,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,oe.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,W):this.renderer.removeClass(ee,W))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(q.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,G.gn)([(0,_.yF)()],H.prototype,"nzNoAnimation",void 0),H})(),R=(()=>{class H{}return H.\u0275fac=function(ee){return new(ee||H)},H.\u0275mod=s.oAB({type:H}),H.\u0275inj=s.cJS({imports:[[a.ez]]}),H})()},969:(yt,be,p)=>{p.d(be,{T:()=>q,f:()=>G});var a=p(9808),s=p(5e3);let G=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new oe,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}static ngTemplateContextGuard(I,R){return!0}recreateView(){this.viewContainer.clear();const I=this.nzStringTemplateOutlet instanceof s.Rgc;this.embeddedViewRef=this.viewContainer.createEmbeddedView(I?this.nzStringTemplateOutlet:this.templateRef,I?this.nzStringTemplateOutletContext:this.context)}updateContext(){const R=this.nzStringTemplateOutlet instanceof s.Rgc?this.nzStringTemplateOutletContext:this.context,H=this.embeddedViewRef.context;if(R)for(const B of Object.keys(R))H[B]=R[B]}ngOnChanges(I){const{nzStringTemplateOutletContext:R,nzStringTemplateOutlet:H}=I;H&&(this.context.$implicit=H.currentValue),(()=>{let ye=!1;if(H)if(H.firstChange)ye=!0;else{const _e=H.currentValue instanceof s.Rgc;ye=H.previousValue instanceof s.Rgc||_e}return R&&(ze=>{const _e=Object.keys(ze.previousValue||{}),vt=Object.keys(ze.currentValue||{});if(_e.length===vt.length){for(const Je of vt)if(-1===_e.indexOf(Je))return!0;return!1}return!0})(R)||ye})()?this.recreateView():this.updateContext()}}return _.\u0275fac=function(I){return new(I||_)(s.Y36(s.s_b),s.Y36(s.Rgc))},_.\u0275dir=s.lG2({type:_,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],features:[s.TTD]}),_})();class oe{}let q=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(yt,be,p)=>{p.d(be,{Ek:()=>I,hQ:()=>ye,e4:()=>Ye,yW:()=>W,d_:()=>ee});var a=p(655),s=p(2845),G=p(5e3),oe=p(7625),q=p(4090),_=p(1721);const W={top:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.tR({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.tR({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.tR({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.tR({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.tR({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.tR({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.tR({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.tR({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},I=[W.top,W.right,W.bottom,W.left];function ee(Fe){for(const ze in W)if(Fe.connectionPair.originX===W[ze].originX&&Fe.connectionPair.originY===W[ze].originY&&Fe.connectionPair.overlayX===W[ze].overlayX&&Fe.connectionPair.overlayY===W[ze].overlayY)return ze}new s.tR({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}),new s.tR({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"});let ye=(()=>{class Fe{constructor(_e,vt){this.cdkConnectedOverlay=_e,this.nzDestroyService=vt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,oe.R)(this.nzDestroyService)).subscribe(Je=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(Je)})}updateArrowPosition(_e){const vt=this.getOriginRect(),Je=ee(_e);let zt=0,ut=0;"topLeft"===Je||"bottomLeft"===Je?zt=vt.width/2-14:"topRight"===Je||"bottomRight"===Je?zt=-(vt.width/2-14):"leftTop"===Je||"rightTop"===Je?ut=vt.height/2-10:("leftBottom"===Je||"rightBottom"===Je)&&(ut=-(vt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ut)&&(this.cdkConnectedOverlay.offsetY=ut,this.cdkConnectedOverlay.offsetX=zt,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof s.xu?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const _e=this.getFlexibleConnectedPositionStrategyOrigin();if(_e instanceof G.SBq)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const vt=_e.width||0,Je=_e.height||0;return{top:_e.y,bottom:_e.y+Je,left:_e.x,right:_e.x+vt,height:Je,width:vt}}}return Fe.\u0275fac=function(_e){return new(_e||Fe)(G.Y36(s.pI),G.Y36(q.kn))},Fe.\u0275dir=G.lG2({type:Fe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[G._Bn([q.kn])]}),(0,a.gn)([(0,_.yF)()],Fe.prototype,"nzArrowPointAtCenter",void 0),Fe})(),Ye=(()=>{class Fe{}return Fe.\u0275fac=function(_e){return new(_e||Fe)},Fe.\u0275mod=G.oAB({type:Fe}),Fe.\u0275inj=G.cJS({}),Fe})()},4090:(yt,be,p)=>{p.d(be,{G_:()=>Je,r3:()=>Ie,kn:()=>$e,rI:()=>ee,KV:()=>Ye,WV:()=>zt,ow:()=>ut});var a=p(5e3),s=p(8929),G=p(7138),oe=p(537),q=p(7625),_=p(4850),W=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class Se{constructor(J,fe){this.ngZone=J,this.rendererFactory2=fe,this.resizeSource$=new s.xQ,this.listeners=0,this.disposeHandle=B,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=B}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,G.e)(16),(0,oe.x)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=B)}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(a.R0b),a.LFG(a.FYo))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();const ye=new Map;let Ye=(()=>{class Se{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?ye:this._singletonRegistry}registerSingletonWithKey(J,fe){const he=this.singletonRegistry.has(J),te=he?this.singletonRegistry.get(J):this.withNewTarget(fe);he||this.singletonRegistry.set(J,te)}getSingletonWithKey(J){return this.singletonRegistry.has(J)?this.singletonRegistry.get(J).target:null}withNewTarget(J){return{target:J}}}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})();var Je=(()=>{return(Se=Je||(Je={})).xxl="xxl",Se.xl="xl",Se.lg="lg",Se.md="md",Se.sm="sm",Se.xs="xs",Je;var Se})();const zt={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ut={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let Ie=(()=>{class Se{constructor(J,fe){this.resizeService=J,this.mediaMatcher=fe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,q.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(J,fe){if(fe){const he=()=>this.matchMedia(J,!0);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)((te,le)=>te[0]===le[0]),(0,_.U)(te=>te[1]))}{const he=()=>this.matchMedia(J);return this.resizeService.subscribe().pipe((0,_.U)(he),(0,W.O)(he()),(0,I.x)())}}matchMedia(J,fe){let he=Je.md;const te={};return Object.keys(J).map(le=>{const ie=le,Ue=this.mediaMatcher.matchMedia(zt[ie]).matches;te[le]=Ue,Ue&&(he=ie)}),fe?[he,te]:he}}return Se.\u0275fac=function(J){return new(J||Se)(a.LFG(ee),a.LFG(H.vx))},Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"}),Se})(),$e=(()=>{class Se extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return Se.\u0275fac=function(){let Xe;return function(fe){return(Xe||(Xe=a.n5z(Se)))(fe||Se)}}(),Se.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac}),Se})()},1721:(yt,be,p)=>{p.d(be,{yF:()=>vt,Rn:()=>zt,cO:()=>_,pW:()=>Ie,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>je,tI:()=>te,D8:()=>x,Sm:()=>ke,sw:()=>ye,WX:()=>Fe,YM:()=>tt,He:()=>Ye});var a=p(3191),s=p(6947),G=p(8929),oe=p(2986);function _(j,me){if(!j||!me||j.length!==me.length)return!1;const He=j.length;for(let Ge=0;GeYe(me,j))}function Ie(j){if(!j.getClientRects().length)return{top:0,left:0};const me=j.getBoundingClientRect(),He=j.ownerDocument.defaultView;return{top:me.top+He.pageYOffset,left:me.left+He.pageXOffset}}function te(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function je(j){return"number"==typeof j&&isFinite(j)}function tt(j,me){return Math.round(j*Math.pow(10,me))/Math.pow(10,me)}function ke(j,me=0){return j.reduce((He,Ge)=>He+Ge,me)}let cn,Mn;"undefined"!=typeof window&&window;const qe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",me="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const He="vertical"===j;if(He&&cn)return cn;if(!He&&Mn)return Mn;const Ge=document.createElement("div");Object.keys(qe).forEach(Me=>{Ge.style[Me]=qe[Me]}),Ge.className=`${me}-hide-scrollbar scroll-div-append-to-body`,He?Ge.style.overflowY="scroll":Ge.style.overflowX="scroll",document.body.appendChild(Ge);let Le=0;return He?(Le=Ge.offsetWidth-Ge.clientWidth,cn=Le):(Le=Ge.offsetHeight-Ge.clientHeight,Mn=Le),document.body.removeChild(Ge),Le}function P(){const j=new G.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,oe.q)(1))}},4147:(yt,be,p)=>{p.d(be,{Vz:()=>ve,SQ:()=>Ue,BL:()=>Qe});var a=p(655),s=p(1159),G=p(2845),oe=p(7429),q=p(9808),_=p(5e3),W=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),ye=p(4832),Ye=p(969),Fe=p(647);const ze=["drawerTemplate"];function _e(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(ot),_.oxw(2).maskClick()}),_.qZA()}if(2&it){const ot=_.oxw(2);_.Q6J("ngStyle",ot.nzMaskStyle)}}function vt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&it){const ot=St.$implicit;_.xp6(1),_.Q6J("nzType",ot)}}function Je(it,St){if(1&it){const ot=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(ot),_.oxw(3).closeClick()}),_.YNc(1,vt,2,1,"ng-container",17),_.qZA()}if(2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzCloseIcon)}}function zt(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",ot.nzTitle,_.oJD)}}function ut(it,St){if(1&it&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzTitle)}}function Ie(it,St){if(1&it&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,Je,2,1,"button",14),_.YNc(3,ut,2,1,"div",15),_.qZA(),_.qZA()),2&it){const ot=_.oxw(2);_.ekj("ant-drawer-header-close-only",!ot.nzTitle),_.xp6(2),_.Q6J("ngIf",ot.nzClosable),_.xp6(1),_.Q6J("ngIf",ot.nzTitle)}}function $e(it,St){}function et(it,St){1&it&&_.GkF(0)}function Se(it,St){if(1&it&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.nzContent)("ngTemplateOutletContext",ot.templateContext)}}function Xe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,Se,2,2,"ng-container",21),_.BQk()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("ngIf",ot.isTemplateRef(ot.nzContent))}}function J(it,St){}function fe(it,St){if(1&it&&(_.ynx(0),_.YNc(1,J,0,0,"ng-template",23),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",ot.contentFromContentChild)}}function he(it,St){if(1&it&&_.YNc(0,fe,2,1,"ng-container",21),2&it){const ot=_.oxw(2);_.Q6J("ngIf",ot.contentFromContentChild&&(ot.isOpen||ot.inAnimation))}}function te(it,St){if(1&it&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&it){const ot=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",ot.nzFooter,_.oJD)}}function le(it,St){if(1&it&&(_.TgZ(0,"div",24),_.YNc(1,te,2,1,"ng-container",17),_.qZA()),2&it){const ot=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",ot.nzFooter)}}function ie(it,St){if(1&it&&(_.TgZ(0,"div",1),_.YNc(1,_e,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,Ie,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,$e,0,0,"ng-template",7),_.YNc(8,Xe,2,1,"ng-container",8),_.YNc(9,he,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,le,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&it){const ot=_.MAs(10),Et=_.oxw();_.Udp("transform",Et.offsetTransform)("transition",Et.placementChanging?"none":null)("z-index",Et.nzZIndex),_.ekj("ant-drawer-rtl","rtl"===Et.dir)("ant-drawer-open",Et.isOpen)("no-mask",!Et.nzMask)("ant-drawer-top","top"===Et.nzPlacement)("ant-drawer-bottom","bottom"===Et.nzPlacement)("ant-drawer-right","right"===Et.nzPlacement)("ant-drawer-left","left"===Et.nzPlacement),_.Q6J("nzNoAnimation",Et.nzNoAnimation),_.xp6(1),_.Q6J("ngIf",Et.nzMask),_.xp6(1),_.Gre("ant-drawer-content-wrapper ",Et.nzWrapClassName,""),_.Udp("width",Et.width)("height",Et.height)("transform",Et.transform)("transition",Et.placementChanging?"none":null),_.xp6(2),_.Udp("height",Et.isLeftOrRight?"100%":null),_.xp6(1),_.Q6J("ngIf",Et.nzTitle||Et.nzClosable),_.xp6(1),_.Q6J("ngStyle",Et.nzBodyStyle),_.xp6(2),_.Q6J("ngIf",Et.nzContent)("ngIfElse",ot),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let Ue=(()=>{class it{constructor(ot){this.templateRef=ot}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.Rgc))},it.\u0275dir=_.lG2({type:it,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),it})();class je{}let ve=(()=>{class it extends je{constructor(ot,Et,Zt,mn,gn,Ut,un,_n,Cn,Dt,Sn){super(),this.cdr=ot,this.document=Et,this.nzConfigService=Zt,this.renderer=mn,this.overlay=gn,this.injector=Ut,this.changeDetectorRef=un,this.focusTrapFactory=_n,this.viewContainerRef=Cn,this.overlayKeyboardDispatcher=Dt,this.directionality=Sn,this._nzModuleName="drawer",this.nzCloseIcon="close",this.nzClosable=!0,this.nzMaskClosable=!0,this.nzMask=!0,this.nzCloseOnNavigation=!0,this.nzNoAnimation=!1,this.nzKeyboard=!0,this.nzPlacement="right",this.nzMaskStyle={},this.nzBodyStyle={},this.nzWidth=256,this.nzHeight=256,this.nzZIndex=1e3,this.nzOffsetX=0,this.nzOffsetY=0,this.componentInstance=null,this.nzOnViewInit=new _.vpe,this.nzOnClose=new _.vpe,this.nzVisibleChange=new _.vpe,this.destroy$=new W.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new W.xQ,this.nzAfterClose=new W.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(ot){this.isOpen=ot}get nzVisible(){return this.isOpen}get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){return this.isLeftOrRight?(0,H.WX)(this.nzWidth):null}get height(){return this.isLeftOrRight?null:(0,H.WX)(this.nzHeight)}get isLeftOrRight(){return"left"===this.nzPlacement||"right"===this.nzPlacement}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}isTemplateRef(ot){return ot instanceof _.Rgc}ngOnInit(){var ot;null===(ot=this.directionality.change)||void 0===ot||ot.pipe((0,I.R)(this.destroy$)).subscribe(Et=>{this.dir=Et,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(ot){const{nzPlacement:Et,nzVisible:Zt}=ot;Zt&&(ot.nzVisible.currentValue?this.open():this.close()),Et&&!Et.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()}getAnimationDuration(){return this.nzNoAnimation?0:300}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(ot){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(ot),this.nzAfterClose.complete(),this.componentInstance=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof _.DyG){const ot=_.zs3.create({parent:this.injector,providers:[{provide:je,useValue:this}]}),Et=new oe.C5(this.nzContent,null,ot),Zt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Zt.instance,Object.assign(Zt.instance,this.nzContentParams),Zt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new oe.UE(this.drawerTemplate,this.viewContainerRef),this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe((0,I.R)(this.destroy$)).subscribe(ot=>{ot.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var ot;null===(ot=this.overlayRef)||void 0===ot||ot.dispose(),this.overlayRef=null}getOverlayConfig(){return new G.X_({disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:this.overlay.position().global(),scrollStrategy:this.overlay.scrollStrategies.block()})}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.blur&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&"function"==typeof this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus(),this.focusTrap&&this.focusTrap.destroy()}}return it.\u0275fac=function(ot){return new(ot||it)(_.Y36(_.sBO),_.Y36(q.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(G.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(G.Vs),_.Y36(ee.Is,8))},it.\u0275cmp=_.Xpm({type:it,selectors:[["nz-drawer"]],contentQueries:function(ot,Et,Zt){if(1&ot&&_.Suo(Zt,Ue,7,_.Rgc),2&ot){let mn;_.iGM(mn=_.CRH())&&(Et.contentFromContentChild=mn.first)}},viewQuery:function(ot,Et){if(1&ot&&(_.Gf(ze,7),_.Gf(oe.Pl,5)),2&ot){let Zt;_.iGM(Zt=_.CRH())&&(Et.drawerTemplate=Zt.first),_.iGM(Zt=_.CRH())&&(Et.bodyPortalOutlet=Zt.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:"nzClosable",nzMaskClosable:"nzMaskClosable",nzMask:"nzMask",nzCloseOnNavigation:"nzCloseOnNavigation",nzNoAnimation:"nzNoAnimation",nzKeyboard:"nzKeyboard",nzTitle:"nzTitle",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:"nzVisible"},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[_.qOj,_.TTD],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],["class","ant-drawer-mask",3,"ngStyle","click",4,"ngIf"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],["class","ant-drawer-header",3,"ant-drawer-header-close-only",4,"ngIf"],[1,"ant-drawer-body",3,"ngStyle"],["cdkPortalOutlet",""],[4,"ngIf","ngIfElse"],["contentElseTemp",""],["class","ant-drawer-footer",4,"ngIf"],[1,"ant-drawer-mask",3,"ngStyle","click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close","class","ant-drawer-close","style","--scroll-bar: 0px;",3,"click",4,"ngIf"],["class","ant-drawer-title",4,"ngIf"],["aria-label","Close",1,"ant-drawer-close",2,"--scroll-bar","0px",3,"click"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],[1,"ant-drawer-title"],[3,"innerHTML"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],[1,"ant-drawer-footer"]],template:function(ot,Et){1&ot&&_.YNc(0,ie,12,40,"ng-template",null,0,_.W1O)},directives:[ye.P,q.O5,q.PC,Ye.f,Fe.Ls,oe.Pl,q.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],it.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],it.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],it.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],it.prototype,"nzDirection",void 0),it})(),mt=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({}),it})(),Qe=(()=>{class it{}return it.\u0275fac=function(ot){return new(ot||it)},it.\u0275mod=_.oAB({type:it}),it.\u0275inj=_.cJS({imports:[[ee.vT,q.ez,G.U8,oe.eL,Fe.PV,Ye.T,ye.g,mt]]}),it})()},4170:(yt,be,p)=>{p.d(be,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>q});var a=p(5e3),s=p(591),G=p(6947),oe={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},DatePicker:{lang:{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"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{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"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click sort by descend",triggerAsc:"Click sort by ascend",cancelSort:"Click to cancel sort"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}},q={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"}};const _=new a.OlP("nz-i18n"),W=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ae,wt){this._change=new s.X(this._locale),this.setLocale(Ae||q),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ae,wt){let At=this._getObjectPath(this._locale,Ae);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ae}setLocale(Ae){this._locale&&this._locale.locale===Ae.locale||(this._locale=Ae,this._change.next(Ae))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ae){this.dateLocale=Ae}getDateLocale(){return this.dateLocale}getLocaleData(Ae,wt){const At=Ae?this._getObjectPath(this._locale,Ae):this._locale;return!At&&!wt&&(0,G.ZK)(`Missing translations for "${Ae}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),At||wt||this._getObjectPath(oe,Ae)||{}}_getObjectPath(Ae,wt){let At=Ae;const Qt=wt.split("."),vn=Qt.length;let Vn=0;for(;At&&Vn{class ${}return $.\u0275fac=function(Ae){return new(Ae||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(yt,be,p)=>{p.d(be,{sV:()=>Wt,Ls:()=>Rn,PV:()=>qn});var a=p(925),s=p(5e3),G=p(655),oe=p(8929),q=p(5254),_=p(7625),W=p(9808);function I(X,se){(function H(X){return"string"==typeof X&&-1!==X.indexOf(".")&&1===parseFloat(X)})(X)&&(X="100%");var k=function B(X){return"string"==typeof X&&-1!==X.indexOf("%")}(X);return X=360===se?X:Math.min(se,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*se),10)/100),Math.abs(X-se)<1e-6?1:X=360===se?(X<0?X%se+se:X%se)/parseFloat(String(se)):X%se/parseFloat(String(se))}function R(X){return Math.min(1,Math.max(0,X))}function ee(X){return X=parseFloat(X),(isNaN(X)||X<0||X>1)&&(X=1),X}function ye(X){return X<=1?100*Number(X)+"%":X}function Ye(X){return 1===X.length?"0"+X:String(X)}function ze(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=0,Vt=(Ee+st)/2;if(Ee===st)Ot=0,Ct=0;else{var hn=Ee-st;switch(Ot=Vt>.5?hn/(2-Ee-st):hn/(Ee+st),Ee){case X:Ct=(se-k)/hn+(se1&&(k-=1),k<1/6?X+6*k*(se-X):k<.5?se:k<2/3?X+(se-X)*(2/3-k)*6:X}function Je(X,se,k){X=I(X,255),se=I(se,255),k=I(k,255);var Ee=Math.max(X,se,k),st=Math.min(X,se,k),Ct=0,Ot=Ee,Vt=Ee-st,hn=0===Ee?0:Vt/Ee;if(Ee===st)Ct=0;else{switch(Ee){case X:Ct=(se-k)/Vt+(se>16,g:(65280&X)>>8,b:255&X}}(se)),this.originalInput=se;var st=function he(X){var se={r:0,g:0,b:0},k=1,Ee=null,st=null,Ct=null,Ot=!1,Vt=!1;return"string"==typeof X&&(X=function ke(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var se=!1;if(fe[X])X=fe[X],se=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=tt.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=tt.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=tt.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=tt.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=tt.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=tt.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=tt.hex8.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),a:Se(k[4]),format:se?"name":"hex8"}:(k=tt.hex6.exec(X))?{r:Xe(k[1]),g:Xe(k[2]),b:Xe(k[3]),format:se?"name":"hex"}:(k=tt.hex4.exec(X))?{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),a:Se(k[4]+k[4]),format:se?"name":"hex8"}:!!(k=tt.hex3.exec(X))&&{r:Xe(k[1]+k[1]),g:Xe(k[2]+k[2]),b:Xe(k[3]+k[3]),format:se?"name":"hex"}}(X)),"object"==typeof X&&(ve(X.r)&&ve(X.g)&&ve(X.b)?(se=function Fe(X,se,k){return{r:255*I(X,255),g:255*I(se,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Vt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ve(X.h)&&ve(X.s)&&ve(X.v)?(Ee=ye(X.s),st=ye(X.v),se=function zt(X,se,k){X=6*I(X,360),se=I(se,100),k=I(k,100);var Ee=Math.floor(X),st=X-Ee,Ct=k*(1-se),Ot=k*(1-st*se),Vt=k*(1-(1-st)*se),hn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Vt,k][hn],g:255*[Vt,k,k,Ot,Ct,Ct][hn],b:255*[Ct,Ct,Vt,k,k,Ot][hn]}}(X.h,Ee,st),Ot=!0,Vt="hsv"):ve(X.h)&&ve(X.s)&&ve(X.l)&&(Ee=ye(X.s),Ct=ye(X.l),se=function vt(X,se,k){var Ee,st,Ct;if(X=I(X,360),se=I(se,100),k=I(k,100),0===se)st=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+se):k+se-k*se,Vt=2*k-Ot;Ee=_e(Vt,Ot,X+1/3),st=_e(Vt,Ot,X),Ct=_e(Vt,Ot,X-1/3)}return{r:255*Ee,g:255*st,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Vt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Vt,r:Math.min(255,Math.max(se.r,0)),g:Math.min(255,Math.max(se.g,0)),b:Math.min(255,Math.max(se.b,0)),a:k}}(se);this.originalInput=se,this.r=st.r,this.g=st.g,this.b=st.b,this.a=st.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:st.format,this.gradientType=k.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=st.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var se=this.toRgb();return(299*se.r+587*se.g+114*se.b)/1e3},X.prototype.getLuminance=function(){var se=this.toRgb(),Ct=se.r/255,Ot=se.g/255,Vt=se.b/255;return.2126*(Ct<=.03928?Ct/12.92:Math.pow((Ct+.055)/1.055,2.4))+.7152*(Ot<=.03928?Ot/12.92:Math.pow((Ot+.055)/1.055,2.4))+.0722*(Vt<=.03928?Vt/12.92:Math.pow((Vt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(se){return this.a=ee(se),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var se=Je(this.r,this.g,this.b);return{h:360*se.h,s:se.s,v:se.v,a:this.a}},X.prototype.toHsvString=function(){var se=Je(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+st+"%)":"hsva("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var se=ze(this.r,this.g,this.b);return{h:360*se.h,s:se.s,l:se.l,a:this.a}},X.prototype.toHslString=function(){var se=ze(this.r,this.g,this.b),k=Math.round(360*se.h),Ee=Math.round(100*se.s),st=Math.round(100*se.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+st+"%)":"hsla("+k+", "+Ee+"%, "+st+"%, "+this.roundA+")"},X.prototype.toHex=function(se){return void 0===se&&(se=!1),ut(this.r,this.g,this.b,se)},X.prototype.toHexString=function(se){return void 0===se&&(se=!1),"#"+this.toHex(se)},X.prototype.toHex8=function(se){return void 0===se&&(se=!1),function Ie(X,se,k,Ee,st){var Ct=[Ye(Math.round(X).toString(16)),Ye(Math.round(se).toString(16)),Ye(Math.round(k).toString(16)),Ye(et(Ee))];return st&&Ct[0].startsWith(Ct[0].charAt(1))&&Ct[1].startsWith(Ct[1].charAt(1))&&Ct[2].startsWith(Ct[2].charAt(1))&&Ct[3].startsWith(Ct[3].charAt(1))?Ct[0].charAt(0)+Ct[1].charAt(0)+Ct[2].charAt(0)+Ct[3].charAt(0):Ct.join("")}(this.r,this.g,this.b,this.a,se)},X.prototype.toHex8String=function(se){return void 0===se&&(se=!1),"#"+this.toHex8(se)},X.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},X.prototype.toRgbString=function(){var se=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+se+", "+k+", "+Ee+")":"rgba("+se+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var se=function(k){return Math.round(100*I(k,255))+"%"};return{r:se(this.r),g:se(this.g),b:se(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var se=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%)":"rgba("+se(this.r)+"%, "+se(this.g)+"%, "+se(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var se="#"+ut(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(fe);k=0&&(se.startsWith("hex")||"name"===se)?"name"===se&&0===this.a?this.toName():this.toRgbString():("rgb"===se&&(Ee=this.toRgbString()),"prgb"===se&&(Ee=this.toPercentageRgbString()),("hex"===se||"hex6"===se)&&(Ee=this.toHexString()),"hex3"===se&&(Ee=this.toHexString(!0)),"hex4"===se&&(Ee=this.toHex8String(!0)),"hex8"===se&&(Ee=this.toHex8String()),"name"===se&&(Ee=this.toName()),"hsl"===se&&(Ee=this.toHslString()),"hsv"===se&&(Ee=this.toHsvString()),Ee||this.toHexString())},X.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},X.prototype.clone=function(){return new X(this.toString())},X.prototype.lighten=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l+=se/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(se){void 0===se&&(se=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-se/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-se/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-se/100*255))),new X(k)},X.prototype.darken=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.l-=se/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(se){return void 0===se&&(se=10),this.mix("white",se)},X.prototype.shade=function(se){return void 0===se&&(se=10),this.mix("black",se)},X.prototype.desaturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s-=se/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(se){void 0===se&&(se=10);var k=this.toHsl();return k.s+=se/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(se){var k=this.toHsl(),Ee=(k.h+se)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(se,k){void 0===k&&(k=50);var Ee=this.toRgb(),st=new X(se).toRgb(),Ct=k/100;return new X({r:(st.r-Ee.r)*Ct+Ee.r,g:(st.g-Ee.g)*Ct+Ee.g,b:(st.b-Ee.b)*Ct+Ee.b,a:(st.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(se,k){void 0===se&&(se=6),void 0===k&&(k=30);var Ee=this.toHsl(),st=360/k,Ct=[this];for(Ee.h=(Ee.h-(st*se>>1)+720)%360;--se;)Ee.h=(Ee.h+st)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var se=this.toHsl();return se.h=(se.h+180)%360,new X(se)},X.prototype.monochromatic=function(se){void 0===se&&(se=6);for(var k=this.toHsv(),Ee=k.h,st=k.s,Ct=k.v,Ot=[],Vt=1/se;se--;)Ot.push(new X({h:Ee,s:st,v:Ct})),Ct=(Ct+Vt)%1;return Ot},X.prototype.splitcomplement=function(){var se=this.toHsl(),k=se.h;return[this,new X({h:(k+72)%360,s:se.s,l:se.l}),new X({h:(k+216)%360,s:se.s,l:se.l})]},X.prototype.onBackground=function(se){var k=this.toRgb(),Ee=new X(se).toRgb();return new X({r:Ee.r+(k.r-Ee.r)*k.a,g:Ee.g+(k.g-Ee.g)*k.a,b:Ee.b+(k.b-Ee.b)*k.a})},X.prototype.triad=function(){return this.polyad(3)},X.prototype.tetrad=function(){return this.polyad(4)},X.prototype.polyad=function(se){for(var k=this.toHsl(),Ee=k.h,st=[this],Ct=360/se,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*se:Math.round(X.h)+2*se:k?Math.round(X.h)+2*se:Math.round(X.h)-2*se)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Ut(X,se,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*se:4===se?X.s+.16:X.s+.05*se)>1&&(Ee=1),k&&5===se&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function un(X,se,k){var Ee;return(Ee=k?X.v+.05*se:X.v-.15*se)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var se=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new mt(X),st=5;st>0;st-=1){var Ct=Ee.toHsv(),Ot=new mt({h:gn(Ct,st,!0),s:Ut(Ct,st,!0),v:un(Ct,st,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Vt=1;Vt<=4;Vt+=1){var hn=Ee.toHsv(),ni=new mt({h:gn(hn,Vt),s:Ut(hn,Vt),v:un(hn,Vt)}).toHexString();k.push(ni)}return"dark"===se.theme?mn.map(function(ai){var kn=ai.index,bi=ai.opacity;return new mt(se.backgroundColor||"#141414").mix(k[kn],100*bi).toHexString()}):k}var Cn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Dt={},Sn={};Object.keys(Cn).forEach(function(X){Dt[X]=_n(Cn[X]),Dt[X].primary=Dt[X][5],Sn[X]=_n(Cn[X],{theme:"dark",backgroundColor:"#141414"}),Sn[X].primary=Sn[X][5]});var V=p(520),Be=p(1086),nt=p(6498),ce=p(4850),Ne=p(2994),L=p(537),E=p(7221),$=p(8117),ue=p(2198),Ae=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function vn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Vn(X){return _n(X)[0]}function An(X,se){switch(se){case"fill":return`${X}-fill`;case"outline":return`${X}-o`;case"twotone":return`${X}-twotone`;case void 0:return X;default:throw new Error(`${At}Theme "${se}" is not a recognized theme!`)}}function Re(X){return"object"==typeof X&&"string"==typeof X.name&&("string"==typeof X.theme||void 0===X.theme)&&"string"==typeof X.icon}function ht(X){const se=X.split(":");switch(se.length){case 1:return[X,""];case 2:return[se[1],se[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Zn(){return new Error(`${At} tag not found.`)}let ei=(()=>{class X{constructor(k,Ee,st,Ct){this._rendererFactory=k,this._handler=Ee,this._document=st,this.sanitizer=Ct,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new oe.xQ,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new V.eN(this._handler))}set twoToneColor({primaryColor:k,secondaryColor:Ee}){this._twoToneColorPalette.primaryColor=k,this._twoToneColorPalette.secondaryColor=Ee||Vn(k)}get twoToneColor(){return Object.assign({},this._twoToneColorPalette)}useJsonpLoading(){this._enableJsonpLoading?vn("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=k=>{this._jsonpIconLoad$.next(k)})}changeAssetsSource(k){this._assetsUrlRoot=k.endsWith("/")?k:k+"/"}addIcon(...k){k.forEach(Ee=>{this._svgDefinitions.set(An(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[st,Ct]=ht(k);if(!Ct)throw function jt(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:k,icon:Ee})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(k,Ee){const st=Re(k)?k:this._svgDefinitions.get(k)||null;return(st?(0,Be.of)(st):this._loadIconDynamically(k)).pipe((0,ce.U)(Ot=>{if(!Ot)throw function fn(X){return new Error(`${At}the icon ${X} does not exist or is not registered.`)}(k);return this._loadSVGFromCacheOrCreateNew(Ot,Ee)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(k){if(!this._http&&!this._enableJsonpLoading)return(0,Be.of)(function Pn(){return function Qt(X){console.error(`${At} ${X}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ee=this._inProgressFetches.get(k);if(!Ee){const[st,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function we(X){const se=X.split("-"),k=function jn(X){return"o"===X?"outline":X}(se.splice(se.length-1,1)[0]);return{name:se.join("-"),theme:k,icon:""}}(st),hn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${st}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ni=this.sanitizer.sanitize(s.q3G.URL,hn);if(!ni)throw function si(X){return new Error(`${At}The url "${X}" is unsafe.`)}(hn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ni):this._http.get(ni,{responseType:"text"}).pipe((0,ce.U)(kn=>Object.assign(Object.assign({},Ot),{icon:kn})))).pipe((0,Ne.b)(kn=>this.addIcon(kn)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Be.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(st=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Vt(),st.error(function ii(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Vt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,ue.h)(hn=>hn.name===k.name&&hn.theme===k.theme),(0,Ae.q)(1)).subscribe(hn=>{st.next(hn),Vt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let st;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Vn(Ct)||this._twoToneColorPalette.secondaryColor,Vt="twotone"===k.theme?function ri(X,se,k,Ee){return`${An(X,se)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:An(k.name,k.theme),hn=this._svgRenderedDefinitions.get(Vt);return hn?st=hn.icon:(st=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function It(X){return""!==ht(X)[1]}(k.name)?k.icon:function Ve(X){return X.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(k.icon)),"twotone"===k.theme,Ct,Ot)),this._svgRenderedDefinitions.set(Vt,Object.assign(Object.assign({},k),{icon:st}))),function ae(X){return X.cloneNode(!0)}(st)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const st=Ee.querySelector("svg");if(!st)throw Zn;return st}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,st,Ct){if(Ee){const Ot=k.childNodes,Vt=Ot.length;for(let hn=0;hn{class X{constructor(k,Ee,st){this._iconService=k,this._elementRef=Ee,this._renderer=st}ngOnChanges(k){(k.type||k.theme||k.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(k=>{if(this.type){const Ee=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(st=>{!function Ln(X,se){return X.type===se.type&&X.theme===se.theme&&X.twoToneColor===se.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(st),k(st))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(Re(k))return k;{const[st,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(st)?(Ee&&vn(`'type' ${st} already gets a theme inside so 'theme' ${Ee} would be ignored`),st):An(st,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,st=Ee.childNodes;for(let Ot=st.length-1;Ot>=0;Ot--){const Vt=st[Ot];"svg"===(null===(k=Vt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Vt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(ei),s.Y36(s.SBq),s.Y36(s.Qsj))},X.\u0275dir=s.lG2({type:X,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[s.TTD]}),X})();var Qn=p(1721),Te=p(6947),Ze=p(9193),De=p(9439);const rt=[Ze.V65,Ze.ud1,Ze.bBn,Ze.BOg,Ze.Hkd,Ze.XuQ,Ze.Rfq,Ze.yQU,Ze.U2Q,Ze.UKj,Ze.OYp,Ze.BXH,Ze.eLU,Ze.x0x,Ze.VWu,Ze.rMt,Ze.vEg,Ze.RIp,Ze.RU0,Ze.M8e,Ze.ssy,Ze.Z5F,Ze.iUK,Ze.LJh,Ze.NFG,Ze.UTl,Ze.nrZ,Ze.gvV,Ze.d2H,Ze.eFY,Ze.sZJ,Ze.np6,Ze.w1L,Ze.UY$,Ze.v6v,Ze.rHg,Ze.v6v,Ze.s_U,Ze.TSL,Ze.FsU,Ze.cN2,Ze.uIz,Ze.d_$],Wt=new s.OlP("nz_icons"),Lt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let Un=(()=>{class X extends ei{constructor(k,Ee,st,Ct,Ot,Vt){super(k,Ct,Ot,Ee),this.nzConfigService=st,this.configUpdated$=new oe.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...rt,...Vt||[]),this.configDefaultTwotoneColor(),this.configDefaultTheme()}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(k){k.getAttribute("viewBox")||this._renderer.setAttribute(k,"viewBox","0 0 1024 1024"),(!k.getAttribute("width")||!k.getAttribute("height"))&&(this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em")),k.getAttribute("fill")||this._renderer.setAttribute(k,"fill","currentColor")}fetchFromIconfont(k){const{scriptUrl:Ee}=k;if(this._document&&!this.iconfontCache.has(Ee)){const st=this._renderer.createElement("script");this._renderer.setAttribute(st,"src",Ee),this._renderer.setAttribute(st,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,st),this.iconfontCache.add(Ee)}}createIconfontIcon(k){return this._createSVGElementFromString(``)}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const k=this.getConfig();this.defaultTheme=k.nzTheme||"outline"}configDefaultTwotoneColor(){const Ee=this.getConfig().nzTwotoneColor||Lt;let st=Lt;Ee&&(Ee.startsWith("#")?st=Ee:(0,Te.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:st}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}}return X.\u0275fac=function(k){return new(k||X)(s.LFG(s.FYo),s.LFG(wt.H7),s.LFG(De.jY),s.LFG(V.jN,8),s.LFG(W.K0,8),s.LFG(Wt,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const $n=new s.OlP("nz_icons_patch");let Nn=(()=>{class X{constructor(k,Ee){this.extraIcons=k,this.rootIconService=Ee,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(k=>this.rootIconService.addIcon(k)),this.patched=!0)}}return X.\u0275fac=function(k){return new(k||X)(s.LFG($n,2),s.LFG(Un))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),Rn=(()=>{class X extends Tt{constructor(k,Ee,st,Ct,Ot,Vt){super(Ct,st,Ot),this.ngZone=k,this.changeDetectorRef=Ee,this.iconService=Ct,this.renderer=Ot,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new oe.xQ,Vt&&Vt.doPatch(),this.el=st.nativeElement}set nzSpin(k){this.spin=k}set nzType(k){this.type=k}set nzTheme(k){this.theme=k}set nzTwotoneColor(k){this.twoToneColor=k}set nzIconfont(k){this.iconfont=k}ngOnChanges(k){const{nzType:Ee,nzTwotoneColor:st,nzSpin:Ct,nzTheme:Ot,nzRotate:Vt}=k;Ee||st||Ct||Ot?this.changeIcon2():Vt?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const k=this.el.children;let Ee=k.length;if(!this.type&&k.length)for(;Ee--;){const st=k[Ee];"svg"===st.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(st)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,q.D)(this._changeIcon()).pipe((0,_.R)(this.destroy$)).subscribe(k=>{this.changeDetectorRef.detectChanges(),k&&(this.setSVGData(k),this.handleSpin(k),this.handleRotate(k))})})}handleSpin(k){this.spin||"loading"===this.type?this.renderer.addClass(k,"anticon-spin"):this.renderer.removeClass(k,"anticon-spin")}handleRotate(k){this.nzRotate?this.renderer.setAttribute(k,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(k,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(k){this.renderer.setAttribute(k,"data-icon",this.type),this.renderer.setAttribute(k,"aria-hidden","true")}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(s.R0b),s.Y36(s.sBO),s.Y36(s.SBq),s.Y36(Un),s.Y36(s.Qsj),s.Y36(Nn,8))},X.\u0275dir=s.lG2({type:X,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(k,Ee){2&k&&s.ekj("anticon",!0)},inputs:{nzSpin:"nzSpin",nzRotate:"nzRotate",nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],features:[s.qOj,s.TTD]}),(0,G.gn)([(0,Qn.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:Wt,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Nn,{provide:$n,useValue:k}]}}}return X.\u0275fac=function(k){return new(k||X)},X.\u0275mod=s.oAB({type:X}),X.\u0275inj=s.cJS({imports:[[a.ud]]}),X})()},4219:(yt,be,p)=>{p.d(be,{hl:()=>cn,Cc:()=>Dt,wO:()=>Le,YV:()=>Be,r9:()=>qe,ip:()=>nt});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(6787),_=p(6053),W=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),ye=p(7625),Ye=p(1059),Fe=p(7545),ze=p(1721),_e=p(2302),vt=p(226),Je=p(2845),zt=p(6950),ut=p(925),Ie=p(4832),$e=p(9808),et=p(647),Se=p(969),Xe=p(8076);const J=["nz-submenu-title",""];function fe(ce,Ne){if(1&ce&&s._UZ(0,"i",4),2&ce){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function he(ce,Ne){if(1&ce&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ce){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function te(ce,Ne){1&ce&&s._UZ(0,"i",8)}function le(ce,Ne){1&ce&&s._UZ(0,"i",9)}function ie(ce,Ne){if(1&ce&&(s.TgZ(0,"span",5),s.YNc(1,te,1,0,"i",6),s.YNc(2,le,1,0,"i",7),s.qZA()),2&ce){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function Ue(ce,Ne){1&ce&&s._UZ(0,"i",10)}const je=["*"],tt=["nz-submenu-inline-child",""];function ke(ce,Ne){}const ve=["nz-submenu-none-inline-child",""];function mt(ce,Ne){}const Qe=["nz-submenu",""];function dt(ce,Ne){1&ce&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function _t(ce,Ne){if(1&ce&&s._UZ(0,"div",6),2&ce){const L=s.oxw(),E=s.MAs(7);s.Q6J("mode",L.mode)("nzOpen",L.nzOpen)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("menuClass",L.nzMenuClassName)("templateOutlet",E)}}function it(ce,Ne){if(1&ce){const L=s.EpF();s.TgZ(0,"div",8),s.NdJ("subMenuMouseState",function($){return s.CHM(L),s.oxw(2).setMouseEnterState($)}),s.qZA()}if(2&ce){const L=s.oxw(2),E=s.MAs(7);s.Q6J("theme",L.theme)("mode",L.mode)("nzOpen",L.nzOpen)("position",L.position)("nzDisabled",L.nzDisabled)("isMenuInsideDropDown",L.isMenuInsideDropDown)("templateOutlet",E)("menuClass",L.nzMenuClassName)("@.disabled",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)("nzNoAnimation",null==L.noAnimation?null:L.noAnimation.nzNoAnimation)}}function St(ce,Ne){if(1&ce){const L=s.EpF();s.YNc(0,it,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ce){const L=s.oxw(),E=s.MAs(1);s.Q6J("cdkConnectedOverlayPositions",L.overlayPositions)("cdkConnectedOverlayOrigin",E)("cdkConnectedOverlayWidth",L.triggerWidth)("cdkConnectedOverlayOpen",L.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function ot(ce,Ne){1&ce&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Zt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let cn=(()=>{class ce{constructor(){this.descendantMenuItemClick$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.theme$=new oe.X("light"),this.mode$=new oe.X("vertical"),this.inlineIndent$=new oe.X(24),this.isChildSubMenuOpen$=new oe.X(!1)}onDescendantMenuItemClick(L){this.descendantMenuItemClick$.next(L)}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setMode(L){this.mode$.next(L)}setTheme(L){this.theme$.next(L)}setInlineIndent(L){this.inlineIndent$.next(L)}}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),Mn=(()=>{class ce{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,W.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new oe.X(!1),this.isChildSubMenuOpen$=new oe.X(!1),this.isMouseEnterTitleOrOverlay$=new G.xQ,this.childMenuItemClick$=new G.xQ,this.destroy$=new G.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ue=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ae=(0,q.T)(this.isMouseEnterTitleOrOverlay$,ue);(0,_.aj)([this.isChildSubMenuOpen$,Ae]).pipe((0,W.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,ye.R)(this.destroy$)).pipe((0,ee.x)()).subscribe(At=>{this.setOpenStateWithoutDebounce(At),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(At):this.nzMenuService.isChildSubMenuOpen$.next(At)})}onChildMenuItemClick(L){this.childMenuItemClick$.next(L)}setOpenStateWithoutDebounce(L){this.isCurrentSubMenuOpen$.next(L)}setMouseEnterTitleOrOverlayState(L){this.isMouseEnterTitleOrOverlay$.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.LFG(ce,12),s.LFG(cn),s.LFG(Dt))},ce.\u0275prov=s.Yz7({token:ce,factory:ce.\u0275fac}),ce})(),qe=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=ue,this.directionality=Ae,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new G.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new G.xQ,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,Qt&&this.router.events.pipe((0,ye.R)(this.destroy$),(0,R.h)(vn=>vn instanceof _e.m2)).subscribe(()=>{this.updateRouterActive()})}clickMenuItem(L){this.nzDisabled?(L.preventDefault(),L.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(L){this.nzSelected=L,this.selected$.next(L)}updateRouterActive(){!this.listOfRouterLink||!this.listOfRouterLinkWithHref||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const L=this.hasActiveLinks();this.nzSelected!==L&&(this.nzSelected=L,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const L=this.isLinkActive(this.router);return this.routerLink&&L(this.routerLink)||this.routerLinkWithHref&&L(this.routerLinkWithHref)||this.listOfRouterLink.some(L)||this.listOfRouterLinkWithHref.some(L)}isLinkActive(L){return E=>L.isActive(E.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}ngOnInit(){var L;(0,_.aj)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,ye.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(_e.rH,8),s.Y36(_e.yS,8),s.Y36(_e.F0,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,_e.rH,5),s.Suo($,_e.yS,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfRouterLink=ue),s.iGM(ue=s.CRH())&&(E.listOfRouterLinkWithHref=ue)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(ue){return E.clickMenuItem(ue)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.nzPaddingLeft||E.inlinePaddingLeft,"px")("padding-right","rtl"===E.dir?E.nzPaddingLeft||E.inlinePaddingLeft:null,"px"),s.ekj("ant-dropdown-menu-item",E.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",E.isMenuInsideDropDown&&E.nzSelected)("ant-dropdown-menu-item-danger",E.isMenuInsideDropDown&&E.nzDanger)("ant-dropdown-menu-item-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-item",!E.isMenuInsideDropDown)("ant-menu-item-selected",!E.isMenuInsideDropDown&&E.nzSelected)("ant-menu-item-danger",!E.isMenuInsideDropDown&&E.nzDanger)("ant-menu-item-disabled",!E.isMenuInsideDropDown&&E.nzDisabled))},inputs:{nzPaddingLeft:"nzPaddingLeft",nzDisabled:"nzDisabled",nzSelected:"nzSelected",nzDanger:"nzDanger",nzMatchRouterExact:"nzMatchRouterExact",nzMatchRouter:"nzMatchRouter"},exportAs:["nzMenuItem"],features:[s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelected",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDanger",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzMatchRouter",void 0),ce})(),x=(()=>{class ce{constructor(L,E){this.cdr=L,this.directionality=E,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new s.vpe,this.subMenuMouseState=new s.vpe,this.dir="ltr",this.destroy$=new G.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(L,E){1&L&&s.NdJ("click",function(){return E.clickTitle()})("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.Udp("padding-left","rtl"===E.dir?null:E.paddingLeft,"px")("padding-right","rtl"===E.dir?E.paddingLeft:null,"px"),s.ekj("ant-dropdown-menu-submenu-title",E.isMenuInsideDropDown)("ant-menu-submenu-title",!E.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],attrs:J,ngContentSelectors:je,decls:6,vars:4,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch",4,"ngIf","ngIfElse"],["notDropdownTpl",""],["nz-icon","",3,"nzType"],[1,"ant-dropdown-menu-submenu-expand-icon",3,"ngSwitch"],["nz-icon","","nzType","left","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchCase"],["nz-icon","","nzType","right","class","ant-dropdown-menu-submenu-arrow-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"],[1,"ant-menu-submenu-arrow"]],template:function(L,E){if(1&L&&(s.F$t(),s.YNc(0,fe,1,1,"i",0),s.YNc(1,he,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,ie,3,2,"span",2),s.YNc(4,Ue,1,0,"ng-template",null,3,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("ngIf",E.nzIcon),s.xp6(1),s.Q6J("nzStringTemplateOutlet",E.nzTitle),s.xp6(2),s.Q6J("ngIf",E.isMenuInsideDropDown)("ngIfElse",$)}},directives:[$e.O5,et.Ls,Se.f,$e.RF,$e.n9,$e.ED],encapsulation:2,changeDetection:0}),ce})(),z=(()=>{class ce{constructor(L,E,$){this.elementRef=L,this.renderer=E,this.directionality=$,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:ue}=L;(E||$)&&this.calcMotionState(),ue&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.removeClass(this.elementRef.nativeElement,Ae)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ae=>!!Ae).forEach(Ae=>{this.renderer.addClass(this.elementRef.nativeElement,Ae)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(L,E){2&L&&(s.d8E("@collapseMotion",E.expandState),s.ekj("ant-menu-rtl","rtl"===E.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],features:[s.TTD],attrs:tt,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,ke,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[$e.tP],encapsulation:2,data:{animation:[Xe.J_]},changeDetection:0}),ce})(),P=(()=>{class ce{constructor(L){this.directionality=L,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new s.vpe,this.expandState="collapsed",this.dir="ltr",this.destroy$=new G.xQ}setMouseState(L){this.nzDisabled||this.subMenuMouseState.next(L)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){var L;this.calcMotionState(),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(vt.Is,8))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(L,E){1&L&&s.NdJ("mouseenter",function(){return E.setMouseState(!0)})("mouseleave",function(){return E.setMouseState(!1)}),2&L&&(s.d8E("@slideMotion",E.expandState)("@zoomBigMotion",E.expandState),s.ekj("ant-menu-light","light"===E.theme)("ant-menu-dark","dark"===E.theme)("ant-menu-submenu-placement-bottom","horizontal"===E.mode)("ant-menu-submenu-placement-right","vertical"===E.mode&&"right"===E.position)("ant-menu-submenu-placement-left","vertical"===E.mode&&"left"===E.position)("ant-menu-submenu-rtl","rtl"===E.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],features:[s.TTD],attrs:ve,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,mt,0,0,"ng-template",1),s.qZA()),2&L&&(s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-menu",!E.isMenuInsideDropDown)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown)("ant-menu-vertical",!E.isMenuInsideDropDown)("ant-dropdown-menu-sub",E.isMenuInsideDropDown)("ant-menu-sub",!E.isMenuInsideDropDown)("ant-menu-rtl","rtl"===E.dir),s.Q6J("ngClass",E.menuClass),s.xp6(1),s.Q6J("ngTemplateOutlet",E.templateOutlet))},directives:[$e.mk,$e.tP],encapsulation:2,data:{animation:[Xe.$C,Xe.mF]},changeDetection:0}),ce})();const pe=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let me=(()=>{class ce{constructor(L,E,$,ue,Ae,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=ue,this.isMenuInsideDropDown=Ae,this.directionality=wt,this.noAnimation=At,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzOpenChange=new s.vpe,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new G.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=pe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}setOpenStateWithoutDebounce(L){this.nzSubmenuService.setOpenStateWithoutDebounce(L)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(L){this.isActive=L,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(L)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(L){const E=(0,zt.d_)(L);"rightTop"===E||"rightBottom"===E||"right"===E?this.position="right":("leftTop"===E||"leftBottom"===E||"left"===E)&&(this.position="left")}ngOnInit(){var L;this.nzMenuService.theme$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=pe),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.isActive=E,E!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=E,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,q.T)(E,...L.map(ue=>ue.selected$));E.pipe((0,Ye.O)(L),(0,Fe.w)(()=>$),(0,Ye.O)(!0),(0,W.U)(()=>L.some(ue=>ue.nzSelected)),(0,ye.R)(this.destroy$)).subscribe(ue=>{this.isSelected=ue,this.cdr.markForCheck()})}ngOnChanges(L){const{nzOpen:E}=L;E&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ut.t4),s.Y36(Dt),s.Y36(vt.Is,8),s.Y36(Ie.P,9))},ce.\u0275cmp=s.Xpm({type:ce,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ce,5),s.Suo($,qe,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue),s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue)}},viewQuery:function(L,E){if(1&L&&s.Gf(Je.xu,7,s.SBq),2&L){let $;s.iGM($=s.CRH())&&(E.cdkOverlayOrigin=$.first)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu-submenu",E.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",E.isMenuInsideDropDown&&E.nzDisabled)("ant-dropdown-menu-submenu-open",E.isMenuInsideDropDown&&E.nzOpen)("ant-dropdown-menu-submenu-selected",E.isMenuInsideDropDown&&E.isSelected)("ant-dropdown-menu-submenu-vertical",E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-dropdown-menu-submenu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-dropdown-menu-submenu-inline",E.isMenuInsideDropDown&&"inline"===E.mode)("ant-dropdown-menu-submenu-active",E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu",!E.isMenuInsideDropDown)("ant-menu-submenu-disabled",!E.isMenuInsideDropDown&&E.nzDisabled)("ant-menu-submenu-open",!E.isMenuInsideDropDown&&E.nzOpen)("ant-menu-submenu-selected",!E.isMenuInsideDropDown&&E.isSelected)("ant-menu-submenu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.mode)("ant-menu-submenu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.mode)("ant-menu-submenu-inline",!E.isMenuInsideDropDown&&"inline"===E.mode)("ant-menu-submenu-active",!E.isMenuInsideDropDown&&E.isActive)("ant-menu-submenu-rtl","rtl"===E.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:"nzOpen",nzDisabled:"nzDisabled"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],features:[s._Bn([Mn]),s.TTD],attrs:Qe,ngContentSelectors:Zt,decls:8,vars:9,consts:[["nz-submenu-title","","cdkOverlayOrigin","",3,"nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft","subMenuMouseState","toggleSubMenu"],["origin","cdkOverlayOrigin"],[4,"ngIf"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet",4,"ngIf","ngIfElse"],["nonInlineTemplate",""],["subMenuTemplate",""],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn","positionChange"],["nz-submenu-none-inline-child","",3,"theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation","subMenuMouseState"]],template:function(L,E){if(1&L&&(s.F$t(Et),s.TgZ(0,"div",0,1),s.NdJ("subMenuMouseState",function(ue){return E.setMouseEnterState(ue)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,dt,1,0,"ng-content",2),s.qZA(),s.YNc(3,_t,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,ot,1,0,"ng-template",null,5,s.W1O)),2&L){const $=s.MAs(5);s.Q6J("nzIcon",E.nzIcon)("nzTitle",E.nzTitle)("mode",E.mode)("nzDisabled",E.nzDisabled)("isMenuInsideDropDown",E.isMenuInsideDropDown)("paddingLeft",E.nzPaddingLeft||E.inlinePaddingLeft),s.xp6(2),s.Q6J("ngIf",!E.nzTitle),s.xp6(1),s.Q6J("ngIf","inline"===E.mode)("ngIfElse",$)}},directives:[x,z,P,Je.xu,$e.O5,Ie.P,Je.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzOpen",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzDisabled",void 0),ce})();function He(ce,Ne){return ce||Ne}function Ge(ce){return ce||!1}let Le=(()=>{class ce{constructor(L,E,$,ue){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=ue,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new s.vpe,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new oe.X(this.nzInlineCollapsed),this.mode$=new oe.X(this.nzMode),this.destroy$=new G.xQ,this.listOfOpenedNzSubMenuComponent=[]}setInlineCollapsed(L){this.nzInlineCollapsed=L,this.inlineCollapsed$.next(L)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(L=>L.nzOpen),this.listOfNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(L=>L.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}ngOnInit(){var L;(0,_.aj)([this.inlineCollapsed$,this.mode$]).pipe((0,ye.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.nzClick.emit(E),this.nzSelectable&&!E.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach($=>$.setSelectedState($===E))}),this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,ye.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,ye.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:ue,nzMode:Ae}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ue&&this.nzMenuService.setTheme(this.nzTheme),Ae&&(this.mode$.next(this.nzMode),!L.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(wt=>wt.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(cn),s.Y36(Dt),s.Y36(s.sBO),s.Y36(vt.Is,8))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,qe,5),s.Suo($,me,5)),2&L){let ue;s.iGM(ue=s.CRH())&&(E.listOfNzMenuItemDirective=ue),s.iGM(ue=s.CRH())&&(E.listOfNzSubMenuComponent=ue)}},hostVars:34,hostBindings:function(L,E){2&L&&s.ekj("ant-dropdown-menu",E.isMenuInsideDropDown)("ant-dropdown-menu-root",E.isMenuInsideDropDown)("ant-dropdown-menu-light",E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-dropdown-menu-dark",E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-dropdown-menu-vertical",E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-dropdown-menu-horizontal",E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-dropdown-menu-inline",E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-dropdown-menu-inline-collapsed",E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu",!E.isMenuInsideDropDown)("ant-menu-root",!E.isMenuInsideDropDown)("ant-menu-light",!E.isMenuInsideDropDown&&"light"===E.nzTheme)("ant-menu-dark",!E.isMenuInsideDropDown&&"dark"===E.nzTheme)("ant-menu-vertical",!E.isMenuInsideDropDown&&"vertical"===E.actualMode)("ant-menu-horizontal",!E.isMenuInsideDropDown&&"horizontal"===E.actualMode)("ant-menu-inline",!E.isMenuInsideDropDown&&"inline"===E.actualMode)("ant-menu-inline-collapsed",!E.isMenuInsideDropDown&&E.nzInlineCollapsed)("ant-menu-rtl","rtl"===E.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:"nzInlineCollapsed",nzSelectable:"nzSelectable"},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],features:[s._Bn([{provide:Sn,useClass:cn},{provide:cn,useFactory:He,deps:[[new s.tp0,new s.FiY,cn],Sn]},{provide:Dt,useFactory:Ge,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,ze.yF)()],ce.prototype,"nzSelectable",void 0),ce})(),Be=(()=>{class ce{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ce.\u0275fac=function(L){return new(L||ce)(s.Y36(s.SBq),s.Y36(s.Qsj))},ce.\u0275dir=s.lG2({type:ce,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(L){return new(L||ce)},ce.\u0275mod=s.oAB({type:ce}),ce.\u0275inj=s.cJS({imports:[[vt.vT,$e.ez,ut.ud,Je.U8,et.PV,Ie.g,Se.T]]}),ce})()},9727:(yt,be,p)=>{p.d(be,{Ay:()=>Xe,Gm:()=>Se,XJ:()=>et,gR:()=>Ue,dD:()=>ie});var a=p(7429),s=p(5e3),G=p(8929),oe=p(2198),q=p(2986),_=p(7625),W=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),ye=p(4090),Ye=p(2845),Fe=p(226);function ze(je,tt){1&je&&s._UZ(0,"i",10)}function _e(je,tt){1&je&&s._UZ(0,"i",11)}function vt(je,tt){1&je&&s._UZ(0,"i",12)}function Je(je,tt){1&je&&s._UZ(0,"i",13)}function zt(je,tt){1&je&&s._UZ(0,"i",14)}function ut(je,tt){if(1&je&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&je){const ke=s.oxw();s.xp6(1),s.Q6J("innerHTML",ke.instance.content,s.oJD)}}function Ie(je,tt){if(1&je){const ke=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(mt){return s.CHM(ke),s.oxw().remove(mt.id,mt.userAction)}),s.qZA()}2&je&&s.Q6J("instance",tt.$implicit)}let $e=0;class et{constructor(tt,ke,ve){this.nzSingletonService=tt,this.overlay=ke,this.injector=ve}remove(tt){this.container&&(tt?this.container.remove(tt):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${$e++}`}withContainer(tt){let ke=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(ke)return ke;const ve=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),mt=new a.C5(tt,null,this.injector),Qe=ve.attach(mt);return ve.overlayElement.style.zIndex="1010",ke||(this.container=ke=Qe.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,ke)),ke}}let Se=(()=>{class je{constructor(ke,ve){this.cdr=ke,this.nzConfigService=ve,this.instances=[],this.destroy$=new G.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(ke){const ve=this.onCreate(ke);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ve],this.readyInstances(),ve}remove(ke,ve=!1){this.instances.some((mt,Qe)=>mt.messageId===ke&&(this.instances.splice(Qe,1),this.instances=[...this.instances],this.onRemove(mt,ve),this.readyInstances(),!0))}removeAll(){this.instances.forEach(ke=>this.onRemove(ke,!1)),this.instances=[],this.readyInstances()}onCreate(ke){return ke.options=this.mergeOptions(ke.options),ke.onClose=new G.xQ,ke}onRemove(ke,ve){ke.onClose.next(ve),ke.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(ke){const{nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe}=this.config;return Object.assign({nzDuration:ve,nzAnimate:mt,nzPauseOnHover:Qe},ke)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275dir=s.lG2({type:je}),je})(),Xe=(()=>{class je{constructor(ke){this.cdr=ke,this.destroyed=new s.vpe,this.animationStateChanged=new G.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,oe.h)(ke=>"done"===ke.phaseName&&"leave"===ke.toState),(0,q.q)(1)).subscribe(()=>{clearTimeout(this.closeTimer),this.destroyed.next({id:this.instance.messageId,userAction:this.userAction})})),this.autoClose=this.options.nzDuration>0,this.autoClose&&(this.initErase(),this.startEraseTimeout())}ngOnDestroy(){this.autoClose&&this.clearEraseTimeout(),this.animationStateChanged.complete()}onEnter(){this.autoClose&&this.options.nzPauseOnHover&&(this.clearEraseTimeout(),this.updateTTL())}onLeave(){this.autoClose&&this.options.nzPauseOnHover&&this.startEraseTimeout()}destroy(ke=!1){this.userAction=ke,this.options.nzAnimate?(this.instance.state="leave",this.cdr.detectChanges(),this.closeTimer=setTimeout(()=>{this.closeTimer=void 0,this.destroyed.next({id:this.instance.messageId,userAction:ke})},200)):this.destroyed.next({id:this.instance.messageId,userAction:ke})}initErase(){this.eraseTTL=this.options.nzDuration,this.eraseTimingStart=Date.now()}updateTTL(){this.autoClose&&(this.eraseTTL-=Date.now()-this.eraseTimingStart)}startEraseTimeout(){this.eraseTTL>0?(this.clearEraseTimeout(),this.eraseTimer=setTimeout(()=>this.destroy(),this.eraseTTL),this.eraseTimingStart=Date.now()):this.destroy()}clearEraseTimeout(){null!==this.eraseTimer&&(clearTimeout(this.eraseTimer),this.eraseTimer=null)}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275dir=s.lG2({type:je}),je})(),J=(()=>{class je extends Xe{constructor(ke){super(ke),this.destroyed=new s.vpe}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message"]],inputs:{instance:"instance"},outputs:{destroyed:"destroyed"},exportAs:["nzMessage"],features:[s.qOj],decls:10,vars:9,consts:[[1,"ant-message-notice",3,"mouseenter","mouseleave"],[1,"ant-message-notice-content"],[1,"ant-message-custom-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","loading",4,"ngSwitchCase"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","info-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","loading"],[3,"innerHTML"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Qe){return ve.animationStateChanged.next(Qe)})("mouseenter",function(){return ve.onEnter()})("mouseleave",function(){return ve.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,ze,1,0,"i",4),s.YNc(5,_e,1,0,"i",5),s.YNc(6,vt,1,0,"i",6),s.YNc(7,Je,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ut,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&ke&&(s.Q6J("@moveUpMotion",ve.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ve.instance.type),s.xp6(1),s.Q6J("ngSwitch",ve.instance.type),s.xp6(1),s.Q6J("ngSwitchCase","success"),s.xp6(1),s.Q6J("ngSwitchCase","info"),s.xp6(1),s.Q6J("ngSwitchCase","warning"),s.xp6(1),s.Q6J("ngSwitchCase","error"),s.xp6(1),s.Q6J("ngSwitchCase","loading"),s.xp6(1),s.Q6J("nzStringTemplateOutlet",ve.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),je})();const fe="message",he={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let te=(()=>{class je extends Se{constructor(ke,ve){super(ke,ve),this.dir="ltr";const mt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==mt?void 0:mt.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const ke=this.nzConfigService.getConfigForComponent(fe);if(ke){const{nzDirection:ve}=ke;this.dir=ve||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},he),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return je.\u0275fac=function(ke){return new(ke||je)(s.Y36(s.sBO),s.Y36(W.jY))},je.\u0275cmp=s.Xpm({type:je,selectors:[["nz-message-container"]],exportAs:["nzMessageContainer"],features:[s.qOj],decls:2,vars:5,consts:[[1,"ant-message"],[3,"instance","destroyed",4,"ngFor","ngForOf"],[3,"instance","destroyed"]],template:function(ke,ve){1&ke&&(s.TgZ(0,"div",0),s.YNc(1,Ie,1,1,"nz-message",1),s.qZA()),2&ke&&(s.Udp("top",ve.top),s.ekj("ant-message-rtl","rtl"===ve.dir),s.xp6(1),s.Q6J("ngForOf",ve.instances))},directives:[J,H.sg],encapsulation:2,changeDetection:0}),je})(),le=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({}),je})(),ie=(()=>{class je extends et{constructor(ke,ve,mt){super(ke,ve,mt),this.componentPrefix="message-"}success(ke,ve){return this.createInstance({type:"success",content:ke},ve)}error(ke,ve){return this.createInstance({type:"error",content:ke},ve)}info(ke,ve){return this.createInstance({type:"info",content:ke},ve)}warning(ke,ve){return this.createInstance({type:"warning",content:ke},ve)}loading(ke,ve){return this.createInstance({type:"loading",content:ke},ve)}create(ke,ve,mt){return this.createInstance({type:ke,content:ve},mt)}createInstance(ke,ve){return this.container=this.withContainer(te),this.container.create(Object.assign(Object.assign({},ke),{createdAt:new Date,messageId:this.getInstanceId(),options:ve}))}}return je.\u0275fac=function(ke){return new(ke||je)(s.LFG(ye.KV),s.LFG(Ye.aV),s.LFG(s.zs3))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac,providedIn:le}),je})(),Ue=(()=>{class je{}return je.\u0275fac=function(ke){return new(ke||je)},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({imports:[[Fe.vT,H.ez,Ye.U8,B.PV,ee.T,le]]}),je})()},5278:(yt,be,p)=>{p.d(be,{L8:()=>je,zb:()=>ke});var a=p(5e3),s=p(8076),G=p(9727),oe=p(9808),q=p(647),_=p(969),W=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),ye=p(4090);function Ye(ve,mt){1&ve&&a._UZ(0,"i",16)}function Fe(ve,mt){1&ve&&a._UZ(0,"i",17)}function ze(ve,mt){1&ve&&a._UZ(0,"i",18)}function _e(ve,mt){1&ve&&a._UZ(0,"i",19)}const vt=function(ve){return{"ant-notification-notice-with-icon":ve}};function Je(ve,mt){if(1&ve&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,Ye,1,0,"i",10),a.YNc(5,Fe,1,0,"i",11),a.YNc(6,ze,1,0,"i",12),a.YNc(7,_e,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,vt,"blank"!==Qe.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Qe.instance.type),a.xp6(1),a.Q6J("ngSwitch",Qe.instance.type),a.xp6(1),a.Q6J("ngSwitchCase","success"),a.xp6(1),a.Q6J("ngSwitchCase","info"),a.xp6(1),a.Q6J("ngSwitchCase","warning"),a.xp6(1),a.Q6J("ngSwitchCase","error"),a.xp6(1),a.Q6J("innerHTML",Qe.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Qe.instance.content,a.oJD)}}function zt(ve,mt){}function ut(ve,mt){if(1&ve&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ve){const Qe=mt.$implicit;a.xp6(1),a.Q6J("nzType",Qe)}}function Ie(ve,mt){if(1&ve&&(a.ynx(0),a.YNc(1,ut,2,1,"ng-container",20),a.BQk()),2&ve){const Qe=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Qe.instance.options?null:Qe.instance.options.nzCloseIcon)}}function $e(ve,mt){1&ve&&a._UZ(0,"i",22)}const et=function(ve,mt){return{$implicit:ve,data:mt}};function Se(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function Xe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function J(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}function fe(ve,mt){if(1&ve){const Qe=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(_t){return a.CHM(Qe),a.oxw().remove(_t.id,_t.userAction)}),a.qZA()}if(2&ve){const Qe=mt.$implicit,dt=a.oxw();a.Q6J("instance",Qe)("placement",dt.config.nzPlacement)}}let he=(()=>{class ve extends G.Ay{constructor(Qe){super(Qe),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Qe){this.instance.onClick.next(Qe)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification"]],inputs:{instance:"instance",index:"index",placement:"placement"},outputs:{destroyed:"destroyed"},exportAs:["nzNotification"],features:[a.qOj],decls:8,vars:12,consts:[[1,"ant-notification-notice","ant-notification-notice-closable",3,"ngStyle","ngClass","click","mouseenter","mouseleave"],["class","ant-notification-notice-content",4,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",1,"ant-notification-notice-close",3,"click"],[1,"ant-notification-notice-close-x"],[4,"ngIf","ngIfElse"],["iconTpl",""],[1,"ant-notification-notice-content"],[1,"ant-notification-notice-content",3,"ngClass"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle","class","ant-notification-notice-icon ant-notification-notice-icon-success",4,"ngSwitchCase"],["nz-icon","","nzType","info-circle","class","ant-notification-notice-icon ant-notification-notice-icon-info",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle","class","ant-notification-notice-icon ant-notification-notice-icon-warning",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle","class","ant-notification-notice-icon ant-notification-notice-icon-error",4,"ngSwitchCase"],[1,"ant-notification-notice-message",3,"innerHTML"],[1,"ant-notification-notice-description",3,"innerHTML"],["nz-icon","","nzType","check-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-success"],["nz-icon","","nzType","info-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-info"],["nz-icon","","nzType","exclamation-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-warning"],["nz-icon","","nzType","close-circle",1,"ant-notification-notice-icon","ant-notification-notice-icon-error"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","close",1,"ant-notification-close-icon"]],template:function(Qe,dt){if(1&Qe&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(it){return dt.animationStateChanged.next(it)})("click",function(it){return dt.onClick(it)})("mouseenter",function(){return dt.onEnter()})("mouseleave",function(){return dt.onLeave()}),a.YNc(1,Je,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return dt.close()}),a.TgZ(4,"span",4),a.YNc(5,Ie,2,1,"ng-container",5),a.YNc(6,$e,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Qe){const _t=a.MAs(7);a.Q6J("ngStyle",(null==dt.instance.options?null:dt.instance.options.nzStyle)||null)("ngClass",(null==dt.instance.options?null:dt.instance.options.nzClass)||"")("@notificationMotion",dt.state),a.xp6(1),a.Q6J("ngIf",!dt.instance.template),a.xp6(1),a.Q6J("ngIf",dt.instance.template)("ngTemplateOutlet",dt.instance.template)("ngTemplateOutletContext",a.WLB(9,et,dt,null==dt.instance.options?null:dt.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==dt.instance.options?null:dt.instance.options.nzCloseIcon)("ngIfElse",_t)}},directives:[oe.PC,oe.mk,oe.O5,oe.RF,oe.n9,q.Ls,oe.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ve})();const te="notification",le={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let ie=(()=>{class ve extends G.Gm{constructor(Qe,dt){super(Qe,dt),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const _t=this.nzConfigService.getConfigForComponent(te);this.dir=(null==_t?void 0:_t.nzDirection)||"ltr"}create(Qe){const dt=this.onCreate(Qe),_t=dt.options.nzKey,it=this.instances.find(St=>St.options.nzKey===Qe.options.nzKey);return _t&&it?this.replaceNotification(it,dt):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,dt]),this.readyInstances(),dt}onCreate(Qe){return Qe.options=this.mergeOptions(Qe.options),Qe.onClose=new R.xQ,Qe.onClick=new R.xQ,Qe}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(te).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Qe=this.nzConfigService.getConfigForComponent(te);if(Qe){const{nzDirection:dt}=Qe;this.dir=dt||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},le),this.config),this.nzConfigService.getConfigForComponent(te)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Qe,dt){Qe.title=dt.title,Qe.content=dt.content,Qe.template=dt.template,Qe.type=dt.type,Qe.options=dt.options}readyInstances(){this.topLeftInstances=this.instances.filter(Qe=>"topLeft"===Qe.options.nzPlacement),this.topRightInstances=this.instances.filter(Qe=>"topRight"===Qe.options.nzPlacement||!Qe.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Qe=>"bottomLeft"===Qe.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Qe=>"bottomRight"===Qe.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Qe){const{nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St}=this.config;return Object.assign({nzDuration:dt,nzAnimate:_t,nzPauseOnHover:it,nzPlacement:St},Qe)}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.Y36(a.sBO),a.Y36(ee.jY))},ve.\u0275cmp=a.Xpm({type:ve,selectors:[["nz-notification-container"]],exportAs:["nzNotificationContainer"],features:[a.qOj],decls:8,vars:28,consts:[[1,"ant-notification","ant-notification-topLeft"],[3,"instance","placement","destroyed",4,"ngFor","ngForOf"],[1,"ant-notification","ant-notification-topRight"],[1,"ant-notification","ant-notification-bottomLeft"],[1,"ant-notification","ant-notification-bottomRight"],[3,"instance","placement","destroyed"]],template:function(Qe,dt){1&Qe&&(a.TgZ(0,"div",0),a.YNc(1,Se,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Xe,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,J,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,fe,1,2,"nz-notification",1),a.qZA()),2&Qe&&(a.Udp("top",dt.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topLeftInstances),a.xp6(1),a.Udp("top",dt.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.topRightInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomLeftInstances),a.xp6(1),a.Udp("bottom",dt.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===dt.dir),a.xp6(1),a.Q6J("ngForOf",dt.bottomRightInstances))},directives:[he,oe.sg],encapsulation:2,changeDetection:0}),ve})(),Ue=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({}),ve})(),je=(()=>{class ve{}return ve.\u0275fac=function(Qe){return new(Qe||ve)},ve.\u0275mod=a.oAB({type:ve}),ve.\u0275inj=a.cJS({imports:[[W.vT,oe.ez,I.U8,q.PV,_.T,Ue]]}),ve})(),tt=0,ke=(()=>{class ve extends G.XJ{constructor(Qe,dt,_t){super(Qe,dt,_t),this.componentPrefix="notification-"}success(Qe,dt,_t){return this.createInstance({type:"success",title:Qe,content:dt},_t)}error(Qe,dt,_t){return this.createInstance({type:"error",title:Qe,content:dt},_t)}info(Qe,dt,_t){return this.createInstance({type:"info",title:Qe,content:dt},_t)}warning(Qe,dt,_t){return this.createInstance({type:"warning",title:Qe,content:dt},_t)}blank(Qe,dt,_t){return this.createInstance({type:"blank",title:Qe,content:dt},_t)}create(Qe,dt,_t,it){return this.createInstance({type:Qe,title:dt,content:_t},it)}template(Qe,dt){return this.createInstance({template:Qe},dt)}generateMessageId(){return`${this.componentPrefix}-${tt++}`}createInstance(Qe,dt){return this.container=this.withContainer(ie),this.container.create(Object.assign(Object.assign({},Qe),{createdAt:new Date,messageId:this.generateMessageId(),options:dt}))}}return ve.\u0275fac=function(Qe){return new(Qe||ve)(a.LFG(ye.KV),a.LFG(I.aV),a.LFG(a.zs3))},ve.\u0275prov=a.Yz7({token:ve,factory:ve.\u0275fac,providedIn:Ue}),ve})()},7525:(yt,be,p)=>{p.d(be,{W:()=>J,j:()=>fe});var a=p(655),s=p(5e3),G=p(8929),oe=p(591),q=p(5647),_=p(8723),W=p(1177);class R{constructor(te){this.durationSelector=te}call(te,le){return le.subscribe(new H(te,this.durationSelector))}}class H extends W.Ds{constructor(te,le){super(te),this.durationSelector=le,this.hasValue=!1}_next(te){try{const le=this.durationSelector.call(this,te);le&&this._tryNext(te,le)}catch(le){this.destination.error(le)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(te,le){let ie=this.durationSubscription;this.value=te,this.hasValue=!0,ie&&(ie.unsubscribe(),this.remove(ie)),ie=(0,W.ft)(le,new W.IY(this)),ie&&!ie.closed&&this.add(this.durationSubscription=ie)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const te=this.value,le=this.durationSubscription;le&&(this.durationSubscription=void 0,le.unsubscribe(),this.remove(le)),this.value=void 0,this.hasValue=!1,super._next(te)}}}var B=p(1059),ee=p(5778),ye=p(7545),Ye=p(7625),Fe=p(9439),ze=p(1721),_e=p(226),vt=p(9808),Je=p(7144);function zt(he,te){1&he&&(s.TgZ(0,"span",3),s._UZ(1,"i",4),s._UZ(2,"i",4),s._UZ(3,"i",4),s._UZ(4,"i",4),s.qZA())}function ut(he,te){}function Ie(he,te){if(1&he&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&he){const le=s.oxw(2);s.xp6(1),s.Oqu(le.nzTip)}}function $e(he,te){if(1&he&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ut,0,0,"ng-template",6),s.YNc(3,Ie,2,1,"div",7),s.qZA(),s.qZA()),2&he){const le=s.oxw(),ie=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===le.dir)("ant-spin-spinning",le.isLoading)("ant-spin-lg","large"===le.nzSize)("ant-spin-sm","small"===le.nzSize)("ant-spin-show-text",le.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",le.nzIndicator||ie),s.xp6(1),s.Q6J("ngIf",le.nzTip)}}function et(he,te){if(1&he&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&he){const le=s.oxw();s.ekj("ant-spin-blur",le.isLoading)}}const Se=["*"];let J=(()=>{class he{constructor(le,ie,Ue){this.nzConfigService=le,this.cdr=ie,this.directionality=Ue,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new G.xQ,this.spinning$=new oe.X(this.nzSpinning),this.delay$=new q.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var le;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,ye.w)(Ue=>0===Ue?this.spinning$:this.spinning$.pipe(function I(he){return te=>te.lift(new R(he))}(je=>(0,_.H)(je?Ue:0)))),(0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.isLoading=Ue,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,Ye.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(le=this.directionality.change)||void 0===le||le.pipe((0,Ye.R)(this.destroy$)).subscribe(Ue=>{this.dir=Ue,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(le){const{nzSpinning:ie,nzDelay:Ue}=le;ie&&this.spinning$.next(this.nzSpinning),Ue&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return he.\u0275fac=function(le){return new(le||he)(s.Y36(Fe.jY),s.Y36(s.sBO),s.Y36(_e.Is,8))},he.\u0275cmp=s.Xpm({type:he,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(le,ie){2&le&&s.ekj("ant-spin-nested-loading",!ie.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:Se,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(le,ie){1&le&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,$e,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&le&&(s.xp6(2),s.Q6J("ngIf",ie.isLoading),s.xp6(1),s.Q6J("ngIf",!ie.nzSimple))},directives:[vt.O5,vt.tP],encapsulation:2}),(0,a.gn)([(0,Fe.oS)()],he.prototype,"nzIndicator",void 0),(0,a.gn)([(0,ze.Rn)()],he.prototype,"nzDelay",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSimple",void 0),(0,a.gn)([(0,ze.yF)()],he.prototype,"nzSpinning",void 0),he})(),fe=(()=>{class he{}return he.\u0275fac=function(le){return new(le||he)},he.\u0275mod=s.oAB({type:he}),he.\u0275inj=s.cJS({imports:[[_e.vT,vt.ez,Je.Q8]]}),he})()},404:(yt,be,p)=>{p.d(be,{cg:()=>et,SY:()=>Ie});var a=p(655),s=p(5e3),G=p(8076),oe=p(8693),q=p(1721),_=p(8929),W=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),ye=p(2845),Ye=p(9808),Fe=p(969);const ze=["overlay"];function _e(Se,Xe){if(1&Se&&(s.ynx(0),s._uU(1),s.BQk()),2&Se){const J=s.oxw(2);s.xp6(1),s.Oqu(J.nzTitle)}}function vt(Se,Xe){if(1&Se&&(s.TgZ(0,"div",2),s.TgZ(1,"div",3),s.TgZ(2,"div",4),s._UZ(3,"span",5),s.qZA(),s.TgZ(4,"div",6),s.YNc(5,_e,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&Se){const J=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===J.dir),s.Q6J("ngClass",J._classMap)("ngStyle",J.nzOverlayStyle)("@.disabled",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("nzNoAnimation",null==J.noAnimation?null:J.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",J._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",J.nzTitle)("nzStringTemplateOutletContext",J.nzTitleContext)}}let Je=(()=>{class Se{constructor(J,fe,he,te,le,ie){this.elementRef=J,this.hostView=fe,this.resolver=he,this.renderer=te,this.noAnimation=le,this.nzConfigService=ie,this.visibleChange=new s.vpe,this.internalVisible=!1,this.destroy$=new _.xQ,this.triggerDisposables=[]}get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return void 0!==this.trigger?this.trigger:"hover"}get _placement(){const J=this.placement;return Array.isArray(J)&&J.length>0?J:"string"==typeof J&&J?[J]:["top"]}get _visible(){return(void 0!==this.visible?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}ngOnChanges(J){const{trigger:fe}=J;fe&&!fe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(J)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var J;null===(J=this.component)||void 0===J||J.show()}hide(){var J;null===(J=this.component)||void 0===J||J.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const J=this.componentRef;this.component=J.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),J.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,W.x)(),(0,I.R)(this.destroy$)).subscribe(fe=>{this.internalVisible=fe,this.visibleChange.emit(fe)})}registerTriggers(){const J=this.elementRef.nativeElement,fe=this.trigger;if(this.removeTriggerListeners(),"hover"===fe){let he;this.triggerDisposables.push(this.renderer.listen(J,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(J,"mouseleave",()=>{var te;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(te=this.component)||void 0===te?void 0:te.overlay.overlayRef)&&!he&&(he=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(he,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(he,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===fe?(this.triggerDisposables.push(this.renderer.listen(J,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(J,"focusout",()=>this.hide()))):"click"===fe&&this.triggerDisposables.push(this.renderer.listen(J,"click",he=>{he.preventDefault(),this.show()}))}updatePropertiesByChanges(J){this.updatePropertiesByKeys(Object.keys(J))}updatePropertiesByKeys(J){var fe;const he=Object.assign({title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter]},this.getProxyPropertyMap());(J||Object.keys(he).filter(te=>!te.startsWith("directive"))).forEach(te=>{if(he[te]){const[le,ie]=he[te];this.updateComponentValue(le,ie())}}),null===(fe=this.component)||void 0===fe||fe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(J,fe){void 0!==fe&&(this.component[J]=fe)}delayEnterLeave(J,fe,he=-1){this.delayTimer?this.clearTogglingTimer():he>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,fe?this.show():this.hide()},1e3*he):fe&&J?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(J=>J()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P),s.Y36(B.jY))},Se.\u0275dir=s.lG2({type:Se,features:[s.TTD]}),Se})(),zt=(()=>{class Se{constructor(J,fe,he){this.cdr=J,this.directionality=fe,this.noAnimation=he,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.nzVisibleChange=new _.xQ,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...R.Ek],this.destroy$=new _.xQ}set nzVisible(J){const fe=(0,q.sw)(J);this._visible!==fe&&(this._visible=fe,this.nzVisibleChange.next(fe))}get nzVisible(){return this._visible}set nzTrigger(J){this._trigger=J}get nzTrigger(){return this._trigger}set nzPlacement(J){const fe=J.map(he=>R.yW[he]);this._positions=[...fe,...R.Ek]}ngOnInit(){var J;null===(J=this.directionality.change)||void 0===J||J.pipe((0,I.R)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){!this.nzVisible||(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(J){this.preferredPlacement=(0,R.d_)(J),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(J){this.origin=J,this.cdr.markForCheck()}onClickOutside(J){!this.origin.nativeElement.contains(J.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},Se.\u0275dir=s.lG2({type:Se,viewQuery:function(J,fe){if(1&J&&s.Gf(ze,5),2&J){let he;s.iGM(he=s.CRH())&&(fe.overlay=he.first)}}}),Se})(),Ie=(()=>{class Se extends Je{constructor(J,fe,he,te,le){super(J,fe,he,te,le),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent($e)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},Se.\u0275dir=s.lG2({type:Se,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(J,fe){2&J&&s.ekj("ant-tooltip-open",fe.visible)},inputs:{title:["nzTooltipTitle","title"],titleContext:["nzTooltipTitleContext","titleContext"],directiveTitle:["nz-tooltip","directiveTitle"],trigger:["nzTooltipTrigger","trigger"],placement:["nzTooltipPlacement","placement"],origin:["nzTooltipOrigin","origin"],visible:["nzTooltipVisible","visible"],mouseEnterDelay:["nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:["nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:["nzTooltipOverlayClassName","overlayClassName"],overlayStyle:["nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:["nzTooltipArrowPointAtCenter","arrowPointAtCenter"],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],features:[s.qOj]}),(0,a.gn)([(0,q.yF)()],Se.prototype,"arrowPointAtCenter",void 0),Se})(),$e=(()=>{class Se extends zt{constructor(J,fe,he){super(J,fe,he),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ut(Se){return!(Se instanceof s.Rgc||""!==Se&&(0,q.DX)(Se))}(this.nzTitle)}updateStyles(){const J=this.nzColor&&(0,oe.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:J},this._contentStyleMap={backgroundColor:this.nzColor&&!J?this.nzColor:null}}}return Se.\u0275fac=function(J){return new(J||Se)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},Se.\u0275cmp=s.Xpm({type:Se,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],features:[s.qOj],decls:2,vars:5,consts:[["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter","overlayOutsideClick","detach","positionChange"],["overlay","cdkConnectedOverlay"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(J,fe){1&J&&(s.YNc(0,vt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(te){return fe.onClickOutside(te)})("detach",function(){return fe.hide()})("positionChange",function(te){return fe.onPositionChange(te)})),2&J&&s.Q6J("cdkConnectedOverlayOrigin",fe.origin)("cdkConnectedOverlayOpen",fe._visible)("cdkConnectedOverlayPositions",fe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",fe.nzArrowPointAtCenter)},directives:[ye.pI,R.hQ,Ye.mk,Ye.PC,H.P,Fe.f],encapsulation:2,data:{animation:[G.$C]},changeDetection:0}),Se})(),et=(()=>{class Se{}return Se.\u0275fac=function(J){return new(J||Se)},Se.\u0275mod=s.oAB({type:Se}),Se.\u0275inj=s.cJS({imports:[[ee.vT,Ye.ez,ye.U8,Fe.T,R.e4,H.g]]}),Se})()}},yt=>{yt(yt.s=434)}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/ngsw.json b/src/blrec/data/webapp/ngsw.json index 8accf9e..faab93f 100644 --- a/src/blrec/data/webapp/ngsw.json +++ b/src/blrec/data/webapp/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1645421972060, + "timestamp": 1649386979751, "index": "/index.html", "assetGroups": [ { @@ -13,15 +13,16 @@ "urls": [ "/103.5b5d2a6e5a8a7479.js", "/146.92e3b29c4c754544.js", - "/66.97582e026891bf70.js", - "/694.d4844204c9f8d279.js", - "/853.84ee7e1d7cff8913.js", + "/45.c90c3cea2bf1a66e.js", + "/66.d8b06f1fef317761.js", + "/694.92a3e0c2fc842a42.js", + "/869.95d68b28a4188d76.js", "/common.858f777e9296e6f2.js", "/index.html", - "/main.042620305008901b.js", + "/main.8a8c73fae6ff9291.js", "/manifest.webmanifest", "/polyfills.4b08448aee19bb22.js", - "/runtime.dbc624475730f362.js", + "/runtime.23c91f03d62c595a.js", "/styles.1f581691b230dc4d.css" ], "patterns": [] @@ -1635,9 +1636,10 @@ "hashTable": { "/103.5b5d2a6e5a8a7479.js": "cc0240f217015b6d4ddcc14f31fcc42e1c1c282a", "/146.92e3b29c4c754544.js": "3824de681dd1f982ea69a065cdf54d7a1e781f4d", - "/66.97582e026891bf70.js": "11cfd8acd3399fef42f0cf77d64aafc62c7e6994", - "/694.d4844204c9f8d279.js": "513c6b68a84ad47494a7397a06194c5136da3adc", - "/853.84ee7e1d7cff8913.js": "6281853ef474fc543ac39fb47ec4a0a61ca875fa", + "/45.c90c3cea2bf1a66e.js": "e5bfb8cf3803593e6b8ea14c90b3d3cb6a066764", + "/66.d8b06f1fef317761.js": "43676d9dc886b5624dadecc50f17d4972b183d2d", + "/694.92a3e0c2fc842a42.js": "f8f093029b9996b3db0c4e738bf9f8573fba8392", + "/869.95d68b28a4188d76.js": "cd1add38c89b1df3c0783b74c931b51839f1c530", "/assets/animal/panda.js": "fec2868bb3053dd2da45f96bbcb86d5116ed72b1", "/assets/animal/panda.svg": "bebd302cdc601e0ead3a6d2710acf8753f3d83b1", "/assets/fill/.gitkeep": "da39a3ee5e6b4b0d3255bfef95601890afd80709", @@ -3232,11 +3234,11 @@ "/assets/twotone/warning.js": "fb2d7ea232f3a99bf8f080dbc94c65699232ac01", "/assets/twotone/warning.svg": "8c7a2d3e765a2e7dd58ac674870c6655cecb0068", "/common.858f777e9296e6f2.js": "b68ca68e1e214a2537d96935c23410126cc564dd", - "/index.html": "4a8198a30590a4863ef700f1c541a0fce551e8c1", - "/main.042620305008901b.js": "03d1b5d12f588193841fdc44913ec20625404c7c", + "/index.html": "114f00ffcd1f7fa5aaaa7f2fcf3109f26c77c715", + "/main.8a8c73fae6ff9291.js": "41a5a5a8fb5cda4cfa0e28532812594816257122", "/manifest.webmanifest": "62c1cb8c5ad2af551a956b97013ab55ce77dd586", "/polyfills.4b08448aee19bb22.js": "8e73f2d42cc13ca353cea5c886d930bd6da08d0d", - "/runtime.dbc624475730f362.js": "030dff9e7d735e03d87257f33e8167d467d99adb", + "/runtime.23c91f03d62c595a.js": "0819f1120ed1e37c2ad069ef949147450c951069", "/styles.1f581691b230dc4d.css": "6f5befbbad57c2b2e80aae855139744b8010d150" }, "navigationUrls": [ diff --git a/src/blrec/data/webapp/runtime.23c91f03d62c595a.js b/src/blrec/data/webapp/runtime.23c91f03d62c595a.js new file mode 100644 index 0000000..742cb93 --- /dev/null +++ b/src/blrec/data/webapp/runtime.23c91f03d62c595a.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,f,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(c=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,f,o]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",66:"d8b06f1fef317761",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",592:"858f777e9296e6f2",694:"92a3e0c2fc842a42",869:"95d68b28a4188d76"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,f,o,n)=>{if(e[t])e[t].push(f);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var n=r.o(e,f)?e[f]:void 0;if(0!==n)if(n)o.push(n[2]);else if(666!=f){var a=new Promise((u,s)=>n=e[f]=[u,s]);o.push(n[2]=a);var c=r.p+r.u(f),l=new Error;r.l(c,u=>{if(r.o(e,f)&&(0!==(n=e[f])&&(e[f]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var i=(f,o)=>{var l,d,[n,a,c]=o,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(f&&f(o);u{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,o,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,o,f]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{66:"97582e026891bf70",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",592:"858f777e9296e6f2",694:"d4844204c9f8d279",853:"84ee7e1d7cff8913"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,o,f,n)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(o,f)=>{var n=r.o(e,o)?e[o]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=o){var a=new Promise((l,s)=>n=e[o]=[l,s]);f.push(n[2]=a);var c=r.p+r.u(o),d=new Error;r.l(c,l=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=l&&("load"===l.type?"missing":l.type),b=l&&l.target&&l.target.src;d.message="Loading chunk "+o+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,n[1](d)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var d,u,[n,a,c]=f,l=0;if(n.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var s=c(r)}for(o&&o(f);l int: + return self._last_timestamp + def analyse_header(self, header: FlvHeader) -> None: assert not self._header_analysed self._header_analysed = True diff --git a/src/blrec/flv/metadata_injector.py b/src/blrec/flv/metadata_injector.py index c7937a4..59a7637 100644 --- a/src/blrec/flv/metadata_injector.py +++ b/src/blrec/flv/metadata_injector.py @@ -130,8 +130,15 @@ def inject_metadata( observer.on_error(e) else: logger.info(f"Successfully inject metadata for '{path}'") - os.replace(out_path, path) - observer.on_completed() + try: + os.replace(out_path, path) + except Exception as e: + logger.error( + f"Failed to replace file {path} with '{out_path}'" + ) + observer.on_error(e) + else: + observer.on_completed() if room_id is not None: return _scheduler.schedule(with_room_id(room_id)(action)) diff --git a/src/blrec/flv/parameters_checker.py b/src/blrec/flv/parameters_checker.py index 7b1ea4b..f40a6fe 100644 --- a/src/blrec/flv/parameters_checker.py +++ b/src/blrec/flv/parameters_checker.py @@ -41,14 +41,14 @@ class ParametersChecker: if is_audio_sequence_header(tag): if self._last_audio_header_tag is not None: if not tag.is_the_same_as(self._last_audio_header_tag): - logger.warning('Audio parameters changed') + logger.debug(f'Audio parameters changed: {tag}') self._last_audio_header_tag = tag raise AudioParametersChanged() self._last_audio_header_tag = tag elif is_video_sequence_header(tag): if self._last_video_header_tag is not None: if not tag.is_the_same_as(self._last_video_header_tag): - logger.warning('Video parameters changed') + logger.debug(f'Video parameters changed: {tag}') self._last_video_header_tag = tag raise VideoParametersChanged() self._last_video_header_tag = tag diff --git a/src/blrec/flv/stream_processor.py b/src/blrec/flv/stream_processor.py index f865b2c..4c47ba0 100644 --- a/src/blrec/flv/stream_processor.py +++ b/src/blrec/flv/stream_processor.py @@ -6,7 +6,7 @@ import json import logging from typing import ( Any, BinaryIO, Dict, List, Final, Iterable, Iterator, Optional, Tuple, - Protocol, TypedDict, Union, cast + Protocol, TypedDict, Union, cast, TYPE_CHECKING ) import attr @@ -31,11 +31,13 @@ from .exceptions import ( CutStream, ) from .common import ( - is_audio_tag, is_metadata_tag, is_video_tag, parse_metadata, - is_audio_data_tag, is_video_data_tag, is_sequence_header, - enrich_metadata, update_metadata, is_data_tag, read_tags_in_duration, + is_audio_tag, is_video_tag, is_metadata_tag, parse_metadata, + is_audio_data_tag, is_video_data_tag, enrich_metadata, update_metadata, + is_data_tag, read_tags_in_duration, ) from ..path import extra_metadata_path +if TYPE_CHECKING: + from ..core.stream_analyzer import StreamProfile __all__ = 'StreamProcessor', 'BaseOutputFileManager', 'JoinPoint' @@ -83,6 +85,7 @@ class StreamProcessor: self._stream_count: int = 0 self._size_updates = Subject() self._time_updates = Subject() + self._stream_profile_updates = Subject() self._delta: int = 0 self._has_audio: bool = False @@ -123,6 +126,8 @@ class StreamProcessor: return None try: return self._data_analyser.make_metadata() + except AssertionError: + return None except Exception as e: logger.debug(f'Failed to make metadata data, due to: {repr(e)}') return None @@ -135,6 +140,10 @@ class StreamProcessor: def time_updates(self) -> Observable: return self._time_updates + @property + def stream_profile_updates(self) -> Observable: + return self._stream_profile_updates + @property def cancelled(self) -> bool: return self._cancelled @@ -146,6 +155,9 @@ class StreamProcessor: def cancel(self) -> None: self._cancelled = True + def set_metadata(self, metadata: Dict[str, Any]) -> None: + self._metadata = metadata.copy() + def process_stream(self, stream: RandomIO) -> None: assert not self._cancelled and not self._finalized, \ 'should not be called after the processing cancelled or finalized' @@ -241,6 +253,7 @@ class StreamProcessor: self._write_header(self._ensure_header_correct(flv_header)) self._transfer_meta_tags() self._transfer_first_data_tag(first_data_tag) + self._update_stream_profile(flv_header, first_data_tag) except Exception: self._last_tags = [] self._resetting_file = True @@ -346,6 +359,33 @@ class StreamProcessor: logger.debug('Meta tags have been transfered') + def _update_stream_profile( + self, flv_header: FlvHeader, first_data_tag: FlvTag + ) -> None: + from ..core.stream_analyzer import ffprobe + + if self._parameters_checker.last_metadata_tag is None: + return + if self._parameters_checker.last_video_header_tag is None: + return + + bytes_io = io.BytesIO() + writer = FlvWriter(bytes_io) + writer.write_header(flv_header) + writer.write_tag(self._parameters_checker.last_metadata_tag) + writer.write_tag(self._parameters_checker.last_video_header_tag) + if self._parameters_checker.last_audio_header_tag is not None: + writer.write_tag(self._parameters_checker.last_audio_header_tag) + writer.write_tag(first_data_tag) + + def on_next(profile: StreamProfile) -> None: + self._stream_profile_updates.on_next(profile) + + def on_error(e: Exception) -> None: + logger.warning(f'Failed to analyse stream: {repr(e)}') + + ffprobe(bytes_io.getvalue()).subscribe(on_next, on_error) + def _transfer_first_data_tag(self, tag: FlvTag) -> None: logger.debug(f'Transfer the first data tag: {tag}') self._delta = -tag.timestamp @@ -385,6 +425,18 @@ class StreamProcessor: except EOFError: logger.debug('The input stream exhausted') break + except AudioParametersChanged: + if self._analyse_data: + logger.warning('Audio parameters changed at {}'.format( + format_timestamp(self._data_analyser.last_timestamp), + )) + yield tag + except VideoParametersChanged: + if self._analyse_data: + logger.warning('Video parameters changed at {}'.format( + format_timestamp(self._data_analyser.last_timestamp), + )) + raise except Exception as e: logger.debug(f'Failed to read data, due to: {repr(e)}') raise @@ -396,7 +448,7 @@ class StreamProcessor: try: count: int = 0 - for tag in filter(lambda t: not is_sequence_header(t), tags): + for tag in tags: self._ensure_ts_correct(tag) self._write_tag(self._correct_ts(tag, self._delta)) count += 1 @@ -741,13 +793,13 @@ class FlvReaderWithTimestampFix(RobustFlvReader): tag = super().read_tag(no_body=no_body) if self._last_tag is None: - if is_data_tag(tag): + if is_video_tag(tag) or is_audio_tag(tag): self._update_last_tags(tag) elif is_metadata_tag(tag): self._update_parameters(tag) return tag - if not is_data_tag(tag): + if not is_video_tag(tag) and not is_audio_tag(tag): return tag if self._is_ts_rebounded(tag): @@ -790,11 +842,11 @@ class FlvReaderWithTimestampFix(RobustFlvReader): if is_video_tag(tag): if self._last_video_tag is None: return False - return tag.timestamp < self._last_video_tag.timestamp + return tag.timestamp <= self._last_video_tag.timestamp elif is_audio_tag(tag): if self._last_audio_tag is None: return False - return tag.timestamp < self._last_audio_tag.timestamp + return tag.timestamp <= self._last_audio_tag.timestamp else: return False diff --git a/src/blrec/logging/room_id.py b/src/blrec/logging/room_id.py index e41b31c..96c7534 100644 --- a/src/blrec/logging/room_id.py +++ b/src/blrec/logging/room_id.py @@ -36,8 +36,11 @@ def aio_task_with_room_id( curr_task = asyncio.current_task() assert curr_task is not None + old_name = curr_task.get_name() curr_task.set_name(f'{func.__qualname__}::{room_id}') - - return await func(obj, *arg, **kwargs) + try: + return await func(obj, *arg, **kwargs) + finally: + curr_task.set_name(old_name) return wrapper diff --git a/src/blrec/notification/providers.py b/src/blrec/notification/providers.py index 6c2c744..2edca0f 100644 --- a/src/blrec/notification/providers.py +++ b/src/blrec/notification/providers.py @@ -1,3 +1,4 @@ +import ssl import logging import asyncio import smtplib @@ -62,10 +63,18 @@ class EmailService(MessagingProvider): msg['To'] = self.dst_addr msg.set_content(content, subtype=msg_type, charset='utf-8') - with smtplib.SMTP_SSL(self.smtp_host, self.smtp_port) as smtp: - # smtp.set_debuglevel(1) - smtp.login(self.src_addr, self.auth_code) - smtp.send_message(msg, self.src_addr, self.dst_addr) + try: + with smtplib.SMTP_SSL(self.smtp_host, self.smtp_port) as smtp: + # smtp.set_debuglevel(1) + smtp.login(self.src_addr, self.auth_code) + smtp.send_message(msg, self.src_addr, self.dst_addr) + except ssl.SSLError: + with smtplib.SMTP(self.smtp_host, self.smtp_port) as smtp: + # smtp.set_debuglevel(1) + context = ssl.create_default_context() + smtp.starttls(context=context) + smtp.login(self.src_addr, self.auth_code) + smtp.send_message(msg, self.src_addr, self.dst_addr) def _check_parameters(self) -> None: if not self.src_addr: @@ -105,7 +114,7 @@ class PushplusResponse(TypedDict): class Pushplus(MessagingProvider): - url = 'http://pushplus.hxtrip.com/send' + url = 'http://www.pushplus.plus/send' def __init__(self, token: str = '', topic: str = '') -> None: super().__init__() diff --git a/src/blrec/postprocess/models.py b/src/blrec/postprocess/models.py index 30071f6..e3126da 100644 --- a/src/blrec/postprocess/models.py +++ b/src/blrec/postprocess/models.py @@ -13,6 +13,7 @@ class PostprocessorStatus(Enum): class DeleteStrategy(Enum): AUTO = 'auto' + SAFE = 'safe' NEVER = 'never' def __str__(self) -> str: diff --git a/src/blrec/postprocess/postprocessor.py b/src/blrec/postprocess/postprocessor.py index 07043c3..710dd1a 100644 --- a/src/blrec/postprocess/postprocessor.py +++ b/src/blrec/postprocess/postprocessor.py @@ -17,7 +17,7 @@ from ..event.event_emitter import EventListener, EventEmitter from ..bili.live import Live from ..core import Recorder, RecorderEventListener from ..exception import submit_exception -from ..utils.mixins import AsyncStoppableMixin, AsyncCooperationMix +from ..utils.mixins import AsyncStoppableMixin, AsyncCooperationMixin from ..path import extra_metadata_path from ..flv.metadata_injector import inject_metadata, InjectProgress from ..flv.helpers import is_valid_flv_file @@ -46,7 +46,7 @@ class Postprocessor( EventEmitter[PostprocessorEventListener], RecorderEventListener, AsyncStoppableMixin, - AsyncCooperationMix, + AsyncCooperationMixin, ): def __init__( self, @@ -162,8 +162,11 @@ class Postprocessor( self._queue.task_done() async def _inject_extra_metadata(self, path: str) -> str: - metadata = await get_extra_metadata(path) - await self._inject_metadata(path, metadata, self._scheduler) + try: + metadata = await get_extra_metadata(path) + await self._inject_metadata(path, metadata, self._scheduler) + except Exception as e: + logger.error(f"Failed to inject metadata for '{path}': {repr(e)}") return path async def _remux_flv_to_mp4(self, in_path: str) -> str: @@ -260,6 +263,9 @@ class Postprocessor( if self.delete_source == DeleteStrategy.AUTO: if not remux_result.is_failed(): return True + elif self.delete_source == DeleteStrategy.SAFE: + if not remux_result.is_failed() and not remux_result.is_warned(): + return True elif self.delete_source == DeleteStrategy.NEVER: return False diff --git a/src/blrec/setting/models.py b/src/blrec/setting/models.py index e2fa499..b9c7a20 100644 --- a/src/blrec/setting/models.py +++ b/src/blrec/setting/models.py @@ -18,7 +18,7 @@ from pydantic import BaseModel as PydanticBaseModel from pydantic import Field, BaseSettings, validator, PrivateAttr from pydantic.networks import HttpUrl, EmailStr -from ..bili.typing import QualityNumber +from ..bili.typing import StreamFormat, QualityNumber from ..postprocess import DeleteStrategy from ..logging.typing import LOG_LEVEL from ..utils.string import camel_case @@ -138,6 +138,7 @@ class DanmakuSettings(DanmakuOptions): class RecorderOptions(BaseModel): + stream_format: Optional[StreamFormat] quality_number: Optional[QualityNumber] read_timeout: Optional[int] # seconds disconnection_timeout: Optional[int] # seconds @@ -164,6 +165,7 @@ class RecorderOptions(BaseModel): class RecorderSettings(RecorderOptions): + stream_format: StreamFormat = 'flv' quality_number: QualityNumber = 20000 # 4K, the highest quality. read_timeout: int = 3 disconnection_timeout: int = 600 @@ -240,7 +242,7 @@ class OutputOptions(BaseModel): def out_dir_factory() -> str: - path = os.path.expanduser(DEFAULT_OUT_DIR) + path = os.path.normpath(os.path.expanduser(DEFAULT_OUT_DIR)) os.makedirs(path, exist_ok=True) return path @@ -285,7 +287,7 @@ class TaskSettings(TaskOptions): def log_dir_factory() -> str: - path = os.path.expanduser(DEFAULT_LOG_DIR) + path = os.path.normpath(os.path.expanduser(DEFAULT_LOG_DIR)) os.makedirs(path, exist_ok=True) return path @@ -444,7 +446,7 @@ class Settings(BaseModel): @validator('tasks') def _validate_tasks(cls, tasks: List[TaskSettings]) -> List[TaskSettings]: - if len(tasks) >= cls._MAX_TASKS: + if len(tasks) > cls._MAX_TASKS: raise ValueError(f'Out of max tasks limits: {cls._MAX_TASKS}') return tasks diff --git a/src/blrec/setting/setting_manager.py b/src/blrec/setting/setting_manager.py index fa279f8..be849bd 100644 --- a/src/blrec/setting/setting_manager.py +++ b/src/blrec/setting/setting_manager.py @@ -164,6 +164,28 @@ class SettingsManager: settings.enable_recorder = False await self.dump_settings() + async def mark_task_monitor_enabled(self, room_id: int) -> None: + settings = self.find_task_settings(room_id) + assert settings is not None + settings.enable_monitor = True + await self.dump_settings() + + async def mark_task_monitor_disabled(self, room_id: int) -> None: + settings = self.find_task_settings(room_id) + assert settings is not None + settings.enable_monitor = False + await self.dump_settings() + + async def mark_all_task_monitors_enabled(self) -> None: + for settings in self._settings.tasks: + settings.enable_monitor = True + await self.dump_settings() + + async def mark_all_task_monitors_disabled(self) -> None: + for settings in self._settings.tasks: + settings.enable_monitor = False + await self.dump_settings() + async def mark_task_recorder_enabled(self, room_id: int) -> None: settings = self.find_task_settings(room_id) assert settings is not None diff --git a/src/blrec/task/models.py b/src/blrec/task/models.py index 206508b..2f9f52d 100644 --- a/src/blrec/task/models.py +++ b/src/blrec/task/models.py @@ -5,7 +5,7 @@ from typing import Optional import attr from ..bili.models import RoomInfo, UserInfo -from ..bili.typing import QualityNumber +from ..bili.typing import StreamFormat, QualityNumber from ..postprocess import DeleteStrategy, PostprocessorStatus from ..postprocess.typing import Progress @@ -23,11 +23,16 @@ class TaskStatus: monitor_enabled: bool recorder_enabled: bool running_status: RunningStatus - elapsed: float # time elapsed - data_count: int # Number of Bytes in total - data_rate: float # Number of Bytes per second - danmu_count: int # Number of Danmu in total + stream_url: str + stream_host: str + dl_total: int # Number of Bytes in total + dl_rate: float # Number of Bytes per second + rec_elapsed: float # time elapsed + rec_total: int # Number of Bytes in total + rec_rate: float # Number of Bytes per second + danmu_total: int # Number of Danmu in total danmu_rate: float # Number of Danmu per minutes + real_stream_format: StreamFormat real_quality_number: QualityNumber recording_path: Optional[str] = None postprocessor_status: PostprocessorStatus = PostprocessorStatus.WAITING @@ -53,6 +58,7 @@ class TaskParam: record_super_chat: bool save_raw_danmaku: bool # RecorderSettings + stream_format: StreamFormat quality_number: QualityNumber read_timeout: int disconnection_timeout: Optional[int] diff --git a/src/blrec/task/task.py b/src/blrec/task/task.py index 8f78335..2a4d0c2 100644 --- a/src/blrec/task/task.py +++ b/src/blrec/task/task.py @@ -16,8 +16,9 @@ from ..bili.live import Live from ..bili.models import RoomInfo, UserInfo from ..bili.danmaku_client import DanmakuClient from ..bili.live_monitor import LiveMonitor -from ..bili.typing import QualityNumber +from ..bili.typing import StreamFormat, QualityNumber from ..core import Recorder +from ..core.stream_analyzer import StreamProfile from ..postprocess import Postprocessor, PostprocessorStatus, DeleteStrategy from ..postprocess.remuxer import RemuxProgress from ..flv.metadata_injector import InjectProgress @@ -43,18 +44,6 @@ class RecordTask: path_template: str = '', cookie: str = '', user_agent: str = '', - danmu_uname: bool = False, - record_gift_send: bool = False, - record_free_gifts: bool = False, - record_guard_buy: bool = False, - record_super_chat: bool = False, - save_cover: bool = False, - save_raw_danmaku: bool = False, - buffer_size: Optional[int] = None, - read_timeout: Optional[int] = None, - disconnection_timeout: Optional[int] = None, - filesize_limit: int = 0, - duration_limit: int = 0, remux_to_mp4: bool = False, inject_extra_metadata: bool = True, delete_source: DeleteStrategy = DeleteStrategy.AUTO, @@ -68,18 +57,6 @@ class RecordTask: self._path_template = path_template self._cookie = cookie self._user_agent = user_agent - self._danmu_uname = danmu_uname - self._record_gift_send = record_gift_send - self._record_free_gifts = record_free_gifts - self._record_guard_buy = record_guard_buy - self._record_super_chat = record_super_chat - self._save_cover = save_cover - self._save_raw_danmaku = save_raw_danmaku - self._buffer_size = buffer_size - self._read_timeout = read_timeout - self._disconnection_timeout = disconnection_timeout - self._filesize_limit = filesize_limit - self._duration_limit = duration_limit self._remux_to_mp4 = remux_to_mp4 self._inject_extra_metadata = inject_extra_metadata self._delete_source = delete_source @@ -127,11 +104,16 @@ class RecordTask: monitor_enabled=self.monitor_enabled, recorder_enabled=self.recorder_enabled, running_status=self.running_status, - elapsed=self._recorder.elapsed, - data_count=self._recorder.data_count, - data_rate=self._recorder.data_rate, - danmu_count=self._recorder.danmu_count, + stream_url=self._recorder.stream_url, + stream_host=self._recorder.stream_host, + dl_total=self._recorder.dl_total, + dl_rate=self._recorder.dl_rate, + rec_elapsed=self._recorder.rec_elapsed, + rec_total=self._recorder.rec_total, + rec_rate=self._recorder.rec_rate, + danmu_total=self._recorder.danmu_total, danmu_rate=self._recorder.danmu_rate, + real_stream_format=self._recorder.real_stream_format, real_quality_number=self._recorder.real_quality_number, recording_path=self.recording_path, postprocessor_status=self._postprocessor.status, @@ -283,6 +265,14 @@ class RecordTask: def save_raw_danmaku(self, value: bool) -> None: self._recorder.save_raw_danmaku = value + @property + def stream_format(self) -> StreamFormat: + return self._recorder.stream_format + + @stream_format.setter + def stream_format(self, value: StreamFormat) -> None: + self._recorder.stream_format = value + @property def quality_number(self) -> QualityNumber: return self._recorder.quality_number @@ -291,6 +281,10 @@ class RecordTask: def quality_number(self, value: QualityNumber) -> None: self._recorder.quality_number = value + @property + def real_stream_format(self) -> StreamFormat: + return self._recorder.real_stream_format + @property def real_quality_number(self) -> QualityNumber: return self._recorder.real_quality_number @@ -359,6 +353,10 @@ class RecordTask: def metadata(self) -> Optional[MetaData]: return self._recorder.metadata + @property + def stream_profile(self) -> StreamProfile: + return self._recorder.stream_profile + @property def remux_to_mp4(self) -> bool: return self._postprocessor.remux_to_mp4 @@ -452,7 +450,8 @@ class RecordTask: await self._live.deinit() await self._live.init() self._danmaku_client.session = self._live.session - self._danmaku_client.api = self._live.api + self._danmaku_client.appapi = self._live.appapi + self._danmaku_client.webapi = self._live.webapi if self._monitor_enabled: await self._danmaku_client.start() @@ -468,7 +467,10 @@ class RecordTask: def _setup_danmaku_client(self) -> None: self._danmaku_client = DanmakuClient( - self._live.session, self._live.api, self._live.room_id + self._live.session, + self._live.appapi, + self._live.webapi, + self._live.room_id ) def _setup_live_monitor(self) -> None: @@ -484,18 +486,6 @@ class RecordTask: self._live_monitor, self._out_dir, self._path_template, - buffer_size=self._buffer_size, - read_timeout=self._read_timeout, - disconnection_timeout=self._disconnection_timeout, - danmu_uname=self._danmu_uname, - record_gift_send=self._record_gift_send, - record_free_gifts=self._record_free_gifts, - record_guard_buy=self._record_guard_buy, - record_super_chat=self._record_super_chat, - save_cover=self._save_cover, - save_raw_danmaku=self._save_raw_danmaku, - filesize_limit=self._filesize_limit, - duration_limit=self._duration_limit, ) def _setup_recorder_event_submitter(self) -> None: diff --git a/src/blrec/task/task_manager.py b/src/blrec/task/task_manager.py index bac53a7..76c4130 100644 --- a/src/blrec/task/task_manager.py +++ b/src/blrec/task/task_manager.py @@ -1,12 +1,22 @@ from __future__ import annotations import asyncio +import logging from typing import Dict, Iterator, Optional, TYPE_CHECKING +import aiohttp +from tenacity import ( + retry, + wait_exponential, + stop_after_delay, + retry_if_exception_type, +) from .task import RecordTask from .models import TaskData, TaskParam, VideoFileDetail, DanmakuFileDetail from ..flv.data_analyser import MetaData -from ..exception import NotFoundError +from ..core.stream_analyzer import StreamProfile +from ..exception import submit_exception, NotFoundError +from ..bili.exceptions import ApiRequestError if TYPE_CHECKING: from ..setting import SettingsManager from ..setting import ( @@ -22,76 +32,109 @@ from ..setting import ( __all__ = 'RecordTaskManager', +logger = logging.getLogger(__name__) + + class RecordTaskManager: def __init__(self, settings_manager: SettingsManager) -> None: self._settings_manager = settings_manager self._tasks: Dict[int, RecordTask] = {} - import threading - self._lock = threading.Lock() async def load_all_tasks(self) -> None: + logger.info('Loading all tasks...') + settings_list = self._settings_manager.get_settings({'tasks'}).tasks assert settings_list is not None for settings in settings_list: - await self.add_task(settings) + try: + await self.add_task(settings) + except Exception as e: + submit_exception(e) + + logger.info('Load all tasks complete') async def destroy_all_tasks(self) -> None: + logger.info('Destroying all tasks...') if not self._tasks: return - await asyncio.wait([t.destroy() for t in self._tasks.values()]) + await asyncio.wait([ + t.destroy() for t in self._tasks.values() if t.ready + ]) self._tasks.clear() + logger.info('Successfully destroyed all task') def has_task(self, room_id: int) -> bool: return room_id in self._tasks + @retry( + reraise=True, + retry=retry_if_exception_type(( + asyncio.TimeoutError, aiohttp.ClientError, ApiRequestError, + )), + wait=wait_exponential(max=10), + stop=stop_after_delay(60), + ) async def add_task(self, settings: TaskSettings) -> None: + logger.info(f'Adding task {settings.room_id}...') + task = RecordTask(settings.room_id) self._tasks[settings.room_id] = task - await self._settings_manager.apply_task_header_settings( - settings.room_id, settings.header, update_session=False - ) - await task.setup() + try: + await self._settings_manager.apply_task_header_settings( + settings.room_id, settings.header, update_session=False + ) + await task.setup() - self._settings_manager.apply_task_output_settings( - settings.room_id, settings.output - ) - self._settings_manager.apply_task_danmaku_settings( - settings.room_id, settings.danmaku - ) - self._settings_manager.apply_task_recorder_settings( - settings.room_id, settings.recorder - ) - self._settings_manager.apply_task_postprocessing_settings( - settings.room_id, settings.postprocessing - ) + self._settings_manager.apply_task_output_settings( + settings.room_id, settings.output + ) + self._settings_manager.apply_task_danmaku_settings( + settings.room_id, settings.danmaku + ) + self._settings_manager.apply_task_recorder_settings( + settings.room_id, settings.recorder + ) + self._settings_manager.apply_task_postprocessing_settings( + settings.room_id, settings.postprocessing + ) - if settings.enable_monitor: - await task.enable_monitor() - if settings.enable_recorder: - await task.enable_recorder() + if settings.enable_monitor: + await task.enable_monitor() + if settings.enable_recorder: + await task.enable_recorder() + except Exception as e: + logger.error( + f'Failed to add task {settings.room_id} due to: {repr(e)}' + ) + del self._tasks[settings.room_id] + raise + + logger.info(f'Successfully added task {settings.room_id}') async def remove_task(self, room_id: int) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.disable_recorder(force=True) await task.disable_monitor() await task.destroy() del self._tasks[room_id] async def remove_all_tasks(self) -> None: - coros = [self.remove_task(i) for i in self._tasks] + coros = [ + self.remove_task(i) for i, t in self._tasks.items() if t.ready + ] if coros: await asyncio.wait(coros) async def start_task(self, room_id: int) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.update_info() await task.enable_monitor() await task.enable_recorder() async def stop_task(self, room_id: int, force: bool = False) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.disable_recorder(force) await task.disable_monitor() @@ -105,46 +148,47 @@ class RecordTaskManager: await self.disable_all_task_monitors() async def enable_task_monitor(self, room_id: int) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.enable_monitor() async def disable_task_monitor(self, room_id: int) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.disable_monitor() async def enable_all_task_monitors(self) -> None: - coros = [t.enable_monitor() for t in self._tasks.values()] + coros = [t.enable_monitor() for t in self._tasks.values() if t.ready] if coros: await asyncio.wait(coros) async def disable_all_task_monitors(self) -> None: - coros = [t.disable_monitor() for t in self._tasks.values()] + coros = [t.disable_monitor() for t in self._tasks.values() if t.ready] if coros: await asyncio.wait(coros) async def enable_task_recorder(self, room_id: int) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.enable_recorder() async def disable_task_recorder( self, room_id: int, force: bool = False ) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.disable_recorder(force) async def enable_all_task_recorders(self) -> None: - coros = [t.enable_recorder() for t in self._tasks.values()] + coros = [t.enable_recorder() for t in self._tasks.values() if t.ready] if coros: await asyncio.wait(coros) async def disable_all_task_recorders(self, force: bool = False) -> None: - coros = [t.disable_recorder(force) for t in self._tasks.values()] + coros = [ + t.disable_recorder(force) for t in self._tasks.values() if t.ready + ] if coros: await asyncio.wait(coros) def get_task_data(self, room_id: int) -> TaskData: - task = self._get_task(room_id) - assert task.ready, "the task isn't ready yet, couldn't get task data!" + task = self._get_task(room_id, check_ready=True) return self._make_task_data(task) def get_all_task_data(self) -> Iterator[TaskData]: @@ -152,39 +196,43 @@ class RecordTaskManager: yield self._make_task_data(task) def get_task_param(self, room_id: int) -> TaskParam: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) return self._make_task_param(task) def get_task_metadata(self, room_id: int) -> Optional[MetaData]: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) return task.metadata + def get_task_stream_profile(self, room_id: int) -> StreamProfile: + task = self._get_task(room_id, check_ready=True) + return task.stream_profile + def get_task_video_file_details( self, room_id: int ) -> Iterator[VideoFileDetail]: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) yield from task.video_file_details def get_task_danmaku_file_details( self, room_id: int ) -> Iterator[DanmakuFileDetail]: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) yield from task.danmaku_file_details def can_cut_stream(self, room_id: int) -> bool: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) return task.can_cut_stream() def cut_stream(self, room_id: int) -> bool: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) return task.cut_stream() async def update_task_info(self, room_id: int) -> None: - task = self._get_task(room_id) + task = self._get_task(room_id, check_ready=True) await task.update_info() async def update_all_task_infos(self) -> None: - coros = [t.update_info() for t in self._tasks.values()] + coros = [t.update_info() for t in self._tasks.values() if t.ready] if coros: await asyncio.wait(coros) @@ -235,6 +283,7 @@ class RecordTaskManager: self, room_id: int, settings: RecorderSettings ) -> None: task = self._get_task(room_id) + task.stream_format = settings.stream_format task.quality_number = settings.quality_number task.read_timeout = settings.read_timeout task.disconnection_timeout = settings.disconnection_timeout @@ -249,11 +298,15 @@ class RecordTaskManager: task.inject_extra_metadata = settings.inject_extra_metadata task.delete_source = settings.delete_source - def _get_task(self, room_id: int) -> RecordTask: + def _get_task(self, room_id: int, check_ready: bool = False) -> RecordTask: try: - return self._tasks[room_id] + task = self._tasks[room_id] except KeyError: raise NotFoundError(f'no task for the room {room_id}') + else: + if check_ready and not task.ready: + raise NotFoundError(f'the task {room_id} is not ready yet') + return task def _make_task_param(self, task: RecordTask) -> TaskParam: return TaskParam( @@ -270,6 +323,7 @@ class RecordTaskManager: record_super_chat=task.record_super_chat, save_cover=task.save_cover, save_raw_danmaku=task.save_raw_danmaku, + stream_format=task.stream_format, quality_number=task.quality_number, read_timeout=task.read_timeout, disconnection_timeout=task.disconnection_timeout, diff --git a/src/blrec/utils/mixins.py b/src/blrec/utils/mixins.py index ce6aa66..2a025ba 100644 --- a/src/blrec/utils/mixins.py +++ b/src/blrec/utils/mixins.py @@ -1,3 +1,4 @@ +import os from abc import ABC, abstractmethod import asyncio from typing import Awaitable, TypeVar, final @@ -102,18 +103,38 @@ class AsyncStoppableMixin(ABC): _T = TypeVar('_T') -class AsyncCooperationMix(ABC): +class AsyncCooperationMixin(ABC): def __init__(self) -> None: super().__init__() self._loop = asyncio.get_running_loop() def _handle_exception(self, exc: BaseException) -> None: - from ..exception import submit_exception # XXX circular import + from ..exception import submit_exception async def wrapper() -> None: + # call submit_exception in a coroutine + # workaround for `RuntimeError: no running event loop` submit_exception(exc) self._run_coroutine(wrapper()) def _run_coroutine(self, coro: Awaitable[_T]) -> _T: future = asyncio.run_coroutine_threadsafe(coro, self._loop) return future.result() + + +class SupportDebugMixin(ABC): + def __init__(self) -> None: + super().__init__() + + def _init_for_debug(self, room_id: int) -> None: + if ( + (value := os.environ.get('DEBUG')) and + (value == '*' or room_id in value.split(',')) + ): + self._debug = True + self._debug_dir = os.path.expanduser(f'~/.blrec/debug/{room_id}') + self._debug_dir = os.path.normpath(self._debug_dir) + os.makedirs(self._debug_dir, exist_ok=True) + else: + self._debug = False + self._debug_dir = '' diff --git a/src/blrec/web/routers/tasks.py b/src/blrec/web/routers/tasks.py index 50b63ef..f6fac03 100644 --- a/src/blrec/web/routers/tasks.py +++ b/src/blrec/web/routers/tasks.py @@ -1,6 +1,7 @@ from typing import Any, Dict, List import attr +from pydantic import PositiveInt, conint from fastapi import ( APIRouter, status, @@ -31,17 +32,30 @@ router = APIRouter( @router.get('/data') -async def get_all_task_data( +async def get_task_data( + page: PositiveInt = 1, + size: conint(ge=10, lt=100) = 100, # type: ignore filter: TaskDataFilter = Depends(task_data_filter) ) -> List[Dict[str, Any]]: - return [attr.asdict(d) for d in filter(app.get_all_task_data())] + start = (page - 1) * size + stop = page * size + + task_data = [] + for index, data in enumerate(filter(app.get_all_task_data())): + if index < start: + continue + if index >= stop: + break + task_data.append(attr.asdict(data)) + + return task_data @router.get( '/{room_id}/data', responses={**not_found_responses}, ) -async def get_task_data(room_id: int) -> Dict[str, Any]: +async def get_one_task_data(room_id: int) -> Dict[str, Any]: return attr.asdict(app.get_task_data(room_id)) @@ -64,6 +78,14 @@ async def get_task_metadata(room_id: int) -> Dict[str, Any]: return attr.asdict(metadata) +@router.get( + '/{room_id}/profile', + responses={**not_found_responses}, +) +async def get_task_stream_profile(room_id: int) -> Dict[str, Any]: + return app.get_task_stream_profile(room_id) + + @router.get( '/{room_id}/videos', responses={**not_found_responses}, @@ -276,7 +298,7 @@ async def add_task(room_id: int) -> ResponseMessage: """ real_room_id = await app.add_task(room_id) return ResponseMessage( - message='Added Task Successfully', + message='Successfully Added Task', data={'room_id': real_room_id}, ) diff --git a/webapp/package-lock.json b/webapp/package-lock.json index c3ada91..b1afe9f 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -18,9 +18,11 @@ "@angular/platform-browser-dynamic": "^13.1.3", "@angular/router": "^13.1.3", "@angular/service-worker": "~13.1.3", + "echarts": "^5.3.1", "filesize": "^6.4.0", "lodash-es": "^4.17.21", "ng-zorro-antd": "^13.0.1", + "ngx-echarts": "^8.0.1", "ngx-logger": "^4.2.2", "rxjs": "~6.6.0", "tslib": "^2.3.0", @@ -5410,6 +5412,20 @@ "integrity": "sha1-Or5DrvODX4rgd9E23c4PJ2sEAOY=", "dev": true }, + "node_modules/echarts": { + "version": "5.3.1", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.3.1.tgz", + "integrity": "sha512-nWdlbgX3OVY0hpqncSvp0gDt1FRSKWn7lsWEH+PHmfCuvE0QmSw17pczQvm8AvawnLEkmf1Cts7YwQJZNC0AEQ==", + "dependencies": { + "tslib": "2.3.0", + "zrender": "5.3.1" + } + }, + "node_modules/echarts/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmmirror.com/ee-first/download/ee-first-1.1.1.tgz", @@ -8789,6 +8805,17 @@ "@angular/router": "^13.0.1" } }, + "node_modules/ngx-echarts": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/ngx-echarts/-/ngx-echarts-8.0.1.tgz", + "integrity": "sha512-CP+WnCcnMCNpCL9BVmDIZmhGSVPnkJhhFbQEKt0nrwV0L6d4QTAGZ+e4y6G1zTTFKkIMPHpaO0nhtDRgSXAW/w==", + "dependencies": { + "tslib": "^2.3.0" + }, + "peerDependencies": { + "echarts": ">=5.0.0" + } + }, "node_modules/ngx-logger": { "version": "4.3.3", "resolved": "https://registry.npmmirror.com/ngx-logger/download/ngx-logger-4.3.3.tgz", @@ -12601,6 +12628,19 @@ "dependencies": { "tslib": "^2.0.0" } + }, + "node_modules/zrender": { + "version": "5.3.1", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.3.1.tgz", + "integrity": "sha512-7olqIjy0gWfznKr6vgfnGBk7y4UtdMvdwFmK92vVQsQeDPyzkHW1OlrLEKg6GHz1W5ePf0FeN1q2vkl/HFqhXw==", + "dependencies": { + "tslib": "2.3.0" + } + }, + "node_modules/zrender/node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" } }, "dependencies": { @@ -16612,6 +16652,22 @@ "integrity": "sha1-Or5DrvODX4rgd9E23c4PJ2sEAOY=", "dev": true }, + "echarts": { + "version": "5.3.1", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.3.1.tgz", + "integrity": "sha512-nWdlbgX3OVY0hpqncSvp0gDt1FRSKWn7lsWEH+PHmfCuvE0QmSw17pczQvm8AvawnLEkmf1Cts7YwQJZNC0AEQ==", + "requires": { + "tslib": "2.3.0", + "zrender": "5.3.1" + }, + "dependencies": { + "tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + } + } + }, "ee-first": { "version": "1.1.1", "resolved": "https://registry.npmmirror.com/ee-first/download/ee-first-1.1.1.tgz", @@ -19223,6 +19279,14 @@ "tslib": "^2.3.0" } }, + "ngx-echarts": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/ngx-echarts/-/ngx-echarts-8.0.1.tgz", + "integrity": "sha512-CP+WnCcnMCNpCL9BVmDIZmhGSVPnkJhhFbQEKt0nrwV0L6d4QTAGZ+e4y6G1zTTFKkIMPHpaO0nhtDRgSXAW/w==", + "requires": { + "tslib": "^2.3.0" + } + }, "ngx-logger": { "version": "4.3.3", "resolved": "https://registry.npmmirror.com/ngx-logger/download/ngx-logger-4.3.3.tgz", @@ -22140,6 +22204,21 @@ "requires": { "tslib": "^2.0.0" } + }, + "zrender": { + "version": "5.3.1", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.3.1.tgz", + "integrity": "sha512-7olqIjy0gWfznKr6vgfnGBk7y4UtdMvdwFmK92vVQsQeDPyzkHW1OlrLEKg6GHz1W5ePf0FeN1q2vkl/HFqhXw==", + "requires": { + "tslib": "2.3.0" + }, + "dependencies": { + "tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==" + } + } } } } diff --git a/webapp/package.json b/webapp/package.json index 66b3b46..a562bb9 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -20,9 +20,11 @@ "@angular/platform-browser-dynamic": "^13.1.3", "@angular/router": "^13.1.3", "@angular/service-worker": "~13.1.3", + "echarts": "^5.3.1", "filesize": "^6.4.0", "lodash-es": "^4.17.21", "ng-zorro-antd": "^13.0.1", + "ngx-echarts": "^8.0.1", "ngx-logger": "^4.2.2", "rxjs": "~6.6.0", "tslib": "^2.3.0", @@ -52,4 +54,4 @@ "source-map-explorer": "^2.5.2", "typescript": "~4.5.4" } -} \ No newline at end of file +} diff --git a/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html b/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html index 3c7ac75..3a0dc5e 100644 --- a/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html +++ b/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html @@ -43,8 +43,9 @@ >

- 自动: 转换成功才删除源文件
- 从不: 转换后总是保留源文件
+ 自动: 没出错就删除源文件
+ 谨慎: 没出错且没警告才删除源文件
+ 从不: 总是保留源文件

+ + 直播流格式 + +

+ 选择要录制的直播流格式
+
+ FLV 网络不稳定容易中断丢失数据
+ HLS (ts) 基本不受本地网络影响
+ HLS (fmp4) 只有少数直播间支持
+
+ P.S.
+ 非 FLV 格式需要 ffmpeg
+ HLS (fmp4) 不支持会自动切换到 HLS (ts)
+

+
+ + + + +
; readonly qualityOptions = cloneDeep(QUALITY_OPTIONS) as Mutable< typeof QUALITY_OPTIONS >; @@ -58,6 +62,7 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { private settingsSyncService: SettingsSyncService ) { this.settingsForm = formBuilder.group({ + streamFormat: [''], qualityNumber: [''], readTimeout: [''], disconnectionTimeout: [''], @@ -66,6 +71,10 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { }); } + get streamFormatControl() { + return this.settingsForm.get('streamFormat') as FormControl; + } + get qualityNumberControl() { return this.settingsForm.get('qualityNumber') as FormControl; } diff --git a/webapp/src/app/settings/shared/constants/form.ts b/webapp/src/app/settings/shared/constants/form.ts index 0294625..be2d039 100644 --- a/webapp/src/app/settings/shared/constants/form.ts +++ b/webapp/src/app/settings/shared/constants/form.ts @@ -48,9 +48,16 @@ export const DURATION_LIMIT_OPTIONS = [ export const DELETE_STRATEGIES = [ { label: '自动', value: DeleteStrategy.AUTO }, + { label: '谨慎', value: DeleteStrategy.SAFE }, { label: '从不', value: DeleteStrategy.NEVER }, ] as const; +export const STREAM_FORMAT_OPTIONS = [ + { label: 'FLV', value: 'flv' }, + { label: 'HLS (ts)', value: 'ts' }, + { label: 'HLS (fmp4)', value: 'fmp4' }, +] as const; + export const QUALITY_OPTIONS = [ { label: '4K', value: 20000 }, { label: '原画', value: 10000 }, diff --git a/webapp/src/app/settings/shared/setting.model.ts b/webapp/src/app/settings/shared/setting.model.ts index 6846e26..70aa842 100644 --- a/webapp/src/app/settings/shared/setting.model.ts +++ b/webapp/src/app/settings/shared/setting.model.ts @@ -18,6 +18,8 @@ export interface DanmakuSettings { export type DanmakuOptions = Nullable; +export type StreamFormat = 'flv' | 'ts' | 'fmp4'; + export type QualityNumber = | 20000 // 4K | 10000 // 原画 @@ -28,6 +30,7 @@ export type QualityNumber = | 80; // 流畅 export interface RecorderSettings { + streamFormat: StreamFormat; qualityNumber: QualityNumber; readTimeout: number; disconnectionTimeout: number; @@ -39,6 +42,7 @@ export type RecorderOptions = Nullable; export enum DeleteStrategy { AUTO = 'auto', + SAFE = 'safe', NEVER = 'never', } diff --git a/webapp/src/app/shared/pipes/datarate.pipe.spec.ts b/webapp/src/app/shared/pipes/datarate.pipe.spec.ts new file mode 100644 index 0000000..f21be9c --- /dev/null +++ b/webapp/src/app/shared/pipes/datarate.pipe.spec.ts @@ -0,0 +1,8 @@ +import { DataratePipe } from './datarate.pipe'; + +describe('DataratePipe', () => { + it('create an instance', () => { + const pipe = new DataratePipe(); + expect(pipe).toBeTruthy(); + }); +}); diff --git a/webapp/src/app/shared/pipes/datarate.pipe.ts b/webapp/src/app/shared/pipes/datarate.pipe.ts new file mode 100644 index 0000000..89f40ff --- /dev/null +++ b/webapp/src/app/shared/pipes/datarate.pipe.ts @@ -0,0 +1,38 @@ +import { Pipe, PipeTransform } from '@angular/core'; + +import { toBitRateString, toByteRateString } from '../utils'; + +@Pipe({ + name: 'datarate', +}) +export class DataratePipe implements PipeTransform { + transform( + rate: number | string, + options?: { + bitrate?: boolean; + precision?: number; + spacer?: string; + } + ): string { + if (typeof rate === 'string') { + rate = parseFloat(rate); + } else if (typeof rate === 'number' && !isNaN(rate)) { + // pass + } else { + return 'N/A'; + } + options = Object.assign( + { + bitrate: false, + precision: 3, + spacer: ' ', + }, + options + ); + if (options.bitrate) { + return toBitRateString(rate, options.spacer, options.precision); + } else { + return toByteRateString(rate, options.spacer, options.precision); + } + } +} diff --git a/webapp/src/app/shared/pipes/speed.pipe.spec.ts b/webapp/src/app/shared/pipes/speed.pipe.spec.ts deleted file mode 100644 index 412f46d..0000000 --- a/webapp/src/app/shared/pipes/speed.pipe.spec.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SpeedPipe } from './speed.pipe'; - -describe('SpeedPipe', () => { - it('create an instance', () => { - const pipe = new SpeedPipe(); - expect(pipe).toBeTruthy(); - }); -}); diff --git a/webapp/src/app/shared/pipes/speed.pipe.ts b/webapp/src/app/shared/pipes/speed.pipe.ts deleted file mode 100644 index 9943cdb..0000000 --- a/webapp/src/app/shared/pipes/speed.pipe.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Pipe, PipeTransform } from '@angular/core'; - -@Pipe({ - name: 'speed', -}) -export class SpeedPipe implements PipeTransform { - transform(rate: number, precision: number = 3): string { - let num: number; - let unit: string; - - if (rate <= 0) { - return '0B/s'; - } - - if (rate < 1e3) { - num = rate; - unit = 'B'; - } else if (rate < 1e6) { - num = rate / 1e3; - unit = 'kB'; - } else if (rate < 1e9) { - num = rate / 1e6; - unit = 'MB'; - } else if (rate < 1e12) { - num = rate / 1e9; - unit = 'GB'; - } else { - throw RangeError(`the rate argument ${rate} out of range`); - } - - const digits = precision - Math.floor(Math.abs(Math.log10(num))) - 1; - return num.toFixed(digits) + unit + '/s'; - } -} diff --git a/webapp/src/app/shared/shared.module.ts b/webapp/src/app/shared/shared.module.ts index 6c72c56..93742a2 100644 --- a/webapp/src/app/shared/shared.module.ts +++ b/webapp/src/app/shared/shared.module.ts @@ -6,7 +6,7 @@ import { NzPageHeaderModule } from 'ng-zorro-antd/page-header'; import { DataurlPipe } from './pipes/dataurl.pipe'; import { DurationPipe } from './pipes/duration.pipe'; -import { SpeedPipe } from './pipes/speed.pipe'; +import { DataratePipe } from './pipes/datarate.pipe'; import { FilesizePipe } from './pipes/filesize.pipe'; import { QualityPipe } from './pipes/quality.pipe'; import { ProgressPipe } from './pipes/progress.pipe'; @@ -20,7 +20,7 @@ import { FilestatusPipe } from './pipes/filestatus.pipe'; declarations: [ DataurlPipe, DurationPipe, - SpeedPipe, + DataratePipe, FilesizePipe, QualityPipe, SubPageComponent, @@ -30,15 +30,11 @@ import { FilestatusPipe } from './pipes/filestatus.pipe'; FilenamePipe, FilestatusPipe, ], - imports: [ - CommonModule, - NzSpinModule, - NzPageHeaderModule, - ], + imports: [CommonModule, NzSpinModule, NzPageHeaderModule], exports: [ DataurlPipe, DurationPipe, - SpeedPipe, + DataratePipe, FilesizePipe, QualityPipe, ProgressPipe, @@ -48,6 +44,6 @@ import { FilestatusPipe } from './pipes/filestatus.pipe'; SubPageContentDirective, PageSectionComponent, FilestatusPipe, - ] + ], }) -export class SharedModule { } +export class SharedModule {} diff --git a/webapp/src/app/shared/utils.ts b/webapp/src/app/shared/utils.ts index 1d3326d..4a36722 100644 --- a/webapp/src/app/shared/utils.ts +++ b/webapp/src/app/shared/utils.ts @@ -18,3 +18,70 @@ export function difference(object: object, base: object): object { } return diff(object, base); } + +export function toBitRateString( + bitrate: number, + spacer: string = ' ', + precision: number = 3 +): string { + let num: number; + let unit: string; + + if (bitrate <= 0) { + return '0 kbps/s'; + } + + if (bitrate < 1e6) { + num = bitrate / 1e3; + unit = 'kbps'; + } else if (bitrate < 1e9) { + num = bitrate / 1e6; + unit = 'Mbps'; + } else if (bitrate < 1e12) { + num = bitrate / 1e9; + unit = 'Gbps'; + } else if (bitrate < 1e15) { + num = bitrate / 1e12; + unit = 'Tbps'; + } else { + throw RangeError(`the rate argument ${bitrate} out of range`); + } + + const digits = precision - Math.floor(Math.abs(Math.log10(num))) - 1; + return num.toFixed(digits < 0 ? 0 : digits) + spacer + unit; +} + +export function toByteRateString( + rate: number, + spacer: string = ' ', + precision: number = 3 +): string { + let num: number; + let unit: string; + + if (rate <= 0) { + return '0B/s'; + } + + if (rate < 1e3) { + num = rate; + unit = 'B/s'; + } else if (rate < 1e6) { + num = rate / 1e3; + unit = 'KB/s'; + } else if (rate < 1e9) { + num = rate / 1e6; + unit = 'MB/s'; + } else if (rate < 1e12) { + num = rate / 1e9; + unit = 'GB/s'; + } else if (rate < 1e15) { + num = rate / 1e12; + unit = 'TB/s'; + } else { + throw RangeError(`the rate argument ${rate} out of range`); + } + + const digits = precision - Math.floor(Math.abs(Math.log10(num))) - 1; + return num.toFixed(digits < 0 ? 0 : digits) + spacer + unit; +} diff --git a/webapp/src/app/tasks/info-panel/info-panel.component.html b/webapp/src/app/tasks/info-panel/info-panel.component.html new file mode 100644 index 0000000..e4b3d7e --- /dev/null +++ b/webapp/src/app/tasks/info-panel/info-panel.component.html @@ -0,0 +1,100 @@ +
+ +
    +
  • + 视频信息 + + + {{ profile.streams[0]?.codec_name }} + + + + {{ profile.streams[0]?.width }}x{{ profile.streams[0]?.height }} + + {{ profile.streams[0]?.r_frame_rate!.split("/")[0] }} fps + + + {{ metadata.videodatarate * 1000 | datarate: { bitrate: true } }} + + +
  • +
  • + 音频信息 + + + {{ profile.streams[1]?.codec_name }} + + + {{ profile.streams[1]?.sample_rate }} HZ + + {{ profile.streams[1]?.channel_layout }} + + + + {{ metadata.audiodatarate * 1000 | datarate: { bitrate: true } }} + + +
  • +
  • + 格式画质 + + {{ data.task_status.real_stream_format }} + + + {{ data.task_status.real_quality_number | quality }} + ({{ data.task_status.real_quality_number + }}, bluray) + + +
  • +
  • + 流编码器 + {{ profile.streams[0]?.tags?.encoder }} +
  • +
  • + 流主机名 + {{ data.task_status.stream_host }} + +
  • +
  • + 下载速度 + + + {{ data.task_status.dl_rate | datarate: { bitrate: true } }} + +
  • +
  • + 录制速度 + + + {{ data.task_status.rec_rate | datarate }} + +
  • +
+
diff --git a/webapp/src/app/tasks/info-panel/info-panel.component.scss b/webapp/src/app/tasks/info-panel/info-panel.component.scss new file mode 100644 index 0000000..80521ae --- /dev/null +++ b/webapp/src/app/tasks/info-panel/info-panel.component.scss @@ -0,0 +1,85 @@ +@use "../../shared/styles/layout"; +@use "../../shared/styles/list"; +@use "../../shared/styles/text"; + +.info-panel { + position: absolute; + top: 2.55rem; + bottom: 2rem; + left: 0rem; + right: 0rem; + width: 100%; + + font-size: 1rem; + + @extend %osd-text; + @include text.elide-text-overflow; + + overflow: auto; + &::-webkit-scrollbar { + background-color: transparent; + width: 4px; + } + + &::-webkit-scrollbar-track { + background: transparent; + } + + &::-webkit-scrollbar-thumb { + background: #eee; + border-radius: 2px; + } + + &::-webkit-scrollbar-thumb:hover { + background: #fff; + } + + .close-panel { + position: absolute; + top: 0rem; + right: 0rem; + width: 2rem; + height: 2rem; + padding: 0; + color: white; + background: transparent; + border: none; + font-size: 1rem; + + @include layout.center-content; + + cursor: pointer; + } + + .info-list { + @include list.reset-list; + width: 100%; + height: 100%; + + .info-item { + .label { + display: inline-block; + margin: 0; + width: 5rem; + text-align: right; + &::after { + content: ":"; + } + } + .value { + display: inline-block; + margin: 0; + text-align: left; + span:not(:first-child) { + &::before { + content: ", "; + } + } + } + } + } +} + +app-wave-graph { + margin-right: 1rem; +} diff --git a/webapp/src/app/tasks/info-panel/info-panel.component.spec.ts b/webapp/src/app/tasks/info-panel/info-panel.component.spec.ts new file mode 100644 index 0000000..c34f1d9 --- /dev/null +++ b/webapp/src/app/tasks/info-panel/info-panel.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { InfoPanelComponent } from './info-panel.component'; + +describe('InfoPanelComponent', () => { + let component: InfoPanelComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ InfoPanelComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(InfoPanelComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/webapp/src/app/tasks/info-panel/info-panel.component.ts b/webapp/src/app/tasks/info-panel/info-panel.component.ts new file mode 100644 index 0000000..bf5c121 --- /dev/null +++ b/webapp/src/app/tasks/info-panel/info-panel.component.ts @@ -0,0 +1,95 @@ +import { + Component, + OnInit, + ChangeDetectionStrategy, + Input, + OnDestroy, + ChangeDetectorRef, + Output, + EventEmitter, +} from '@angular/core'; +import { HttpErrorResponse } from '@angular/common/http'; + +import { NzNotificationService } from 'ng-zorro-antd/notification'; +import { interval, of, Subscription, zip } from 'rxjs'; +import { catchError, concatAll, switchMap } from 'rxjs/operators'; +import { retry } from 'src/app/shared/rx-operators'; + +import { Metadata, RunningStatus, TaskData } from '../shared/task.model'; +import { TaskService } from '../shared/services/task.service'; +import { StreamProfile } from '../shared/task.model'; + +@Component({ + selector: 'app-info-panel', + templateUrl: './info-panel.component.html', + styleUrls: ['./info-panel.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class InfoPanelComponent implements OnInit, OnDestroy { + @Input() data!: TaskData; + @Input() profile!: StreamProfile; + @Input() metadata: Metadata | null = null; + @Output() close = new EventEmitter(); + + readonly RunningStatus = RunningStatus; + private dataSubscription?: Subscription; + + constructor( + private changeDetector: ChangeDetectorRef, + private notification: NzNotificationService, + private taskService: TaskService + ) {} + + ngOnInit(): void { + this.syncData(); + } + + ngOnDestroy(): void { + this.desyncData(); + } + + isBlurayStreamQuality(): boolean { + return /_bluray/.test(this.data.task_status.stream_url); + } + + closePanel(event: Event): void { + event.preventDefault(); + event.stopPropagation(); + this.close.emit(); + } + + private syncData(): void { + this.dataSubscription = of(of(0), interval(1000)) + .pipe( + concatAll(), + switchMap(() => + zip( + this.taskService.getStreamProfile(this.data.room_info.room_id), + this.taskService.getMetadata(this.data.room_info.room_id) + ) + ), + catchError((error: HttpErrorResponse) => { + this.notification.error('获取数据出错', error.message); + throw error; + }), + retry(3, 1000) + ) + .subscribe( + ([profile, metadata]) => { + this.profile = profile; + this.metadata = metadata; + this.changeDetector.markForCheck(); + }, + (error: HttpErrorResponse) => { + this.notification.error( + '获取数据出错', + '网络连接异常, 请待网络正常后刷新。', + { nzDuration: 0 } + ); + } + ); + } + private desyncData(): void { + this.dataSubscription?.unsubscribe(); + } +} diff --git a/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.scss b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.scss new file mode 100644 index 0000000..6a49b44 --- /dev/null +++ b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.scss @@ -0,0 +1,4 @@ +:host { + position: relative; + top: 2px; +} diff --git a/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.spec.ts b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.spec.ts new file mode 100644 index 0000000..7f39559 --- /dev/null +++ b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { WaveGraphComponent } from './wave-graph.component'; + +describe('WaveGraphComponent', () => { + let component: WaveGraphComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ WaveGraphComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(WaveGraphComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.svg b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.svg new file mode 100644 index 0000000..7063647 --- /dev/null +++ b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.svg @@ -0,0 +1,7 @@ + + + diff --git a/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.ts b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.ts new file mode 100644 index 0000000..690b9f8 --- /dev/null +++ b/webapp/src/app/tasks/info-panel/wave-graph/wave-graph.component.ts @@ -0,0 +1,62 @@ +import { + Component, + OnInit, + ChangeDetectionStrategy, + Input, + ChangeDetectorRef, + OnDestroy, +} from '@angular/core'; + +import { interval, Subscription } from 'rxjs'; + +interface Point { + x: number; + y: number; +} + +@Component({ + selector: 'app-wave-graph', + templateUrl: './wave-graph.component.svg', + styleUrls: ['./wave-graph.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class WaveGraphComponent implements OnInit, OnDestroy { + @Input() value: number = 0; + @Input() width: number = 200; + @Input() height: number = 16; + @Input() stroke: string = 'white'; + + private data: number[] = []; + private points: Point[] = []; + private subscription?: Subscription; + + constructor(private changeDetector: ChangeDetectorRef) { + for (let x = 0; x <= this.width; x += 2) { + this.data.push(0); + this.points.push({ x: x, y: this.height }); + } + } + + get polylinePoints(): string { + return this.points.map((p) => `${p.x},${p.y}`).join(' '); + } + + ngOnInit(): void { + this.subscription = interval(1000).subscribe(() => { + this.data.push(this.value || 0); + this.data.shift(); + + let maximum = Math.max(...this.data); + this.points = this.data.map((value, index) => ({ + x: Math.min(index * 2, this.width), + y: (1 - value / (maximum || 1)) * this.height, + })); + + this.changeDetector.markForCheck(); + }); + } + + ngOnDestroy(): void { + this.subscription?.unsubscribe(); + } +} diff --git a/webapp/src/app/tasks/shared/services/task-settings.service.spec.ts b/webapp/src/app/tasks/shared/services/task-settings.service.spec.ts new file mode 100644 index 0000000..0361412 --- /dev/null +++ b/webapp/src/app/tasks/shared/services/task-settings.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { TaskSettingsService } from './task-settings.service'; + +describe('TaskSettingsService', () => { + let service: TaskSettingsService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(TaskSettingsService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/webapp/src/app/tasks/shared/services/task-settings.service.ts b/webapp/src/app/tasks/shared/services/task-settings.service.ts new file mode 100644 index 0000000..7bafec7 --- /dev/null +++ b/webapp/src/app/tasks/shared/services/task-settings.service.ts @@ -0,0 +1,33 @@ +import { Injectable } from '@angular/core'; + +import { StorageService } from 'src/app/core/services/storage.service'; + +export interface TaskSettings { + showInfoPanel?: boolean; +} + +@Injectable({ + providedIn: 'root', +}) +export class TaskSettingsService { + constructor(private storage: StorageService) {} + + getSettings(roomId: number): TaskSettings { + const settingsString = this.storage.getData(this.getStorageKey(roomId)); + if (settingsString) { + return JSON.parse(settingsString) ?? {}; + } else { + return {}; + } + } + + updateSettings(roomId: number, settings: TaskSettings): void { + settings = Object.assign(this.getSettings(roomId), settings); + const settingsString = JSON.stringify(settings); + this.storage.setData(this.getStorageKey(roomId), settingsString); + } + + private getStorageKey(roomId: number): string { + return `app-tasks-${roomId}`; + } +} diff --git a/webapp/src/app/tasks/shared/services/task.service.ts b/webapp/src/app/tasks/shared/services/task.service.ts index 371f242..74c7da0 100644 --- a/webapp/src/app/tasks/shared/services/task.service.ts +++ b/webapp/src/app/tasks/shared/services/task.service.ts @@ -9,6 +9,8 @@ import { TaskData, DataSelection, TaskParam, + Metadata, + StreamProfile, AddTaskResult, VideoFileDetail, DanmakuFileDetail, @@ -49,6 +51,16 @@ export class TaskService { return this.http.get(url); } + getMetadata(roomId: number): Observable { + const url = apiUrl + `/api/v1/tasks/${roomId}/metadata`; + return this.http.get(url); + } + + getStreamProfile(roomId: number): Observable { + const url = apiUrl + `/api/v1/tasks/${roomId}/profile`; + return this.http.get(url); + } + updateAllTaskInfos(): Observable { const url = apiUrl + '/api/v1/tasks/info'; return this.http.post(url, null); diff --git a/webapp/src/app/tasks/shared/task.model.ts b/webapp/src/app/tasks/shared/task.model.ts index 3f086b4..6f4ef1f 100644 --- a/webapp/src/app/tasks/shared/task.model.ts +++ b/webapp/src/app/tasks/shared/task.model.ts @@ -1,6 +1,7 @@ import { ResponseMessage } from '../../shared/api.models'; import { DeleteStrategy, + StreamFormat, QualityNumber, } from '../../settings/shared/setting.model'; @@ -81,12 +82,18 @@ export interface TaskStatus { readonly monitor_enabled: boolean; readonly recorder_enabled: boolean; readonly running_status: RunningStatus; - readonly elapsed: number; - readonly data_count: number; - readonly data_rate: number; - readonly danmu_count: number; + readonly stream_url: string; + readonly stream_host: string; + readonly dl_total: number; + readonly dl_rate: number; + readonly rec_elapsed: number; + readonly rec_total: number; + readonly rec_rate: number; + readonly danmu_total: number; readonly danmu_rate: number; + readonly real_stream_format: StreamFormat; readonly real_quality_number: QualityNumber; + readonly recording_path: string | null; readonly postprocessor_status: PostprocessorStatus; readonly postprocessing_path: string | null; readonly postprocessing_progress: Progress | null; @@ -102,15 +109,185 @@ export interface TaskParam { readonly cookie: string; readonly danmu_uname: boolean; + readonly record_gift_send: boolean; + readonly record_free_gifts: boolean; + readonly record_guard_buy: boolean; + readonly record_super_chat: boolean; + readonly save_raw_danmaku: boolean; + readonly stream_format: StreamFormat; readonly quality_number: QualityNumber; readonly read_timeout: number; + readonly disconnection_timeout: number; readonly buffer_size: number; + readonly save_cover: boolean; readonly remux_to_mp4: boolean; + readonly inject_extra_metadata: boolean; readonly delete_source: DeleteStrategy; } +export interface VideoStreamProfile { + index?: number; + codec_name?: string; + codec_long_name?: string; + profile?: string; + codec_type?: string; + codec_tag_string?: string; + codec_tag?: string; + width?: number; + height?: number; + coded_width?: number; + coded_height?: number; + closed_captions?: number; + film_grain?: number; + has_b_frames?: number; + pix_fmt?: string; + level?: number; + chroma_location?: string; + field_order?: string; + refs?: number; + is_avc?: string; + nal_length_size?: string; + r_frame_rate?: string; + avg_frame_rate?: string; + time_base?: string; + start_pts?: number; + start_time?: string; + bit_rate?: string; + bits_per_raw_sample?: string; + extradata_size?: number; + disposition?: { + default?: number; + dub?: number; + original?: number; + comment?: number; + lyrics?: number; + karaoke?: number; + forced?: number; + hearing_impaired?: number; + visual_impaired?: number; + clean_effects?: number; + attached_pic?: number; + timed_thumbnails?: number; + captions?: number; + descriptions?: number; + metadata?: number; + dependent?: number; + still_image?: number; + }; + tags?: { + language?: string; + handler_name?: string; + vendor_id?: string; + encoder?: string; + }; +} + +export interface AudioStreamProfile { + index?: number; + codec_name?: string; + codec_long_name?: string; + profile?: string; + codec_type?: string; + codec_tag_string?: string; + codec_tag?: string; + sample_fmt?: string; + sample_rate?: string; + channels?: number; + channel_layout?: string; + bits_per_sample?: number; + r_frame_rate?: string; + avg_frame_rate?: string; + time_base?: string; + start_pts?: number; + start_time?: string; + duration_ts?: number; + duration?: string; + bit_rate?: string; + extradata_size?: number; + disposition?: { + default?: number; + dub?: number; + original?: number; + comment?: number; + lyrics?: number; + karaoke?: number; + forced?: number; + hearing_impaired?: number; + visual_impaired?: number; + clean_effects?: number; + attached_pic?: number; + timed_thumbnails?: number; + captions?: number; + descriptions?: number; + metadata?: number; + dependent?: number; + still_image?: number; + }; +} + +export interface Metadata { + hasAudio: boolean; + hasVideo: boolean; + hasMetadata: boolean; + hasKeyframes: boolean; + canSeekToEnd: boolean; + duration: number; + datasize: number; + filesize: number; + audiosize: number; + audiocodecid: number; + audiodatarate: number; + audiosamplerate: 3; + audiosamplesize: 1; + stereo: boolean; + videosize: number; + framerate: number; + videocodecid: 7; + videodatarate: number; + width: number; + height: number; + lasttimestamp: number; + lastkeyframelocation: number; + lastkeyframetimestamp: number; + keyframes: { + times: number[]; + filepositions: number[]; + }; +} + +export interface StreamProfile { + streams?: [VideoStreamProfile, AudioStreamProfile]; + format?: { + filename?: string; + nb_streams?: number; + nb_programs?: number; + format_name?: string; + format_long_name?: string; + start_time?: string; + duration?: string; + probe_score?: number; + tags?: { + displayWidth?: string; + displayHeight?: string; + fps?: string; + profile?: string; + level?: string; + videocodecreal?: string; + cdn_ip?: string; + Server?: string; + Rawdata?: string; + encoder?: string; + string?: string; + mau?: string; + major_brand?: string; + minor_version?: string; + compatible_brands?: string; + }; + }; +} + export enum VideoFileStatus { RECORDING = 'recording', REMUXING = 'remuxing', diff --git a/webapp/src/app/tasks/status-display/status-display.component.html b/webapp/src/app/tasks/status-display/status-display.component.html index 4f3a66c..863db27 100644 --- a/webapp/src/app/tasks/status-display/status-display.component.html +++ b/webapp/src/app/tasks/status-display/status-display.component.html @@ -4,7 +4,7 @@ @@ -12,39 +12,39 @@ - {{ status.elapsed | duration }} + {{ status.rec_elapsed | duration }} - {{ status.data_rate | speed }} + {{ status.rec_rate | datarate: { spacer: "" } }} - {{ status.data_count | filesize: { spacer: "" } }} + {{ status.rec_total | filesize: { spacer: "" } }} - {{ status.danmu_count | number: "1.0-0" }} + {{ status.danmu_total | number: "1.0-0" }} {{ status.real_quality_number | quality }} diff --git a/webapp/src/app/tasks/task-detail/task-detail.component.html b/webapp/src/app/tasks/task-detail/task-detail.component.html index 2fa1dce..39a8e35 100644 --- a/webapp/src/app/tasks/task-detail/task-detail.component.html +++ b/webapp/src/app/tasks/task-detail/task-detail.component.html @@ -23,6 +23,12 @@ [taskStatus]="taskData.task_status" > + + +
+ + {{ taskStatus.stream_host }} + + + {{ + taskStatus.real_stream_format + }} + + + {{ + taskStatus.dl_rate * 8 | datarate: { bitrate: true } + }} + + + {{ + taskStatus.dl_total | filesize: { spacer: " " } + }} +
+
+ diff --git a/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.scss b/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.scss new file mode 100644 index 0000000..606d691 --- /dev/null +++ b/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.scss @@ -0,0 +1,39 @@ +$grid-width: 200px; + +.statistics { + --grid-width: #{$grid-width}; + + display: grid; + grid-template-columns: repeat(auto-fill, var(--grid-width)); + gap: 1em; + justify-content: center; + margin: 0 auto; + + @media screen and (max-width: 1024px) { + --grid-width: 180px; + } + + @media screen and (max-width: 720px) { + --grid-width: 160px; + } + + @media screen and (max-width: 680px) { + --grid-width: 140px; + } + + @media screen and (max-width: 480px) { + --grid-width: 120px; + } +} + +.stream-host { + grid-column: 1 / 3; + grid-row: 1; +} + +.dl-rate-chart { + width: 100%; + height: 300px; + margin: 0; + // margin-top: 2em; +} diff --git a/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.spec.ts b/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.spec.ts new file mode 100644 index 0000000..05c1ca0 --- /dev/null +++ b/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TaskNetworkDetailComponent } from './task-network-detail.component'; + +describe('TaskNetworkDetailComponent', () => { + let component: TaskNetworkDetailComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ TaskNetworkDetailComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(TaskNetworkDetailComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.ts b/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.ts new file mode 100644 index 0000000..1f6a3a7 --- /dev/null +++ b/webapp/src/app/tasks/task-detail/task-network-detail/task-network-detail.component.ts @@ -0,0 +1,135 @@ +import { + Component, + ChangeDetectionStrategy, + Input, + ChangeDetectorRef, + OnChanges, +} from '@angular/core'; + +import { EChartsOption } from 'echarts'; + +import { RunningStatus, TaskStatus } from '../../shared/task.model'; +import { toBitRateString } from '../../../shared/utils'; + +interface ChartDataItem { + name: string; + value: [string, number]; +} + +@Component({ + selector: 'app-task-network-detail', + templateUrl: './task-network-detail.component.html', + styleUrls: ['./task-network-detail.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class TaskNetworkDetailComponent implements OnChanges { + @Input() loading: boolean = true; + @Input() taskStatus!: TaskStatus; + + initialChartOptions: EChartsOption = {}; + updatedChartOptions: EChartsOption = {}; + + private chartData: ChartDataItem[] = []; + + constructor(private changeDetector: ChangeDetectorRef) { + this.initChartOptions(); + } + + ngOnChanges(): void { + if (this.taskStatus.running_status === RunningStatus.RECORDING) { + this.updateChartOptions(); + } + } + + private initChartOptions(): void { + const timestamp = Date.now(); + + for (let i = 60 - 1; i >= 0; i--) { + const date = new Date(timestamp - i * 1000); + this.chartData.push({ + name: date.toLocaleString('zh-CN', { hour12: false }), + value: [date.toISOString(), 0], + }); + } + + this.initialChartOptions = { + title: { + // text: '下载速度', + }, + tooltip: { + trigger: 'axis', + formatter: (params: any) => { + const param = params[0] as ChartDataItem; + return ` +
+
+ ${new Date(param.name).toLocaleTimeString('zh-CN', { + hour12: false, + })} +
+
${toBitRateString(param.value[1])}
+
+ `; + }, + axisPointer: { + animation: false, + }, + }, + xAxis: { + type: 'time', + name: '时间', + min: 'dataMin', + max: 'dataMax', + splitLine: { + show: true, + }, + }, + yAxis: { + type: 'value', + name: '下载速度', + // boundaryGap: [0, '100%'], + splitLine: { + show: true, + }, + axisLabel: { + formatter: function (value: number) { + return toBitRateString(value); + }, + }, + }, + series: [ + { + name: '下载速度', + type: 'line', + showSymbol: false, + smooth: true, + lineStyle: { + width: 1, + }, + areaStyle: { + opacity: 0.2, + }, + data: this.chartData, + }, + ], + }; + } + private updateChartOptions(): void { + const date = new Date(); + this.chartData.push({ + name: date.toLocaleString('zh-CN', { hour12: false }), + value: [date.toISOString(), this.taskStatus.dl_rate * 8], + }); + this.chartData.shift(); + + this.updatedChartOptions = { + series: [ + { + data: this.chartData, + }, + ], + }; + + this.changeDetector.markForCheck(); + } +} diff --git a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html index 7ae57db..6de4676 100644 --- a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html +++ b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html @@ -2,23 +2,50 @@
+ {{ + taskStatus.rec_elapsed | duration + }} + + {{ + taskStatus.rec_rate | datarate + }} + + {{ + taskStatus.rec_total | filesize: { spacer: " " } + }} + + {{ + (taskStatus.real_quality_number | quality)! + + " " + + "(" + + taskStatus.real_quality_number + + ")" + }} +
+
diff --git a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.scss b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.scss index cfe967e..1a7863b 100644 --- a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.scss +++ b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.scss @@ -25,3 +25,10 @@ $grid-width: 200px; --grid-width: 120px; } } + +.rec-rate-chart { + width: 100%; + height: 300px; + margin: 0; + // margin-top: 2em; +} diff --git a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.ts b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.ts index e87e121..c9a562f 100644 --- a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.ts +++ b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.ts @@ -1,11 +1,20 @@ import { Component, - OnInit, ChangeDetectionStrategy, Input, + ChangeDetectorRef, + OnChanges, } from '@angular/core'; -import { TaskStatus } from '../../shared/task.model'; +import { EChartsOption } from 'echarts'; + +import { RunningStatus, TaskStatus } from '../../shared/task.model'; +import { toByteRateString } from '../../../shared/utils'; + +interface ChartDataItem { + name: string; + value: [string, number]; +} @Component({ selector: 'app-task-recording-detail', @@ -13,11 +22,115 @@ import { TaskStatus } from '../../shared/task.model'; styleUrls: ['./task-recording-detail.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class TaskRecordingDetailComponent implements OnInit { +export class TaskRecordingDetailComponent implements OnChanges { @Input() loading: boolean = true; @Input() taskStatus!: TaskStatus; - constructor() {} + initialChartOptions: EChartsOption = {}; + updatedChartOptions: EChartsOption = {}; - ngOnInit(): void {} + private chartData: ChartDataItem[] = []; + + constructor(private changeDetector: ChangeDetectorRef) { + this.initChartOptions(); + } + + ngOnChanges(): void { + if (this.taskStatus.running_status === RunningStatus.RECORDING) { + this.updateChartOptions(); + } + } + + private initChartOptions(): void { + const timestamp = Date.now(); + + for (let i = 60 - 1; i >= 0; i--) { + const date = new Date(timestamp - i * 1000); + this.chartData.push({ + name: date.toLocaleString('zh-CN', { hour12: false }), + value: [date.toISOString(), 0], + }); + } + + this.initialChartOptions = { + title: { + // text: '录制速度', + }, + tooltip: { + trigger: 'axis', + formatter: (params: any) => { + const param = params[0] as ChartDataItem; + return ` +
+
+ ${new Date(param.name).toLocaleTimeString('zh-CN', { + hour12: false, + })} +
+
${toByteRateString(param.value[1])}
+
+ `; + }, + axisPointer: { + animation: false, + }, + }, + xAxis: { + type: 'time', + name: '时间', + min: 'dataMin', + max: 'dataMax', + splitLine: { + show: true, + }, + }, + yAxis: { + type: 'value', + name: '录制速度', + // boundaryGap: [0, '100%'], + splitLine: { + show: true, + }, + axisLabel: { + formatter: (value: number) => { + return toByteRateString(value); + }, + }, + }, + series: [ + { + name: '录制速度', + type: 'line', + showSymbol: false, + smooth: true, + lineStyle: { + width: 1, + }, + areaStyle: { + opacity: 0.2, + }, + data: this.chartData, + }, + ], + }; + } + + private updateChartOptions(): void { + const date = new Date(); + this.chartData.push({ + name: date.toLocaleString('zh-CN', { hour12: false }), + value: [date.toISOString(), this.taskStatus.rec_rate], + }); + this.chartData.shift(); + + this.updatedChartOptions = { + series: [ + { + data: this.chartData, + }, + ], + }; + + this.changeDetector.markForCheck(); + } } diff --git a/webapp/src/app/tasks/task-item/task-item.component.html b/webapp/src/app/tasks/task-item/task-item.component.html index 2c5e7ff..1863de9 100644 --- a/webapp/src/app/tasks/task-item/task-item.component.html +++ b/webapp/src/app/tasks/task-item/task-item.component.html @@ -35,6 +35,11 @@ {{ data.room_info.title }} + @@ -199,6 +204,7 @@
  • 强制停止任务
  • 强制关闭录制
  • 刷新数据
  • +
  • 显示录制信息
  • diff --git a/webapp/src/app/tasks/task-item/task-item.component.ts b/webapp/src/app/tasks/task-item/task-item.component.ts index 02f7df5..390fb93 100644 --- a/webapp/src/app/tasks/task-item/task-item.component.ts +++ b/webapp/src/app/tasks/task-item/task-item.component.ts @@ -26,6 +26,7 @@ import { GlobalTaskSettings, TaskOptionsIn, } from '../../settings/shared/setting.model'; +import { TaskSettingsService } from '../shared/services/task-settings.service'; @Component({ selector: 'app-task-item', @@ -54,7 +55,8 @@ export class TaskItemComponent implements OnChanges, OnDestroy { private message: NzMessageService, private modal: NzModalService, private settingService: SettingService, - private taskManager: TaskManagerService + private taskManager: TaskManagerService, + private appTaskSettings: TaskSettingsService ) { breakpointObserver .observe(breakpoints[0]) @@ -73,6 +75,14 @@ export class TaskItemComponent implements OnChanges, OnDestroy { return !this.data.task_status.monitor_enabled; } + get showInfoPanel() { + return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel); + } + + set showInfoPanel(value: boolean) { + this.appTaskSettings.updateSettings(this.roomId, { showInfoPanel: value }); + } + ngOnChanges(changes: SimpleChanges): void { console.debug('[ngOnChanges]', this.roomId, changes); this.stopped = diff --git a/webapp/src/app/tasks/task-list/task-list.component.scss b/webapp/src/app/tasks/task-list/task-list.component.scss index 0b5525a..01a99e5 100644 --- a/webapp/src/app/tasks/task-list/task-list.component.scss +++ b/webapp/src/app/tasks/task-list/task-list.component.scss @@ -1,13 +1,11 @@ -@use '../../shared/styles/layout'; +@use "../../shared/styles/layout"; $card-width: 400px; $grid-gutter: 12px; -$max-columns: 3; :host { --card-width: #{$card-width}; --grid-gutter: #{$grid-gutter}; - --max-columns: #{$max-columns}; @extend %inner-content; padding: var(--grid-gutter); @@ -24,13 +22,7 @@ $max-columns: 3; gap: var(--grid-gutter); justify-content: center; - max-width: min( - 100%, - calc( - var(--card-width) * var(--max-columns) + var(--grid-gutter) * - (var(--max-columns) - 1) - ) - ); + max-width: min(100%); margin: 0 auto; } diff --git a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html index 3a104b4..ab43e1f 100644 --- a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html +++ b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html @@ -110,6 +110,46 @@

    录制

    + + 直播流格式 + +

    + 选择要录制的直播流格式
    +
    + FLV 网络不稳定容易中断丢失数据
    + HLS (ts) 基本不受本地网络影响
    + HLS (fmp4) 只有少数直播间支持
    +
    + P.S.
    + 非 FLV 格式需要 ffmpeg
    + HLS (fmp4) 不支持会自动切换到 HLS (ts)
    +

    +
    + + + + + +

    - 自动: 转换成功才删除源文件
    - 从不: 转换后总是保留源文件
    + 自动: 没出错就删除源文件
    + 谨慎: 没出错且没警告才删除源文件
    + 从不: 总是保留源文件

    diff --git a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts index cbdb8e9..06b6007 100644 --- a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts +++ b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts @@ -23,6 +23,7 @@ import { PATH_TEMPLATE_PATTERN, FILESIZE_LIMIT_OPTIONS, DURATION_LIMIT_OPTIONS, + STREAM_FORMAT_OPTIONS, QUALITY_OPTIONS, TIMEOUT_OPTIONS, DISCONNECTION_TIMEOUT_OPTIONS, @@ -63,6 +64,9 @@ export class TaskSettingsDialogComponent implements OnChanges { readonly durationLimitOptions = cloneDeep(DURATION_LIMIT_OPTIONS) as Mutable< typeof DURATION_LIMIT_OPTIONS >; + readonly streamFormatOptions = cloneDeep(STREAM_FORMAT_OPTIONS) as Mutable< + typeof STREAM_FORMAT_OPTIONS + >; readonly qualityOptions = cloneDeep(QUALITY_OPTIONS) as Mutable< typeof QUALITY_OPTIONS >; diff --git a/webapp/src/app/tasks/tasks.module.ts b/webapp/src/app/tasks/tasks.module.ts index 1df3093..3f17c1f 100644 --- a/webapp/src/app/tasks/tasks.module.ts +++ b/webapp/src/app/tasks/tasks.module.ts @@ -30,6 +30,7 @@ import { NzProgressModule } from 'ng-zorro-antd/progress'; import { NzTableModule } from 'ng-zorro-antd/table'; import { NzStatisticModule } from 'ng-zorro-antd/statistic'; import { NzDescriptionsModule } from 'ng-zorro-antd/descriptions'; +import { NgxEchartsModule } from 'ngx-echarts'; import { SharedModule } from '../shared/shared.module'; import { TasksRoutingModule } from './tasks-routing.module'; @@ -47,6 +48,9 @@ import { TaskUserInfoDetailComponent } from './task-detail/task-user-info-detail import { TaskRoomInfoDetailComponent } from './task-detail/task-room-info-detail/task-room-info-detail.component'; import { TaskPostprocessingDetailComponent } from './task-detail/task-postprocessing-detail/task-postprocessing-detail.component'; import { TaskRecordingDetailComponent } from './task-detail/task-recording-detail/task-recording-detail.component'; +import { TaskNetworkDetailComponent } from './task-detail/task-network-detail/task-network-detail.component'; +import { InfoPanelComponent } from './info-panel/info-panel.component'; +import { WaveGraphComponent } from './info-panel/wave-graph/wave-graph.component'; @NgModule({ declarations: [ @@ -64,6 +68,9 @@ import { TaskRecordingDetailComponent } from './task-detail/task-recording-detai TaskRoomInfoDetailComponent, TaskPostprocessingDetailComponent, TaskRecordingDetailComponent, + TaskNetworkDetailComponent, + InfoPanelComponent, + WaveGraphComponent, ], imports: [ CommonModule, @@ -99,6 +106,9 @@ import { TaskRecordingDetailComponent } from './task-detail/task-recording-detai NzTableModule, NzStatisticModule, NzDescriptionsModule, + NgxEchartsModule.forRoot({ + echarts: () => import('echarts'), + }), TasksRoutingModule, SharedModule,