From 34b10a8a2d26f5836275fb94a4f74043fe1f941d Mon Sep 17 00:00:00 2001 From: acgnhik Date: Sat, 12 Feb 2022 11:29:55 +0800 Subject: [PATCH] release: 1.4.0 close #15 fix #16 close #18 close #19 fix #20 --- .dockerignore | 2 + CHANGELOG.md | 12 ++ Dockerfile | 19 +++ Dockerfile.mirrors | 21 +++ README.md | 17 +++ src/blrec/__init__.py | 2 +- src/blrec/application.py | 13 +- src/blrec/bili/api.py | 4 +- src/blrec/bili/live.py | 19 ++- src/blrec/bili/typing.py | 1 + src/blrec/core/danmaku_dumper.py | 86 +++++++---- src/blrec/core/models.py | 2 + src/blrec/core/raw_danmaku_dumper.py | 49 +++++- src/blrec/core/recorder.py | 57 +++++-- src/blrec/core/stream_recorder.py | 43 +++++- src/blrec/danmaku/io.py | 11 +- src/blrec/danmaku/models.py | 3 + ...1484169c949.js => 103.5b5d2a6e5a8a7479.js} | 2 +- src/blrec/data/webapp/622.03823b1714105423.js | 1 + src/blrec/data/webapp/622.dd6c6ac77555edc7.js | 1 - ...21b2e654d67.js => 853.84ee7e1d7cff8913.js} | 2 +- src/blrec/data/webapp/index.html | 2 +- .../data/webapp/main.5e1124f1a8c47971.js | 1 + .../data/webapp/main.7a4da5a70e652c3f.js | 1 - src/blrec/data/webapp/ngsw.json | 26 ++-- ...225f379.js => runtime.0c70df55750c11ae.js} | 2 +- src/blrec/disk_space/space_reclaimer.py | 2 +- src/blrec/event/__init__.py | 44 +++++- src/blrec/event/event_submitters.py | 102 +++++++++++-- src/blrec/event/models.py | 140 ++++++++++++++++-- src/blrec/event/typing.py | 44 +++++- src/blrec/exception/exception_handler.py | 3 +- src/blrec/exception/helpers.py | 4 +- src/blrec/flv/exceptions.py | 8 +- src/blrec/flv/format.py | 125 +++++++++------- src/blrec/flv/models.py | 4 +- src/blrec/flv/stream_processor.py | 82 +++++----- src/blrec/postprocess/postprocessor.py | 19 ++- src/blrec/setting/models.py | 37 ++--- src/blrec/task/models.py | 1 + src/blrec/task/task.py | 32 +++- src/blrec/task/task_manager.py | 2 + src/blrec/web/main.py | 28 ++-- src/blrec/web/routers/websockets.py | 6 +- src/blrec/web/security.py | 81 ++++++++++ src/blrec/webhook/models.py | 33 ++++- src/blrec/webhook/webhook_emitter.py | 8 +- .../http-interceptors/auth.interceptor.ts | 8 +- webapp/src/app/core/models/event.model.ts | 87 ++++++++++- webapp/src/app/core/services/auth.service.ts | 8 + .../danmaku-settings.component.html | 21 ++- .../danmaku-settings.component.ts | 5 + .../disk-space-settings.component.ts | 3 + .../src/app/settings/shared/setting.model.ts | 12 +- .../webhook-edit-dialog.component.html | 67 ++++++++- .../webhook-edit-dialog.component.ts | 22 ++- webapp/src/app/tasks/shared/breakpoints.ts | 4 +- .../task-settings-dialog.component.html | 31 +++- .../app/tasks/toolbar/toolbar.component.scss | 4 + .../app/tasks/toolbar/toolbar.component.ts | 4 +- 60 files changed, 1188 insertions(+), 292 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 Dockerfile.mirrors rename src/blrec/data/webapp/{103.9c8251484169c949.js => 103.5b5d2a6e5a8a7479.js} (98%) create mode 100644 src/blrec/data/webapp/622.03823b1714105423.js delete mode 100644 src/blrec/data/webapp/622.dd6c6ac77555edc7.js rename src/blrec/data/webapp/{853.5697121b2e654d67.js => 853.84ee7e1d7cff8913.js} (55%) create mode 100644 src/blrec/data/webapp/main.5e1124f1a8c47971.js delete mode 100644 src/blrec/data/webapp/main.7a4da5a70e652c3f.js rename src/blrec/data/webapp/{runtime.c48b962c8225f379.js => runtime.0c70df55750c11ae.js} (93%) create mode 100644 src/blrec/web/security.py diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1686774 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +*/__pycache__* +*/.mypy_cache* diff --git a/CHANGELOG.md b/CHANGELOG.md index 57af5b9..baabdc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # 更新日志 +## 1.4.0 + +- 适应数据有问题的流服务器 gotcha08 (issue #13) +- 支持 Docker (issue #15) +- 修复弹幕录制出错 (issue #16) +- 弹幕文件统一礼物价格单位 (issue #18) +- Webhook 支持更多事件 (issue #19) +- 文件名重复自动加后缀 (issue #20) +- 记录免费礼物到弹幕文件为可选的 +- 加强 api-key 的安全性 +- 其它一些重构调整 + ## 1.3.2 - 修复录制错误: `AssertionError: Invalid Tag` diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..65f7ade --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# syntax=docker/dockerfile:1 + +FROM python:3.10-slim-buster + +WORKDIR /app +VOLUME /rec + +COPY src src/ +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 +# ref: https://github.com/docker-library/python/issues/60#issuecomment-134322383 + +ENTRYPOINT ["blrec", "-o", "/rec", "--host", "0.0.0.0"] +CMD ["-c", "/rec/settings.toml"] diff --git a/Dockerfile.mirrors b/Dockerfile.mirrors new file mode 100644 index 0000000..a434b2d --- /dev/null +++ b/Dockerfile.mirrors @@ -0,0 +1,21 @@ +# syntax=docker/dockerfile:1 + +FROM python:3.10-slim-buster + +WORKDIR /app +VOLUME /rec + +COPY src src/ +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 +# ref: https://github.com/docker-library/python/issues/60#issuecomment-134322383 + +ENTRYPOINT ["blrec", "-o", "/rec", "--host", "0.0.0.0"] +CMD ["-c", "/rec/settings.toml"] diff --git a/README.md b/README.md index 4534c8f..dea1e09 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,23 @@ 删除解压后的文件夹 + +## Docker + +- 默认参数 + + `docker run -v ~/blrec:/rec -dp 2233:2233 acgnhiki/blrec` + +- 指定参数 + + ```bash + docker run -v ~/blrec:/rec -dp 2233:2233 acgnhiki/blrec \ + -c ~/blrec/settings.toml \ + --key-file path/to/key-file \ + --cert-file path/to/cert-file \ + --api-key bili2233 + ``` + ## 使用方法 ### 使用默认设置文件和保存位置 diff --git a/src/blrec/__init__.py b/src/blrec/__init__.py index c070e97..562c8b6 100644 --- a/src/blrec/__init__.py +++ b/src/blrec/__init__.py @@ -1,4 +1,4 @@ __prog__ = 'blrec' -__version__ = '1.3.2' +__version__ = '1.4.0' __github__ = 'https://github.com/acgnhiki/blrec' diff --git a/src/blrec/application.py b/src/blrec/application.py index ec096fe..09799d0 100644 --- a/src/blrec/application.py +++ b/src/blrec/application.py @@ -103,7 +103,7 @@ class Application: async def launch(self) -> None: self._setup() await self._task_manager.load_all_tasks() - logger.info('Launched Application') + logger.info(f'Launched Application v{__version__}') async def exit(self) -> None: await self._exit() @@ -136,50 +136,61 @@ class Application: 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: await self._task_manager.remove_task(room_id) await self._settings_manager.remove_task_settings(room_id) + logger.info(f'Removed task: {room_id}') async def remove_all_tasks(self) -> None: await self._task_manager.remove_all_tasks() await self._settings_manager.remove_all_task_settings() + logger.info('Removed all tasks') async def start_task(self, room_id: int) -> None: await self._task_manager.start_task(room_id) await self._settings_manager.mark_task_enabled(room_id) + logger.info(f'Started task: {room_id}') async def stop_task(self, room_id: int, force: bool = False) -> None: 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}') async def start_all_tasks(self) -> None: await self._task_manager.start_all_tasks() await self._settings_manager.mark_all_tasks_enabled() + logger.info('Started all tasks') async def stop_all_tasks(self, force: bool = False) -> None: await self._task_manager.stop_all_tasks(force) await self._settings_manager.mark_all_tasks_disabled() + logger.info('Stopped all tasks') async def enable_task_recorder(self, room_id: int) -> None: 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}') async def disable_task_recorder( self, room_id: int, force: bool = False ) -> None: 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}') async def enable_all_task_recorders(self) -> None: await self._task_manager.enable_all_task_recorders() await self._settings_manager.mark_all_task_recorders_enabled() + logger.info('Enabled all task recorders') async def disable_all_task_recorders(self, force: bool = False) -> None: await self._task_manager.disable_all_task_recorders(force) await self._settings_manager.mark_all_task_recorders_disabled() + logger.info('Disabled all task recorders') def get_task_data(self, room_id: int) -> TaskData: return self._task_manager.get_task_data(room_id) diff --git a/src/blrec/bili/api.py b/src/blrec/bili/api.py index c33894f..fc9fb1f 100644 --- a/src/blrec/bili/api.py +++ b/src/blrec/bili/api.py @@ -68,11 +68,11 @@ class WebApi: params = { 'room_id': room_id, 'protocol': '0,1', - 'format': '0,2', + 'format': '0,1,2', 'codec': '0,1', 'qn': qn, 'platform': 'web', - 'ptype': 16, + 'ptype': 8, } r = await self._get(self.GET_ROOM_PLAY_INFO_URL, params=params) return r['data'] diff --git a/src/blrec/bili/live.py b/src/blrec/bili/live.py index 5c9eb3e..cd7be48 100644 --- a/src/blrec/bili/live.py +++ b/src/blrec/bili/live.py @@ -2,7 +2,7 @@ import asyncio import re import json -from typing import Dict, List, Optional, cast +from typing import Dict, List, cast import aiohttp from tenacity import ( @@ -165,9 +165,11 @@ class Live: # the timestamp on the server at the moment in seconds return await self._api.get_timestamp() - async def get_live_stream_url( - self, qn: QualityNumber = 10000, format: StreamFormat = 'flv' - ) -> Optional[str]: + async def get_live_stream_urls( + self, + qn: QualityNumber = 10000, + format: StreamFormat = 'flv', + ) -> List[str]: try: data = await self._api.get_room_play_info(self._room_id, qn) except Exception: @@ -188,12 +190,13 @@ class Live: accept_qn = cast(List[QualityNumber], codec['accept_qn']) if qn not in accept_qn: - return None - + return [] assert codec['current_qn'] == qn - url_info = codec['url_info'][0] - return url_info['host'] + codec['base_url'] + url_info['extra'] + return [ + i['host'] + codec['base_url'] + i['extra'] + for i in codec['url_info'] + ] def _check_room_play_info(self, data: ResponseData) -> None: if data['is_hidden']: diff --git a/src/blrec/bili/typing.py b/src/blrec/bili/typing.py index b10c054..1a93e05 100644 --- a/src/blrec/bili/typing.py +++ b/src/blrec/bili/typing.py @@ -15,6 +15,7 @@ QualityNumber = Literal[ StreamFormat = Literal[ 'flv', + 'ts', 'fmp4', ] diff --git a/src/blrec/core/danmaku_dumper.py b/src/blrec/core/danmaku_dumper.py index b2ffd2e..762ddda 100644 --- a/src/blrec/core/danmaku_dumper.py +++ b/src/blrec/core/danmaku_dumper.py @@ -4,17 +4,21 @@ import logging from contextlib import suppress from typing import Iterator, List, Optional -from blrec.core.models import GiftSendMsg, GuardBuyMsg, SuperChatMsg - +from tenacity import ( + AsyncRetrying, + stop_after_attempt, + retry_if_not_exception_type, +) from .. import __version__, __prog__, __github__ from .danmaku_receiver import DanmakuReceiver, DanmuMsg from .stream_recorder import StreamRecorder, StreamRecorderEventListener from .statistics import StatisticsCalculator from ..bili.live import Live -from ..exception import exception_callback +from ..exception import exception_callback, submit_exception from ..event.event_emitter import EventListener, EventEmitter from ..path import danmaku_path +from ..core.models import GiftSendMsg, GuardBuyMsg, SuperChatMsg from ..danmaku.models import ( Metadata, Danmu, GiftSendRecord, GuardBuyRecord, SuperChatRecord ) @@ -50,6 +54,7 @@ class DanmakuDumper( *, danmu_uname: bool = False, record_gift_send: bool = False, + record_free_gifts: bool = False, record_guard_buy: bool = False, record_super_chat: bool = False, ) -> None: @@ -61,6 +66,7 @@ class DanmakuDumper( 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 @@ -124,7 +130,7 @@ class DanmakuDumper( await self._cancel_dump_task() def _create_dump_task(self) -> None: - self._dump_task = asyncio.create_task(self._dump()) + self._dump_task = asyncio.create_task(self._do_dump()) self._dump_task.add_done_callback(exception_callback) async def _cancel_dump_task(self) -> None: @@ -133,7 +139,7 @@ class DanmakuDumper( await self._dump_task @aio_task_with_room_id - async def _dump(self) -> None: + async def _do_dump(self) -> None: assert self._path is not None logger.debug('Started dumping danmaku') self._calculator.reset() @@ -144,37 +150,55 @@ class DanmakuDumper( await self._emit('danmaku_file_created', self._path) await writer.write_metadata(self._make_metadata()) - while True: - msg = await self._receiver.get_message() - if isinstance(msg, DanmuMsg): - await writer.write_danmu(self._make_danmu(msg)) - self._calculator.submit(1) - elif isinstance(msg, GiftSendMsg): - if not self.record_gift_send: - continue - await writer.write_gift_send_record( - self._make_gift_send_record(msg) - ) - elif isinstance(msg, GuardBuyMsg): - if not self.record_guard_buy: - continue - await writer.write_guard_buy_record( - self._make_guard_buy_record(msg) - ) - elif isinstance(msg, SuperChatMsg): - if not self.record_super_chat: - continue - await writer.write_super_chat_record( - self._make_super_chat_record(msg) - ) - else: - logger.warning('Unsupported message type:', repr(msg)) + async for attempt in AsyncRetrying( + retry=retry_if_not_exception_type(( + asyncio.CancelledError + )), + stop=stop_after_attempt(3), + ): + with attempt: + try: + await self._dumping_loop(writer) + except Exception as e: + submit_exception(e) + raise finally: logger.info(f"Danmaku file completed: '{self._path}'") await self._emit('danmaku_file_completed', self._path) logger.debug('Stopped dumping danmaku') self._calculator.freeze() + async def _dumping_loop(self, writer: DanmakuWriter) -> None: + while True: + msg = await self._receiver.get_message() + if isinstance(msg, DanmuMsg): + await writer.write_danmu(self._make_danmu(msg)) + self._calculator.submit(1) + elif isinstance(msg, GiftSendMsg): + if not self.record_gift_send: + continue + record = self._make_gift_send_record(msg) + if ( + not self.record_free_gifts and + record.is_free_gift() + ): + continue + await writer.write_gift_send_record(record) + elif isinstance(msg, GuardBuyMsg): + if not self.record_guard_buy: + continue + await writer.write_guard_buy_record( + self._make_guard_buy_record(msg) + ) + elif isinstance(msg, SuperChatMsg): + if not self.record_super_chat: + continue + await writer.write_super_chat_record( + self._make_super_chat_record(msg) + ) + else: + logger.warning('Unsupported message type:', repr(msg)) + def _make_metadata(self) -> Metadata: return Metadata( user_name=self._live.user_info.name, @@ -235,7 +259,7 @@ class DanmakuDumper( ts=self._calc_stime(msg.timestamp * 1000), uid=msg.uid, user=msg.uname, - price=msg.price, + price=msg.price * msg.rate, time=msg.time, message=msg.message, ) diff --git a/src/blrec/core/models.py b/src/blrec/core/models.py index c27c4b8..3c762e9 100644 --- a/src/blrec/core/models.py +++ b/src/blrec/core/models.py @@ -92,6 +92,7 @@ class SuperChatMsg: gift_name: str count: int price: int + rate: int time: int # duration in seconds message: str uid: int @@ -105,6 +106,7 @@ class SuperChatMsg: gift_name=data['gift']['gift_name'], count=int(data['gift']['num']), price=int(data['price']), + rate=int(data['rate']), time=int(data['time']), message=data['message'], uid=int(data['uid']), diff --git a/src/blrec/core/raw_danmaku_dumper.py b/src/blrec/core/raw_danmaku_dumper.py index 54888ed..39bf204 100644 --- a/src/blrec/core/raw_danmaku_dumper.py +++ b/src/blrec/core/raw_danmaku_dumper.py @@ -4,22 +4,41 @@ import logging from contextlib import suppress import aiofiles +from aiofiles.threadpool.text import AsyncTextIOWrapper +from tenacity import ( + AsyncRetrying, + stop_after_attempt, + retry_if_not_exception_type, +) from .raw_danmaku_receiver import RawDanmakuReceiver from .stream_recorder import StreamRecorder, StreamRecorderEventListener -from ..exception import exception_callback +from ..exception import exception_callback, submit_exception +from ..event.event_emitter import EventListener, EventEmitter from ..path import raw_danmaku_path from ..utils.mixins import SwitchableMixin from ..logging.room_id import aio_task_with_room_id -__all__ = 'RawDanmakuDumper', +__all__ = 'RawDanmakuDumper', 'RawDanmakuDumperEventListener' logger = logging.getLogger(__name__) -class RawDanmakuDumper(StreamRecorderEventListener, SwitchableMixin): +class RawDanmakuDumperEventListener(EventListener): + async def on_raw_danmaku_file_created(self, path: str) -> None: + ... + + async def on_raw_danmaku_file_completed(self, path: str) -> None: + ... + + +class RawDanmakuDumper( + EventEmitter[RawDanmakuDumperEventListener], + StreamRecorderEventListener, + SwitchableMixin, +): def __init__( self, stream_recorder: StreamRecorder, @@ -53,7 +72,7 @@ class RawDanmakuDumper(StreamRecorderEventListener, SwitchableMixin): await self._cancel_dump_task() def _create_dump_task(self) -> None: - self._dump_task = asyncio.create_task(self._dump()) + self._dump_task = asyncio.create_task(self._do_dump()) self._dump_task.add_done_callback(exception_callback) async def _cancel_dump_task(self) -> None: @@ -62,16 +81,36 @@ class RawDanmakuDumper(StreamRecorderEventListener, SwitchableMixin): await self._dump_task @aio_task_with_room_id - async def _dump(self) -> None: + async def _do_dump(self) -> None: logger.debug('Started dumping raw danmaku') try: async with aiofiles.open(self._path, 'wt', encoding='utf8') as f: logger.info(f"Raw danmaku file created: '{self._path}'") + await self._emit('raw_danmaku_file_created', self._path) + async for attempt in AsyncRetrying( + retry=retry_if_not_exception_type(( + asyncio.CancelledError + )), + stop=stop_after_attempt(3), + ): + with attempt: + try: + await self._dumping_loop(f) + except Exception as e: + submit_exception(e) + raise while True: danmu = await self._receiver.get_raw_danmaku() json_string = json.dumps(danmu, ensure_ascii=False) await f.write(json_string + '\n') finally: logger.info(f"Raw danmaku file completed: '{self._path}'") + await self._emit('raw_danmaku_file_completed', self._path) logger.debug('Stopped dumping raw danmaku') + + async def _dumping_loop(self, file: AsyncTextIOWrapper) -> None: + while True: + danmu = await self._receiver.get_raw_danmaku() + json_string = json.dumps(danmu, ensure_ascii=False) + await file.write(json_string + '\n') diff --git a/src/blrec/core/recorder.py b/src/blrec/core/recorder.py index 2c486e8..2d61990 100644 --- a/src/blrec/core/recorder.py +++ b/src/blrec/core/recorder.py @@ -11,7 +11,7 @@ from tenacity import retry, wait_fixed, stop_after_attempt from .danmaku_receiver import DanmakuReceiver from .danmaku_dumper import DanmakuDumper, DanmakuDumperEventListener from .raw_danmaku_receiver import RawDanmakuReceiver -from .raw_danmaku_dumper import RawDanmakuDumper +from .raw_danmaku_dumper import RawDanmakuDumper, RawDanmakuDumperEventListener from .stream_recorder import StreamRecorder, StreamRecorderEventListener from ..event.event_emitter import EventListener, EventEmitter from ..bili.live import Live @@ -41,17 +41,33 @@ class RecorderEventListener(EventListener): ... async def on_video_file_created( - self, path: str, record_start_time: int + self, recorder: Recorder, path: str ) -> None: ... - async def on_video_file_completed(self, path: str) -> None: + async def on_video_file_completed( + self, recorder: Recorder, path: str + ) -> None: ... - async def on_danmaku_file_created(self, path: str) -> None: + async def on_danmaku_file_created( + self, recorder: Recorder, path: str + ) -> None: ... - async def on_danmaku_file_completed(self, path: str) -> None: + async def on_danmaku_file_completed( + self, recorder: Recorder, path: str + ) -> None: + ... + + async def on_raw_danmaku_file_created( + self, recorder: Recorder, path: str + ) -> None: + ... + + async def on_raw_danmaku_file_completed( + self, recorder: Recorder, path: str + ) -> None: ... @@ -60,6 +76,7 @@ class Recorder( LiveEventListener, AsyncStoppableMixin, DanmakuDumperEventListener, + RawDanmakuDumperEventListener, StreamRecorderEventListener, ): def __init__( @@ -75,6 +92,7 @@ class Recorder( disconnection_timeout: Optional[int] = None, 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, @@ -110,6 +128,7 @@ class Recorder( self._danmaku_receiver, danmu_uname=danmu_uname, record_gift_send=record_gift_send, + record_free_gifts=record_free_gifts, record_guard_buy=record_guard_buy, record_super_chat=record_super_chat, ) @@ -119,6 +138,10 @@ class Recorder( self._raw_danmaku_receiver, ) + @property + def live(self) -> Live: + return self._live + @property def recording(self) -> bool: return self._recording @@ -175,6 +198,14 @@ class Recorder( def record_gift_send(self, value: bool) -> None: self._danmaku_dumper.record_gift_send = value + @property + def record_free_gifts(self) -> bool: + return self._danmaku_dumper.record_free_gifts + + @record_free_gifts.setter + def record_free_gifts(self, value: bool) -> None: + self._danmaku_dumper.record_free_gifts = value + @property def record_guard_buy(self) -> bool: return self._danmaku_dumper.record_guard_buy @@ -246,6 +277,7 @@ class Recorder( 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') @@ -259,6 +291,7 @@ class Recorder( 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') @@ -306,18 +339,24 @@ class Recorder( async def on_video_file_created( self, path: str, record_start_time: int ) -> None: - await self._emit('video_file_created', path, record_start_time) + await self._emit('video_file_created', self, path) async def on_video_file_completed(self, path: str) -> None: - await self._emit('video_file_completed', path) + await self._emit('video_file_completed', self, path) if self.save_cover: await self._save_cover_image(path) async def on_danmaku_file_created(self, path: str) -> None: - await self._emit('danmaku_file_created', path) + await self._emit('danmaku_file_created', self, path) async def on_danmaku_file_completed(self, path: str) -> None: - await self._emit('danmaku_file_completed', path) + await self._emit('danmaku_file_completed', self, path) + + async def on_raw_danmaku_file_created(self, path: str) -> None: + await self._emit('raw_danmaku_file_created', self, path) + + async def on_raw_danmaku_file_completed(self, path: str) -> None: + await self._emit('raw_danmaku_file_completed', self, path) async def on_stream_recording_stopped(self) -> None: logger.debug('Stream recording stopped') diff --git a/src/blrec/core/stream_recorder.py b/src/blrec/core/stream_recorder.py index e1cdfb0..0f5001d 100644 --- a/src/blrec/core/stream_recorder.py +++ b/src/blrec/core/stream_recorder.py @@ -1,5 +1,6 @@ import io import os +import re import time import errno import asyncio @@ -40,7 +41,7 @@ from ..bili.typing import QualityNumber from ..flv.stream_processor import StreamProcessor, BaseOutputFileManager from ..utils.mixins import AsyncCooperationMix, AsyncStoppableMixin from ..path import escape_path -from ..flv.exceptions import FlvStreamCorruptedError +from ..flv.exceptions import FlvDataError, FlvStreamCorruptedError from ..bili.exceptions import ( LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamUrlAvailable ) @@ -224,6 +225,7 @@ class StreamRecorder( def _run(self) -> None: self._calculator.reset() + self._use_candidate_stream: bool = False try: with tqdm( desc='Recording', @@ -297,6 +299,7 @@ class StreamRecorder( self._stopped = True except Exception as e: logger.exception(e) + self._handle_exception(e) raise def _streaming_loop(self) -> None: @@ -333,6 +336,10 @@ class StreamRecorder( 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() @@ -368,10 +375,14 @@ class StreamRecorder( ) def _get_live_stream_url(self) -> str: qn = self._real_quality_number or self.quality_number - url = self._run_coroutine(self._live.get_live_stream_url(qn, 'flv')) + 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 url is None: + if not urls: logger.info( f'The specified video quality ({qn}) is not available, ' 'using the original video quality (10000) instead.' @@ -382,7 +393,17 @@ class StreamRecorder( logger.info(f'The specified video quality ({qn}) is available') self._real_quality_number = self.quality_number - assert url is not None + 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 @@ -545,9 +566,17 @@ class OutputFileManager(BaseOutputFileManager, AsyncCooperationMix): second=str(date_time.second).rjust(2, '0'), ) - full_pathname = os.path.abspath( + pathname = os.path.abspath( os.path.expanduser(os.path.join(self.out_dir, relpath) + '.flv') ) - os.makedirs(os.path.dirname(full_pathname), exist_ok=True) + 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 full_pathname + return pathname diff --git a/src/blrec/danmaku/io.py b/src/blrec/danmaku/io.py index 00ef667..9d3e30e 100644 --- a/src/blrec/danmaku/io.py +++ b/src/blrec/danmaku/io.py @@ -156,13 +156,22 @@ class DanmakuWriter: 'uid': str(dm.uid), 'user': dm.uname, } - elem = etree.Element('d', attrib=attrib) + + try: + elem = etree.Element('d', attrib=attrib) + except ValueError: + # ValueError: All strings must be XML compatible: Unicode or ASCII, + # no NULL bytes or control characters + attrib['user'] = remove_control_characters(dm.uname) + elem = etree.Element('d', attrib=attrib) + try: elem.text = dm.text except ValueError: # ValueError: All strings must be XML compatible: Unicode or ASCII, # no NULL bytes or control characters elem.text = remove_control_characters(dm.text) + return ' ' + etree.tostring(elem, encoding='utf8').decode() + '\n' def _serialize_gift_send_record(self, record: GiftSendRecord) -> str: diff --git a/src/blrec/danmaku/models.py b/src/blrec/danmaku/models.py index e144347..dad7256 100644 --- a/src/blrec/danmaku/models.py +++ b/src/blrec/danmaku/models.py @@ -40,6 +40,9 @@ class GiftSendRecord: cointype: Literal['sliver', 'gold'] price: int + def is_free_gift(self) -> bool: + return self.cointype != 'gold' + @attr.s(auto_attribs=True, slots=True, frozen=True) class GuardBuyRecord: diff --git a/src/blrec/data/webapp/103.9c8251484169c949.js b/src/blrec/data/webapp/103.5b5d2a6e5a8a7479.js similarity index 98% rename from src/blrec/data/webapp/103.9c8251484169c949.js rename to src/blrec/data/webapp/103.5b5d2a6e5a8a7479.js index ef9dd43..fec5cb6 100644 --- a/src/blrec/data/webapp/103.9c8251484169c949.js +++ b/src/blrec/data/webapp/103.5b5d2a6e5a8a7479.js @@ -1 +1 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[103],{5103:(M,c,i)=>{i.r(c),i.d(c,{AboutModule:()=>y});var u=i(9808),p=i(2302),t=i(5e3),h=i(4670),l=i(2340),g=i(520);const Z=l.N.apiUrl;let A=(()=>{class n{constructor(o){this.http=o}getLatestVerisonString(){return this.http.get(Z+"/api/v1/update/version/latest")}}return n.\u0275fac=function(o){return new(o||n)(t.LFG(g.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),m=(()=>{class n{constructor(o){this.latestVesion$=o.getLatestVerisonString()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(A))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-info-list"]],inputs:{appInfo:"appInfo"},decls:42,vars:4,consts:[[1,"info-list"],[1,"info-item"],[1,"label"],[1,"desc"],["href","https://github.com/acgnhiki/blrec","target","_blank"],["href","https://github.com/acgnhiki/blrec/issues","target","_blank"],["href","https://choosealicense.com/licenses/gpl-3.0","target","_blank"],["href","mailto:acgnhiki@outlook.com","target","_blank"],["href","https://afdian.net/@acgnhiki","target","_blank"]],template:function(o,a){1&o&&(t.TgZ(0,"ul",0),t.TgZ(1,"li",1),t.TgZ(2,"span",2),t._uU(3,"\u5f53\u524d\u7248\u672c"),t.qZA(),t.TgZ(4,"span",3),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"li",1),t.TgZ(7,"span",2),t._uU(8,"\u6700\u65b0\u7248\u672c"),t.qZA(),t.TgZ(9,"span",3),t._uU(10),t.ALo(11,"async"),t.qZA(),t.qZA(),t.TgZ(12,"li",1),t.TgZ(13,"span",2),t._uU(14,"\u9879\u76ee\u4e3b\u9875"),t.qZA(),t.TgZ(15,"span",3),t.TgZ(16,"a",4),t._uU(17,"https://github.com/acgnhiki/blrec"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"li",1),t.TgZ(19,"span",2),t._uU(20,"\u95ee\u9898\u53cd\u9988"),t.qZA(),t.TgZ(21,"span",3),t.TgZ(22,"a",5),t._uU(23,"https://github.com/acgnhiki/blrec/issues"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"li",1),t.TgZ(25,"span",2),t._uU(26,"\u8bb8\u53ef\u534f\u8bae"),t.qZA(),t.TgZ(27,"span",3),t.TgZ(28,"a",6),t._uU(29,"GNU GPLv3"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(30,"li",1),t.TgZ(31,"span",2),t._uU(32,"\u8054\u7cfb\u65b9\u5f0f"),t.qZA(),t.TgZ(33,"span",3),t.TgZ(34,"a",7),t._uU(35,"acgnhiki@outlook.com"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(36,"li",1),t.TgZ(37,"span",2),t._uU(38,"\u6295\u5582\u8d5e\u52a9"),t.qZA(),t.TgZ(39,"span",3),t.TgZ(40,"a",8),t._uU(41,"https://afdian.net/@acgnhiki"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&o&&(t.xp6(5),t.Oqu(a.appInfo.version),t.xp6(5),t.Oqu(t.lcZ(11,2,a.latestVesion$)))},pipes:[u.Ov],styles:['@charset "UTF-8";.info-list[_ngcontent-%COMP%] .info-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)}.info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]:first-child{border-top:none}.info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}'],changeDetection:0}),n})(),d=(()=>{class n{constructor(o,a){this.changeDetector=o,this.route=a}ngOnInit(){this.route.data.subscribe(o=>{this.appInfo=o.appInfo,this.changeDetector.markForCheck()})}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(t.sBO),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-about"]],decls:4,vars:1,consts:[[1,"inner-content"],[1,"about-page"],[3,"appInfo"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"app-page-section"),t._UZ(3,"app-info-list",2),t.qZA(),t.qZA(),t.qZA()),2&o&&(t.xp6(3),t.Q6J("appInfo",a.appInfo))},directives:[h.g,m],styles:[".inner-content[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.inner-content[_ngcontent-%COMP%] .about-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}"]}),n})();var v=i(7221),T=i(7106),b=i(6089),C=i(5278);const s=l.N.apiUrl;let U=(()=>{class n{constructor(o){this.http=o}getAppInfo(){return this.http.get(s+"/api/v1/app/info")}getAppStatus(){return this.http.get(s+"/api/v1/app/status")}restartApp(){return this.http.post(s+"/api/v1/app/restart",null)}exitApp(){return this.http.post(s+"/api/v1/app/exit",null)}}return n.\u0275fac=function(o){return new(o||n)(t.LFG(g.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),f=(()=>{class n{constructor(o,a,r){this.logger=o,this.notification=a,this.appService=r}resolve(o,a){return this.appService.getAppInfo().pipe((0,T.X)(3,300),(0,v.K)(r=>{throw this.logger.error("Failed to get app info:",r),this.notification.error("\u83b7\u53d6\u540e\u7aef\u5e94\u7528\u4fe1\u606f\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return n.\u0275fac=function(o){return new(o||n)(t.LFG(b.Kf),t.LFG(C.zb),t.LFG(U))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const F=[{path:"",component:d,resolve:{appInfo:f}}];let I=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.Bz.forChild(F)],p.Bz]}),n})();var q=i(4466);let y=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[f],imports:[[u.ez,I,q.m]]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[103],{5103:(M,c,i)=>{i.r(c),i.d(c,{AboutModule:()=>y});var u=i(9808),p=i(2302),t=i(5e3),h=i(4670),l=i(2340),g=i(520);const Z=l.N.apiUrl;let A=(()=>{class n{constructor(o){this.http=o}getLatestVerisonString(){return this.http.get(Z+"/api/v1/update/version/latest")}}return n.\u0275fac=function(o){return new(o||n)(t.LFG(g.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),m=(()=>{class n{constructor(o){this.latestVesion$=o.getLatestVerisonString()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(A))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-info-list"]],inputs:{appInfo:"appInfo"},decls:42,vars:4,consts:[[1,"info-list"],[1,"info-item"],[1,"label"],[1,"desc"],["href","https://github.com/acgnhiki/blrec","target","_blank"],["href","https://github.com/acgnhiki/blrec/issues","target","_blank"],["href","https://choosealicense.com/licenses/gpl-3.0","target","_blank"],["href","mailto:acgnhiki@outlook.com","target","_blank"],["href","https://afdian.net/@acgnhiki","target","_blank"]],template:function(o,a){1&o&&(t.TgZ(0,"ul",0),t.TgZ(1,"li",1),t.TgZ(2,"span",2),t._uU(3,"\u5f53\u524d\u7248\u672c"),t.qZA(),t.TgZ(4,"span",3),t._uU(5),t.qZA(),t.qZA(),t.TgZ(6,"li",1),t.TgZ(7,"span",2),t._uU(8,"\u6700\u65b0\u7248\u672c"),t.qZA(),t.TgZ(9,"span",3),t._uU(10),t.ALo(11,"async"),t.qZA(),t.qZA(),t.TgZ(12,"li",1),t.TgZ(13,"span",2),t._uU(14,"\u9879\u76ee\u4e3b\u9875"),t.qZA(),t.TgZ(15,"span",3),t.TgZ(16,"a",4),t._uU(17,"https://github.com/acgnhiki/blrec"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"li",1),t.TgZ(19,"span",2),t._uU(20,"\u95ee\u9898\u53cd\u9988"),t.qZA(),t.TgZ(21,"span",3),t.TgZ(22,"a",5),t._uU(23,"https://github.com/acgnhiki/blrec/issues"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(24,"li",1),t.TgZ(25,"span",2),t._uU(26,"\u8bb8\u53ef\u534f\u8bae"),t.qZA(),t.TgZ(27,"span",3),t.TgZ(28,"a",6),t._uU(29,"GNU GPLv3"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(30,"li",1),t.TgZ(31,"span",2),t._uU(32,"\u8054\u7cfb\u65b9\u5f0f"),t.qZA(),t.TgZ(33,"span",3),t.TgZ(34,"a",7),t._uU(35,"acgnhiki@outlook.com"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(36,"li",1),t.TgZ(37,"span",2),t._uU(38,"\u6295\u5582\u8d5e\u52a9"),t.qZA(),t.TgZ(39,"span",3),t.TgZ(40,"a",8),t._uU(41,"https://afdian.net/@acgnhiki"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&o&&(t.xp6(5),t.Oqu(a.appInfo.version),t.xp6(5),t.Oqu(t.lcZ(11,2,a.latestVesion$)))},pipes:[u.Ov],styles:['@charset "UTF-8";.info-list[_ngcontent-%COMP%] .info-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)}.info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]:first-child{border-top:none}.info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}'],changeDetection:0}),n})(),d=(()=>{class n{constructor(o,a){this.changeDetector=o,this.route=a}ngOnInit(){this.route.data.subscribe(o=>{this.appInfo=o.appInfo,this.changeDetector.markForCheck()})}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(t.sBO),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-about"]],decls:4,vars:1,consts:[[1,"inner-content"],[1,"about-page"],[3,"appInfo"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"app-page-section"),t._UZ(3,"app-info-list",2),t.qZA(),t.qZA(),t.qZA()),2&o&&(t.xp6(3),t.Q6J("appInfo",a.appInfo))},directives:[h.g,m],styles:[".inner-content[_ngcontent-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.inner-content[_ngcontent-%COMP%] .about-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}"]}),n})();var v=i(7221),T=i(7106),b=i(2306),C=i(5278);const s=l.N.apiUrl;let U=(()=>{class n{constructor(o){this.http=o}getAppInfo(){return this.http.get(s+"/api/v1/app/info")}getAppStatus(){return this.http.get(s+"/api/v1/app/status")}restartApp(){return this.http.post(s+"/api/v1/app/restart",null)}exitApp(){return this.http.post(s+"/api/v1/app/exit",null)}}return n.\u0275fac=function(o){return new(o||n)(t.LFG(g.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),f=(()=>{class n{constructor(o,a,r){this.logger=o,this.notification=a,this.appService=r}resolve(o,a){return this.appService.getAppInfo().pipe((0,T.X)(3,300),(0,v.K)(r=>{throw this.logger.error("Failed to get app info:",r),this.notification.error("\u83b7\u53d6\u540e\u7aef\u5e94\u7528\u4fe1\u606f\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return n.\u0275fac=function(o){return new(o||n)(t.LFG(b.Kf),t.LFG(C.zb),t.LFG(U))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();const F=[{path:"",component:d,resolve:{appInfo:f}}];let I=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[p.Bz.forChild(F)],p.Bz]}),n})();var q=i(4466);let y=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[f],imports:[[u.ez,I,q.m]]}),n})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/622.03823b1714105423.js b/src/blrec/data/webapp/622.03823b1714105423.js new file mode 100644 index 0000000..1474267 --- /dev/null +++ b/src/blrec/data/webapp/622.03823b1714105423.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[622],{6622:(gr,xt,l)=>{l.r(xt),l.d(xt,{SettingsModule:()=>lr});var d=l(9808),a=l(4182),rt=l(7525),cn=l(1945),gn=l(7484),c=l(4546),S=l(1047),y=l(6462),Mt=l(6114),K=l(3868),t=l(5e3),at=l(404),un=l(925),Y=l(226);let dn=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[Y.vT,d.ez,un.ud,at.cg]]}),e})();var W=l(5197),x=l(7957),st=l(6042),L=l(647),bt=l(6699),Q=l(969),T=l(655),P=l(1721),H=l(8929),hn=l(8514),lt=l(1086),fn=l(6787),_n=l(591),Cn=l(2986),Tt=l(7545),$=l(7625),Pt=l(685),m=l(1894);const Z=["*"];function Fn(e,o){1&e&&t.Hsn(0)}const Zn=["nz-list-item-actions",""];function An(e,o){}function kn(e,o){1&e&&t._UZ(0,"em",3)}function Nn(e,o){if(1&e&&(t.TgZ(0,"li"),t.YNc(1,An,0,0,"ng-template",1),t.YNc(2,kn,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 Dn(e,o){}const St=function(e,o){return{$implicit:e,index:o}};function En(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Dn,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 Bn(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,En,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 In(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 qn(e,o){if(1&e&&(t.TgZ(0,"nz-list-header"),t.YNc(1,In,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzHeader)}}function Vn(e,o){1&e&&t._UZ(0,"div"),2&e&&t.Udp("min-height",53,"px")}function Ln(e,o){}function Qn(e,o){if(1&e&&(t.TgZ(0,"div",13),t.YNc(1,Ln,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 Jn(e,o){if(1&e&&(t.TgZ(0,"div",11),t.YNc(1,Qn,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 Un(e,o){if(1&e&&t._UZ(0,"nz-list-empty",14),2&e){const n=t.oxw();t.Q6J("nzNoResult",n.nzNoResult)}}function Yn(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,Yn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzFooter)}}function Wn(e,o){}function Hn(e,o){}function $n(e,o){if(1&e&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,Hn,0,0,"ng-template",6),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzPagination)}}const Gn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],jn=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Xn(e,o){if(1&e&&t._UZ(0,"ul",6),2&e){const n=t.oxw(2);t.Q6J("nzActions",n.nzActions)}}function Kn(e,o){if(1&e&&(t.YNc(0,Xn,1,1,"ul",5),t.Hsn(1)),2&e){const n=t.oxw();t.Q6J("ngIf",n.nzActions&&n.nzActions.length>0)}}function te(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 ne(e,o){if(1&e&&(t.ynx(0),t.YNc(1,te,2,1,"ng-container",8),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzContent)}}function ee(e,o){if(1&e&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,ne,2,1,"ng-container",7)),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.nzContent)}}function ie(e,o){1&e&&t.Hsn(0,3)}function oe(e,o){}function re(e,o){}function ae(e,o){}function se(e,o){}function le(e,o){if(1&e&&(t.YNc(0,oe,0,0,"ng-template",9),t.YNc(1,re,0,0,"ng-template",9),t.YNc(2,ae,0,0,"ng-template",9),t.YNc(3,se,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 ce(e,o){}function ge(e,o){}function ue(e,o){}function me(e,o){if(1&e&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,ue,0,0,"ng-template",9),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra)}}function pe(e,o){}function de(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,ce,0,0,"ng-template",9),t.YNc(3,ge,0,0,"ng-template",9),t.qZA(),t.YNc(4,me,2,1,"nz-list-item-extra",7),t.YNc(5,pe,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 he=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],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]"];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})(),wt=(()=>{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,Fn,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 H.xQ,this.inputActionChanges$=new H.xQ,this.contentChildrenChanges$=(0,hn.P)(()=>this.nzListItemActions?(0,lt.of)(null):this.ngZone.onStable.asObservable().pipe((0,Cn.q)(1),(0,Tt.w)(()=>this.contentChildrenChanges$))),(0,fn.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,$.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,wt,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})(),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 _n.X(this.nzItemLayout),this.destroy$=new H.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,$.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(Y.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:jn,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(Gn),t.YNc(0,Bn,3,1,"ng-template",null,0,t.W1O),t.YNc(2,qn,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,Vn,1,2,"div",3),t.YNc(7,Jn,2,2,"div",4),t.YNc(8,Un,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,Wn,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,$n,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,rt.W,mt,dt,ht,d.sg,d.tP,d.O5,Q.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,P.yF)()],e.prototype,"nzBordered",void 0),(0,T.gn)([(0,P.yF)()],e.prototype,"nzLoading",void 0),(0,T.gn)([(0,P.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:fe,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(he),t.YNc(0,Kn,2,1,"ng-template",null,0,t.W1O),t.YNc(2,ee,3,1,"ng-template",null,1,t.W1O),t.YNc(4,ie,1,0,"ng-template",null,2,t.W1O),t.YNc(6,le,4,4,"ng-template",null,3,t.W1O),t.YNc(8,de,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,Q.f,d.tP],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,P.yF)()],e.prototype,"nzNoFlex",void 0),e})(),ze=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[Y.vT,d.ez,rt.j,m.Jb,bt.Rt,Q.T,Pt.Xo]]}),e})();var tt=l(3677),ve=l(5737),k=l(592),Oe=l(8076),J=l(9439),kt=l(4832);const Nt=["*"];function xe(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 Me(e,o){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,xe,2,2,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExpandedIcon)}}function be(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 Te(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 Pe(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Te,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 H.xQ,this.nzConfigService.getConfigChangeEventForComponent(Dt).pipe((0,$.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,$.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(J.jY),t.Y36(t.sBO),t.Y36(Y.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,T.gn)([(0,J.oS)(),(0,P.yF)()],e.prototype,"nzAccordion",void 0),(0,T.gn)([(0,J.oS)(),(0,P.yF)()],e.prototype,"nzBordered",void 0),(0,T.gn)([(0,J.oS)(),(0,P.yF)()],e.prototype,"nzGhost",void 0),e})();const Bt="collapsePanel";let Se=(()=>{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 H.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,$.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(J.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,Me,2,1,"div",1),t.YNc(2,be,2,1,"ng-container",2),t.YNc(3,Pe,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,Q.f,L.Ls],encapsulation:2,data:{animation:[Oe.J_]},changeDetection:0}),(0,T.gn)([(0,P.yF)()],e.prototype,"nzActive",void 0),(0,T.gn)([(0,P.yF)()],e.prototype,"nzDisabled",void 0),(0,T.gn)([(0,J.oS)(),(0,P.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:[[Y.vT,d.ez,L.PV,Q.T,kt.g]]}),e})();var we=l(4466),N=l(7221),D=l(7106),E=l(2306),G=l(5278),B=l(5136);let It=(()=>{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,N.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(G.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var A=l(4850);let qt=(()=>{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,A.U)(r=>r.emailNotification),(0,D.X)(3,300),(0,N.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(G.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Vt=(()=>{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,A.U)(r=>r.serverchanNotification),(0,D.X)(3,300),(0,N.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(G.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,A.U)(r=>r.pushplusNotification),(0,D.X)(3,300),(0,N.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(G.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,A.U)(r=>r.webhooks),(0,D.X)(3,300),(0,N.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(G.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var _=l(2302),nt=l(2198),Jt=l(2014),Fe=l(7770),Ze=l(353),Ut=l(4704),C=l(2340);const f="RouterScrollService",Yt="defaultViewport",Rt="customViewport";let Ae=(()=>{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,nt.h)(u=>u instanceof _.OD||u instanceof _.m2),(0,Jt.R)((u,p)=>{var z,v;C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Updating the known scroll positions`);const q=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`),q[`${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`),q[`${p.id}-${Rt}`]=this.customViewportToScroll.scrollTop),{event:p,positions:q,trigger:p instanceof _.OD?p.navigationTrigger:u.trigger,idToRestore:p instanceof _.OD&&p.restoredState&&p.restoredState.navigationId+1||u.idToRestore,routeData:null===(v=null===(z=this.activatedRoute.firstChild)||void 0===z?void 0:z.routeConfig)||void 0===v?void 0:v.data}}),(0,nt.h)(u=>!!u.trigger),(0,Fe.QV)(Ze.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(V=>u.event.url.indexOf(V.partialRoute)>-1),z=p&&p.behaviour===Ut.g.KEEP_POSITION||!1,v=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Ut.g.KEEP_POSITION||!1,q=z||v;if(u.event instanceof _.m2){this.processRemoveQueue(this.removeQueue);const V=u.trigger&&"imperative"===u.trigger||!1,ln=!q||V;C.N.traceRouterScrolling&&(this.logger.trace(`${f}:: Existing strategy with keep position behavior? `,z),this.logger.trace(`${f}:: Route data with keep position behavior? `,v),this.logger.trace(`${f}:: Imperative trigger? `,V),this.logger.debug(`${f}:: Should scroll? `,ln)),ln?(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}-${Rt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(cr=>cr.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 j=l(4670),U=l(3523),ke=l(3496),Ne=l(1149),De=l(7242);const O=function Ee(e,o){var n={};return o=(0,De.Z)(o,3),(0,Ne.Z)(e,function(i,r,s){(0,ke.Z)(n,r,o(i,r,s))}),n};var _t=l(2994),Be=l(4884),Ie=l(4116),Wt=l(4825),Ct=l(4177),qe=l(8706),Ve=l(5202),Le=l(1986),Qe=l(7583),Re=Object.prototype.hasOwnProperty;var Ht=l(1854),$e=l(2134),$t=l(9727);function M(e){const o="result"in e;return O(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,$e.e)(g,s)],[i,i,{}]),(0,nt.h)(([,,s])=>!function We(e){if(null==e)return!0;if((0,qe.Z)(e)&&((0,Ct.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,Ve.Z)(e)||(0,Qe.Z)(e)||(0,Wt.Z)(e)))return!e.length;var o=(0,Ie.Z)(e);if("[object Map]"==o||"[object Set]"==o)return!e.size;if((0,Le.Z)(e))return!(0,Be.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,A.U)(p=>({prev:s,curr:g,diff:u,result:p[n]})),(0,N.K)(p=>(0,lt.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),X=(()=>{return(e=X||(X={}))[e.EACCES=13]="EACCES",e[e.ENOTDIR=20]="ENOTDIR",X;var e})(),Ge=l(520);const je=C.N.apiUrl;let Xe=(()=>{class e{constructor(n){this.http=n}validateDir(n){return this.http.post(je+"/api/v1/validation/dir",{path:n})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Ge.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\u6821\u9a8c "),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,A.U)(g=>{switch(g.code){case X.ENOTDIR:return{error:!0,notADirectory:!0};case X.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,N.K)(()=>(0,lt.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(Xe))},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\u4fdd\u5b58\u4f4d\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u6821\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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.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),et=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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,a.Fj,a.Q7,a.JJ,a.u,a.c5,d.O5,Et,Se,k.N8,k.Om,k.$Z,k.Uo,k._C,k.p0,d.sg,st.ix,ai.dQ,et.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,U.Z)(h.Pu),this.durationLimitOptions=(0,U.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=O(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,"\u4fdd\u5b58\u4f4d\u7f6e"),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,W.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})(),I=(()=>{class e{constructor(){}get actionable(){var n;return(null===(n=this.directive)||void 0===n?void 0:n.valueAccessor)instanceof y.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 y.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,U.Z)(h.O6),this.timeoutOptions=(0,U.Z)(h.D4),this.disconnectionTimeoutOptions=(0,U.Z)(h.$w),this.bufferOptions=(0,U.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=O(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,W.Vq,a.JJ,a.u,I,y.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=O(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,I,m.t3,c.iK,c.Fd,y.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=O(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,I,m.t3,c.iK,c.Fd,y.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=O(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,W.Vq,a.JJ,a.u,I,y.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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.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=O(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 Gt=l(7355);let yi=(()=>{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,Gt.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,Gt.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=n.group({consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=O(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:16,vars:10,consts:[["nz-form","",3,"formGroup"],["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){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),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",2),t._uU(8,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-select",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",5),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-select",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.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,I,m.t3,c.iK,c.Fd,W.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})(),wi=(()=>{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,et.w,L.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})(),Fi=(()=>{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,et.w,L.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 Zi=["innerContent"];let Ai=(()=>{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(Ae))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-settings"]],viewQuery:function(n,i){if(1&n&&t.Gf(Zi,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:[j.g,di,hi,fi,zi,vi,Si,yi,wi,Fi],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 ki=l(7298),Ni=l(1481),jt=l(3449),Di=l(6667),Xt=l(1999),Ei=l(2168);const Ii=function Bi(e,o,n,i){if(!(0,Xt.Z)(e))return e;for(var r=-1,s=(o=(0,jt.Z)(o,e)).length,g=s-1,u=e;null!=u&&++r0&&n(u)?o>1?nn(u,o-1,n,i,r):(0,Ui.Z)(r,u):i||(r[r.length]=u)}return r},$i=function Hi(e){return null!=e&&e.length?Wi(e,1):[]},ji=function Gi(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 en=Math.max;const no=function to(e){return function(){return e}};var on=l(2370),eo=l(9940),so=Date.now;const go=function lo(e){var o=0,n=0;return function(){var i=so(),r=16-(i-n);if(n=i,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}(on.Z?function(e,o){return(0,on.Z)(e,"toString",{configurable:!0,enumerable:!1,value:no(o),writable:!0})}:eo.Z),w=function uo(e){return go(function Xi(e,o,n){return o=en(void 0===o?e.length-1:o,0),function(){for(var i=arguments,r=-1,s=en(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=O(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,I,m.t3,c.iK,c.Fd,y.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 rn=l(6422),an=l(4843),po=l(13),ho=l(5778),fo=l(7079),_o=l(214);function vt(e){return(0,an.z)((0,nt.h)(()=>e.valid),(0,po.b)(300),function Oo(){return(0,an.z)((0,A.U)(e=>(0,rn.Z)(e,(o,n,i)=>{o[i]=function zo(e){return"string"==typeof e||!(0,Ct.Z)(e)&&(0,_o.Z)(e)&&"[object String]"==(0,fo.Z)(e)}(n)?n.trim():n},{})))}(),(0,ho.x)(Ht.Z))}function xo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Mo(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function bo(e,o){if(1&e&&(t.YNc(0,xo,2,0,"ng-container",17),t.YNc(1,Mo,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 To(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Po(e,o){1&e&&t.YNc(0,To,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function So(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function yo(e,o){1&e&&t.YNc(0,So,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function wo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Fo(e,o){1&e&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Zo(e,o){if(1&e&&(t.YNc(0,wo,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("pattern"))}}function Ao(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function ko(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function No(e,o){if(1&e&&(t.YNc(0,Ao,2,0,"ng-container",17),t.YNc(1,ko,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 Do=(()=>{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=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm),(0,A.U)(n=>(0,rn.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,bo,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,Po,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,yo,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,Zo,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,No,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,S.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=O(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,I,m.t3,c.iK,c.Fd,y.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 Eo(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 Bo=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.emailSettings=w(i,F.gP),this.notifierSettings=w(i,F._1),this.notificationSettings=w(i,F.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,Eo,6,3,"ng-template",1),t.qZA())},directives:[it.q,ot.Y,j.g,zt,Do,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 Io(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function qo(e,o){1&e&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function Vo(e,o){if(1&e&&(t.YNc(0,Io,2,0,"ng-container",6),t.YNc(1,qo,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 Lo=(()=>{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=O(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,Vo,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,S.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 Qo(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=w(i,F.gq),this.notifierSettings=w(i,F._1),this.notificationSettings=w(i,F.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,Qo,6,3,"ng-template",1),t.qZA())},directives:[it.q,ot.Y,j.g,zt,Lo,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 Uo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Yo(e,o){1&e&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function Ro(e,o){if(1&e&&(t.YNc(0,Uo,2,0,"ng-container",9),t.YNc(1,Yo,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 Wo=(()=>{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=O(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,Ro,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,S.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 Ho(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 $o=(()=>{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=w(i,F.q1),this.notifierSettings=w(i,F._1),this.notificationSettings=w(i,F.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,Ho,6,3,"ng-template",1),t.qZA())},directives:[it.q,ot.Y,j.g,zt,Wo,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 sn=l(4219);function Go(e,o){1&e&&t._UZ(0,"nz-list-empty")}function jo(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 Xo=(()=>{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,Go,1,0,"nz-list-empty",7),t.YNc(10,jo,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,st.ix,et.w,at.SY,L.Ls,d.O5,mt,d.sg,At,tt.wA,tt.cm,tt.RR,sn.wO,sn.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 Ko(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function tr(e,o){1&e&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function nr(e,o){if(1&e&&(t.YNc(0,Ko,2,0,"ng-container",27),t.YNc(1,tr,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 er(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,nr,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 ir={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 or=(()=>{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({},ir)),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,er,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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.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 rr(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 ar=[{path:"email-notification",component:Bo,resolve:{settings:qt}},{path:"serverchan-notification",component:Jo,resolve:{settings:Vt}},{path:"pushplus-notification",component:$o,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(x.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,rr,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:[it.q,ot.Y,j.g,Xo,or],styles:[""],changeDetection:0}),e})(),resolve:{settings:Qt}},{path:"",component:Ai,resolve:{settings:It}}];let sr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[_.Bz.forChild(ar)],_.Bz]}),e})(),lr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[It,qt,Vt,Lt,Qt],imports:[[d.ez,sr,a.u5,a.UX,rt.j,cn.KJ,gn.vh,c.U5,S.o7,y.m,Mt.Wr,K.aF,dn,W.LV,x.Qp,st.sL,L.PV,ze,tt.b1,at.cg,ve.S,k.HQ,ye,we.m]]}),e})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/622.dd6c6ac77555edc7.js b/src/blrec/data/webapp/622.dd6c6ac77555edc7.js deleted file mode 100644 index b917cc7..0000000 --- a/src/blrec/data/webapp/622.dd6c6ac77555edc7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[622],{6622:(gr,xt,l)=>{l.r(xt),l.d(xt,{SettingsModule:()=>lr});var d=l(9808),a=l(4182),rt=l(7525),cn=l(1945),gn=l(7484),c=l(4546),S=l(1047),y=l(6462),Mt=l(6114),K=l(3868),t=l(5e3),at=l(404),un=l(925),Y=l(226);let dn=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[Y.vT,d.ez,un.ud,at.cg]]}),e})();var W=l(5197),x=l(7957),st=l(6042),q=l(647),bt=l(6699),Q=l(969),T=l(655),P=l(1721),H=l(8929),hn=l(8514),lt=l(1086),fn=l(6787),_n=l(591),Cn=l(2986),Tt=l(7545),$=l(7625),Pt=l(685),m=l(1894);const A=["*"];function Fn(e,o){1&e&&t.Hsn(0)}const An=["nz-list-item-actions",""];function Zn(e,o){}function kn(e,o){1&e&&t._UZ(0,"em",3)}function Nn(e,o){if(1&e&&(t.TgZ(0,"li"),t.YNc(1,Zn,0,0,"ng-template",1),t.YNc(2,kn,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 Dn(e,o){}const St=function(e,o){return{$implicit:e,index:o}};function En(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Dn,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 Bn(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,En,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 In(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 Vn(e,o){if(1&e&&(t.TgZ(0,"nz-list-header"),t.YNc(1,In,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 Qn(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 Jn(e,o){if(1&e&&(t.TgZ(0,"div",11),t.YNc(1,Qn,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 Un(e,o){if(1&e&&t._UZ(0,"nz-list-empty",14),2&e){const n=t.oxw();t.Q6J("nzNoResult",n.nzNoResult)}}function Yn(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,Yn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzFooter)}}function Wn(e,o){}function Hn(e,o){}function $n(e,o){if(1&e&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,Hn,0,0,"ng-template",6),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzPagination)}}const Gn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],jn=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function Xn(e,o){if(1&e&&t._UZ(0,"ul",6),2&e){const n=t.oxw(2);t.Q6J("nzActions",n.nzActions)}}function Kn(e,o){if(1&e&&(t.YNc(0,Xn,1,1,"ul",5),t.Hsn(1)),2&e){const n=t.oxw();t.Q6J("ngIf",n.nzActions&&n.nzActions.length>0)}}function te(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 ne(e,o){if(1&e&&(t.ynx(0),t.YNc(1,te,2,1,"ng-container",8),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzContent)}}function ee(e,o){if(1&e&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,ne,2,1,"ng-container",7)),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.nzContent)}}function ie(e,o){1&e&&t.Hsn(0,3)}function oe(e,o){}function re(e,o){}function ae(e,o){}function se(e,o){}function le(e,o){if(1&e&&(t.YNc(0,oe,0,0,"ng-template",9),t.YNc(1,re,0,0,"ng-template",9),t.YNc(2,ae,0,0,"ng-template",9),t.YNc(3,se,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 ce(e,o){}function ge(e,o){}function ue(e,o){}function me(e,o){if(1&e&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,ue,0,0,"ng-template",9),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra)}}function pe(e,o){}function de(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,ce,0,0,"ng-template",9),t.YNc(3,ge,0,0,"ng-template",9),t.qZA(),t.YNc(4,me,2,1,"nz-list-item-extra",7),t.YNc(5,pe,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 he=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],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]"];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})(),wt=(()=>{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,Fn,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 H.xQ,this.inputActionChanges$=new H.xQ,this.contentChildrenChanges$=(0,hn.P)(()=>this.nzListItemActions?(0,lt.of)(null):this.ngZone.onStable.asObservable().pipe((0,Cn.q)(1),(0,Tt.w)(()=>this.contentChildrenChanges$))),(0,fn.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,$.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,wt,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,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: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})(),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 _n.X(this.nzItemLayout),this.destroy$=new H.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,$.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(Y.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:jn,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(Gn),t.YNc(0,Bn,3,1,"ng-template",null,0,t.W1O),t.YNc(2,Vn,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,Jn,2,2,"div",4),t.YNc(8,Un,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,Wn,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,$n,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,rt.W,mt,dt,ht,d.sg,d.tP,d.O5,Q.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,P.yF)()],e.prototype,"nzBordered",void 0),(0,T.gn)([(0,P.yF)()],e.prototype,"nzLoading",void 0),(0,T.gn)([(0,P.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:fe,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(he),t.YNc(0,Kn,2,1,"ng-template",null,0,t.W1O),t.YNc(2,ee,3,1,"ng-template",null,1,t.W1O),t.YNc(4,ie,1,0,"ng-template",null,2,t.W1O),t.YNc(6,le,4,4,"ng-template",null,3,t.W1O),t.YNc(8,de,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,Q.f,d.tP],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,P.yF)()],e.prototype,"nzNoFlex",void 0),e})(),ze=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[Y.vT,d.ez,rt.j,m.Jb,bt.Rt,Q.T,Pt.Xo]]}),e})();var tt=l(3677),ve=l(5737),k=l(592),Oe=l(8076),J=l(9439),kt=l(4832);const Nt=["*"];function xe(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 Me(e,o){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,xe,2,2,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExpandedIcon)}}function be(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 Te(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 Pe(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Te,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 H.xQ,this.nzConfigService.getConfigChangeEventForComponent(Dt).pipe((0,$.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,$.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(J.jY),t.Y36(t.sBO),t.Y36(Y.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,T.gn)([(0,J.oS)(),(0,P.yF)()],e.prototype,"nzAccordion",void 0),(0,T.gn)([(0,J.oS)(),(0,P.yF)()],e.prototype,"nzBordered",void 0),(0,T.gn)([(0,J.oS)(),(0,P.yF)()],e.prototype,"nzGhost",void 0),e})();const Bt="collapsePanel";let Se=(()=>{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 H.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,$.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(J.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,Me,2,1,"div",1),t.YNc(2,be,2,1,"ng-container",2),t.YNc(3,Pe,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,Q.f,q.Ls],encapsulation:2,data:{animation:[Oe.J_]},changeDetection:0}),(0,T.gn)([(0,P.yF)()],e.prototype,"nzActive",void 0),(0,T.gn)([(0,P.yF)()],e.prototype,"nzDisabled",void 0),(0,T.gn)([(0,J.oS)(),(0,P.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:[[Y.vT,d.ez,q.PV,Q.T,kt.g]]}),e})();var we=l(4466),N=l(7221),D=l(7106),E=l(6089),G=l(5278),B=l(5136);let It=(()=>{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,N.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(G.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var Z=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,Z.U)(r=>r.emailNotification),(0,D.X)(3,300),(0,N.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(G.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,Z.U)(r=>r.serverchanNotification),(0,D.X)(3,300),(0,N.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(G.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(["pushplusNotification"]).pipe((0,Z.U)(r=>r.pushplusNotification),(0,D.X)(3,300),(0,N.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(G.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,Z.U)(r=>r.webhooks),(0,D.X)(3,300),(0,N.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(G.zb),t.LFG(B.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var _=l(2302),nt=l(2198),Jt=l(2014),Fe=l(7770),Ae=l(353),Ut=l(4704),C=l(2340);const f="RouterScrollService",Yt="defaultViewport",Rt="customViewport";let Ze=(()=>{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,nt.h)(u=>u instanceof _.OD||u instanceof _.m2),(0,Jt.R)((u,p)=>{var z,v;C.N.traceRouterScrolling&&this.logger.trace(`${f}:: Updating the known scroll positions`);const V=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`),V[`${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`),V[`${p.id}-${Rt}`]=this.customViewportToScroll.scrollTop),{event:p,positions:V,trigger:p instanceof _.OD?p.navigationTrigger:u.trigger,idToRestore:p instanceof _.OD&&p.restoredState&&p.restoredState.navigationId+1||u.idToRestore,routeData:null===(v=null===(z=this.activatedRoute.firstChild)||void 0===z?void 0:z.routeConfig)||void 0===v?void 0:v.data}}),(0,nt.h)(u=>!!u.trigger),(0,Fe.QV)(Ae.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(L=>u.event.url.indexOf(L.partialRoute)>-1),z=p&&p.behaviour===Ut.g.KEEP_POSITION||!1,v=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Ut.g.KEEP_POSITION||!1,V=z||v;if(u.event instanceof _.m2){this.processRemoveQueue(this.removeQueue);const L=u.trigger&&"imperative"===u.trigger||!1,ln=!V||L;C.N.traceRouterScrolling&&(this.logger.trace(`${f}:: Existing strategy with keep position behavior? `,z),this.logger.trace(`${f}:: Route data with keep position behavior? `,v),this.logger.trace(`${f}:: Imperative trigger? `,L),this.logger.debug(`${f}:: Should scroll? `,ln)),ln?(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}-${Rt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(cr=>cr.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 j=l(4670),U=l(3523),ke=l(3496),Ne=l(1149),De=l(7242);const O=function Ee(e,o){var n={};return o=(0,De.Z)(o,3),(0,Ne.Z)(e,function(i,r,s){(0,ke.Z)(n,r,o(i,r,s))}),n};var _t=l(2994),Be=l(4884),Ie=l(4116),Wt=l(4825),Ct=l(4177),Ve=l(8706),Le=l(5202),qe=l(1986),Qe=l(7583),Re=Object.prototype.hasOwnProperty;var Ht=l(1854),$e=l(2134),$t=l(9727);function M(e){const o="result"in e;return O(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,$e.e)(g,s)],[i,i,{}]),(0,nt.h)(([,,s])=>!function We(e){if(null==e)return!0;if((0,Ve.Z)(e)&&((0,Ct.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,Le.Z)(e)||(0,Qe.Z)(e)||(0,Wt.Z)(e)))return!e.length;var o=(0,Ie.Z)(e);if("[object Map]"==o||"[object Set]"==o)return!e.size;if((0,qe.Z)(e))return!(0,Be.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,Z.U)(p=>({prev:s,curr:g,diff:u,result:p[n]})),(0,N.K)(p=>(0,lt.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),X=(()=>{return(e=X||(X={}))[e.EACCES=13]="EACCES",e[e.ENOTDIR=20]="ENOTDIR",X;var e})(),Ge=l(520);const je=C.N.apiUrl;let Xe=(()=>{class e{constructor(n){this.http=n}validateDir(n){return this.http.post(je+"/api/v1/validation/dir",{path:n})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Ge.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\u6821\u9a8c "),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,Z.U)(g=>{switch(g.code){case X.ENOTDIR:return{error:!0,notADirectory:!0};case X.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,N.K)(()=>(0,lt.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(Xe))},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\u4fdd\u5b58\u4f4d\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u6821\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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.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),et=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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,a.Fj,a.Q7,a.JJ,a.u,a.c5,d.O5,Et,Se,k.N8,k.Om,k.$Z,k.Uo,k._C,k.p0,d.sg,st.ix,ai.dQ,et.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,U.Z)(h.Pu),this.durationLimitOptions=(0,U.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=O(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,"\u4fdd\u5b58\u4f4d\u7f6e"),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,W.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})(),I=(()=>{class e{constructor(){}get actionable(){var n;return(null===(n=this.directive)||void 0===n?void 0:n.valueAccessor)instanceof y.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 y.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,U.Z)(h.O6),this.timeoutOptions=(0,U.Z)(h.D4),this.disconnectionTimeoutOptions=(0,U.Z)(h.$w),this.bufferOptions=(0,U.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=O(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,W.Vq,a.JJ,a.u,I,y.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:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=O(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:26,vars:11,consts:[["nz-form","",3,"formGroup"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u9001\u793c\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","recordGiftSend"],["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\u9001\u793c"),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\u4e0a\u8230"),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 Super Chat"),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,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),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,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(24,"nz-form-control",3),t._UZ(25,"nz-switch",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.recordGiftSend?i.recordGiftSendControl:"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,I,m.t3,c.iK,c.Fd,y.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=O(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,I,m.t3,c.iK,c.Fd,y.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:"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}],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=O(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,W.Vq,a.JJ,a.u,I,y.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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.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:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.Fd,S.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=O(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 Gt=l(7355);let yi=(()=>{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,Gt.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,Gt.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=n.group({consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=O(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:16,vars:10,consts:[["nz-form","",3,"formGroup"],["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){1&n&&(t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),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",2),t._uU(8,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(9,"nz-form-control",3),t._UZ(10,"nz-select",6),t.qZA(),t.qZA(),t.TgZ(11,"nz-form-item",5),t.TgZ(12,"nz-form-label",2),t._uU(13,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(14,"nz-form-control",3),t._UZ(15,"nz-select",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.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,I,m.t3,c.iK,c.Fd,W.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})(),wi=(()=>{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,et.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})(),Fi=(()=>{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,et.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 Ai=["innerContent"];let Zi=(()=>{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(Ze))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-settings"]],viewQuery:function(n,i){if(1&n&&t.Gf(Ai,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:[j.g,di,hi,fi,zi,vi,Si,yi,wi,Fi],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 ki=l(7298),Ni=l(1481),jt=l(3449),Di=l(6667),Xt=l(1999),Ei=l(2168);const Ii=function Bi(e,o,n,i){if(!(0,Xt.Z)(e))return e;for(var r=-1,s=(o=(0,jt.Z)(o,e)).length,g=s-1,u=e;null!=u&&++r0&&n(u)?o>1?nn(u,o-1,n,i,r):(0,Ui.Z)(r,u):i||(r[r.length]=u)}return r},$i=function Hi(e){return null!=e&&e.length?Wi(e,1):[]},ji=function Gi(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 en=Math.max;const no=function to(e){return function(){return e}};var on=l(2370),eo=l(9940),so=Date.now;const go=function lo(e){var o=0,n=0;return function(){var i=so(),r=16-(i-n);if(n=i,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}(on.Z?function(e,o){return(0,on.Z)(e,"toString",{configurable:!0,enumerable:!1,value:no(o),writable:!0})}:eo.Z),w=function uo(e){return go(function Xi(e,o,n){return o=en(void 0===o?e.length-1:o,0),function(){for(var i=arguments,r=-1,s=en(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=O(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,I,m.t3,c.iK,c.Fd,y.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 rn=l(6422),an=l(4843),po=l(13),ho=l(5778),fo=l(7079),_o=l(214);function vt(e){return(0,an.z)((0,nt.h)(()=>e.valid),(0,po.b)(300),function Oo(){return(0,an.z)((0,Z.U)(e=>(0,rn.Z)(e,(o,n,i)=>{o[i]=function zo(e){return"string"==typeof e||!(0,Ct.Z)(e)&&(0,_o.Z)(e)&&"[object String]"==(0,fo.Z)(e)}(n)?n.trim():n},{})))}(),(0,ho.x)(Ht.Z))}function xo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Mo(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function bo(e,o){if(1&e&&(t.YNc(0,xo,2,0,"ng-container",17),t.YNc(1,Mo,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 To(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Po(e,o){1&e&&t.YNc(0,To,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function So(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function yo(e,o){1&e&&t.YNc(0,So,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function wo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Fo(e,o){1&e&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Ao(e,o){if(1&e&&(t.YNc(0,wo,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("pattern"))}}function Zo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function ko(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function No(e,o){if(1&e&&(t.YNc(0,Zo,2,0,"ng-container",17),t.YNc(1,ko,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 Do=(()=>{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=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(vt(this.settingsForm),(0,Z.U)(n=>(0,rn.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,bo,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,Po,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,yo,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,Ao,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,No,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,S.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=O(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,I,m.t3,c.iK,c.Fd,y.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 Eo(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 Bo=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.emailSettings=w(i,F.gP),this.notifierSettings=w(i,F._1),this.notificationSettings=w(i,F.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,Eo,6,3,"ng-template",1),t.qZA())},directives:[it.q,ot.Y,j.g,zt,Do,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 Io(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function Vo(e,o){1&e&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function Lo(e,o){if(1&e&&(t.YNc(0,Io,2,0,"ng-container",6),t.YNc(1,Vo,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 qo=(()=>{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=O(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,Lo,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,S.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 Qo(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=w(i,F.gq),this.notifierSettings=w(i,F._1),this.notificationSettings=w(i,F.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,Qo,6,3,"ng-template",1),t.qZA())},directives:[it.q,ot.Y,j.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 Uo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Yo(e,o){1&e&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function Ro(e,o){if(1&e&&(t.YNc(0,Uo,2,0,"ng-container",9),t.YNc(1,Yo,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 Wo=(()=>{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=O(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,Ro,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,S.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 Ho(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 $o=(()=>{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=w(i,F.q1),this.notifierSettings=w(i,F._1),this.notificationSettings=w(i,F.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,Ho,6,3,"ng-template",1),t.qZA())},directives:[it.q,ot.Y,j.g,zt,Wo,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 sn=l(4219);function Go(e,o){1&e&&t._UZ(0,"nz-list-empty")}function jo(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 Xo=(()=>{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,Go,1,0,"nz-list-empty",7),t.YNc(10,jo,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,st.ix,et.w,at.SY,q.Ls,d.O5,mt,d.sg,Zt,tt.wA,tt.cm,tt.RR,sn.wO,sn.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 Ko(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function tr(e,o){1&e&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function nr(e,o){if(1&e&&(t.YNc(0,Ko,2,0,"ng-container",18),t.YNc(1,tr,2,0,"ng-container",18)),2&e){const n=o.$implicit;t.Q6J("ngIf",n.hasError("required")),t.xp6(1),t.Q6J("ngIf",n.hasError("pattern"))}}function er(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,nr,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\u64ad\u6587\u4ef6\u5b8c\u6210"),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,"\u786c\u76d8\u7a7a\u95f4\u4e0d\u8db3"),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,"\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 ir={url:"",liveBegan:!0,liveEnded:!0,roomChange:!0,spaceNoEnough:!0,fileCompleted:!0,errorOccurred:!0};let or=(()=>{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:[""],fileCompleted:[""],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({},ir)),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","fileCompleted"],["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,er,40,4,"ng-container",1),t.qZA()),2&n&&t.Q6J("nzTitle",i.title)("nzOkText",i.okButtonText)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[x.du,x.Hf,a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.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 rr(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 ar=[{path:"email-notification",component:Bo,resolve:{settings:Vt}},{path:"serverchan-notification",component:Jo,resolve:{settings:Lt}},{path:"pushplus-notification",component:$o,resolve:{settings:qt}},{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(x.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,rr,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:[it.q,ot.Y,j.g,Xo,or],styles:[""],changeDetection:0}),e})(),resolve:{settings:Qt}},{path:"",component:Zi,resolve:{settings:It}}];let sr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[_.Bz.forChild(ar)],_.Bz]}),e})(),lr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[It,Vt,Lt,qt,Qt],imports:[[d.ez,sr,a.u5,a.UX,rt.j,cn.KJ,gn.vh,c.U5,S.o7,y.m,Mt.Wr,K.aF,dn,W.LV,x.Qp,st.sL,q.PV,ze,tt.b1,at.cg,ve.S,k.HQ,ye,we.m]]}),e})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/853.5697121b2e654d67.js b/src/blrec/data/webapp/853.84ee7e1d7cff8913.js similarity index 55% rename from src/blrec/data/webapp/853.5697121b2e654d67.js rename to src/blrec/data/webapp/853.84ee7e1d7cff8913.js index a704f9d..df432bd 100644 --- a/src/blrec/data/webapp/853.5697121b2e654d67.js +++ b/src/blrec/data/webapp/853.84ee7e1d7cff8913.js @@ -1 +1 @@ -(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[853],{1853:(Bt,et,l)=>{"use strict";l.r(et),l.d(et,{TasksModule:()=>Os});var p=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(p.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ut=(()=>{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),M=l(7484),S=l(647),_=l(655),k=l(8929),v=l(7625),Y=l(8693),C=l(1721),y=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(y.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:[p.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:[[y.vT,p.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 pe=(()=>{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})(),ue=(()=>{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:[p.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:[ue,p.O5,pe,p.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:[[y.vT,p.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 be=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,p.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),b=l(9439);function Ae(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 Me(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,Me,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,Ae,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(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,o){1&e&&t.YNc(0,Ee,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[p.O5,S.Ls,F.f],encapsulation:2,data:{animation:[Se.Rq]},changeDetection:0}),(0,_.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzCloseable",void 0),(0,_.gn)([(0,b.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:[[y.vT,p.ez,S.PV,F.T]]}),n})();var st=l(4147),yt=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",pn=new Map([["success","check"],["exception","close"]]),un=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=pn.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?un.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(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,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:[p.O5,S.Ls,F.f,p.mk,p.tP,p.sg,p.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,b.oS)()],n.prototype,"nzShowInfo",void 0),(0,_.gn)([(0,b.oS)()],n.prototype,"nzStrokeColor",void 0),(0,_.gn)([(0,b.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,b.oS)(),(0,C.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,_.gn)([(0,b.oS)(),(0,C.Rn)()],n.prototype,"nzGapDegree",void 0),(0,_.gn)([(0,b.oS)()],n.prototype,"nzGapPosition",void 0),(0,_.gn)([(0,b.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:[[y.vT,p.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:[[p.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 yn(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 bn=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,p.dv)(this.locale_id,p.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:[p.O5,p.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(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,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,yn,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:[bn,F.f,p.PC,p.O5],encapsulation:2,changeDetection:0}),n})(),An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,p.ez,Vt.ud,F.T,mn]]}),n})();var jt=l(6787),Mn=l(1059),Ct=l(7545),Dn=l(7138),x=l(2994),Zn=l(6947),bt=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=bt.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,Mn.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(bt.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(b.jY),t.Y36(t.sBO),t.Y36(bt.r3),t.Y36(y.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:[p.O5,F.f,p.sg,p.tP],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,C.yF)(),(0,b.oS)()],n.prototype,"nzBordered",void 0),(0,_.gn)([(0,b.oS)()],n.prototype,"nzColumn",void 0),(0,_.gn)([(0,b.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,b.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:[[y.vT,p.ez,F.T,Vt.ud]]}),n})();var po=l(4466),at=l(2302),N=l(1086),uo=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 uo.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),At=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 At.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,At.ft)(this.observable,new At.IY(this))}}var te=l(534),rt=l(7221),Mt=l(7106),ee=l(5278),vo=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})(),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})(),yo=l(520);const h=vo.N.apiUrl;let Dt=(()=>{class n{constructor(e){this.http=e}getAllTaskData(e=D.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(yo.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var bo=l(7512),So=l(5545);let Ao=(()=>{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:[M.bd,Ht,St],styles:[""],changeDetection:0}),n})();function Mo(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,Mo,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:[M.bd,Ht,St,p.O5,p.RF,p.n9,p.sg,nt],pipes:[p.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:[M.bd,Sn],pipes:[ne,oe,Zt,p.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:[M.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:[M.bd,B.N8,B.Om,B.$Z,p.sg,B.Uo,B._C,B.qD,B.p0],pipes:[Ot,p.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,Mt.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:[bo.q,So.Y,p.O5,Ao,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: 1059.98px)","(min-width: 1060px)"];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),pt=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 pi(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 ui(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,pi,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:D.ALL},{label:"\u5f55\u5236\u4e2d",value:D.RECORDING},{label:"\u5f55\u5236\u5173",value:D.RECORDER_DISABLED},{label:"\u505c\u6b62",value:D.STOPPED},{label:"\u76f4\u64ad",value:D.LIVING},{label:"\u8f6e\u64ad",value:D.ROUNDING},{label:"\u95f2\u7f6e",value:D.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,ui,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:[p.O5,p.tP,qt.g,zt.Dg,d.JJ,d.On,p.sg,zt.Of,zt.Bq,yt.Vq,Nt.w,tt.gB,tt.ke,tt.Zp,S.Ls,ht.ix,K.wA,K.cm,K.RR,pt.wO,pt.r9,pt.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}.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 yi(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 bi(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 Ai=(()=>{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,yi,20,22,"div",1),t.YNc(2,bi,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:[p.RF,p.n9,it.SY,$t],pipes:[ne,oe,Zt,p.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),Mi=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",57),t.YNc(1,Zi,2,0,"ng-container",57)),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",57),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\u9001\u793c"),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\u4e0a\u8230"),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.recordGuardBuy=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.recordGuardBuy=s?a.globalSettings.danmaku.recordGuardBuy: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 Super Chat"),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.recordSuperChat=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.recordSuperChat=s?a.globalSettings.danmaku.recordSuperChat: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,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),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.danmuUname=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.danmuUname=s?a.globalSettings.danmaku.danmuUname: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,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),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.saveRawDanmaku=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.saveRawDanmaku=s?a.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(104,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(105,"div",40),t.TgZ(106,"h2"),t._uU(107,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(108,"nz-form-item",10),t.TgZ(109,"nz-form-label",41),t._uU(110,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(111,"nz-form-control",19),t.TgZ(112,"nz-switch",42),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=s}),t.qZA(),t.qZA(),t.TgZ(113,"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(114,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(115,"nz-form-item",10),t.TgZ(116,"nz-form-label",43),t._uU(117,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),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.remuxToMp4=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.remuxToMp4=s?a.globalSettings.postprocessing.remuxToMp4: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",11),t._uU(124,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(125,wi,5,0,"ng-template",null,45,t.W1O),t.TgZ(127,"nz-form-control",12),t.TgZ(128,"nz-select",46),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=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.deleteSource=s?a.globalSettings.postprocessing.deleteSource:null}),t._uU(130,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(131,"div",47),t.TgZ(132,"h2"),t._uU(133,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(134,"nz-form-item",48),t.TgZ(135,"nz-form-label",49),t._uU(136,"User Agent"),t.qZA(),t.TgZ(137,"nz-form-control",50),t.TgZ(138,"textarea",51,52),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.userAgent=s}),t.qZA(),t.qZA(),t.YNc(140,Ni,1,1,"ng-template",null,8,t.W1O),t.TgZ(142,"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(143,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(144,"nz-form-item",48),t.TgZ(145,"nz-form-label",53),t._uU(146,"Cookie"),t.qZA(),t.TgZ(147,"nz-form-control",54),t.TgZ(148,"textarea",55,56),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.cookie=s}),t.qZA(),t.qZA(),t.TgZ(150,"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(151,"\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(126),a=t.MAs(139),c=t.MAs(149),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.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,Mi.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\u9001\u793c\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",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,152,76,"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,p.O5,Qt.Ie,yt.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 ps=(()=>{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,Mt.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:[M.bd,ge,M.l7,at.yS,it.SY,Ai,ot.Dz,p.RF,p.n9,nt,S.Ls,Nt.w,p.O5,vt.i,d.JJ,d.On,Ii,K.cm,K.RR,p.tP,pt.wO,pt.r9,st.Vz,st.SQ],pipes:[p.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 us(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,us,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:[p.O5,Ut.p9,p.sg,ps],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 ys=(()=>{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,p.O5,p.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*bs(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 As(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 Ms(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:D.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,Mt.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,As,1,2,"nz-spin",1),t.YNc(2,Ms,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,p.O5,Rt.W,ms,ht.ix,_s.dQ,Nt.w,it.SY,S.Ls,ys],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:[[p.ez,d.u5,d.UX,q.xu,ut,w.Jb,M.vh,Jt,ot.Rt,S.PV,Jt,it.cg,G,vt.m,K.b1,ht.sL,V.Qp,E.U5,tt.o7,Qt.Wr,be,zt.aF,qt.S,Ut.Xo,Rt.j,Je,st.BL,yt.LV,dn,B.HQ,An,co,Zs,po.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"]}},p={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,ut,w,M,S,_,k,v,Y,C,y,L,W,nt,G,ot,xt,$,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=[],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,M=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",ut=!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)u[0]=0,y=u[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);u[0]=xt(X*gt)/gt,u[0]===H&&m<8&&void 0===f.exponent&&(u[0]=1,m++),y=u[1]=10===U&&1===m?R?"kb":"kB":l[G][R?"bits":"bytes"][m],L&&(u[1]="jedec"===G?u[1].charAt(0):m>0?u[1].replace(/B$/,""):u[1],et.test(u[1])&&(u[0]=Math.floor(u[0]),u[1]=""))}if(_&&(u[0]=-u[0]),$>0&&(u[0]=u[0].toPrecision($)),u[1]=ot[u[1]]||u[1],!0===M?u[0]=u[0].toLocaleString():M.length>0?u[0]=u[0].toLocaleString(M,S):W.length>0&&(u[0]=u[0].toString().replace(".",W)),Y&&!1===Number.isInteger(u[0])&&C>0){var dt=W||".",mt=u[0].toString().split(dt),_t=mt[1]||"",ft=_t.length,kt=C-ft;u[0]="".concat(mt[0]).concat(dt).concat(_t.padEnd(ft+kt,"0"))}return ut&&(u[1]=w[m]?w[m]:p[G][m]+(R?"bit":"byte")+(1===u[0]?"":"s")),"array"===v?u:"object"===v?{value:u[0],symbol:u[1],exponent:m,unit:y}:u.join(nt)}return q.partial=function(t){return function(m){return q(m,t)}},q}()}}]); \ No newline at end of file +(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/index.html b/src/blrec/data/webapp/index.html index f162f2a..52edff3 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.5e1124f1a8c47971.js b/src/blrec/data/webapp/main.5e1124f1a8c47971.js new file mode 100644 index 0000000..5d5c81a --- /dev/null +++ b/src/blrec/data/webapp/main.5e1124f1a8c47971.js @@ -0,0 +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(622)]).then(p.bind(p,6622)).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/main.7a4da5a70e652c3f.js b/src/blrec/data/webapp/main.7a4da5a70e652c3f.js deleted file mode 100644 index 15ac60e..0000000 --- a/src/blrec/data/webapp/main.7a4da5a70e652c3f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[179],{4704:(_t,we,p)=>{p.d(we,{g:()=>a});var a=(()=>{return(s=a||(a={})).KEEP_POSITION="KEEP_POSITION",s.GO_TO_TOP="GO_TO_TOP",a;var s})()},2323:(_t,we,p)=>{p.d(we,{V:()=>s});var a=p(5e3);let s=(()=>{class W{constructor(){this.impl=localStorage}hasData(J){return null!==this.getData(J)}getData(J){return this.impl.getItem(J)}setData(J,_){this.impl.setItem(J,_)}removeData(J){this.impl.removeItem(J)}clearData(){this.impl.clear()}}return W.\u0275fac=function(J){return new(J||W)},W.\u0275prov=a.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})()},2340:(_t,we,p)=>{p.d(we,{N:()=>s});const s={production:!0,apiUrl:"",webSocketUrl:"",ngxLoggerLevel:p(6089)._z.DEBUG,traceRouterScrolling:!1}},434:(_t,we,p)=>{var a=p(2313),s=p(5e3),W=p(4182),ne=p(520),J=p(5113),_=p(6360),K=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),_e=p(3753),$e=p(1086),Ve=p(1961),xe=p(8929),Ce=p(6498),gt=p(7876);const pt=new Ce.y(gt.Z);var ct=p(6787),ye=p(4850),Ge=p(2198),et=p(7545),ze=p(2536),q=p(2986),pe=p(2994),ue=p(8583);const fe="Service workers are disabled or not supported by this browser";class Oe{constructor(vt){if(this.serviceWorker=vt,vt){const ut=(0,_e.R)(vt,"controllerchange").pipe((0,ye.U)(()=>vt.controller)),Ft=(0,B.P)(()=>(0,$e.of)(vt.controller)),en=(0,Ve.z)(Ft,ut);this.worker=en.pipe((0,Ge.h)(Fn=>!!Fn)),this.registration=this.worker.pipe((0,et.w)(()=>vt.getRegistration()));const Qn=(0,_e.R)(vt,"message").pipe((0,ye.U)(Fn=>Fn.data)).pipe((0,Ge.h)(Fn=>Fn&&Fn.type)).pipe(function Je(Te){return Te?(0,ze.O)(()=>new xe.xQ,Te):(0,ze.O)(new xe.xQ)}());Qn.connect(),this.events=Qn}else this.worker=this.events=this.registration=function ke(Te){return(0,B.P)(()=>(0,ee._)(new Error(Te)))}(fe)}postMessage(vt,se){return this.worker.pipe((0,q.q)(1),(0,pe.b)(ut=>{ut.postMessage(Object.assign({action:vt},se))})).toPromise().then(()=>{})}postMessageWithOperation(vt,se,ut){const Ft=this.waitForOperationCompleted(ut),en=this.postMessage(vt,se);return Promise.all([en,Ft]).then(([,Tn])=>Tn)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(vt){let se;return se="string"==typeof vt?ut=>ut.type===vt:ut=>vt.includes(ut.type),this.events.pipe((0,Ge.h)(se))}nextEventOfType(vt){return this.eventsOfType(vt).pipe((0,q.q)(1))}waitForOperationCompleted(vt){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Ge.h)(se=>se.nonce===vt),(0,q.q)(1),(0,ye.U)(se=>{if(void 0!==se.result)return se.result;throw new Error(se.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let We=(()=>{class Te{constructor(se){if(this.sw=se,this.subscriptionChanges=new xe.xQ,!se.isEnabled)return this.messages=pt,this.notificationClicks=pt,void(this.subscription=pt);this.messages=this.sw.eventsOfType("PUSH").pipe((0,ye.U)(Ft=>Ft.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,ye.U)(Ft=>Ft.data)),this.pushManager=this.sw.registration.pipe((0,ye.U)(Ft=>Ft.pushManager));const ut=this.pushManager.pipe((0,et.w)(Ft=>Ft.getSubscription()));this.subscription=(0,ct.T)(ut,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(se){if(!this.sw.isEnabled)return Promise.reject(new Error(fe));const ut={userVisibleOnly:!0};let Ft=this.decodeBase64(se.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),en=new Uint8Array(new ArrayBuffer(Ft.length));for(let Tn=0;TnTn.subscribe(ut)),(0,q.q)(1)).toPromise().then(Tn=>(this.subscriptionChanges.next(Tn),Tn))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,q.q)(1),(0,et.w)(ut=>{if(null===ut)throw new Error("Not subscribed to push notifications.");return ut.unsubscribe().then(Ft=>{if(!Ft)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(fe))}decodeBase64(se){return atob(se)}}return Te.\u0275fac=function(se){return new(se||Te)(s.LFG(Oe))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Re=(()=>{class Te{constructor(se){if(this.sw=se,!se.isEnabled)return this.versionUpdates=pt,this.available=pt,this.activated=pt,void(this.unrecoverable=pt);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,Ge.h)(ut=>"VERSION_READY"===ut.type),(0,ye.U)(ut=>({type:"UPDATE_AVAILABLE",current:ut.currentVersion,available:ut.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(fe));const se=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:se},se)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(fe));const se=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:se},se)}}return Te.\u0275fac=function(se){return new(se||Te)(s.LFG(Oe))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Se{}const le=new s.OlP("NGSW_REGISTER_SCRIPT");function ce(Te,vt,se,ut){return()=>{if(!(0,K.NF)(ut)||!("serviceWorker"in navigator)||!1===se.enabled)return;let en;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof se.registrationStrategy)en=se.registrationStrategy();else{const[Gt,...jn]=(se.registrationStrategy||"registerWhenStable:30000").split(":");switch(Gt){case"registerImmediately":en=(0,$e.of)(null);break;case"registerWithDelay":en=qe(+jn[0]||0);break;case"registerWhenStable":en=jn[0]?(0,ct.T)(Ye(Te),qe(+jn[0])):Ye(Te);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${se.registrationStrategy}`)}}Te.get(s.R0b).runOutsideAngular(()=>en.pipe((0,q.q)(1)).subscribe(()=>navigator.serviceWorker.register(vt,{scope:se.scope}).catch(Gt=>console.error("Service worker registration failed with:",Gt))))}}function qe(Te){return(0,$e.of)(null).pipe((0,ue.g)(Te))}function Ye(Te){return Te.get(s.z2F).isStable.pipe((0,Ge.h)(se=>se))}function ot(Te,vt){return new Oe((0,K.NF)(vt)&&!1!==Te.enabled?navigator.serviceWorker:void 0)}let yt=(()=>{class Te{static register(se,ut={}){return{ngModule:Te,providers:[{provide:le,useValue:se},{provide:Se,useValue:ut},{provide:Oe,useFactory:ot,deps:[Se,s.Lbi]},{provide:s.ip1,useFactory:ce,deps:[s.zs3,le,Se,s.Lbi],multi:!0}]}}}return Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[We,Re]}),Te})();var st=p(6089),St=p(4170),tt=p(7625),Et=p(655),Wt=p(4090),sn=p(1721),gn=p(4219),Yt=p(925),hn=p(647),_n=p(226);const Cn=["*"],Dt=["nz-sider-trigger",""];function Sn(Te,vt){}function ln(Te,vt){if(1&Te&&(s.ynx(0),s.YNc(1,Sn,0,0,"ng-template",3),s.BQk()),2&Te){const se=s.oxw(),ut=s.MAs(5);s.xp6(1),s.Q6J("ngTemplateOutlet",se.nzZeroTrigger||ut)}}function Mn(Te,vt){}function Xe(Te,vt){if(1&Te&&(s.ynx(0),s.YNc(1,Mn,0,0,"ng-template",3),s.BQk()),2&Te){const se=s.oxw(),ut=s.MAs(3);s.xp6(1),s.Q6J("ngTemplateOutlet",se.nzTrigger||ut)}}function x(Te,vt){if(1&Te&&s._UZ(0,"i",5),2&Te){const se=s.oxw(2);s.Q6J("nzType",se.nzCollapsed?"right":"left")}}function z(Te,vt){if(1&Te&&s._UZ(0,"i",5),2&Te){const se=s.oxw(2);s.Q6J("nzType",se.nzCollapsed?"left":"right")}}function P(Te,vt){if(1&Te&&(s.YNc(0,x,1,1,"i",4),s.YNc(1,z,1,1,"i",4)),2&Te){const se=s.oxw();s.Q6J("ngIf",!se.nzReverseArrow),s.xp6(1),s.Q6J("ngIf",se.nzReverseArrow)}}function me(Te,vt){1&Te&&s._UZ(0,"i",6)}function j(Te,vt){if(1&Te){const se=s.EpF();s.TgZ(0,"div",2),s.NdJ("click",function(){s.CHM(se);const Ft=s.oxw();return Ft.setCollapsed(!Ft.nzCollapsed)}),s.qZA()}if(2&Te){const se=s.oxw();s.Q6J("matchBreakPoint",se.matchBreakPoint)("nzCollapsedWidth",se.nzCollapsedWidth)("nzCollapsed",se.nzCollapsed)("nzBreakpoint",se.nzBreakpoint)("nzReverseArrow",se.nzReverseArrow)("nzTrigger",se.nzTrigger)("nzZeroTrigger",se.nzZeroTrigger)("siderWidth",se.widthSetting)}}let ge=(()=>{class Te{constructor(se,ut){this.elementRef=se,this.renderer=ut,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}}return Te.\u0275fac=function(se){return new(se||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(se,ut){1&se&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ze=(()=>{class Te{constructor(se,ut){this.elementRef=se,this.renderer=ut,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}}return Te.\u0275fac=function(se){return new(se||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(se,ut){1&se&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),He=(()=>{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(se){return new(se||Te)},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(se,ut){2&se&&(s.Udp("width",ut.isNormalTrigger?ut.siderWidth:null),s.ekj("ant-layout-sider-trigger",ut.isNormalTrigger)("ant-layout-sider-zero-width-trigger",ut.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",ut.isZeroTrigger&&ut.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",ut.isZeroTrigger&&!ut.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(se,ut){1&se&&(s.YNc(0,ln,2,1,"ng-container",0),s.YNc(1,Xe,2,1,"ng-container",0),s.YNc(2,P,2,2,"ng-template",null,1,s.W1O),s.YNc(4,me,1,0,"ng-template",null,2,s.W1O)),2&se&&(s.Q6J("ngIf",ut.isZeroTrigger),s.xp6(1),s.Q6J("ngIf",ut.isNormalTrigger))},directives:[K.O5,K.tP,hn.Ls],encapsulation:2,changeDetection:0}),Te})(),be=(()=>{class Te{constructor(se,ut,Ft){this.platform=se,this.cdr=ut,this.breakpointService=Ft,this.destroy$=new xe.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,sn.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(se){se!==this.nzCollapsed&&(this.nzCollapsed=se,this.nzCollapsedChange.emit(se),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(Wt.ow,!0).pipe((0,tt.R)(this.destroy$)).subscribe(se=>{const ut=this.nzBreakpoint;ut&&(0,sn.ov)().subscribe(()=>{this.matchBreakPoint=!se[ut],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(se){const{nzCollapsed:ut,nzCollapsedWidth:Ft,nzWidth:en}=se;(ut||Ft||en)&&this.updateStyleMap(),ut&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(se){return new(se||Te)(s.Y36(Yt.t4),s.Y36(s.sBO),s.Y36(Wt.r3))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-sider"]],contentQueries:function(se,ut,Ft){if(1&se&&s.Suo(Ft,gn.wO,5),2&se){let en;s.iGM(en=s.CRH())&&(ut.nzMenuDirective=en.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(se,ut){2&se&&(s.Udp("flex",ut.flexSetting)("max-width",ut.widthSetting)("min-width",ut.widthSetting)("width",ut.widthSetting),s.ekj("ant-layout-sider-zero-width",ut.nzCollapsed&&0===ut.nzCollapsedWidth)("ant-layout-sider-light","light"===ut.nzTheme)("ant-layout-sider-dark","dark"===ut.nzTheme)("ant-layout-sider-collapsed",ut.nzCollapsed)("ant-layout-sider-has-trigger",ut.nzCollapsible&&null!==ut.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(se,ut){1&se&&(s.F$t(),s.TgZ(0,"div",0),s.Hsn(1),s.qZA(),s.YNc(2,j,1,8,"div",1)),2&se&&(s.xp6(2),s.Q6J("ngIf",ut.nzCollapsible&&null!==ut.nzTrigger))},directives:[He,K.O5],encapsulation:2,changeDetection:0}),(0,Et.gn)([(0,sn.yF)()],Te.prototype,"nzReverseArrow",void 0),(0,Et.gn)([(0,sn.yF)()],Te.prototype,"nzCollapsible",void 0),(0,Et.gn)([(0,sn.yF)()],Te.prototype,"nzCollapsed",void 0),Te})(),V=(()=>{class Te{constructor(se){this.directionality=se,this.dir="ltr",this.destroy$=new xe.xQ}ngOnInit(){var se;this.dir=this.directionality.value,null===(se=this.directionality.change)||void 0===se||se.pipe((0,tt.R)(this.destroy$)).subscribe(ut=>{this.dir=ut})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Te.\u0275fac=function(se){return new(se||Te)(s.Y36(_n.Is,8))},Te.\u0275cmp=s.Xpm({type:Te,selectors:[["nz-layout"]],contentQueries:function(se,ut,Ft){if(1&se&&s.Suo(Ft,be,4),2&se){let en;s.iGM(en=s.CRH())&&(ut.listOfNzSiderComponent=en)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(se,ut){2&se&&s.ekj("ant-layout-rtl","rtl"===ut.dir)("ant-layout-has-sider",ut.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:Cn,decls:1,vars:0,template:function(se,ut){1&se&&(s.F$t(),s.Hsn(0))},encapsulation:2,changeDetection:0}),Te})(),Ue=(()=>{class Te{}return Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,K.ez,hn.PV,J.xu,Yt.ud]]}),Te})();var nt=p(4147),ae=p(404);let Ie=(()=>{class Te{}return Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[_n.vT,K.ez,Yt.ud,hn.PV]]}),Te})();var wt=p(7525),At=p(9727),Qt=p(5278),vn=p(2302);let Hn=(()=>{class Te{constructor(){}ngOnInit(){}}return Te.\u0275fac=function(se){return new(se||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(se,ut){1&se&&(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 oi=[{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(622)]).then(p.bind(p,6622)).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:Hn}];let Yn=(()=>{class Te{}return Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[vn.Bz.forRoot(oi,{preloadingStrategy:vn.wm})],vn.Bz]}),Te})();function qt(Te,vt){if(1&Te&&s.GkF(0,11),2&Te){s.oxw();const se=s.MAs(3);s.Q6J("ngTemplateOutlet",se)}}function je(Te,vt){if(1&Te){const se=s.EpF();s.TgZ(0,"nz-sider",12),s.NdJ("nzCollapsedChange",function(Ft){return s.CHM(se),s.oxw().collapsed=Ft}),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 se=s.oxw();s.Q6J("nzTheme",se.theme)("nzTrigger",null)("nzCollapsedWidth",57)("nzCollapsed",se.collapsed),s.xp6(2),s.ekj("collapsed",se.collapsed),s.xp6(4),s.Oqu(se.title),s.xp6(2),s.Q6J("nzTheme",se.theme)("nzInlineCollapsed",se.collapsed),s.xp6(1),s.Q6J("nzTooltipTitle",se.collapsed?"\u4efb\u52a1":""),s.xp6(5),s.Q6J("nzTooltipTitle",se.collapsed?"\u8bbe\u7f6e":""),s.xp6(5),s.Q6J("nzTooltipTitle",se.collapsed?"\u5173\u4e8e":"")}}function De(Te,vt){if(1&Te&&s._UZ(0,"nz-spin",27),2&Te){const se=s.oxw();s.Q6J("nzSize","large")("nzSpinning",se.loading)}}function re(Te,vt){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 se=s.MAs(3);s.xp6(2),s.Q6J("ngTemplateOutlet",se)}}const Le=function(){return{padding:"0",overflow:"hidden"}};function ht(Te,vt){if(1&Te){const se=s.EpF();s.TgZ(0,"nz-drawer",28),s.NdJ("nzOnClose",function(){return s.CHM(se),s.oxw().collapsed=!0}),s.YNc(1,re,3,1,"ng-container",29),s.qZA()}if(2&Te){const se=s.oxw();s.Q6J("nzBodyStyle",s.DdM(3,Le))("nzClosable",!1)("nzVisible",!se.collapsed)}}let Vt=(()=>{class Te{constructor(se,ut,Ft){this.title="B \u7ad9\u76f4\u64ad\u5f55\u5236",this.theme="light",this.loading=!1,this.collapsed=!1,this.useDrawer=!1,this.destroyed=new xe.xQ,se.events.subscribe(en=>{en instanceof vn.OD?(this.loading=!0,this.useDrawer&&(this.collapsed=!0)):en instanceof vn.m2&&(this.loading=!1)}),Ft.observe(J.u3.XSmall).pipe((0,tt.R)(this.destroyed)).subscribe(en=>{this.useDrawer=en.matches,this.useDrawer&&(this.collapsed=!0),ut.markForCheck()}),Ft.observe("(max-width: 1036px)").pipe((0,tt.R)(this.destroyed)).subscribe(en=>{this.collapsed=en.matches,ut.markForCheck()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}}return Te.\u0275fac=function(se){return new(se||Te)(s.Y36(vn.F0),s.Y36(s.sBO),s.Y36(J.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(se,ut){1&se&&(s.TgZ(0,"nz-layout"),s.YNc(1,qt,1,1,"ng-container",0),s.YNc(2,je,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 ut.collapsed=!ut.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,De,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&se&&(s.xp6(1),s.Q6J("ngIf",!ut.useDrawer),s.xp6(6),s.Q6J("nzType",ut.collapsed?"menu-unfold":"menu-fold"),s.xp6(5),s.Q6J("ngIf",ut.loading),s.xp6(2),s.Q6J("ngIf",ut.useDrawer))},directives:[V,K.O5,K.tP,be,gn.wO,gn.r9,ae.SY,hn.Ls,vn.yS,Ze,ge,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})(),Ut=(()=>{class Te{constructor(se){if(se)throw new Error("You should import core module only in the root module")}}return Te.\u0275fac=function(se){return new(se||Te)(s.LFG(Te,12))},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({imports:[[K.ez]]}),Te})();var pn=p(9193);const On=[pn.LBP,pn._ry,pn.Ej7,pn.WH2];let ri=(()=>{class Te{}return Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=s.oAB({type:Te}),Te.\u0275inj=s.cJS({providers:[{provide:hn.sV,useValue:On}],imports:[[hn.PV],hn.PV]}),Te})();var Gn=p(2340),ni=p(7221),En=p(2323);const Zn="app-api-key";let Kn=(()=>{class Te{constructor(se){this.storage=se}getApiKey(){var se;return null!==(se=this.storage.getData(Zn))&&void 0!==se?se:""}setApiKey(se){this.storage.setData(Zn,se)}}return Te.\u0275fac=function(se){return new(se||Te)(s.LFG(En.V))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac,providedIn:"root"}),Te})();const rn=[{provide:ne.TP,useClass:(()=>{class Te{constructor(se){this.auth=se}intercept(se,ut){return ut.handle(se.clone({setHeaders:{"X-API-KEY":this.auth.getApiKey()}})).pipe((0,ni.K)(Ft=>{var en;if(401===Ft.status){const Tn=null!==(en=window.prompt("API Key:"))&&void 0!==en?en:"";this.auth.setApiKey(Tn)}throw Ft}))}}return Te.\u0275fac=function(se){return new(se||Te)(s.LFG(Kn))},Te.\u0275prov=s.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),multi:!0}];(0,K.qS)(H);let bn=(()=>{class Te{}return Te.\u0275fac=function(se){return new(se||Te)},Te.\u0275mod=s.oAB({type:Te,bootstrap:[Vt]}),Te.\u0275inj=s.cJS({providers:[{provide:St.u7,useValue:St.bF},rn],imports:[[a.b2,Yn,W.u5,ne.JF,J.xu,_.PW,yt.register("ngsw-worker.js",{enabled:Gn.N.production,registrationStrategy:"registerWhenStable:30000"}),Ue,nt.BL,gn.ip,ae.cg,Ie,wt.j,At.gR,Qt.L8,ri,st.f9.forRoot({level:Gn.N.ngxLoggerLevel}),Ut]]}),Te})();Gn.N.production&&(0,s.G48)(),a.q6().bootstrapModule(bn).catch(Te=>console.error(Te))},6089:(_t,we,p)=>{p.d(we,{f9:()=>zt,Kf:()=>ue,_z:()=>ye});var a=p(9808),s=p(5e3),W=p(520),ne=p(3489);class _{constructor(Re,Se){this.count=Re,this.source=Se}call(Re,Se){return Se.subscribe(new K(Re,this.count,this.source))}}class K extends ne.L{constructor(Re,Se,le){super(Re),this.count=Se,this.source=le}error(Re){if(!this.isStopped){const{source:Se,count:le}=this;if(0===le)return super.error(Re);le>-1&&(this.count=le-1),Se.subscribe(this._unsubscribeAndRecycle())}}}var I=p(2198),R=p(4850),H=p(5154),B=p(7221),ee=p(7545),_e={},$e={};function Ve(We){for(var Re=[],Se=0,le=0,ce=0;ce>>=1,Re.push(ot?0===le?-2147483648:-le:le),le=Se=0}}return Re}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach(function(We,Re){_e[We]=Re,$e[Re]=We});var gt=p(1086);class pt{}let zt=(()=>{class We{static forRoot(Se){return{ngModule:We,providers:[{provide:pt,useValue:Se||{}}]}}static forChild(){return{ngModule:We}}}return We.\u0275fac=function(Se){return new(Se||We)},We.\u0275mod=s.oAB({type:We}),We.\u0275inj=s.cJS({providers:[a.uU],imports:[[a.ez]]}),We})(),ct=(()=>{class We{constructor(Se){this.httpBackend=Se}logOnServer(Se,le,ce){const qe=new W.aW("POST",Se,le,ce||{});return this.httpBackend.handle(qe).pipe((0,I.h)(Ye=>Ye instanceof W.Zn),(0,R.U)(Ye=>Ye.body))}}return We.\u0275fac=function(Se){return new(Se||We)(s.LFG(W.jN))},We.\u0275prov=(0,s.Yz7)({factory:function(){return new We((0,s.LFG)(W.jN))},token:We,providedIn:"root"}),We})();var ye=(()=>{return(We=ye||(ye={}))[We.TRACE=0]="TRACE",We[We.DEBUG=1]="DEBUG",We[We.INFO=2]="INFO",We[We.LOG=3]="LOG",We[We.WARN=4]="WARN",We[We.ERROR=5]="ERROR",We[We.FATAL=6]="FATAL",We[We.OFF=7]="OFF",ye;var We})();class Ge{constructor(Re){this.config=Re,this._config=Re}get level(){return this._config.level}get serverLogLevel(){return this._config.serverLogLevel}updateConfig(Re){this._config=this._clone(Re)}getConfig(){return this._clone(this._config)}_clone(Re){const Se=new pt;return Object.keys(Re).forEach(le=>{Se[le]=Re[le]}),Se}}const et=["purple","teal","gray","gray","red","red","red"];class ze{static prepareMetaString(Re,Se,le,ce){return`${Re} ${Se}${le?` [${le}:${ce}]`:""}`}static getColor(Re,Se){switch(Re){case ye.TRACE:return this.getColorFromConfig(ye.TRACE,Se);case ye.DEBUG:return this.getColorFromConfig(ye.DEBUG,Se);case ye.INFO:return this.getColorFromConfig(ye.INFO,Se);case ye.LOG:return this.getColorFromConfig(ye.LOG,Se);case ye.WARN:return this.getColorFromConfig(ye.WARN,Se);case ye.ERROR:return this.getColorFromConfig(ye.ERROR,Se);case ye.FATAL:return this.getColorFromConfig(ye.FATAL,Se);default:return}}static getColorFromConfig(Re,Se){return Se?Se[Re]:et[Re]}static prepareMessage(Re){try{"string"!=typeof Re&&!(Re instanceof Error)&&(Re=JSON.stringify(Re,null,2))}catch(Se){Re='The provided "message" value could not be parsed with JSON.stringify().'}return Re}static prepareAdditionalParameters(Re){return null==Re?null:Re.map((Se,le)=>{try{return"object"==typeof Se&&JSON.stringify(Se),Se}catch(ce){return`The additional[${le}] value could not be parsed using JSON.stringify().`}})}}class Je{constructor(Re,Se,le){this.fileName=Re,this.lineNumber=Se,this.columnNumber=le}toString(){return this.fileName+":"+this.lineNumber+":"+this.columnNumber}}let q=(()=>{class We{constructor(Se){this.httpBackend=Se,this.sourceMapCache=new Map,this.logPositionCache=new Map}static getStackLine(Se){const le=new Error;try{throw le}catch(ce){try{let qe=4;return le.stack.split("\n")[0].includes(".js:")||(qe+=1),le.stack.split("\n")[qe+(Se||0)]}catch(qe){return null}}}static getPosition(Se){const le=Se.lastIndexOf("/");let ce=Se.indexOf(")");ce<0&&(ce=void 0);const Ye=Se.substring(le+1,ce).split(":");return 3===Ye.length?new Je(Ye[0],+Ye[1],+Ye[2]):new Je("unknown",0,0)}static getTranspileLocation(Se){let le=Se.indexOf("(");le<0&&(le=Se.lastIndexOf("@"),le<0&&(le=Se.lastIndexOf(" ")));let ce=Se.indexOf(")");return ce<0&&(ce=void 0),Se.substring(le+1,ce)}static getMapFilePath(Se){const le=We.getTranspileLocation(Se),ce=le.substring(0,le.lastIndexOf(":"));return ce.substring(0,ce.lastIndexOf(":"))+".map"}static getMapping(Se,le){let ce=0,qe=0,Ye=0;const ot=Se.mappings.split(";");for(let yt=0;yt=4&&(st+=Et[0],ce+=Et[1],qe+=Et[2],Ye+=Et[3]),yt===le.lineNumber){if(st===le.columnNumber)return new Je(Se.sources[ce],qe,Ye);if(tt+1===St.length)return new Je(Se.sources[ce],qe,0)}}}return new Je("unknown",0,0)}_getSourceMap(Se,le){const ce=new W.aW("GET",Se),qe=le.toString();if(this.logPositionCache.has(qe))return this.logPositionCache.get(qe);this.sourceMapCache.has(Se)||this.sourceMapCache.set(Se,this.httpBackend.handle(ce).pipe((0,I.h)(ot=>ot instanceof W.Zn),(0,R.U)(ot=>ot.body),function J(We=-1){return Re=>Re.lift(new _(We,Re))}(3),(0,H.d)(1)));const Ye=this.sourceMapCache.get(Se).pipe((0,R.U)(ot=>We.getMapping(ot,le)),(0,B.K)(()=>(0,gt.of)(le)),(0,H.d)(1));return this.logPositionCache.set(qe,Ye),Ye}getCallerDetails(Se,le){const ce=We.getStackLine(le);return ce?(0,gt.of)([We.getPosition(ce),We.getMapFilePath(ce)]).pipe((0,ee.w)(([qe,Ye])=>Se?this._getSourceMap(Ye,qe):(0,gt.of)(qe))):(0,gt.of)(new Je("",0,0))}}return We.\u0275fac=function(Se){return new(Se||We)(s.LFG(W.jN))},We.\u0275prov=(0,s.Yz7)({factory:function(){return new We((0,s.LFG)(W.jN))},token:We,providedIn:"root"}),We})();const pe=["TRACE","DEBUG","INFO","LOG","WARN","ERROR","FATAL","OFF"];let ue=(()=>{class We{constructor(Se,le,ce,qe,Ye){this.mapperService=Se,this.httpService=le,this.platformId=qe,this.datePipe=Ye,this._withCredentials=!1,this._isIE=(0,a.NF)(qe)&&navigator&&navigator.userAgent&&!(-1===navigator.userAgent.indexOf("MSIE")&&!navigator.userAgent.match(/Trident\//)&&!navigator.userAgent.match(/Edge\//)),this.config=new Ge(ce),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(Se,...le){this._log(ye.TRACE,Se,le)}debug(Se,...le){this._log(ye.DEBUG,Se,le)}info(Se,...le){this._log(ye.INFO,Se,le)}log(Se,...le){this._log(ye.LOG,Se,le)}warn(Se,...le){this._log(ye.WARN,Se,le)}error(Se,...le){this._log(ye.ERROR,Se,le)}fatal(Se,...le){this._log(ye.FATAL,Se,le)}setCustomHttpHeaders(Se){this._customHttpHeaders=Se}setCustomParams(Se){this._customParams=Se}setWithCredentialsOptionValue(Se){this._withCredentials=Se}registerMonitor(Se){this._loggerMonitor=Se}updateConfig(Se){this.config.updateConfig(Se)}getConfigSnapshot(){return this.config.getConfig()}_logIE(Se,le,ce,qe){switch(qe=qe||[],Se){case ye.WARN:console.warn(`${le} `,ce,...qe);break;case ye.ERROR:case ye.FATAL:console.error(`${le} `,ce,...qe);break;case ye.INFO:console.info(`${le} `,ce,...qe);break;default:console.log(`${le} `,ce,...qe)}}_logModern(Se,le,ce,qe){const Ye=this.getConfigSnapshot().colorScheme,ot=ze.getColor(Se,Ye);switch(qe=qe||[],Se){case ye.WARN:console.warn(`%c${le}`,`color:${ot}`,ce,...qe);break;case ye.ERROR:case ye.FATAL:console.error(`%c${le}`,`color:${ot}`,ce,...qe);break;case ye.INFO:console.info(`%c${le}`,`color:${ot}`,ce,...qe);break;case ye.DEBUG:console.debug(`%c${le}`,`color:${ot}`,ce,...qe);break;default:console.log(`%c${le}`,`color:${ot}`,ce,...qe)}}_log(Se,le,ce=[],qe=!0){const Ye=this.config.getConfig(),ot=qe&&Ye.serverLoggingUrl&&Se>=Ye.serverLogLevel,yt=Se>=Ye.level;if(!le||!ot&&!yt)return;const st=pe[Se];le="function"==typeof le?le():le;const St=ze.prepareAdditionalParameters(ce),tt=Ye.timestampFormat?this.datePipe.transform(new Date,Ye.timestampFormat):(new Date).toISOString();this.mapperService.getCallerDetails(Ye.enableSourceMaps,Ye.proxiedSteps).subscribe(Et=>{const Wt={message:ze.prepareMessage(le),additional:St,level:Se,timestamp:tt,fileName:Et.fileName,lineNumber:Et.lineNumber.toString()};if(this._loggerMonitor&&yt&&this._loggerMonitor.onLog(Wt),ot){Wt.message=le instanceof Error?le.stack:le,Wt.message=ze.prepareMessage(Wt.message);const sn=this._customHttpHeaders||new W.WM;sn.set("Content-Type","application/json");const gn={headers:sn,params:this._customParams||new W.LE,responseType:Ye.httpResponseType||"json",withCredentials:this._withCredentials};this.httpService.logOnServer(Ye.serverLoggingUrl,Wt,gn).subscribe(Yt=>{},Yt=>{this._log(ye.ERROR,`FAILED TO LOG ON SERVER: ${le}`,[Yt],!1)})}if(yt&&!Ye.disableConsoleLogging){const sn=ze.prepareMetaString(tt,st,Ye.disableFileDetails?null:Et.fileName,Et.lineNumber.toString());return this._logFunc(Se,sn,le,ce)}})}}return We.\u0275fac=function(Se){return new(Se||We)(s.LFG(q),s.LFG(ct),s.LFG(pt),s.LFG(s.Lbi),s.LFG(a.uU))},We.\u0275prov=(0,s.Yz7)({factory:function(){return new We((0,s.LFG)(q),(0,s.LFG)(ct),(0,s.LFG)(pt),(0,s.LFG)(s.Lbi),(0,s.LFG)(a.uU))},token:We,providedIn:"root"}),We})()},591:(_t,we,p)=>{p.d(we,{X:()=>W});var a=p(8929),s=p(5279);class W extends a.xQ{constructor(J){super(),this._value=J}get value(){return this.getValue()}_subscribe(J){const _=super._subscribe(J);return _&&!_.closed&&J.next(this._value),_}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(J){super.next(this._value=J)}}},9312:(_t,we,p)=>{p.d(we,{P:()=>J});var a=p(8896),s=p(1086),W=p(1737);class J{constructor(K,I,R){this.kind=K,this.value=I,this.error=R,this.hasValue="N"===K}observe(K){switch(this.kind){case"N":return K.next&&K.next(this.value);case"E":return K.error&&K.error(this.error);case"C":return K.complete&&K.complete()}}do(K,I,R){switch(this.kind){case"N":return K&&K(this.value);case"E":return I&&I(this.error);case"C":return R&&R()}}accept(K,I,R){return K&&"function"==typeof K.next?this.observe(K):this.do(K,I,R)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,W._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(K){return void 0!==K?new J("N",K):J.undefinedValueNotification}static createError(K){return new J("E",void 0,K)}static createComplete(){return J.completeNotification}}J.completeNotification=new J("C"),J.undefinedValueNotification=new J("N",void 0)},6498:(_t,we,p)=>{p.d(we,{y:()=>R});var a=p(3489),W=p(7668),ne=p(3292),_=p(3821),K=p(4843),I=p(2830);let R=(()=>{class B{constructor(_e){this._isScalar=!1,_e&&(this._subscribe=_e)}lift(_e){const $e=new B;return $e.source=this,$e.operator=_e,$e}subscribe(_e,$e,Ve){const{operator:xe}=this,Ce=function J(B,ee,_e){if(B){if(B instanceof a.L)return B;if(B[W.b])return B[W.b]()}return B||ee||_e?new a.L(B,ee,_e):new a.L(ne.c)}(_e,$e,Ve);if(Ce.add(xe?xe.call(Ce,this.source):this.source||I.v.useDeprecatedSynchronousErrorHandling&&!Ce.syncErrorThrowable?this._subscribe(Ce):this._trySubscribe(Ce)),I.v.useDeprecatedSynchronousErrorHandling&&Ce.syncErrorThrowable&&(Ce.syncErrorThrowable=!1,Ce.syncErrorThrown))throw Ce.syncErrorValue;return Ce}_trySubscribe(_e){try{return this._subscribe(_e)}catch($e){I.v.useDeprecatedSynchronousErrorHandling&&(_e.syncErrorThrown=!0,_e.syncErrorValue=$e),function s(B){for(;B;){const{closed:ee,destination:_e,isStopped:$e}=B;if(ee||$e)return!1;B=_e&&_e instanceof a.L?_e:null}return!0}(_e)?_e.error($e):console.warn($e)}}forEach(_e,$e){return new($e=H($e))((Ve,xe)=>{let Ce;Ce=this.subscribe(gt=>{try{_e(gt)}catch(pt){xe(pt),Ce&&Ce.unsubscribe()}},xe,Ve)})}_subscribe(_e){const{source:$e}=this;return $e&&$e.subscribe(_e)}[_.L](){return this}pipe(..._e){return 0===_e.length?this:(0,K.U)(_e)(this)}toPromise(_e){return new(_e=H(_e))(($e,Ve)=>{let xe;this.subscribe(Ce=>xe=Ce,Ce=>Ve(Ce),()=>$e(xe))})}}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:(_t,we,p)=>{p.d(we,{c:()=>W});var a=p(2830),s=p(2782);const W={closed:!0,next(ne){},error(ne){if(a.v.useDeprecatedSynchronousErrorHandling)throw ne;(0,s.z)(ne)},complete(){}}},826:(_t,we,p)=>{p.d(we,{L:()=>s});var a=p(3489);class s extends a.L{notifyNext(ne,J,_,K,I){this.destination.next(J)}notifyError(ne,J){this.destination.error(ne)}notifyComplete(ne){this.destination.complete()}}},5647:(_t,we,p)=>{p.d(we,{t:()=>ee});var a=p(8929),s=p(6686),ne=p(2268);const K=new class J extends ne.v{}(class W extends s.o{constructor(Ve,xe){super(Ve,xe),this.scheduler=Ve,this.work=xe}schedule(Ve,xe=0){return xe>0?super.schedule(Ve,xe):(this.delay=xe,this.state=Ve,this.scheduler.flush(this),this)}execute(Ve,xe){return xe>0||this.closed?super.execute(Ve,xe):this._execute(Ve,xe)}requestAsyncId(Ve,xe,Ce=0){return null!==Ce&&Ce>0||null===Ce&&this.delay>0?super.requestAsyncId(Ve,xe,Ce):Ve.flush(this)}});var I=p(2654),R=p(7770),H=p(5279),B=p(5283);class ee extends a.xQ{constructor(Ve=Number.POSITIVE_INFINITY,xe=Number.POSITIVE_INFINITY,Ce){super(),this.scheduler=Ce,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=Ve<1?1:Ve,this._windowTime=xe<1?1:xe,xe===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(Ve){if(!this.isStopped){const xe=this._events;xe.push(Ve),xe.length>this._bufferSize&&xe.shift()}super.next(Ve)}nextTimeWindow(Ve){this.isStopped||(this._events.push(new _e(this._getNow(),Ve)),this._trimBufferThenGetEvents()),super.next(Ve)}_subscribe(Ve){const xe=this._infiniteTimeWindow,Ce=xe?this._events:this._trimBufferThenGetEvents(),gt=this.scheduler,pt=Ce.length;let zt;if(this.closed)throw new H.N;if(this.isStopped||this.hasError?zt=I.w.EMPTY:(this.observers.push(Ve),zt=new B.W(this,Ve)),gt&&Ve.add(Ve=new R.ht(Ve,gt)),xe)for(let ct=0;ctxe&&(zt=Math.max(zt,pt-xe)),zt>0&>.splice(0,zt),gt}}class _e{constructor(Ve,xe){this.time=Ve,this.value=xe}}},8929:(_t,we,p)=>{p.d(we,{Yc:()=>K,xQ:()=>I});var a=p(6498),s=p(3489),W=p(2654),ne=p(5279),J=p(5283),_=p(7668);class K 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 K(this)}lift(ee){const _e=new R(this,this);return _e.operator=ee,_e}next(ee){if(this.closed)throw new ne.N;if(!this.isStopped){const{observers:_e}=this,$e=_e.length,Ve=_e.slice();for(let xe=0;xe<$e;xe++)Ve[xe].next(ee)}}error(ee){if(this.closed)throw new ne.N;this.hasError=!0,this.thrownError=ee,this.isStopped=!0;const{observers:_e}=this,$e=_e.length,Ve=_e.slice();for(let xe=0;xe<$e;xe++)Ve[xe].error(ee);this.observers.length=0}complete(){if(this.closed)throw new ne.N;this.isStopped=!0;const{observers:ee}=this,_e=ee.length,$e=ee.slice();for(let Ve=0;Ve<_e;Ve++)$e[Ve].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(ee){if(this.closed)throw new ne.N;return super._trySubscribe(ee)}_subscribe(ee){if(this.closed)throw new ne.N;return this.hasError?(ee.error(this.thrownError),W.w.EMPTY):this.isStopped?(ee.complete(),W.w.EMPTY):(this.observers.push(ee),new J.W(this,ee))}asObservable(){const ee=new a.y;return ee.source=this,ee}}return H.create=(B,ee)=>new 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):W.w.EMPTY}}},5283:(_t,we,p)=>{p.d(we,{W:()=>s});var a=p(2654);class s extends a.w{constructor(ne,J){super(),this.subject=ne,this.subscriber=J,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const ne=this.subject,J=ne.observers;if(this.subject=null,!J||0===J.length||ne.isStopped||ne.closed)return;const _=J.indexOf(this.subscriber);-1!==_&&J.splice(_,1)}}},3489:(_t,we,p)=>{p.d(we,{L:()=>K});var a=p(7043),s=p(3292),W=p(2654),ne=p(7668),J=p(2830),_=p(2782);class K extends W.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 K?(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)}}[ne.b](){return this}static create(H,B,ee){const _e=new K(H,B,ee);return _e.syncErrorThrowable=!1,_e}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 K{constructor(H,B,ee,_e){super(),this._parentSubscriber=H;let $e,Ve=this;(0,a.m)(B)?$e=B:B&&($e=B.next,ee=B.error,_e=B.complete,B!==s.c&&(Ve=Object.create(B),(0,a.m)(Ve.unsubscribe)&&this.add(Ve.unsubscribe.bind(Ve)),Ve.unsubscribe=this.unsubscribe.bind(this))),this._context=Ve,this._next=$e,this._error=ee,this._complete=_e}next(H){if(!this.isStopped&&this._next){const{_parentSubscriber:B}=this;J.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}=J.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);J.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(),J.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,_.z)(ee)}}__tryOrSetError(H,B,ee){if(!J.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{B.call(this._context,ee)}catch(_e){return J.v.useDeprecatedSynchronousErrorHandling?(H.syncErrorValue=_e,H.syncErrorThrown=!0,!0):((0,_.z)(_e),!0)}return!1}_unsubscribe(){const{_parentSubscriber:H}=this;this._context=null,this._parentSubscriber=null,H.unsubscribe()}}},2654:(_t,we,p)=>{p.d(we,{w:()=>_});var a=p(6688),s=p(7830),W=p(7043);const J=(()=>{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:_e}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,H instanceof _)H.remove(this);else if(null!==H)for(let $e=0;$eR.concat(H instanceof J?H.errors:H),[])}_.EMPTY=((I=new _).closed=!0,I)},2830:(_t,we,p)=>{p.d(we,{v:()=>s});let a=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(W){if(W){const ne=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ne.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=W},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(_t,we,p)=>{p.d(we,{IY:()=>ne,Ds:()=>_,ft:()=>I});var a=p(3489),s=p(6498),W=p(9249);class ne 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,W.s)(R)(H)}catch(ee){H.error(ee)}return B}},1762:(_t,we,p)=>{p.d(we,{c:()=>J,N:()=>_});var a=p(8929),s=p(6498),W=p(2654),ne=p(4327);class J 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 W.w,B.add(this.source.subscribe(new K(this.getSubject(),this))),B.closed&&(this._connection=null,B=W.w.EMPTY)),B}refCount(){return(0,ne.x)()(this)}}const _=(()=>{const H=J.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 K 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:(_t,we,p)=>{p.d(we,{aj:()=>K});var a=p(2866),s=p(6688),W=p(826),ne=p(448),J=p(3009);const _={};function K(...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,J.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 W.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 _e=0;_e{p.d(we,{z:()=>W});var a=p(1086),s=p(534);function W(...ne){return(0,s.u)()((0,a.of)(...ne))}},8514:(_t,we,p)=>{p.d(we,{P:()=>ne});var a=p(6498),s=p(5254),W=p(8896);function ne(J){return new a.y(_=>{let K;try{K=J()}catch(R){return void _.error(R)}return(K?(0,s.D)(K):(0,W.c)()).subscribe(_)})}},8896:(_t,we,p)=>{p.d(we,{E:()=>s,c:()=>W});var a=p(6498);const s=new a.y(J=>J.complete());function W(J){return J?function ne(J){return new a.y(_=>J.schedule(()=>_.complete()))}(J):s}},5254:(_t,we,p)=>{p.d(we,{D:()=>Ve});var a=p(6498),s=p(9249),W=p(2654),ne=p(3821),K=p(6454),I=p(5430),B=p(8955),ee=p(8515);function Ve(xe,Ce){return Ce?function $e(xe,Ce){if(null!=xe){if(function H(xe){return xe&&"function"==typeof xe[ne.L]}(xe))return function J(xe,Ce){return new a.y(gt=>{const pt=new W.w;return pt.add(Ce.schedule(()=>{const zt=xe[ne.L]();pt.add(zt.subscribe({next(ct){pt.add(Ce.schedule(()=>gt.next(ct)))},error(ct){pt.add(Ce.schedule(()=>gt.error(ct)))},complete(){pt.add(Ce.schedule(()=>gt.complete()))}}))})),pt})}(xe,Ce);if((0,B.t)(xe))return function _(xe,Ce){return new a.y(gt=>{const pt=new W.w;return pt.add(Ce.schedule(()=>xe.then(zt=>{pt.add(Ce.schedule(()=>{gt.next(zt),pt.add(Ce.schedule(()=>gt.complete()))}))},zt=>{pt.add(Ce.schedule(()=>gt.error(zt)))}))),pt})}(xe,Ce);if((0,ee.z)(xe))return(0,K.r)(xe,Ce);if(function _e(xe){return xe&&"function"==typeof xe[I.hZ]}(xe)||"string"==typeof xe)return function R(xe,Ce){if(!xe)throw new Error("Iterable cannot be null");return new a.y(gt=>{const pt=new W.w;let zt;return pt.add(()=>{zt&&"function"==typeof zt.return&&zt.return()}),pt.add(Ce.schedule(()=>{zt=xe[I.hZ](),pt.add(Ce.schedule(function(){if(gt.closed)return;let ct,ye;try{const Ge=zt.next();ct=Ge.value,ye=Ge.done}catch(Ge){return void gt.error(Ge)}ye?gt.complete():(gt.next(ct),this.schedule())}))})),pt})}(xe,Ce)}throw new TypeError((null!==xe&&typeof xe||xe)+" is not observable")}(xe,Ce):xe instanceof a.y?xe:new a.y((0,s.s)(xe))}},3009:(_t,we,p)=>{p.d(we,{n:()=>ne});var a=p(6498),s=p(3650),W=p(6454);function ne(J,_){return _?(0,W.r)(J,_):new a.y((0,s.V)(J))}},3753:(_t,we,p)=>{p.d(we,{R:()=>_});var a=p(6498),s=p(6688),W=p(7043),ne=p(4850);function _(B,ee,_e,$e){return(0,W.m)(_e)&&($e=_e,_e=void 0),$e?_(B,ee,_e).pipe((0,ne.U)(Ve=>(0,s.k)(Ve)?$e(...Ve):$e(Ve))):new a.y(Ve=>{K(B,ee,function xe(Ce){Ve.next(arguments.length>1?Array.prototype.slice.call(arguments):Ce)},Ve,_e)})}function K(B,ee,_e,$e,Ve){let xe;if(function H(B){return B&&"function"==typeof B.addEventListener&&"function"==typeof B.removeEventListener}(B)){const Ce=B;B.addEventListener(ee,_e,Ve),xe=()=>Ce.removeEventListener(ee,_e,Ve)}else if(function R(B){return B&&"function"==typeof B.on&&"function"==typeof B.off}(B)){const Ce=B;B.on(ee,_e),xe=()=>Ce.off(ee,_e)}else if(function I(B){return B&&"function"==typeof B.addListener&&"function"==typeof B.removeListener}(B)){const Ce=B;B.addListener(ee,_e),xe=()=>Ce.removeListener(ee,_e)}else{if(!B||!B.length)throw new TypeError("Invalid event target");for(let Ce=0,gt=B.length;Ce{p.d(we,{T:()=>J});var a=p(6498),s=p(2866),W=p(9146),ne=p(3009);function J(..._){let K=Number.POSITIVE_INFINITY,I=null,R=_[_.length-1];return(0,s.K)(R)?(I=_.pop(),_.length>1&&"number"==typeof _[_.length-1]&&(K=_.pop())):"number"==typeof R&&(K=_.pop()),null===I&&1===_.length&&_[0]instanceof a.y?_[0]:(0,W.J)(K)((0,ne.n)(_,I))}},1086:(_t,we,p)=>{p.d(we,{of:()=>ne});var a=p(2866),s=p(3009),W=p(6454);function ne(...J){let _=J[J.length-1];return(0,a.K)(_)?(J.pop(),(0,W.r)(J,_)):(0,s.n)(J)}},1737:(_t,we,p)=>{p.d(we,{_:()=>s});var a=p(6498);function s(ne,J){return new a.y(J?_=>J.schedule(W,0,{error:ne,subscriber:_}):_=>_.error(ne))}function W({error:ne,subscriber:J}){J.error(ne)}},8723:(_t,we,p)=>{p.d(we,{H:()=>J});var a=p(6498),s=p(353),W=p(4241),ne=p(2866);function J(K=0,I,R){let H=-1;return(0,W.k)(I)?H=Number(I)<1?1:Number(I):(0,ne.K)(I)&&(R=I),(0,ne.K)(R)||(R=s.P),new a.y(B=>{const ee=(0,W.k)(K)?K:+K-R.now();return R.schedule(_,ee,{index:0,period:H,subscriber:B})})}function _(K){const{index:I,period:R,subscriber:H}=K;if(H.next(I),!H.closed){if(-1===R)return H.complete();K.index=I+1,this.schedule(K,R)}}},7138:(_t,we,p)=>{p.d(we,{e:()=>K});var a=p(353),s=p(1177);class ne{constructor(R){this.durationSelector=R}call(R,H){return H.subscribe(new J(R,this.durationSelector))}}class J 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 K(I,R=a.P){return function W(I){return function(H){return H.lift(new ne(I))}}(()=>(0,_.H)(I,R))}},7221:(_t,we,p)=>{p.d(we,{K:()=>s});var a=p(1177);function s(J){return function(K){const I=new W(J),R=K.lift(I);return I.caught=R}}class W{constructor(_){this.selector=_}call(_,K){return K.subscribe(new ne(_,this.selector,this.caught))}}class ne extends a.Ds{constructor(_,K,I){super(_),this.selector=K,this.caught=I}error(_){if(!this.isStopped){let K;try{K=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)(K,I);R!==I&&this.add(R)}}}},534:(_t,we,p)=>{p.d(we,{u:()=>s});var a=p(9146);function s(){return(0,a.J)(1)}},1406:(_t,we,p)=>{p.d(we,{b:()=>s});var a=p(1709);function s(W,ne){return(0,a.zg)(W,ne,1)}},13:(_t,we,p)=>{p.d(we,{b:()=>W});var a=p(3489),s=p(353);function W(K,I=s.P){return R=>R.lift(new ne(K,I))}class ne{constructor(I,R){this.dueTime=I,this.scheduler=R}call(I,R){return R.subscribe(new J(I,this.dueTime,this.scheduler))}}class J 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 _(K){K.debouncedNext()}},8583:(_t,we,p)=>{p.d(we,{g:()=>J});var a=p(353),W=p(3489),ne=p(9312);function J(R,H=a.P){const ee=function s(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-H.now():Math.abs(R);return _e=>_e.lift(new _(ee,H))}class _{constructor(H,B){this.delay=H,this.scheduler=B}call(H,B){return B.subscribe(new K(H,this.delay,this.scheduler))}}class K extends W.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,_e=H.scheduler,$e=H.destination;for(;ee.length>0&&ee[0].time-_e.now()<=0;)ee.shift().notification.observe($e);if(ee.length>0){const Ve=Math.max(0,ee[0].time-_e.now());this.schedule(H,Ve)}else this.unsubscribe(),B.active=!1}_schedule(H){this.active=!0,this.destination.add(H.schedule(K.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(ne.P.createNext(H))}_error(H){this.errored=!0,this.queue=[],this.destination.error(H),this.unsubscribe()}_complete(){this.scheduleNotification(ne.P.createComplete()),this.unsubscribe()}}class I{constructor(H,B){this.time=H,this.notification=B}}},5778:(_t,we,p)=>{p.d(we,{x:()=>s});var a=p(3489);function s(J,_){return K=>K.lift(new W(J,_))}class W{constructor(_,K){this.compare=_,this.keySelector=K}call(_,K){return K.subscribe(new ne(_,this.compare,this.keySelector))}}class ne extends a.L{constructor(_,K,I){super(_),this.keySelector=I,this.hasKey=!1,"function"==typeof K&&(this.compare=K)}compare(_,K){return _===K}_next(_){let K;try{const{keySelector:R}=this;K=R?R(_):_}catch(R){return this.destination.error(R)}let I=!1;if(this.hasKey)try{const{compare:R}=this;I=R(this.key,K)}catch(R){return this.destination.error(R)}else this.hasKey=!0;I||(this.key=K,this.destination.next(_))}}},2198:(_t,we,p)=>{p.d(we,{h:()=>s});var a=p(3489);function s(J,_){return function(I){return I.lift(new W(J,_))}}class W{constructor(_,K){this.predicate=_,this.thisArg=K}call(_,K){return K.subscribe(new ne(_,this.predicate,this.thisArg))}}class ne extends a.L{constructor(_,K,I){super(_),this.predicate=K,this.thisArg=I,this.count=0}_next(_){let K;try{K=this.predicate.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}K&&this.destination.next(_)}}},537:(_t,we,p)=>{p.d(we,{x:()=>W});var a=p(3489),s=p(2654);function W(_){return K=>K.lift(new ne(_))}class ne{constructor(K){this.callback=K}call(K,I){return I.subscribe(new J(K,this.callback))}}class J extends a.L{constructor(K,I){super(K),this.add(new s.w(I))}}},4850:(_t,we,p)=>{p.d(we,{U:()=>s});var a=p(3489);function s(J,_){return function(I){if("function"!=typeof J)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return I.lift(new W(J,_))}}class W{constructor(_,K){this.project=_,this.thisArg=K}call(_,K){return K.subscribe(new ne(_,this.project,this.thisArg))}}class ne extends a.L{constructor(_,K,I){super(_),this.project=K,this.count=0,this.thisArg=I||this}_next(_){let K;try{K=this.project.call(this.thisArg,_,this.count++)}catch(I){return void this.destination.error(I)}this.destination.next(K)}}},7604:(_t,we,p)=>{p.d(we,{h:()=>s});var a=p(3489);function s(J){return _=>_.lift(new W(J))}class W{constructor(_){this.value=_}call(_,K){return K.subscribe(new ne(_,this.value))}}class ne extends a.L{constructor(_,K){super(_),this.value=K}_next(_){this.destination.next(this.value)}}},9146:(_t,we,p)=>{p.d(we,{J:()=>W});var a=p(1709),s=p(5379);function W(ne=Number.POSITIVE_INFINITY){return(0,a.zg)(s.y,ne)}},1709:(_t,we,p)=>{p.d(we,{zg:()=>ne});var a=p(4850),s=p(5254),W=p(1177);function ne(I,R,H=Number.POSITIVE_INFINITY){return"function"==typeof R?B=>B.pipe(ne((ee,_e)=>(0,s.D)(I(ee,_e)).pipe((0,a.U)(($e,Ve)=>R(ee,$e,_e,Ve))),H)):("number"==typeof R&&(H=R),B=>B.lift(new J(I,H)))}class J{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 W.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:(_t,we,p)=>{p.d(we,{O:()=>s});var a=p(1762);function s(ne,J){return function(K){let I;if(I="function"==typeof ne?ne:function(){return ne},"function"==typeof J)return K.lift(new W(I,J));const R=Object.create(K,a.N);return R.source=K,R.subjectFactory=I,R}}class W{constructor(J,_){this.subjectFactory=J,this.selector=_}call(J,_){const{selector:K}=this,I=this.subjectFactory(),R=K(I).subscribe(J);return R.add(_.subscribe(I)),R}}},7770:(_t,we,p)=>{p.d(we,{QV:()=>W,ht:()=>J});var a=p(3489),s=p(9312);function W(K,I=0){return function(H){return H.lift(new ne(K,I))}}class ne{constructor(I,R=0){this.scheduler=I,this.delay=R}call(I,R){return R.subscribe(new J(I,this.scheduler,this.delay))}}class J 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(J.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:(_t,we,p)=>{p.d(we,{x:()=>s});var a=p(3489);function s(){return function(_){return _.lift(new W(_))}}class W{constructor(_){this.connectable=_}call(_,K){const{connectable:I}=this;I._refCount++;const R=new ne(_,I),H=K.subscribe(R);return R.closed||(R.connection=I.connect()),H}}class ne extends a.L{constructor(_,K){super(_),this.connectable=K}_unsubscribe(){const{connectable:_}=this;if(!_)return void(this.connection=null);this.connectable=null;const K=_._refCount;if(K<=0)return void(this.connection=null);if(_._refCount=K-1,K>1)return void(this.connection=null);const{connection:I}=this,R=_._connection;this.connection=null,R&&(!I||R===I)&&R.unsubscribe()}}},2014:(_t,we,p)=>{p.d(we,{R:()=>s});var a=p(3489);function s(J,_){let K=!1;return arguments.length>=2&&(K=!0),function(R){return R.lift(new W(J,_,K))}}class W{constructor(_,K,I=!1){this.accumulator=_,this.seed=K,this.hasSeed=I}call(_,K){return K.subscribe(new ne(_,this.accumulator,this.seed,this.hasSeed))}}class ne extends a.L{constructor(_,K,I,R){super(_),this.accumulator=K,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 K=this.index++;let I;try{I=this.accumulator(this.seed,_,K)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}},8117:(_t,we,p)=>{p.d(we,{B:()=>J});var a=p(2536),s=p(4327),W=p(8929);function ne(){return new W.xQ}function J(){return _=>(0,s.x)()((0,a.O)(ne)(_))}},5154:(_t,we,p)=>{p.d(we,{d:()=>s});var a=p(5647);function s(ne,J,_){let K;return K=ne&&"object"==typeof ne?ne:{bufferSize:ne,windowTime:J,refCount:!1,scheduler:_},I=>I.lift(function W({bufferSize:ne=Number.POSITIVE_INFINITY,windowTime:J=Number.POSITIVE_INFINITY,refCount:_,scheduler:K}){let I,H,R=0,B=!1,ee=!1;return function($e){let Ve;R++,!I||B?(B=!1,I=new a.t(ne,J,K),Ve=I.subscribe(this),H=$e.subscribe({next(xe){I.next(xe)},error(xe){B=!0,I.error(xe)},complete(){ee=!0,H=void 0,I.complete()}}),ee&&(H=void 0)):Ve=I.subscribe(this),this.add(()=>{R--,Ve.unsubscribe(),Ve=void 0,H&&!ee&&_&&0===R&&(H.unsubscribe(),H=void 0,I=void 0)})}}(K))}},1307:(_t,we,p)=>{p.d(we,{T:()=>s});var a=p(3489);function s(J){return _=>_.lift(new W(J))}class W{constructor(_){this.total=_}call(_,K){return K.subscribe(new ne(_,this.total))}}class ne extends a.L{constructor(_,K){super(_),this.total=K,this.count=0}_next(_){++this.count>this.total&&this.destination.next(_)}}},1059:(_t,we,p)=>{p.d(we,{O:()=>W});var a=p(1961),s=p(2866);function W(...ne){const J=ne[ne.length-1];return(0,s.K)(J)?(ne.pop(),_=>(0,a.z)(ne,_,J)):_=>(0,a.z)(ne,_)}},7545:(_t,we,p)=>{p.d(we,{w:()=>ne});var a=p(4850),s=p(5254),W=p(1177);function ne(K,I){return"function"==typeof I?R=>R.pipe(ne((H,B)=>(0,s.D)(K(H,B)).pipe((0,a.U)((ee,_e)=>I(H,ee,B,_e))))):R=>R.lift(new J(K))}class J{constructor(I){this.project=I}call(I,R){return R.subscribe(new _(I,this.project))}}class _ extends W.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 W.IY(this),B=this.destination;B.add(H),this.innerSubscription=(0,W.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:(_t,we,p)=>{p.d(we,{q:()=>ne});var a=p(3489),s=p(4231),W=p(8896);function ne(K){return I=>0===K?(0,W.c)():I.lift(new J(K))}class J{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:(_t,we,p)=>{p.d(we,{R:()=>s});var a=p(1177);function s(J){return _=>_.lift(new W(J))}class W{constructor(_){this.notifier=_}call(_,K){const I=new ne(_),R=(0,a.ft)(this.notifier,new a.IY(I));return R&&!I.seenValue?(I.add(R),K.subscribe(I)):I}}class ne extends a.Ds{constructor(_){super(_),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2994:(_t,we,p)=>{p.d(we,{b:()=>ne});var a=p(3489),s=p(7876),W=p(7043);function ne(K,I,R){return function(B){return B.lift(new J(K,I,R))}}class J{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,W.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:(_t,we,p)=>{p.d(we,{r:()=>W});var a=p(6498),s=p(2654);function W(ne,J){return new a.y(_=>{const K=new s.w;let I=0;return K.add(J.schedule(function(){I!==ne.length?(_.next(ne[I++]),_.closed||K.add(this.schedule())):_.complete()})),K})}},6686:(_t,we,p)=>{p.d(we,{o:()=>W});var a=p(2654);class s extends a.w{constructor(J,_){super()}schedule(J,_=0){return this}}class W extends s{constructor(J,_){super(J,_),this.scheduler=J,this.work=_,this.pending=!1}schedule(J,_=0){if(this.closed)return this;this.state=J;const K=this.id,I=this.scheduler;return null!=K&&(this.id=this.recycleAsyncId(I,K,_)),this.pending=!0,this.delay=_,this.id=this.id||this.requestAsyncId(I,this.id,_),this}requestAsyncId(J,_,K=0){return setInterval(J.flush.bind(J,this),K)}recycleAsyncId(J,_,K=0){if(null!==K&&this.delay===K&&!1===this.pending)return _;clearInterval(_)}execute(J,_){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const K=this._execute(J,_);if(K)return K;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(J,_){let I,K=!1;try{this.work(J)}catch(R){K=!0,I=!!R&&R||new Error(R)}if(K)return this.unsubscribe(),I}_unsubscribe(){const J=this.id,_=this.scheduler,K=_.actions,I=K.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==I&&K.splice(I,1),null!=J&&(this.id=this.recycleAsyncId(_,J,null)),this.delay=null}}},2268:(_t,we,p)=>{p.d(we,{v:()=>s});let a=(()=>{class W{constructor(J,_=W.now){this.SchedulerAction=J,this.now=_}schedule(J,_=0,K){return new this.SchedulerAction(this,J).schedule(K,_)}}return W.now=()=>Date.now(),W})();class s extends a{constructor(ne,J=a.now){super(ne,()=>s.delegate&&s.delegate!==this?s.delegate.now():J()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(ne,J=0,_){return s.delegate&&s.delegate!==this?s.delegate.schedule(ne,J,_):super.schedule(ne,J,_)}flush(ne){const{actions:J}=this;if(this.active)return void J.push(ne);let _;this.active=!0;do{if(_=ne.execute(ne.state,ne.delay))break}while(ne=J.shift());if(this.active=!1,_){for(;ne=J.shift();)ne.unsubscribe();throw _}}}},353:(_t,we,p)=>{p.d(we,{z:()=>W,P:()=>ne});var a=p(6686);const W=new(p(2268).v)(a.o),ne=W},5430:(_t,we,p)=>{p.d(we,{hZ:()=>s});const s=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(_t,we,p)=>{p.d(we,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(_t,we,p)=>{p.d(we,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(_t,we,p)=>{p.d(we,{W:()=>s});const s=(()=>{function W(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return W.prototype=Object.create(Error.prototype),W})()},5279:(_t,we,p)=>{p.d(we,{N:()=>s});const s=(()=>{function W(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return W.prototype=Object.create(Error.prototype),W})()},2782:(_t,we,p)=>{function a(s){setTimeout(()=>{throw s},0)}p.d(we,{z:()=>a})},5379:(_t,we,p)=>{function a(s){return s}p.d(we,{y:()=>a})},6688:(_t,we,p)=>{p.d(we,{k:()=>a});const a=Array.isArray||(s=>s&&"number"==typeof s.length)},8515:(_t,we,p)=>{p.d(we,{z:()=>a});const a=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7043:(_t,we,p)=>{function a(s){return"function"==typeof s}p.d(we,{m:()=>a})},4241:(_t,we,p)=>{p.d(we,{k:()=>s});var a=p(6688);function s(W){return!(0,a.k)(W)&&W-parseFloat(W)+1>=0}},7830:(_t,we,p)=>{function a(s){return null!==s&&"object"==typeof s}p.d(we,{K:()=>a})},8955:(_t,we,p)=>{function a(s){return!!s&&"function"!=typeof s.subscribe&&"function"==typeof s.then}p.d(we,{t:()=>a})},2866:(_t,we,p)=>{function a(s){return s&&"function"==typeof s.schedule}p.d(we,{K:()=>a})},7876:(_t,we,p)=>{function a(){}p.d(we,{Z:()=>a})},4843:(_t,we,p)=>{p.d(we,{z:()=>s,U:()=>W});var a=p(5379);function s(...ne){return W(ne)}function W(ne){return 0===ne.length?a.y:1===ne.length?ne[0]:function(_){return ne.reduce((K,I)=>I(K),_)}}},9249:(_t,we,p)=>{p.d(we,{s:()=>B});var a=p(3650),s=p(2782),ne=p(5430),_=p(3821),I=p(8515),R=p(8955),H=p(7830);const B=ee=>{if(ee&&"function"==typeof ee[_.L])return(ee=>_e=>{const $e=ee[_.L]();if("function"!=typeof $e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return $e.subscribe(_e)})(ee);if((0,I.z)(ee))return(0,a.V)(ee);if((0,R.t)(ee))return(ee=>_e=>(ee.then($e=>{_e.closed||(_e.next($e),_e.complete())},$e=>_e.error($e)).then(null,s.z),_e))(ee);if(ee&&"function"==typeof ee[ne.hZ])return(ee=>_e=>{const $e=ee[ne.hZ]();for(;;){let Ve;try{Ve=$e.next()}catch(xe){return _e.error(xe),_e}if(Ve.done){_e.complete();break}if(_e.next(Ve.value),_e.closed)break}return"function"==typeof $e.return&&_e.add(()=>{$e.return&&$e.return()}),_e})(ee);{const $e=`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($e)}}},3650:(_t,we,p)=>{p.d(we,{V:()=>a});const a=s=>W=>{for(let ne=0,J=s.length;ne{p.d(we,{D:()=>J});var a=p(3489);class s extends a.L{constructor(K,I,R){super(),this.parent=K,this.outerValue=I,this.outerIndex=R,this.index=0}_next(K){this.parent.notifyNext(this.outerValue,K,this.outerIndex,this.index++,this)}_error(K){this.parent.notifyError(K,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var W=p(9249),ne=p(6498);function J(_,K,I,R,H=new s(_,I,R)){if(!H.closed)return K instanceof ne.y?K.subscribe(H):(0,W.s)(K)(H)}},655:(_t,we,p)=>{function ne(q,pe){var ue={};for(var fe in q)Object.prototype.hasOwnProperty.call(q,fe)&&pe.indexOf(fe)<0&&(ue[fe]=q[fe]);if(null!=q&&"function"==typeof Object.getOwnPropertySymbols){var ke=0;for(fe=Object.getOwnPropertySymbols(q);ke=0;Re--)(We=q[Re])&&(Oe=(ke<3?We(Oe):ke>3?We(pe,ue,Oe):We(pe,ue))||Oe);return ke>3&&Oe&&Object.defineProperty(pe,ue,Oe),Oe}function I(q,pe,ue,fe){return new(ue||(ue=Promise))(function(Oe,We){function Re(ce){try{le(fe.next(ce))}catch(qe){We(qe)}}function Se(ce){try{le(fe.throw(ce))}catch(qe){We(qe)}}function le(ce){ce.done?Oe(ce.value):function ke(Oe){return Oe instanceof ue?Oe:new ue(function(We){We(Oe)})}(ce.value).then(Re,Se)}le((fe=fe.apply(q,pe||[])).next())})}p.d(we,{_T:()=>ne,gn:()=>J,mG:()=>I})},1777:(_t,we,p)=>{p.d(we,{l3:()=>W,_j:()=>a,LC:()=>s,ZN:()=>gt,jt:()=>J,IO:()=>Ve,vP:()=>K,EY:()=>xe,SB:()=>R,oB:()=>I,eR:()=>B,X$:()=>ne,ZE:()=>pt,k1:()=>zt});class a{}class s{}const W="*";function ne(ct,ye){return{type:7,name:ct,definitions:ye,options:{}}}function J(ct,ye=null){return{type:4,styles:ye,timings:ct}}function K(ct,ye=null){return{type:2,steps:ct,options:ye}}function I(ct){return{type:6,styles:ct,offset:null}}function R(ct,ye,Ge){return{type:0,name:ct,styles:ye,options:Ge}}function B(ct,ye,Ge=null){return{type:1,expr:ct,animation:ye,options:Ge}}function Ve(ct,ye,Ge=null){return{type:11,selector:ct,animation:ye,options:Ge}}function xe(ct,ye){return{type:12,timings:ct,animation:ye}}function Ce(ct){Promise.resolve(null).then(ct)}class gt{constructor(ye=0,Ge=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ye+Ge}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ye=>ye()),this._onDoneFns=[])}onStart(ye){this._onStartFns.push(ye)}onDone(ye){this._onDoneFns.push(ye)}onDestroy(ye){this._onDestroyFns.push(ye)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ce(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ye=>ye()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ye=>ye()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ye){this._position=this.totalTime?ye*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ye){const Ge="start"==ye?this._onStartFns:this._onDoneFns;Ge.forEach(et=>et()),Ge.length=0}}class pt{constructor(ye){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ye;let Ge=0,et=0,ze=0;const Je=this.players.length;0==Je?Ce(()=>this._onFinish()):this.players.forEach(q=>{q.onDone(()=>{++Ge==Je&&this._onFinish()}),q.onDestroy(()=>{++et==Je&&this._onDestroy()}),q.onStart(()=>{++ze==Je&&this._onStart()})}),this.totalTime=this.players.reduce((q,pe)=>Math.max(q,pe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ye=>ye()),this._onDoneFns=[])}init(){this.players.forEach(ye=>ye.init())}onStart(ye){this._onStartFns.push(ye)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ye=>ye()),this._onStartFns=[])}onDone(ye){this._onDoneFns.push(ye)}onDestroy(ye){this._onDestroyFns.push(ye)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ye=>ye.play())}pause(){this.players.forEach(ye=>ye.pause())}restart(){this.players.forEach(ye=>ye.restart())}finish(){this._onFinish(),this.players.forEach(ye=>ye.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ye=>ye.destroy()),this._onDestroyFns.forEach(ye=>ye()),this._onDestroyFns=[])}reset(){this.players.forEach(ye=>ye.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ye){const Ge=ye*this.totalTime;this.players.forEach(et=>{const ze=et.totalTime?Math.min(1,Ge/et.totalTime):1;et.setPosition(ze)})}getPosition(){const ye=this.players.reduce((Ge,et)=>null===Ge||et.totalTime>Ge.totalTime?et:Ge,null);return null!=ye?ye.getPosition():0}beforeDestroy(){this.players.forEach(ye=>{ye.beforeDestroy&&ye.beforeDestroy()})}triggerCallback(ye){const Ge="start"==ye?this._onStartFns:this._onDoneFns;Ge.forEach(et=>et()),Ge.length=0}}const zt="!"},5664:(_t,we,p)=>{p.d(we,{rt:()=>Be,tE:()=>He,qV:()=>Et});var a=p(9808),s=p(5e3),W=p(591),ne=p(8929),J=p(1086),_=p(1159),K=p(2986),I=p(1307),R=p(5778),H=p(7625),B=p(3191),ee=p(925),_e=p(7144);let ke=(()=>{class L{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function We(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const he=function Oe(L){try{return L.frameElement}catch(E){return null}}(function St(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}($));if(he&&(-1===ot(he)||!this.isVisible(he)))return!1;let Ie=$.nodeName.toLowerCase(),wt=ot($);return $.hasAttribute("contenteditable")?-1!==wt:!("iframe"===Ie||"object"===Ie||this._platform.WEBKIT&&this._platform.IOS&&!function yt(L){let E=L.nodeName.toLowerCase(),$="input"===E&&L.type;return"text"===$||"password"===$||"select"===E||"textarea"===E}($))&&("audio"===Ie?!!$.hasAttribute("controls")&&-1!==wt:"video"===Ie?-1!==wt&&(null!==wt||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,he){return function st(L){return!function Se(L){return function ce(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function Re(L){let E=L.nodeName.toLowerCase();return"input"===E||"select"===E||"button"===E||"textarea"===E}(L)||function le(L){return function qe(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||Ye(L))}($)&&!this.isDisabled($)&&((null==he?void 0:he.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 Ye(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let E=L.getAttribute("tabindex");return!(!E||isNaN(parseInt(E,10)))}function ot(L){if(!Ye(L))return null;const E=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(E)?-1:E}class tt{constructor(E,$,he,Ie,wt=!1){this._element=E,this._checker=$,this._ngZone=he,this._document=Ie,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 he=this._getFirstTabbableElement($);return null==he||he.focus(E),!!he}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 he=0;he<$.length;he++){const Ie=$[he].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[he]):null;if(Ie)return Ie}return null}_getLastTabbableElement(E){if(this._checker.isFocusable(E)&&this._checker.isTabbable(E))return E;const $=E.children;for(let he=$.length-1;he>=0;he--){const Ie=$[he].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[he]):null;if(Ie)return Ie}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,K.q)(1)).subscribe(E)}}let Et=(()=>{class L{constructor($,he,Ie){this._checker=$,this._ngZone=he,this._document=Ie}create($,he=!1){return new tt($,this._checker,this._ngZone,this._document,he)}}return L.\u0275fac=function($){return new($||L)(s.LFG(ke),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"),ln={ignoreKeys:[_.zL,_.jx,_.b2,_.MW,_.JU]},Xe=(0,ee.i$)({passive:!0,capture:!0});let x=(()=>{class L{constructor($,he,Ie,wt){this._platform=$,this._mostRecentTarget=null,this._modality=new W.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(Hn=>Hn===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({},ln),wt),this.modalityDetected=this._modality.pipe((0,I.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),$.isBrowser&&he.runOutsideAngular(()=>{Ie.addEventListener("keydown",this._onKeydown,Xe),Ie.addEventListener("mousedown",this._onMousedown,Xe),Ie.addEventListener("touchstart",this._onTouchstart,Xe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Xe),document.removeEventListener("mousedown",this._onMousedown,Xe),document.removeEventListener("touchstart",this._onTouchstart,Xe))}}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 Ne=new s.OlP("cdk-focus-monitor-default-options"),Ze=(0,ee.i$)({passive:!0,capture:!0});let He=(()=>{class L{constructor($,he,Ie,wt,At){this._ngZone=$,this._platform=he,this._inputModalityDetector=Ie,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 ne.xQ,this._rootNodeFocusAndBlurListener=Qt=>{const vn=(0,ee.sA)(Qt),Hn="focus"===Qt.type?this._onFocus:this._onBlur;for(let kn=vn;kn;kn=kn.parentElement)Hn.call(this,Qt,kn)},this._document=wt,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,he=!1){const Ie=(0,B.fI)($);if(!this._platform.isBrowser||1!==Ie.nodeType)return(0,J.of)(null);const wt=(0,ee.kV)(Ie)||this._getDocument(),At=this._elementInfo.get(Ie);if(At)return he&&(At.checkChildren=!0),At.subject;const Qt={checkChildren:he,subject:new ne.xQ,rootNode:wt};return this._elementInfo.set(Ie,Qt),this._registerGlobalListeners(Qt),Qt.subject}stopMonitoring($){const he=(0,B.fI)($),Ie=this._elementInfo.get(he);Ie&&(Ie.subject.complete(),this._setClasses(he),this._elementInfo.delete(he),this._removeGlobalListeners(Ie))}focusVia($,he,Ie){const wt=(0,B.fI)($);wt===this._getDocument().activeElement?this._getClosestElementsInfo(wt).forEach(([Qt,vn])=>this._originChanged(Qt,he,vn)):(this._setOrigin(he),"function"==typeof wt.focus&&wt.focus(Ie))}ngOnDestroy(){this._elementInfo.forEach(($,he)=>this.stopMonitoring(he))}_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($,he){$.classList.toggle("cdk-focused",!!he),$.classList.toggle("cdk-touch-focused","touch"===he),$.classList.toggle("cdk-keyboard-focused","keyboard"===he),$.classList.toggle("cdk-mouse-focused","mouse"===he),$.classList.toggle("cdk-program-focused","program"===he)}_setOrigin($,he=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&he,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,he){const Ie=this._elementInfo.get(he),wt=(0,ee.sA)($);!Ie||!Ie.checkChildren&&he!==wt||this._originChanged(he,this._getFocusOrigin(wt),Ie)}_onBlur($,he){const Ie=this._elementInfo.get(he);!Ie||Ie.checkChildren&&$.relatedTarget instanceof Node&&he.contains($.relatedTarget)||(this._setClasses(he),this._emitOrigin(Ie.subject,null))}_emitOrigin($,he){this._ngZone.run(()=>$.next(he))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const he=$.rootNode,Ie=this._rootNodeFocusListenerCount.get(he)||0;Ie||this._ngZone.runOutsideAngular(()=>{he.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ze),he.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ze)}),this._rootNodeFocusListenerCount.set(he,Ie+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 he=$.rootNode;if(this._rootNodeFocusListenerCount.has(he)){const Ie=this._rootNodeFocusListenerCount.get(he);Ie>1?this._rootNodeFocusListenerCount.set(he,Ie-1):(he.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ze),he.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ze),this._rootNodeFocusListenerCount.delete(he))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,he,Ie){this._setClasses($,he),this._emitOrigin(Ie.subject,he),this._lastFocusOrigin=he}_getClosestElementsInfo($){const he=[];return this._elementInfo.forEach((Ie,wt)=>{(wt===$||Ie.checkChildren&&wt.contains($))&&he.push([wt,Ie])}),he}}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(Ne,8))},L.\u0275prov=s.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const V="cdk-high-contrast-black-on-white",Ue="cdk-high-contrast-white-on-black",nt="cdk-high-contrast-active";let ae=(()=>{class L{constructor($,he){this._platform=$,this._document=he}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 he=this._document.defaultView||window,Ie=he&&he.getComputedStyle?he.getComputedStyle($):null,wt=(Ie&&Ie.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(Ue),this._hasCheckedHighContrastMode=!0;const he=this.getHighContrastMode();1===he?($.add(nt),$.add(V)):2===he&&($.add(nt),$.add(Ue))}}}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})(),Be=(()=>{class L{constructor($){$._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function($){return new($||L)(s.LFG(ae))},L.\u0275mod=s.oAB({type:L}),L.\u0275inj=s.cJS({imports:[[ee.ud,_e.Q8]]}),L})()},226:(_t,we,p)=>{p.d(we,{vT:()=>R,Is:()=>K});var a=p(5e3),s=p(9808);const W=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function ne(){return(0,a.f3M)(s.K0)}}),J=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let K=(()=>{class H{constructor(ee){if(this.value="ltr",this.change=new a.vpe,ee){const $e=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)?J.test(navigator.language)?"rtl":"ltr":"rtl"===B?"rtl":"ltr"}((ee.body?ee.body.dir:null)||$e||"ltr")}}ngOnDestroy(){this.change.complete()}}return H.\u0275fac=function(ee){return new(ee||H)(a.LFG(W,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:(_t,we,p)=>{p.d(we,{t6:()=>ne,Eq:()=>J,Ig:()=>s,HM:()=>_,fI:()=>K,su:()=>W});var a=p(5e3);function s(R){return null!=R&&"false"!=`${R}`}function W(R,H=0){return ne(R)?Number(R):H}function ne(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function J(R){return Array.isArray(R)?R:[R]}function _(R){return null==R?"":"string"==typeof R?R:`${R}px`}function K(R){return R instanceof a.SBq?R.nativeElement:R}},1159:(_t,we,p)=>{p.d(we,{zL:()=>I,ZH:()=>s,jx:()=>K,JH:()=>zt,K5:()=>J,hY:()=>B,oh:()=>Ce,b2:()=>oe,MW:()=>Ze,SV:()=>pt,JU:()=>_,L_:()=>ee,Mf:()=>W,LH:()=>gt,Vb:()=>k});const s=8,W=9,J=13,_=16,K=17,I=18,B=27,ee=32,Ce=37,gt=38,pt=39,zt=40,Ze=91,oe=224;function k(Ee,...it){return it.length?it.some(Ct=>Ee[Ct]):Ee.altKey||Ee.shiftKey||Ee.ctrlKey||Ee.metaKey}},5113:(_t,we,p)=>{p.d(we,{Yg:()=>zt,u3:()=>ye,xu:()=>$e,vx:()=>Ce});var a=p(5e3),s=p(3191),W=p(8929),ne=p(6053),J=p(1961),_=p(6498),K=p(2986),I=p(1307),R=p(13),H=p(4850),B=p(1059),ee=p(7625),_e=p(925);let $e=(()=>{class Ge{}return Ge.\u0275fac=function(ze){return new(ze||Ge)},Ge.\u0275mod=a.oAB({type:Ge}),Ge.\u0275inj=a.cJS({}),Ge})();const Ve=new Set;let xe,Ce=(()=>{class Ge{constructor(ze){this._platform=ze,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pt}matchMedia(ze){return(this._platform.WEBKIT||this._platform.BLINK)&&function gt(Ge){if(!Ve.has(Ge))try{xe||(xe=document.createElement("style"),xe.setAttribute("type","text/css"),document.head.appendChild(xe)),xe.sheet&&(xe.sheet.insertRule(`@media ${Ge} {body{ }}`,0),Ve.add(Ge))}catch(et){console.error(et)}}(ze),this._matchMedia(ze)}}return Ge.\u0275fac=function(ze){return new(ze||Ge)(a.LFG(_e.t4))},Ge.\u0275prov=a.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();function pt(Ge){return{matches:"all"===Ge||""===Ge,media:Ge,addListener:()=>{},removeListener:()=>{}}}let zt=(()=>{class Ge{constructor(ze,Je){this._mediaMatcher=ze,this._zone=Je,this._queries=new Map,this._destroySubject=new W.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(ze){return ct((0,s.Eq)(ze)).some(q=>this._registerQuery(q).mql.matches)}observe(ze){const q=ct((0,s.Eq)(ze)).map(ue=>this._registerQuery(ue).observable);let pe=(0,ne.aj)(q);return pe=(0,J.z)(pe.pipe((0,K.q)(1)),pe.pipe((0,I.T)(1),(0,R.b)(0))),pe.pipe((0,H.U)(ue=>{const fe={matches:!1,breakpoints:{}};return ue.forEach(({matches:ke,query:Oe})=>{fe.matches=fe.matches||ke,fe.breakpoints[Oe]=ke}),fe}))}_registerQuery(ze){if(this._queries.has(ze))return this._queries.get(ze);const Je=this._mediaMatcher.matchMedia(ze),pe={observable:new _.y(ue=>{const fe=ke=>this._zone.run(()=>ue.next(ke));return Je.addListener(fe),()=>{Je.removeListener(fe)}}).pipe((0,B.O)(Je),(0,H.U)(({matches:ue})=>({query:ze,matches:ue})),(0,ee.R)(this._destroySubject)),mql:Je};return this._queries.set(ze,pe),pe}}return Ge.\u0275fac=function(ze){return new(ze||Ge)(a.LFG(Ce),a.LFG(a.R0b))},Ge.\u0275prov=a.Yz7({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();function ct(Ge){return Ge.map(et=>et.split(",")).reduce((et,ze)=>et.concat(ze)).map(et=>et.trim())}const ye={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:(_t,we,p)=>{p.d(we,{Q8:()=>J});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"}),_})(),J=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=a.oAB({type:_}),_.\u0275inj=a.cJS({providers:[s]}),_})()},2845:(_t,we,p)=>{p.d(we,{pI:()=>Cn,xu:()=>_n,tR:()=>pe,aV:()=>gn,X_:()=>q,Vs:()=>Et,U8:()=>ln,Iu:()=>We});var a=p(3393),s=p(9808),W=p(5e3),ne=p(3191),J=p(925),_=p(226),K=p(7429),I=p(8929),R=p(2654),H=p(6787),B=p(3489);class _e{constructor(x,z){this.predicate=x,this.inclusive=z}call(x,z){return z.subscribe(new $e(x,this.predicate,this.inclusive))}}class $e 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(me){return void z.error(me)}this.nextOrComplete(x,P)}nextOrComplete(x,z){const P=this.destination;Boolean(z)?P.next(x):(this.inclusive&&P.next(x),P.complete())}}var Ve=p(2986),xe=p(7625),Ce=p(1159);const gt=(0,J.Mq)();class pt{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,ne.HM)(-this._previousScrollPosition.left),x.style.top=(0,ne.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,me=this._document.body.style,j=P.scrollBehavior||"",ge=me.scrollBehavior||"";this._isEnabled=!1,P.left=this._previousHTMLStyles.left,P.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),gt&&(P.scrollBehavior=me.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),gt&&(P.scrollBehavior=j,me.scrollBehavior=ge)}}_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 ct{constructor(x,z,P,me){this._scrollDispatcher=x,this._ngZone=z,this._viewportRuler=P,this._config=me,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 ye{enable(){}disable(){}attach(){}}function Ge(Xe,x){return x.some(z=>Xe.bottomz.bottom||Xe.rightz.right)}function et(Xe,x){return x.some(z=>Xe.topz.bottom||Xe.leftz.right)}class ze{constructor(x,z,P,me){this._scrollDispatcher=x,this._viewportRuler=z,this._ngZone=P,this._config=me,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:me}=this._viewportRuler.getViewportSize();Ge(z,[{width:P,height:me,bottom:me,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 Je=(()=>{class Xe{constructor(z,P,me,j){this._scrollDispatcher=z,this._viewportRuler=P,this._ngZone=me,this.noop=()=>new ye,this.close=ge=>new ct(this._scrollDispatcher,this._ngZone,this._viewportRuler,ge),this.block=()=>new pt(this._viewportRuler,this._document),this.reposition=ge=>new ze(this._scrollDispatcher,this._viewportRuler,this._ngZone,ge),this._document=j}}return Xe.\u0275fac=function(z){return new(z||Xe)(W.LFG(a.mF),W.LFG(a.rL),W.LFG(W.R0b),W.LFG(s.K0))},Xe.\u0275prov=W.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();class q{constructor(x){if(this.scrollStrategy=new ye,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 pe{constructor(x,z,P,me,j){this.offsetX=P,this.offsetY=me,this.panelClass=j,this.originX=x.originX,this.originY=x.originY,this.overlayX=z.overlayX,this.overlayY=z.overlayY}}class fe{constructor(x,z){this.connectionPair=x,this.scrollableViewProperties=z}}class We{constructor(x,z,P,me,j,ge,Ne,Ze,He){this._portalOutlet=x,this._host=z,this._pane=P,this._config=me,this._ngZone=j,this._keyboardDispatcher=ge,this._document=Ne,this._location=Ze,this._outsideClickDispatcher=He,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=be=>this._backdropClick.next(be),this._keydownEvents=new I.xQ,this._outsidePointerEvents=new I.xQ,me.scrollStrategy&&(this._scrollStrategy=me.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=me.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,Ve.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,ne.HM)(this._config.width),x.height=(0,ne.HM)(this._config.height),x.minWidth=(0,ne.HM)(this._config.minWidth),x.minHeight=(0,ne.HM)(this._config.minHeight),x.maxWidth=(0,ne.HM)(this._config.maxWidth),x.maxHeight=(0,ne.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 me=(0,ne.Eq)(z||[]).filter(j=>!!j);me.length&&(P?x.classList.add(...me):x.classList.remove(...me))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,xe.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 Re=(()=>{class Xe{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,J.Oy)()){const me=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,me=this._containerRect,j=[];let ge;for(let Ne of this._preferredPositions){let Ze=this._getOriginPoint(x,me,Ne),He=this._getOverlayPoint(Ze,z,Ne),be=this._getOverlayFit(He,z,P,Ne);if(be.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ne,Ze);this._canFitWithFlexibleDimensions(be,He,P)?j.push({position:Ne,origin:Ze,overlayRect:z,boundingBoxRect:this._calculateBoundingBoxRect(Ze,Ne)}):(!ge||ge.overlayFit.visibleAreaZe&&(Ze=be,Ne=He)}return this._isPushed=!1,void this._applyPosition(Ne.position,Ne.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ge.position,ge.originPoint);this._applyPosition(ge.position,ge.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&qe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Se),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 me,j;if("center"==P.originX)me=x.left+x.width/2;else{const ge=this._isRtl()?x.right:x.left,Ne=this._isRtl()?x.left:x.right;me="start"==P.originX?ge:Ne}return z.left<0&&(me-=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:me,y:j}}_getOverlayPoint(x,z,P){let me,j;return me="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+me,y:x.y+j}}_getOverlayFit(x,z,P,me){const j=ot(z);let{x:ge,y:Ne}=x,Ze=this._getOffset(me,"x"),He=this._getOffset(me,"y");Ze&&(ge+=Ze),He&&(Ne+=He);let Ue=0-Ne,nt=Ne+j.height-P.height,ae=this._subtractOverflows(j.width,0-ge,ge+j.width-P.width),Be=this._subtractOverflows(j.height,Ue,nt),L=ae*Be;return{visibleArea:L,isCompletelyWithinViewport:j.width*j.height===L,fitsInViewportVertically:Be===j.height,fitsInViewportHorizontally:ae==j.width}}_canFitWithFlexibleDimensions(x,z,P){if(this._hasFlexibleDimensions){const me=P.bottom-z.y,j=P.right-z.x,ge=Ye(this._overlayRef.getConfig().minHeight),Ne=Ye(this._overlayRef.getConfig().minWidth),He=x.fitsInViewportHorizontally||null!=Ne&&Ne<=j;return(x.fitsInViewportVertically||null!=ge&&ge<=me)&&He}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 me=ot(z),j=this._viewportRect,ge=Math.max(x.x+me.width-j.width,0),Ne=Math.max(x.y+me.height-j.height,0),Ze=Math.max(j.top-P.top-x.y,0),He=Math.max(j.left-P.left-x.x,0);let be=0,V=0;return be=me.width<=j.width?He||-ge:x.xae&&!this._isInitialRender&&!this._growAfterOpen&&(ge=x.y-ae/2)}if("end"===z.overlayX&&!me||"start"===z.overlayX&&me)Ue=P.width-x.x+this._viewportMargin,be=x.x-this._viewportMargin;else if("start"===z.overlayX&&!me||"end"===z.overlayX&&me)V=x.x,be=P.right-x.x;else{const nt=Math.min(P.right-x.x+P.left,x.x),ae=this._lastBoundingBoxSize.width;be=2*nt,V=x.x-nt,be>ae&&!this._isInitialRender&&!this._growAfterOpen&&(V=x.x-ae/2)}return{top:ge,left:V,bottom:Ne,right:Ue,width:be,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 me={};if(this._hasExactPosition())me.top=me.left="0",me.bottom=me.right=me.maxHeight=me.maxWidth="",me.width=me.height="100%";else{const j=this._overlayRef.getConfig().maxHeight,ge=this._overlayRef.getConfig().maxWidth;me.height=(0,ne.HM)(P.height),me.top=(0,ne.HM)(P.top),me.bottom=(0,ne.HM)(P.bottom),me.width=(0,ne.HM)(P.width),me.left=(0,ne.HM)(P.left),me.right=(0,ne.HM)(P.right),me.alignItems="center"===z.overlayX?"center":"end"===z.overlayX?"flex-end":"flex-start",me.justifyContent="center"===z.overlayY?"center":"bottom"===z.overlayY?"flex-end":"flex-start",j&&(me.maxHeight=(0,ne.HM)(j)),ge&&(me.maxWidth=(0,ne.HM)(ge))}this._lastBoundingBoxSize=P,qe(this._boundingBox.style,me)}_resetBoundingBoxStyles(){qe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){qe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,z){const P={},me=this._hasExactPosition(),j=this._hasFlexibleDimensions,ge=this._overlayRef.getConfig();if(me){const be=this._viewportRuler.getViewportScrollPosition();qe(P,this._getExactOverlayY(z,x,be)),qe(P,this._getExactOverlayX(z,x,be))}else P.position="static";let Ne="",Ze=this._getOffset(z,"x"),He=this._getOffset(z,"y");Ze&&(Ne+=`translateX(${Ze}px) `),He&&(Ne+=`translateY(${He}px)`),P.transform=Ne.trim(),ge.maxHeight&&(me?P.maxHeight=(0,ne.HM)(ge.maxHeight):j&&(P.maxHeight="")),ge.maxWidth&&(me?P.maxWidth=(0,ne.HM)(ge.maxWidth):j&&(P.maxWidth="")),qe(this._pane.style,P)}_getExactOverlayY(x,z,P){let me={top:"",bottom:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),"bottom"===x.overlayY?me.bottom=this._document.documentElement.clientHeight-(j.y+this._overlayRect.height)+"px":me.top=(0,ne.HM)(j.y),me}_getExactOverlayX(x,z,P){let ge,me={left:"",right:""},j=this._getOverlayPoint(z,this._overlayRect,x);return this._isPushed&&(j=this._pushOverlayOnScreen(j,this._overlayRect,P)),ge=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===ge?me.right=this._document.documentElement.clientWidth-(j.x+this._overlayRect.width)+"px":me.left=(0,ne.HM)(j.x),me}_getScrollVisibility(){const x=this._getOriginRect(),z=this._pane.getBoundingClientRect(),P=this._scrollables.map(me=>me.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:et(x,P),isOriginOutsideView:Ge(x,P),isOverlayClipped:et(z,P),isOverlayOutsideView:Ge(z,P)}}_subtractOverflows(x,...z){return z.reduce((P,me)=>P-Math.max(me,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,ne.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 W.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 qe(Xe,x){for(let z in x)x.hasOwnProperty(z)&&(Xe[z]=x[z]);return Xe}function Ye(Xe){if("number"!=typeof Xe&&null!=Xe){const[x,z]=Xe.split(le);return z&&"px"!==z?null:parseFloat(x)}return Xe||null}function ot(Xe){return{top:Math.floor(Xe.top),right:Math.floor(Xe.right),bottom:Math.floor(Xe.bottom),left:Math.floor(Xe.left),width:Math.floor(Xe.width),height:Math.floor(Xe.height)}}const yt="cdk-global-overlay-wrapper";class st{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(yt),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:me,height:j,maxWidth:ge,maxHeight:Ne}=P,Ze=!("100%"!==me&&"100vw"!==me||ge&&"100%"!==ge&&"100vw"!==ge),He=!("100%"!==j&&"100vh"!==j||Ne&&"100%"!==Ne&&"100vh"!==Ne);x.position=this._cssPosition,x.marginLeft=Ze?"0":this._leftOffset,x.marginTop=He?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,Ze?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=He?"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(yt),P.justifyContent=P.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let St=(()=>{class Xe{constructor(z,P,me,j){this._viewportRuler=z,this._document=P,this._platform=me,this._overlayContainer=j}global(){return new st}flexibleConnectedTo(z){return new ce(z,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Xe.\u0275fac=function(z){return new(z||Xe)(W.LFG(a.rL),W.LFG(s.K0),W.LFG(J.t4),W.LFG(Re))},Xe.\u0275prov=W.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),tt=(()=>{class Xe{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 Xe.\u0275fac=function(z){return new(z||Xe)(W.LFG(s.K0))},Xe.\u0275prov=W.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Et=(()=>{class Xe extends tt{constructor(z){super(z),this._keydownListener=P=>{const me=this._attachedOverlays;for(let j=me.length-1;j>-1;j--)if(me[j]._keydownEvents.observers.length>0){me[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 Xe.\u0275fac=function(z){return new(z||Xe)(W.LFG(s.K0))},Xe.\u0275prov=W.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Wt=(()=>{class Xe extends tt{constructor(z,P){super(z),this._platform=P,this._cursorStyleIsSet=!1,this._pointerDownListener=me=>{this._pointerDownEventTarget=(0,J.sA)(me)},this._clickListener=me=>{const j=(0,J.sA)(me),ge="click"===me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:j;this._pointerDownEventTarget=null;const Ne=this._attachedOverlays.slice();for(let Ze=Ne.length-1;Ze>-1;Ze--){const He=Ne[Ze];if(!(He._outsidePointerEvents.observers.length<1)&&He.hasAttached()){if(He.overlayElement.contains(j)||He.overlayElement.contains(ge))break;He._outsidePointerEvents.next(me)}}}}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 Xe.\u0275fac=function(z){return new(z||Xe)(W.LFG(s.K0),W.LFG(J.t4))},Xe.\u0275prov=W.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),sn=0,gn=(()=>{class Xe{constructor(z,P,me,j,ge,Ne,Ze,He,be,V,Ue){this.scrollStrategies=z,this._overlayContainer=P,this._componentFactoryResolver=me,this._positionBuilder=j,this._keyboardDispatcher=ge,this._injector=Ne,this._ngZone=Ze,this._document=He,this._directionality=be,this._location=V,this._outsideClickDispatcher=Ue}create(z){const P=this._createHostElement(),me=this._createPaneElement(P),j=this._createPortalOutlet(me),ge=new q(z);return ge.direction=ge.direction||this._directionality.value,new We(j,P,me,ge,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-"+sn++,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(W.z2F)),new K.u0(z,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Xe.\u0275fac=function(z){return new(z||Xe)(W.LFG(Je),W.LFG(Re),W.LFG(W._Vd),W.LFG(St),W.LFG(Et),W.LFG(W.zs3),W.LFG(W.R0b),W.LFG(s.K0),W.LFG(_.Is),W.LFG(s.Ye),W.LFG(Wt))},Xe.\u0275prov=W.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();const Yt=[{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"}],hn=new W.OlP("cdk-connected-overlay-scroll-strategy");let _n=(()=>{class Xe{constructor(z){this.elementRef=z}}return Xe.\u0275fac=function(z){return new(z||Xe)(W.Y36(W.SBq))},Xe.\u0275dir=W.lG2({type:Xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Xe})(),Cn=(()=>{class Xe{constructor(z,P,me,j,ge){this._overlay=z,this._dir=ge,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 W.vpe,this.positionChange=new W.vpe,this.attach=new W.vpe,this.detach=new W.vpe,this.overlayKeydown=new W.vpe,this.overlayOutsideClick=new W.vpe,this._templatePortal=new K.UE(P,me),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,ne.Ig)(z)}get lockPosition(){return this._lockPosition}set lockPosition(z){this._lockPosition=(0,ne.Ig)(z)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(z){this._flexibleDimensions=(0,ne.Ig)(z)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(z){this._growAfterOpen=(0,ne.Ig)(z)}get push(){return this._push}set push(z){this._push=(0,ne.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=Yt);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===Ce.hY&&!this.disableClose&&!(0,Ce.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 q({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(me=>({originX:me.originX,originY:me.originY,overlayX:me.overlayX,overlayY:me.overlayY,offsetX:me.offsetX||this.offsetX,offsetY:me.offsetY||this.offsetY,panelClass:me.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(Xe,x=!1){return z=>z.lift(new _e(Xe,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 Xe.\u0275fac=function(z){return new(z||Xe)(W.Y36(gn),W.Y36(W.Rgc),W.Y36(W.s_b),W.Y36(hn),W.Y36(_.Is,8))},Xe.\u0275dir=W.lG2({type:Xe,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:[W.TTD]}),Xe})();const Sn={provide:hn,deps:[gn],useFactory:function Dt(Xe){return()=>Xe.scrollStrategies.reposition()}};let ln=(()=>{class Xe{}return Xe.\u0275fac=function(z){return new(z||Xe)},Xe.\u0275mod=W.oAB({type:Xe}),Xe.\u0275inj=W.cJS({providers:[gn,Sn],imports:[[_.vT,K.eL,a.Cl],a.Cl]}),Xe})()},925:(_t,we,p)=>{p.d(we,{t4:()=>ne,ud:()=>J,sA:()=>zt,kV:()=>gt,Oy:()=>ct,_i:()=>Ve,i$:()=>B,Mq:()=>$e});var a=p(5e3),s=p(9808);let W;try{W="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ye){W=!1}let R,ee,_e,xe,ne=(()=>{class ye{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&&!W)&&"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 ye.\u0275fac=function(et){return new(et||ye)(a.LFG(a.Lbi))},ye.\u0275prov=a.Yz7({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),J=(()=>{class ye{}return ye.\u0275fac=function(et){return new(et||ye)},ye.\u0275mod=a.oAB({type:ye}),ye.\u0275inj=a.cJS({}),ye})();function B(ye){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}()?ye:!!ye.capture}function $e(){if(null==_e){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return _e=!1,_e;if("scrollBehavior"in document.documentElement.style)_e=!0;else{const ye=Element.prototype.scrollTo;_e=!!ye&&!/\{\s*\[native code\]\s*\}/.test(ye.toString())}}return _e}function Ve(){if("object"!=typeof document||!document)return 0;if(null==ee){const ye=document.createElement("div"),Ge=ye.style;ye.dir="rtl",Ge.width="1px",Ge.overflow="auto",Ge.visibility="hidden",Ge.pointerEvents="none",Ge.position="absolute";const et=document.createElement("div"),ze=et.style;ze.width="2px",ze.height="1px",ye.appendChild(et),document.body.appendChild(ye),ee=0,0===ye.scrollLeft&&(ye.scrollLeft=1,ee=0===ye.scrollLeft?1:2),ye.remove()}return ee}function gt(ye){if(function Ce(){if(null==xe){const ye="undefined"!=typeof document?document.head:null;xe=!(!ye||!ye.createShadowRoot&&!ye.attachShadow)}return xe}()){const Ge=ye.getRootNode?ye.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Ge instanceof ShadowRoot)return Ge}return null}function zt(ye){return ye.composedPath?ye.composedPath()[0]:ye.target}function ct(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(_t,we,p)=>{p.d(we,{en:()=>_e,Pl:()=>pt,C5:()=>H,u0:()=>Ve,eL:()=>ct,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,ze,Je,q){super(),this.component=et,this.viewContainerRef=ze,this.injector=Je,this.componentFactoryResolver=q}}class B extends R{constructor(et,ze,Je){super(),this.templateRef=et,this.viewContainerRef=ze,this.context=Je}get origin(){return this.templateRef.elementRef}attach(et,ze=this.context){return this.context=ze,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 _e{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 Ve extends _e{constructor(et,ze,Je,q,pe){super(),this.outletElement=et,this._componentFactoryResolver=ze,this._appRef=Je,this._defaultInjector=q,this.attachDomPortal=ue=>{const fe=ue.element,ke=this._document.createComment("dom-portal");fe.parentNode.insertBefore(ke,fe),this.outletElement.appendChild(fe),this._attachedPortal=ue,super.setDisposeFn(()=>{ke.parentNode&&ke.parentNode.replaceChild(fe,ke)})},this._document=pe}attachComponentPortal(et){const Je=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component);let q;return et.viewContainerRef?(q=et.viewContainerRef.createComponent(Je,et.viewContainerRef.length,et.injector||et.viewContainerRef.injector),this.setDisposeFn(()=>q.destroy())):(q=Je.create(et.injector||this._defaultInjector),this._appRef.attachView(q.hostView),this.setDisposeFn(()=>{this._appRef.detachView(q.hostView),q.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(q)),this._attachedPortal=et,q}attachTemplatePortal(et){let ze=et.viewContainerRef,Je=ze.createEmbeddedView(et.templateRef,et.context);return Je.rootNodes.forEach(q=>this.outletElement.appendChild(q)),Je.detectChanges(),this.setDisposeFn(()=>{let q=ze.indexOf(Je);-1!==q&&ze.remove(q)}),this._attachedPortal=et,Je}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}let pt=(()=>{class Ge extends _e{constructor(ze,Je,q){super(),this._componentFactoryResolver=ze,this._viewContainerRef=Je,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=pe=>{const ue=pe.element,fe=this._document.createComment("dom-portal");pe.setAttachedHost(this),ue.parentNode.insertBefore(fe,ue),this._getRootNode().appendChild(ue),this._attachedPortal=pe,super.setDisposeFn(()=>{fe.parentNode&&fe.parentNode.replaceChild(ue,fe)})},this._document=q}get portal(){return this._attachedPortal}set portal(ze){this.hasAttached()&&!ze&&!this._isInitialized||(this.hasAttached()&&super.detach(),ze&&super.attach(ze),this._attachedPortal=ze||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ze){ze.setAttachedHost(this);const Je=null!=ze.viewContainerRef?ze.viewContainerRef:this._viewContainerRef,pe=(ze.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ze.component),ue=Je.createComponent(pe,Je.length,ze.injector||Je.injector);return Je!==this._viewContainerRef&&this._getRootNode().appendChild(ue.hostView.rootNodes[0]),super.setDisposeFn(()=>ue.destroy()),this._attachedPortal=ze,this._attachedRef=ue,this.attached.emit(ue),ue}attachTemplatePortal(ze){ze.setAttachedHost(this);const Je=this._viewContainerRef.createEmbeddedView(ze.templateRef,ze.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ze,this._attachedRef=Je,this.attached.emit(Je),Je}_getRootNode(){const ze=this._viewContainerRef.element.nativeElement;return ze.nodeType===ze.ELEMENT_NODE?ze:ze.parentNode}}return Ge.\u0275fac=function(ze){return new(ze||Ge)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(s.K0))},Ge.\u0275dir=a.lG2({type:Ge,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),Ge})(),ct=(()=>{class Ge{}return Ge.\u0275fac=function(ze){return new(ze||Ge)},Ge.\u0275mod=a.oAB({type:Ge}),Ge.\u0275inj=a.cJS({}),Ge})()},3393:(_t,we,p)=>{p.d(we,{xd:()=>Dt,x0:()=>ge,N7:()=>me,mF:()=>ln,Cl:()=>Ze,rL:()=>x});var a=p(3191),s=p(5e3),W=p(6686),J=p(2268);const K=new class _ extends J.v{flush(be){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Ue,nt=-1,ae=V.length;be=be||V.shift();do{if(Ue=be.execute(be.state,be.delay))break}while(++nt0?super.requestAsyncId(be,V,Ue):(be.actions.push(this),be.scheduled||(be.scheduled=requestAnimationFrame(()=>be.flush(null))))}recycleAsyncId(be,V,Ue=0){if(null!==Ue&&Ue>0||null===Ue&&this.delay>0)return super.recycleAsyncId(be,V,Ue);0===be.actions.length&&(cancelAnimationFrame(V),be.scheduled=void 0)}});let R=1;const H=Promise.resolve(),B={};function ee(He){return He in B&&(delete B[He],!0)}const _e={setImmediate(He){const be=R++;return B[be]=!0,H.then(()=>ee(be)&&He()),be},clearImmediate(He){ee(He)}},Ce=new class xe extends J.v{flush(be){this.active=!0,this.scheduled=void 0;const{actions:V}=this;let Ue,nt=-1,ae=V.length;be=be||V.shift();do{if(Ue=be.execute(be.state,be.delay))break}while(++nt0?super.requestAsyncId(be,V,Ue):(be.actions.push(this),be.scheduled||(be.scheduled=_e.setImmediate(be.flush.bind(be,null))))}recycleAsyncId(be,V,Ue=0){if(null!==Ue&&Ue>0||null===Ue&&this.delay>0)return super.recycleAsyncId(be,V,Ue);0===be.actions.length&&(_e.clearImmediate(V),be.scheduled=void 0)}});var pt=p(6498);function zt(He){return!!He&&(He instanceof pt.y||"function"==typeof He.lift&&"function"==typeof He.subscribe)}var ct=p(8929),ye=p(1086),Ge=p(3753),et=p(2654),ze=p(3489);class q{call(be,V){return V.subscribe(new pe(be))}}class pe extends ze.L{constructor(be){super(be),this.hasPrev=!1}_next(be){let V;this.hasPrev?V=[this.prev,be]:this.hasPrev=!0,this.prev=be,V&&this.destination.next(V)}}var ue=p(5778),fe=p(7138),ke=p(2198),Oe=p(7625),We=p(1059),Re=p(7545),Se=p(5154),le=p(9808),ce=p(925),qe=p(226);class yt extends class Ye{}{constructor(be){super(),this._data=be}connect(){return zt(this._data)?this._data:(0,ye.of)(this._data)}disconnect(){}}class St{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(be,V,Ue,nt,ae){be.forEachOperation((Be,L,E)=>{let $,he;null==Be.previousIndex?($=this._insertView(()=>Ue(Be,L,E),E,V,nt(Be)),he=$?1:0):null==E?(this._detachAndCacheView(L,V),he=3):($=this._moveView(L,E,V,nt(Be)),he=2),ae&&ae({context:null==$?void 0:$.context,operation:he,record:Be})})}detach(){for(const be of this._viewCache)be.destroy();this._viewCache=[]}_insertView(be,V,Ue,nt){const ae=this._insertViewFromCache(V,Ue);if(ae)return void(ae.context.$implicit=nt);const Be=be();return Ue.createEmbeddedView(Be.templateRef,Be.context,Be.index)}_detachAndCacheView(be,V){const Ue=V.detach(be);this._maybeCacheView(Ue,V)}_moveView(be,V,Ue,nt){const ae=Ue.get(be);return Ue.move(ae,V),ae.context.$implicit=nt,ae}_maybeCacheView(be,V){if(this._viewCache.length0?ae/this._itemSize:0;if(V.end>nt){const E=Math.ceil(Ue/this._itemSize),$=Math.max(0,Math.min(Be,nt-E));Be!=$&&(Be=$,ae=$*this._itemSize,V.start=Math.floor(Be)),V.end=Math.max(0,Math.min(nt,V.start+E))}const L=ae-V.start*this._itemSize;if(L0&&(V.end=Math.min(nt,V.end+$),V.start=Math.max(0,Math.floor(Be-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(V),this._viewport.setRenderedContentOffset(this._itemSize*V.start),this._scrolledIndexChange.next(Math.floor(Be))}}function Cn(He){return He._scrollStrategy}let Dt=(()=>{class He{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 He.\u0275fac=function(V){return new(V||He)},He.\u0275dir=s.lG2({type:He,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[s._Bn([{provide:hn,useFactory:Cn,deps:[(0,s.Gpc)(()=>He)]}]),s.TTD]}),He})(),ln=(()=>{class He{constructor(V,Ue,nt){this._ngZone=V,this._platform=Ue,this._scrolled=new ct.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 Ue=this.scrollContainers.get(V);Ue&&(Ue.unsubscribe(),this.scrollContainers.delete(V))}scrolled(V=20){return this._platform.isBrowser?new pt.y(Ue=>{this._globalSubscription||this._addGlobalListener();const nt=V>0?this._scrolled.pipe((0,fe.e)(V)).subscribe(Ue):this._scrolled.subscribe(Ue);return this._scrolledCount++,()=>{nt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ye.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((V,Ue)=>this.deregister(Ue)),this._scrolled.complete()}ancestorScrolled(V,Ue){const nt=this.getAncestorScrollContainers(V);return this.scrolled(Ue).pipe((0,ke.h)(ae=>!ae||nt.indexOf(ae)>-1))}getAncestorScrollContainers(V){const Ue=[];return this.scrollContainers.forEach((nt,ae)=>{this._scrollableContainsElement(ae,V)&&Ue.push(ae)}),Ue}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(V,Ue){let nt=(0,a.fI)(Ue),ae=V.getElementRef().nativeElement;do{if(nt==ae)return!0}while(nt=nt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const V=this._getWindow();return(0,Ge.R)(V.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return He.\u0275fac=function(V){return new(V||He)(s.LFG(s.R0b),s.LFG(ce.t4),s.LFG(le.K0,8))},He.\u0275prov=s.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})(),Mn=(()=>{class He{constructor(V,Ue,nt,ae){this.elementRef=V,this.scrollDispatcher=Ue,this.ngZone=nt,this.dir=ae,this._destroyed=new ct.xQ,this._elementScrolled=new pt.y(Be=>this.ngZone.runOutsideAngular(()=>(0,Ge.R)(this.elementRef.nativeElement,"scroll").pipe((0,Oe.R)(this._destroyed)).subscribe(Be)))}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 Ue=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=Ue.scrollHeight-Ue.clientHeight-V.bottom),nt&&0!=(0,ce._i)()?(null!=V.left&&(V.right=Ue.scrollWidth-Ue.clientWidth-V.left),2==(0,ce._i)()?V.left=V.right:1==(0,ce._i)()&&(V.left=V.right?-V.right:V.right)):null!=V.right&&(V.left=Ue.scrollWidth-Ue.clientWidth-V.right),this._applyScrollToOptions(V)}_applyScrollToOptions(V){const Ue=this.elementRef.nativeElement;(0,ce.Mq)()?Ue.scrollTo(V):(null!=V.top&&(Ue.scrollTop=V.top),null!=V.left&&(Ue.scrollLeft=V.left))}measureScrollOffset(V){const Ue="left",ae=this.elementRef.nativeElement;if("top"==V)return ae.scrollTop;if("bottom"==V)return ae.scrollHeight-ae.clientHeight-ae.scrollTop;const Be=this.dir&&"rtl"==this.dir.value;return"start"==V?V=Be?"right":Ue:"end"==V&&(V=Be?Ue:"right"),Be&&2==(0,ce._i)()?V==Ue?ae.scrollWidth-ae.clientWidth-ae.scrollLeft:ae.scrollLeft:Be&&1==(0,ce._i)()?V==Ue?ae.scrollLeft+ae.scrollWidth-ae.clientWidth:-ae.scrollLeft:V==Ue?ae.scrollLeft:ae.scrollWidth-ae.clientWidth-ae.scrollLeft}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(ln),s.Y36(s.R0b),s.Y36(qe.Is,8))},He.\u0275dir=s.lG2({type:He,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),He})(),x=(()=>{class He{constructor(V,Ue,nt){this._platform=V,this._change=new ct.xQ,this._changeListener=ae=>{this._change.next(ae)},this._document=nt,Ue.runOutsideAngular(()=>{if(V.isBrowser){const ae=this._getWindow();ae.addEventListener("resize",this._changeListener),ae.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:Ue,height:nt}=this.getViewportSize();return{top:V.top,left:V.left,bottom:V.top+nt,right:V.left+Ue,height:nt,width:Ue}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const V=this._document,Ue=this._getWindow(),nt=V.documentElement,ae=nt.getBoundingClientRect();return{top:-ae.top||V.body.scrollTop||Ue.scrollY||nt.scrollTop||0,left:-ae.left||V.body.scrollLeft||Ue.scrollX||nt.scrollLeft||0}}change(V=20){return V>0?this._change.pipe((0,fe.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 He.\u0275fac=function(V){return new(V||He)(s.LFG(ce.t4),s.LFG(s.R0b),s.LFG(le.K0,8))},He.\u0275prov=s.Yz7({token:He,factory:He.\u0275fac,providedIn:"root"}),He})();const P="undefined"!=typeof requestAnimationFrame?K:Ce;let me=(()=>{class He extends Mn{constructor(V,Ue,nt,ae,Be,L,E){super(V,L,nt,Be),this.elementRef=V,this._changeDetectorRef=Ue,this._scrollStrategy=ae,this._detachedSubject=new ct.xQ,this._renderedRangeSubject=new ct.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new pt.y($=>this._scrollStrategy.scrolledIndexChange.subscribe(he=>Promise.resolve().then(()=>this.ngZone.run(()=>$.next(he))))),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,We.O)(null),(0,fe.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,Oe.R)(this._detachedSubject)).subscribe(Ue=>{const nt=Ue.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(He,be){return He.start==be.start&&He.end==be.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,Ue="to-start"){const ae="horizontal"==this.orientation,Be=ae?"X":"Y";let E=`translate${Be}(${Number((ae&&this.dir&&"rtl"==this.dir.value?-1:1)*V)}px)`;this._renderedContentOffset=V,"to-end"===Ue&&(E+=` translate${Be}(-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,Ue="auto"){const nt={behavior:Ue};"horizontal"===this.orientation?nt.start=V:nt.top=V,this.scrollTo(nt)}scrollToIndex(V,Ue="auto"){this._scrollStrategy.scrollToIndex(V,Ue)}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 Ue of V)Ue()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(s.R0b),s.Y36(hn,8),s.Y36(qe.Is,8),s.Y36(ln),s.Y36(x))},He.\u0275cmp=s.Xpm({type:He,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(V,Ue){if(1&V&&s.Gf(gn,7),2&V){let nt;s.iGM(nt=s.CRH())&&(Ue._contentWrapper=nt.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(V,Ue){2&V&&s.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Ue.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Ue.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[s._Bn([{provide:Mn,useExisting:He}]),s.qOj],ngContentSelectors:Yt,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(V,Ue){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",Ue._totalContentWidth)("height",Ue._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}),He})();function j(He,be,V){if(!V.getBoundingClientRect)return 0;const nt=V.getBoundingClientRect();return"horizontal"===He?"start"===be?nt.left:nt.right:"start"===be?nt.top:nt.bottom}let ge=(()=>{class He{constructor(V,Ue,nt,ae,Be,L){this._viewContainerRef=V,this._template=Ue,this._differs=nt,this._viewRepeater=ae,this._viewport=Be,this.viewChange=new ct.xQ,this._dataSourceChanges=new ct.xQ,this.dataStream=this._dataSourceChanges.pipe((0,We.O)(null),function Je(){return He=>He.lift(new q)}(),(0,Re.w)(([E,$])=>this._changeDataSource(E,$)),(0,Se.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new ct.xQ,this.dataStream.subscribe(E=>{this._data=E,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Oe.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 ot(He){return He&&"function"==typeof He.connect}(V)?this._dataSourceChanges.next(V):this._dataSourceChanges.next(new yt(zt(V)?V:Array.from(V||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(V){this._needsUpdate=!0,this._cdkVirtualForTrackBy=V?(Ue,nt)=>V(Ue+(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,Ue){if(V.start>=V.end)return 0;const nt=V.start-this._renderedRange.start,ae=V.end-V.start;let Be,L;for(let E=0;E-1;E--){const $=this._viewContainerRef.get(E+nt);if($&&$.rootNodes.length){L=$.rootNodes[$.rootNodes.length-1];break}}return Be&&L?j(Ue,"end",L)-j(Ue,"start",Be):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,Ue)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(V,Ue):Ue)),this._needsUpdate=!0)}_changeDataSource(V,Ue){return V&&V.disconnect(this),this._needsUpdate=!0,Ue?Ue.connect(this):(0,ye.of)()}_updateContext(){const V=this._data.length;let Ue=this._viewContainerRef.length;for(;Ue--;){const nt=this._viewContainerRef.get(Ue);nt.context.index=this._renderedRange.start+Ue,nt.context.count=V,this._updateComputedContextProperties(nt.context),nt.detectChanges()}}_applyChanges(V){this._viewRepeater.applyChanges(V,this._viewContainerRef,(ae,Be,L)=>this._getEmbeddedViewArgs(ae,L),ae=>ae.item),V.forEachIdentityChange(ae=>{this._viewContainerRef.get(ae.currentIndex).context.$implicit=ae.item});const Ue=this._data.length;let nt=this._viewContainerRef.length;for(;nt--;){const ae=this._viewContainerRef.get(nt);ae.context.index=this._renderedRange.start+nt,ae.context.count=Ue,this._updateComputedContextProperties(ae.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,Ue){return{templateRef:this._template,context:{$implicit:V.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Ue}}}return He.\u0275fac=function(V){return new(V||He)(s.Y36(s.s_b),s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(sn),s.Y36(me,4),s.Y36(s.R0b))},He.\u0275dir=s.lG2({type:He,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[s._Bn([{provide:sn,useClass:St}])]}),He})(),Ne=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=s.oAB({type:He}),He.\u0275inj=s.cJS({}),He})(),Ze=(()=>{class He{}return He.\u0275fac=function(V){return new(V||He)},He.\u0275mod=s.oAB({type:He}),He.\u0275inj=s.cJS({imports:[[qe.vT,ce.ud,Ne],qe.vT,Ne]}),He})()},9808:(_t,we,p)=>{p.d(we,{mr:()=>pt,Ov:()=>vo,ez:()=>Vo,K0:()=>K,uU:()=>Ii,JJ:()=>qo,Do:()=>ct,V_:()=>H,Ye:()=>ye,S$:()=>Ce,mk:()=>Qn,sg:()=>qn,O5:()=>k,PC:()=>bi,RF:()=>Ot,n9:()=>Lt,ED:()=>dn,tP:()=>io,wE:()=>Oe,b0:()=>zt,lw:()=>I,EM:()=>Qi,JF:()=>Un,dv:()=>tt,NF:()=>hi,qS:()=>Gt,w_:()=>_,bD:()=>Lo,q:()=>W,Mx:()=>jn,HT:()=>J});var a=p(5e3);let s=null;function W(){return s}function J(b){s||(s=b)}class _{}const K=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 W().getBaseHref(this._doc)}onPopState(w){const Q=W().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",w,!1),()=>Q.removeEventListener("popstate",w)}onHashChange(w){const Q=W().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,Pe){ee()?this._history.pushState(w,Q,Pe):this.location.hash=Pe}replaceState(w,Q,Pe){ee()?this._history.replaceState(w,Q,Pe):this.location.hash=Pe}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(K))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function _e(){return new B((0,a.LFG)(K))}()},providedIn:"platform"}),b})();function ee(){return!!window.history.pushState}function $e(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 Ve(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 xe(b){return b&&"?"!==b[0]?"?"+b:b}let Ce=(()=>{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 gt(b){const Y=(0,a.LFG)(K).location;return new zt((0,a.LFG)(I),Y&&Y.origin||"")}()},providedIn:"root"}),b})();const pt=new a.OlP("appBaseHref");let zt=(()=>{class b extends Ce{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 $e(this._baseHref,w)}path(w=!1){const Q=this._platformLocation.pathname+xe(this._platformLocation.search),Pe=this._platformLocation.hash;return Pe&&w?`${Q}${Pe}`:Q}pushState(w,Q,Pe,at){const Mt=this.prepareExternalUrl(Pe+xe(at));this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,Pe,at){const Mt=this.prepareExternalUrl(Pe+xe(at));this._platformLocation.replaceState(w,Q,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(w=0){var Q,Pe;null===(Pe=(Q=this._platformLocation).historyGo)||void 0===Pe||Pe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(pt,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ct=(()=>{class b extends Ce{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=$e(this._baseHref,w);return Q.length>0?"#"+Q:Q}pushState(w,Q,Pe,at){let Mt=this.prepareExternalUrl(Pe+xe(at));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(w,Q,Mt)}replaceState(w,Q,Pe,at){let Mt=this.prepareExternalUrl(Pe+xe(at));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,Pe;null===(Pe=(Q=this._platformLocation).historyGo)||void 0===Pe||Pe.call(Q,w)}}return b.\u0275fac=function(w){return new(w||b)(a.LFG(I),a.LFG(pt,8))},b.\u0275prov=a.Yz7({token:b,factory:b.\u0275fac}),b})(),ye=(()=>{class b{constructor(w,Q){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=w;const Pe=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=Ve(ze(Pe)),this._platformStrategy.onPopState(at=>{this._subject.emit({url:this.path(!0),pop:!0,state:at.state,type:at.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+xe(Q))}normalize(w){return b.stripTrailingSlash(function et(b,Y){return b&&Y.startsWith(b)?Y.substring(b.length):Y}(this._baseHref,ze(w)))}prepareExternalUrl(w){return w&&"/"!==w[0]&&(w="/"+w),this._platformStrategy.prepareExternalUrl(w)}go(w,Q="",Pe=null){this._platformStrategy.pushState(Pe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+xe(Q)),Pe)}replaceState(w,Q="",Pe=null){this._platformStrategy.replaceState(Pe,"",w,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(w+xe(Q)),Pe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(w=0){var Q,Pe;null===(Pe=(Q=this._platformStrategy).historyGo)||void 0===Pe||Pe.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(Pe=>Pe(w,Q))}subscribe(w,Q,Pe){return this._subject.subscribe({next:w,error:Q,complete:Pe})}}return b.normalizeQueryParams=xe,b.joinWithSlash=$e,b.stripTrailingSlash=Ve,b.\u0275fac=function(w){return new(w||b)(a.LFG(Ce),a.LFG(I))},b.\u0275prov=a.Yz7({token:b,factory:function(){return function Ge(){return new ye((0,a.LFG)(Ce),(0,a.LFG)(I))}()},providedIn:"root"}),b})();function ze(b){return b.replace(/\/index.html$/,"")}var q=(()=>((q=q||{})[q.Decimal=0]="Decimal",q[q.Percent=1]="Percent",q[q.Currency=2]="Currency",q[q.Scientific=3]="Scientific",q))(),pe=(()=>((pe=pe||{})[pe.Zero=0]="Zero",pe[pe.One=1]="One",pe[pe.Two=2]="Two",pe[pe.Few=3]="Few",pe[pe.Many=4]="Many",pe[pe.Other=5]="Other",pe))(),ue=(()=>((ue=ue||{})[ue.Format=0]="Format",ue[ue.Standalone=1]="Standalone",ue))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),Oe=(()=>((Oe=Oe||{})[Oe.Decimal=0]="Decimal",Oe[Oe.Group=1]="Group",Oe[Oe.List=2]="List",Oe[Oe.PercentSign=3]="PercentSign",Oe[Oe.PlusSign=4]="PlusSign",Oe[Oe.MinusSign=5]="MinusSign",Oe[Oe.Exponential=6]="Exponential",Oe[Oe.SuperscriptingExponent=7]="SuperscriptingExponent",Oe[Oe.PerMille=8]="PerMille",Oe[Oe.Infinity=9]="Infinity",Oe[Oe.NaN=10]="NaN",Oe[Oe.TimeSeparator=11]="TimeSeparator",Oe[Oe.CurrencyDecimal=12]="CurrencyDecimal",Oe[Oe.CurrencyGroup=13]="CurrencyGroup",Oe))();function yt(b,Y){return ln((0,a.cg1)(b)[a.wAp.DateFormat],Y)}function st(b,Y){return ln((0,a.cg1)(b)[a.wAp.TimeFormat],Y)}function St(b,Y){return ln((0,a.cg1)(b)[a.wAp.DateTimeFormat],Y)}function tt(b,Y){const w=(0,a.cg1)(b),Q=w[a.wAp.NumberSymbols][Y];if(void 0===Q){if(Y===Oe.CurrencyDecimal)return w[a.wAp.NumberSymbols][Oe.Decimal];if(Y===Oe.CurrencyGroup)return w[a.wAp.NumberSymbols][Oe.Group]}return Q}const hn=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 ln(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))?)?$/,me={},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 ge=(()=>((ge=ge||{})[ge.Short=0]="Short",ge[ge.ShortGMT=1]="ShortGMT",ge[ge.Long=2]="Long",ge[ge.Extended=3]="Extended",ge))(),Ne=(()=>((Ne=Ne||{})[Ne.FullYear=0]="FullYear",Ne[Ne.Month=1]="Month",Ne[Ne.Date=2]="Date",Ne[Ne.Hours=3]="Hours",Ne[Ne.Minutes=4]="Minutes",Ne[Ne.Seconds=5]="Seconds",Ne[Ne.FractionalSeconds=6]="FractionalSeconds",Ne[Ne.Day=7]="Day",Ne))(),Ze=(()=>((Ze=Ze||{})[Ze.DayPeriods=0]="DayPeriods",Ze[Ze.Days=1]="Days",Ze[Ze.Months=2]="Months",Ze[Ze.Eras=3]="Eras",Ze))();function He(b,Y,w,Q){let Pe=function De(b){if(Le(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[Pe,at=1,Mt=1]=b.split("-").map(kt=>+kt);return be(Pe,at-1,Mt)}const w=parseFloat(b);if(!isNaN(b-w))return new Date(w);let Q;if(Q=b.match(P))return function re(b){const Y=new Date(0);let w=0,Q=0;const Pe=b[8]?Y.setUTCFullYear:Y.setFullYear,at=b[8]?Y.setUTCHours:Y.setHours;b[9]&&(w=Number(b[9]+b[10]),Q=Number(b[9]+b[11])),Pe.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,Vn=Number(b[6]||0),xn=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return at.call(Y,Mt,kt,Vn,xn),Y}(Q)}const Y=new Date(b);if(!Le(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 Vn=Pe.getTimezoneOffset();Q&&(Vn=Yn(Q,Vn),Pe=function je(b,Y,w){const Q=w?-1:1,Pe=b.getTimezoneOffset();return function qt(b,Y){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+Y),b}(b,Q*(Yn(Y,Pe)-Pe))}(Pe,Q,!0));let xn="";return Mt.forEach(Dn=>{const fn=function oi(b){if(kn[b])return kn[b];let Y;switch(b){case"G":case"GG":case"GGG":Y=E(Ze.Eras,fe.Abbreviated);break;case"GGGG":Y=E(Ze.Eras,fe.Wide);break;case"GGGGG":Y=E(Ze.Eras,fe.Narrow);break;case"y":Y=Be(Ne.FullYear,1,0,!1,!0);break;case"yy":Y=Be(Ne.FullYear,2,0,!0,!0);break;case"yyy":Y=Be(Ne.FullYear,3,0,!1,!0);break;case"yyyy":Y=Be(Ne.FullYear,4,0,!1,!0);break;case"Y":Y=Hn(1);break;case"YY":Y=Hn(2,!0);break;case"YYY":Y=Hn(3);break;case"YYYY":Y=Hn(4);break;case"M":case"L":Y=Be(Ne.Month,1,1);break;case"MM":case"LL":Y=Be(Ne.Month,2,1);break;case"MMM":Y=E(Ze.Months,fe.Abbreviated);break;case"MMMM":Y=E(Ze.Months,fe.Wide);break;case"MMMMM":Y=E(Ze.Months,fe.Narrow);break;case"LLL":Y=E(Ze.Months,fe.Abbreviated,ue.Standalone);break;case"LLLL":Y=E(Ze.Months,fe.Wide,ue.Standalone);break;case"LLLLL":Y=E(Ze.Months,fe.Narrow,ue.Standalone);break;case"w":Y=vn(1);break;case"ww":Y=vn(2);break;case"W":Y=vn(1,!0);break;case"d":Y=Be(Ne.Date,1);break;case"dd":Y=Be(Ne.Date,2);break;case"c":case"cc":Y=Be(Ne.Day,1);break;case"ccc":Y=E(Ze.Days,fe.Abbreviated,ue.Standalone);break;case"cccc":Y=E(Ze.Days,fe.Wide,ue.Standalone);break;case"ccccc":Y=E(Ze.Days,fe.Narrow,ue.Standalone);break;case"cccccc":Y=E(Ze.Days,fe.Short,ue.Standalone);break;case"E":case"EE":case"EEE":Y=E(Ze.Days,fe.Abbreviated);break;case"EEEE":Y=E(Ze.Days,fe.Wide);break;case"EEEEE":Y=E(Ze.Days,fe.Narrow);break;case"EEEEEE":Y=E(Ze.Days,fe.Short);break;case"a":case"aa":case"aaa":Y=E(Ze.DayPeriods,fe.Abbreviated);break;case"aaaa":Y=E(Ze.DayPeriods,fe.Wide);break;case"aaaaa":Y=E(Ze.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":Y=E(Ze.DayPeriods,fe.Abbreviated,ue.Standalone,!0);break;case"bbbb":Y=E(Ze.DayPeriods,fe.Wide,ue.Standalone,!0);break;case"bbbbb":Y=E(Ze.DayPeriods,fe.Narrow,ue.Standalone,!0);break;case"B":case"BB":case"BBB":Y=E(Ze.DayPeriods,fe.Abbreviated,ue.Format,!0);break;case"BBBB":Y=E(Ze.DayPeriods,fe.Wide,ue.Format,!0);break;case"BBBBB":Y=E(Ze.DayPeriods,fe.Narrow,ue.Format,!0);break;case"h":Y=Be(Ne.Hours,1,-12);break;case"hh":Y=Be(Ne.Hours,2,-12);break;case"H":Y=Be(Ne.Hours,1);break;case"HH":Y=Be(Ne.Hours,2);break;case"m":Y=Be(Ne.Minutes,1);break;case"mm":Y=Be(Ne.Minutes,2);break;case"s":Y=Be(Ne.Seconds,1);break;case"ss":Y=Be(Ne.Seconds,2);break;case"S":Y=Be(Ne.FractionalSeconds,1);break;case"SS":Y=Be(Ne.FractionalSeconds,2);break;case"SSS":Y=Be(Ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Y=he(ge.Short);break;case"ZZZZZ":Y=he(ge.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Y=he(ge.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Y=he(ge.Long);break;default:return null}return kn[b]=Y,Y}(Dn);xn+=fn?fn(Pe,w,Vn):"''"===Dn?"'":Dn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),xn}function be(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 Re(b){return(0,a.cg1)(b)[a.wAp.LocaleId]}(b);if(me[w]=me[w]||{},me[w][Y])return me[w][Y];let Q="";switch(Y){case"shortDate":Q=yt(b,ke.Short);break;case"mediumDate":Q=yt(b,ke.Medium);break;case"longDate":Q=yt(b,ke.Long);break;case"fullDate":Q=yt(b,ke.Full);break;case"shortTime":Q=st(b,ke.Short);break;case"mediumTime":Q=st(b,ke.Medium);break;case"longTime":Q=st(b,ke.Long);break;case"fullTime":Q=st(b,ke.Full);break;case"short":const Pe=V(b,"shortTime"),at=V(b,"shortDate");Q=Ue(St(b,ke.Short),[Pe,at]);break;case"medium":const Mt=V(b,"mediumTime"),kt=V(b,"mediumDate");Q=Ue(St(b,ke.Medium),[Mt,kt]);break;case"long":const Vn=V(b,"longTime"),xn=V(b,"longDate");Q=Ue(St(b,ke.Long),[Vn,xn]);break;case"full":const Dn=V(b,"fullTime"),fn=V(b,"fullDate");Q=Ue(St(b,ke.Full),[Dn,fn])}return Q&&(me[w][Y]=Q),Q}function Ue(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,Pe){let at="";(b<0||Pe&&b<=0)&&(Pe?b=1-b:(b=-b,at=w));let Mt=String(b);for(;Mt.length0||kt>-w)&&(kt+=w),b===Ne.Hours)0===kt&&-12===w&&(kt=12);else if(b===Ne.FractionalSeconds)return function ae(b,Y){return nt(b,3).substr(0,Y)}(kt,Y);const Vn=tt(Mt,Oe.MinusSign);return nt(kt,Y,Vn,Q,Pe)}}function E(b,Y,w=ue.Format,Q=!1){return function(Pe,at){return function $(b,Y,w,Q,Pe,at){switch(w){case Ze.Months:return function ce(b,Y,w){const Q=(0,a.cg1)(b),at=ln([Q[a.wAp.MonthsFormat],Q[a.wAp.MonthsStandalone]],Y);return ln(at,w)}(Y,Pe,Q)[b.getMonth()];case Ze.Days:return function le(b,Y,w){const Q=(0,a.cg1)(b),at=ln([Q[a.wAp.DaysFormat],Q[a.wAp.DaysStandalone]],Y);return ln(at,w)}(Y,Pe,Q)[b.getDay()];case Ze.DayPeriods:const Mt=b.getHours(),kt=b.getMinutes();if(at){const xn=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 at=ln([Q[a.wAp.ExtraData][0],Q[a.wAp.ExtraData][1]],Y)||[];return ln(at,w)||[]}(Y,Pe,Q),fn=xn.findIndex(Bn=>{if(Array.isArray(Bn)){const[An,jt]=Bn,Eo=Mt>=An.hours&&kt>=An.minutes,D=Mt0?Math.floor(Pe/60):Math.ceil(Pe/60);switch(b){case ge.Short:return(Pe>=0?"+":"")+nt(Mt,2,at)+nt(Math.abs(Pe%60),2,at);case ge.ShortGMT:return"GMT"+(Pe>=0?"+":"")+nt(Mt,1,at);case ge.Long:return"GMT"+(Pe>=0?"+":"")+nt(Mt,2,at)+":"+nt(Math.abs(Pe%60),2,at);case ge.Extended:return 0===Q?"Z":(Pe>=0?"+":"")+nt(Mt,2,at)+":"+nt(Math.abs(Pe%60),2,at);default:throw new Error(`Unknown zone width "${b}"`)}}}function Qt(b){return be(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))}function vn(b,Y=!1){return function(w,Q){let Pe;if(Y){const at=new Date(w.getFullYear(),w.getMonth(),1).getDay()-1,Mt=w.getDate();Pe=1+Math.floor((Mt+at)/7)}else{const at=Qt(w),Mt=function At(b){const Y=be(b,0,1).getDay();return be(b,0,1+(Y<=4?4:11)-Y)}(at.getFullYear()),kt=at.getTime()-Mt.getTime();Pe=1+Math.round(kt/6048e5)}return nt(Pe,b,tt(Q,Oe.MinusSign))}}function Hn(b,Y=!1){return function(w,Q){return nt(Qt(w).getFullYear(),b,tt(Q,Oe.MinusSign),Y)}}const kn={};function Yn(b,Y){b=b.replace(/:/g,"");const w=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(w)?Y:w}function Le(b){return b instanceof Date&&!isNaN(b.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ut(b){const Y=parseInt(b);if(isNaN(Y))throw new Error("Invalid integer literal when parsing "+b);return Y}class Ft{}let Tn=(()=>{class b extends Ft{constructor(w){super(),this.locale=w}getPluralCategory(w,Q){switch(hn(Q||this.locale)(w)){case pe.Zero:return"zero";case pe.One:return"one";case pe.Two:return"two";case pe.Few:return"few";case pe.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 Gt(b,Y,w){return(0,a.dwT)(b,Y,w)}function jn(b,Y){Y=encodeURIComponent(Y);for(const w of b.split(";")){const Q=w.indexOf("="),[Pe,at]=-1==Q?[w,""]:[w.slice(0,Q),w.slice(Q+1)];if(Pe.trim()===Y)return decodeURIComponent(at)}return null}let Qn=(()=>{class b{constructor(w,Q,Pe,at){this._iterableDiffers=w,this._keyValueDiffers=Q,this._ngEl=Pe,this._renderer=at,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(Pe=>{Q?this._renderer.addClass(this._ngEl.nativeElement,Pe):this._renderer.removeClass(this._ngEl.nativeElement,Pe)})}}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 si{constructor(Y,w,Q,Pe){this.$implicit=Y,this.ngForOf=w,this.index=Q,this.count=Pe}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,Pe){this._viewContainer=w,this._template=Q,this._differs=Pe,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((Pe,at,Mt)=>{if(null==Pe.previousIndex)Q.createEmbeddedView(this._template,new si(Pe.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)Q.remove(null===at?void 0:at);else if(null!==at){const kt=Q.get(at);Q.move(kt,Mt),X(kt,Pe)}});for(let Pe=0,at=Q.length;Pe{X(Q.get(Pe.currentIndex),Pe)})}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){it("ngIfThen",w),this._thenTemplateRef=w,this._thenViewRef=null,this._updateView()}set ngIfElse(w){it("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 it(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,Pe){this.ngSwitch=Pe,Pe._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})(),dn=(()=>{class b{constructor(w,Q,Pe){Pe._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,Pe){this._ngEl=w,this._differs=Q,this._renderer=Pe,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[Pe,at]=w.split(".");null!=(Q=null!=Q&&at?`${Q}${at}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,Pe,Q):this._renderer.removeStyle(this._ngEl.nativeElement,Pe)}_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",Pe,at){var Mt;if(null==w||""===w||w!=w)return null;try{return He(w,Q,at||this.locale,null!==(Mt=null!=Pe?Pe: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,Pe){if(!function ii(b){return!(null==b||""===b||b!=b)}(w))return null;Pe=Pe||this._locale;try{return function rn(b,Y,w){return function Zn(b,Y,w,Q,Pe,at,Mt=!1){let kt="",Vn=!1;if(isFinite(b)){let xn=function vt(b){let Q,Pe,at,Mt,kt,Y=Math.abs(b)+"",w=0;for((Pe=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(at=Y.search(/e/i))>0?(Pe<0&&(Pe=at),Pe+=+Y.slice(at+1),Y=Y.substring(0,at)):Pe<0&&(Pe=Y.length),at=0;"0"===Y.charAt(at);at++);if(at===(kt=Y.length))Q=[0],Pe=1;else{for(kt--;"0"===Y.charAt(kt);)kt--;for(Pe-=at,Q=[],Mt=0;at<=kt;at++,Mt++)Q[Mt]=Number(Y.charAt(at))}return Pe>22&&(Q=Q.splice(0,21),w=Pe-1,Pe=1),{digits:Q,exponent:w,integerLen:Pe}}(b);Mt&&(xn=function Te(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}(xn));let Dn=Y.minInt,fn=Y.minFrac,Bn=Y.maxFrac;if(at){const y=at.match(ht);if(null===y)throw new Error(`${at} is not a valid digit info`);const U=y[1],rt=y[3],Nt=y[5];null!=U&&(Dn=ut(U)),null!=rt&&(fn=ut(rt)),null!=Nt?Bn=ut(Nt):null!=rt&&fn>Bn&&(Bn=fn)}!function se(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,Pe=Q.length-b.integerLen;const at=Math.min(Math.max(Y,Pe),w);let Mt=at+b.integerLen,kt=Q[Mt];if(Mt>0){Q.splice(Math.max(b.integerLen,Mt));for(let fn=Mt;fn=5)if(Mt-1<0){for(let fn=0;fn>Mt;fn--)Q.unshift(0),b.integerLen++;Q.unshift(1),b.integerLen++}else Q[Mt-1]++;for(;Pe=xn?jt.pop():Vn=!1),Bn>=10?1:0},0);Dn&&(Q.unshift(Dn),b.integerLen++)}(xn,fn,Bn);let An=xn.digits,jt=xn.integerLen;const Eo=xn.exponent;let D=[];for(Vn=An.every(y=>!y);jt0?D=An.splice(jt,An.length):(D=An,An=[0]);const C=[];for(An.length>=Y.lgSize&&C.unshift(An.splice(-Y.lgSize,An.length).join(""));An.length>Y.gSize;)C.unshift(An.splice(-Y.gSize,An.length).join(""));An.length&&C.unshift(An.join("")),kt=C.join(tt(w,Q)),D.length&&(kt+=tt(w,Pe)+D.join("")),Eo&&(kt+=tt(w,Oe.Exponential)+"+"+Eo)}else kt=tt(w,Oe.Infinity);return kt=b<0&&!Vn?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(";"),Pe=Q[0],at=Q[1],Mt=-1!==Pe.indexOf(".")?Pe.split("."):[Pe.substring(0,Pe.lastIndexOf("0")+1),Pe.substring(Pe.lastIndexOf("0")+1)],kt=Mt[0],Vn=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:Ft,useClass:Tn}]}),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)(K),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 Pe=Q.currentNode;for(;Pe;){const at=Pe.shadowRoot;if(at){const Mt=at.getElementById(Y)||at.querySelector(`[name="${Y}"]`);if(Mt)return Mt}Pe=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,Pe=w.top+this.window.pageYOffset,at=this.offset();this.window.scrollTo(Q-at[0],Pe-at[1])}attemptFocus(Y){return Y.focus(),this.document.activeElement===Y}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Y=Rn(this.window.history)||Rn(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 Rn(b){return Object.getOwnPropertyDescriptor(b,"scrollRestoration")}class Un{}},520:(_t,we,p)=>{p.d(we,{TP:()=>Re,jN:()=>R,eN:()=>Oe,JF:()=>ln,WM:()=>H,LE:()=>Ce,aW:()=>ze,Zn:()=>ue});var a=p(9808),s=p(5e3),W=p(1086),ne=p(6498),J=p(1406),_=p(2198),K=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 me=P.indexOf(":");if(me>0){const j=P.slice(0,me),ge=j.toLowerCase(),Ne=P.slice(me+1).trim();this.maybeSetNormalizedName(j,ge),this.headers.has(ge)?this.headers.get(ge).push(Ne):this.headers.set(ge,[Ne])}})}:()=>{this.headers=new Map,Object.keys(z).forEach(P=>{let me=z[P];const j=P.toLowerCase();"string"==typeof me&&(me=[me]),me.length>0&&(this.headers.set(j,me),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 me=z.value;if("string"==typeof me&&(me=[me]),0===me.length)return;this.maybeSetNormalizedName(z.name,P);const j=("a"===z.op?this.headers.get(P):void 0)||[];j.push(...me),this.headers.set(P,j);break;case"d":const ge=z.value;if(ge){let Ne=this.headers.get(P);if(!Ne)return;Ne=Ne.filter(Ze=>-1===ge.indexOf(Ze)),0===Ne.length?(this.headers.delete(P),this.normalizedNames.delete(P)):this.headers.set(P,Ne)}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 Ve(z)}encodeValue(z){return Ve(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}const _e=/%(\d[a-f0-9])/gi,$e={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ve(x){return encodeURIComponent(x).replace(_e,(z,P)=>{var me;return null!==(me=$e[P])&&void 0!==me?me:z})}function xe(x){return`${x}`}class Ce{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 ge=j.indexOf("="),[Ne,Ze]=-1==ge?[z.decodeKey(j),""]:[z.decodeKey(j.slice(0,ge)),z.decodeValue(j.slice(ge+1))],He=P.get(Ne)||[];He.push(Ze),P.set(Ne,He)}),P}(z.fromString,this.encoder)}else z.fromObject?(this.map=new Map,Object.keys(z.fromObject).forEach(P=>{const me=z.fromObject[P];this.map.set(P,Array.isArray(me)?me:[me])})):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(me=>{const j=z[me];Array.isArray(j)?j.forEach(ge=>{P.push({param:me,value:ge,op:"a"})}):P.push({param:me,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(me=>P+"="+this.encoder.encodeValue(me)).join("&")}).filter(z=>""!==z).join("&")}clone(z){const P=new Ce({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(xe(z.value)),this.map.set(z.param,P);break;case"d":if(void 0===z.value){this.map.delete(z.param);break}{let me=this.map.get(z.param)||[];const j=me.indexOf(xe(z.value));-1!==j&&me.splice(j,1),me.length>0?this.map.set(z.param,me):this.map.delete(z.param)}}}),this.cloneFrom=this.updates=null)}}class pt{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 ct(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function ye(x){return"undefined"!=typeof Blob&&x instanceof Blob}function Ge(x){return"undefined"!=typeof FormData&&x instanceof FormData}class ze{constructor(z,P,me,j){let ge;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!==me?me:null,ge=j):ge=me,ge&&(this.reportProgress=!!ge.reportProgress,this.withCredentials=!!ge.withCredentials,ge.responseType&&(this.responseType=ge.responseType),ge.headers&&(this.headers=ge.headers),ge.context&&(this.context=ge.context),ge.params&&(this.params=ge.params)),this.headers||(this.headers=new H),this.context||(this.context=new pt),this.params){const Ne=this.params.toString();if(0===Ne.length)this.urlWithParams=P;else{const Ze=P.indexOf("?");this.urlWithParams=P+(-1===Ze?"?":Zent.set(ae,z.setHeaders[ae]),be)),z.setParams&&(V=Object.keys(z.setParams).reduce((nt,ae)=>nt.set(ae,z.setParams[ae]),V)),new ze(me,j,Ne,{params:V,headers:be,context:Ue,reportProgress:He,responseType:ge,withCredentials:Ze})}}var Je=(()=>((Je=Je||{})[Je.Sent=0]="Sent",Je[Je.UploadProgress=1]="UploadProgress",Je[Je.ResponseHeader=2]="ResponseHeader",Je[Je.DownloadProgress=3]="DownloadProgress",Je[Je.Response=4]="Response",Je[Je.User=5]="User",Je))();class q{constructor(z,P=200,me="OK"){this.headers=z.headers||new H,this.status=void 0!==z.status?z.status:P,this.statusText=z.statusText||me,this.url=z.url||null,this.ok=this.status>=200&&this.status<300}}class pe extends q{constructor(z={}){super(z),this.type=Je.ResponseHeader}clone(z={}){return new pe({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 ue extends q{constructor(z={}){super(z),this.type=Je.Response,this.body=void 0!==z.body?z.body:null}clone(z={}){return new ue({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 fe extends q{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 ke(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 Oe=(()=>{class x{constructor(P){this.handler=P}request(P,me,j={}){let ge;if(P instanceof ze)ge=P;else{let He,be;He=j.headers instanceof H?j.headers:new H(j.headers),j.params&&(be=j.params instanceof Ce?j.params:new Ce({fromObject:j.params})),ge=new ze(P,me,void 0!==j.body?j.body:null,{headers:He,context:j.context,params:be,reportProgress:j.reportProgress,responseType:j.responseType||"json",withCredentials:j.withCredentials})}const Ne=(0,W.of)(ge).pipe((0,J.b)(He=>this.handler.handle(He)));if(P instanceof ze||"events"===j.observe)return Ne;const Ze=Ne.pipe((0,_.h)(He=>He instanceof ue));switch(j.observe||"body"){case"body":switch(ge.responseType){case"arraybuffer":return Ze.pipe((0,K.U)(He=>{if(null!==He.body&&!(He.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return He.body}));case"blob":return Ze.pipe((0,K.U)(He=>{if(null!==He.body&&!(He.body instanceof Blob))throw new Error("Response is not a Blob.");return He.body}));case"text":return Ze.pipe((0,K.U)(He=>{if(null!==He.body&&"string"!=typeof He.body)throw new Error("Response is not a string.");return He.body}));default:return Ze.pipe((0,K.U)(He=>He.body))}case"response":return Ze;default:throw new Error(`Unreachable: unhandled observe type ${j.observe}}`)}}delete(P,me={}){return this.request("DELETE",P,me)}get(P,me={}){return this.request("GET",P,me)}head(P,me={}){return this.request("HEAD",P,me)}jsonp(P,me){return this.request("JSONP",P,{params:(new Ce).append(me,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(P,me={}){return this.request("OPTIONS",P,me)}patch(P,me,j={}){return this.request("PATCH",P,ke(j,me))}post(P,me,j={}){return this.request("POST",P,ke(j,me))}put(P,me,j={}){return this.request("PUT",P,ke(j,me))}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(I))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})();class We{constructor(z,P){this.next=z,this.interceptor=P}handle(z){return this.interceptor.intercept(z,this.next)}}const Re=new s.OlP("HTTP_INTERCEPTORS");let Se=(()=>{class x{intercept(P,me){return me.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 ne.y(me=>{const j=this.xhrFactory.build();if(j.open(P.method,P.urlWithParams),P.withCredentials&&(j.withCredentials=!0),P.headers.forEach((ae,Be)=>j.setRequestHeader(ae,Be.join(","))),P.headers.has("Accept")||j.setRequestHeader("Accept","application/json, text/plain, */*"),!P.headers.has("Content-Type")){const ae=P.detectContentTypeHeader();null!==ae&&j.setRequestHeader("Content-Type",ae)}if(P.responseType){const ae=P.responseType.toLowerCase();j.responseType="json"!==ae?ae:"text"}const ge=P.serializeBody();let Ne=null;const Ze=()=>{if(null!==Ne)return Ne;const ae=1223===j.status?204:j.status,Be=j.statusText||"OK",L=new H(j.getAllResponseHeaders()),E=function tt(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 Ne=new pe({headers:L,status:ae,statusText:Be,url:E}),Ne},He=()=>{let{headers:ae,status:Be,statusText:L,url:E}=Ze(),$=null;204!==Be&&($=void 0===j.response?j.responseText:j.response),0===Be&&(Be=$?200:0);let he=Be>=200&&Be<300;if("json"===P.responseType&&"string"==typeof $){const Ie=$;$=$.replace(St,"");try{$=""!==$?JSON.parse($):null}catch(wt){$=Ie,he&&(he=!1,$={error:wt,text:$})}}he?(me.next(new ue({body:$,headers:ae,status:Be,statusText:L,url:E||void 0})),me.complete()):me.error(new fe({error:$,headers:ae,status:Be,statusText:L,url:E||void 0}))},be=ae=>{const{url:Be}=Ze(),L=new fe({error:ae,status:j.status||0,statusText:j.statusText||"Unknown Error",url:Be||void 0});me.error(L)};let V=!1;const Ue=ae=>{V||(me.next(Ze()),V=!0);let Be={type:Je.DownloadProgress,loaded:ae.loaded};ae.lengthComputable&&(Be.total=ae.total),"text"===P.responseType&&!!j.responseText&&(Be.partialText=j.responseText),me.next(Be)},nt=ae=>{let Be={type:Je.UploadProgress,loaded:ae.loaded};ae.lengthComputable&&(Be.total=ae.total),me.next(Be)};return j.addEventListener("load",He),j.addEventListener("error",be),j.addEventListener("timeout",be),j.addEventListener("abort",be),P.reportProgress&&(j.addEventListener("progress",Ue),null!==ge&&j.upload&&j.upload.addEventListener("progress",nt)),j.send(ge),me.next({type:Je.Sent}),()=>{j.removeEventListener("error",be),j.removeEventListener("abort",be),j.removeEventListener("load",He),j.removeEventListener("timeout",be),P.reportProgress&&(j.removeEventListener("progress",Ue),null!==ge&&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 Wt=new s.OlP("XSRF_COOKIE_NAME"),sn=new s.OlP("XSRF_HEADER_NAME");class gn{}let Yt=(()=>{class x{constructor(P,me,j){this.doc=P,this.platform=me,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(Wt))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),hn=(()=>{class x{constructor(P,me){this.tokenService=P,this.headerName=me}intercept(P,me){const j=P.url.toLowerCase();if("GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return me.handle(P);const ge=this.tokenService.getToken();return null!==ge&&!P.headers.has(this.headerName)&&(P=P.clone({headers:P.headers.set(this.headerName,ge)})),me.handle(P)}}return x.\u0275fac=function(P){return new(P||x)(s.LFG(gn),s.LFG(sn))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac}),x})(),_n=(()=>{class x{constructor(P,me){this.backend=P,this.injector=me,this.chain=null}handle(P){if(null===this.chain){const me=this.injector.get(Re,[]);this.chain=me.reduceRight((j,ge)=>new We(j,ge),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:hn,useClass:Se}]}}static withOptions(P={}){return{ngModule:x,providers:[P.cookieName?{provide:Wt,useValue:P.cookieName}:[],P.headerName?{provide:sn,useValue:P.headerName}:[]]}}}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[hn,{provide:Re,useExisting:hn,multi:!0},{provide:gn,useClass:Yt},{provide:Wt,useValue:"XSRF-TOKEN"},{provide:sn,useValue:"X-XSRF-TOKEN"}]}),x})(),ln=(()=>{class x{}return x.\u0275fac=function(P){return new(P||x)},x.\u0275mod=s.oAB({type:x}),x.\u0275inj=s.cJS({providers:[Oe,{provide:I,useClass:_n},Et,{provide:R,useExisting:Et}],imports:[[Sn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})()},5e3:(_t,we,p)=>{p.d(we,{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:()=>ge,eFA:()=>xh,G48:()=>P9,Gpc:()=>B,f3M:()=>V2,X6Q:()=>x9,_c5:()=>K9,VLi:()=>C9,c2e:()=>bh,zSh:()=>E1,wAp:()=>cn,vHH:()=>Ve,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:()=>ii,_Bn:()=>_u,xp6:()=>ll,uIk:()=>F1,Tol:()=>C0,Gre:()=>I0,ekj:()=>E4,Suo:()=>Qu,Xpm:()=>Qt,lG2:()=>De,Yz7:()=>yt,cJS:()=>St,oAB:()=>Yn,Yjl:()=>re,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),W=p(6498),ne=p(6787),J=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 K(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 _e(e)?e():e}function _e(e){return"function"==typeof e&&e.hasOwnProperty(H)&&e.__forward_ref__===B}class Ve extends Error{constructor(t,n){super(function xe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Ce(e){return"string"==typeof e?e:null==e?"":String(e)}function gt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ce(e)}function ye(e,t){const n=t?` in ${t}`:"";throw new Ve(-201,`No provider for ${gt(e)} found${n}`)}function le(e,t){null==e&&function ce(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function yt(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 tt(e){return Et(e,Yt)||Et(e,_n)}function Et(e,t){return e.hasOwnProperty(t)?e[t]:null}function gn(e){return e&&(e.hasOwnProperty(hn)||e.hasOwnProperty(Cn))?e[hn]:null}const Yt=_({\u0275prov:_}),hn=_({\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 Xe(e,t,n){const i=tt(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 ye(I(e),"Injector")}function z(e){return{toString:e}.toString()}var P=(()=>((P=P||{})[P.OnPush=0]="OnPush",P[P.Default=1]="Default",P))(),ge=(()=>{return(e=ge||(ge={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ge;var e})();const Ne="undefined"!=typeof globalThis&&globalThis,Ze="undefined"!=typeof window&&window,He="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=Ne||"undefined"!=typeof global&&global||Ze||He,ae={},Be=[],L=_({\u0275cmp:_}),E=_({\u0275dir:_}),$=_({\u0275pipe:_}),he=_({\u0275mod:_}),Ie=_({\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||Be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ge.Emulated,id:"c",styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,r=e.features,u=e.pipes;return i.id+=At++,i.inputs=je(e.inputs,n),i.outputs=je(e.outputs),r&&r.forEach(f=>f(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Hn):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(kn):null,i})}function Hn(e){return Le(e)||function ht(e){return e[E]||null}(e)}function kn(e){return function Vt(e){return e[$]||null}(e)}const oi={};function Yn(e){return z(()=>{const t={type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(oi[e.id]=e.type),t})}function qt(e,t){return z(()=>{const n=Ut(e,!0);n.declarations=t.declarations||Be,n.imports=t.imports||Be,n.exports=t.exports||Be})}function je(e,t){if(null==e)return ae;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 De=Qt;function re(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Le(e){return e[L]||null}function Ut(e,t){const n=e[he]||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 Lt(e){return Array.isArray(e)&&!0===e[1]}function dn(e){return 0!=(8&e.flags)}function ti(e){return 2==(2&e.flags)}function ai(e){return 1==(1&e.flags)}function In(e){return null!==e.template}function bi(e){return 0!=(512&e[2])}function Ti(e,t){return e.hasOwnProperty(Ie)?e[Ie]:null}class ro{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function ii(){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===ae)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:ae,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===ae),e[i]=t}ii.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 Rn(e){return!!e.listen}const Pi={createRenderer:(e,t)=>Qi()};function Un(e){for(;Array.isArray(e);)e=e[0];return e}function w(e,t){return Un(t[e])}function Q(e,t){return Un(t[e.index])}function at(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 Vn(e){return 4==(4&e[2])}function xn(e){return 128==(128&e[2])}function fn(e,t){return null==t?null:e[t]}function Bn(e){e[18]=0}function An(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 jt={lFrame:ao(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function U(){return jt.bindingsEnabled}function lt(){return jt.lFrame.lView}function O(){return jt.lFrame.tView}function c(e){return jt.lFrame.contextLView=e,e[8]}function l(){let e=g();for(;null!==e&&64===e.type;)e=e.parent;return e}function g(){return jt.lFrame.currentTNode}function te(e,t){const n=jt.lFrame;n.currentTNode=e,n.isParent=t}function ve(){return jt.lFrame.isParent}function Me(){jt.lFrame.isParent=!1}function Pt(){return jt.isInCheckNoChangesMode}function Bt(e){jt.isInCheckNoChangesMode=e}function Kt(){const e=jt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Jt(){return jt.lFrame.bindingIndex++}function mn(e){const t=jt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _i(e,t){const n=jt.lFrame;n.bindingIndex=n.bindingRootIndex=e,qi(t)}function qi(e){jt.lFrame.currentDirectiveIndex=e}function Oi(e){const t=jt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fi(){return jt.lFrame.currentQueryIndex}function Bi(e){jt.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=jt.lFrame=zo();return i.currentTNode=t,i.lView=e,!0}function Ho(e){const t=zo(),n=e[1];jt.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=jt.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=jt.lFrame;return jt.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 an(){return jt.lFrame.selectedIndex}function $n(e){jt.lFrame.selectedIndex=e}function Pn(){const e=jt.lFrame;return at(e.tView,e.selectedIndex)}function pi(){jt.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=Rn(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:Fe: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;ye(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&&Nn(i,!1)?(u=t[1],f=cr(v),t=lr(v,t)):f=-1);-1!==f;){const N=t[1];if(Ln(r,f,N.data)){const ie=ft(f,t,n,u,i,T);if(ie!==de)return ie}v=t[f+8],-1!==v&&Nn(i,t[1].data[f+8]===T)&&Ln(r,f,t)?(u=N,f=cr(v),t=lr(v,t)):f=-1}}}return S(t,n,i,o)}const de={};function Fe(){return new co(l(),lt())}function ft(e,t,n,i,o,r){const u=t[1],f=u.data[e+8],N=Ht(f,u,n,null==i?ti(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,Ae=o?f+N:e.directiveEnd;for(let Ke=i?f:f+N;Ke=v&&mt.type===n)return Ke}if(o){const Ke=u[v];if(Ke&&In(Ke)&&Ke.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 pt(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Ve(-200,`Circular dependency in DI detected for ${e}${n}`)}(gt(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 Ln(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Ie]||Ui(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[Ie]||Ui(o);if(r&&r!==n)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Ui(e){return _e(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 ie=v.hasOwnProperty(Ai)?v[Ai]:Object.defineProperty(v,Ai,{value:[]})[Ai];for(;ie.length<=N;)ie.push(null);return(ie[N]=ie[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=yt({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(),Ce(e))}function Ha(e){const t=ps();return t?t.sanitize(mi.URL,e)||"":Ir(e,"URL")?er(e):fs(Ce(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 Lt(t)?t[3]:t}function Ua(e){return Yc(e[13])}function $a(e){return Yc(e[4])}function Yc(e){for(;null!==e&&!Lt(e);)e=e[4];return e}function Hr(e,t,n,i,o){if(null!=i){let r,u=!1;Lt(i)?r=i:Ot(i)&&(u=!0,i=i[0]);const f=Un(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){Rn(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!==Un(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];Rn(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[ie+1].toLowerCase();const Ke=8&i?Ae:null;if(Ke&&-1!==rl(Ke,T,0)||2&i&&T!==Ae){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(),an()+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)}$n(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{$n(r)}}function Dl(e,t,n){if(dn(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||In(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)&&tt(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 Ve(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,ie=>{this.processInjectorType(ie,n,i)&&(void 0===N&&(N=[]),N.push(ie))})}finally{}if(void 0!==N)for(let ie=0;iethis.processProvider(mt,Ae,Ke||Be))}}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,ie=>this.processProvider(ie,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=tt(e),n=null!==t?t.factory:Ti(e);if(null!==n)return n;if(e instanceof li)throw new Ve(204,"");if(e instanceof Function)return function e6(e){const t=e.length;if(t>0)throw as(t,"?"),new Ve(204,"");const n=function Wt(e){const t=e&&(e[Yt]||e[_n]);if(t){const n=function sn(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 Ve(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=yt({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(In(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Ve(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),K(e.inputs,o.inputs),K(e.declaredInputs,o.declaredInputs),K(e.outputs,o.outputs),In(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===ae?{}:e===Be?[]: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(Un(zn[i.index])):i.index;if(Rn(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,Ke=!1;else{r=M4(i,t,ie,r,!1);const Wn=n.listen($t,o,r);Ae.push(r,Wn),N&&N.push(o,on,bt,bt+1)}}else r=M4(i,t,ie,r,!0),$t.addEventListener(o,r,u),Ae.push(r),N&&N.push(o,on,bt,u)}else r=M4(i,t,ie,r,!1);const mt=i.outputs;let xt;if(Ke&&null!==mt&&(xt=mt[o])){const It=xt.length;if(It)for(let $t=0;$t0;)t=t[15],e--;return t}(e,jt.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=mn(2);r.firstUpdatePass&&b0(r,e,u,i),t!==yn&&Fi(o,u,t)&&D0(r,r.data[an()],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=mn(2);o.firstUpdatePass&&b0(o,null,r,i);const u=lt();if(n!==yn&&Fi(u,r,n)){const f=o.data[an()];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=Be);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[an()],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 Ae=Po(e[f+1]);e[i+1]=ta(Ae,f),0!==Ae&&(e[Ae+1]=n1(e[Ae+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,ie=null===N;let Ae=n[o+1];Ae===yn&&(Ae=ie?Be:void 0);let Ke=ie?Ta(Ae,i):N===i?Ae:void 0;if(T&&!L1(Ke)&&(Ke=Ta(v,i)),L1(Ke)&&(f=Ke,u))return f;const mt=e[o+1];o=u?Po(mt):tr(mt)}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 Rn(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Xs(i,n,u,r),te(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,an(),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,an(),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=Pn();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[cn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ss[t]=e,n&&(Ss[t][cn.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)[cn.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 cn=(()=>((cn=cn||{})[cn.LocaleId=0]="LocaleId",cn[cn.DayPeriodsFormat=1]="DayPeriodsFormat",cn[cn.DayPeriodsStandalone=2]="DayPeriodsStandalone",cn[cn.DaysFormat=3]="DaysFormat",cn[cn.DaysStandalone=4]="DaysStandalone",cn[cn.MonthsFormat=5]="MonthsFormat",cn[cn.MonthsStandalone=6]="MonthsStandalone",cn[cn.Eras=7]="Eras",cn[cn.FirstDayOfWeek=8]="FirstDayOfWeek",cn[cn.WeekendRange=9]="WeekendRange",cn[cn.DateFormat=10]="DateFormat",cn[cn.TimeFormat=11]="TimeFormat",cn[cn.DateTimeFormat=12]="DateTimeFormat",cn[cn.NumberSymbols=13]="NumberSymbols",cn[cn.NumberFormats=14]="NumberFormats",cn[cn.CurrencyCode=15]="CurrencyCode",cn[cn.CurrencySymbol=16]="CurrencySymbol",cn[cn.CurrencyName=17]="CurrencyName",cn[cn.Currencies=18]="Currencies",cn[cn.Directionality=19]="Directionality",cn[cn.PluralCase=20]="PluralCase",cn[cn.ExtraData=21]="ExtraData",cn))();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 Ke=new No(v,o,ca),mt=I4(f,t,o?N:N+Ae,ie);-1===mt?(d(ur(T,u),r,f),F4(r,e,t.length),t.push(f),T.directiveStart++,T.directiveEnd++,o&&(T.providerIndexes+=1048576),n.push(Ke),u.push(Ke)):(n[mt]=Ke,u[mt]=Ke)}else{const Ke=I4(f,t,N+Ae,ie),mt=I4(f,t,N,N+Ae),xt=Ke>=0&&n[Ke],It=mt>=0&&n[mt];if(o&&!It||!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&&It&&(n[mt].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,Ke>-1?Ke:mt,yu(n[o?mt:Ke],v,!o&&i));!o&&i&&It&&n[mt].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=In(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=yt({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(Un(r)),Lt(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 Ve(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 Ve(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=Le(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(Rn(e))return e.selectRootElement(t,n===ge.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)),ie=this.componentDef.onPush?576:528,Ae=function P1(e,t){return{components:[],scheduler:e||Lc,clean:Z8,playerHandler:t||null,flags:0}}(),Ke=oa(0,null,null,1,0,null,null,null,null,null),mt=Nr(null,Ke,Ae,ie,null,null,u,v,f,r);let xt,It;Ho(mt);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),ie=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,ie),n[20]=ie}(N,this.componentDef,mt,u,v);if(N)if(i)is(v,N,["ng-version",pf.full]);else{const{attrs:bt,classes:on}=function h8(e){const t=[],n=[];let i=1,o=2;for(;i0&&Xa(v,N,on.join(" "))}if(It=at(Ke,20),void 0!==n){const bt=It.projection=[];for(let on=0;onv(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||($n(f.index),Ol(n[1],f,0,f.directiveStart,f.directiveEnd,t),Al(t,u)),u}($t,this.componentDef,mt,Ae,[g6]),_s(Ke,mt,null)}finally{Rt()}return new Cf(this.componentType,xt,xs(It,mt),mt,It)}}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=Ut(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!==Ut(t)&&function bf(e){const t=new Set;!function n(i){const o=Ut(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=Kt()+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(),Kt(),e,t,n,i)}function Au(e,t,n,i,o){return Iu(lt(),Kt(),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(),Kt(),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,Kt(),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,Kt(),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,Kt(),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 ie=t;f=null===(o=ie.next)||void 0===o?void 0:o.bind(ie),v=null===(r=ie.error)||void 0===r?void 0:r.bind(ie),T=null===(u=ie.complete)||void 0===u?void 0:u.bind(ie)}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 ie=n||{};f=ie.index,i=ie.injector,o=ie.projectableNodes,r=ie.ngModuleRef}const v=u?t:new H4(Le(t)),T=i||this.parentInjector;if(!r&&null==v.ngModule&&T){const ie=T.get(Ps,null);ie&&(r=ie)}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 Lt(e[3])}(i)){const N=this.indexOf(t);if(-1!==N)this.detach(N);else{const ie=i[3],Ae=new ju(ie,ie[6],ie[3]);Ae.detach(Ae.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 ie=10;ie{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=yt({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=yt({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(Ut(n).declarations).reduce((u,f)=>{const v=Le(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=yt({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=yt({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=yt({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 Ve(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 Ve(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),ie=N.injector.get(gs,null);if(!ie)throw new Ve(402,"");return f.runOutsideAngular(()=>{const Ae=f.onError.subscribe({next:Ke=>{ie.handleError(Ke)}});N.onDestroy(()=>{a2(this._modules,N),Ae.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}}(ie,f,()=>{const Ae=N.injector.get(ks);return Ae.runInitializers(),Ae.donePromise.then(()=>(function c7(e){le(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 Ve(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 Ve(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=yt({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 W.y(T=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{T.next(this._stable),T.complete()})}),v=new W.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 ie=this._zone.onUnstable.subscribe(()=>{mo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{T.next(!1)}))});return()=>{N.unsubscribe(),ie.unsubscribe()}});this.isStable=(0,ne.T)(f,v.pipe((0,J.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Ve(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 Ve(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=yt({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(ti(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 Ve(901,"")}}return e.\u0275prov=yt({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 Ve(901,"")}}return e.\u0275prov=yt({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=Yn({type:e}),e.\u0275inj=St({providers:X9}),e})()},4182:(_t,we,p)=>{p.d(we,{TO:()=>jn,ve:()=>Ce,Wl:()=>$e,Fj:()=>gt,qu:()=>jt,oH:()=>_o,u:()=>oo,sg:()=>Ii,u5:()=>fn,JU:()=>ee,a5:()=>Cn,JJ:()=>Xe,JL:()=>x,F:()=>oe,On:()=>In,Mq:()=>dn,c5:()=>Mt,UX:()=>Bn,Q7:()=>Pi,kI:()=>et,_Y:()=>bi});var a=p(5e3),s=p(9808),W=p(6498),ne=p(6688),J=p(4850),_=p(7830),K=p(5254);function R(D,C){return new W.y(y=>{const U=D.length;if(0===U)return void y.complete();const rt=new Array(U);let Nt=0,lt=0;for(let O=0;O{l||(l=!0,lt++),rt[O]=g},error:g=>y.error(g),complete:()=>{Nt++,(Nt===U||!l)&&(lt===U&&y.next(C?C.reduce((g,F,te)=>(g[F]=rt[te],g),{}):rt),y.complete())}}))}})}let H=(()=>{class D{constructor(y,U){this._renderer=y,this._elementRef=U,this.onChange=rt=>{},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"),_e={provide:ee,useExisting:(0,a.Gpc)(()=>$e),multi:!0};let $e=(()=>{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([_e]),a.qOj]}),D})();const Ve={provide:ee,useExisting:(0,a.Gpc)(()=>gt),multi:!0},Ce=new a.OlP("CompositionEventMode");let gt=(()=>{class D extends H{constructor(y,U,rt){super(y,U),this._compositionMode=rt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xe(){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(Ce,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([Ve]),a.qOj]}),D})();function pt(D){return null==D||0===D.length}function zt(D){return null!=D&&"number"==typeof D.length}const ct=new a.OlP("NgValidators"),ye=new a.OlP("NgAsyncValidators"),Ge=/^(?=.{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 ze(D){return C=>{if(pt(C.value)||pt(D))return null;const y=parseFloat(C.value);return!isNaN(y)&&y{if(pt(C.value)||pt(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 q(C)}static requiredTrue(C){return function pe(D){return!0===D.value?null:{required:!0}}(C)}static email(C){return function ue(D){return pt(D.value)||Ge.test(D.value)?null:{email:!0}}(C)}static minLength(C){return function fe(D){return C=>pt(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 Oe(C)}static nullValidator(C){return null}static compose(C){return ot(C)}static composeAsync(C){return st(C)}}function q(D){return pt(D.value)?{required:!0}:null}function Oe(D){if(!D)return We;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(pt(U.value))return null;const rt=U.value;return C.test(rt)?null:{pattern:{requiredPattern:y,actualValue:rt}}}}function We(D){return null}function Re(D){return null!=D}function Se(D){const C=(0,a.QGY)(D)?(0,K.D)(D):D;return(0,a.CqO)(C),C}function le(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 ce(D,C){return C.map(y=>y(D))}function Ye(D){return D.map(C=>function qe(D){return!D.validate}(C)?C:y=>C.validate(y))}function ot(D){if(!D)return null;const C=D.filter(Re);return 0==C.length?null:function(y){return le(ce(y,C))}}function yt(D){return null!=D?ot(Ye(D)):null}function st(D){if(!D)return null;const C=D.filter(Re);return 0==C.length?null:function(y){return function I(...D){if(1===D.length){const C=D[0];if((0,ne.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,ne.k)(D[0])?D[0]:D,null).pipe((0,J.U)(y=>C(...y)))}return R(D,null)}(ce(y,C).map(Se)).pipe((0,J.U)(le))}}function St(D){return null!=D?st(Ye(D)):null}function tt(D,C){return null===D?[C]:Array.isArray(D)?[...D,C]:[D,C]}function Et(D){return D._rawValidators}function Wt(D){return D._rawAsyncValidators}function sn(D){return D?Array.isArray(D)?D:[D]:[]}function gn(D,C){return Array.isArray(D)?D.includes(C):D===C}function Yt(D,C){const y=sn(C);return sn(D).forEach(rt=>{gn(y,rt)||y.push(rt)}),y}function hn(D,C){return sn(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=yt(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,rt;return"submitted"===C?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(rt=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===rt?void 0:rt[C])}}let Xe=(()=>{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 he(D,C){Qt(D,C),C.valueAccessor.writeValue(D.value),function Hn(D,C){C.valueAccessor.registerOnChange(y=>{D._pendingValue=y,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&oi(D,C)})}(D,C),function Yn(D,C){const y=(U,rt)=>{C.valueAccessor.writeValue(U),rt&&C.viewToModelUpdate(U)};D.registerOnChange(y),C._registerOnDestroy(()=>{D._unregisterOnChange(y)})}(D,C),function kn(D,C){C.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&oi(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 Ie(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(tt(y,C.validator)):"function"==typeof y&&D.setValidators([y]);const U=Wt(D);null!==C.asyncValidator?D.setAsyncValidators(tt(U,C.asyncValidator)):"function"==typeof U&&D.setAsyncValidators([U]);const rt=()=>D.updateValueAndValidity();wt(C._rawValidators,rt),wt(C._rawAsyncValidators,rt)}function vn(D,C){let y=!1;if(null!==D){if(null!==C.validator){const rt=Et(D);if(Array.isArray(rt)&&rt.length>0){const Nt=rt.filter(lt=>lt!==C.validator);Nt.length!==rt.length&&(y=!0,D.setValidators(Nt))}}if(null!==C.asyncValidator){const rt=Wt(D);if(Array.isArray(rt)&&rt.length>0){const Nt=rt.filter(lt=>lt!==C.asyncValidator);Nt.length!==rt.length&&(y=!0,D.setAsyncValidators(Nt))}}}const U=()=>{};return wt(C._rawValidators,U),wt(C._rawAsyncValidators,U),y}function oi(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 Le(D,C){if(!D.hasOwnProperty("model"))return!1;const y=D.model;return!!y.isFirstChange()||!Object.is(C,y.currentValue)}function Vt(D,C){D._syncPendingControls(),C.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function Ut(D,C){if(!C)return null;let y,U,rt;return Array.isArray(C),C.forEach(Nt=>{Nt.constructor===gt?y=Nt:function ht(D){return Object.getPrototypeOf(D.constructor)===B}(Nt)?U=Nt:rt=Nt}),rt||U||y||null}function pn(D,C){const y=D.indexOf(C);y>-1&&D.splice(y,1)}const Gn="VALID",ni="INVALID",En="PENDING",Zn="DISABLED";function Tt(D){return(vt(D)?D.validators:D)||null}function rn(D){return Array.isArray(D)?yt(D):D||null}function bn(D,C){return(vt(C)?C.asyncValidators:D)||null}function Te(D){return Array.isArray(D)?St(D):D||null}function vt(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const se=D=>D instanceof Qn,ut=D=>D instanceof Fn,Ft=D=>D instanceof si;function en(D){return se(D)?D.value:D.getRawValue()}function Tn(D,C){const y=ut(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 Gt(D,C){ut(D),D._forEachChild((U,rt)=>{if(void 0===C[rt])throw new a.vHH(1002,"")})}class jn{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=Te(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===Gn}get invalid(){return this.status===ni}get pending(){return this.status==En}get disabled(){return this.status===Zn}get enabled(){return this.status!==Zn}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=Te(C)}addValidators(C){this.setValidators(Yt(C,this._rawValidators))}addAsyncValidators(C){this.setAsyncValidators(Yt(C,this._rawAsyncValidators))}removeValidators(C){this.setValidators(hn(C,this._rawValidators))}removeAsyncValidators(C){this.setAsyncValidators(hn(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=Zn,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=Gn,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===Gn||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()?Zn:Gn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(C){if(this.asyncValidator){this.status=En,this._hasOwnPendingAsyncValidator=!0;const y=Se(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 Kn(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(rt=>{U=ut(U)?U.controls.hasOwnProperty(rt)?U.controls[rt]:null:Ft(U)&&U.at(rt)||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()?Zn:this.errors?ni:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(En)?En:this._anyControlsHaveStatus(ni)?ni:Gn}_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){vt(C)&&null!=C.updateOn&&(this._updateOn=C.updateOn)}_parentMarkedDirty(C){return!C&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Qn extends jn{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){pn(this._onChange,C)}registerOnDisabledChange(C){this._onDisabledChange.push(C)}_unregisterOnDisabledChange(C){pn(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 Fn extends jn{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={}){Gt(this,C),Object.keys(C).forEach(U=>{Tn(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,rt)=>{U.reset(C[rt],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(C,y,U)=>(C[U]=en(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((rt,Nt)=>{U=y(U,rt,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 si extends jn{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={}){Gt(this,C),C.forEach((U,rt)=>{Tn(this,rt),this.at(rt).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(C,y={}){null!=C&&(C.forEach((U,rt)=>{this.at(rt)&&this.at(rt).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(C=[],y={}){this._forEachChild((U,rt)=>{U.reset(C[rt],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(C=>en(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)(()=>oe)},X=(()=>Promise.resolve(null))();let oe=(()=>{class D extends Dt{constructor(y,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new Fn({},yt(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),he(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),pn(this._directives,y)})}addFormGroup(y){X.then(()=>{const U=this._findContainer(y.path),rt=new Fn({});qt(rt,y),U.registerControl(y.name,rt),rt.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,Vt(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(ct,10),a.Y36(ye,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 Lt={provide:Dt,useExisting:(0,a.Gpc)(()=>dn)};let dn=(()=>{class D extends k{constructor(y,U,rt){super(),this._parent=y,this._setValidators(U),this._setAsyncValidators(rt)}_checkParentType(){}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,5),a.Y36(ct,10),a.Y36(ye,10))},D.\u0275dir=a.lG2({type:D,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a._Bn([Lt]),a.qOj]}),D})();const ti={provide:Cn,useExisting:(0,a.Gpc)(()=>In)},ai=(()=>Promise.resolve(null))();let In=(()=>{class D extends Cn{constructor(y,U,rt,Nt){super(),this.control=new Qn,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(U),this._setAsyncValidators(rt),this.valueAccessor=Ut(0,Nt)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),Le(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(){he(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,rt=""===U||U&&"false"!==U;ai.then(()=>{rt&&!this.control.disabled?this.control.disable():!rt&&this.control.disabled&&this.control.enable()})}}return D.\u0275fac=function(y){return new(y||D)(a.Y36(Dt,9),a.Y36(ct,10),a.Y36(ye,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([ti]),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,rt,Nt){super(),this._ngModelWarningConfig=Nt,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(U),this.valueAccessor=Ut(0,rt)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const U=y.form.previousValue;U&&Ie(U,this,!1),he(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Le(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ie(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(ct,10),a.Y36(ye,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 he(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Ie(y.control||null,y,!1),pn(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,Vt(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,rt=this.form.get(y.path);U!==rt&&(Ie(U||null,y),se(rt)&&(he(rt,y),y.control=rt))}),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 je(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(ct,10),a.Y36(ye,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,rt,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(rt),this.valueAccessor=Ut(0,Nt)}set isDisabled(y){}ngOnChanges(y){this._added||this._setUpControl(),Le(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(ct,10),a.Y36(ye,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:ct,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?q(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 at={provide:ct,useExisting:(0,a.Gpc)(()=>Mt),multi:!0};let Mt=(()=>{class D{constructor(){this._validator=We}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=Oe(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([at]),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})(),fn=(()=>{class D{}return D.\u0275fac=function(y){return new(y||D)},D.\u0275mod=a.oAB({type:D}),D.\u0275inj=a.cJS({imports:[Dn]}),D})(),Bn=(()=>{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})(),jt=(()=>{class D{group(y,U=null){const rt=this._reduceControls(y);let O,Nt=null,lt=null;return null!=U&&(function An(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 Fn(rt,{asyncValidators:lt,updateOn:O,validators:Nt})}control(y,U,rt){return new Qn(y,U,rt)}array(y,U,rt){const Nt=y.map(lt=>this._createControl(lt));return new si(Nt,U,rt)}_reduceControls(y){const U={};return Object.keys(y).forEach(rt=>{U[rt]=this._createControl(y[rt])}),U}_createControl(y){return se(y)||ut(y)||Ft(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:Bn}),D})()},6360:(_t,we,p)=>{p.d(we,{Qb:()=>C,PW:()=>Nt});var a=p(5e3),s=p(2313),W=p(1777);function ne(){return"undefined"!=typeof window&&void 0!==window.document}function J(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(O){switch(O.length){case 0:return new W.ZN;case 1:return O[0];default:return new W.ZE(O)}}function K(O,c,l,g,F={},te={}){const ve=[],Me=[];let Qe=-1,dt=null;if(g.forEach(Pt=>{const Bt=Pt.offset,Kt=Bt==Qe,un=Kt&&dt||{};Object.keys(Pt).forEach(Zt=>{let Jt=Zt,mn=Pt[Zt];if("offset"!==Zt)switch(Jt=c.normalizePropertyName(Jt,ve),mn){case W.k1:mn=F[Zt];break;case W.l3:mn=te[Zt];break;default:mn=c.normalizeStyleValue(Zt,Jt,mn,ve)}un[Jt]=mn}),Kt||Me.push(un),dt=un,Qe=Bt}),ve.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${ve.join(Pt)}`)}return Me}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,te=H(O.element,O.triggerName,O.fromState,O.toState,c||O.phaseName,null==g?O.totalTime:g,!!l.disabled),ve=O._data;return null!=ve&&(te._data=ve),te}function H(O,c,l,g,F="",te=0,ve){return{element:O,triggerName:c,fromState:l,toState:g,phaseName:F,totalTime:te,disabled:!!ve}}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 _e=(O,c)=>!1,$e=(O,c,l)=>[];(J()||"undefined"!=typeof Element)&&(_e=ne()?(O,c)=>{for(;c&&c!==document.documentElement;){if(c===O)return!0;c=c.parentNode||c.host}return!1}:(O,c)=>O.contains(c),$e=(O,c,l)=>{if(l)return Array.from(O.querySelectorAll(c));const g=O.querySelector(c);return g?[g]:[]});let Ce=null,gt=!1;function pt(O){Ce||(Ce=function zt(){return"undefined"!=typeof document?document.body:null}()||{},gt=!!Ce.style&&"WebkitAppearance"in Ce.style);let c=!0;return Ce.style&&!function xe(O){return"ebkit"==O.substring(1,6)}(O)&&(c=O in Ce.style,!c&>&&(c="Webkit"+O.charAt(0).toUpperCase()+O.substr(1)in Ce.style)),c}const ct=_e,ye=$e;function Ge(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 pt(l)}matchesElement(l,g){return!1}containsElement(l,g){return ct(l,g)}query(l,g,F){return ye(l,g,F)}computeStyle(l,g,F){return F||""}animate(l,g,F,te,ve,Me=[],Qe){return new W.ZN(F,te)}}return O.\u0275fac=function(l){return new(l||O)},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})(),ze=(()=>{class O{}return O.NOOP=new et,O})();const ue="ng-enter",fe="ng-leave",ke="ng-trigger",Oe=".ng-trigger",We="ng-animating",Re=".ng-animating";function Se(O){if("number"==typeof O)return O;const c=O.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:le(parseFloat(c[1]),c[2])}function le(O,c){return"s"===c?1e3*O:O}function ce(O,c,l){return O.hasOwnProperty("duration")?O:function qe(O,c,l){let F,te=0,ve="";if("string"==typeof O){const Me=O.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return c.push(`The provided timing value "${O}" is invalid.`),{duration:0,delay:0,easing:""};F=le(parseFloat(Me[1]),Me[2]);const Qe=Me[3];null!=Qe&&(te=le(parseFloat(Qe),Me[4]));const dt=Me[5];dt&&(ve=dt)}else F=O;if(!l){let Me=!1,Qe=c.length;F<0&&(c.push("Duration values below 0 are not allowed for this animation step."),Me=!0),te<0&&(c.push("Delay values below 0 are not allowed for this animation step."),Me=!0),Me&&c.splice(Qe,0,`The provided timing value "${O}" is invalid.`)}return{duration:F,delay:te,easing:ve}}(O,c,l)}function Ye(O,c={}){return Object.keys(O).forEach(l=>{c[l]=O[l]}),c}function yt(O,c,l={}){if(c)for(let g in O)l[g]=O[g];else Ye(O,l);return l}function st(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]}),J()&&St(O))}function Et(O,c){O.style&&(Object.keys(c).forEach(l=>{const g=Dt(l);O.style[g]=""}),J()&&St(O))}function Wt(O){return Array.isArray(O)?1==O.length?O[0]:(0,W.vP)(O):O}const gn=new RegExp("{{\\s*(.+?)\\s*}}","g");function Yt(O){let c=[];if("string"==typeof O){let l;for(;l=gn.exec(O);)c.push(l[1]);gn.lastIndex=0}return c}function hn(O,c,l){const g=O.toString(),F=g.replace(gn,(te,ve)=>{let Me=c[ve];return c.hasOwnProperty(ve)||(l.push(`Please provide a value for the animation param ${ve}`),Me=""),Me.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 ln(O,c){return 0===O||0===c}function Mn(O,c,l){const g=Object.keys(l);if(g.length&&c.length){let te=c[0],ve=[];if(g.forEach(Me=>{te.hasOwnProperty(Me)||ve.push(Me),te[Me]=l[Me]}),ve.length)for(var F=1;Ffunction me(O,c,l){if(":"==O[0]){const Qe=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 Qe)return void c.push(Qe);O=Qe}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],te=g[2],ve=g[3];c.push(Ze(F,ve));"<"==te[0]&&!(F==z&&ve==z)&&c.push(Ze(ve,F))}(g,l,c)):l.push(O),l}const ge=new Set(["true","1"]),Ne=new Set(["false","0"]);function Ze(O,c){const l=ge.has(O)||Ne.has(O),g=ge.has(c)||Ne.has(c);return(F,te)=>{let ve=O==z||O==F,Me=c==z||c==te;return!ve&&l&&"boolean"==typeof F&&(ve=F?ge.has(O):Ne.has(O)),!Me&&g&&"boolean"==typeof te&&(Me=te?ge.has(c):Ne.has(c)),ve&&Me}}const be=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),Xe(this,Wt(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 te=[],ve=[];return"@"==c.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),c.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(l),0==Me.type){const Qe=Me,dt=Qe.name;dt.toString().split(/\s*,\s*/).forEach(Pt=>{Qe.name=Pt,te.push(this.visitState(Qe,l))}),Qe.name=dt}else if(1==Me.type){const Qe=this.visitTransition(Me,l);g+=Qe.queryCount,F+=Qe.depCount,ve.push(Qe)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:c.name,states:te,transitions:ve,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 te=new Set,ve=F||{};if(g.styles.forEach(Me=>{if($(Me)){const Qe=Me;Object.keys(Qe).forEach(dt=>{Yt(Qe[dt]).forEach(Pt=>{ve.hasOwnProperty(Pt)||te.add(Pt)})})}}),te.size){const Me=_n(te.values());l.errors.push(`state("${c.name}", ...) must define default values for all the following style substitutions: ${Me.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=Xe(this,Wt(c.animation),l);return{type:1,matchers:P(c.expr,l.errors),animation:g,queryCount:l.queryCount,depCount:l.depCount,options:Ie(c.options)}}visitSequence(c,l){return{type:2,steps:c.steps.map(g=>Xe(this,g,l)),options:Ie(c.options)}}visitGroup(c,l){const g=l.currentTime;let F=0;const te=c.steps.map(ve=>{l.currentTime=g;const Me=Xe(this,ve,l);return F=Math.max(F,l.currentTime),Me});return l.currentTime=F,{type:3,steps:te,options:Ie(c.options)}}visitAnimate(c,l){const g=function he(O,c){let l=null;if(O.hasOwnProperty("duration"))l=O;else if("number"==typeof O)return wt(ce(O,c).duration,0,"");const g=O;if(g.split(/\s+/).some(te=>"{"==te.charAt(0)&&"{"==te.charAt(1))){const te=wt(0,0,"");return te.dynamic=!0,te.strValue=g,te}return l=l||ce(g,c),wt(l.duration,l.delay,l.easing)}(c.timings,l.errors);l.currentAnimateTimings=g;let F,te=c.styles?c.styles:(0,W.oB)({});if(5==te.type)F=this.visitKeyframes(te,l);else{let ve=c.styles,Me=!1;if(!ve){Me=!0;const dt={};g.easing&&(dt.easing=g.easing),ve=(0,W.oB)(dt)}l.currentTime+=g.duration+g.delay;const Qe=this.visitStyle(ve,l);Qe.isEmptyStep=Me,F=Qe}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(ve=>{"string"==typeof ve?ve==W.l3?g.push(ve):l.errors.push(`The provided style string value ${ve} is not allowed.`):g.push(ve)}):g.push(c.styles);let F=!1,te=null;return g.forEach(ve=>{if($(ve)){const Me=ve,Qe=Me.easing;if(Qe&&(te=Qe,delete Me.easing),!F)for(let dt in Me)if(Me[dt].toString().indexOf("{{")>=0){F=!0;break}}}),{type:6,styles:g,easing:te,offset:c.offset,containsDynamicStyles:F,options:null}}_validateStyleAst(c,l){const g=l.currentAnimateTimings;let F=l.currentTime,te=l.currentTime;g&&te>0&&(te-=g.duration+g.delay),c.styles.forEach(ve=>{"string"!=typeof ve&&Object.keys(ve).forEach(Me=>{if(!this._driver.validateStyleProperty(Me))return void l.errors.push(`The provided animation property "${Me}" is not a supported CSS property for animations`);const Qe=l.collectedStyles[l.currentQuerySelector],dt=Qe[Me];let Pt=!0;dt&&(te!=F&&te>=dt.startTime&&F<=dt.endTime&&(l.errors.push(`The CSS property "${Me}" that exists between the times of "${dt.startTime}ms" and "${dt.endTime}ms" is also being animated in a parallel animation between the times of "${te}ms" and "${F}ms"`),Pt=!1),te=dt.startTime),Pt&&(Qe[Me]={startTime:te,endTime:F}),l.options&&function sn(O,c,l){const g=c.params||{},F=Yt(O);F.length&&F.forEach(te=>{g.hasOwnProperty(te)||l.push(`Unable to resolve the local animation param ${te} in the given list of values`)})}(ve[Me],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 te=0;const ve=[];let Me=!1,Qe=!1,dt=0;const Pt=c.steps.map(Jn=>{const ei=this._makeStyleAst(Jn,l);let _i=null!=ei.offset?ei.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}(ei.styles),di=0;return null!=_i&&(te++,di=ei.offset=_i),Qe=Qe||di<0||di>1,Me=Me||di0&&te{const _i=Kt>0?ei==un?1:Kt*ei:ve[ei],di=_i*mn;l.currentTime=Zt+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:Xe(this,Wt(c.animation),l),options:Ie(c.options)}}visitAnimateChild(c,l){return l.depCount++,{type:9,options:Ie(c.options)}}visitAnimateRef(c,l){return{type:10,animation:this.visitReference(c.animation,l),options:Ie(c.options)}}visitQuery(c,l){const g=l.currentQuerySelector,F=c.options||{};l.queryCount++,l.currentQuery=c;const[te,ve]=function ae(O){const c=!!O.split(/\s*,\s*/).find(l=>":self"==l);return c&&(O=O.replace(be,"")),O=O.replace(/@\*/g,Oe).replace(/@\w+/g,l=>Oe+"-"+l.substr(1)).replace(/:animating/g,Re),[O,c]}(c.selector);l.currentQuerySelector=g.length?g+" "+te:te,B(l.collectedStyles,l.currentQuerySelector,{});const Me=Xe(this,Wt(c.animation),l);return l.currentQuery=null,l.currentQuerySelector=g,{type:11,selector:te,limit:F.limit||0,optional:!!F.optional,includeSelf:ve,animation:Me,originalSelector:c.selector,options:Ie(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"}:ce(c.timings,l.errors,!0);return{type:12,animation:Xe(this,Wt(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 Ie(O){return O?(O=Ye(O)).params&&(O.params=function Be(O){return O?Ye(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,te,ve=null,Me=!1){return{type:1,element:O,keyframes:c,preStyleProps:l,postStyleProps:g,duration:F,delay:te,totalTime:F+te,easing:ve,subTimeline:Me}}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 kn=new RegExp(":enter","g"),Yn=new RegExp(":leave","g");function qt(O,c,l,g,F,te={},ve={},Me,Qe,dt=[]){return(new je).buildKeyframes(O,c,l,g,F,te,ve,Me,Qe,dt)}class je{buildKeyframes(c,l,g,F,te,ve,Me,Qe,dt,Pt=[]){dt=dt||new Qt;const Bt=new re(c,l,dt,F,te,Pt,[]);Bt.options=Qe,Bt.currentTimeline.setStyles([ve],null,Bt.errors,Qe),Xe(this,g,Bt);const Kt=Bt.timelines.filter(un=>un.containsAnimation());if(Object.keys(Me).length){let un;for(let Zt=Kt.length-1;Zt>=0;Zt--){const Jt=Kt[Zt];if(Jt.element===l){un=Jt;break}}un&&!un.allowOnlyTimelineStyles()&&un.setStyles([Me],null,Bt.errors,Qe)}return Kt.length?Kt.map(un=>un.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),te=l.currentTimeline.currentTime,ve=this._visitSubInstructions(g,F,F.options);te!=ve&&l.transformIntoNewTimeline(ve)}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 te=l.currentTimeline.currentTime;const ve=null!=g.duration?Se(g.duration):null,Me=null!=g.delay?Se(g.delay):null;return 0!==ve&&c.forEach(Qe=>{const dt=l.appendInstructionToTimeline(Qe,ve,Me);te=Math.max(te,dt.duration+dt.delay)}),te}visitReference(c,l){l.updateOptions(c.options,!0),Xe(this,c.animation,l),l.previousNode=c}visitSequence(c,l){const g=l.subContextCount;let F=l;const te=c.options;if(te&&(te.params||te.delay)&&(F=l.createSubContext(te),F.transformIntoNewTimeline(),null!=te.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=De);const ve=Se(te.delay);F.delayNextStep(ve)}c.steps.length&&(c.steps.forEach(ve=>Xe(this,ve,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>g&&F.transformIntoNewTimeline()),l.previousNode=c}visitGroup(c,l){const g=[];let F=l.currentTimeline.currentTime;const te=c.options&&c.options.delay?Se(c.options.delay):0;c.steps.forEach(ve=>{const Me=l.createSubContext(c.options);te&&Me.delayNextStep(te),Xe(this,ve,Me),F=Math.max(F,Me.currentTimeline.currentTime),g.push(Me.currentTimeline)}),g.forEach(ve=>l.currentTimeline.mergeTimelineCollectedStyles(ve)),l.transformIntoNewTimeline(F),l.previousNode=c}_visitTiming(c,l){if(c.dynamic){const g=c.strValue;return ce(l.params?hn(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 te=c.style;5==te.type?this.visitKeyframes(te,l):(l.incrementTime(g.duration),this.visitStyle(te,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 te=F&&F.easing||c.easing;c.isEmptyStep?g.applyEmptyStep(te):g.setStyles(c.styles,te,l.errors,l.options),l.previousNode=c}visitKeyframes(c,l){const g=l.currentAnimateTimings,F=l.currentTimeline.duration,te=g.duration,Me=l.createSubContext().currentTimeline;Me.easing=g.easing,c.styles.forEach(Qe=>{Me.forwardTime((Qe.offset||0)*te),Me.setStyles(Qe.styles,Qe.easing,l.errors,l.options),Me.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(Me),l.transformIntoNewTimeline(F+te),l.previousNode=c}visitQuery(c,l){const g=l.currentTimeline.currentTime,F=c.options||{},te=F.delay?Se(F.delay):0;te&&(6===l.previousNode.type||0==g&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=De);let ve=g;const Me=l.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!F.optional,l.errors);l.currentQueryTotal=Me.length;let Qe=null;Me.forEach((dt,Pt)=>{l.currentQueryIndex=Pt;const Bt=l.createSubContext(c.options,dt);te&&Bt.delayNextStep(te),dt===l.element&&(Qe=Bt.currentTimeline),Xe(this,c.animation,Bt),Bt.currentTimeline.applyStylesToKeyframe(),ve=Math.max(ve,Bt.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ve),Qe&&(l.currentTimeline.mergeTimelineCollectedStyles(Qe),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=c}visitStagger(c,l){const g=l.parentContext,F=l.currentTimeline,te=c.timings,ve=Math.abs(te.duration),Me=ve*(l.currentQueryTotal-1);let Qe=ve*l.currentQueryIndex;switch(te.duration<0?"reverse":te.easing){case"reverse":Qe=Me-Qe;break;case"full":Qe=g.currentStaggerTime}const Pt=l.currentTimeline;Qe&&Pt.delayNextStep(Qe);const Bt=Pt.currentTime;Xe(this,c.animation,l),l.previousNode=c,g.currentStaggerTime=F.currentTime-Bt+(F.startTime-g.currentTimeline.startTime)}}const De={};class re{constructor(c,l,g,F,te,ve,Me,Qe){this._driver=c,this.element=l,this.subInstructions=g,this._enterClassName=F,this._leaveClassName=te,this.errors=ve,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=De,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Qe||new Le(this._driver,l,0),Me.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=Se(g.duration)),null!=g.delay&&(F.delay=Se(g.delay));const te=g.params;if(te){let ve=F.params;ve||(ve=this.options.params={}),Object.keys(te).forEach(Me=>{(!l||!ve.hasOwnProperty(Me))&&(ve[Me]=hn(te[Me],ve,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,te=new re(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,g||0));return te.previousNode=this.previousNode,te.currentAnimateTimings=this.currentAnimateTimings,te.options=this._copyOptions(),te.updateOptions(c),te.currentQueryIndex=this.currentQueryIndex,te.currentQueryTotal=this.currentQueryTotal,te.parentContext=this,this.subContextCount++,te}transformIntoNewTimeline(c){return this.previousNode=De,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:""},te=new ht(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,F,c.stretchStartingKeyframe);return this.timelines.push(te),F}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,l,g,F,te,ve){let Me=[];if(F&&Me.push(this.element),c.length>0){c=(c=c.replace(kn,"."+this._enterClassName)).replace(Yn,"."+this._leaveClassName);let dt=this._driver.query(this.element,c,1!=g);0!==g&&(dt=g<0?dt.slice(dt.length+g,dt.length):dt.slice(0,g)),Me.push(...dt)}return!te&&0==Me.length&&ve.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),Me}}class Le{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 Le(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]||W.l3,this._currentKeyframe[l]=W.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,l,g,F){l&&(this._previousKeyframe.easing=l);const te=F&&F.params||{},ve=function Ut(O,c){const l={};let g;return O.forEach(F=>{"*"===F?(g=g||Object.keys(c),g.forEach(te=>{l[te]=W.l3})):yt(F,!1,l)}),l}(c,this._globalTimelineStyles);Object.keys(ve).forEach(Me=>{const Qe=hn(ve[Me],te,g);this._pendingStyles[Me]=Qe,this._localTimelineStyles.hasOwnProperty(Me)||(this._backFill[Me]=this._globalTimelineStyles.hasOwnProperty(Me)?this._globalTimelineStyles[Me]:W.l3),this._updateStyle(Me,Qe)})}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((Me,Qe)=>{const dt=yt(Me,!0);Object.keys(dt).forEach(Pt=>{const Bt=dt[Pt];Bt==W.k1?c.add(Pt):Bt==W.l3&&l.add(Pt)}),g||(dt.offset=Qe/this.duration),F.push(dt)});const te=c.size?_n(c.values()):[],ve=l.size?_n(l.values()):[];if(g){const Me=F[0],Qe=Ye(Me);Me.offset=0,Qe.offset=1,F=[Me,Qe]}return At(this.element,F,te,ve,this.duration,this.startTime,this.easing,!1)}}class ht extends Le{constructor(c,l,g,F,te,ve,Me=!1){super(c,l,ve.delay),this.keyframes=g,this.preStyleProps=F,this.postStyleProps=te,this._stretchStartingKeyframe=Me,this.timings={duration:ve.duration,delay:ve.delay,easing:ve.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 te=[],ve=g+l,Me=l/ve,Qe=yt(c[0],!1);Qe.offset=0,te.push(Qe);const dt=yt(c[0],!1);dt.offset=Vt(Me),te.push(dt);const Pt=c.length-1;for(let Bt=1;Bt<=Pt;Bt++){let Kt=yt(c[Bt],!1);Kt.offset=Vt((l+Kt.offset*g)/ve),te.push(Kt)}g=ve,l=0,F="",c=te}return At(this.element,c,this.preStyleProps,this.postStyleProps,g,l,F,!0)}}function Vt(O,c=3){const l=Math.pow(10,c-1);return Math.round(O*l)/l}class On{}class Gn extends On{normalizePropertyName(c,l){return Dt(c)}normalizeStyleValue(c,l,g,F){let te="";const ve=g.toString().trim();if(ni[l]&&0!==g&&"0"!==g)if("number"==typeof g)te="px";else{const Me=g.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&F.push(`Please provide a CSS unit value for ${c}:${g}`)}return ve+te}}const ni=(()=>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 Zn(O,c,l,g,F,te,ve,Me,Qe,dt,Pt,Bt,Kt){return{type:0,element:O,triggerName:c,isRemovalTransition:F,fromState:l,fromStyles:te,toState:g,toStyles:ve,timelines:Me,queriedElements:Qe,preStyleProps:dt,postStyleProps:Pt,totalTime:Bt,errors:Kt}}const Kn={};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(te=>te(c,l,g,F))}(this.ast.matchers,c,l,g,F)}buildStyles(c,l,g){const F=this._stateStyles["*"],te=this._stateStyles[c],ve=F?F.buildStyles(l,g):{};return te?te.buildStyles(l,g):ve}build(c,l,g,F,te,ve,Me,Qe,dt,Pt){const Bt=[],Kt=this.ast.options&&this.ast.options.params||Kn,Zt=this.buildStyles(g,Me&&Me.params||Kn,Bt),Jt=Qe&&Qe.params||Kn,mn=this.buildStyles(F,Jt,Bt),Jn=new Set,ei=new Map,_i=new Map,di="void"===F,qi={params:Object.assign(Object.assign({},Kt),Jt)},Oi=Pt?[]:qt(c,l,this.ast.animation,te,ve,Zt,mn,qi,dt,Bt);let fi=0;if(Oi.forEach(Yi=>{fi=Math.max(Yi.duration+Yi.delay,fi)}),Bt.length)return Zn(l,this._triggerName,g,F,di,Zt,mn,[],[],ei,_i,fi,Bt);Oi.forEach(Yi=>{const Li=Yi.element,Ho=B(ei,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 Zn(l,this._triggerName,g,F,di,Zt,mn,Oi,Bi,ei,_i,fi)}}class bn{constructor(c,l,g){this.styles=c,this.defaultParams=l,this.normalizer=g}buildStyles(c,l){const g={},F=Ye(this.defaultParams);return Object.keys(c).forEach(te=>{const ve=c[te];null!=ve&&(F[te]=ve)}),this.styles.styles.forEach(te=>{if("string"!=typeof te){const ve=te;Object.keys(ve).forEach(Me=>{let Qe=ve[Me];Qe.length>1&&(Qe=hn(Qe,F,l));const dt=this.normalizer.normalizePropertyName(Me,l);Qe=this.normalizer.normalizeStyleValue(Me,dt,Qe,l),g[dt]=Qe})}}),g}}class vt{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)}),ut(this.states,"true","1"),ut(this.states,"false","0"),l.transitions.forEach(F=>{this.transitionFactories.push(new Tt(c,F,this.states))}),this.fallbackTransition=function se(O,c,l){return new Tt(O,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ve,Me)=>!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(ve=>ve.match(c,l,g,F))||null}matchStyles(c,l,g){return this.fallbackTransition.buildStyles(c,l,g)}}function ut(O,c,l){O.hasOwnProperty(c)?O.hasOwnProperty(l)||(O[l]=O[c]):O.hasOwnProperty(l)&&(O[c]=O[l])}const Ft=new Qt;class en{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,te=K(0,this._normalizer,0,c.keyframes,l,g);return this._driver.animate(F,te,c.duration,c.delay,c.easing,[],!0)}create(c,l,g={}){const F=[],te=this._animations[c];let ve;const Me=new Map;if(te?(ve=qt(this._driver,l,te,ue,fe,{},{},g,Ft,F),ve.forEach(Pt=>{const Bt=B(Me,Pt.element,{});Pt.postStyleProps.forEach(Kt=>Bt[Kt]=null)})):(F.push("The requested animation doesn't exist or has already been destroyed"),ve=[]),F.length)throw new Error(`Unable to create the animation due to the following errors: ${F.join("\n")}`);Me.forEach((Pt,Bt)=>{Object.keys(Pt).forEach(Kt=>{Pt[Kt]=this._driver.computeStyle(Bt,Kt,W.l3)})});const dt=_(ve.map(Pt=>{const Bt=Me.get(Pt.element);return this._buildPlayer(Pt,{},Bt)}));return this._playersById[c]=dt,dt.onDestroy(()=>this.destroy(c)),this.players.push(dt),dt}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 te=H(l,"","","");return I(this._getPlayer(c),g,te,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 te=this._getPlayer(c);switch(g){case"play":te.play();break;case"pause":te.pause();break;case"reset":te.reset();break;case"restart":te.restart();break;case"finish":te.finish();break;case"init":te.init();break;case"setPosition":te.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(c)}}}const Tn="ng-animate-queued",jn="ng-animate-disabled",qn=[],X={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oe={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 te=Ye(c);delete te.value,this.options=te}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 it="void",Ct=new Ee(it);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 te=B(this._elementListeners,c,[]),ve={name:l,phase:g,callback:F};te.push(ve);const Me=B(this._engine.statesByElement,c,{});return Me.hasOwnProperty(l)||(ui(c,ke),ui(c,ke+"-"+l),Me[l]=Ct),()=>{this._engine.afterFlush(()=>{const Qe=te.indexOf(ve);Qe>=0&&te.splice(Qe,1),this._triggers[l]||delete Me[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 te=this._getTrigger(l),ve=new dn(this.id,l,c);let Me=this._engine.statesByElement.get(c);Me||(ui(c,ke),ui(c,ke+"-"+l),this._engine.statesByElement.set(c,Me={}));let Qe=Me[l];const dt=new Ee(g,this.id);if(!(g&&g.hasOwnProperty("value"))&&Qe&&dt.absorbOptions(Qe.options),Me[l]=dt,Qe||(Qe=Ct),dt.value!==it&&Qe.value===dt.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,mn),tt(c,Jn)})}return}const Kt=B(this._engine.playersByElement,c,[]);Kt.forEach(Jt=>{Jt.namespaceId==this.id&&Jt.triggerName==l&&Jt.queued&&Jt.destroy()});let un=te.matchTransition(Qe.value,dt.value,c,dt.params),Zt=!1;if(!un){if(!F)return;un=te.fallbackTransition,Zt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:l,transition:un,fromState:Qe,toState:dt,player:ve,isFallbackTransition:Zt}),Zt||(ui(c,Tn),ve.onStart(()=>{wi(c,Tn)})),ve.onDone(()=>{let Jt=this.players.indexOf(ve);Jt>=0&&this.players.splice(Jt,1);const mn=this._engine.playersByElement.get(c);if(mn){let Jn=mn.indexOf(ve);Jn>=0&&mn.splice(Jn,1)}}),this.players.push(ve),Kt.push(ve),ve}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,Oe,!0);g.forEach(F=>{if(F[k])return;const te=this._engine.fetchNamespacesByElement(F);te.size?te.forEach(ve=>ve.triggerLeaveAnimation(F,l,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>g.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(c,l,g,F){const te=this._engine.statesByElement.get(c),ve=new Map;if(te){const Me=[];if(Object.keys(te).forEach(Qe=>{if(ve.set(Qe,te[Qe].value),this._triggers[Qe]){const dt=this.trigger(c,Qe,it,F);dt&&Me.push(dt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,c,!0,l,ve),g&&_(Me).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(te=>{const ve=te.name;if(F.has(ve))return;F.add(ve);const Qe=this._triggers[ve].fallbackTransition,dt=g[ve]||Ct,Pt=new Ee(it),Bt=new dn(this.id,ve,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:ve,transition:Qe,fromState:dt,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 te=g.players.length?g.playersByQueriedElement.get(c):[];if(te&&te.length)F=!0;else{let ve=c;for(;ve=ve.parentNode;)if(g.statesByElement.get(ve)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(c),F)g.markElementAsRemoved(this.id,c,!1,l);else{const te=c[k];(!te||te===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 te=g.element,ve=this._elementListeners.get(te);ve&&ve.forEach(Me=>{if(Me.name==g.triggerName){const Qe=H(te,g.triggerName,g.fromState.value,g.toState.value);Qe._data=c,I(g.player,Me.phase,Qe,Me.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):l.push(g)}),this._queue=[],l.sort((g,F)=>{const te=g.transition.ast.depCount,ve=F.transition.ast.depCount;return 0==te||0==ve?te-ve: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 Lt{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,te)=>{}}_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 te=g;te>=0;te--)if(this.driver.containsElement(this._namespaceList[te].hostElement,l)){this._namespaceList.splice(te+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 te=0;te=0&&this.collectedLeaveElements.splice(ve,1)}if(c){const ve=this._fetchNamespace(c);ve&&ve.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,jn)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),wi(c,jn))}removeNode(c,l,g,F){if(In(l)){const te=c?this._fetchNamespace(c):null;if(te?te.removeNode(l,F):this.markElementAsRemoved(c,l,!1,F),g){const ve=this.namespacesByHostElement.get(l);ve&&ve.id!==c&&ve.removeNode(l,F)}}else this._onRemovalComplete(l,F)}markElementAsRemoved(c,l,g,F,te){this.collectedLeaveElements.push(l),l[k]={namespaceId:c,setForRemoval:F,hasAnimation:g,removedBeforeQueried:!1,previousTriggersValues:te}}listen(c,l,g,F,te){return In(l)?this._fetchNamespace(c).listen(l,g,F,te):()=>{}}_buildInstruction(c,l,g,F,te){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,g,F,c.fromState.options,c.toState.options,l,te)}destroyInnerAnimations(c){let l=this.driver.query(c,Oe,!0);l.forEach(g=>this.destroyActiveAnimationsForElement(g)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(c,Re,!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(jn))&&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=[],te=new Map,ve=[],Me=new Map,Qe=new Map,dt=new Map,Pt=new Set;this.disabledNodes.forEach(Rt=>{Pt.add(Rt);const Xt=this.driver.query(Rt,".ng-animate-queued",!0);for(let tn=0;tn{const tn=ue+Jt++;Zt.set(Xt,tn),Rt.forEach(an=>ui(an,tn))});const mn=[],Jn=new Set,ei=new Set;for(let Rt=0;RtJn.add(an)):ei.add(Xt))}const _i=new Map,di=vi(Kt,Array.from(Jn));di.forEach((Rt,Xt)=>{const tn=fe+Jt++;_i.set(Xt,tn),Rt.forEach(an=>ui(an,tn))}),c.push(()=>{un.forEach((Rt,Xt)=>{const tn=Zt.get(Xt);Rt.forEach(an=>wi(an,tn))}),di.forEach((Rt,Xt)=>{const tn=_i.get(Xt);Rt.forEach(an=>wi(an,tn))}),mn.forEach(Rt=>{this.processLeaveNode(Rt)})});const qi=[],Oi=[];for(let Rt=this._namespaceList.length-1;Rt>=0;Rt--)this._namespaceList[Rt].drainQueuedTransitions(l).forEach(tn=>{const an=tn.player,$n=tn.element;if(qi.push(an),this.collectedEnterElements.length){const Ci=$n[k];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(tn.triggerName)){const Hi=Ci.previousTriggersValues.get(tn.triggerName),Ni=this.statesByElement.get(tn.element);Ni&&Ni[tn.triggerName]&&(Ni[tn.triggerName].value=Hi)}return void an.destroy()}}const Pn=!Bt||!this.driver.containsElement(Bt,$n),pi=_i.get($n),Ji=Zt.get($n),Xn=this._buildInstruction(tn,g,Ji,pi,Pn);if(Xn.errors&&Xn.errors.length)return void Oi.push(Xn);if(Pn)return an.onStart(()=>Et($n,Xn.fromStyles)),an.onDestroy(()=>tt($n,Xn.toStyles)),void F.push(an);if(tn.isFallbackTransition)return an.onStart(()=>Et($n,Xn.fromStyles)),an.onDestroy(()=>tt($n,Xn.toStyles)),void F.push(an);const mr=[];Xn.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||mr.push(Ci)}),Xn.timelines=mr,g.append($n,Xn.timelines),ve.push({instruction:Xn,player:an,element:$n}),Xn.queriedElements.forEach(Ci=>B(Me,Ci,[]).push(an)),Xn.preStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);if(Ni.length){let ji=Qe.get(Hi);ji||Qe.set(Hi,ji=new Set),Ni.forEach(ci=>ji.add(ci))}}),Xn.postStyleProps.forEach((Ci,Hi)=>{const Ni=Object.keys(Ci);let ji=dt.get(Hi);ji||dt.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(tn=>Rt.push(`- ${tn}\n`))}),qi.forEach(Xt=>Xt.destroy()),this.reportError(Rt)}const fi=new Map,Bi=new Map;ve.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(an=>{B(fi,Xt,[]).push(an),an.destroy()})});const Yi=mn.filter(Rt=>Wi(Rt,Qe,dt)),Li=new Map;Ao(Li,this.driver,ei,dt,W.l3).forEach(Rt=>{Wi(Rt,Qe,dt)&&Yi.push(Rt)});const zo=new Map;un.forEach((Rt,Xt)=>{Ao(zo,this.driver,new Set(Rt),Qe,W.k1)}),Yi.forEach(Rt=>{const Xt=Li.get(Rt),tn=zo.get(Rt);Li.set(Rt,Object.assign(Object.assign({},Xt),tn))});const ao=[],fr=[],pr={};ve.forEach(Rt=>{const{element:Xt,player:tn,instruction:an}=Rt;if(g.has(Xt)){if(Pt.has(Xt))return tn.onDestroy(()=>tt(Xt,an.toStyles)),tn.disabled=!0,tn.overrideTotalTime(an.totalTime),void F.push(tn);let $n=pr;if(Bi.size>1){let pi=Xt;const Ji=[];for(;pi=pi.parentNode;){const Xn=Bi.get(pi);if(Xn){$n=Xn;break}Ji.push(pi)}Ji.forEach(Xn=>Bi.set(Xn,$n))}const Pn=this._buildAnimation(tn.namespaceId,an,fi,te,zo,Li);if(tn.setRealPlayer(Pn),$n===pr)ao.push(tn);else{const pi=this.playersByElement.get($n);pi&&pi.length&&(tn.parentPlayer=_(pi)),F.push(tn)}}else Et(Xt,an.fromStyles),tn.onDestroy(()=>tt(Xt,an.toStyles)),fr.push(tn),Pt.has(Xt)&&F.push(tn)}),fr.forEach(Rt=>{const Xt=te.get(Rt.element);if(Xt&&Xt.length){const tn=_(Xt);Rt.setRealPlayer(tn)}}),F.forEach(Rt=>{Rt.parentPlayer?Rt.syncPlayerEvents(Rt.parentPlayer):Rt.destroy()});for(let Rt=0;Rt!Pn.destroyed);$n.length?ko(this,Xt,$n):this.processLeaveNode(Xt)}return mn.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,te){let ve=[];if(l){const Me=this.playersByQueriedElement.get(c);Me&&(ve=Me)}else{const Me=this.playersByElement.get(c);if(Me){const Qe=!te||te==it;Me.forEach(dt=>{dt.queued||!Qe&&dt.triggerName!=F||ve.push(dt)})}}return(g||F)&&(ve=ve.filter(Me=>!(g&&g!=Me.namespaceId||F&&F!=Me.triggerName))),ve}_beforeAnimationBuild(c,l,g){const te=l.element,ve=l.isRemovalTransition?void 0:c,Me=l.isRemovalTransition?void 0:l.triggerName;for(const Qe of l.timelines){const dt=Qe.element,Pt=dt!==te,Bt=B(g,dt,[]);this._getPreviousPlayers(dt,Pt,ve,Me,l.toState).forEach(un=>{const Zt=un.getRealPlayer();Zt.beforeDestroy&&Zt.beforeDestroy(),un.destroy(),Bt.push(un)})}Et(te,l.fromStyles)}_buildAnimation(c,l,g,F,te,ve){const Me=l.triggerName,Qe=l.element,dt=[],Pt=new Set,Bt=new Set,Kt=l.timelines.map(Zt=>{const Jt=Zt.element;Pt.add(Jt);const mn=Jt[k];if(mn&&mn.removedBeforeQueried)return new W.ZN(Zt.duration,Zt.delay);const Jn=Jt!==Qe,ei=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=te.get(Jt),di=ve.get(Jt),qi=K(0,this._normalizer,0,Zt.keyframes,_i,di),Oi=this._buildPlayer(Zt,qi,ei);if(Zt.subTimeline&&F&&Bt.add(Jt),Jn){const fi=new dn(c,Me,Jt);fi.setRealPlayer(Oi),dt.push(fi)}return Oi});dt.forEach(Zt=>{B(this.playersByQueriedElement,Zt.element,[]).push(Zt),Zt.onDone(()=>function ti(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,Zt.element,Zt))}),Pt.forEach(Zt=>ui(Zt,We));const un=_(Kt);return un.onDestroy(()=>{Pt.forEach(Zt=>wi(Zt,We)),tt(Qe,l.toStyles)}),Bt.forEach(Zt=>{B(F,Zt,[]).push(un)}),un}_buildPlayer(c,l,g){return l.length>0?this.driver.animate(c.element,l,c.duration,c.delay,c.easing,g):new W.ZN(c.duration,c.delay)}}class dn{constructor(c,l,g){this.namespaceId=c,this.triggerName=l,this.element=g,this._player=new W.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 In(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 te=[];l.forEach(Qe=>te.push(io(Qe)));const ve=[];g.forEach((Qe,dt)=>{const Pt={};Qe.forEach(Bt=>{const Kt=Pt[Bt]=c.computeStyle(dt,Bt,F);(!Kt||0==Kt.length)&&(dt[k]=oe,ve.push(dt))}),O.set(dt,Pt)});let Me=0;return l.forEach(Qe=>io(Qe,te[Me++])),ve}function vi(O,c){const l=new Map;if(O.forEach(Me=>l.set(Me,[])),0==c.length)return l;const F=new Set(c),te=new Map;function ve(Me){if(!Me)return 1;let Qe=te.get(Me);if(Qe)return Qe;const dt=Me.parentNode;return Qe=l.has(dt)?dt:F.has(dt)?1:ve(dt),te.set(Me,Qe),Qe}return c.forEach(Me=>{const Qe=ve(Me);1!==Qe&&l.get(Qe).push(Me)}),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(te)):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,te)=>{},this._transitionEngine=new Lt(c,l,g),this._timelineEngine=new en(c,l,g),this._transitionEngine.onRemovalComplete=(F,te)=>this.onRemovalComplete(F,te)}registerTrigger(c,l,g,F,te){const ve=c+"-"+F;let Me=this._triggerCache[ve];if(!Me){const Qe=[],dt=V(this._driver,te,Qe);if(Qe.length)throw new Error(`The animation trigger "${F}" has failed to build due to the following errors:\n - ${Qe.join("\n - ")}`);Me=function Te(O,c,l){return new vt(O,c,l)}(F,dt,this._normalizer),this._triggerCache[ve]=Me}this._transitionEngine.registerTrigger(l,F,Me)}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[te,ve]=ee(g);this._timelineEngine.command(te,l,ve,F)}else this._transitionEngine.trigger(c,l,g,F)}listen(c,l,g,F,te){if("@"==g.charAt(0)){const[ve,Me]=ee(g);return this._timelineEngine.listen(ve,l,Me,te)}return this._transitionEngine.listen(c,l,g,F,te)}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 te=O.initialStylesByElement.get(l);te||O.initialStylesByElement.set(l,te={}),this._initialStyles=te}start(){this._state<1&&(this._startStyles&&tt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(tt(this._element,this._initialStyles),this._endStyles&&(tt(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),tt(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(Qe)}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=ii(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?ii(l.split(","),c):ii([l],c)}function ii(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 te=O.style[F];if(te.length){const ve=te.split(",");ve[g]=l,l=ve.join(",")}}O.style[F]=l}function bo(O,c){return O.style[Mo+c]||""}class xi{constructor(c,l,g,F,te,ve,Me,Qe){this.element=c,this.keyframes=l,this.animationName=g,this._duration=F,this._delay=te,this._finalStyles=Me,this._specialStyles=Qe,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=ve||"linear",this.totalTime=F+te,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 W.ZN{constructor(c,l){super(),this.element=c,this._startingStyles={},this.__initialized=!1,this._styles=Ge(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 pt(c)}matchesElement(c,l){return!1}containsElement(c,l){return ct(c,l)}query(c,l,g){return ye(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}buildKeyframeElement(c,l,g){g=g.map(Me=>Ge(Me));let F=`@keyframes ${l} {\n`,te="";g.forEach(Me=>{te=" ";const Qe=parseFloat(Me.offset);F+=`${te}${100*Qe}% {\n`,te+=" ",Object.keys(Me).forEach(dt=>{const Pt=Me[dt];switch(dt){case"offset":return;case"easing":return void(Pt&&(F+=`${te}animation-timing-function: ${Pt};\n`));default:return void(F+=`${te}${dt}: ${Pt};\n`)}}),F+=`${te}}\n`}),F+="}\n";const ve=document.createElement("style");return ve.textContent=F,ve}animate(c,l,g,F,te,ve=[],Me){const Qe=ve.filter(mn=>mn instanceof xi),dt={};ln(g,F)&&Qe.forEach(mn=>{let Jn=mn.currentSnapshot;Object.keys(Jn).forEach(ei=>dt[ei]=Jn[ei])});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,dt));if(0==g)return new Vi(c,Pt);const Bt="gen_css_kf_"+this._count++,Kt=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(Kt);const Zt=_o(c,l),Jt=new xi(c,l,Bt,g,F,te,Pt,Zt);return Jt.onDestroy(()=>function Qi(O){O.parentNode.removeChild(O)}(Kt)),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 pt(c)}matchesElement(c,l){return!1}containsElement(c,l){return ct(c,l)}query(c,l,g){return ye(c,l,g)}computeStyle(c,l,g){return window.getComputedStyle(c)[l]}overrideWebAnimationsSupport(c){this._isNativeImpl=c}animate(c,l,g,F,te,ve=[],Me){if(!Me&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(c,l,g,F,te,ve);const Pt={duration:g,delay:F,fill:0==F?"both":"forwards"};te&&(Pt.easing=te);const Bt={},Kt=ve.filter(Zt=>Zt instanceof Pi);ln(g,F)&&Kt.forEach(Zt=>{let Jt=Zt.currentSnapshot;Object.keys(Jt).forEach(mn=>Bt[mn]=Jt[mn])});const un=_o(c,l=Mn(c,l=l.map(Zt=>yt(Zt,!1)),Bt));return new Pi(c,l,Pt,un)}}function b(){return ne()&&Element.prototype.animate||{}}var Y=p(9808);let w=(()=>{class O extends W._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,W.vP)(l):l;return at(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 W.LC{constructor(c,l){super(),this._id=c,this._renderer=l}create(c,l){return new Pe(this._id,c,l||{},this._renderer)}}class Pe{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 at(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 at(O,c,l,g,F){return O.setProperty(c,`@@${l}:${g}`,F)}const kt="@.disabled";let Vn=(()=>{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=(te,ve)=>{const Me=null==ve?void 0:ve.parentNode(te);Me&&ve.removeChild(Me,te)}}createRenderer(l,g){const te=this.delegate.createRenderer(l,g);if(!(l&&g&&g.data&&g.data.animation)){let Pt=this._rendererCache.get(te);return Pt||(Pt=new xn("",te,this.engine),this._rendererCache.set(te,Pt)),Pt}const ve=g.id,Me=g.id+"-"+this._currentId;this._currentId++,this.engine.register(Me,l);const Qe=Pt=>{Array.isArray(Pt)?Pt.forEach(Qe):this.engine.registerTrigger(ve,Me,l,Pt.name,Pt)};return g.data.animation.forEach(Qe),new Dn(this,Me,te,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(te=>{const[ve,Me]=te;ve(Me)}),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 xn{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 xn{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 fn(O){switch(O){case"body":return document.body;case"document":return document;case"window":return window;default:return O}}(c);let te=l.substr(1),ve="";return"@"!=te.charAt(0)&&([te,ve]=function Bn(O){const c=O.indexOf(".");return[O.substring(0,c),O.substr(c+1)]}(te)),this.engine.listen(this.namespaceId,F,te,ve,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,g,Me)})}return this.delegate.listen(c,l,g)}}let An=(()=>{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(ze),a.LFG(On))},O.\u0275prov=a.Yz7({token:O,factory:O.\u0275fac}),O})();const C=new a.OlP("AnimationModuleType"),y=[{provide:W._j,useClass:w},{provide:On,useFactory:function Eo(){return new Gn}},{provide:yo,useClass:An},{provide:a.FYo,useFactory:function D(O,c,l){return new Vn(O,c,l)},deps:[s.se,yo,a.R0b]}],U=[{provide:ze,useFactory:function jt(){return function Un(){return"function"==typeof b()}()?new yi:new so}},{provide:C,useValue:"BrowserAnimations"},...y],rt=[{provide:ze,useClass:et},{provide:C,useValue:"NoopAnimations"},...y];let Nt=(()=>{class O{static withConfig(l){return{ngModule:O,providers:l.disableAnimations?rt: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:(_t,we,p)=>{p.d(we,{b2:()=>_n,H7:()=>kn,q6:()=>Yt,se:()=>ke});var a=p(9808),s=p(5e3);class W extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ne extends W{static makeCurrent(){(0,a.HT)(new ne)}onAndCancel(De,re,Le){return De.addEventListener(re,Le,!1),()=>{De.removeEventListener(re,Le,!1)}}dispatchEvent(De,re){De.dispatchEvent(re)}remove(De){De.parentNode&&De.parentNode.removeChild(De)}createElement(De,re){return(re=re||this.getDefaultDocument()).createElement(De)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(De){return De.nodeType===Node.ELEMENT_NODE}isShadowRoot(De){return De instanceof DocumentFragment}getGlobalEventTarget(De,re){return"window"===re?window:"document"===re?De:"body"===re?De.body:null}getBaseHref(De){const re=function _(){return J=J||document.querySelector("base"),J?J.getAttribute("href"):null}();return null==re?null:function I(je){K=K||document.createElement("a"),K.setAttribute("href",je);const De=K.pathname;return"/"===De.charAt(0)?De:`/${De}`}(re)}resetBaseElement(){J=null}getUserAgent(){return window.navigator.userAgent}getCookie(De){return(0,a.Mx)(document.cookie,De)}}let K,J=null;const R=new s.OlP("TRANSITION_ID"),B=[{provide:s.ip1,useFactory:function H(je,De,re){return()=>{re.get(s.CZH).donePromise.then(()=>{const Le=(0,a.q)(),ht=De.querySelectorAll(`style[ng-transition="${je}"]`);for(let Vt=0;Vt{const Vt=De.findTestabilityInTree(Le,ht);if(null==Vt)throw new Error("Could not find testability for element.");return Vt},s.dqk.getAllAngularTestabilities=()=>De.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>De.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(Le=>{const ht=s.dqk.getAllAngularTestabilities();let Vt=ht.length,Ut=!1;const pn=function(On){Ut=Ut||On,Vt--,0==Vt&&Le(Ut)};ht.forEach(function(On){On.whenStable(pn)})})}findTestabilityInTree(De,re,Le){if(null==re)return null;const ht=De.getTestability(re);return null!=ht?ht:Le?(0,a.q)().isShadowRoot(re)?this.findTestabilityInTree(De,re.host,!0):this.findTestabilityInTree(De,re.parentElement,!0):null}}let _e=(()=>{class je{build(){return new XMLHttpRequest}}return je.\u0275fac=function(re){return new(re||je)},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac}),je})();const $e=new s.OlP("EventManagerPlugins");let Ve=(()=>{class je{constructor(re,Le){this._zone=Le,this._eventNameToPlugin=new Map,re.forEach(ht=>ht.manager=this),this._plugins=re.slice().reverse()}addEventListener(re,Le,ht){return this._findPluginFor(Le).addEventListener(re,Le,ht)}addGlobalEventListener(re,Le,ht){return this._findPluginFor(Le).addGlobalEventListener(re,Le,ht)}getZone(){return this._zone}_findPluginFor(re){const Le=this._eventNameToPlugin.get(re);if(Le)return Le;const ht=this._plugins;for(let Vt=0;Vt{class je{constructor(){this._stylesSet=new Set}addStyles(re){const Le=new Set;re.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Le.add(ht))}),this.onStylesAdded(Le)}onStylesAdded(re){}getAllStyles(){return Array.from(this._stylesSet)}}return je.\u0275fac=function(re){return new(re||je)},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac}),je})(),gt=(()=>{class je extends Ce{constructor(re){super(),this._doc=re,this._hostNodes=new Map,this._hostNodes.set(re.head,[])}_addStylesToHost(re,Le,ht){re.forEach(Vt=>{const Ut=this._doc.createElement("style");Ut.textContent=Vt,ht.push(Le.appendChild(Ut))})}addHost(re){const Le=[];this._addStylesToHost(this._stylesSet,re,Le),this._hostNodes.set(re,Le)}removeHost(re){const Le=this._hostNodes.get(re);Le&&Le.forEach(pt),this._hostNodes.delete(re)}onStylesAdded(re){this._hostNodes.forEach((Le,ht)=>{this._addStylesToHost(re,ht,Le)})}ngOnDestroy(){this._hostNodes.forEach(re=>re.forEach(pt))}}return je.\u0275fac=function(re){return new(re||je)(s.LFG(a.K0))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac}),je})();function pt(je){(0,a.q)().remove(je)}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/"},ct=/%COMP%/g;function pe(je,De,re){for(let Le=0;Le{if("__ngUnwrap__"===De)return je;!1===je(De)&&(De.preventDefault(),De.returnValue=!1)}}let ke=(()=>{class je{constructor(re,Le,ht){this.eventManager=re,this.sharedStylesHost=Le,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new Oe(re)}createRenderer(re,Le){if(!re||!Le)return this.defaultRenderer;switch(Le.encapsulation){case s.ifc.Emulated:{let ht=this.rendererByCompId.get(Le.id);return ht||(ht=new Se(this.eventManager,this.sharedStylesHost,Le,this.appId),this.rendererByCompId.set(Le.id,ht)),ht.applyToHost(re),ht}case 1:case s.ifc.ShadowDom:return new le(this.eventManager,this.sharedStylesHost,re,Le);default:if(!this.rendererByCompId.has(Le.id)){const ht=pe(Le.id,Le.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Le.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return je.\u0275fac=function(re){return new(re||je)(s.LFG(Ve),s.LFG(gt),s.LFG(s.AFp))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac}),je})();class Oe{constructor(De){this.eventManager=De,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(De,re){return re?document.createElementNS(zt[re]||re,De):document.createElement(De)}createComment(De){return document.createComment(De)}createText(De){return document.createTextNode(De)}appendChild(De,re){De.appendChild(re)}insertBefore(De,re,Le){De&&De.insertBefore(re,Le)}removeChild(De,re){De&&De.removeChild(re)}selectRootElement(De,re){let Le="string"==typeof De?document.querySelector(De):De;if(!Le)throw new Error(`The selector "${De}" did not match any elements`);return re||(Le.textContent=""),Le}parentNode(De){return De.parentNode}nextSibling(De){return De.nextSibling}setAttribute(De,re,Le,ht){if(ht){re=ht+":"+re;const Vt=zt[ht];Vt?De.setAttributeNS(Vt,re,Le):De.setAttribute(re,Le)}else De.setAttribute(re,Le)}removeAttribute(De,re,Le){if(Le){const ht=zt[Le];ht?De.removeAttributeNS(ht,re):De.removeAttribute(`${Le}:${re}`)}else De.removeAttribute(re)}addClass(De,re){De.classList.add(re)}removeClass(De,re){De.classList.remove(re)}setStyle(De,re,Le,ht){ht&(s.JOm.DashCase|s.JOm.Important)?De.style.setProperty(re,Le,ht&s.JOm.Important?"important":""):De.style[re]=Le}removeStyle(De,re,Le){Le&s.JOm.DashCase?De.style.removeProperty(re):De.style[re]=""}setProperty(De,re,Le){De[re]=Le}setValue(De,re){De.nodeValue=re}listen(De,re,Le){return"string"==typeof De?this.eventManager.addGlobalEventListener(De,re,ue(Le)):this.eventManager.addEventListener(De,re,ue(Le))}}class Se extends Oe{constructor(De,re,Le,ht){super(De),this.component=Le;const Vt=pe(ht+"-"+Le.id,Le.styles,[]);re.addStyles(Vt),this.contentAttr=function Je(je){return"_ngcontent-%COMP%".replace(ct,je)}(ht+"-"+Le.id),this.hostAttr=function q(je){return"_nghost-%COMP%".replace(ct,je)}(ht+"-"+Le.id)}applyToHost(De){super.setAttribute(De,this.hostAttr,"")}createElement(De,re){const Le=super.createElement(De,re);return super.setAttribute(Le,this.contentAttr,""),Le}}class le extends Oe{constructor(De,re,Le,ht){super(De),this.sharedStylesHost=re,this.hostEl=Le,this.shadowRoot=Le.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Vt=pe(ht.id,ht.styles,[]);for(let Ut=0;Ut{class je extends xe{constructor(re){super(re)}supports(re){return!0}addEventListener(re,Le,ht){return re.addEventListener(Le,ht,!1),()=>this.removeEventListener(re,Le,ht)}removeEventListener(re,Le,ht){return re.removeEventListener(Le,ht)}}return je.\u0275fac=function(re){return new(re||je)(s.LFG(a.K0))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac}),je})();const qe=["alt","control","meta","shift"],ot={"\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"},yt={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"},st={alt:je=>je.altKey,control:je=>je.ctrlKey,meta:je=>je.metaKey,shift:je=>je.shiftKey};let St=(()=>{class je extends xe{constructor(re){super(re)}supports(re){return null!=je.parseEventName(re)}addEventListener(re,Le,ht){const Vt=je.parseEventName(Le),Ut=je.eventCallback(Vt.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(re,Vt.domEventName,Ut))}static parseEventName(re){const Le=re.toLowerCase().split("."),ht=Le.shift();if(0===Le.length||"keydown"!==ht&&"keyup"!==ht)return null;const Vt=je._normalizeKey(Le.pop());let Ut="";if(qe.forEach(On=>{const ri=Le.indexOf(On);ri>-1&&(Le.splice(ri,1),Ut+=On+".")}),Ut+=Vt,0!=Le.length||0===Vt.length)return null;const pn={};return pn.domEventName=ht,pn.fullKey=Ut,pn}static getEventFullKey(re){let Le="",ht=function tt(je){let De=je.key;if(null==De){if(De=je.keyIdentifier,null==De)return"Unidentified";De.startsWith("U+")&&(De=String.fromCharCode(parseInt(De.substring(2),16)),3===je.location&&yt.hasOwnProperty(De)&&(De=yt[De]))}return ot[De]||De}(re);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),qe.forEach(Vt=>{Vt!=ht&&st[Vt](re)&&(Le+=Vt+".")}),Le+=ht,Le}static eventCallback(re,Le,ht){return Vt=>{je.getEventFullKey(Vt)===re&&ht.runGuarded(()=>Le(Vt))}}static _normalizeKey(re){return"esc"===re?"escape":re}}return je.\u0275fac=function(re){return new(re||je)(s.LFG(a.K0))},je.\u0275prov=s.Yz7({token:je,factory:je.\u0275fac}),je})();const Yt=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:a.bD},{provide:s.g9A,useValue:function Et(){ne.makeCurrent(),ee.init()},multi:!0},{provide:a.K0,useFactory:function sn(){return(0,s.RDi)(document),document},deps:[]}]),hn=[{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function Wt(){return new s.qLn},deps:[]},{provide:$e,useClass:ce,multi:!0,deps:[a.K0,s.R0b,s.Lbi]},{provide:$e,useClass:St,multi:!0,deps:[a.K0]},{provide:ke,useClass:ke,deps:[Ve,gt,s.AFp]},{provide:s.FYo,useExisting:ke},{provide:Ce,useExisting:gt},{provide:gt,useClass:gt,deps:[a.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:Ve,useClass:Ve,deps:[$e,s.R0b]},{provide:a.JF,useClass:_e,deps:[]}];let _n=(()=>{class je{constructor(re){if(re)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(re){return{ngModule:je,providers:[{provide:s.AFp,useValue:re.appId},{provide:R,useExisting:s.AFp},B]}}}return je.\u0275fac=function(re){return new(re||je)(s.LFG(je,12))},je.\u0275mod=s.oAB({type:je}),je.\u0275inj=s.cJS({providers:hn,imports:[a.ez,s.hGG]}),je})();"undefined"!=typeof window&&window;let kn=(()=>{class je{}return je.\u0275fac=function(re){return new(re||je)},je.\u0275prov=s.Yz7({token:je,factory:function(re){let Le=null;return Le=re?new(re||je):s.LFG(Yn),Le},providedIn:"root"}),je})(),Yn=(()=>{class je extends kn{constructor(re){super(),this._doc=re}sanitize(re,Le){if(null==Le)return null;switch(re){case s.q3G.NONE:return Le;case s.q3G.HTML:return(0,s.qzn)(Le,"HTML")?(0,s.z3N)(Le):(0,s.EiD)(this._doc,String(Le)).toString();case s.q3G.STYLE:return(0,s.qzn)(Le,"Style")?(0,s.z3N)(Le):Le;case s.q3G.SCRIPT:if((0,s.qzn)(Le,"Script"))return(0,s.z3N)(Le);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(Le),(0,s.qzn)(Le,"URL")?(0,s.z3N)(Le):(0,s.mCW)(String(Le));case s.q3G.RESOURCE_URL:if((0,s.qzn)(Le,"ResourceURL"))return(0,s.z3N)(Le);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${re} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(re){return(0,s.JVY)(re)}bypassSecurityTrustStyle(re){return(0,s.L6k)(re)}bypassSecurityTrustScript(re){return(0,s.eBb)(re)}bypassSecurityTrustUrl(re){return(0,s.LAX)(re)}bypassSecurityTrustResourceUrl(re){return(0,s.pB0)(re)}}return je.\u0275fac=function(re){return new(re||je)(s.LFG(a.K0))},je.\u0275prov=s.Yz7({token:je,factory:function(re){let Le=null;return Le=re?new re:function oi(je){return new Yn(je.get(a.K0))}(s.LFG(s.zs3)),Le},providedIn:"root"}),je})()},2302:(_t,we,p)=>{p.d(we,{gz:()=>k,m2:()=>Et,OD:()=>tt,wm:()=>Is,F0:()=>ci,rH:()=>Xi,yS:()=>No,Bz:()=>Hs,lC:()=>so});var a=p(5e3);const W=(()=>{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 ne=p(5254),J=p(1086),_=p(591),K=p(6053),I=p(6498),R=p(1961),H=p(8514),B=p(8896),ee=p(1762),_e=p(8929),$e=p(2198),Ve=p(3489),xe=p(4231);function Ce(m){return function(h){return 0===m?(0,B.c)():h.lift(new gt(m))}}class gt{constructor(d){if(this.total=d,this.total<0)throw new xe.W}call(d,h){return h.subscribe(new pt(d,this.total))}}class pt extends Ve.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 G=0;Gd.lift(new ct(m))}class ct{constructor(d){this.errorFactory=d}call(d,h){return h.subscribe(new ye(d,this.errorFactory))}}class ye extends Ve.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 Ge(){return new W}function et(m=null){return d=>d.lift(new ze(m))}class ze{constructor(d){this.defaultValue=d}call(d,h){return h.subscribe(new Je(d,this.defaultValue))}}class Je extends Ve.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 q=p(5379),ue=p(2986);function fe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,$e.h)((S,G)=>m(S,G,M)):q.y,(0,ue.q)(1),h?et(d):zt(()=>new W))}var ke=p(4850),Oe=p(7545),We=p(1059),Re=p(2014),Se=p(7221),le=p(1406),ce=p(1709),qe=p(2994),Ye=p(4327),ot=p(537),yt=p(9146),st=p(9808);class St{constructor(d,h){this.id=d,this.url=h}}class tt 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 Wt extends St{constructor(d,h,M){super(d,h),this.reason=M}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class sn 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 Yt 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 hn extends St{constructor(d,h,M,S,G){super(d,h),this.urlAfterRedirects=M,this.state=S,this.shouldActivate=G}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 ln{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 Xe{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 me{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 me(m)}const ge="ngNavigationCancelingError";function Ne(m){const d=Error("NavigationCancelingError: "+m);return d[ge]=!0,d}function He(m,d,h){const M=h.path.split("/");if(M.length>m.length||"full"===h.pathMatch&&(d.hasChildren()||M.lengthM[G]===S)}return m===d}function nt(m){return Array.prototype.concat.apply([],m)}function ae(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,ne.D)(Promise.resolve(m)):(0,J.of)(m)}const he={exact:function Qt(m,d,h){if(!re(m.segments,d.segments)||!oi(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:Hn},Ie={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=>Ue(m[h],d[h]))},ignored:()=>!0};function wt(m,d,h){return he[h.paths](m.root,d.root,h.matrixParams)&&Ie[h.queryParams](m.queryParams,d.queryParams)&&!("exact"===h.fragment&&m.fragment!==d.fragment)}function Hn(m,d,h){return kn(m,d,d.segments,h)}function kn(m,d,h,M){if(m.segments.length>h.length){const S=m.segments.slice(0,h.length);return!(!re(S,h)||d.hasChildren()||!oi(S,h,M))}if(m.segments.length===h.length){if(!re(m.segments,h)||!oi(m.segments,h,M))return!1;for(const S in d.children)if(!m.children[S]||!Hn(m.children[S],d.children[S],M))return!1;return!0}{const S=h.slice(0,m.segments.length),G=h.slice(m.segments.length);return!!(re(m.segments,S)&&oi(m.segments,S,M)&&m.children[P])&&kn(m.children[P],d,G,M)}}function oi(m,d,h){return d.every((M,S)=>Ie[h](m[S].parameters,M.parameters))}class Yn{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 Ut.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 pn(this)}}class je{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 re(m,d){return m.length===d.length&&m.every((h,M)=>h.path===d[M].path)}class ht{}class Vt{parse(d){const h=new Tn(d);return new Yn(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(d){const h=`/${On(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=>`${Gn(h)}=${Gn(S)}`).join("&"):`${Gn(h)}=${Gn(M)}`}).filter(h=>!!h);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${h}${M}${"string"==typeof d.fragment?`#${function ni(m){return encodeURI(m)}(d.fragment)}`:""}`}}const Ut=new Vt;function pn(m){return m.segments.map(d=>Tt(d)).join("/")}function On(m,d){if(!m.hasChildren())return pn(m);if(d){const h=m.children[P]?On(m.children[P],!1):"",M=[];return L(m.children,(S,G)=>{G!==P&&M.push(`${G}:${On(S,!1)}`)}),M.length>0?`${h}(${M.join("//")})`:h}{const h=function Le(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?[On(m.children[P],!1)]:[`${S}:${On(M,!1)}`]);return 1===Object.keys(m.children).length&&null!=m.children[P]?`${pn(m)}/${h[0]}`:`${pn(m)}/(${h.join("//")})`}}function ri(m){return encodeURIComponent(m).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gn(m){return ri(m).replace(/%3B/gi,";")}function En(m){return ri(m).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zn(m){return decodeURIComponent(m)}function Kn(m){return Zn(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 Te=/^[^\/()?;=#]+/;function vt(m){const d=m.match(Te);return d?d[0]:""}const se=/^[^=?&#]+/,Ft=/^[^&#]+/;class Tn{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=vt(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new je(Zn(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const h=vt(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const S=vt(this.remaining);S&&(M=S,this.capture(M))}d[Zn(h)]=Zn(M)}parseQueryParam(d){const h=function ut(m){const d=m.match(se);return d?d[0]:""}(this.remaining);if(!h)return;this.capture(h);let M="";if(this.consumeOptional("=")){const de=function en(m){const d=m.match(Ft);return d?d[0]:""}(this.remaining);de&&(M=de,this.capture(M))}const S=Kn(h),G=Kn(M);if(d.hasOwnProperty(S)){let de=d[S];Array.isArray(de)||(de=[de],d[S]=de),de.push(G)}else d[S]=G}parseParens(d){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const M=vt(this.remaining),S=this.remaining[M.length];if("/"!==S&&")"!==S&&";"!==S)throw new Error(`Cannot parse url '${this.url}'`);let G;M.indexOf(":")>-1?(G=M.substr(0,M.indexOf(":")),this.capture(G),this.capture(":")):d&&(G=P);const de=this.parseChildren();h[G]=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 Gt{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=jn(d,this._root);return h?h.children.map(M=>M.value):[]}firstChild(d){const h=jn(d,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(d){const h=Qn(d,this._root);return h.length<2?[]:h[h.length-2].children.map(S=>S.value).filter(S=>S!==d)}pathFromRoot(d){return Qn(d,this._root).map(h=>h.value)}}function jn(m,d){if(m===d.value)return d;for(const h of d.children){const M=jn(m,h);if(M)return M}return null}function Qn(m,d){if(m===d.value)return[d];for(const h of d.children){const M=Qn(m,h);if(M.length)return M.unshift(d),M}return[]}class Fn{constructor(d,h){this.value=d,this.children=h}toString(){return`TreeNode(${this.value})`}}function si(m){const d={};return m&&m.children.forEach(h=>d[h.value.outlet]=h),d}class qn extends Gt{constructor(d,h){super(d),this.snapshot=h,Lt(this,d)}toString(){return this.snapshot.toString()}}function X(m,d){const h=function oe(m,d){const de=new Ct([],{},{},"",{},P,d,null,m.root,-1,{});return new Ot("",new Fn(de,[]))}(m,d),M=new _.X([new je("",{})]),S=new _.X({}),G=new _.X({}),de=new _.X({}),Fe=new _.X(""),ft=new k(M,S,de,Fe,G,P,d,h.root);return ft.snapshot=h.root,new qn(new Fn(ft,[]),h)}class k{constructor(d,h,M,S,G,de,Fe,ft){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=G,this.outlet=de,this.component=Fe,this._futureSnapshot=ft}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,ke.U)(d=>j(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ke.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],G=h[M-1];if(S.routeConfig&&""===S.routeConfig.path)M--;else{if(G.component)break;M--}}return function it(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,G,de,Fe,ft,Ht,wn,nn){this.url=d,this.params=h,this.queryParams=M,this.fragment=S,this.data=G,this.outlet=de,this.component=Fe,this.routeConfig=ft,this._urlSegment=Ht,this._lastPathIndex=wn,this._resolve=nn}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 Gt{constructor(d,h){super(h),this.url=d,Lt(this,h)}toString(){return dn(this._root)}}function Lt(m,d){d.value._routerState=m,d.children.forEach(h=>Lt(m,h))}function dn(m){const d=m.children.length>0?` { ${m.children.map(dn).join(", ")} } `:"";return`${m.value}${d}`}function ti(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 be(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 Fn(M,S)}{if(m.shouldAttach(d.value)){const G=m.retrieve(d.value);if(null!==G){const de=G.route;return de.value._futureSnapshot=d.value,de.children=d.children.map(Fe=>bi(m,Fe)),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(G=>bi(m,G));return new Fn(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 G={};return M&&L(M,(de,Fe)=>{G[Fe]=Array.isArray(de)?de.map(ft=>`${ft}`):`${de}`}),new Yn(h.root===m?d:Fo(h.root,m,d),G,S)}function Fo(m,d,h){const M={};return L(m.children,(S,G)=>{M[G]=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!==ae(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 G={match:!1,pathIndex:0,commandIndex:0};for(;S=h.length)return G;const de=m.segments[S],Fe=h[M];if(wi(Fe))break;const ft=`${Fe}`,Ht=M0&&void 0===ft)break;if(ft&&Ht&&"object"==typeof Ht&&void 0===Ht.outlets){if(!Qo(ft,Ht,de))return G;M+=2}else{if(!Qo(ft,{},de))return G;M++}S++}return{match:!0,pathIndex:S,commandIndex:M}}(m,d,h),S=h.slice(M.commandIndex);if(M.match&&M.pathIndex{"string"==typeof G&&(G=[G]),null!==G&&(S[de]=Ii(m.children[de],d,G))}),L(m.children,(G,de)=>{void 0===M[de]&&(S[de]=G)}),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),ti(this.futureState.root),this.activateChildRoutes(h,M,d)}deactivateChildRoutes(d,h,M){const S=si(h);d.children.forEach(G=>{const de=G.value.outlet;this.deactivateRoutes(G,S[de],M),delete S[de]}),L(S,(G,de)=>{this.deactivateRouteAndItsChildren(G,M)})}deactivateRoutes(d,h,M){const S=d.value,G=h?h.value:null;if(S===G)if(S.component){const de=M.getContext(S.outlet);de&&this.deactivateChildRoutes(d,h,de.children)}else this.deactivateChildRoutes(d,h,M);else G&&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,G=si(d);for(const de of Object.keys(G))this.deactivateRouteAndItsChildren(G[de],S);if(M&&M.outlet){const de=M.outlet.detach(),Fe=M.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:de,route:d,contexts:Fe})}}deactivateRouteAndOutlet(d,h){const M=h.getContext(d.value.outlet),S=M&&d.value.component?M.children:h,G=si(d);for(const de of Object.keys(G))this.deactivateRouteAndItsChildren(G[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=si(h);d.children.forEach(G=>{this.activateRoutes(G,S[G.value.outlet],M),this.forwardEvent(new x(G.value.snapshot))}),d.children.length&&this.forwardEvent(new Mn(d.value.snapshot))}activateRoutes(d,h,M){const S=d.value,G=h?h.value:null;if(ti(S),S===G)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 Fe=this.routeReuseStrategy.retrieve(S.snapshot);this.routeReuseStrategy.store(S.snapshot,null),de.children.onOutletReAttached(Fe.contexts),de.attachRef=Fe.componentRef,de.route=Fe.route.value,de.outlet&&de.outlet.attach(Fe.componentRef,Fe.route.value),ti(Fe.route.value),this.activateChildRoutes(d,null,de.children)}else{const Fe=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),ft=Fe?Fe.module.componentFactoryResolver:null;de.attachRef=null,de.route=S,de.resolver=ft,de.outlet&&de.outlet.activateWith(S,ft),this.activateChildRoutes(d,null,de.children)}}else this.activateChildRoutes(d,null,M)}}class ro{constructor(d,h){this.routes=d,this.module=h}}function ii(m){return"function"==typeof m}function Di(m){return m instanceof Yn}const xi=Symbol("INITIAL_VALUE");function Vi(){return(0,Oe.w)(m=>(0,K.aj)(m.map(d=>d.pipe((0,ue.q)(1),(0,We.O)(xi)))).pipe((0,Re.R)((d,h)=>{let M=!1;return h.reduce((S,G,de)=>S!==xi?S:(G===xi&&(M=!0),M||!1!==G&&de!==h.length-1&&!Di(G)?S:G),d)},xi),(0,$e.h)(d=>d!==xi),(0,ke.U)(d=>Di(d)?d:!0===d),(0,ue.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,G,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=G||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),Fe=this.parentContexts.getOrCreateContext(this.name).children,ft=new Do(h,Fe,this.location.injector);this.activated=this.location.createComponent(de,this.location.length,ft),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 G=(d.matcher||He)(h,m,d);if(!G)return Object.assign({},b);const de={};L(G.posParams,(ft,Ht)=>{de[Ht]=ft.path});const Fe=G.consumed.length>0?Object.assign(Object.assign({},de),G.consumed[G.consumed.length-1].parameters):de;return{matched:!0,consumedSegments:G.consumed,lastChild:G.consumed.length,parameters:Fe,positionalParamSegments:null!==(M=G.posParams)&&void 0!==M?M:{}}}function w(m,d,h,M,S="corrected"){if(h.length>0&&function at(m,d,h){return h.some(M=>kt(m,d,M)&&yi(M)!==P)}(m,h,M)){const de=new qt(d,function Pe(m,d,h,M){const S={};S[P]=M,M._sourceSegment=m,M._segmentIndexShift=d.length;for(const G of h)if(""===G.path&&yi(G)!==P){const de=new qt([],{});de._sourceSegment=m,de._segmentIndexShift=d.length,S[yi(G)]=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,G){const de={};for(const Fe of M)if(kt(m,h,Fe)&&!S[yi(Fe)]){const ft=new qt([],{});ft._sourceSegment=m,ft._segmentIndexShift="legacy"===G?m.segments.length:d.length,de[yi(Fe)]=ft}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 G=new qt(m.segments,m.children);return G._sourceSegment=m,G._segmentIndexShift=d.length,{segmentGroup:G,slicedSegments:h}}function kt(m,d,h){return(!(m.hasChildren()||d.length>0)||"full"!==h.pathMatch)&&""===h.path}function Vn(m,d,h,M){return!!(yi(m)===M||M!==P&&kt(d,h,m))&&("**"===m.path||Y(d,m,h).matched)}function xn(m,d,h){return 0===d.length&&!m.children[h]}class Dn{constructor(d){this.segmentGroup=d||null}}class fn{constructor(d){this.urlTree=d}}function Bn(m){return new I.y(d=>d.error(new Dn(m)))}function An(m){return new I.y(d=>d.error(new fn(m)))}function jt(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,G){this.configLoader=h,this.urlSerializer=M,this.urlTree=S,this.config=G,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,ke.U)(G=>this.createUrlTree(U(G),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Se.K)(G=>{if(G instanceof fn)return this.allowRedirects=!1,this.match(G.urlTree);throw G instanceof Dn?this.noMatchError(G):G}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,P).pipe((0,ke.U)(S=>this.createUrlTree(U(S),d.queryParams,d.fragment))).pipe((0,Se.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 Yn(S,h,M)}expandSegmentGroup(d,h,M,S){return 0===M.segments.length&&M.hasChildren()?this.expandChildren(d,h,M).pipe((0,ke.U)(G=>new qt([],G))):this.expandSegment(d,M,h,M.segments,S,!0)}expandChildren(d,h,M){const S=[];for(const G of Object.keys(M.children))"primary"===G?S.unshift(G):S.push(G);return(0,ne.D)(S).pipe((0,le.b)(G=>{const de=M.children[G],Fe=Un(h,G);return this.expandSegmentGroup(d,Fe,de,G).pipe((0,ke.U)(ft=>({segment:ft,outlet:G})))}),(0,Re.R)((G,de)=>(G[de.outlet]=de.segment,G),{}),function pe(m,d){const h=arguments.length>=2;return M=>M.pipe(m?(0,$e.h)((S,G)=>m(S,G,M)):q.y,Ce(1),h?et(d):zt(()=>new W))}())}expandSegment(d,h,M,S,G,de){return(0,ne.D)(M).pipe((0,le.b)(Fe=>this.expandSegmentAgainstRoute(d,h,M,Fe,S,G,de).pipe((0,Se.K)(Ht=>{if(Ht instanceof Dn)return(0,J.of)(null);throw Ht}))),fe(Fe=>!!Fe),(0,Se.K)((Fe,ft)=>{if(Fe instanceof W||"EmptyError"===Fe.name){if(xn(h,S,G))return(0,J.of)(new qt([],{}));throw new Dn(h)}throw Fe}))}expandSegmentAgainstRoute(d,h,M,S,G,de,Fe){return Vn(S,h,G,de)?void 0===S.redirectTo?this.matchSegmentAgainstRoute(d,h,S,G,de):Fe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,h,M,S,G,de):Bn(h):Bn(h)}expandSegmentAgainstRouteUsingRedirect(d,h,M,S,G,de){return"**"===S.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,M,S,de):this.expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,G,de)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,M,S){const G=this.applyRedirectCommands([],M.redirectTo,{});return M.redirectTo.startsWith("/")?An(G):this.lineralizeSegments(M,G).pipe((0,ce.zg)(de=>{const Fe=new qt(de,{});return this.expandSegment(d,Fe,h,de,S,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,h,M,S,G,de){const{matched:Fe,consumedSegments:ft,lastChild:Ht,positionalParamSegments:wn}=Y(h,S,G);if(!Fe)return Bn(h);const nn=this.applyRedirectCommands(ft,S.redirectTo,wn);return S.redirectTo.startsWith("/")?An(nn):this.lineralizeSegments(S,nn).pipe((0,ce.zg)(Ln=>this.expandSegment(d,h,M,Ln.concat(G.slice(Ht)),de,!1)))}matchSegmentAgainstRoute(d,h,M,S,G){if("**"===M.path)return M.loadChildren?(M._loadedConfig?(0,J.of)(M._loadedConfig):this.configLoader.load(d.injector,M)).pipe((0,ke.U)(Ln=>(M._loadedConfig=Ln,new qt(S,{})))):(0,J.of)(new qt(S,{}));const{matched:de,consumedSegments:Fe,lastChild:ft}=Y(h,M,S);if(!de)return Bn(h);const Ht=S.slice(ft);return this.getChildConfig(d,M,S).pipe((0,ce.zg)(nn=>{const Ln=nn.module,Nn=nn.routes,{segmentGroup:co,slicedSegments:lo}=w(h,Fe,Ht,Nn),Ui=new qt(co.segments,co.children);if(0===lo.length&&Ui.hasChildren())return this.expandChildren(Ln,Nn,Ui).pipe((0,ke.U)(eo=>new qt(Fe,eo)));if(0===Nn.length&&0===lo.length)return(0,J.of)(new qt(Fe,{}));const uo=yi(M)===G;return this.expandSegment(Ln,Ui,Nn,lo,uo?P:G,!0).pipe((0,ke.U)(Ai=>new qt(Fe.concat(Ai.segments),Ai.children)))}))}getChildConfig(d,h,M){return h.children?(0,J.of)(new ro(h.children,d)):h.loadChildren?void 0!==h._loadedConfig?(0,J.of)(h._loadedConfig):this.runCanLoadGuards(d.injector,h,M).pipe((0,ce.zg)(S=>S?this.configLoader.load(d.injector,h).pipe((0,ke.U)(G=>(h._loadedConfig=G,G))):function Eo(m){return new I.y(d=>d.error(Ne(`Cannot load children because the guard of the route "path: '${m.path}'" returned false`)))}(h))):(0,J.of)(new ro([],d))}runCanLoadGuards(d,h,M){const S=h.canLoad;if(!S||0===S.length)return(0,J.of)(!0);const G=S.map(de=>{const Fe=d.get(de);let ft;if(function bo(m){return m&&ii(m.canLoad)}(Fe))ft=Fe.canLoad(h,M);else{if(!ii(Fe))throw new Error("Invalid CanLoad guard");ft=Fe(h,M)}return E(ft)});return(0,J.of)(G).pipe(Vi(),(0,qe.b)(de=>{if(!Di(de))return;const Fe=Ne(`Redirecting to "${this.urlSerializer.serialize(de)}"`);throw Fe.url=de,Fe}),(0,ke.U)(de=>!0===de))}lineralizeSegments(d,h){let M=[],S=h.root;for(;;){if(M=M.concat(S.segments),0===S.numberOfChildren)return(0,J.of)(M);if(S.numberOfChildren>1||!S.children[P])return jt(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 G=this.createSegmentGroup(d,h.root,M,S);return new Yn(G,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(d,h){const M={};return L(d,(S,G)=>{if("string"==typeof S&&S.startsWith(":")){const Fe=S.substring(1);M[G]=h[Fe]}else M[G]=S}),M}createSegmentGroup(d,h,M,S){const G=this.createSegments(d,h.segments,M,S);let de={};return L(h.children,(Fe,ft)=>{de[ft]=this.createSegmentGroup(d,Fe,M,S)}),new qt(G,de)}createSegments(d,h,M,S){return h.map(G=>G.path.startsWith(":")?this.findPosParam(d,G,S):this.findOrReturn(G,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 G=U(m.children[M]);(G.segments.length>0||G.hasChildren())&&(d[M]=G)}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 G=si(d);return m.children.forEach(de=>{(function te(m,d,h,M,S={canDeactivateChecks:[],canActivateChecks:[]}){const G=m.value,de=d?d.value:null,Fe=h?h.getContext(m.value.outlet):null;if(de&&G.routeConfig===de.routeConfig){const ft=function ve(m,d,h){if("function"==typeof h)return h(m,d);switch(h){case"pathParamsChange":return!re(m.url,d.url);case"pathParamsOrQueryParamsChange":return!re(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,G,G.routeConfig.runGuardsAndResolvers);ft?S.canActivateChecks.push(new Nt(M)):(G.data=de.data,G._resolvedData=de._resolvedData),F(m,d,G.component?Fe?Fe.children:null:h,M,S),ft&&Fe&&Fe.outlet&&Fe.outlet.isActivated&&S.canDeactivateChecks.push(new lt(Fe.outlet.component,de))}else de&&Me(d,Fe,S),S.canActivateChecks.push(new Nt(M)),F(m,null,G.component?Fe?Fe.children:null:h,M,S)})(de,G[de.value.outlet],h,M.concat([de.value]),S),delete G[de.value.outlet]}),L(G,(de,Fe)=>Me(de,h.getContext(Fe),S)),S}function Me(m,d,h){const M=si(m),S=m.value;L(M,(G,de)=>{Me(G,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 mn{}function Jn(m){return new I.y(d=>d.error(m))}class _i{constructor(d,h,M,S,G,de){this.rootComponentType=d,this.config=h,this.urlTree=M,this.url=S,this.paramsInheritanceStrategy=G,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 Fn(M,h),G=new Ot(this.url,S);return this.inheritParamsAndData(G._root),G}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 G of Object.keys(h.children)){const de=h.children[G],Fe=Un(d,G),ft=this.processSegmentGroup(Fe,de,G);if(null===ft)return null;M.push(...ft)}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 G of d){const de=this.processSegmentAgainstRoute(G,h,M,S);if(null!==de)return de}return xn(h,M,S)?[]:null}processSegmentAgainstRoute(d,h,M,S){if(d.redirectTo||!Vn(d,h,M,S))return null;let G,de=[],Fe=[];if("**"===d.path){const Nn=M.length>0?ae(M).parameters:{};G=new Ct(M,Nn,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 Nn=Y(h,d,M);if(!Nn.matched)return null;de=Nn.consumedSegments,Fe=M.slice(Nn.lastChild),G=new Ct(de,Nn.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 ft=function qi(m){return m.children?m.children:m.loadChildren?m._loadedConfig.routes:[]}(d),{segmentGroup:Ht,slicedSegments:wn}=w(h,de,Fe,ft.filter(Nn=>void 0===Nn.redirectTo),this.relativeLinkResolution);if(0===wn.length&&Ht.hasChildren()){const Nn=this.processChildren(ft,Ht);return null===Nn?null:[new Fn(G,Nn)]}if(0===ft.length&&0===wn.length)return[new Fn(G,[])];const nn=yi(d)===S,Ln=this.processSegment(ft,Ht,wn,nn?P:S);return null===Ln?null:[new Fn(G,Ln)]}}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(G=>M.value.routeConfig===G.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 Fn(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 tn(m){return(0,Oe.w)(d=>{const h=m(d);return h?(0,ne.D)(h).pipe((0,ke.U)(()=>d)):(0,J.of)(d)})}class Pn extends class $n{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,ke.U)(G=>{this.onLoadEndListener&&this.onLoadEndListener(h);const de=G.create(d);return new ro(nt(de.injector.get(pi,void 0,a.XFs.Self|a.XFs.Optional)).map(Pi),de)}),(0,Se.K)(G=>{throw h._loader$=void 0,G}));return h._loader$=new ee.c(S,()=>new _e.xQ).pipe((0,Ye.x)()),h._loader$}loadModuleFactory(d){return E(d()).pipe((0,ce.zg)(h=>h instanceof a.YKP?(0,J.of)(h):(0,ne.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,J.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,G,de,Fe,ft){this.rootComponentType=h,this.urlSerializer=M,this.rootContexts=S,this.location=G,this.config=ft,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new _e.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 Pn,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 nn=de.get(a.R0b);this.isNgZoneEnabled=nn instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(ft),this.currentUrlTree=function $(){return new Yn(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ji(de,Fe,Ln=>this.triggerEvent(new Dt(Ln)),Ln=>this.triggerEvent(new Sn(Ln))),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,$e.h)(S=>0!==S.id),(0,ke.U)(S=>Object.assign(Object.assign({},S),{extractedUrl:this.urlHandlingStrategy.extract(S.rawUrl)})),(0,Oe.w)(S=>{let G=!1,de=!1;return(0,J.of)(S).pipe((0,qe.b)(Fe=>{this.currentNavigation={id:Fe.id,initialUrl:Fe.currentRawUrl,extractedUrl:Fe.extractedUrl,trigger:Fe.source,extras:Fe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Oe.w)(Fe=>{const ft=this.browserUrlTree.toString(),Ht=!this.navigated||Fe.extractedUrl.toString()!==ft||ft!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ht)&&this.urlHandlingStrategy.shouldProcessUrl(Fe.rawUrl))return gr(Fe.source)&&(this.browserUrlTree=Fe.extractedUrl),(0,J.of)(Fe).pipe((0,Oe.w)(nn=>{const Ln=this.transitions.getValue();return M.next(new tt(nn.id,this.serializeUrl(nn.extractedUrl),nn.source,nn.restoredState)),Ln!==this.transitions.getValue()?B.E:Promise.resolve(nn)}),function rt(m,d,h,M){return(0,Oe.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,ke.U)(G=>Object.assign(Object.assign({},S),{urlAfterRedirects:G}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,qe.b)(nn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:nn.urlAfterRedirects})}),function ao(m,d,h,M,S){return(0,ce.zg)(G=>function ei(m,d,h,M,S="emptyOnly",G="legacy"){try{const de=new _i(m,d,h,M,S,G).recognize();return null===de?Jn(new mn):(0,J.of)(de)}catch(de){return Jn(de)}}(m,d,G.urlAfterRedirects,h(G.urlAfterRedirects),M,S).pipe((0,ke.U)(de=>Object.assign(Object.assign({},G),{targetSnapshot:de}))))}(this.rootComponentType,this.config,nn=>this.serializeUrl(nn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,qe.b)(nn=>{if("eager"===this.urlUpdateStrategy){if(!nn.extras.skipLocationChange){const Nn=this.urlHandlingStrategy.merge(nn.urlAfterRedirects,nn.rawUrl);this.setBrowserUrl(Nn,nn)}this.browserUrlTree=nn.urlAfterRedirects}const Ln=new gn(nn.id,this.serializeUrl(nn.extractedUrl),this.serializeUrl(nn.urlAfterRedirects),nn.targetSnapshot);M.next(Ln)}));if(Ht&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Ln,extractedUrl:Nn,source:co,restoredState:lo,extras:Ui}=Fe,uo=new tt(Ln,this.serializeUrl(Nn),co,lo);M.next(uo);const So=X(Nn,this.rootComponentType).snapshot;return(0,J.of)(Object.assign(Object.assign({},Fe),{targetSnapshot:So,urlAfterRedirects:Nn,extras:Object.assign(Object.assign({},Ui),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Fe.rawUrl,Fe.resolve(null),B.E}),tn(Fe=>{const{targetSnapshot:ft,id:Ht,extractedUrl:wn,rawUrl:nn,extras:{skipLocationChange:Ln,replaceUrl:Nn}}=Fe;return this.hooks.beforePreactivation(ft,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:nn,skipLocationChange:!!Ln,replaceUrl:!!Nn})}),(0,qe.b)(Fe=>{const ft=new Yt(Fe.id,this.serializeUrl(Fe.extractedUrl),this.serializeUrl(Fe.urlAfterRedirects),Fe.targetSnapshot);this.triggerEvent(ft)}),(0,ke.U)(Fe=>Object.assign(Object.assign({},Fe),{guards:O(Fe.targetSnapshot,Fe.currentSnapshot,this.rootContexts)})),function Qe(m,d){return(0,ce.zg)(h=>{const{targetSnapshot:M,currentSnapshot:S,guards:{canActivateChecks:G,canDeactivateChecks:de}}=h;return 0===de.length&&0===G.length?(0,J.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function dt(m,d,h,M){return(0,ne.D)(m).pipe((0,ce.zg)(S=>function Jt(m,d,h,M,S){const G=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!G||0===G.length)return(0,J.of)(!0);const de=G.map(Fe=>{const ft=l(Fe,d,S);let Ht;if(function wo(m){return m&&ii(m.canDeactivate)}(ft))Ht=E(ft.canDeactivate(m,d,h,M));else{if(!ii(ft))throw new Error("Invalid CanDeactivate guard");Ht=E(ft(m,d,h,M))}return Ht.pipe(fe())});return(0,J.of)(de).pipe(Vi())}(S.component,S.route,h,d,M)),fe(S=>!0!==S,!0))}(de,M,S,m).pipe((0,ce.zg)(Fe=>Fe&&function Zi(m){return"boolean"==typeof m}(Fe)?function Pt(m,d,h,M){return(0,ne.D)(d).pipe((0,le.b)(S=>(0,R.z)(function Kt(m,d){return null!==m&&d&&d(new ln(m)),(0,J.of)(!0)}(S.route.parent,M),function Bt(m,d){return null!==m&&d&&d(new Xe(m)),(0,J.of)(!0)}(S.route,M),function Zt(m,d,h){const M=d[d.length-1],G=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 Fe=de.guards.map(ft=>{const Ht=l(ft,de.node,h);let wn;if(function Lo(m){return m&&ii(m.canActivateChild)}(Ht))wn=E(Ht.canActivateChild(M,m));else{if(!ii(Ht))throw new Error("Invalid CanActivateChild guard");wn=E(Ht(M,m))}return wn.pipe(fe())});return(0,J.of)(Fe).pipe(Vi())}));return(0,J.of)(G).pipe(Vi())}(m,S.path,h),function un(m,d,h){const M=d.routeConfig?d.routeConfig.canActivate:null;if(!M||0===M.length)return(0,J.of)(!0);const S=M.map(G=>(0,H.P)(()=>{const de=l(G,d,h);let Fe;if(function Vo(m){return m&&ii(m.canActivate)}(de))Fe=E(de.canActivate(d,m));else{if(!ii(de))throw new Error("Invalid CanActivate guard");Fe=E(de(d,m))}return Fe.pipe(fe())}));return(0,J.of)(S).pipe(Vi())}(m,S.route,h))),fe(S=>!0!==S,!0))}(M,G,m,d):(0,J.of)(Fe)),(0,ke.U)(Fe=>Object.assign(Object.assign({},h),{guardsResult:Fe})))})}(this.ngModule.injector,Fe=>this.triggerEvent(Fe)),(0,qe.b)(Fe=>{if(Di(Fe.guardsResult)){const Ht=Ne(`Redirecting to "${this.serializeUrl(Fe.guardsResult)}"`);throw Ht.url=Fe.guardsResult,Ht}const ft=new hn(Fe.id,this.serializeUrl(Fe.extractedUrl),this.serializeUrl(Fe.urlAfterRedirects),Fe.targetSnapshot,!!Fe.guardsResult);this.triggerEvent(ft)}),(0,$e.h)(Fe=>!!Fe.guardsResult||(this.restoreHistory(Fe),this.cancelNavigationTransition(Fe,""),!1)),tn(Fe=>{if(Fe.guards.canActivateChecks.length)return(0,J.of)(Fe).pipe((0,qe.b)(ft=>{const Ht=new _n(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot);this.triggerEvent(Ht)}),(0,Oe.w)(ft=>{let Ht=!1;return(0,J.of)(ft).pipe(function fr(m,d){return(0,ce.zg)(h=>{const{targetSnapshot:M,guards:{canActivateChecks:S}}=h;if(!S.length)return(0,J.of)(h);let G=0;return(0,ne.D)(S).pipe((0,le.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,J.of)({});const G={};return(0,ne.D)(S).pipe((0,ce.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,qe.b)(Fe=>{G[de]=Fe}))),Ce(1),(0,ce.zg)(()=>Object.keys(G).length===S.length?(0,J.of)(G):B.E))}(m._resolve,m,d,M).pipe((0,ke.U)(G=>(m._resolvedData=G,m.data=Object.assign(Object.assign({},m.data),Ee(m,h).resolve),null)))}(de.route,M,m,d)),(0,qe.b)(()=>G++),Ce(1),(0,ce.zg)(de=>G===S.length?(0,J.of)(h):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,qe.b)({next:()=>Ht=!0,complete:()=>{Ht||(this.restoreHistory(ft),this.cancelNavigationTransition(ft,"At least one route resolver didn't emit any value."))}}))}),(0,qe.b)(ft=>{const Ht=new Cn(ft.id,this.serializeUrl(ft.extractedUrl),this.serializeUrl(ft.urlAfterRedirects),ft.targetSnapshot);this.triggerEvent(Ht)}))}),tn(Fe=>{const{targetSnapshot:ft,id:Ht,extractedUrl:wn,rawUrl:nn,extras:{skipLocationChange:Ln,replaceUrl:Nn}}=Fe;return this.hooks.afterPreactivation(ft,{navigationId:Ht,appliedUrlTree:wn,rawUrlTree:nn,skipLocationChange:!!Ln,replaceUrl:!!Nn})}),(0,ke.U)(Fe=>{const ft=function In(m,d,h){const M=bi(m,d._root,h?h._root:void 0);return new qn(M,d)}(this.routeReuseStrategy,Fe.targetSnapshot,Fe.currentRouterState);return Object.assign(Object.assign({},Fe),{targetRouterState:ft})}),(0,qe.b)(Fe=>{this.currentUrlTree=Fe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Fe.urlAfterRedirects,Fe.rawUrl),this.routerState=Fe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Fe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Fe),this.browserUrlTree=Fe.urlAfterRedirects)}),((m,d,h)=>(0,ke.U)(M=>(new qo(d,M.targetRouterState,M.currentRouterState,h).activate(m),M)))(this.rootContexts,this.routeReuseStrategy,Fe=>this.triggerEvent(Fe)),(0,qe.b)({next(){G=!0},complete(){G=!0}}),(0,ot.x)(()=>{var Fe;G||de||this.cancelNavigationTransition(S,`Navigation ID ${S.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Fe=this.currentNavigation)||void 0===Fe?void 0:Fe.id)===S.id&&(this.currentNavigation=null)}),(0,Se.K)(Fe=>{if(de=!0,function Ze(m){return m&&m[ge]}(Fe)){const ft=Di(Fe.url);ft||(this.navigated=!0,this.restoreHistory(S,!0));const Ht=new Wt(S.id,this.serializeUrl(S.extractedUrl),Fe.message);M.next(Ht),ft?setTimeout(()=>{const wn=this.urlHandlingStrategy.merge(Fe.url,this.rawUrlTree),nn={skipLocationChange:S.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gr(S.source)};this.scheduleNavigation(wn,"imperative",null,nn,{resolve:S.resolve,reject:S.reject,promise:S.promise})},0):S.resolve(!1)}else{this.restoreHistory(S,!0);const ft=new sn(S.id,this.serializeUrl(S.extractedUrl),Fe);M.next(ft);try{S.resolve(this.errorHandler(Fe))}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 G={replaceUrl:!0},de=(null===(S=h.state)||void 0===S?void 0:S.navigationId)?h.state:null;if(de){const ft=Object.assign({},de);delete ft.navigationId,delete ft.\u0275routerPageId,0!==Object.keys(ft).length&&(G.state=ft)}const Fe=this.parseUrl(h.url);this.scheduleNavigation(Fe,M,de,G)},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:G,fragment:de,queryParamsHandling:Fe,preserveFragment:ft}=M,Ht=S||this.routerState.root,wn=ft?this.currentUrlTree.fragment:de;let nn=null;switch(Fe){case"merge":nn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),G);break;case"preserve":nn=this.currentUrlTree.queryParams;break;default:nn=G||null}return null!==nn&&(nn=this.removeEmptyProps(nn)),function vi(m,d,h,M,S){if(0===h.length)return ko(d.root,d.root,d,M,S);const G=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,G,de)=>{if("object"==typeof G&&null!=G){if(G.outlets){const Fe={};return L(G.outlets,(ft,Ht)=>{Fe[Ht]="string"==typeof ft?ft.split("/"):ft}),[...S,{outlets:Fe}]}if(G.segmentPath)return[...S,G.segmentPath]}return"string"!=typeof G?[...S,G]:0===de?(G.split("/").forEach((Fe,ft)=>{0==ft&&"."===Fe||(0==ft&&""===Fe?h=!0:".."===Fe?d++:""!=Fe&&S.push(Fe))}),S):[...S,G]},[]);return new vo(h,d,M)}(h);if(G.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 G=h.snapshot._urlSegment;return new Wi(G,G===d.root,0)}const M=ui(m.commands[0])?0:1;return function _o(m,d,h){let M=m,S=d,G=h;for(;G>S;){if(G-=S,M=M.parent,!M)throw new Error("Invalid number of '../'");S=M.segments.length}return new Wi(M,!1,S-G)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+M,m.numberOfDoubleDots)}(G,d,m),Fe=de.processChildren?Co(de.segmentGroup,de.index,G.commands):Ii(de.segmentGroup,de.index,G.commands);return ko(de.segmentGroup,Fe,d,M,S)}(Ht,this.currentUrlTree,h,nn,null!=wn?wn:null)}navigateByUrl(h,M={skipLocationChange:!1}){const S=Di(h)?h:this.parseUrl(h),G=this.urlHandlingStrategy.merge(S,this.rawUrlTree);return this.scheduleNavigation(G,"imperative",null,M)}navigate(h,M={skipLocationChange:!1}){return function Fs(m){for(let d=0;d{const G=h[S];return null!=G&&(M[S]=G),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,G,de){var Fe,ft,Ht;if(this.disposed)return Promise.resolve(!1);const wn=this.transitions.value,nn=gr(M)&&wn&&!gr(wn.source),Ln=wn.rawUrl.toString()===h.toString(),Nn=wn.id===(null===(Fe=this.currentNavigation)||void 0===Fe?void 0:Fe.id);if(nn&&Ln&&Nn)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:G.replaceUrl||G.skipLocationChange?null!==(ft=this.browserPageId)&&void 0!==ft?ft: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:G,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),G=Object.assign(Object.assign({},M.extras.state),this.generateNgRouterState(M.id,M.targetPageId));this.location.isCurrentPathEqualTo(S)||M.extras.replaceUrl?this.location.replaceState(S,"",G):this.location.go(S,"",G)}restoreHistory(h,M=!1){var S,G;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===(G=this.currentNavigation)||void 0===G?void 0:G.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 Wt(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,G,de){this.router=h,this.route=M,this.tabIndexAttribute=S,this.renderer=G,this.el=de,this.commands=null,this.onChanges=new _e.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 _e.xQ,this.subscription=h.events.subscribe(G=>{G 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,G,de){if(0!==h||M||S||G||de||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Fe={skipLocationChange:ar(this.skipLocationChange),replaceUrl:ar(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Fe),!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(st.S$))},m.\u0275dir=a.lG2({type:m,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,M){1&h&&a.NdJ("click",function(G){return M.onClick(G.button,G.ctrlKey,G.shiftKey,G.altKey,G.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,Se.K)(()=>(0,J.of)(null)))}}class Vs{preload(d,h){return(0,J.of)(null)}}let wa=(()=>{class m{constructor(h,M,S,G){this.router=h,this.injector=S,this.preloadingStrategy=G,this.loader=new Ji(S,M,ft=>h.triggerEvent(new Dt(ft)),ft=>h.triggerEvent(new Sn(ft)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,$e.h)(h=>h instanceof Et),(0,le.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 G of M)if(G.loadChildren&&!G.canLoad&&G._loadedConfig){const de=G._loadedConfig;S.push(this.processRoutes(de.module,de.routes))}else G.loadChildren&&!G.canLoad?S.push(this.preloadConfig(h,G)):G.children&&S.push(this.processRoutes(h,G.children));return(0,ne.D)(S).pipe((0,yt.J)(),(0,ke.U)(G=>{}))}preloadConfig(h,M){return this.preloadingStrategy.preload(M,()=>(M._loadedConfig?(0,J.of)(M._loadedConfig):this.loader.load(h.injector,M)).pipe((0,ce.zg)(G=>(M._loadedConfig=G,this.processRoutes(G.module,G.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 tt?(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=[st.Ye,{provide:ht,useClass:Vt},{provide:ci,useFactory:function Tr(m,d,h,M,S,G,de={},Fe,ft){const Ht=new ci(null,m,d,h,M,S,nt(G));return Fe&&(Ht.urlHandlingStrategy=Fe),ft&&(Ht.routeReuseStrategy=ft),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 nn,Ln;null===(nn=console.group)||void 0===nn||nn.call(console,`Router Event: ${wn.constructor.name}`),console.log(wn.toString()),console.log(wn),null===(Ln=console.groupEnd)||void 0===Ln||Ln.call(console)}),Ht},deps:[ht,Ei,st.Ye,a.zs3,a.Sil,pi,Ro,[class Xn{},new a.FiY],[class an{},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:st.S$,useFactory:Da,deps:[st.lw,[new a.tBr(st.mr),new a.FiY],Ro]},{provide:ns,useFactory:cr,deps:[ci,st.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 st.Do(m,d):new st.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 _e.xQ}appInitializer(){return this.injector.get(st.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let M=null;const S=new Promise(Fe=>M=Fe),G=this.injector.get(ci),de=this.injector.get(Ro);return"disabled"===de.initialNavigation?(G.setUpLocationChangeListener(),M(!0)):"enabled"===de.initialNavigation||"enabledBlocking"===de.initialNavigation?(G.hooks.afterPreactivation=()=>this.initNavigation?(0,J.of)(null):(this.initNavigation=!0,M(!0),this.resultOfPreactivationDone),G.initialNavigation()):M(!0),S})}bootstrapListener(h){const M=this.injector.get(Ro),S=this.injector.get(wa),G=this.injector.get(ns),de=this.injector.get(ci),Fe=this.injector.get(a.z2F);h===Fe.components[0]&&(("enabledNonBlocking"===M.initialNavigation||void 0===M.initialNavigation)&&de.initialNavigation(),S.setUpPreloading(),G.init(),de.resetRootComponentType(Fe.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:(_t,we,p)=>{p.d(we,{V65:()=>sn,ud1:()=>qt,Hkd:()=>Ut,XuQ:()=>On,bBn:()=>Zn,BOg:()=>it,Rfq:()=>Ot,yQU:()=>rn,U2Q:()=>en,UKj:()=>In,BXH:()=>k,OYp:()=>bi,eLU:()=>ai,x0x:()=>Vi,Ej7:()=>Bn,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 sn={name:"bars",theme:"outline",icon:''},qt={name:"calendar",theme:"outline",icon:''},Ut={name:"caret-down",theme:"fill",icon:''},On={name:"caret-down",theme:"outline",icon:''},Zn={name:"caret-up",theme:"fill",icon:''},rn={name:"check-circle",theme:"outline",icon:''},en={name:"check",theme:"outline",icon:''},k={name:"close-circle",theme:"fill",icon:''},it={name:"caret-up",theme:"outline",icon:''},Ot={name:"check-circle",theme:"fill",icon:''},ai={name:"close",theme:"outline",icon:''},In={name:"clock-circle",theme:"outline",icon:''},bi={name:"close-circle",theme:"outline",icon:''},Vi={name:"copy",theme:"outline",icon:''},Bn={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:(_t,we,p)=>{p.d(we,{J_:()=>ne,c8:()=>K,YK:()=>I,LU:()=>R,Rq:()=>_e,mF:()=>ee,$C:()=>$e});var a=p(1777);let s=(()=>{class xe{}return xe.SLOW="0.3s",xe.BASE="0.2s",xe.FAST="0.1s",xe})(),W=(()=>{class xe{}return xe.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",xe.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",xe.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",xe.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",xe.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",xe.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",xe.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",xe.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",xe.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",xe.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",xe.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",xe.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",xe.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",xe.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",xe})();const ne=(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 ${W.EASE_IN_OUT}`)),(0,a.eR)("expanded => hidden",(0,a.jt)(`150ms ${W.EASE_IN_OUT}`)),(0,a.eR)("collapsed => expanded",(0,a.jt)(`150ms ${W.EASE_IN_OUT}`)),(0,a.eR)("hidden => expanded",(0,a.jt)(`150ms ${W.EASE_IN_OUT}`))]),K=((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 ${W.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 ${W.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} ${W.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} ${W.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} ${W.EASE_OUT_QUINT}`,B=`${s.BASE} ${W.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)])]),_e=(0,a.X$)("slideAlertMotion",[(0,a.eR)(":leave",[(0,a.oB)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,a.jt)(`${s.SLOW} ${W.EASE_IN_OUT_CIRC}`,(0,a.oB)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),$e=(0,a.X$)("zoomBigMotion",[(0,a.eR)("void => active",[(0,a.oB)({opacity:0,transform:"scale(0.8)"}),(0,a.jt)(`${s.BASE} ${W.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} ${W.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} ${W.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} ${W.EASE_IN_BACK}`,(0,a.oB)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},8693:(_t,we,p)=>{p.d(we,{o2:()=>W,M8:()=>ne,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 W(J){return-1!==s.indexOf(J)}function ne(J){return-1!==a.indexOf(J)}},9439:(_t,we,p)=>{p.d(we,{jY:()=>K,oS:()=>I});var a=p(5e3),s=p(8929),W=p(2198),ne=p(7604);const J=new a.OlP("nz-config"),_=function(R){return void 0!==R};let K=(()=>{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,W.h)(ee=>ee===B),(0,ne.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(J,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();function I(){return function(H,B,ee){const _e=`$$__zorroConfigDecorator__${B}`;return Object.defineProperty(H,_e,{configurable:!0,writable:!0,enumerable:!1}),{get(){var $e,Ve;const xe=(null==ee?void 0:ee.get)?ee.get.bind(this)():this[_e],Ce=((null===($e=this.propertyAssignCounter)||void 0===$e?void 0:$e[B])||0)>1,gt=null===(Ve=this.nzConfigService.getConfigForComponent(this._nzModuleName))||void 0===Ve?void 0:Ve[B];return Ce&&_(xe)?xe:_(gt)?gt:xe},set($e){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[B]=(this.propertyAssignCounter[B]||0)+1,(null==ee?void 0:ee.set)?ee.set.bind(this)($e):this[_e]=$e},configurable:!0,enumerable:!0}}}},4351:(_t,we,p)=>{p.d(we,{N:()=>a});const a={isTestMode:!1}},6947:(_t,we,p)=>{p.d(we,{Bq:()=>ne,ZK:()=>K});var a=p(5e3),s=p(4351);const W={},ne="[NG-ZORRO]:";const K=(...H)=>function _(H,...B){(s.N.isTestMode||(0,a.X6Q)()&&function J(...H){const B=H.reduce((ee,_e)=>ee+_e.toString(),"");return!W[B]&&(W[B]=!0,!0)}(...B))&&H(...B)}((...B)=>console.warn(ne,...B),...H)},4832:(_t,we,p)=>{p.d(we,{P:()=>I,g:()=>R});var a=p(9808),s=p(5e3),W=p(655),ne=p(3191),J=p(6360),_=p(1721);const K="nz-animate-disabled";let I=(()=>{class H{constructor(ee,_e,$e){this.element=ee,this.renderer=_e,this.animationType=$e,this.nzNoAnimation=!1}ngOnChanges(){this.updateClass()}ngAfterViewInit(){this.updateClass()}updateClass(){const ee=(0,ne.fI)(this.element);!ee||(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(ee,K):this.renderer.removeClass(ee,K))}}return H.\u0275fac=function(ee){return new(ee||H)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(J.Qb,8))},H.\u0275dir=s.lG2({type:H,selectors:[["","nzNoAnimation",""]],inputs:{nzNoAnimation:"nzNoAnimation"},exportAs:["nzNoAnimation"],features:[s.TTD]}),(0,W.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:(_t,we,p)=>{p.d(we,{T:()=>J,f:()=>W});var a=p(9808),s=p(5e3);let W=(()=>{class _{constructor(I,R){this.viewContainer=I,this.templateRef=R,this.embeddedViewRef=null,this.context=new ne,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 _e=!1;if(H)if(H.firstChange)_e=!0;else{const Ce=H.currentValue instanceof s.Rgc;_e=H.previousValue instanceof s.Rgc||Ce}return R&&(xe=>{const Ce=Object.keys(xe.previousValue||{}),gt=Object.keys(xe.currentValue||{});if(Ce.length===gt.length){for(const pt of gt)if(-1===Ce.indexOf(pt))return!0;return!1}return!0})(R)||_e})()?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 ne{}let J=(()=>{class _{}return _.\u0275fac=function(I){return new(I||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[[a.ez]]}),_})()},6950:(_t,we,p)=>{p.d(we,{Ek:()=>I,hQ:()=>_e,e4:()=>$e,yW:()=>K,d_:()=>ee});var a=p(655),s=p(2845),W=p(5e3),ne=p(7625),J=p(4090),_=p(1721);const K={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=[K.top,K.right,K.bottom,K.left];function ee(Ve){for(const xe in K)if(Ve.connectionPair.originX===K[xe].originX&&Ve.connectionPair.originY===K[xe].originY&&Ve.connectionPair.overlayX===K[xe].overlayX&&Ve.connectionPair.overlayY===K[xe].overlayY)return xe}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 _e=(()=>{class Ve{constructor(Ce,gt){this.cdkConnectedOverlay=Ce,this.nzDestroyService=gt,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,ne.R)(this.nzDestroyService)).subscribe(pt=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(pt)})}updateArrowPosition(Ce){const gt=this.getOriginRect(),pt=ee(Ce);let zt=0,ct=0;"topLeft"===pt||"bottomLeft"===pt?zt=gt.width/2-14:"topRight"===pt||"bottomRight"===pt?zt=-(gt.width/2-14):"leftTop"===pt||"rightTop"===pt?ct=gt.height/2-10:("leftBottom"===pt||"rightBottom"===pt)&&(ct=-(gt.height/2-10)),(this.cdkConnectedOverlay.offsetX!==zt||this.cdkConnectedOverlay.offsetY!==ct)&&(this.cdkConnectedOverlay.offsetY=ct,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 Ce=this.getFlexibleConnectedPositionStrategyOrigin();if(Ce instanceof W.SBq)return Ce.nativeElement.getBoundingClientRect();if(Ce instanceof Element)return Ce.getBoundingClientRect();const gt=Ce.width||0,pt=Ce.height||0;return{top:Ce.y,bottom:Ce.y+pt,left:Ce.x,right:Ce.x+gt,height:pt,width:gt}}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(W.Y36(s.pI),W.Y36(J.kn))},Ve.\u0275dir=W.lG2({type:Ve,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:"nzArrowPointAtCenter"},exportAs:["nzConnectedOverlay"],features:[W._Bn([J.kn])]}),(0,a.gn)([(0,_.yF)()],Ve.prototype,"nzArrowPointAtCenter",void 0),Ve})(),$e=(()=>{class Ve{}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)},Ve.\u0275mod=W.oAB({type:Ve}),Ve.\u0275inj=W.cJS({}),Ve})()},4090:(_t,we,p)=>{p.d(we,{G_:()=>pt,r3:()=>ye,kn:()=>Ge,rI:()=>ee,KV:()=>$e,WV:()=>zt,ow:()=>ct});var a=p(5e3),s=p(8929),W=p(7138),ne=p(537),J=p(7625),_=p(4850),K=p(1059),I=p(5778),R=p(4351),H=p(5113);const B=()=>{};let ee=(()=>{class ze{constructor(q,pe){this.ngZone=q,this.rendererFactory2=pe,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,W.e)(16),(0,ne.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 ze.\u0275fac=function(q){return new(q||ze)(a.LFG(a.R0b),a.LFG(a.FYo))},ze.\u0275prov=a.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const _e=new Map;let $e=(()=>{class ze{constructor(){this._singletonRegistry=new Map}get singletonRegistry(){return R.N.isTestMode?_e:this._singletonRegistry}registerSingletonWithKey(q,pe){const ue=this.singletonRegistry.has(q),fe=ue?this.singletonRegistry.get(q):this.withNewTarget(pe);ue||this.singletonRegistry.set(q,fe)}getSingletonWithKey(q){return this.singletonRegistry.has(q)?this.singletonRegistry.get(q).target:null}withNewTarget(q){return{target:q}}}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275prov=a.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();var pt=(()=>{return(ze=pt||(pt={})).xxl="xxl",ze.xl="xl",ze.lg="lg",ze.md="md",ze.sm="sm",ze.xs="xs",pt;var ze})();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)"},ct={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 ye=(()=>{class ze{constructor(q,pe){this.resizeService=q,this.mediaMatcher=pe,this.destroy$=new s.xQ,this.resizeService.subscribe().pipe((0,J.R)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(q,pe){if(pe){const ue=()=>this.matchMedia(q,!0);return this.resizeService.subscribe().pipe((0,_.U)(ue),(0,K.O)(ue()),(0,I.x)((fe,ke)=>fe[0]===ke[0]),(0,_.U)(fe=>fe[1]))}{const ue=()=>this.matchMedia(q);return this.resizeService.subscribe().pipe((0,_.U)(ue),(0,K.O)(ue()),(0,I.x)())}}matchMedia(q,pe){let ue=pt.md;const fe={};return Object.keys(q).map(ke=>{const Oe=ke,We=this.mediaMatcher.matchMedia(zt[Oe]).matches;fe[ke]=We,We&&(ue=Oe)}),pe?[ue,fe]:ue}}return ze.\u0275fac=function(q){return new(q||ze)(a.LFG(ee),a.LFG(H.vx))},ze.\u0275prov=a.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Ge=(()=>{class ze extends s.xQ{ngOnDestroy(){this.next(),this.complete()}}return ze.\u0275fac=function(){let Je;return function(pe){return(Je||(Je=a.n5z(ze)))(pe||ze)}}(),ze.\u0275prov=a.Yz7({token:ze,factory:ze.\u0275fac}),ze})()},1721:(_t,we,p)=>{p.d(we,{yF:()=>gt,Rn:()=>zt,cO:()=>_,pW:()=>ye,ov:()=>P,kK:()=>R,DX:()=>I,ui:()=>Re,tI:()=>fe,D8:()=>x,Sm:()=>le,sw:()=>_e,WX:()=>Ve,YM:()=>Se,He:()=>$e});var a=p(3191),s=p(6947),W=p(8929),ne=p(2986);function _(j,ge){if(!j||!ge||j.length!==ge.length)return!1;const Ne=j.length;for(let Ze=0;Ze$e(ge,j))}function ye(j){if(!j.getClientRects().length)return{top:0,left:0};const ge=j.getBoundingClientRect(),Ne=j.ownerDocument.defaultView;return{top:ge.top+Ne.pageYOffset,left:ge.left+Ne.pageXOffset}}function fe(j){return!!j&&"function"==typeof j.then&&"function"==typeof j.catch}function Re(j){return"number"==typeof j&&isFinite(j)}function Se(j,ge){return Math.round(j*Math.pow(10,ge))/Math.pow(10,ge)}function le(j,ge=0){return j.reduce((Ne,Ze)=>Ne+Ze,ge)}let ln,Mn;"undefined"!=typeof window&&window;const Xe={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function x(j="vertical",ge="ant"){if("undefined"==typeof document||"undefined"==typeof window)return 0;const Ne="vertical"===j;if(Ne&&ln)return ln;if(!Ne&&Mn)return Mn;const Ze=document.createElement("div");Object.keys(Xe).forEach(be=>{Ze.style[be]=Xe[be]}),Ze.className=`${ge}-hide-scrollbar scroll-div-append-to-body`,Ne?Ze.style.overflowY="scroll":Ze.style.overflowX="scroll",document.body.appendChild(Ze);let He=0;return Ne?(He=Ze.offsetWidth-Ze.clientWidth,ln=He):(He=Ze.offsetHeight-Ze.clientHeight,Mn=He),document.body.removeChild(Ze),He}function P(){const j=new W.xQ;return Promise.resolve().then(()=>j.next()),j.pipe((0,ne.q)(1))}},4147:(_t,we,p)=>{p.d(we,{Vz:()=>ce,SQ:()=>We,BL:()=>Ye});var a=p(655),s=p(1159),W=p(2845),ne=p(7429),J=p(9808),_=p(5e3),K=p(8929),I=p(7625),R=p(9439),H=p(1721),B=p(5664),ee=p(226),_e=p(4832),$e=p(969),Ve=p(647);const xe=["drawerTemplate"];function Ce(st,St){if(1&st){const tt=_.EpF();_.TgZ(0,"div",11),_.NdJ("click",function(){return _.CHM(tt),_.oxw(2).maskClick()}),_.qZA()}if(2&st){const tt=_.oxw(2);_.Q6J("ngStyle",tt.nzMaskStyle)}}function gt(st,St){if(1&st&&(_.ynx(0),_._UZ(1,"i",18),_.BQk()),2&st){const tt=St.$implicit;_.xp6(1),_.Q6J("nzType",tt)}}function pt(st,St){if(1&st){const tt=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(tt),_.oxw(3).closeClick()}),_.YNc(1,gt,2,1,"ng-container",17),_.qZA()}if(2&st){const tt=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",tt.nzCloseIcon)}}function zt(st,St){if(1&st&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&st){const tt=_.oxw(4);_.xp6(1),_.Q6J("innerHTML",tt.nzTitle,_.oJD)}}function ct(st,St){if(1&st&&(_.TgZ(0,"div",19),_.YNc(1,zt,2,1,"ng-container",17),_.qZA()),2&st){const tt=_.oxw(3);_.xp6(1),_.Q6J("nzStringTemplateOutlet",tt.nzTitle)}}function ye(st,St){if(1&st&&(_.TgZ(0,"div",12),_.TgZ(1,"div",13),_.YNc(2,pt,2,1,"button",14),_.YNc(3,ct,2,1,"div",15),_.qZA(),_.qZA()),2&st){const tt=_.oxw(2);_.ekj("ant-drawer-header-close-only",!tt.nzTitle),_.xp6(2),_.Q6J("ngIf",tt.nzClosable),_.xp6(1),_.Q6J("ngIf",tt.nzTitle)}}function Ge(st,St){}function et(st,St){1&st&&_.GkF(0)}function ze(st,St){if(1&st&&(_.ynx(0),_.YNc(1,et,1,0,"ng-container",22),_.BQk()),2&st){const tt=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",tt.nzContent)("ngTemplateOutletContext",tt.templateContext)}}function Je(st,St){if(1&st&&(_.ynx(0),_.YNc(1,ze,2,2,"ng-container",21),_.BQk()),2&st){const tt=_.oxw(2);_.xp6(1),_.Q6J("ngIf",tt.isTemplateRef(tt.nzContent))}}function q(st,St){}function pe(st,St){if(1&st&&(_.ynx(0),_.YNc(1,q,0,0,"ng-template",23),_.BQk()),2&st){const tt=_.oxw(3);_.xp6(1),_.Q6J("ngTemplateOutlet",tt.contentFromContentChild)}}function ue(st,St){if(1&st&&_.YNc(0,pe,2,1,"ng-container",21),2&st){const tt=_.oxw(2);_.Q6J("ngIf",tt.contentFromContentChild&&(tt.isOpen||tt.inAnimation))}}function fe(st,St){if(1&st&&(_.ynx(0),_._UZ(1,"div",20),_.BQk()),2&st){const tt=_.oxw(3);_.xp6(1),_.Q6J("innerHTML",tt.nzFooter,_.oJD)}}function ke(st,St){if(1&st&&(_.TgZ(0,"div",24),_.YNc(1,fe,2,1,"ng-container",17),_.qZA()),2&st){const tt=_.oxw(2);_.xp6(1),_.Q6J("nzStringTemplateOutlet",tt.nzFooter)}}function Oe(st,St){if(1&st&&(_.TgZ(0,"div",1),_.YNc(1,Ce,1,1,"div",2),_.TgZ(2,"div"),_.TgZ(3,"div",3),_.TgZ(4,"div",4),_.YNc(5,ye,4,4,"div",5),_.TgZ(6,"div",6),_.YNc(7,Ge,0,0,"ng-template",7),_.YNc(8,Je,2,1,"ng-container",8),_.YNc(9,ue,1,1,"ng-template",null,9,_.W1O),_.qZA(),_.YNc(11,ke,2,1,"div",10),_.qZA(),_.qZA(),_.qZA(),_.qZA()),2&st){const tt=_.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",tt),_.xp6(3),_.Q6J("ngIf",Et.nzFooter)}}let We=(()=>{class st{constructor(tt){this.templateRef=tt}}return st.\u0275fac=function(tt){return new(tt||st)(_.Y36(_.Rgc))},st.\u0275dir=_.lG2({type:st,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]}),st})();class Re{}let ce=(()=>{class st extends Re{constructor(tt,Et,Wt,sn,gn,Yt,hn,_n,Cn,Dt,Sn){super(),this.cdr=tt,this.document=Et,this.nzConfigService=Wt,this.renderer=sn,this.overlay=gn,this.injector=Yt,this.changeDetectorRef=hn,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 K.xQ,this.placementChanging=!1,this.placementChangeTimeoutId=-1,this.isOpen=!1,this.inAnimation=!1,this.templateContext={$implicit:void 0,drawerRef:this},this.nzAfterOpen=new K.xQ,this.nzAfterClose=new K.xQ,this.nzDirection=void 0,this.dir="ltr"}set nzVisible(tt){this.isOpen=tt}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(tt){return tt instanceof _.Rgc}ngOnInit(){var tt;null===(tt=this.directionality.change)||void 0===tt||tt.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(tt){const{nzPlacement:Et,nzVisible:Wt}=tt;Wt&&(tt.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(tt){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(tt),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 tt=_.zs3.create({parent:this.injector,providers:[{provide:Re,useValue:this}]}),Et=new ne.C5(this.nzContent,null,tt),Wt=this.bodyPortalOutlet.attachComponentPortal(Et);this.componentInstance=Wt.instance,Object.assign(Wt.instance,this.nzContentParams),Wt.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new ne.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(tt=>{tt.keyCode===s.hY&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe((0,I.R)(this.destroy$)).subscribe(()=>{this.disposeOverlay()}))}disposeOverlay(){var tt;null===(tt=this.overlayRef)||void 0===tt||tt.dispose(),this.overlayRef=null}getOverlayConfig(){return new W.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 st.\u0275fac=function(tt){return new(tt||st)(_.Y36(_.sBO),_.Y36(J.K0,8),_.Y36(R.jY),_.Y36(_.Qsj),_.Y36(W.aV),_.Y36(_.zs3),_.Y36(_.sBO),_.Y36(B.qV),_.Y36(_.s_b),_.Y36(W.Vs),_.Y36(ee.Is,8))},st.\u0275cmp=_.Xpm({type:st,selectors:[["nz-drawer"]],contentQueries:function(tt,Et,Wt){if(1&tt&&_.Suo(Wt,We,7,_.Rgc),2&tt){let sn;_.iGM(sn=_.CRH())&&(Et.contentFromContentChild=sn.first)}},viewQuery:function(tt,Et){if(1&tt&&(_.Gf(xe,7),_.Gf(ne.Pl,5)),2&tt){let Wt;_.iGM(Wt=_.CRH())&&(Et.drawerTemplate=Wt.first),_.iGM(Wt=_.CRH())&&(Et.bodyPortalOutlet=Wt.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(tt,Et){1&tt&&_.YNc(0,Oe,12,40,"ng-template",null,0,_.W1O)},directives:[_e.P,J.O5,J.PC,$e.f,Ve.Ls,ne.Pl,J.tP],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,H.yF)()],st.prototype,"nzClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],st.prototype,"nzMaskClosable",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],st.prototype,"nzMask",void 0),(0,a.gn)([(0,R.oS)(),(0,H.yF)()],st.prototype,"nzCloseOnNavigation",void 0),(0,a.gn)([(0,H.yF)()],st.prototype,"nzNoAnimation",void 0),(0,a.gn)([(0,H.yF)()],st.prototype,"nzKeyboard",void 0),(0,a.gn)([(0,R.oS)()],st.prototype,"nzDirection",void 0),st})(),qe=(()=>{class st{}return st.\u0275fac=function(tt){return new(tt||st)},st.\u0275mod=_.oAB({type:st}),st.\u0275inj=_.cJS({}),st})(),Ye=(()=>{class st{}return st.\u0275fac=function(tt){return new(tt||st)},st.\u0275mod=_.oAB({type:st}),st.\u0275inj=_.cJS({imports:[[ee.vT,J.ez,W.U8,ne.eL,Ve.PV,$e.T,_e.g,qe]]}),st})()},4170:(_t,we,p)=>{p.d(we,{u7:()=>_,YI:()=>H,wi:()=>I,bF:()=>J});var a=p(5e3),s=p(591),W=p(6947),ne={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"}},J={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"),K=new a.OlP("nz-date-locale");let I=(()=>{class ${constructor(Ie,wt){this._change=new s.X(this._locale),this.setLocale(Ie||J),this.setDateLocale(wt||null)}get localeChange(){return this._change.asObservable()}translate(Ie,wt){let At=this._getObjectPath(this._locale,Ie);return"string"==typeof At?(wt&&Object.keys(wt).forEach(Qt=>At=At.replace(new RegExp(`%${Qt}%`,"g"),wt[Qt])),At):Ie}setLocale(Ie){this._locale&&this._locale.locale===Ie.locale||(this._locale=Ie,this._change.next(Ie))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Ie){this.dateLocale=Ie}getDateLocale(){return this.dateLocale}getLocaleData(Ie,wt){const At=Ie?this._getObjectPath(this._locale,Ie):this._locale;return!At&&!wt&&(0,W.ZK)(`Missing translations for "${Ie}" 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(ne,Ie)||{}}_getObjectPath(Ie,wt){let At=Ie;const Qt=wt.split("."),vn=Qt.length;let Hn=0;for(;At&&Hn{class ${}return $.\u0275fac=function(Ie){return new(Ie||$)},$.\u0275mod=a.oAB({type:$}),$.\u0275inj=a.cJS({}),$})();new a.OlP("date-config")},647:(_t,we,p)=>{p.d(we,{sV:()=>en,Ls:()=>si,PV:()=>qn});var a=p(925),s=p(5e3),W=p(655),ne=p(8929),J=p(5254),_=p(7625),K=p(9808);function I(X,oe){(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===oe?X:Math.min(oe,Math.max(0,parseFloat(X))),k&&(X=parseInt(String(X*oe),10)/100),Math.abs(X-oe)<1e-6?1:X=360===oe?(X<0?X%oe+oe:X%oe)/parseFloat(String(oe)):X%oe/parseFloat(String(oe))}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 _e(X){return X<=1?100*Number(X)+"%":X}function $e(X){return 1===X.length?"0"+X:String(X)}function xe(X,oe,k){X=I(X,255),oe=I(oe,255),k=I(k,255);var Ee=Math.max(X,oe,k),it=Math.min(X,oe,k),Ct=0,Ot=0,Lt=(Ee+it)/2;if(Ee===it)Ot=0,Ct=0;else{var dn=Ee-it;switch(Ot=Lt>.5?dn/(2-Ee-it):dn/(Ee+it),Ee){case X:Ct=(oe-k)/dn+(oe1&&(k-=1),k<1/6?X+6*k*(oe-X):k<.5?oe:k<2/3?X+(oe-X)*(2/3-k)*6:X}function pt(X,oe,k){X=I(X,255),oe=I(oe,255),k=I(k,255);var Ee=Math.max(X,oe,k),it=Math.min(X,oe,k),Ct=0,Ot=Ee,Lt=Ee-it,dn=0===Ee?0:Lt/Ee;if(Ee===it)Ct=0;else{switch(Ee){case X:Ct=(oe-k)/Lt+(oe>16,g:(65280&X)>>8,b:255&X}}(oe)),this.originalInput=oe;var it=function ue(X){var oe={r:0,g:0,b:0},k=1,Ee=null,it=null,Ct=null,Ot=!1,Lt=!1;return"string"==typeof X&&(X=function le(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var oe=!1;if(pe[X])X=pe[X],oe=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var k=Se.rgb.exec(X);return k?{r:k[1],g:k[2],b:k[3]}:(k=Se.rgba.exec(X))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=Se.hsl.exec(X))?{h:k[1],s:k[2],l:k[3]}:(k=Se.hsla.exec(X))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=Se.hsv.exec(X))?{h:k[1],s:k[2],v:k[3]}:(k=Se.hsva.exec(X))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=Se.hex8.exec(X))?{r:Je(k[1]),g:Je(k[2]),b:Je(k[3]),a:ze(k[4]),format:oe?"name":"hex8"}:(k=Se.hex6.exec(X))?{r:Je(k[1]),g:Je(k[2]),b:Je(k[3]),format:oe?"name":"hex"}:(k=Se.hex4.exec(X))?{r:Je(k[1]+k[1]),g:Je(k[2]+k[2]),b:Je(k[3]+k[3]),a:ze(k[4]+k[4]),format:oe?"name":"hex8"}:!!(k=Se.hex3.exec(X))&&{r:Je(k[1]+k[1]),g:Je(k[2]+k[2]),b:Je(k[3]+k[3]),format:oe?"name":"hex"}}(X)),"object"==typeof X&&(ce(X.r)&&ce(X.g)&&ce(X.b)?(oe=function Ve(X,oe,k){return{r:255*I(X,255),g:255*I(oe,255),b:255*I(k,255)}}(X.r,X.g,X.b),Ot=!0,Lt="%"===String(X.r).substr(-1)?"prgb":"rgb"):ce(X.h)&&ce(X.s)&&ce(X.v)?(Ee=_e(X.s),it=_e(X.v),oe=function zt(X,oe,k){X=6*I(X,360),oe=I(oe,100),k=I(k,100);var Ee=Math.floor(X),it=X-Ee,Ct=k*(1-oe),Ot=k*(1-it*oe),Lt=k*(1-(1-it)*oe),dn=Ee%6;return{r:255*[k,Ot,Ct,Ct,Lt,k][dn],g:255*[Lt,k,k,Ot,Ct,Ct][dn],b:255*[Ct,Ct,Lt,k,k,Ot][dn]}}(X.h,Ee,it),Ot=!0,Lt="hsv"):ce(X.h)&&ce(X.s)&&ce(X.l)&&(Ee=_e(X.s),Ct=_e(X.l),oe=function gt(X,oe,k){var Ee,it,Ct;if(X=I(X,360),oe=I(oe,100),k=I(k,100),0===oe)it=k,Ct=k,Ee=k;else{var Ot=k<.5?k*(1+oe):k+oe-k*oe,Lt=2*k-Ot;Ee=Ce(Lt,Ot,X+1/3),it=Ce(Lt,Ot,X),Ct=Ce(Lt,Ot,X-1/3)}return{r:255*Ee,g:255*it,b:255*Ct}}(X.h,Ee,Ct),Ot=!0,Lt="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(k=X.a)),k=ee(k),{ok:Ot,format:X.format||Lt,r:Math.min(255,Math.max(oe.r,0)),g:Math.min(255,Math.max(oe.g,0)),b:Math.min(255,Math.max(oe.b,0)),a:k}}(oe);this.originalInput=oe,this.r=it.r,this.g=it.g,this.b=it.b,this.a=it.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Ee=k.format)&&void 0!==Ee?Ee:it.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=it.ok}return X.prototype.isDark=function(){return this.getBrightness()<128},X.prototype.isLight=function(){return!this.isDark()},X.prototype.getBrightness=function(){var oe=this.toRgb();return(299*oe.r+587*oe.g+114*oe.b)/1e3},X.prototype.getLuminance=function(){var oe=this.toRgb(),Ct=oe.r/255,Ot=oe.g/255,Lt=oe.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*(Lt<=.03928?Lt/12.92:Math.pow((Lt+.055)/1.055,2.4))},X.prototype.getAlpha=function(){return this.a},X.prototype.setAlpha=function(oe){return this.a=ee(oe),this.roundA=Math.round(100*this.a)/100,this},X.prototype.toHsv=function(){var oe=pt(this.r,this.g,this.b);return{h:360*oe.h,s:oe.s,v:oe.v,a:this.a}},X.prototype.toHsvString=function(){var oe=pt(this.r,this.g,this.b),k=Math.round(360*oe.h),Ee=Math.round(100*oe.s),it=Math.round(100*oe.v);return 1===this.a?"hsv("+k+", "+Ee+"%, "+it+"%)":"hsva("+k+", "+Ee+"%, "+it+"%, "+this.roundA+")"},X.prototype.toHsl=function(){var oe=xe(this.r,this.g,this.b);return{h:360*oe.h,s:oe.s,l:oe.l,a:this.a}},X.prototype.toHslString=function(){var oe=xe(this.r,this.g,this.b),k=Math.round(360*oe.h),Ee=Math.round(100*oe.s),it=Math.round(100*oe.l);return 1===this.a?"hsl("+k+", "+Ee+"%, "+it+"%)":"hsla("+k+", "+Ee+"%, "+it+"%, "+this.roundA+")"},X.prototype.toHex=function(oe){return void 0===oe&&(oe=!1),ct(this.r,this.g,this.b,oe)},X.prototype.toHexString=function(oe){return void 0===oe&&(oe=!1),"#"+this.toHex(oe)},X.prototype.toHex8=function(oe){return void 0===oe&&(oe=!1),function ye(X,oe,k,Ee,it){var Ct=[$e(Math.round(X).toString(16)),$e(Math.round(oe).toString(16)),$e(Math.round(k).toString(16)),$e(et(Ee))];return it&&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,oe)},X.prototype.toHex8String=function(oe){return void 0===oe&&(oe=!1),"#"+this.toHex8(oe)},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 oe=Math.round(this.r),k=Math.round(this.g),Ee=Math.round(this.b);return 1===this.a?"rgb("+oe+", "+k+", "+Ee+")":"rgba("+oe+", "+k+", "+Ee+", "+this.roundA+")"},X.prototype.toPercentageRgb=function(){var oe=function(k){return Math.round(100*I(k,255))+"%"};return{r:oe(this.r),g:oe(this.g),b:oe(this.b),a:this.a}},X.prototype.toPercentageRgbString=function(){var oe=function(k){return Math.round(100*I(k,255))};return 1===this.a?"rgb("+oe(this.r)+"%, "+oe(this.g)+"%, "+oe(this.b)+"%)":"rgba("+oe(this.r)+"%, "+oe(this.g)+"%, "+oe(this.b)+"%, "+this.roundA+")"},X.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var oe="#"+ct(this.r,this.g,this.b,!1),k=0,Ee=Object.entries(pe);k=0&&(oe.startsWith("hex")||"name"===oe)?"name"===oe&&0===this.a?this.toName():this.toRgbString():("rgb"===oe&&(Ee=this.toRgbString()),"prgb"===oe&&(Ee=this.toPercentageRgbString()),("hex"===oe||"hex6"===oe)&&(Ee=this.toHexString()),"hex3"===oe&&(Ee=this.toHexString(!0)),"hex4"===oe&&(Ee=this.toHex8String(!0)),"hex8"===oe&&(Ee=this.toHex8String()),"name"===oe&&(Ee=this.toName()),"hsl"===oe&&(Ee=this.toHslString()),"hsv"===oe&&(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(oe){void 0===oe&&(oe=10);var k=this.toHsl();return k.l+=oe/100,k.l=R(k.l),new X(k)},X.prototype.brighten=function(oe){void 0===oe&&(oe=10);var k=this.toRgb();return k.r=Math.max(0,Math.min(255,k.r-Math.round(-oe/100*255))),k.g=Math.max(0,Math.min(255,k.g-Math.round(-oe/100*255))),k.b=Math.max(0,Math.min(255,k.b-Math.round(-oe/100*255))),new X(k)},X.prototype.darken=function(oe){void 0===oe&&(oe=10);var k=this.toHsl();return k.l-=oe/100,k.l=R(k.l),new X(k)},X.prototype.tint=function(oe){return void 0===oe&&(oe=10),this.mix("white",oe)},X.prototype.shade=function(oe){return void 0===oe&&(oe=10),this.mix("black",oe)},X.prototype.desaturate=function(oe){void 0===oe&&(oe=10);var k=this.toHsl();return k.s-=oe/100,k.s=R(k.s),new X(k)},X.prototype.saturate=function(oe){void 0===oe&&(oe=10);var k=this.toHsl();return k.s+=oe/100,k.s=R(k.s),new X(k)},X.prototype.greyscale=function(){return this.desaturate(100)},X.prototype.spin=function(oe){var k=this.toHsl(),Ee=(k.h+oe)%360;return k.h=Ee<0?360+Ee:Ee,new X(k)},X.prototype.mix=function(oe,k){void 0===k&&(k=50);var Ee=this.toRgb(),it=new X(oe).toRgb(),Ct=k/100;return new X({r:(it.r-Ee.r)*Ct+Ee.r,g:(it.g-Ee.g)*Ct+Ee.g,b:(it.b-Ee.b)*Ct+Ee.b,a:(it.a-Ee.a)*Ct+Ee.a})},X.prototype.analogous=function(oe,k){void 0===oe&&(oe=6),void 0===k&&(k=30);var Ee=this.toHsl(),it=360/k,Ct=[this];for(Ee.h=(Ee.h-(it*oe>>1)+720)%360;--oe;)Ee.h=(Ee.h+it)%360,Ct.push(new X(Ee));return Ct},X.prototype.complement=function(){var oe=this.toHsl();return oe.h=(oe.h+180)%360,new X(oe)},X.prototype.monochromatic=function(oe){void 0===oe&&(oe=6);for(var k=this.toHsv(),Ee=k.h,it=k.s,Ct=k.v,Ot=[],Lt=1/oe;oe--;)Ot.push(new X({h:Ee,s:it,v:Ct})),Ct=(Ct+Lt)%1;return Ot},X.prototype.splitcomplement=function(){var oe=this.toHsl(),k=oe.h;return[this,new X({h:(k+72)%360,s:oe.s,l:oe.l}),new X({h:(k+216)%360,s:oe.s,l:oe.l})]},X.prototype.onBackground=function(oe){var k=this.toRgb(),Ee=new X(oe).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(oe){for(var k=this.toHsl(),Ee=k.h,it=[this],Ct=360/oe,Ot=1;Ot=60&&Math.round(X.h)<=240?k?Math.round(X.h)-2*oe:Math.round(X.h)+2*oe:k?Math.round(X.h)+2*oe:Math.round(X.h)-2*oe)<0?Ee+=360:Ee>=360&&(Ee-=360),Ee}function Yt(X,oe,k){return 0===X.h&&0===X.s?X.s:((Ee=k?X.s-.16*oe:4===oe?X.s+.16:X.s+.05*oe)>1&&(Ee=1),k&&5===oe&&Ee>.1&&(Ee=.1),Ee<.06&&(Ee=.06),Number(Ee.toFixed(2)));var Ee}function hn(X,oe,k){var Ee;return(Ee=k?X.v+.05*oe:X.v-.15*oe)>1&&(Ee=1),Number(Ee.toFixed(2))}function _n(X){for(var oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},k=[],Ee=new qe(X),it=5;it>0;it-=1){var Ct=Ee.toHsv(),Ot=new qe({h:gn(Ct,it,!0),s:Yt(Ct,it,!0),v:hn(Ct,it,!0)}).toHexString();k.push(Ot)}k.push(Ee.toHexString());for(var Lt=1;Lt<=4;Lt+=1){var dn=Ee.toHsv(),ti=new qe({h:gn(dn,Lt),s:Yt(dn,Lt),v:hn(dn,Lt)}).toHexString();k.push(ti)}return"dark"===oe.theme?sn.map(function(ai){var In=ai.index,bi=ai.opacity;return new qe(oe.backgroundColor||"#141414").mix(k[In],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),Ue=p(1086),nt=p(6498),ae=p(4850),Be=p(2994),L=p(537),E=p(7221),$=p(8117),he=p(2198),Ie=p(2986),wt=p(2313);const At="[@ant-design/icons-angular]:";function vn(X){(0,s.X6Q)()&&console.warn(`${At} ${X}.`)}function Hn(X){return _n(X)[0]}function kn(X,oe){switch(oe){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 "${oe}" is not a recognized theme!`)}}function je(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 oe=X.split(":");switch(oe.length){case 1:return[X,""];case 2:return[oe[1],oe[0]];default:throw new Error(`${At}The icon type ${X} is not valid!`)}}function Gn(){return new Error(`${At} tag not found.`)}let Zn=(()=>{class X{constructor(k,Ee,it,Ct){this._rendererFactory=k,this._handler=Ee,this._document=it,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 ne.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||Hn(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(kn(Ee.name,Ee.theme),Ee)})}addIconLiteral(k,Ee){const[it,Ct]=ht(k);if(!Ct)throw function Ut(){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 it=je(k)?k:this._svgDefinitions.get(k)||null;return(it?(0,Ue.of)(it):this._loadIconDynamically(k)).pipe((0,ae.U)(Ot=>{if(!Ot)throw function pn(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,Ue.of)(function On(){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[it,Ct]=ht(k),Ot=Ct?{name:k,icon:""}:function De(X){const oe=X.split("-"),k=function Yn(X){return"o"===X?"outline":X}(oe.splice(oe.length-1,1)[0]);return{name:oe.join("-"),theme:k,icon:""}}(it),dn=(Ct?`${this._assetsUrlRoot}assets/${Ct}/${it}`:`${this._assetsUrlRoot}assets/${Ot.theme}/${Ot.name}`)+(this._enableJsonpLoading?".js":".svg"),ti=this.sanitizer.sanitize(s.q3G.URL,dn);if(!ti)throw function ri(X){return new Error(`${At}The url "${X}" is unsafe.`)}(dn);Ee=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(Ot,ti):this._http.get(ti,{responseType:"text"}).pipe((0,ae.U)(In=>Object.assign(Object.assign({},Ot),{icon:In})))).pipe((0,Be.b)(In=>this.addIcon(In)),(0,L.x)(()=>this._inProgressFetches.delete(k)),(0,E.K)(()=>(0,Ue.of)(null)),(0,$.B)()),this._inProgressFetches.set(k,Ee)}return Ee}_loadIconDynamicallyWithJsonp(k,Ee){return new nt.y(it=>{const Ct=this._document.createElement("script"),Ot=setTimeout(()=>{Lt(),it.error(function ni(){return new Error(`${At}Importing timeout error.`)}())},6e3);function Lt(){Ct.parentNode.removeChild(Ct),clearTimeout(Ot)}Ct.src=Ee,this._document.body.appendChild(Ct),this._jsonpIconLoad$.pipe((0,he.h)(dn=>dn.name===k.name&&dn.theme===k.theme),(0,Ie.q)(1)).subscribe(dn=>{it.next(dn),Lt()})})}_loadSVGFromCacheOrCreateNew(k,Ee){let it;const Ct=Ee||this._twoToneColorPalette.primaryColor,Ot=Hn(Ct)||this._twoToneColorPalette.secondaryColor,Lt="twotone"===k.theme?function oi(X,oe,k,Ee){return`${kn(X,oe)}-${k}-${Ee}`}(k.name,k.theme,Ct,Ot):void 0===k.theme?k.name:kn(k.name,k.theme),dn=this._svgRenderedDefinitions.get(Lt);return dn?it=dn.icon:(it=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function Vt(X){return""!==ht(X)[1]}(k.name)?k.icon:function Le(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(Lt,Object.assign(Object.assign({},k),{icon:it}))),function re(X){return X.cloneNode(!0)}(it)}_createSVGElementFromString(k){const Ee=this._document.createElement("div");Ee.innerHTML=k;const it=Ee.querySelector("svg");if(!it)throw Gn;return it}_setSVGAttribute(k){return this._renderer.setAttribute(k,"width","1em"),this._renderer.setAttribute(k,"height","1em"),k}_colorizeSVGIcon(k,Ee,it,Ct){if(Ee){const Ot=k.childNodes,Lt=Ot.length;for(let dn=0;dn{class X{constructor(k,Ee,it){this._iconService=k,this._elementRef=Ee,this._renderer=it}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(it=>{!function Kn(X,oe){return X.type===oe.type&&X.theme===oe.theme&&X.twoToneColor===oe.twoToneColor}(Ee,this._getSelfRenderMeta())?k(null):(this._setSVGElement(it),k(it))})}else this._clearSVGElement(),k(null)})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(k,Ee){if(je(k))return k;{const[it,Ct]=ht(k);return Ct?k:function qt(X){return X.endsWith("-fill")||X.endsWith("-o")||X.endsWith("-twotone")}(it)?(Ee&&vn(`'type' ${it} already gets a theme inside so 'theme' ${Ee} would be ignored`),it):kn(it,Ee||this._iconService.defaultTheme)}}_setSVGElement(k){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,k)}_clearSVGElement(){var k;const Ee=this._elementRef.nativeElement,it=Ee.childNodes;for(let Ot=it.length-1;Ot>=0;Ot--){const Lt=it[Ot];"svg"===(null===(k=Lt.tagName)||void 0===k?void 0:k.toLowerCase())&&this._renderer.removeChild(Ee,Lt)}}}return X.\u0275fac=function(k){return new(k||X)(s.Y36(Zn),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 Te=p(1721),vt=p(6947),se=p(9193),ut=p(9439);const Ft=[se.V65,se.ud1,se.bBn,se.BOg,se.Hkd,se.XuQ,se.Rfq,se.yQU,se.U2Q,se.UKj,se.OYp,se.BXH,se.eLU,se.x0x,se.VWu,se.rMt,se.vEg,se.RIp,se.RU0,se.M8e,se.ssy,se.Z5F,se.iUK,se.LJh,se.NFG,se.UTl,se.nrZ,se.gvV,se.d2H,se.eFY,se.sZJ,se.np6,se.w1L,se.UY$,se.v6v,se.rHg,se.v6v,se.s_U,se.TSL,se.FsU,se.cN2,se.uIz,se.d_$],en=new s.OlP("nz_icons"),Gt=(new s.OlP("nz_icon_default_twotone_color"),"#1890ff");let jn=(()=>{class X extends Zn{constructor(k,Ee,it,Ct,Ot,Lt){super(k,Ct,Ot,Ee),this.nzConfigService=it,this.configUpdated$=new ne.xQ,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.addIcon(...Ft,...Lt||[]),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 it=this._renderer.createElement("script");this._renderer.setAttribute(it,"src",Ee),this._renderer.setAttribute(it,"data-namespace",Ee.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,it),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||Gt;let it=Gt;Ee&&(Ee.startsWith("#")?it=Ee:(0,vt.ZK)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:it}}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(ut.jY),s.LFG(V.jN,8),s.LFG(K.K0,8),s.LFG(en,8))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const Qn=new s.OlP("nz_icons_patch");let Fn=(()=>{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(Qn,2),s.LFG(jn))},X.\u0275prov=s.Yz7({token:X,factory:X.\u0275fac}),X})(),si=(()=>{class X extends Tt{constructor(k,Ee,it,Ct,Ot,Lt){super(Ct,it,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 ne.xQ,Lt&&Lt.doPatch(),this.el=it.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:it,nzSpin:Ct,nzTheme:Ot,nzRotate:Lt}=k;Ee||it||Ct||Ot?this.changeIcon2():Lt?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 it=k[Ee];"svg"===it.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(it)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,J.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(jn),s.Y36(s.Qsj),s.Y36(Fn,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,W.gn)([(0,Te.yF)()],X.prototype,"nzSpin",null),X})(),qn=(()=>{class X{static forRoot(k){return{ngModule:X,providers:[{provide:en,useValue:k}]}}static forChild(k){return{ngModule:X,providers:[Fn,{provide:Qn,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:(_t,we,p)=>{p.d(we,{hl:()=>ln,Cc:()=>Dt,wO:()=>He,YV:()=>Ue,r9:()=>Xe,ip:()=>nt});var a=p(655),s=p(5e3),W=p(8929),ne=p(591),J=p(6787),_=p(6053),K=p(4850),I=p(1709),R=p(2198),H=p(7604),B=p(7138),ee=p(5778),_e=p(7625),$e=p(1059),Ve=p(7545),xe=p(1721),Ce=p(2302),gt=p(226),pt=p(2845),zt=p(6950),ct=p(925),ye=p(4832),Ge=p(9808),et=p(647),ze=p(969),Je=p(8076);const q=["nz-submenu-title",""];function pe(ae,Be){if(1&ae&&s._UZ(0,"i",4),2&ae){const L=s.oxw();s.Q6J("nzType",L.nzIcon)}}function ue(ae,Be){if(1&ae&&(s.ynx(0),s.TgZ(1,"span"),s._uU(2),s.qZA(),s.BQk()),2&ae){const L=s.oxw();s.xp6(2),s.Oqu(L.nzTitle)}}function fe(ae,Be){1&ae&&s._UZ(0,"i",8)}function ke(ae,Be){1&ae&&s._UZ(0,"i",9)}function Oe(ae,Be){if(1&ae&&(s.TgZ(0,"span",5),s.YNc(1,fe,1,0,"i",6),s.YNc(2,ke,1,0,"i",7),s.qZA()),2&ae){const L=s.oxw();s.Q6J("ngSwitch",L.dir),s.xp6(1),s.Q6J("ngSwitchCase","rtl")}}function We(ae,Be){1&ae&&s._UZ(0,"i",10)}const Re=["*"],Se=["nz-submenu-inline-child",""];function le(ae,Be){}const ce=["nz-submenu-none-inline-child",""];function qe(ae,Be){}const Ye=["nz-submenu",""];function ot(ae,Be){1&ae&&s.Hsn(0,0,["*ngIf","!nzTitle"])}function yt(ae,Be){if(1&ae&&s._UZ(0,"div",6),2&ae){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 st(ae,Be){if(1&ae){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&ae){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(ae,Be){if(1&ae){const L=s.EpF();s.YNc(0,st,1,10,"ng-template",7),s.NdJ("positionChange",function($){return s.CHM(L),s.oxw().onPositionChange($)})}if(2&ae){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 tt(ae,Be){1&ae&&s.Hsn(0,1)}const Et=[[["","title",""]],"*"],Wt=["[title]","*"],Dt=new s.OlP("NzIsInDropDownMenuToken"),Sn=new s.OlP("NzMenuServiceLocalToken");let ln=(()=>{class ae{constructor(){this.descendantMenuItemClick$=new W.xQ,this.childMenuItemClick$=new W.xQ,this.theme$=new ne.X("light"),this.mode$=new ne.X("vertical"),this.inlineIndent$=new ne.X(24),this.isChildSubMenuOpen$=new ne.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 ae.\u0275fac=function(L){return new(L||ae)},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),Mn=(()=>{class ae{constructor(L,E,$){this.nzHostSubmenuService=L,this.nzMenuService=E,this.isMenuInsideDropDown=$,this.mode$=this.nzMenuService.mode$.pipe((0,K.U)(At=>"inline"===At?"inline":"vertical"===At||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new ne.X(!1),this.isChildSubMenuOpen$=new ne.X(!1),this.isMouseEnterTitleOrOverlay$=new W.xQ,this.childMenuItemClick$=new W.xQ,this.destroy$=new W.xQ,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const he=this.childMenuItemClick$.pipe((0,I.zg)(()=>this.mode$),(0,R.h)(At=>"inline"!==At||this.isMenuInsideDropDown),(0,H.h)(!1)),Ie=(0,J.T)(this.isMouseEnterTitleOrOverlay$,he);(0,_.aj)([this.isChildSubMenuOpen$,Ie]).pipe((0,K.U)(([At,Qt])=>At||Qt),(0,B.e)(150),(0,ee.x)(),(0,_e.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 ae.\u0275fac=function(L){return new(L||ae)(s.LFG(ae,12),s.LFG(ln),s.LFG(Dt))},ae.\u0275prov=s.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),Xe=(()=>{class ae{constructor(L,E,$,he,Ie,wt,At,Qt){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.isMenuInsideDropDown=he,this.directionality=Ie,this.routerLink=wt,this.routerLinkWithHref=At,this.router=Qt,this.destroy$=new W.xQ,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new W.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,_e.R)(this.destroy$),(0,R.h)(vn=>vn instanceof Ce.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,_e.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,_e.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,_e.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.listOfRouterLinkWithHref.changes.pipe((0,_e.R)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(L){L.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ae.\u0275fac=function(L){return new(L||ae)(s.Y36(ln),s.Y36(s.sBO),s.Y36(Mn,8),s.Y36(Dt),s.Y36(gt.Is,8),s.Y36(Ce.rH,8),s.Y36(Ce.yS,8),s.Y36(Ce.F0,8))},ae.\u0275dir=s.lG2({type:ae,selectors:[["","nz-menu-item",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,Ce.rH,5),s.Suo($,Ce.yS,5)),2&L){let he;s.iGM(he=s.CRH())&&(E.listOfRouterLink=he),s.iGM(he=s.CRH())&&(E.listOfRouterLinkWithHref=he)}},hostVars:20,hostBindings:function(L,E){1&L&&s.NdJ("click",function(he){return E.clickMenuItem(he)}),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,xe.yF)()],ae.prototype,"nzDisabled",void 0),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzSelected",void 0),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzDanger",void 0),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzMatchRouterExact",void 0),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzMatchRouter",void 0),ae})(),x=(()=>{class ae{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 W.xQ}ngOnInit(){var L;this.dir=this.directionality.value,null===(L=this.directionality.change)||void 0===L||L.pipe((0,_e.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 ae.\u0275fac=function(L){return new(L||ae)(s.Y36(s.sBO),s.Y36(gt.Is,8))},ae.\u0275cmp=s.Xpm({type:ae,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:q,ngContentSelectors:Re,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,pe,1,1,"i",0),s.YNc(1,ue,3,1,"ng-container",1),s.Hsn(2),s.YNc(3,Oe,3,2,"span",2),s.YNc(4,We,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:[Ge.O5,et.Ls,ze.f,Ge.RF,Ge.n9,Ge.ED],encapsulation:2,changeDetection:0}),ae})(),z=(()=>{class ae{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 W.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,_e.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$,menuClass:he}=L;(E||$)&&this.calcMotionState(),he&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(Ie=>!!Ie).forEach(Ie=>{this.renderer.removeClass(this.elementRef.nativeElement,Ie)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(Ie=>!!Ie).forEach(Ie=>{this.renderer.addClass(this.elementRef.nativeElement,Ie)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ae.\u0275fac=function(L){return new(L||ae)(s.Y36(s.SBq),s.Y36(s.Qsj),s.Y36(gt.Is,8))},ae.\u0275cmp=s.Xpm({type:ae,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:Se,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&s.YNc(0,le,0,0,"ng-template",0),2&L&&s.Q6J("ngTemplateOutlet",E.templateOutlet)},directives:[Ge.tP],encapsulation:2,data:{animation:[Je.J_]},changeDetection:0}),ae})(),P=(()=>{class ae{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 W.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,_e.R)(this.destroy$)).subscribe(E=>{this.dir=E})}ngOnChanges(L){const{mode:E,nzOpen:$}=L;(E||$)&&this.calcMotionState()}}return ae.\u0275fac=function(L){return new(L||ae)(s.Y36(gt.Is,8))},ae.\u0275cmp=s.Xpm({type:ae,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:ce,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(L,E){1&L&&(s.TgZ(0,"div",0),s.YNc(1,qe,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:[Ge.mk,Ge.tP],encapsulation:2,data:{animation:[Je.$C,Je.mF]},changeDetection:0}),ae})();const me=[zt.yW.rightTop,zt.yW.right,zt.yW.rightBottom,zt.yW.leftTop,zt.yW.left,zt.yW.leftBottom],j=[zt.yW.bottomLeft];let ge=(()=>{class ae{constructor(L,E,$,he,Ie,wt,At){this.nzMenuService=L,this.cdr=E,this.nzSubmenuService=$,this.platform=he,this.isMenuInsideDropDown=Ie,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 W.xQ,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=me,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,_e.R)(this.destroy$)).subscribe(E=>{this.theme=E,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,_e.R)(this.destroy$)).subscribe(E=>{this.mode=E,"horizontal"===E?this.overlayPositions=j:"vertical"===E&&(this.overlayPositions=me),this.cdr.markForCheck()}),(0,_.aj)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,_e.R)(this.destroy$)).subscribe(([E,$])=>{this.inlinePaddingLeft="inline"===E?this.level*$:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,_e.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,_e.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const L=this.listOfNzMenuItemDirective,E=L.changes,$=(0,J.T)(E,...L.map(he=>he.selected$));E.pipe((0,$e.O)(L),(0,Ve.w)(()=>$),(0,$e.O)(!0),(0,K.U)(()=>L.some(he=>he.nzSelected)),(0,_e.R)(this.destroy$)).subscribe(he=>{this.isSelected=he,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 ae.\u0275fac=function(L){return new(L||ae)(s.Y36(ln),s.Y36(s.sBO),s.Y36(Mn),s.Y36(ct.t4),s.Y36(Dt),s.Y36(gt.Is,8),s.Y36(ye.P,9))},ae.\u0275cmp=s.Xpm({type:ae,selectors:[["","nz-submenu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,ae,5),s.Suo($,Xe,5)),2&L){let he;s.iGM(he=s.CRH())&&(E.listOfNzSubMenuComponent=he),s.iGM(he=s.CRH())&&(E.listOfNzMenuItemDirective=he)}},viewQuery:function(L,E){if(1&L&&s.Gf(pt.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:Ye,ngContentSelectors:Wt,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(he){return E.setMouseEnterState(he)})("toggleSubMenu",function(){return E.toggleSubMenu()}),s.YNc(2,ot,1,0,"ng-content",2),s.qZA(),s.YNc(3,yt,1,6,"div",3),s.YNc(4,St,1,5,"ng-template",null,4,s.W1O),s.YNc(6,tt,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,pt.xu,Ge.O5,ye.P,pt.pI],encapsulation:2,changeDetection:0}),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzOpen",void 0),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzDisabled",void 0),ae})();function Ne(ae,Be){return ae||Be}function Ze(ae){return ae||!1}let He=(()=>{class ae{constructor(L,E,$,he){this.nzMenuService=L,this.isMenuInsideDropDown=E,this.cdr=$,this.directionality=he,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 ne.X(this.nzInlineCollapsed),this.mode$=new ne.X(this.nzMode),this.destroy$=new W.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,_e.R)(this.destroy$)).subscribe(([E,$])=>{this.actualMode=E?"vertical":$,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,_e.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,_e.R)(this.destroy$)).subscribe(E=>{this.dir=E,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,_e.R)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(L){const{nzInlineCollapsed:E,nzInlineIndent:$,nzTheme:he,nzMode:Ie}=L;E&&this.inlineCollapsed$.next(this.nzInlineCollapsed),$&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),he&&this.nzMenuService.setTheme(this.nzTheme),Ie&&(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 ae.\u0275fac=function(L){return new(L||ae)(s.Y36(ln),s.Y36(Dt),s.Y36(s.sBO),s.Y36(gt.Is,8))},ae.\u0275dir=s.lG2({type:ae,selectors:[["","nz-menu",""]],contentQueries:function(L,E,$){if(1&L&&(s.Suo($,Xe,5),s.Suo($,ge,5)),2&L){let he;s.iGM(he=s.CRH())&&(E.listOfNzMenuItemDirective=he),s.iGM(he=s.CRH())&&(E.listOfNzSubMenuComponent=he)}},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:ln},{provide:ln,useFactory:Ne,deps:[[new s.tp0,new s.FiY,ln],Sn]},{provide:Dt,useFactory:Ze,deps:[[new s.tp0,new s.FiY,Dt]]}]),s.TTD]}),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzInlineCollapsed",void 0),(0,a.gn)([(0,xe.yF)()],ae.prototype,"nzSelectable",void 0),ae})(),Ue=(()=>{class ae{constructor(L,E){this.elementRef=L,this.renderer=E,this.renderer.addClass(L.nativeElement,"ant-dropdown-menu-item-divider")}}return ae.\u0275fac=function(L){return new(L||ae)(s.Y36(s.SBq),s.Y36(s.Qsj))},ae.\u0275dir=s.lG2({type:ae,selectors:[["","nz-menu-divider",""]],exportAs:["nzMenuDivider"]}),ae})(),nt=(()=>{class ae{}return ae.\u0275fac=function(L){return new(L||ae)},ae.\u0275mod=s.oAB({type:ae}),ae.\u0275inj=s.cJS({imports:[[gt.vT,Ge.ez,ct.ud,pt.U8,et.PV,ye.g,ze.T]]}),ae})()},9727:(_t,we,p)=>{p.d(we,{Ay:()=>Je,Gm:()=>ze,XJ:()=>et,gR:()=>We,dD:()=>Oe});var a=p(7429),s=p(5e3),W=p(8929),ne=p(2198),J=p(2986),_=p(7625),K=p(9439),I=p(1721),R=p(8076),H=p(9808),B=p(647),ee=p(969),_e=p(4090),$e=p(2845),Ve=p(226);function xe(Re,Se){1&Re&&s._UZ(0,"i",10)}function Ce(Re,Se){1&Re&&s._UZ(0,"i",11)}function gt(Re,Se){1&Re&&s._UZ(0,"i",12)}function pt(Re,Se){1&Re&&s._UZ(0,"i",13)}function zt(Re,Se){1&Re&&s._UZ(0,"i",14)}function ct(Re,Se){if(1&Re&&(s.ynx(0),s._UZ(1,"span",15),s.BQk()),2&Re){const le=s.oxw();s.xp6(1),s.Q6J("innerHTML",le.instance.content,s.oJD)}}function ye(Re,Se){if(1&Re){const le=s.EpF();s.TgZ(0,"nz-message",2),s.NdJ("destroyed",function(qe){return s.CHM(le),s.oxw().remove(qe.id,qe.userAction)}),s.qZA()}2&Re&&s.Q6J("instance",Se.$implicit)}let Ge=0;class et{constructor(Se,le,ce){this.nzSingletonService=Se,this.overlay=le,this.injector=ce}remove(Se){this.container&&(Se?this.container.remove(Se):this.container.removeAll())}getInstanceId(){return`${this.componentPrefix}-${Ge++}`}withContainer(Se){let le=this.nzSingletonService.getSingletonWithKey(this.componentPrefix);if(le)return le;const ce=this.overlay.create({hasBackdrop:!1,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global()}),qe=new a.C5(Se,null,this.injector),Ye=ce.attach(qe);return ce.overlayElement.style.zIndex="1010",le||(this.container=le=Ye.instance,this.nzSingletonService.registerSingletonWithKey(this.componentPrefix,le)),le}}let ze=(()=>{class Re{constructor(le,ce){this.cdr=le,this.nzConfigService=ce,this.instances=[],this.destroy$=new W.xQ,this.updateConfig()}ngOnInit(){this.subscribeConfigChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}create(le){const ce=this.onCreate(le);return this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ce],this.readyInstances(),ce}remove(le,ce=!1){this.instances.some((qe,Ye)=>qe.messageId===le&&(this.instances.splice(Ye,1),this.instances=[...this.instances],this.onRemove(qe,ce),this.readyInstances(),!0))}removeAll(){this.instances.forEach(le=>this.onRemove(le,!1)),this.instances=[],this.readyInstances()}onCreate(le){return le.options=this.mergeOptions(le.options),le.onClose=new W.xQ,le}onRemove(le,ce){le.onClose.next(ce),le.onClose.complete()}readyInstances(){this.cdr.detectChanges()}mergeOptions(le){const{nzDuration:ce,nzAnimate:qe,nzPauseOnHover:Ye}=this.config;return Object.assign({nzDuration:ce,nzAnimate:qe,nzPauseOnHover:Ye},le)}}return Re.\u0275fac=function(le){return new(le||Re)(s.Y36(s.sBO),s.Y36(K.jY))},Re.\u0275dir=s.lG2({type:Re}),Re})(),Je=(()=>{class Re{constructor(le){this.cdr=le,this.destroyed=new s.vpe,this.animationStateChanged=new W.xQ,this.userAction=!1,this.eraseTimer=null}ngOnInit(){this.options=this.instance.options,this.options.nzAnimate&&(this.instance.state="enter",this.animationStateChanged.pipe((0,ne.h)(le=>"done"===le.phaseName&&"leave"===le.toState),(0,J.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(le=!1){this.userAction=le,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:le})},200)):this.destroyed.next({id:this.instance.messageId,userAction:le})}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 Re.\u0275fac=function(le){return new(le||Re)(s.Y36(s.sBO))},Re.\u0275dir=s.lG2({type:Re}),Re})(),q=(()=>{class Re extends Je{constructor(le){super(le),this.destroyed=new s.vpe}}return Re.\u0275fac=function(le){return new(le||Re)(s.Y36(s.sBO))},Re.\u0275cmp=s.Xpm({type:Re,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(le,ce){1&le&&(s.TgZ(0,"div",0),s.NdJ("@moveUpMotion.done",function(Ye){return ce.animationStateChanged.next(Ye)})("mouseenter",function(){return ce.onEnter()})("mouseleave",function(){return ce.onLeave()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.ynx(3,3),s.YNc(4,xe,1,0,"i",4),s.YNc(5,Ce,1,0,"i",5),s.YNc(6,gt,1,0,"i",6),s.YNc(7,pt,1,0,"i",7),s.YNc(8,zt,1,0,"i",8),s.BQk(),s.YNc(9,ct,2,1,"ng-container",9),s.qZA(),s.qZA(),s.qZA()),2&le&&(s.Q6J("@moveUpMotion",ce.instance.state),s.xp6(2),s.Q6J("ngClass","ant-message-"+ce.instance.type),s.xp6(1),s.Q6J("ngSwitch",ce.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",ce.instance.content))},directives:[H.mk,H.RF,H.n9,B.Ls,ee.f],encapsulation:2,data:{animation:[R.YK]},changeDetection:0}),Re})();const pe="message",ue={nzAnimate:!0,nzDuration:3e3,nzMaxStack:7,nzPauseOnHover:!0,nzTop:24,nzDirection:"ltr"};let fe=(()=>{class Re extends ze{constructor(le,ce){super(le,ce),this.dir="ltr";const qe=this.nzConfigService.getConfigForComponent(pe);this.dir=(null==qe?void 0:qe.nzDirection)||"ltr"}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(pe).pipe((0,_.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const le=this.nzConfigService.getConfigForComponent(pe);if(le){const{nzDirection:ce}=le;this.dir=ce||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},ue),this.config),this.nzConfigService.getConfigForComponent(pe)),this.top=(0,I.WX)(this.config.nzTop),this.cdr.markForCheck()}}return Re.\u0275fac=function(le){return new(le||Re)(s.Y36(s.sBO),s.Y36(K.jY))},Re.\u0275cmp=s.Xpm({type:Re,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(le,ce){1&le&&(s.TgZ(0,"div",0),s.YNc(1,ye,1,1,"nz-message",1),s.qZA()),2&le&&(s.Udp("top",ce.top),s.ekj("ant-message-rtl","rtl"===ce.dir),s.xp6(1),s.Q6J("ngForOf",ce.instances))},directives:[q,H.sg],encapsulation:2,changeDetection:0}),Re})(),ke=(()=>{class Re{}return Re.\u0275fac=function(le){return new(le||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({}),Re})(),Oe=(()=>{class Re extends et{constructor(le,ce,qe){super(le,ce,qe),this.componentPrefix="message-"}success(le,ce){return this.createInstance({type:"success",content:le},ce)}error(le,ce){return this.createInstance({type:"error",content:le},ce)}info(le,ce){return this.createInstance({type:"info",content:le},ce)}warning(le,ce){return this.createInstance({type:"warning",content:le},ce)}loading(le,ce){return this.createInstance({type:"loading",content:le},ce)}create(le,ce,qe){return this.createInstance({type:le,content:ce},qe)}createInstance(le,ce){return this.container=this.withContainer(fe),this.container.create(Object.assign(Object.assign({},le),{createdAt:new Date,messageId:this.getInstanceId(),options:ce}))}}return Re.\u0275fac=function(le){return new(le||Re)(s.LFG(_e.KV),s.LFG($e.aV),s.LFG(s.zs3))},Re.\u0275prov=s.Yz7({token:Re,factory:Re.\u0275fac,providedIn:ke}),Re})(),We=(()=>{class Re{}return Re.\u0275fac=function(le){return new(le||Re)},Re.\u0275mod=s.oAB({type:Re}),Re.\u0275inj=s.cJS({imports:[[Ve.vT,H.ez,$e.U8,B.PV,ee.T,ke]]}),Re})()},5278:(_t,we,p)=>{p.d(we,{L8:()=>Re,zb:()=>le});var a=p(5e3),s=p(8076),W=p(9727),ne=p(9808),J=p(647),_=p(969),K=p(226),I=p(2845),R=p(8929),H=p(7625),B=p(1721),ee=p(9439),_e=p(4090);function $e(ce,qe){1&ce&&a._UZ(0,"i",16)}function Ve(ce,qe){1&ce&&a._UZ(0,"i",17)}function xe(ce,qe){1&ce&&a._UZ(0,"i",18)}function Ce(ce,qe){1&ce&&a._UZ(0,"i",19)}const gt=function(ce){return{"ant-notification-notice-with-icon":ce}};function pt(ce,qe){if(1&ce&&(a.TgZ(0,"div",7),a.TgZ(1,"div",8),a.TgZ(2,"div"),a.ynx(3,9),a.YNc(4,$e,1,0,"i",10),a.YNc(5,Ve,1,0,"i",11),a.YNc(6,xe,1,0,"i",12),a.YNc(7,Ce,1,0,"i",13),a.BQk(),a._UZ(8,"div",14),a._UZ(9,"div",15),a.qZA(),a.qZA(),a.qZA()),2&ce){const Ye=a.oxw();a.xp6(1),a.Q6J("ngClass",a.VKq(10,gt,"blank"!==Ye.instance.type)),a.xp6(1),a.ekj("ant-notification-notice-with-icon","blank"!==Ye.instance.type),a.xp6(1),a.Q6J("ngSwitch",Ye.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",Ye.instance.title,a.oJD),a.xp6(1),a.Q6J("innerHTML",Ye.instance.content,a.oJD)}}function zt(ce,qe){}function ct(ce,qe){if(1&ce&&(a.ynx(0),a._UZ(1,"i",21),a.BQk()),2&ce){const Ye=qe.$implicit;a.xp6(1),a.Q6J("nzType",Ye)}}function ye(ce,qe){if(1&ce&&(a.ynx(0),a.YNc(1,ct,2,1,"ng-container",20),a.BQk()),2&ce){const Ye=a.oxw();a.xp6(1),a.Q6J("nzStringTemplateOutlet",null==Ye.instance.options?null:Ye.instance.options.nzCloseIcon)}}function Ge(ce,qe){1&ce&&a._UZ(0,"i",22)}const et=function(ce,qe){return{$implicit:ce,data:qe}};function ze(ce,qe){if(1&ce){const Ye=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(yt){return a.CHM(Ye),a.oxw().remove(yt.id,yt.userAction)}),a.qZA()}if(2&ce){const Ye=qe.$implicit,ot=a.oxw();a.Q6J("instance",Ye)("placement",ot.config.nzPlacement)}}function Je(ce,qe){if(1&ce){const Ye=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(yt){return a.CHM(Ye),a.oxw().remove(yt.id,yt.userAction)}),a.qZA()}if(2&ce){const Ye=qe.$implicit,ot=a.oxw();a.Q6J("instance",Ye)("placement",ot.config.nzPlacement)}}function q(ce,qe){if(1&ce){const Ye=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(yt){return a.CHM(Ye),a.oxw().remove(yt.id,yt.userAction)}),a.qZA()}if(2&ce){const Ye=qe.$implicit,ot=a.oxw();a.Q6J("instance",Ye)("placement",ot.config.nzPlacement)}}function pe(ce,qe){if(1&ce){const Ye=a.EpF();a.TgZ(0,"nz-notification",5),a.NdJ("destroyed",function(yt){return a.CHM(Ye),a.oxw().remove(yt.id,yt.userAction)}),a.qZA()}if(2&ce){const Ye=qe.$implicit,ot=a.oxw();a.Q6J("instance",Ye)("placement",ot.config.nzPlacement)}}let ue=(()=>{class ce extends W.Ay{constructor(Ye){super(Ye),this.destroyed=new a.vpe}ngOnDestroy(){super.ngOnDestroy(),this.instance.onClick.complete()}onClick(Ye){this.instance.onClick.next(Ye)}close(){this.destroy(!0)}get state(){return"enter"===this.instance.state?"topLeft"===this.placement||"bottomLeft"===this.placement?"enterLeft":"enterRight":this.instance.state}}return ce.\u0275fac=function(Ye){return new(Ye||ce)(a.Y36(a.sBO))},ce.\u0275cmp=a.Xpm({type:ce,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(Ye,ot){if(1&Ye&&(a.TgZ(0,"div",0),a.NdJ("@notificationMotion.done",function(st){return ot.animationStateChanged.next(st)})("click",function(st){return ot.onClick(st)})("mouseenter",function(){return ot.onEnter()})("mouseleave",function(){return ot.onLeave()}),a.YNc(1,pt,10,12,"div",1),a.YNc(2,zt,0,0,"ng-template",2),a.TgZ(3,"a",3),a.NdJ("click",function(){return ot.close()}),a.TgZ(4,"span",4),a.YNc(5,ye,2,1,"ng-container",5),a.YNc(6,Ge,1,0,"ng-template",null,6,a.W1O),a.qZA(),a.qZA(),a.qZA()),2&Ye){const yt=a.MAs(7);a.Q6J("ngStyle",(null==ot.instance.options?null:ot.instance.options.nzStyle)||null)("ngClass",(null==ot.instance.options?null:ot.instance.options.nzClass)||"")("@notificationMotion",ot.state),a.xp6(1),a.Q6J("ngIf",!ot.instance.template),a.xp6(1),a.Q6J("ngIf",ot.instance.template)("ngTemplateOutlet",ot.instance.template)("ngTemplateOutletContext",a.WLB(9,et,ot,null==ot.instance.options?null:ot.instance.options.nzData)),a.xp6(3),a.Q6J("ngIf",null==ot.instance.options?null:ot.instance.options.nzCloseIcon)("ngIfElse",yt)}},directives:[ne.PC,ne.mk,ne.O5,ne.RF,ne.n9,J.Ls,ne.tP,_.f],encapsulation:2,data:{animation:[s.LU]}}),ce})();const fe="notification",ke={nzTop:"24px",nzBottom:"24px",nzPlacement:"topRight",nzDuration:4500,nzMaxStack:7,nzPauseOnHover:!0,nzAnimate:!0,nzDirection:"ltr"};let Oe=(()=>{class ce extends W.Gm{constructor(Ye,ot){super(Ye,ot),this.dir="ltr",this.instances=[],this.topLeftInstances=[],this.topRightInstances=[],this.bottomLeftInstances=[],this.bottomRightInstances=[];const yt=this.nzConfigService.getConfigForComponent(fe);this.dir=(null==yt?void 0:yt.nzDirection)||"ltr"}create(Ye){const ot=this.onCreate(Ye),yt=ot.options.nzKey,st=this.instances.find(St=>St.options.nzKey===Ye.options.nzKey);return yt&&st?this.replaceNotification(st,ot):(this.instances.length>=this.config.nzMaxStack&&(this.instances=this.instances.slice(1)),this.instances=[...this.instances,ot]),this.readyInstances(),ot}onCreate(Ye){return Ye.options=this.mergeOptions(Ye.options),Ye.onClose=new R.xQ,Ye.onClick=new R.xQ,Ye}subscribeConfigChange(){this.nzConfigService.getConfigChangeEventForComponent(fe).pipe((0,H.R)(this.destroy$)).subscribe(()=>{this.updateConfig();const Ye=this.nzConfigService.getConfigForComponent(fe);if(Ye){const{nzDirection:ot}=Ye;this.dir=ot||this.dir}})}updateConfig(){this.config=Object.assign(Object.assign(Object.assign({},ke),this.config),this.nzConfigService.getConfigForComponent(fe)),this.top=(0,B.WX)(this.config.nzTop),this.bottom=(0,B.WX)(this.config.nzBottom),this.cdr.markForCheck()}replaceNotification(Ye,ot){Ye.title=ot.title,Ye.content=ot.content,Ye.template=ot.template,Ye.type=ot.type,Ye.options=ot.options}readyInstances(){this.topLeftInstances=this.instances.filter(Ye=>"topLeft"===Ye.options.nzPlacement),this.topRightInstances=this.instances.filter(Ye=>"topRight"===Ye.options.nzPlacement||!Ye.options.nzPlacement),this.bottomLeftInstances=this.instances.filter(Ye=>"bottomLeft"===Ye.options.nzPlacement),this.bottomRightInstances=this.instances.filter(Ye=>"bottomRight"===Ye.options.nzPlacement),this.cdr.detectChanges()}mergeOptions(Ye){const{nzDuration:ot,nzAnimate:yt,nzPauseOnHover:st,nzPlacement:St}=this.config;return Object.assign({nzDuration:ot,nzAnimate:yt,nzPauseOnHover:st,nzPlacement:St},Ye)}}return ce.\u0275fac=function(Ye){return new(Ye||ce)(a.Y36(a.sBO),a.Y36(ee.jY))},ce.\u0275cmp=a.Xpm({type:ce,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(Ye,ot){1&Ye&&(a.TgZ(0,"div",0),a.YNc(1,ze,1,2,"nz-notification",1),a.qZA(),a.TgZ(2,"div",2),a.YNc(3,Je,1,2,"nz-notification",1),a.qZA(),a.TgZ(4,"div",3),a.YNc(5,q,1,2,"nz-notification",1),a.qZA(),a.TgZ(6,"div",4),a.YNc(7,pe,1,2,"nz-notification",1),a.qZA()),2&Ye&&(a.Udp("top",ot.top)("left","0px"),a.ekj("ant-notification-rtl","rtl"===ot.dir),a.xp6(1),a.Q6J("ngForOf",ot.topLeftInstances),a.xp6(1),a.Udp("top",ot.top)("right","0px"),a.ekj("ant-notification-rtl","rtl"===ot.dir),a.xp6(1),a.Q6J("ngForOf",ot.topRightInstances),a.xp6(1),a.Udp("bottom",ot.bottom)("left","0px"),a.ekj("ant-notification-rtl","rtl"===ot.dir),a.xp6(1),a.Q6J("ngForOf",ot.bottomLeftInstances),a.xp6(1),a.Udp("bottom",ot.bottom)("right","0px"),a.ekj("ant-notification-rtl","rtl"===ot.dir),a.xp6(1),a.Q6J("ngForOf",ot.bottomRightInstances))},directives:[ue,ne.sg],encapsulation:2,changeDetection:0}),ce})(),We=(()=>{class ce{}return ce.\u0275fac=function(Ye){return new(Ye||ce)},ce.\u0275mod=a.oAB({type:ce}),ce.\u0275inj=a.cJS({}),ce})(),Re=(()=>{class ce{}return ce.\u0275fac=function(Ye){return new(Ye||ce)},ce.\u0275mod=a.oAB({type:ce}),ce.\u0275inj=a.cJS({imports:[[K.vT,ne.ez,I.U8,J.PV,_.T,We]]}),ce})(),Se=0,le=(()=>{class ce extends W.XJ{constructor(Ye,ot,yt){super(Ye,ot,yt),this.componentPrefix="notification-"}success(Ye,ot,yt){return this.createInstance({type:"success",title:Ye,content:ot},yt)}error(Ye,ot,yt){return this.createInstance({type:"error",title:Ye,content:ot},yt)}info(Ye,ot,yt){return this.createInstance({type:"info",title:Ye,content:ot},yt)}warning(Ye,ot,yt){return this.createInstance({type:"warning",title:Ye,content:ot},yt)}blank(Ye,ot,yt){return this.createInstance({type:"blank",title:Ye,content:ot},yt)}create(Ye,ot,yt,st){return this.createInstance({type:Ye,title:ot,content:yt},st)}template(Ye,ot){return this.createInstance({template:Ye},ot)}generateMessageId(){return`${this.componentPrefix}-${Se++}`}createInstance(Ye,ot){return this.container=this.withContainer(Oe),this.container.create(Object.assign(Object.assign({},Ye),{createdAt:new Date,messageId:this.generateMessageId(),options:ot}))}}return ce.\u0275fac=function(Ye){return new(Ye||ce)(a.LFG(_e.KV),a.LFG(I.aV),a.LFG(a.zs3))},ce.\u0275prov=a.Yz7({token:ce,factory:ce.\u0275fac,providedIn:We}),ce})()},7525:(_t,we,p)=>{p.d(we,{W:()=>q,j:()=>pe});var a=p(655),s=p(5e3),W=p(8929),ne=p(591),J=p(5647),_=p(8723),K=p(1177);class R{constructor(fe){this.durationSelector=fe}call(fe,ke){return ke.subscribe(new H(fe,this.durationSelector))}}class H extends K.Ds{constructor(fe,ke){super(fe),this.durationSelector=ke,this.hasValue=!1}_next(fe){try{const ke=this.durationSelector.call(this,fe);ke&&this._tryNext(fe,ke)}catch(ke){this.destination.error(ke)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(fe,ke){let Oe=this.durationSubscription;this.value=fe,this.hasValue=!0,Oe&&(Oe.unsubscribe(),this.remove(Oe)),Oe=(0,K.ft)(ke,new K.IY(this)),Oe&&!Oe.closed&&this.add(this.durationSubscription=Oe)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const fe=this.value,ke=this.durationSubscription;ke&&(this.durationSubscription=void 0,ke.unsubscribe(),this.remove(ke)),this.value=void 0,this.hasValue=!1,super._next(fe)}}}var B=p(1059),ee=p(5778),_e=p(7545),$e=p(7625),Ve=p(9439),xe=p(1721),Ce=p(226),gt=p(9808),pt=p(7144);function zt(ue,fe){1&ue&&(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 ct(ue,fe){}function ye(ue,fe){if(1&ue&&(s.TgZ(0,"div",8),s._uU(1),s.qZA()),2&ue){const ke=s.oxw(2);s.xp6(1),s.Oqu(ke.nzTip)}}function Ge(ue,fe){if(1&ue&&(s.TgZ(0,"div"),s.TgZ(1,"div",5),s.YNc(2,ct,0,0,"ng-template",6),s.YNc(3,ye,2,1,"div",7),s.qZA(),s.qZA()),2&ue){const ke=s.oxw(),Oe=s.MAs(1);s.xp6(1),s.ekj("ant-spin-rtl","rtl"===ke.dir)("ant-spin-spinning",ke.isLoading)("ant-spin-lg","large"===ke.nzSize)("ant-spin-sm","small"===ke.nzSize)("ant-spin-show-text",ke.nzTip),s.xp6(1),s.Q6J("ngTemplateOutlet",ke.nzIndicator||Oe),s.xp6(1),s.Q6J("ngIf",ke.nzTip)}}function et(ue,fe){if(1&ue&&(s.TgZ(0,"div",9),s.Hsn(1),s.qZA()),2&ue){const ke=s.oxw();s.ekj("ant-spin-blur",ke.isLoading)}}const ze=["*"];let q=(()=>{class ue{constructor(ke,Oe,We){this.nzConfigService=ke,this.cdr=Oe,this.directionality=We,this._nzModuleName="spin",this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new W.xQ,this.spinning$=new ne.X(this.nzSpinning),this.delay$=new J.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var ke;this.delay$.pipe((0,B.O)(this.nzDelay),(0,ee.x)(),(0,_e.w)(We=>0===We?this.spinning$:this.spinning$.pipe(function I(ue){return fe=>fe.lift(new R(ue))}(Re=>(0,_.H)(Re?We:0)))),(0,$e.R)(this.destroy$)).subscribe(We=>{this.isLoading=We,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent("spin").pipe((0,$e.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(ke=this.directionality.change)||void 0===ke||ke.pipe((0,$e.R)(this.destroy$)).subscribe(We=>{this.dir=We,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(ke){const{nzSpinning:Oe,nzDelay:We}=ke;Oe&&this.spinning$.next(this.nzSpinning),We&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return ue.\u0275fac=function(ke){return new(ke||ue)(s.Y36(Ve.jY),s.Y36(s.sBO),s.Y36(Ce.Is,8))},ue.\u0275cmp=s.Xpm({type:ue,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(ke,Oe){2&ke&&s.ekj("ant-spin-nested-loading",!Oe.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[s.TTD],ngContentSelectors:ze,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(ke,Oe){1&ke&&(s.F$t(),s.YNc(0,zt,5,0,"ng-template",null,0,s.W1O),s.YNc(2,Ge,4,12,"div",1),s.YNc(3,et,2,2,"div",2)),2&ke&&(s.xp6(2),s.Q6J("ngIf",Oe.isLoading),s.xp6(1),s.Q6J("ngIf",!Oe.nzSimple))},directives:[gt.O5,gt.tP],encapsulation:2}),(0,a.gn)([(0,Ve.oS)()],ue.prototype,"nzIndicator",void 0),(0,a.gn)([(0,xe.Rn)()],ue.prototype,"nzDelay",void 0),(0,a.gn)([(0,xe.yF)()],ue.prototype,"nzSimple",void 0),(0,a.gn)([(0,xe.yF)()],ue.prototype,"nzSpinning",void 0),ue})(),pe=(()=>{class ue{}return ue.\u0275fac=function(ke){return new(ke||ue)},ue.\u0275mod=s.oAB({type:ue}),ue.\u0275inj=s.cJS({imports:[[Ce.vT,gt.ez,pt.Q8]]}),ue})()},404:(_t,we,p)=>{p.d(we,{cg:()=>et,SY:()=>ye});var a=p(655),s=p(5e3),W=p(8076),ne=p(8693),J=p(1721),_=p(8929),K=p(5778),I=p(7625),R=p(6950),H=p(4832),B=p(9439),ee=p(226),_e=p(2845),$e=p(9808),Ve=p(969);const xe=["overlay"];function Ce(ze,Je){if(1&ze&&(s.ynx(0),s._uU(1),s.BQk()),2&ze){const q=s.oxw(2);s.xp6(1),s.Oqu(q.nzTitle)}}function gt(ze,Je){if(1&ze&&(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,Ce,2,1,"ng-container",7),s.qZA(),s.qZA(),s.qZA()),2&ze){const q=s.oxw();s.ekj("ant-tooltip-rtl","rtl"===q.dir),s.Q6J("ngClass",q._classMap)("ngStyle",q.nzOverlayStyle)("@.disabled",null==q.noAnimation?null:q.noAnimation.nzNoAnimation)("nzNoAnimation",null==q.noAnimation?null:q.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),s.xp6(3),s.Q6J("ngStyle",q._contentStyleMap),s.xp6(1),s.Q6J("ngStyle",q._contentStyleMap),s.xp6(1),s.Q6J("nzStringTemplateOutlet",q.nzTitle)("nzStringTemplateOutletContext",q.nzTitleContext)}}let pt=(()=>{class ze{constructor(q,pe,ue,fe,ke,Oe){this.elementRef=q,this.hostView=pe,this.resolver=ue,this.renderer=fe,this.noAnimation=ke,this.nzConfigService=Oe,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 q=this.placement;return Array.isArray(q)&&q.length>0?q:"string"==typeof q&&q?[q]:["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(q){const{trigger:pe}=q;pe&&!pe.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(q)}ngAfterViewInit(){this.createComponent(),this.registerTriggers()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){var q;null===(q=this.component)||void 0===q||q.show()}hide(){var q;null===(q=this.component)||void 0===q||q.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const q=this.componentRef;this.component=q.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),q.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties(),this.component.nzVisibleChange.pipe((0,K.x)(),(0,I.R)(this.destroy$)).subscribe(pe=>{this.internalVisible=pe,this.visibleChange.emit(pe)})}registerTriggers(){const q=this.elementRef.nativeElement,pe=this.trigger;if(this.removeTriggerListeners(),"hover"===pe){let ue;this.triggerDisposables.push(this.renderer.listen(q,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(q,"mouseleave",()=>{var fe;this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),(null===(fe=this.component)||void 0===fe?void 0:fe.overlay.overlayRef)&&!ue&&(ue=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(ue,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(ue,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===pe?(this.triggerDisposables.push(this.renderer.listen(q,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(q,"focusout",()=>this.hide()))):"click"===pe&&this.triggerDisposables.push(this.renderer.listen(q,"click",ue=>{ue.preventDefault(),this.show()}))}updatePropertiesByChanges(q){this.updatePropertiesByKeys(Object.keys(q))}updatePropertiesByKeys(q){var pe;const ue=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());(q||Object.keys(ue).filter(fe=>!fe.startsWith("directive"))).forEach(fe=>{if(ue[fe]){const[ke,Oe]=ue[fe];this.updateComponentValue(ke,Oe())}}),null===(pe=this.component)||void 0===pe||pe.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(q,pe){void 0!==pe&&(this.component[q]=pe)}delayEnterLeave(q,pe,ue=-1){this.delayTimer?this.clearTogglingTimer():ue>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,pe?this.show():this.hide()},1e3*ue):pe&&q?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(q=>q()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}}return ze.\u0275fac=function(q){return new(q||ze)(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))},ze.\u0275dir=s.lG2({type:ze,features:[s.TTD]}),ze})(),zt=(()=>{class ze{constructor(q,pe,ue){this.cdr=q,this.directionality=pe,this.noAnimation=ue,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(q){const pe=(0,J.sw)(q);this._visible!==pe&&(this._visible=pe,this.nzVisibleChange.next(pe))}get nzVisible(){return this._visible}set nzTrigger(q){this._trigger=q}get nzTrigger(){return this._trigger}set nzPlacement(q){const pe=q.map(ue=>R.yW[ue]);this._positions=[...pe,...R.Ek]}ngOnInit(){var q;null===(q=this.directionality.change)||void 0===q||q.pipe((0,I.R)(this.destroy$)).subscribe(pe=>{this.dir=pe,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(q){this.preferredPlacement=(0,R.d_)(q),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(q){this.origin=q,this.cdr.markForCheck()}onClickOutside(q){!this.origin.nativeElement.contains(q.target)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}}return ze.\u0275fac=function(q){return new(q||ze)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P))},ze.\u0275dir=s.lG2({type:ze,viewQuery:function(q,pe){if(1&q&&s.Gf(xe,5),2&q){let ue;s.iGM(ue=s.CRH())&&(pe.overlay=ue.first)}}}),ze})(),ye=(()=>{class ze extends pt{constructor(q,pe,ue,fe,ke){super(q,pe,ue,fe,ke),this.titleContext=null,this.trigger="hover",this.placement="top",this.visibleChange=new s.vpe,this.componentRef=this.hostView.createComponent(Ge)}getProxyPropertyMap(){return Object.assign(Object.assign({},super.getProxyPropertyMap()),{nzTooltipColor:["nzColor",()=>this.nzTooltipColor],nzTooltipTitleContext:["nzTitleContext",()=>this.titleContext]})}}return ze.\u0275fac=function(q){return new(q||ze)(s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(s._Vd),s.Y36(s.Qsj),s.Y36(H.P,9))},ze.\u0275dir=s.lG2({type:ze,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(q,pe){2&q&&s.ekj("ant-tooltip-open",pe.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,J.yF)()],ze.prototype,"arrowPointAtCenter",void 0),ze})(),Ge=(()=>{class ze extends zt{constructor(q,pe,ue){super(q,pe,ue),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return function ct(ze){return!(ze instanceof s.Rgc||""!==ze&&(0,J.DX)(ze))}(this.nzTitle)}updateStyles(){const q=this.nzColor&&(0,ne.o2)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:q},this._contentStyleMap={backgroundColor:this.nzColor&&!q?this.nzColor:null}}}return ze.\u0275fac=function(q){return new(q||ze)(s.Y36(s.sBO),s.Y36(ee.Is,8),s.Y36(H.P,9))},ze.\u0275cmp=s.Xpm({type:ze,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(q,pe){1&q&&(s.YNc(0,gt,6,11,"ng-template",0,1,s.W1O),s.NdJ("overlayOutsideClick",function(fe){return pe.onClickOutside(fe)})("detach",function(){return pe.hide()})("positionChange",function(fe){return pe.onPositionChange(fe)})),2&q&&s.Q6J("cdkConnectedOverlayOrigin",pe.origin)("cdkConnectedOverlayOpen",pe._visible)("cdkConnectedOverlayPositions",pe._positions)("cdkConnectedOverlayPush",!0)("nzArrowPointAtCenter",pe.nzArrowPointAtCenter)},directives:[_e.pI,R.hQ,$e.mk,$e.PC,H.P,Ve.f],encapsulation:2,data:{animation:[W.$C]},changeDetection:0}),ze})(),et=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=s.oAB({type:ze}),ze.\u0275inj=s.cJS({imports:[[ee.vT,$e.ez,_e.U8,Ve.T,R.e4,H.g]]}),ze})()}},_t=>{_t(_t.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 61a16f1..91402f2 100644 --- a/src/blrec/data/webapp/ngsw.json +++ b/src/blrec/data/webapp/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1642737806856, + "timestamp": 1644635235127, "index": "/index.html", "assetGroups": [ { @@ -11,17 +11,17 @@ "ignoreVary": true }, "urls": [ - "/103.9c8251484169c949.js", + "/103.5b5d2a6e5a8a7479.js", "/146.92e3b29c4c754544.js", - "/622.dd6c6ac77555edc7.js", + "/622.03823b1714105423.js", "/66.97582e026891bf70.js", - "/853.5697121b2e654d67.js", + "/853.84ee7e1d7cff8913.js", "/common.858f777e9296e6f2.js", "/index.html", - "/main.7a4da5a70e652c3f.js", + "/main.5e1124f1a8c47971.js", "/manifest.webmanifest", "/polyfills.4b08448aee19bb22.js", - "/runtime.c48b962c8225f379.js", + "/runtime.0c70df55750c11ae.js", "/styles.1f581691b230dc4d.css" ], "patterns": [] @@ -1633,11 +1633,11 @@ ], "dataGroups": [], "hashTable": { - "/103.9c8251484169c949.js": "b111521f577092144d65506fa72c121543fd4446", + "/103.5b5d2a6e5a8a7479.js": "cc0240f217015b6d4ddcc14f31fcc42e1c1c282a", "/146.92e3b29c4c754544.js": "3824de681dd1f982ea69a065cdf54d7a1e781f4d", - "/622.dd6c6ac77555edc7.js": "5406594e418982532e138bf3c12ccbb1cfb09942", + "/622.03823b1714105423.js": "86c61c37b53c951370ef2a16eb187cda666d7562", "/66.97582e026891bf70.js": "11cfd8acd3399fef42f0cf77d64aafc62c7e6994", - "/853.5697121b2e654d67.js": "beb26b99743f6363c59c477b18be790b1e70d56e", + "/853.84ee7e1d7cff8913.js": "6281853ef474fc543ac39fb47ec4a0a61ca875fa", "/assets/animal/panda.js": "fec2868bb3053dd2da45f96bbcb86d5116ed72b1", "/assets/animal/panda.svg": "bebd302cdc601e0ead3a6d2710acf8753f3d83b1", "/assets/fill/.gitkeep": "da39a3ee5e6b4b0d3255bfef95601890afd80709", @@ -3232,11 +3232,11 @@ "/assets/twotone/warning.js": "fb2d7ea232f3a99bf8f080dbc94c65699232ac01", "/assets/twotone/warning.svg": "8c7a2d3e765a2e7dd58ac674870c6655cecb0068", "/common.858f777e9296e6f2.js": "b68ca68e1e214a2537d96935c23410126cc564dd", - "/index.html": "0ed90c4296321165a7358a99ae67f911cc8b8a0f", - "/main.7a4da5a70e652c3f.js": "6dd73cbf2d5aee6a29559f6357b1075aadd6fb99", - "/manifest.webmanifest": "0c4534b4c868d756691b1b4372cecb2efce47c6d", + "/index.html": "9e332051ad11197ce464047d2a13bc15016a3d70", + "/main.5e1124f1a8c47971.js": "325ed4fbaa0160c18e06bb646431d1fa86f826f1", + "/manifest.webmanifest": "62c1cb8c5ad2af551a956b97013ab55ce77dd586", "/polyfills.4b08448aee19bb22.js": "8e73f2d42cc13ca353cea5c886d930bd6da08d0d", - "/runtime.c48b962c8225f379.js": "ae674dc840fe5aa957d08253f56e21c4b772b93b", + "/runtime.0c70df55750c11ae.js": "8e2f23cde1c56d8859adf4cd948753c1f8736d86", "/styles.1f581691b230dc4d.css": "6f5befbbad57c2b2e80aae855139744b8010d150" }, "navigationUrls": [ diff --git a/src/blrec/data/webapp/runtime.c48b962c8225f379.js b/src/blrec/data/webapp/runtime.0c70df55750c11ae.js similarity index 93% rename from src/blrec/data/webapp/runtime.c48b962c8225f379.js rename to src/blrec/data/webapp/runtime.0c70df55750c11ae.js index 130c5b4..ce2f2e3 100644 --- a/src/blrec/data/webapp/runtime.c48b962c8225f379.js +++ b/src/blrec/data/webapp/runtime.0c70df55750c11ae.js @@ -1 +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,o,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,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:"9c8251484169c949",146:"92e3b29c4c754544",592:"858f777e9296e6f2",622:"dd6c6ac77555edc7",853:"5697121b2e654d67"}[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 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=(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((u,s)=>n=e[o]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var l,d,[n,a,c]=f,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(o&&o(f);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(b=>r.O[b](t[l]))?t.splice(l--,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",622:"03823b1714105423",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 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=(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((u,s)=>n=e[o]=[u,s]);f.push(n[2]=a);var c=r.p+r.u(o),l=new Error;r.l(c,u=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",l.name="ChunkLoadError",l.type=s,l.request=p,n[1](l)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var l,d,[n,a,c]=f,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(o&&o(f);u None: + super().__init__() + recorder.add_listener(self) + + async def on_recording_started(self, recorder: Recorder) -> None: + data = RecordingStartedEventData(recorder.live.room_info) + event_center.submit(RecordingStartedEvent.from_data(data)) + + async def on_recording_finished(self, recorder: Recorder) -> None: + data = RecordingFinishedEventData(recorder.live.room_info) + event_center.submit(RecordingFinishedEvent.from_data(data)) + + async def on_recording_cancelled(self, recorder: Recorder) -> None: + data = RecordingCancelledEventData(recorder.live.room_info) + event_center.submit(RecordingCancelledEvent.from_data(data)) + + async def on_video_file_created( + self, recorder: Recorder, path: str + ) -> None: + data = VideoFileCreatedEventData(recorder.live.room_id, path) + event_center.submit(VideoFileCreatedEvent.from_data(data)) + + async def on_video_file_completed( + self, recorder: Recorder, path: str + ) -> None: + data = VideoFileCompletedEventData(recorder.live.room_id, path) + event_center.submit(VideoFileCompletedEvent.from_data(data)) + + async def on_danmaku_file_created( + self, recorder: Recorder, path: str + ) -> None: + data = DanmakuFileCreatedEventData(recorder.live.room_id, path) + event_center.submit(DanmakuFileCreatedEvent.from_data(data)) + + async def on_danmaku_file_completed( + self, recorder: Recorder, path: str + ) -> None: + data = DanmakuFileCompletedEventData(recorder.live.room_id, path) + event_center.submit(DanmakuFileCompletedEvent.from_data(data)) + + async def on_raw_danmaku_file_created( + self, recorder: Recorder, path: str + ) -> None: + data = RawDanmakuFileCreatedEventData(recorder.live.room_id, path) + event_center.submit(RawDanmakuFileCreatedEvent.from_data(data)) + + async def on_raw_danmaku_file_completed( + self, recorder: Recorder, path: str + ) -> None: + data = RawDanmakuFileCompletedEventData(recorder.live.room_id, path) + event_center.submit(RawDanmakuFileCompletedEvent.from_data(data)) + + +class PostprocessorEventSubmitter(PostprocessorEventListener): + def __init__(self, postprocessor: Postprocessor) -> None: + super().__init__() + postprocessor.add_listener(self) + + async def on_video_postprocessing_completed( + self, postprocessor: Postprocessor, path: str + ) -> None: + data = VideoPostprocessingCompletedEventData( + postprocessor.recorder.live.room_id, path + ) + event_center.submit(VideoPostprocessingCompletedEvent.from_data(data)) + + class SpaceEventSubmitter(SpaceEventListener): def __init__(self, space_monitor: SpaceMonitor) -> None: super().__init__() @@ -62,13 +150,3 @@ class SpaceEventSubmitter(SpaceEventListener): ) -> None: data = SpaceNoEnoughEventData(path, threshold, disk_usage) event_center.submit(SpaceNoEnoughEvent.from_data(data)) - - -class PostprocessorEventSubmitter(PostprocessorEventListener): - def __init__(self, postprocessor: Postprocessor) -> None: - super().__init__() - postprocessor.add_listener(self) - - async def on_file_completed(self, room_id: int, path: str) -> None: - data = FileCompletedEventData(room_id, path) - event_center.submit(FileCompletedEvent.from_data(data)) diff --git a/src/blrec/event/models.py b/src/blrec/event/models.py index 72391cd..d95a404 100644 --- a/src/blrec/event/models.py +++ b/src/blrec/event/models.py @@ -9,6 +9,7 @@ import attr if TYPE_CHECKING: from ..bili.models import UserInfo, RoomInfo from ..disk_space.space_monitor import DiskUsage +from ..exception import format_exception _D = TypeVar('_D', bound='BaseEventData') @@ -80,6 +81,127 @@ class RoomChangeEvent(BaseEvent[RoomChangeEventData]): data: RoomChangeEventData +@attr.s(auto_attribs=True, slots=True, frozen=True) +class RecordingStartedEventData(BaseEventData): + room_info: RoomInfo + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class RecordingStartedEvent(BaseEvent[RecordingStartedEventData]): + type: str = 'RecordingStartedEvent' + data: RecordingStartedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class RecordingFinishedEventData(BaseEventData): + room_info: RoomInfo + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class RecordingFinishedEvent(BaseEvent[RecordingFinishedEventData]): + type: str = 'RecordingFinishedEvent' + data: RecordingFinishedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class RecordingCancelledEventData(BaseEventData): + room_info: RoomInfo + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class RecordingCancelledEvent(BaseEvent[RecordingCancelledEventData]): + type: str = 'RecordingCancelledEvent' + data: RecordingCancelledEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class VideoFileCreatedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class VideoFileCreatedEvent(BaseEvent[VideoFileCreatedEventData]): + type: str = 'VideoFileCreatedEvent' + data: VideoFileCreatedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class VideoFileCompletedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class VideoFileCompletedEvent(BaseEvent[VideoFileCompletedEventData]): + type: str = 'VideoFileCompletedEvent' + data: VideoFileCompletedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class DanmakuFileCreatedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class DanmakuFileCreatedEvent(BaseEvent[DanmakuFileCreatedEventData]): + type: str = 'DanmakuFileCreatedEvent' + data: DanmakuFileCreatedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class DanmakuFileCompletedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class DanmakuFileCompletedEvent(BaseEvent[DanmakuFileCompletedEventData]): + type: str = 'DanmakuFileCompletedEvent' + data: DanmakuFileCompletedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class RawDanmakuFileCreatedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class RawDanmakuFileCreatedEvent(BaseEvent[RawDanmakuFileCreatedEventData]): + type: str = 'RawDanmakuFileCreatedEvent' + data: RawDanmakuFileCreatedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class RawDanmakuFileCompletedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class RawDanmakuFileCompletedEvent( + BaseEvent[RawDanmakuFileCompletedEventData] +): + type: str = 'RawDanmakuFileCompletedEvent' + data: RawDanmakuFileCompletedEventData + + +@attr.s(auto_attribs=True, slots=True, frozen=True) +class VideoPostprocessingCompletedEventData(BaseEventData): + room_id: int + path: str + + +@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) +class VideoPostprocessingCompletedEvent( + BaseEvent[VideoPostprocessingCompletedEventData] +): + type: str = 'VideoPostprocessingCompletedEvent' + data: VideoPostprocessingCompletedEventData + + @attr.s(auto_attribs=True, slots=True, frozen=True) class SpaceNoEnoughEventData(BaseEventData): path: str @@ -93,23 +215,17 @@ class SpaceNoEnoughEvent(BaseEvent[SpaceNoEnoughEventData]): data: SpaceNoEnoughEventData -@attr.s(auto_attribs=True, slots=True, frozen=True) -class FileCompletedEventData(BaseEventData): - room_id: int - path: str - - -@attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) -class FileCompletedEvent(BaseEvent[FileCompletedEventData]): - type: str = 'FileCompletedEvent' - data: FileCompletedEventData - - @attr.s(auto_attribs=True, slots=True, frozen=True) class ErrorData(BaseEventData): name: str detail: str + @classmethod + def from_exc(cls, exc: BaseException) -> ErrorData: + return cls( + name=type(exc).__name__, detail=format_exception(exc), + ) + @attr.s(auto_attribs=True, slots=True, frozen=True, kw_only=True) class Error(BaseEvent[ErrorData]): diff --git a/src/blrec/event/typing.py b/src/blrec/event/typing.py index ae27584..6d4d7e3 100644 --- a/src/blrec/event/typing.py +++ b/src/blrec/event/typing.py @@ -8,10 +8,28 @@ from .models import ( LiveEndedEventData, RoomChangeEvent, RoomChangeEventData, + RecordingStartedEvent, + RecordingStartedEventData, + RecordingFinishedEvent, + RecordingFinishedEventData, + RecordingCancelledEvent, + RecordingCancelledEventData, + VideoFileCreatedEvent, + VideoFileCreatedEventData, + VideoFileCompletedEvent, + VideoFileCompletedEventData, + DanmakuFileCreatedEvent, + DanmakuFileCreatedEventData, + DanmakuFileCompletedEvent, + DanmakuFileCompletedEventData, + RawDanmakuFileCreatedEvent, + RawDanmakuFileCreatedEventData, + RawDanmakuFileCompletedEvent, + RawDanmakuFileCompletedEventData, + VideoPostprocessingCompletedEvent, + VideoPostprocessingCompletedEventData, SpaceNoEnoughEvent, SpaceNoEnoughEventData, - FileCompletedEvent, - FileCompletedEventData, Error, ErrorData, ) @@ -21,8 +39,17 @@ Event = Union[ LiveBeganEvent, LiveEndedEvent, RoomChangeEvent, + RecordingStartedEvent, + RecordingFinishedEvent, + RecordingCancelledEvent, + VideoFileCreatedEvent, + VideoFileCompletedEvent, + DanmakuFileCreatedEvent, + DanmakuFileCompletedEvent, + RawDanmakuFileCreatedEvent, + RawDanmakuFileCompletedEvent, + VideoPostprocessingCompletedEvent, SpaceNoEnoughEvent, - FileCompletedEvent, Error, ] @@ -30,7 +57,16 @@ EventData = Union[ LiveBeganEventData, LiveEndedEventData, RoomChangeEventData, + RecordingStartedEventData, + RecordingFinishedEventData, + RecordingCancelledEventData, + VideoFileCreatedEventData, + VideoFileCompletedEventData, + DanmakuFileCreatedEventData, + DanmakuFileCompletedEventData, + RawDanmakuFileCreatedEventData, + RawDanmakuFileCompletedEventData, + VideoPostprocessingCompletedEventData, SpaceNoEnoughEventData, - FileCompletedEventData, ErrorData, ] diff --git a/src/blrec/exception/exception_handler.py b/src/blrec/exception/exception_handler.py index d14302f..0d07df6 100644 --- a/src/blrec/exception/exception_handler.py +++ b/src/blrec/exception/exception_handler.py @@ -26,5 +26,4 @@ class ExceptionHandler(SwitchableMixin): def _log_exception(self, exc: BaseException) -> None: exc_info = (type(exc), exc, exc.__traceback__) - msg = 'Unhandled Exception' - logger.critical(msg, exc_info=exc_info) + logger.critical(type(exc).__name__, exc_info=exc_info) diff --git a/src/blrec/exception/helpers.py b/src/blrec/exception/helpers.py index ec0cf4b..23e16d6 100644 --- a/src/blrec/exception/helpers.py +++ b/src/blrec/exception/helpers.py @@ -3,6 +3,4 @@ import traceback def format_exception(exc: BaseException) -> str: exc_info = (type(exc), exc, exc.__traceback__) - errmsg = 'Unhandled exception in event loop\n' - errmsg += ''.join(traceback.format_exception(*exc_info)) - return errmsg + return ''.join(traceback.format_exception(*exc_info)) diff --git a/src/blrec/flv/exceptions.py b/src/blrec/flv/exceptions.py index 4f7fb3a..7f3b074 100644 --- a/src/blrec/flv/exceptions.py +++ b/src/blrec/flv/exceptions.py @@ -3,19 +3,19 @@ class FlvDataError(ValueError): ... -class InvalidFlvHeaderError(FlvDataError): +class FlvHeaderError(FlvDataError): ... -class InvalidFlvTagError(FlvDataError): +class FlvTagError(FlvDataError): ... -class FlvStreamCorruptedError(FlvDataError): +class FlvStreamCorruptedError(Exception): ... -class FlvFileCorruptedError(FlvDataError): +class FlvFileCorruptedError(Exception): ... diff --git a/src/blrec/flv/format.py b/src/blrec/flv/format.py index c42df61..d007cfd 100644 --- a/src/blrec/flv/format.py +++ b/src/blrec/flv/format.py @@ -1,15 +1,19 @@ +from io import BytesIO, SEEK_CUR from typing import cast import attr from .struct_io import StructReader, StructWriter from .io_protocols import RandomIO -from .exceptions import InvalidFlvHeaderError, InvalidFlvTagError +from .exceptions import FlvHeaderError, FlvDataError, FlvTagError from .models import ( FlvTag, TagType, FlvHeader, FlvTagHeader, + TAG_HEADER_SIZE, + AUDIO_TAG_HEADER_SIZE, + VIDEO_TAG_HEADER_SIZE, AudioTag, AudioTagHeader, @@ -40,7 +44,7 @@ class FlvParser: def parse_header(self) -> FlvHeader: signature = self._reader.read(3).decode() if signature != 'FLV': - raise InvalidFlvHeaderError(signature) + raise FlvHeaderError(signature) version = self._reader.read_ui8() type_flag = self._reader.read_ui8() data_offset = self._reader.read_ui32() @@ -51,75 +55,98 @@ class FlvParser: def parse_tag(self, *, no_body: bool = False) -> FlvTag: offset = self._stream.tell() - tag_header = self.parse_flv_tag_header() + tag_header_data = self._reader.read(TAG_HEADER_SIZE) + tag_header = self.parse_flv_tag_header(tag_header_data) - tag: FlvTag - arguments = dict(attr.asdict(tag_header), offset=offset) + if tag_header.data_size <= 0: + raise FlvTagError('No tag data', tag_header) if tag_header.tag_type == TagType.AUDIO: - audio_tag_header = self.parse_audio_tag_header() - arguments.update(attr.asdict(audio_tag_header)) - tag = AudioTag(**arguments) + header_data = self._reader.read(AUDIO_TAG_HEADER_SIZE) + body_size = tag_header.data_size - AUDIO_TAG_HEADER_SIZE + if no_body: + self._stream.seek(body_size, SEEK_CUR) + body = None + else: + body = self._reader.read(body_size) + audio_tag_header = self.parse_audio_tag_header(header_data) + return AudioTag( + offset=offset, + **attr.asdict(tag_header), + **attr.asdict(audio_tag_header), + body=body, + ) elif tag_header.tag_type == TagType.VIDEO: - video_tag_header = self.parse_video_tag_header() - arguments.update(attr.asdict(video_tag_header)) - tag = VideoTag(**arguments) + header_data = self._reader.read(VIDEO_TAG_HEADER_SIZE) + body_size = tag_header.data_size - VIDEO_TAG_HEADER_SIZE + if no_body: + self._stream.seek(body_size, SEEK_CUR) + body = None + else: + body = self._reader.read(body_size) + video_tag_header = self.parse_video_tag_header(header_data) + return VideoTag( + offset=offset, + **attr.asdict(tag_header), + **attr.asdict(video_tag_header), + body=body, + ) elif tag_header.tag_type == TagType.SCRIPT: - tag = ScriptTag(**arguments) + body_size = tag_header.data_size + if no_body: + self._stream.seek(body_size, SEEK_CUR) + body = None + else: + body = self._reader.read(body_size) + return ScriptTag( + offset=offset, + **attr.asdict(tag_header), + body=body, + ) else: - raise InvalidFlvTagError(tag_header.tag_type) + raise FlvDataError(f'Unsupported tag type: {tag_header.tag_type}') - if no_body: - self._stream.seek(tag.tag_end_offset) - else: - body = self._reader.read(tag.body_size) - tag = tag.evolve(body=body) - - return tag - - def parse_flv_tag_header(self) -> FlvTagHeader: - flag = self._reader.read_ui8() + def parse_flv_tag_header(self, data: bytes) -> FlvTagHeader: + reader = StructReader(BytesIO(data)) + flag = reader.read_ui8() filtered = bool(flag & 0b0010_0000) if filtered: - raise NotImplementedError('Unsupported Filtered FLV Tag') + raise FlvDataError('Unsupported Filtered FLV Tag', data) tag_type = TagType(flag & 0b0001_1111) - data_size = self._reader.read_ui24() - timestamp = self._reader.read_ui24() - timestamp_extended = self._reader.read_ui8() + data_size = reader.read_ui24() + timestamp = reader.read_ui24() + timestamp_extended = reader.read_ui8() timestamp = timestamp_extended << 24 | timestamp - stream_id = self._reader.read_ui24() - tag_header = FlvTagHeader( + stream_id = reader.read_ui24() + return FlvTagHeader( filtered, tag_type, data_size, timestamp, stream_id ) - if data_size <= 0: - raise InvalidFlvTagError(tag_header) - return tag_header - def parse_audio_tag_header(self) -> AudioTagHeader: - flag = self._reader.read_ui8() + def parse_audio_tag_header(self, data: bytes) -> AudioTagHeader: + reader = StructReader(BytesIO(data)) + flag = reader.read_ui8() sound_format = SoundFormat(flag >> 4) if sound_format != SoundFormat.AAC: - raise NotImplementedError( - f'Unsupported sound format: {sound_format}' + raise FlvDataError( + f'Unsupported sound format: {sound_format}', data ) sound_rate = SoundRate((flag >> 2) & 0b0000_0011) sound_size = SoundSize((flag >> 1) & 0b0000_0001) sound_type = SoundType(flag & 0b0000_0001) - aac_packet_type = AACPacketType(self._reader.read_ui8()) + aac_packet_type = AACPacketType(reader.read_ui8()) return AudioTagHeader( sound_format, sound_rate, sound_size, sound_type, aac_packet_type ) - def parse_video_tag_header(self) -> VideoTagHeader: - flag = self._reader.read_ui8() + def parse_video_tag_header(self, data: bytes) -> VideoTagHeader: + reader = StructReader(BytesIO(data)) + flag = reader.read_ui8() frame_type = FrameType(flag >> 4) codec_id = CodecID(flag & 0b0000_1111) if codec_id != CodecID.AVC: - raise NotImplementedError( - f'Unsupported video codec: {codec_id}' - ) - avc_packet_type = AVCPacketType(self._reader.read_ui8()) - composition_time = self._reader.read_ui24() + raise FlvDataError(f'Unsupported video codec: {codec_id}', data) + avc_packet_type = AVCPacketType(reader.read_ui8()) + composition_time = reader.read_ui24() return VideoTagHeader( frame_type, codec_id, avc_packet_type, composition_time ) @@ -151,7 +178,7 @@ class FlvDumper: elif tag.is_script_tag(): pass else: - raise InvalidFlvTagError(tag.tag_type) + raise FlvDataError(f'Unsupported tag type: {tag.tag_type}') if tag.body is None: self._stream.seek(tag.tag_end_offset) @@ -167,8 +194,8 @@ class FlvDumper: def dump_audio_tag_header(self, tag: AudioTag) -> None: if tag.sound_format != SoundFormat.AAC: - raise NotImplementedError( - f'Unsupported sound format: {tag.sound_format}' + raise FlvDataError( + f'Unsupported sound format: {tag.sound_format}', tag ) self._writer.write_ui8( (tag.sound_format.value << 4) | @@ -180,9 +207,7 @@ class FlvDumper: def dump_video_tag_header(self, tag: VideoTag) -> None: if tag.codec_id != CodecID.AVC: - raise NotImplementedError( - f'Unsupported video codec: {tag.codec_id}' - ) + raise FlvDataError(f'Unsupported video codec: {tag.codec_id}', tag) self._writer.write_ui8( (tag.frame_type.value << 4) | tag.codec_id.value ) diff --git a/src/blrec/flv/models.py b/src/blrec/flv/models.py index 0b2dd43..4ce2454 100644 --- a/src/blrec/flv/models.py +++ b/src/blrec/flv/models.py @@ -137,8 +137,10 @@ class VideoTagHeader: composition_time: Optional[int] -TAG_HEADER_SIZE: Final[int] = 11 BACK_POINTER_SIZE: Final[int] = 4 +TAG_HEADER_SIZE: Final[int] = 11 +AUDIO_TAG_HEADER_SIZE: Final[int] = 2 +VIDEO_TAG_HEADER_SIZE: Final[int] = 5 _T = TypeVar('_T', bound='FlvTag') diff --git a/src/blrec/flv/stream_processor.py b/src/blrec/flv/stream_processor.py index dcba68b..cb82182 100644 --- a/src/blrec/flv/stream_processor.py +++ b/src/blrec/flv/stream_processor.py @@ -22,7 +22,7 @@ from .io import FlvReader, FlvWriter from .io_protocols import RandomIO from .utils import format_offest, format_timestamp from .exceptions import ( - FlvDataError, + FlvTagError, FlvStreamCorruptedError, AudioParametersChanged, VideoParametersChanged, @@ -32,8 +32,8 @@ from .exceptions import ( ) 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_sequence_header ) from ..path import extra_metadata_path @@ -71,6 +71,7 @@ class StreamProcessor: self._data_analyser = DataAnalyser() self._metadata = metadata.copy() if metadata else {} + self._metadata_tag: ScriptTag self._disable_limit = disable_limit self._analyse_data = analyse_data @@ -85,9 +86,9 @@ class StreamProcessor: self._delta: int = 0 self._has_audio: bool = False - self._metadata_tag: ScriptTag self._last_tags: List[FlvTag] = [] self._join_points: List[JoinPoint] = [] + self._resetting_file: bool = False @property def filesize_limit(self) -> int: @@ -162,16 +163,29 @@ class StreamProcessor: def _need_to_finalize(self) -> bool: return self._stream_count > 0 and len(self._last_tags) > 0 - def _new_file(self) -> None: + def _reset_params(self) -> None: + self._delta = 0 + self._has_audio = False + self._last_tags = [] + self._join_points = [] + self._resetting_file = False + self._stream_cutter.reset() if not self._disable_limit: self._limit_checker.reset() + if self._analyse_data: + self._data_analyser.reset() + def _new_file(self) -> None: + self._reset_params() self._out_file = self._file_manager.create_file() - self._out_reader = FlvReader(self._out_file) self._out_writer = FlvWriter(self._out_file) + logger.debug(f'New file: {self._file_manager.curr_path}') - logger.debug(f'new file: {self._file_manager.curr_path}') + def _reset_file(self) -> None: + self._reset_params() + self._out_file.truncate(0) + logger.debug(f'Reset file: {self._file_manager.curr_path}') def _complete_file(self) -> None: curr_path = self._file_manager.curr_path @@ -182,26 +196,7 @@ class StreamProcessor: self._update_metadata_tag() self._file_manager.close_file() - if self._analyse_data: - self._data_analyser.reset() - - logger.debug(f'complete file: {curr_path}') - - def _discard_file(self) -> None: - curr_path = self._file_manager.curr_path - - self._file_manager.close_file() - - if self._analyse_data: - self._data_analyser.reset() - - logger.debug(f'discard file: {curr_path}') - - def _reset(self) -> None: - self._discard_file() - self._last_tags = [] - self._stream_count = 0 - logger.debug('Reset stream processing') + logger.debug(f'Complete file: {curr_path}') def _process_stream(self, stream: RandomIO) -> None: logger.debug(f'Processing the {self._stream_count}th stream...') @@ -227,14 +222,18 @@ class StreamProcessor: def _process_initial_stream( self, flv_header: FlvHeader, first_data_tag: FlvTag ) -> None: - self._new_file() + if self._resetting_file: + self._reset_file() + else: + self._new_file() try: self._write_header(self._ensure_header_correct(flv_header)) self._transfer_meta_tags() self._transfer_first_data_tag(first_data_tag) except Exception: - self._reset() + self._last_tags = [] + self._resetting_file = True raise else: del flv_header, first_data_tag @@ -376,8 +375,6 @@ class StreamProcessor: except EOFError: logger.debug('The input stream exhausted') break - except FlvDataError as e: - raise FlvStreamCorruptedError(repr(e)) except Exception as e: logger.debug(f'Failed to read data, due to: {repr(e)}') raise @@ -493,6 +490,8 @@ class StreamProcessor: return header def _ensure_ts_correct(self, tag: FlvTag) -> None: + if not is_audio_data_tag(tag) or not is_video_data_tag(tag): + return if tag.timestamp + self._delta < 0: self._delta = -tag.timestamp logger.warning('Incorrect timestamp: {}, new delta: {}'.format( @@ -500,9 +499,9 @@ class StreamProcessor: )) def _correct_ts(self, tag: FlvTag, delta: int) -> FlvTag: - if delta == 0: + if delta == 0 and tag.timestamp >= 0: return tag - return tag.evolve(timestamp=tag.timestamp + delta) + return tag.evolve(timestamp=max(0, tag.timestamp + delta)) def _calc_delta_duplicated(self, last_duplicated_tag: FlvTag) -> int: return self._last_tags[0].timestamp - last_duplicated_tag.timestamp @@ -685,7 +684,24 @@ class BaseOutputFileManager(ABC): ... -class FlvReaderWithTimestampFix(FlvReader): +class RobustFlvReader(FlvReader): + def read_tag(self, *, no_body: bool = False) -> FlvTag: + count = 0 + while True: + try: + tag = super().read_tag(no_body=no_body) + except FlvTagError as e: + logger.warning(f'Invalid tag: {repr(e)}') + self._parser.parse_previous_tag_size() + count += 1 + if count > 3: + raise + else: + count = 0 + return tag + + +class FlvReaderWithTimestampFix(RobustFlvReader): def __init__(self, stream: RandomIO) -> None: super().__init__(stream) self._last_tag: Optional[FlvTag] = None diff --git a/src/blrec/postprocess/postprocessor.py b/src/blrec/postprocess/postprocessor.py index 78cccc8..07043c3 100644 --- a/src/blrec/postprocess/postprocessor.py +++ b/src/blrec/postprocess/postprocessor.py @@ -1,3 +1,4 @@ +from __future__ import annotations import asyncio import logging from pathlib import PurePath @@ -35,7 +36,9 @@ logger = logging.getLogger(__name__) class PostprocessorEventListener(EventListener): - async def on_file_completed(self, room_id: int, path: str) -> None: + async def on_video_postprocessing_completed( + self, postprocessor: Postprocessor, path: str + ) -> None: ... @@ -68,6 +71,10 @@ class Postprocessor( self._postprocessing_progress: Optional[Progress] = None self._completed_files: List[str] = [] + @property + def recorder(self) -> Recorder: + return self._recorder + @property def status(self) -> PostprocessorStatus: return self._status @@ -87,10 +94,14 @@ class Postprocessor( # clear completed files of previous recording self._completed_files.clear() - async def on_video_file_completed(self, path: str) -> None: + async def on_video_file_completed( + self, recorder: Recorder, path: str + ) -> None: self._queue.put_nowait(path) - async def on_danmaku_file_completed(self, path: str) -> None: + async def on_danmaku_file_completed( + self, recorder: Recorder, path: str + ) -> None: self._completed_files.append(path) async def _do_start(self) -> None: @@ -143,7 +154,7 @@ class Postprocessor( self._completed_files.append(result_path) await self._emit( - 'file_completed', self._live.room_id, result_path + 'video_postprocessing_completed', self, result_path, ) except Exception as exc: submit_exception(exc) diff --git a/src/blrec/setting/models.py b/src/blrec/setting/models.py index 80dee8d..acb105e 100644 --- a/src/blrec/setting/models.py +++ b/src/blrec/setting/models.py @@ -18,13 +18,10 @@ from pydantic import BaseModel as PydanticBaseModel from pydantic import Field, BaseSettings, validator, PrivateAttr, DirectoryPath from pydantic.networks import HttpUrl, EmailStr -import typer - from ..bili.typing import QualityNumber from ..postprocess import DeleteStrategy from ..logging.typing import LOG_LEVEL from ..utils.string import camel_case -from ..path.helpers import file_exists, create_file logger = logging.getLogger(__name__) @@ -67,22 +64,8 @@ __all__ = ( DEFAULT_SETTINGS_PATH: Final[str] = '~/.blrec/settings.toml' -def settings_file_factory() -> str: - path = os.path.abspath(os.path.expanduser(DEFAULT_SETTINGS_PATH)) - if not file_exists(path): - create_file(path) - typer.secho( - f"Created setting file: '{path}'", - fg=typer.colors.BRIGHT_MAGENTA, - bold=True, - ) - return path - - class EnvSettings(BaseSettings): - settings_file: Annotated[ - str, Field(env='config', default_factory=settings_file_factory) - ] + settings_file: Annotated[str, Field(env='config')] = DEFAULT_SETTINGS_PATH out_dir: Optional[str] = None api_key: Annotated[ Optional[str], @@ -98,7 +81,6 @@ _V = TypeVar('_V') class BaseModel(PydanticBaseModel): class Config: - extra = 'forbid' validate_assignment = True anystr_strip_whitespace = True allow_population_by_field_name = True @@ -133,6 +115,7 @@ class HeaderSettings(HeaderOptions): class DanmakuOptions(BaseModel): danmu_uname: Optional[bool] record_gift_send: Optional[bool] + record_free_gifts: Optional[bool] record_guard_buy: Optional[bool] record_super_chat: Optional[bool] save_raw_danmaku: Optional[bool] @@ -141,6 +124,7 @@ class DanmakuOptions(BaseModel): class DanmakuSettings(DanmakuOptions): danmu_uname: bool = False record_gift_send: bool = True + record_free_gifts: bool = True record_guard_buy: bool = True record_super_chat: bool = True save_raw_danmaku: bool = False @@ -302,13 +286,13 @@ class SpaceSettings(BaseModel): @validator('check_interval') def _validate_interval(cls, value: int) -> int: - allowed_values = frozenset(60 * i for i in (1, 3, 5, 10)) + allowed_values = frozenset((10, 30, *(60 * i for i in (1, 3, 5, 10)))) cls._validate_with_collection(value, allowed_values) return value @validator('space_threshold') def _validate_threshold(cls, value: int) -> int: - allowed_values = frozenset(1024 ** 3 * i for i in (1, 3, 5, 10)) + allowed_values = frozenset(1024 ** 3 * i for i in (1, 3, 5, 10, 20)) cls._validate_with_collection(value, allowed_values) return value @@ -375,8 +359,17 @@ class WebHookEventSettings(BaseModel): live_began: bool = True live_ended: bool = True room_change: bool = True + recording_started: bool = True + recording_finished: bool = True + recording_cancelled: bool = True + video_file_created: bool = True + video_file_completed: bool = True + danmaku_file_created: bool = True + danmaku_file_completed: bool = True + raw_danmaku_file_created: bool = True + raw_danmaku_file_completed: bool = True + video_postprocessing_completed: bool = True space_no_enough: bool = True - file_completed: bool = True error_occurred: bool = True diff --git a/src/blrec/task/models.py b/src/blrec/task/models.py index 066824e..7c8a2ba 100644 --- a/src/blrec/task/models.py +++ b/src/blrec/task/models.py @@ -47,6 +47,7 @@ class TaskParam: # DanmakuSettings danmu_uname: bool record_gift_send: bool + record_free_gifts: bool record_guard_buy: bool record_super_chat: bool save_raw_danmaku: bool diff --git a/src/blrec/task/task.py b/src/blrec/task/task.py index 4878f1b..6e6e5b2 100644 --- a/src/blrec/task/task.py +++ b/src/blrec/task/task.py @@ -22,7 +22,7 @@ from ..postprocess import Postprocessor, PostprocessorStatus, DeleteStrategy from ..postprocess.remuxer import RemuxProgress from ..flv.metadata_injector import InjectProgress from ..event.event_submitters import ( - LiveEventSubmitter, PostprocessorEventSubmitter + LiveEventSubmitter, RecorderEventSubmitter, PostprocessorEventSubmitter ) from ..logging.room_id import aio_task_with_room_id @@ -44,6 +44,7 @@ class RecordTask: 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, @@ -68,6 +69,7 @@ class RecordTask: 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 @@ -239,6 +241,14 @@ class RecordTask: def record_gift_send(self, value: bool) -> None: self._recorder.record_gift_send = value + @property + def record_free_gifts(self) -> bool: + return self._recorder.record_free_gifts + + @record_free_gifts.setter + def record_free_gifts(self, value: bool) -> None: + self._recorder.record_free_gifts = value + @property def record_guard_buy(self) -> bool: return self._recorder.record_guard_buy @@ -442,6 +452,7 @@ class RecordTask: self._setup_live_monitor() self._setup_live_event_submitter() self._setup_recorder() + self._setup_recorder_event_submitter() self._setup_postprocessor() self._setup_postprocessor_event_submitter() @@ -468,6 +479,7 @@ class RecordTask: 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, @@ -476,9 +488,8 @@ class RecordTask: duration_limit=self._duration_limit, ) - def _setup_postprocessor_event_submitter(self) -> None: - self._postprocessor_event_submitter = \ - PostprocessorEventSubmitter(self._postprocessor) + def _setup_recorder_event_submitter(self) -> None: + self._recorder_event_submitter = RecorderEventSubmitter(self._recorder) def _setup_postprocessor(self) -> None: self._postprocessor = Postprocessor( @@ -489,8 +500,14 @@ class RecordTask: delete_source=self._delete_source, ) + def _setup_postprocessor_event_submitter(self) -> None: + self._postprocessor_event_submitter = \ + PostprocessorEventSubmitter(self._postprocessor) + async def _destroy(self) -> None: self._destroy_postprocessor_event_submitter() + self._destroy_postprocessor() + self._destroy_recorder_event_submitter() self._destroy_recorder() self._destroy_live_event_submitter() self._destroy_live_monitor() @@ -508,8 +525,11 @@ class RecordTask: def _destroy_recorder(self) -> None: del self._recorder - def _destroy_postprocessor_event_submitter(self) -> None: - del self._postprocessor_event_submitter + def _destroy_recorder_event_submitter(self) -> None: + del self._recorder_event_submitter def _destroy_postprocessor(self) -> None: del self._postprocessor + + def _destroy_postprocessor_event_submitter(self) -> None: + del self._postprocessor_event_submitter diff --git a/src/blrec/task/task_manager.py b/src/blrec/task/task_manager.py index 5268e5c..0f25f84 100644 --- a/src/blrec/task/task_manager.py +++ b/src/blrec/task/task_manager.py @@ -221,6 +221,7 @@ class RecordTaskManager: task = self._get_task(room_id) task.danmu_uname = settings.danmu_uname task.record_gift_send = settings.record_gift_send + task.record_free_gifts = settings.record_free_gifts task.record_guard_buy = settings.record_guard_buy task.record_super_chat = settings.record_super_chat task.save_raw_danmaku = settings.save_raw_danmaku @@ -259,6 +260,7 @@ class RecordTaskManager: cookie=task.cookie, danmu_uname=task.danmu_uname, record_gift_send=task.record_gift_send, + record_free_gifts=task.record_free_gifts, record_guard_buy=task.record_guard_buy, record_super_chat=task.record_super_chat, save_cover=task.save_cover, diff --git a/src/blrec/web/main.py b/src/blrec/web/main.py index 3cb3a42..be56c14 100644 --- a/src/blrec/web/main.py +++ b/src/blrec/web/main.py @@ -1,16 +1,15 @@ import os import logging -import secrets from typing import Optional, Tuple -from fastapi import FastAPI, status, Request, Depends, Header +from fastapi import FastAPI, status, Request, Depends from fastapi.responses import JSONResponse -from fastapi.exceptions import HTTPException from fastapi.middleware.cors import CORSMiddleware from fastapi.staticfiles import StaticFiles from pydantic import ValidationError from pkg_resources import resource_filename +from . import security from .routers import ( tasks, settings, application, validation, websockets, update ) @@ -18,33 +17,28 @@ from .schemas import ResponseMessage from ..setting import EnvSettings, Settings from ..application import Application from ..exception import NotFoundError, ExistsError, ForbiddenError +from ..path.helpers import file_exists, create_file logger = logging.getLogger(__name__) _env_settings = EnvSettings() +_path = os.path.abspath(os.path.expanduser(_env_settings.settings_file)) +if not file_exists(_path): + create_file(_path) +_env_settings.settings_file = _path + _settings = Settings.load(_env_settings.settings_file) _settings.update_from_env_settings(_env_settings) + app = Application(_settings) if _env_settings.api_key is None: _dependencies = None else: - async def validate_api_key( - x_api_key: Optional[str] = Header(None) - ) -> None: - assert _env_settings.api_key is not None - if ( - x_api_key is None or - not secrets.compare_digest(x_api_key, _env_settings.api_key) - ): - raise HTTPException( - status_code=status.HTTP_401_UNAUTHORIZED, - detail='API key is missing or invalid', - ) - - _dependencies = [Depends(validate_api_key)] + security.api_key = _env_settings.api_key + _dependencies = [Depends(security.authenticate)] api = FastAPI( title='Bilibili live streaming recorder web API', diff --git a/src/blrec/web/routers/websockets.py b/src/blrec/web/routers/websockets.py index 5f31b86..7dcc333 100644 --- a/src/blrec/web/routers/websockets.py +++ b/src/blrec/web/routers/websockets.py @@ -1,12 +1,13 @@ import logging import asyncio +import json from fastapi import ( APIRouter, WebSocket, WebSocketDisconnect, ) -from websockets import ConnectionClosed # type: ignore +from websockets.exceptions import ConnectionClosed from ...event import EventCenter from ...event.typing import Event @@ -33,7 +34,8 @@ async def receive_events(websocket: WebSocket) -> None: async def send_event(event: Event) -> None: try: - await websocket.send_json(event.asdict()) + text = json.dumps(event.asdict(), ensure_ascii=False) + await websocket.send_text(text) except (WebSocketDisconnect, ConnectionClosed) as e: logger.debug(f'Events websocket closed: {repr(e)}') subscription.dispose() diff --git a/src/blrec/web/security.py b/src/blrec/web/security.py new file mode 100644 index 0000000..a284d57 --- /dev/null +++ b/src/blrec/web/security.py @@ -0,0 +1,81 @@ +import logging +import secrets +from typing import Optional, Set, Dict + +from fastapi import status, Request, Header +from fastapi.exceptions import HTTPException + + +logger = logging.getLogger(__name__) + + +api_key = '' + +MAX_WHITELIST = 100 +MAX_BLACKLIST = 100 +MAX_ATTEMPTING_CLIENTS = 100 +MAX_ATTEMPTS = 3 +whitelist: Set[str] = set() +blacklist: Set[str] = set() +attempting_clients: Dict[str, int] = {} + + +async def authenticate( + request: Request, + x_api_key: Optional[str] = Header(None), +) -> None: + assert api_key, 'api_key is required' + + if not x_api_key: + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail='No api key', + ) + + client_ip = request.client.host + assert client_ip, 'client_ip is required' + + if client_ip in blacklist: + raise HTTPException( + status_code=status.HTTP_403_FORBIDDEN, + detail='Blacklisted', + ) + if client_ip not in whitelist: + if ( + len(whitelist) >= MAX_WHITELIST or + len(blacklist) >= MAX_BLACKLIST + ): + raise HTTPException( + status_code=status.HTTP_403_FORBIDDEN, + detail='Max clients allowed in whitelist or blacklist ' + 'will exceeded', + ) + if len(attempting_clients) >= MAX_ATTEMPTING_CLIENTS: + raise HTTPException( + status_code=status.HTTP_403_FORBIDDEN, + detail='Max attempting clients allowed exceeded', + ) + if client_ip not in attempting_clients: + attempting_clients[client_ip] = 1 + else: + attempting_clients[client_ip] += 1 + if attempting_clients[client_ip] > MAX_ATTEMPTS: + del attempting_clients[client_ip] + blacklist.add(client_ip) + raise HTTPException( + status_code=status.HTTP_403_FORBIDDEN, + detail='Max api key attempts exceeded', + ) + + if not secrets.compare_digest(x_api_key, api_key): + if client_ip in whitelist: + whitelist.remove(client_ip) + raise HTTPException( + status_code=status.HTTP_401_UNAUTHORIZED, + detail='API key is invalid', + ) + + if client_ip in attempting_clients: + del attempting_clients[client_ip] + if client_ip not in whitelist: + whitelist.add(client_ip) diff --git a/src/blrec/webhook/models.py b/src/blrec/webhook/models.py index b457cb2..33c05d9 100644 --- a/src/blrec/webhook/models.py +++ b/src/blrec/webhook/models.py @@ -9,8 +9,17 @@ from ..event import ( LiveBeganEvent, LiveEndedEvent, RoomChangeEvent, + RecordingStartedEvent, + RecordingFinishedEvent, + RecordingCancelledEvent, + VideoFileCreatedEvent, + VideoFileCompletedEvent, + DanmakuFileCreatedEvent, + DanmakuFileCompletedEvent, + RawDanmakuFileCreatedEvent, + RawDanmakuFileCompletedEvent, SpaceNoEnoughEvent, - FileCompletedEvent, + VideoPostprocessingCompletedEvent, ) from ..event.typing import Event @@ -37,8 +46,26 @@ class WebHook: types.add(LiveEndedEvent) if settings.room_change: types.add(RoomChangeEvent) - if settings.file_completed: - types.add(FileCompletedEvent) + if settings.recording_started: + types.add(RecordingStartedEvent) + if settings.recording_finished: + types.add(RecordingFinishedEvent) + if settings.recording_cancelled: + types.add(RecordingCancelledEvent) + if settings.video_file_created: + types.add(VideoFileCreatedEvent) + if settings.video_file_completed: + types.add(VideoFileCompletedEvent) + if settings.danmaku_file_created: + types.add(DanmakuFileCreatedEvent) + if settings.danmaku_file_completed: + types.add(DanmakuFileCompletedEvent) + if settings.raw_danmaku_file_created: + types.add(RawDanmakuFileCreatedEvent) + if settings.raw_danmaku_file_completed: + types.add(RawDanmakuFileCompletedEvent) + if settings.video_postprocessing_completed: + types.add(VideoPostprocessingCompletedEvent) if settings.space_no_enough: types.add(SpaceNoEnoughEvent) diff --git a/src/blrec/webhook/webhook_emitter.py b/src/blrec/webhook/webhook_emitter.py index aa77118..735c203 100644 --- a/src/blrec/webhook/webhook_emitter.py +++ b/src/blrec/webhook/webhook_emitter.py @@ -11,7 +11,7 @@ from tenacity import ( from .models import WebHook from ..utils.mixins import SwitchableMixin -from ..exception import ExceptionCenter, format_exception +from ..exception import ExceptionCenter from ..event import EventCenter, Error, ErrorData from ..event.typing import Event from .. import __prog__, __version__ @@ -57,11 +57,7 @@ class WebHookEmitter(SwitchableMixin): self._send_request(url, event.asdict()) def _send_exception(self, url: str, exc: BaseException) -> None: - data = ErrorData( - name=type(exc).__name__, - detail=format_exception(exc), - ) - payload = Error.from_data(data).asdict() + payload = Error.from_data(ErrorData.from_exc(exc)).asdict() self._send_request(url, payload) def _send_request(self, url: str, payload: Dict[str, Any]) -> None: diff --git a/webapp/src/app/core/http-interceptors/auth.interceptor.ts b/webapp/src/app/core/http-interceptors/auth.interceptor.ts index f285203..b93e10b 100644 --- a/webapp/src/app/core/http-interceptors/auth.interceptor.ts +++ b/webapp/src/app/core/http-interceptors/auth.interceptor.ts @@ -8,7 +8,7 @@ import { } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AuthService } from '../services/auth.service'; -import { catchError } from 'rxjs/operators'; +import { catchError, retry } from 'rxjs/operators'; @Injectable() export class AuthInterceptor implements HttpInterceptor { @@ -26,11 +26,15 @@ export class AuthInterceptor implements HttpInterceptor { catchError((error: HttpErrorResponse) => { if (error.status === 401) { // Unauthorized + if (this.auth.hasApiKey()) { + this.auth.removeApiKey(); + } const apiKey = window.prompt('API Key:') ?? ''; this.auth.setApiKey(apiKey); } throw error; - }) + }), + retry(3) ); } } diff --git a/webapp/src/app/core/models/event.model.ts b/webapp/src/app/core/models/event.model.ts index 6fd416c..cc817d4 100644 --- a/webapp/src/app/core/models/event.model.ts +++ b/webapp/src/app/core/models/event.model.ts @@ -4,8 +4,17 @@ export type Event = | LiveBeganEvent | LiveEndedEvent | RoomChangeEvent + | RecordingStartedEvent + | RecordingFinishedEvent + | RecordingCancelledEvent + | VideoFileCreatedEvent + | VideoFileCompletedEvent + | DanmakuFileCreatedEvent + | DanmakuFileCompletedEvent + | RawDanmakuFileCreatedEvent + | RawDanmakuFileCompletedEvent | SpaceNoEnoughEvent - | FilesAvailableEvent; + | VideoPostprocessingCompletedEvent; export interface LiveBeganEvent { readonly type: 'LiveBeganEvent'; @@ -29,6 +38,75 @@ export interface RoomChangeEvent { readonly room_info: RoomInfo; }; } +export interface RecordingStartedEvent { + readonly type: 'RecordingStartedEvent'; + readonly data: { + readonly room_info: RoomInfo; + }; +} +export interface RecordingFinishedEvent { + readonly type: 'RecordingFinishedEvent'; + readonly data: { + readonly room_info: RoomInfo; + }; +} + +export interface RecordingCancelledEvent { + readonly type: 'RecordingCancelledEvent'; + readonly data: { + readonly room_info: RoomInfo; + }; +} +export interface VideoFileCreatedEvent { + readonly type: 'VideoFileCreatedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} +export interface VideoFileCompletedEvent { + readonly type: 'VideoFileCompletedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} +export interface DanmakuFileCreatedEvent { + readonly type: 'DanmakuFileCreatedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} +export interface DanmakuFileCompletedEvent { + readonly type: 'DanmakuFileCompletedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} +export interface RawDanmakuFileCreatedEvent { + readonly type: 'RawDanmakuFileCreatedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} +export interface RawDanmakuFileCompletedEvent { + readonly type: 'RawDanmakuFileCompletedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} + +export interface VideoPostprocessingCompletedEvent { + readonly type: 'VideoPostprocessingCompletedEvent'; + readonly data: { + room_id: number; + path: string; + }; +} export interface SpaceNoEnoughEvent { readonly type: 'SpaceNoEnoughEvent'; @@ -39,13 +117,6 @@ export interface SpaceNoEnoughEvent { }; } -export interface FilesAvailableEvent { - readonly type: 'FilesAvailableEvent'; - readonly data: { - files: string[]; - }; -} - export interface DiskUsage { total: number; used: number; diff --git a/webapp/src/app/core/services/auth.service.ts b/webapp/src/app/core/services/auth.service.ts index 13a307e..5a0f13d 100644 --- a/webapp/src/app/core/services/auth.service.ts +++ b/webapp/src/app/core/services/auth.service.ts @@ -9,6 +9,10 @@ const API_KEY_STORAGE_KEY = 'app-api-key'; export class AuthService { constructor(private storage: StorageService) {} + hasApiKey(): boolean { + return this.storage.hasData(API_KEY_STORAGE_KEY); + } + getApiKey(): string { return this.storage.getData(API_KEY_STORAGE_KEY) ?? ''; } @@ -16,4 +20,8 @@ export class AuthService { setApiKey(value: string): void { this.storage.setData(API_KEY_STORAGE_KEY, value); } + + removeApiKey() { + this.storage.removeData(API_KEY_STORAGE_KEY); + } } diff --git a/webapp/src/app/settings/danmaku-settings/danmaku-settings.component.html b/webapp/src/app/settings/danmaku-settings/danmaku-settings.component.html index c000f0a..33c2472 100644 --- a/webapp/src/app/settings/danmaku-settings/danmaku-settings.component.html +++ b/webapp/src/app/settings/danmaku-settings/danmaku-settings.component.html @@ -3,8 +3,8 @@ 记录送礼记录礼物 + + 记录免费礼物 + + + + ; export interface DanmakuSettings { danmuUname: boolean; recordGiftSend: boolean; + recordFreeGifts: boolean; recordGuardBuy: boolean; recordSuperChat: boolean; saveRawDanmaku: boolean; @@ -164,8 +165,17 @@ export interface WebhookEventSettings { liveBegan: boolean; liveEnded: boolean; roomChange: boolean; + recordingStarted: boolean; + recordingFinished: boolean; + recordingCancelled: boolean; + videoFileCreated: boolean; + videoFileCompleted: boolean; + danmakuFileCreated: boolean; + danmakuFileCompleted: boolean; + rawDanmakuFileCreated: boolean; + rawDanmakuFileCompleted: boolean; + videoPostprocessingCompleted: boolean; spaceNoEnough: boolean; - fileCompleted: boolean; errorOccurred: boolean; } diff --git a/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.html b/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.html index 7d8c15f..697700b 100644 --- a/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.html +++ b/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.html @@ -62,8 +62,71 @@ - 录制开始 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.ts b/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.ts index f250ec7..1b3bd4b 100644 --- a/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.ts +++ b/webapp/src/app/settings/webhook-settings/webhook-edit-dialog/webhook-edit-dialog.component.ts @@ -21,8 +21,17 @@ const DEFAULT_SETTINGS = { liveBegan: true, liveEnded: true, roomChange: true, + recordingStarted: true, + recordingFinished: true, + recordingCancelled: true, + videoFileCreated: true, + videoFileCompleted: true, + danmakuFileCreated: true, + danmakuFileCompleted: true, + rawDanmakuFileCreated: true, + rawDanmakuFileCompleted: true, + videoPostprocessingCompleted: true, spaceNoEnough: true, - fileCompleted: true, errorOccurred: true, } as const; @@ -57,7 +66,16 @@ export class WebhookEditDialogComponent implements OnChanges { liveBegan: [''], liveEnded: [''], roomChange: [''], - fileCompleted: [''], + recordingStarted: [''], + recordingFinished: [''], + recordingCancelled: [''], + videoFileCreated: [''], + videoFileCompleted: [''], + danmakuFileCreated: [''], + danmakuFileCompleted: [''], + rawDanmakuFileCreated: [''], + rawDanmakuFileCompleted: [''], + videoPostprocessingCompleted: [''], spaceNoEnough: [''], errorOccurred: [''], }); diff --git a/webapp/src/app/tasks/shared/breakpoints.ts b/webapp/src/app/tasks/shared/breakpoints.ts index c039915..6206dea 100644 --- a/webapp/src/app/tasks/shared/breakpoints.ts +++ b/webapp/src/app/tasks/shared/breakpoints.ts @@ -1,5 +1,5 @@ export const breakpoints = [ '(max-width: 534.98px)', - '(min-width: 535px) and (max-width: 1059.98px)', - '(min-width: 1060px)', + '(min-width: 535px) and (max-width: 1199.98px)', + '(min-width: 1200px)', ] as const; 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 3cd95fe..3a104b4 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 @@ -259,8 +259,8 @@ class="setting-label" nzFor="recordGiftSend" nzNoColon - nzTooltipTitle="记录送礼信息到弹幕文件里" - >记录送礼记录礼物 覆盖全局设置 + + 记录免费礼物 + + + + +