diff --git a/.flake8 b/.flake8 index 85aa773..e54a711 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,6 @@ [flake8] -ignore = D203, W504 +max-line-length = 88 +ignore = D203, W504, W503 exclude = __*, .*, diff --git a/CHANGELOG.md b/CHANGELOG.md index 8caacee..9b07c03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # 更新日志 +## 1.7.0 + +- 添加封面保存策略 +- 添加 Telegram bot 通知 +- 添加 PushDeer 通知 +- 废弃录制 HLS(ts) 流 +- 在设定时间内没有 fmp4 流自动切换录制 flv 流 + +### P.S. + +录制 fmp4 流基本没什么问题了 + +录制 fmp4 流基本不受网络波动影响,大概是不会录制到二压画质的。 + +人气比较高会被二压的直播间大都是有 fmp4 流的。 + +WEB 端直播播放器是 `Hls7Player` 的直播间支持录制 fmp4 流, `fMp4Player` 则不支持。 + ## 1.6.2 - 忽略 Windows 注册表 JavaScript MIME 设置 (issue #12, 27) diff --git a/pyproject.toml b/pyproject.toml index 478c630..df7793a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,14 @@ requires = [ "setuptools >= 57.0.0, < 58.0.0", "wheel >= 0.37, < 0.38.0", ] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" + +[tool.black] +line-length = 88 +target-version = ['py38'] +include = '\.py$' +skip-string-normalization = true +skip-magic-trailing-comma = true + +[tool.isort] +profile = 'black' diff --git a/setup.cfg b/setup.cfg index 81c93d3..c0c5d7f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,10 +36,11 @@ include_package_data = True python_requires = >= 3.8 install_requires = typing-extensions >= 3.10.0.0 + ordered-set >= 4.1.0, < 5.0.0 fastapi >= 0.70.0, < 0.71.0 email_validator >= 1.1.3, < 2.0.0 click < 8.1.0 - typer >= 0.4.0, < 0.5.0 + typer >= 0.4.1, < 0.5.0 aiohttp >= 3.8.1, < 4.0.0 requests >= 2.24.0, < 3.0.0 aiofiles >= 0.8.0, < 0.9.0 @@ -61,7 +62,9 @@ install_requires = [options.extras_require] dev = flake8 >= 4.0.1 - mypy >= 0.910 + mypy == 0.910 # https://github.com/samuelcolvin/pydantic/issues/3528 + isort >= 5.10.1 + black >= 22.3.0 setuptools >= 59.4.0 wheel >= 0.37 diff --git a/src/blrec/__init__.py b/src/blrec/__init__.py index 0046a1b..033e5d1 100644 --- a/src/blrec/__init__.py +++ b/src/blrec/__init__.py @@ -1,4 +1,4 @@ __prog__ = 'blrec' -__version__ = '1.6.2' +__version__ = '1.7.0' __github__ = 'https://github.com/acgnhiki/blrec' diff --git a/src/blrec/core/cover_downloader.py b/src/blrec/core/cover_downloader.py new file mode 100644 index 0000000..488f792 --- /dev/null +++ b/src/blrec/core/cover_downloader.py @@ -0,0 +1,97 @@ +import asyncio +import logging +from enum import Enum +from typing import Set + +import aiofiles +import aiohttp +from tenacity import retry, stop_after_attempt, wait_fixed + +from ..bili.live import Live +from ..exception import exception_callback +from ..logging.room_id import aio_task_with_room_id +from ..path import cover_path +from ..utils.hash import sha1sum +from ..utils.mixins import SwitchableMixin +from .stream_recorder import StreamRecorder, StreamRecorderEventListener + +__all__ = ('CoverDownloader',) + + +logger = logging.getLogger(__name__) + + +class CoverSaveStrategy(Enum): + DEFAULT = 'default' + DEDUP = 'dedup' + + def __str__(self) -> str: + return self.value + + # workaround for value serialization + def __repr__(self) -> str: + return str(self) + + +class CoverDownloader(StreamRecorderEventListener, SwitchableMixin): + def __init__( + self, + live: Live, + stream_recorder: StreamRecorder, + *, + save_cover: bool = False, + cover_save_strategy: CoverSaveStrategy = CoverSaveStrategy.DEFAULT, + ) -> None: + super().__init__() + self._live = live + self._stream_recorder = stream_recorder + self._lock: asyncio.Lock = asyncio.Lock() + self._sha1_set: Set[str] = set() + self.save_cover = save_cover + self.cover_save_strategy = cover_save_strategy + + def _do_enable(self) -> None: + self._sha1_set.clear() + self._stream_recorder.add_listener(self) + logger.debug('Enabled cover downloader') + + def _do_disable(self) -> None: + self._stream_recorder.remove_listener(self) + logger.debug('Disabled cover downloader') + + async def on_video_file_completed(self, video_path: str) -> None: + async with self._lock: + if not self.save_cover: + return + task = asyncio.create_task(self._save_cover(video_path)) + task.add_done_callback(exception_callback) + + @aio_task_with_room_id + async def _save_cover(self, video_path: str) -> None: + try: + await self._live.update_info() + cover_url = self._live.room_info.cover + data = await self._fetch_cover(cover_url) + sha1 = sha1sum(data) + if ( + self.cover_save_strategy == CoverSaveStrategy.DEDUP + and sha1 in self._sha1_set + ): + return + path = cover_path(video_path, ext=cover_url.rsplit('.', 1)[-1]) + await self._save_file(path, data) + self._sha1_set.add(sha1) + except Exception as e: + logger.error(f'Failed to save cover image: {repr(e)}') + else: + logger.info(f'Saved cover image: {path}') + + @retry(reraise=True, wait=wait_fixed(1), stop=stop_after_attempt(3)) + async def _fetch_cover(self, url: str) -> bytes: + async with aiohttp.ClientSession(raise_for_status=True) as session: + async with session.get(url) as response: + return await response.read() + + async def _save_file(self, path: str, data: bytes) -> None: + async with aiofiles.open(path, 'wb') as file: + await file.write(data) diff --git a/src/blrec/core/danmaku_dumper.py b/src/blrec/core/danmaku_dumper.py index 739ca11..ed2c620 100644 --- a/src/blrec/core/danmaku_dumper.py +++ b/src/blrec/core/danmaku_dumper.py @@ -12,9 +12,7 @@ from tenacity import ( from .. import __version__, __prog__, __github__ from .danmaku_receiver import DanmakuReceiver, DanmuMsg -from .base_stream_recorder import ( - BaseStreamRecorder, StreamRecorderEventListener -) +from .stream_recorder import StreamRecorder, StreamRecorderEventListener from .statistics import StatisticsCalculator from ..bili.live import Live from ..exception import exception_callback, submit_exception @@ -51,7 +49,7 @@ class DanmakuDumper( def __init__( self, live: Live, - stream_recorder: BaseStreamRecorder, + stream_recorder: StreamRecorder, danmaku_receiver: DanmakuReceiver, *, danmu_uname: bool = False, @@ -72,6 +70,7 @@ class DanmakuDumper( self.record_guard_buy = record_guard_buy self.record_super_chat = record_super_chat + self._lock: asyncio.Lock = asyncio.Lock() self._path: Optional[str] = None self._files: List[str] = [] self._calculator = StatisticsCalculator(interval=60) @@ -92,14 +91,6 @@ class DanmakuDumper( def dumping_path(self) -> Optional[str]: return self._path - def change_stream_recorder( - self, stream_recorder: BaseStreamRecorder - ) -> None: - self._stream_recorder.remove_listener(self) - self._stream_recorder = stream_recorder - self._stream_recorder.add_listener(self) - logger.debug('Changed stream recorder') - def _do_enable(self) -> None: self._stream_recorder.add_listener(self) logger.debug('Enabled danmaku dumper') @@ -124,14 +115,16 @@ class DanmakuDumper( async def on_video_file_created( self, video_path: str, record_start_time: int ) -> None: - self._path = danmaku_path(video_path) - self._record_start_time = record_start_time - self._files.append(self._path) - self._start_dumping() + async with self._lock: + self._path = danmaku_path(video_path) + self._record_start_time = record_start_time + self._files.append(self._path) + self._start_dumping() async def on_video_file_completed(self, video_path: str) -> None: - await self._stop_dumping() - self._path = None + async with self._lock: + await self._stop_dumping() + self._path = None def _start_dumping(self) -> None: self._create_dump_task() diff --git a/src/blrec/core/exceptions.py b/src/blrec/core/exceptions.py deleted file mode 100644 index 7a2aa10..0000000 --- a/src/blrec/core/exceptions.py +++ /dev/null @@ -1,3 +0,0 @@ - -class FailedToFetchSegments(Exception): - pass diff --git a/src/blrec/core/flv_stream_recorder.py b/src/blrec/core/flv_stream_recorder_impl.py similarity index 69% rename from src/blrec/core/flv_stream_recorder.py rename to src/blrec/core/flv_stream_recorder_impl.py index 4af640f..bea462c 100644 --- a/src/blrec/core/flv_stream_recorder.py +++ b/src/blrec/core/flv_stream_recorder_impl.py @@ -1,51 +1,33 @@ import io -import errno import logging +from typing import Optional from urllib.parse import urlparse -from typing import Optional - -import urllib3 import requests +import urllib3 +from tenacity import TryAgain from tqdm import tqdm -from tenacity import ( - retry_if_result, - retry_if_not_exception_type, - Retrying, - TryAgain, -) -from .stream_analyzer import StreamProfile -from .base_stream_recorder import BaseStreamRecorder, StreamProxy -from .retry import wait_exponential_for_same_exceptions, before_sleep_log from ..bili.live import Live -from ..bili.typing import StreamFormat, QualityNumber -from ..flv.stream_processor import StreamProcessor -from ..utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin +from ..bili.typing import QualityNumber from ..flv.exceptions import FlvDataError, FlvStreamCorruptedError -from ..bili.exceptions import ( - LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamAvailable, -) +from ..flv.stream_processor import StreamProcessor +from .stream_analyzer import StreamProfile +from .stream_recorder_impl import StreamProxy, StreamRecorderImpl - -__all__ = 'FLVStreamRecorder', +__all__ = 'FLVStreamRecorderImpl', logger = logging.getLogger(__name__) -class FLVStreamRecorder( - BaseStreamRecorder, - AsyncCooperationMixin, - AsyncStoppableMixin, -): +class FLVStreamRecorderImpl(StreamRecorderImpl): def __init__( self, live: Live, out_dir: str, path_template: str, *, - stream_format: StreamFormat = 'flv', quality_number: QualityNumber = 10000, buffer_size: Optional[int] = None, read_timeout: Optional[int] = None, @@ -57,7 +39,7 @@ class FLVStreamRecorder( live=live, out_dir=out_dir, path_template=path_template, - stream_format=stream_format, + stream_format='flv', quality_number=quality_number, buffer_size=buffer_size, read_timeout=read_timeout, @@ -73,6 +55,7 @@ class FLVStreamRecorder( desc='Recording', unit='B', unit_scale=True, + unit_divisor=1024, postfix=self._make_pbar_postfix(), ) as progress_bar: self._progress_bar = progress_bar @@ -116,43 +99,6 @@ class FLVStreamRecorder( self._emit_event('stream_recording_stopped') logger.debug('Stream recorder thread stopped') - def _main_loop(self) -> None: - for attempt in Retrying( - reraise=True, - retry=( - retry_if_result(lambda r: not self._stopped) | - retry_if_not_exception_type((OSError, NotImplementedError)) - ), - wait=wait_exponential_for_same_exceptions(max=60), - before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), - ): - with attempt: - try: - self._streaming_loop() - except NoStreamAvailable as e: - logger.warning(f'No stream available: {repr(e)}') - if not self._stopped: - raise TryAgain - except OSError as e: - logger.critical(repr(e), exc_info=e) - if e.errno == errno.ENOSPC: - # OSError(28, 'No space left on device') - self._handle_exception(e) - self._stopped = True - raise TryAgain - except LiveRoomHidden: - logger.error('The live room has been hidden!') - self._stopped = True - except LiveRoomLocked: - logger.error('The live room has been locked!') - self._stopped = True - except LiveRoomEncrypted: - logger.error('The live room has been encrypted!') - self._stopped = True - except Exception as e: - logger.exception(e) - self._handle_exception(e) - def _streaming_loop(self) -> None: url = self._get_live_stream_url() diff --git a/src/blrec/core/hls_stream_recorder.py b/src/blrec/core/hls_stream_recorder_impl.py similarity index 83% rename from src/blrec/core/hls_stream_recorder.py rename to src/blrec/core/hls_stream_recorder_impl.py index ab309c7..e860e29 100644 --- a/src/blrec/core/hls_stream_recorder.py +++ b/src/blrec/core/hls_stream_recorder_impl.py @@ -1,68 +1,57 @@ import io -import time -import errno import logging -from queue import Queue, Empty -from threading import Thread, Event, Lock, Condition -from datetime import datetime +import time from contextlib import suppress +from datetime import datetime +from queue import Empty, Queue +from threading import Condition, Event, Lock, Thread +from typing import Final, List, Optional, Set from urllib.parse import urlparse -from typing import List, Set, Optional - -import urllib3 -import requests import m3u8 +import requests +import urllib3 from m3u8.model import Segment -from tqdm import tqdm +from ordered_set import OrderedSet from tenacity import ( - retry, - wait_exponential, - stop_after_delay, - retry_if_result, - retry_if_exception_type, - retry_if_not_exception_type, + RetryError, Retrying, TryAgain, - RetryError, + retry, + retry_if_exception_type, + retry_if_not_exception_type, + retry_if_result, + stop_after_delay, + wait_exponential, ) +from tqdm import tqdm -from .stream_remuxer import StreamRemuxer -from .stream_analyzer import ffprobe, StreamProfile -from .base_stream_recorder import BaseStreamRecorder, StreamProxy -from .exceptions import FailedToFetchSegments -from .retry import wait_exponential_for_same_exceptions, before_sleep_log from ..bili.live import Live -from ..bili.typing import StreamFormat, QualityNumber -from ..flv.stream_processor import StreamProcessor +from ..bili.typing import QualityNumber from ..flv.exceptions import FlvDataError, FlvStreamCorruptedError -from ..utils.mixins import ( - AsyncCooperationMixin, AsyncStoppableMixin, SupportDebugMixin -) -from ..bili.exceptions import ( - LiveRoomHidden, LiveRoomLocked, LiveRoomEncrypted, NoStreamAvailable, -) +from ..flv.stream_processor import StreamProcessor +from ..utils.mixins import SupportDebugMixin +from .stream_analyzer import StreamProfile, ffprobe +from .stream_recorder_impl import StreamProxy, StreamRecorderImpl +from .stream_remuxer import StreamRemuxer - -__all__ = 'HLSStreamRecorder', +__all__ = 'HLSStreamRecorderImpl', logger = logging.getLogger(__name__) -class HLSStreamRecorder( - BaseStreamRecorder, - AsyncCooperationMixin, - AsyncStoppableMixin, - SupportDebugMixin, -): +class FailedToFetchSegments(Exception): + pass + + +class HLSStreamRecorderImpl(StreamRecorderImpl, SupportDebugMixin): def __init__( self, live: Live, out_dir: str, path_template: str, *, - stream_format: StreamFormat = 'flv', quality_number: QualityNumber = 10000, buffer_size: Optional[int] = None, read_timeout: Optional[int] = None, @@ -74,7 +63,7 @@ class HLSStreamRecorder( live=live, out_dir=out_dir, path_template=path_template, - stream_format=stream_format, + stream_format='fmp4', quality_number=quality_number, buffer_size=buffer_size, read_timeout=read_timeout, @@ -87,7 +76,8 @@ class HLSStreamRecorder( self._ready_to_fetch_segments = Condition() self._failed_to_fetch_segments = Event() self._stream_analysed_lock = Lock() - self._last_segment_uris: Set[str] = set() + self._last_seg_uris: OrderedSet[str] = OrderedSet() + self._MAX_LAST_SEG_URIS: Final[int] = 30 def _run(self) -> None: logger.debug('Stream recorder thread started') @@ -103,7 +93,10 @@ class HLSStreamRecorder( self._session = requests.Session() self._session.headers.update(self._live.headers) - self._stream_remuxer = StreamRemuxer(self._live.room_id) + self._stream_remuxer = StreamRemuxer( + self._live.room_id, + remove_filler_data=True, + ) self._segment_queue: Queue[Segment] = Queue(maxsize=1000) self._segment_data_queue: Queue[bytes] = Queue(maxsize=100) self._stream_host_available = Event() @@ -139,7 +132,7 @@ class HLSStreamRecorder( self._segment_data_feeder_thread.join(timeout=10) self._stream_remuxer.stop() self._stream_remuxer.raise_for_exception() - self._last_segment_uris.clear() + self._last_seg_uris.clear() del self._segment_queue del self._segment_data_queue except TryAgain: @@ -153,44 +146,6 @@ class HLSStreamRecorder( self._emit_event('stream_recording_stopped') logger.debug('Stream recorder thread stopped') - def _main_loop(self) -> None: - for attempt in Retrying( - reraise=True, - retry=( - retry_if_result(lambda r: not self._stopped) | - retry_if_not_exception_type((OSError, NotImplementedError)) - ), - wait=wait_exponential_for_same_exceptions(max=60), - before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), - ): - with attempt: - try: - self._streaming_loop() - except NoStreamAvailable as e: - logger.warning(f'No stream available: {repr(e)}') - if not self._stopped: - raise TryAgain - except OSError as e: - logger.critical(repr(e), exc_info=e) - if e.errno == errno.ENOSPC: - # OSError(28, 'No space left on device') - self._handle_exception(e) - self._stopped = True - raise TryAgain - except LiveRoomHidden: - logger.error('The live room has been hidden!') - self._stopped = True - except LiveRoomLocked: - logger.error('The live room has been locked!') - self._stopped = True - except LiveRoomEncrypted: - logger.error('The live room has been encrypted!') - self._stopped = True - except Exception as e: - logger.exception(e) - self._handle_exception(e) - self._stopped = True - def _streaming_loop(self) -> None: url = self._get_live_stream_url() @@ -247,32 +202,29 @@ class HLSStreamRecorder( self._stream_analysed = False continue - uris: Set[str] = set() + curr_seg_uris: Set[str] = set() for seg in playlist.segments: - uris.add(seg.uri) - if seg.uri not in self._last_segment_uris: + curr_seg_uris.add(seg.uri) + if seg.uri not in self._last_seg_uris: self._segment_queue.put(seg, timeout=60) + self._last_seg_uris.add(seg.uri) + if len(self._last_seg_uris) > self._MAX_LAST_SEG_URIS: + self._last_seg_uris.pop(0) if ( - self._last_segment_uris and - not uris.intersection(self._last_segment_uris) + self._last_seg_uris and + not curr_seg_uris.intersection(self._last_seg_uris) ): logger.debug( 'segments broken!\n' - f'last segments: {self._last_segment_uris}\n' - f'current segments: {uris}' + f'last segments uris: {self._last_seg_uris}\n' + f'current segments uris: {curr_seg_uris}' ) with self._stream_analysed_lock: self._stream_analysed = False - self._last_segment_uris = uris - if playlist.is_endlist: logger.debug('playlist ended') - self._run_coroutine(self._live.update_room_info()) - if not self._live.is_living(): - self._stopped = True - break time.sleep(1) @@ -338,7 +290,7 @@ class HLSStreamRecorder( break except requests.exceptions.ConnectionError as e: logger.warning(repr(e)) - self._connection_recovered.wait() + self._wait_for_connection_error() except RetryError as e: logger.warning(repr(e)) break @@ -434,6 +386,7 @@ class HLSStreamRecorder( desc='Recording', unit='B', unit_scale=True, + unit_divisor=1024, postfix=self._make_pbar_postfix(), ) as progress_bar: self._progress_bar = progress_bar diff --git a/src/blrec/core/raw_danmaku_dumper.py b/src/blrec/core/raw_danmaku_dumper.py index 62d4bbf..a87ce40 100644 --- a/src/blrec/core/raw_danmaku_dumper.py +++ b/src/blrec/core/raw_danmaku_dumper.py @@ -12,9 +12,7 @@ from tenacity import ( ) from .raw_danmaku_receiver import RawDanmakuReceiver -from .base_stream_recorder import ( - BaseStreamRecorder, StreamRecorderEventListener -) +from .stream_recorder import StreamRecorder, StreamRecorderEventListener from ..bili.live import Live from ..exception import exception_callback, submit_exception from ..event.event_emitter import EventListener, EventEmitter @@ -45,7 +43,7 @@ class RawDanmakuDumper( def __init__( self, live: Live, - stream_recorder: BaseStreamRecorder, + stream_recorder: StreamRecorder, danmaku_receiver: RawDanmakuReceiver, ) -> None: super().__init__() @@ -53,13 +51,7 @@ class RawDanmakuDumper( self._stream_recorder = stream_recorder self._receiver = danmaku_receiver - def change_stream_recorder( - self, stream_recorder: BaseStreamRecorder - ) -> None: - self._stream_recorder.remove_listener(self) - self._stream_recorder = stream_recorder - self._stream_recorder.add_listener(self) - logger.debug('Changed stream recorder') + self._lock: asyncio.Lock = asyncio.Lock() def _do_enable(self) -> None: self._stream_recorder.add_listener(self) @@ -72,11 +64,13 @@ class RawDanmakuDumper( async def on_video_file_created( self, video_path: str, record_start_time: int ) -> None: - self._path = raw_danmaku_path(video_path) - self._start_dumping() + async with self._lock: + self._path = raw_danmaku_path(video_path) + self._start_dumping() async def on_video_file_completed(self, video_path: str) -> None: - await self._stop_dumping() + async with self._lock: + await self._stop_dumping() def _start_dumping(self) -> None: self._create_dump_task() diff --git a/src/blrec/core/recorder.py b/src/blrec/core/recorder.py index 5f54f88..e73bf59 100644 --- a/src/blrec/core/recorder.py +++ b/src/blrec/core/recorder.py @@ -1,35 +1,28 @@ from __future__ import annotations + import asyncio import logging from datetime import datetime -from typing import Iterator, Optional, Type +from typing import Iterator, Optional -import aiohttp -import aiofiles import humanize -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, RawDanmakuDumperEventListener -from .base_stream_recorder import ( - BaseStreamRecorder, StreamRecorderEventListener -) -from .stream_analyzer import StreamProfile -from .flv_stream_recorder import FLVStreamRecorder -from .hls_stream_recorder import HLSStreamRecorder -from ..event.event_emitter import EventListener, EventEmitter -from ..flv.data_analyser import MetaData -from ..bili.live import Live -from ..bili.models import RoomInfo from ..bili.danmaku_client import DanmakuClient -from ..bili.live_monitor import LiveMonitor, LiveEventListener -from ..bili.typing import StreamFormat, QualityNumber -from ..utils.mixins import AsyncStoppableMixin -from ..path import cover_path +from ..bili.live import Live +from ..bili.live_monitor import LiveEventListener, LiveMonitor +from ..bili.models import RoomInfo +from ..bili.typing import QualityNumber, StreamFormat +from ..event.event_emitter import EventEmitter, EventListener +from ..flv.data_analyser import MetaData from ..logging.room_id import aio_task_with_room_id - +from ..utils.mixins import AsyncStoppableMixin +from .cover_downloader import CoverDownloader, CoverSaveStrategy +from .danmaku_dumper import DanmakuDumper, DanmakuDumperEventListener +from .danmaku_receiver import DanmakuReceiver +from .raw_danmaku_dumper import RawDanmakuDumper, RawDanmakuDumperEventListener +from .raw_danmaku_receiver import RawDanmakuReceiver +from .stream_analyzer import StreamProfile +from .stream_recorder import StreamRecorder, StreamRecorderEventListener __all__ = 'RecorderEventListener', 'Recorder' @@ -47,29 +40,19 @@ class RecorderEventListener(EventListener): async def on_recording_cancelled(self, recorder: Recorder) -> None: ... - async def on_video_file_created( - self, recorder: Recorder, path: str - ) -> None: + async def on_video_file_created(self, recorder: Recorder, path: str) -> None: ... - async def on_video_file_completed( - self, recorder: Recorder, path: str - ) -> None: + async def on_video_file_completed(self, recorder: Recorder, path: str) -> None: ... - async def on_danmaku_file_created( - self, recorder: Recorder, path: str - ) -> None: + async def on_danmaku_file_created(self, recorder: Recorder, path: str) -> None: ... - async def on_danmaku_file_completed( - self, recorder: Recorder, 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_created(self, recorder: Recorder, path: str) -> None: ... async def on_raw_danmaku_file_completed( @@ -96,6 +79,7 @@ class Recorder( *, stream_format: StreamFormat = 'flv', quality_number: QualityNumber = 10000, + fmp4_stream_timeout: int = 10, buffer_size: Optional[int] = None, read_timeout: Optional[int] = None, disconnection_timeout: Optional[int] = None, @@ -107,6 +91,7 @@ class Recorder( record_guard_buy: bool = False, record_super_chat: bool = False, save_cover: bool = False, + cover_save_strategy: CoverSaveStrategy = CoverSaveStrategy.DEFAULT, save_raw_danmaku: bool = False, ) -> None: super().__init__() @@ -114,23 +99,18 @@ class Recorder( self._live = live self._danmaku_client = danmaku_client self._live_monitor = live_monitor - self.save_cover = save_cover self.save_raw_danmaku = save_raw_danmaku self._recording: bool = False self._stream_available: bool = False - cls: Type[BaseStreamRecorder] - if stream_format == 'flv': - cls = FLVStreamRecorder - else: - cls = HLSStreamRecorder - self._stream_recorder = cls( + self._stream_recorder = StreamRecorder( self._live, out_dir=out_dir, path_template=path_template, stream_format=stream_format, quality_number=quality_number, + fmp4_stream_timeout=fmp4_stream_timeout, buffer_size=buffer_size, read_timeout=read_timeout, disconnection_timeout=disconnection_timeout, @@ -151,9 +131,14 @@ class Recorder( ) self._raw_danmaku_receiver = RawDanmakuReceiver(danmaku_client) self._raw_danmaku_dumper = RawDanmakuDumper( + self._live, self._stream_recorder, self._raw_danmaku_receiver + ) + + self._cover_downloader = CoverDownloader( self._live, self._stream_recorder, - self._raw_danmaku_receiver, + save_cover=save_cover, + cover_save_strategy=cover_save_strategy, ) @property @@ -181,11 +166,19 @@ class Recorder( self._stream_recorder.quality_number = value @property - def real_stream_format(self) -> StreamFormat: + def fmp4_stream_timeout(self) -> int: + return self._stream_recorder.fmp4_stream_timeout + + @fmp4_stream_timeout.setter + def fmp4_stream_timeout(self, value: int) -> None: + self._stream_recorder.fmp4_stream_timeout = value + + @property + def real_stream_format(self) -> Optional[StreamFormat]: return self._stream_recorder.real_stream_format @property - def real_quality_number(self) -> QualityNumber: + def real_quality_number(self) -> Optional[QualityNumber]: return self._stream_recorder.real_quality_number @property @@ -252,6 +245,22 @@ class Recorder( def record_super_chat(self, value: bool) -> None: self._danmaku_dumper.record_super_chat = value + @property + def save_cover(self) -> bool: + return self._cover_downloader.save_cover + + @save_cover.setter + def save_cover(self, value: bool) -> None: + self._cover_downloader.save_cover = value + + @property + def cover_save_strategy(self) -> CoverSaveStrategy: + return self._cover_downloader.cover_save_strategy + + @cover_save_strategy.setter + def cover_save_strategy(self, value: CoverSaveStrategy) -> None: + self._cover_downloader.cover_save_strategy = value + @property def stream_url(self) -> str: return self._stream_recorder.stream_url @@ -375,15 +384,11 @@ class Recorder( self._print_changed_room_info(room_info) self._stream_recorder.update_progress_bar_info() - async def on_video_file_created( - self, path: str, record_start_time: int - ) -> None: + async def on_video_file_created(self, path: str, record_start_time: int) -> None: await self._emit('video_file_created', self, path) async def on_video_file_completed(self, path: str) -> None: 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', self, path) @@ -426,7 +431,6 @@ class Recorder( async def _start_recording(self) -> None: if self._recording: return - self._change_stream_recorder() self._recording = True if self.save_raw_danmaku: @@ -434,6 +438,7 @@ class Recorder( self._raw_danmaku_receiver.start() self._danmaku_dumper.enable() self._danmaku_receiver.start() + self._cover_downloader.enable() await self._prepare() if self._stream_available: @@ -455,6 +460,7 @@ class Recorder( self._raw_danmaku_receiver.stop() self._danmaku_dumper.disable() self._danmaku_receiver.stop() + self._cover_downloader.disable() if self._stopped: logger.info('Recording Cancelled') @@ -492,60 +498,6 @@ class Recorder( if not self._stream_recorder.stopped: await self.stop() - def _change_stream_recorder(self) -> None: - if self._recording: - logger.debug('Can not change stream recorder while recording') - return - - cls: Type[BaseStreamRecorder] - if self.stream_format == 'flv': - cls = FLVStreamRecorder - else: - cls = HLSStreamRecorder - - if self._stream_recorder.__class__ == cls: - return - - self._stream_recorder.remove_listener(self) - self._stream_recorder = cls( - self._live, - out_dir=self.out_dir, - path_template=self.path_template, - stream_format=self.stream_format, - quality_number=self.quality_number, - buffer_size=self.buffer_size, - read_timeout=self.read_timeout, - disconnection_timeout=self.disconnection_timeout, - filesize_limit=self.filesize_limit, - duration_limit=self.duration_limit, - ) - self._stream_recorder.add_listener(self) - - self._danmaku_dumper.change_stream_recorder(self._stream_recorder) - self._raw_danmaku_dumper.change_stream_recorder(self._stream_recorder) - - logger.debug(f'Changed stream recorder to {cls.__name__}') - - @aio_task_with_room_id - async def _save_cover_image(self, video_path: str) -> None: - try: - await self._live.update_info() - url = self._live.room_info.cover - ext = url.rsplit('.', 1)[-1] - path = cover_path(video_path, ext) - await self._save_file(url, path) - except Exception as e: - logger.error(f'Failed to save cover image: {repr(e)}') - else: - logger.info(f'Saved cover image: {path}') - - @retry(reraise=True, wait=wait_fixed(1), stop=stop_after_attempt(3)) - async def _save_file(self, url: str, path: str) -> None: - async with aiohttp.ClientSession(raise_for_status=True) as session: - async with session.get(url) as response: - async with aiofiles.open(path, 'wb') as file: - await file.write(await response.read()) - def _print_waiting_message(self) -> None: logger.info('Waiting... until the live starts') @@ -554,9 +506,7 @@ class Recorder( user_info = self._live.user_info if room_info.live_start_time > 0: - live_start_time = str( - datetime.fromtimestamp(room_info.live_start_time) - ) + live_start_time = str(datetime.fromtimestamp(room_info.live_start_time)) else: live_start_time = 'NULL' diff --git a/src/blrec/core/stream_recorder.py b/src/blrec/core/stream_recorder.py new file mode 100644 index 0000000..5aae7f7 --- /dev/null +++ b/src/blrec/core/stream_recorder.py @@ -0,0 +1,284 @@ +import asyncio +import logging +import time +from typing import Iterator, Optional + +from ..bili.live import Live +from ..bili.typing import QualityNumber, StreamFormat +from ..event.event_emitter import EventEmitter +from ..flv.data_analyser import MetaData +from ..utils.mixins import AsyncStoppableMixin +from .flv_stream_recorder_impl import FLVStreamRecorderImpl +from .hls_stream_recorder_impl import HLSStreamRecorderImpl +from .stream_analyzer import StreamProfile +from .stream_recorder_impl import StreamRecorderEventListener + +__all__ = 'StreamRecorder', 'StreamRecorderEventListener' + + +logger = logging.getLogger(__name__) + + +class StreamRecorder( + StreamRecorderEventListener, + EventEmitter[StreamRecorderEventListener], + AsyncStoppableMixin, +): + def __init__( + self, + live: Live, + out_dir: str, + path_template: str, + *, + stream_format: StreamFormat = 'flv', + quality_number: QualityNumber = 10000, + fmp4_stream_timeout: int = 10, + buffer_size: Optional[int] = None, + read_timeout: Optional[int] = None, + disconnection_timeout: Optional[int] = None, + filesize_limit: int = 0, + duration_limit: int = 0, + ) -> None: + super().__init__() + + self.stream_format = stream_format + self.fmp4_stream_timeout = fmp4_stream_timeout + + if stream_format == 'flv': + cls = FLVStreamRecorderImpl + elif stream_format == 'fmp4': + cls = HLSStreamRecorderImpl # type: ignore + else: + logger.warning( + f'The specified stream format ({stream_format}) is ' + 'unsupported, will using the stream format (flv) instead.' + ) + self.stream_format = 'flv' + cls = FLVStreamRecorderImpl + + self._impl = cls( + live=live, + out_dir=out_dir, + path_template=path_template, + quality_number=quality_number, + buffer_size=buffer_size, + read_timeout=read_timeout, + disconnection_timeout=disconnection_timeout, + filesize_limit=filesize_limit, + duration_limit=duration_limit, + ) + + self._impl.add_listener(self) + + @property + def stream_url(self) -> str: + return self._impl.stream_url + + @property + def stream_host(self) -> str: + return self._impl.stream_host + + @property + def dl_total(self) -> int: + return self._impl.dl_total + + @property + def dl_rate(self) -> float: + return self._impl.dl_rate + + @property + def rec_elapsed(self) -> float: + return self._impl.rec_elapsed + + @property + def rec_total(self) -> int: + return self._impl.rec_total + + @property + def rec_rate(self) -> float: + return self._impl.rec_rate + + @property + def out_dir(self) -> str: + return self._impl.out_dir + + @out_dir.setter + def out_dir(self, value: str) -> None: + self._impl.out_dir = value + + @property + def path_template(self) -> str: + return self._impl.path_template + + @path_template.setter + def path_template(self, value: str) -> None: + self._impl.path_template = value + + @property + def quality_number(self) -> QualityNumber: + return self._impl.quality_number + + @quality_number.setter + def quality_number(self, value: QualityNumber) -> None: + self._impl.quality_number = value + + @property + def real_stream_format(self) -> Optional[StreamFormat]: + if self.stopped: + return None + return self._impl.stream_format + + @property + def real_quality_number(self) -> Optional[QualityNumber]: + return self._impl.real_quality_number + + @property + def buffer_size(self) -> int: + return self._impl.buffer_size + + @buffer_size.setter + def buffer_size(self, value: int) -> None: + self._impl.buffer_size = value + + @property + def read_timeout(self) -> int: + return self._impl.read_timeout + + @read_timeout.setter + def read_timeout(self, value: int) -> None: + self._impl.read_timeout = value + + @property + def disconnection_timeout(self) -> int: + return self._impl.disconnection_timeout + + @disconnection_timeout.setter + def disconnection_timeout(self, value: int) -> None: + self._impl.disconnection_timeout = value + + @property + def filesize_limit(self) -> int: + return self._impl.filesize_limit + + @filesize_limit.setter + def filesize_limit(self, value: int) -> None: + self._impl.filesize_limit = value + + @property + def duration_limit(self) -> int: + return self._impl.duration_limit + + @duration_limit.setter + def duration_limit(self, value: int) -> None: + self._impl.duration_limit = value + + @property + def recording_path(self) -> Optional[str]: + return self._impl.recording_path + + @property + def metadata(self) -> Optional[MetaData]: + return self._impl.metadata + + @property + def stream_profile(self) -> StreamProfile: + return self._impl.stream_profile + + def has_file(self) -> bool: + return self._impl.has_file() + + def get_files(self) -> Iterator[str]: + yield from self._impl.get_files() + + def clear_files(self) -> None: + self._impl.clear_files() + + def can_cut_stream(self) -> bool: + return self._impl.can_cut_stream() + + def cut_stream(self) -> bool: + return self._impl.cut_stream() + + def update_progress_bar_info(self) -> None: + self._impl.update_progress_bar_info() + + @property + def stopped(self) -> bool: + return self._impl.stopped + + async def _do_start(self) -> None: + stream_format = self.stream_format + if stream_format == 'fmp4': + logger.info('Waiting for the fmp4 stream becomes available...') + available = await self._wait_fmp4_stream() + if not available: + logger.warning( + 'The specified stream format (fmp4) is not available ' + f'in {self.fmp4_stream_timeout} seconcds, ' + 'falling back to stream format (flv).' + ) + stream_format = 'flv' + self._change_impl(stream_format) + await self._impl.start() + + async def _do_stop(self) -> None: + await self._impl.stop() + + async def on_video_file_created(self, path: str, record_start_time: int) -> None: + await self._emit('video_file_created', path, record_start_time) + + async def on_video_file_completed(self, path: str) -> None: + await self._emit('video_file_completed', path) + + async def on_stream_recording_stopped(self) -> None: + await self._emit('stream_recording_stopped') + + async def _wait_fmp4_stream(self) -> bool: + end_time = time.monotonic() + self.fmp4_stream_timeout + available = False # debounce + while True: + try: + await self._impl._live.get_live_stream_urls(stream_format='fmp4') + except Exception: + available = False + if time.monotonic() > end_time: + return False + else: + if available: + return True + else: + available = True + await asyncio.sleep(1) + + def _change_impl(self, stream_format: StreamFormat) -> None: + if stream_format == 'flv': + cls = FLVStreamRecorderImpl + elif stream_format == 'fmp4': + cls = HLSStreamRecorderImpl # type: ignore + else: + logger.warning( + f'The specified stream format ({stream_format}) is ' + 'unsupported, will using the stream format (flv) instead.' + ) + cls = FLVStreamRecorderImpl + + if self._impl.__class__ == cls: + return + + self._impl.remove_listener(self) + + self._impl = cls( + live=self._impl._live, + out_dir=self._impl.out_dir, + path_template=self._impl.path_template, + quality_number=self._impl.quality_number, + buffer_size=self._impl.buffer_size, + read_timeout=self._impl.read_timeout, + disconnection_timeout=self._impl.disconnection_timeout, + filesize_limit=self._impl.filesize_limit, + duration_limit=self._impl.duration_limit, + ) + + self._impl.add_listener(self) + + logger.debug(f'Changed stream recorder impl to {cls.__name__}') diff --git a/src/blrec/core/base_stream_recorder.py b/src/blrec/core/stream_recorder_impl.py similarity index 84% rename from src/blrec/core/base_stream_recorder.py rename to src/blrec/core/stream_recorder_impl.py index 7262d23..1e413c7 100644 --- a/src/blrec/core/base_stream_recorder.py +++ b/src/blrec/core/stream_recorder_impl.py @@ -1,53 +1,61 @@ +import asyncio +import errno import io +import logging import os import re import time -import asyncio -import logging from abc import ABC, abstractmethod -from threading import Thread, Event -from datetime import datetime, timezone, timedelta from collections import OrderedDict - -from typing import Any, BinaryIO, Dict, Iterator, Optional, Tuple +from datetime import datetime, timedelta, timezone +from threading import Thread +from typing import Any, BinaryIO, Dict, Final, Iterator, Optional, Tuple import aiohttp import urllib3 -from tqdm import tqdm -from rx.subject import Subject from rx.core import Observable +from rx.subject import Subject from tenacity import ( + Retrying, + TryAgain, retry, - wait_none, - wait_fixed, + retry_if_exception_type, + retry_if_not_exception_type, + retry_if_result, + stop_after_attempt, + stop_after_delay, wait_chain, wait_exponential, - stop_after_delay, - stop_after_attempt, - retry_if_exception_type, - TryAgain, + wait_fixed, + wait_none, ) +from tqdm import tqdm -from .. import __version__, __prog__, __github__ -from .stream_remuxer import StreamRemuxer -from .stream_analyzer import StreamProfile -from .statistics import StatisticsCalculator -from ..event.event_emitter import EventListener, EventEmitter -from ..bili.live import Live -from ..bili.typing import ApiPlatform, StreamFormat, QualityNumber +from .. import __github__, __prog__, __version__ +from ..bili.exceptions import ( + LiveRoomEncrypted, + LiveRoomHidden, + LiveRoomLocked, + NoStreamAvailable, + NoStreamFormatAvailable, + NoStreamQualityAvailable, +) from ..bili.helpers import get_quality_name +from ..bili.live import Live +from ..bili.typing import ApiPlatform, QualityNumber, StreamFormat +from ..event.event_emitter import EventEmitter, EventListener from ..flv.data_analyser import MetaData -from ..flv.stream_processor import StreamProcessor, BaseOutputFileManager +from ..flv.stream_processor import BaseOutputFileManager, StreamProcessor +from ..logging.room_id import aio_task_with_room_id +from ..path import escape_path from ..utils.io import wait_for from ..utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin -from ..path import escape_path -from ..logging.room_id import aio_task_with_room_id -from ..bili.exceptions import ( - NoStreamFormatAvailable, NoStreamCodecAvailable, NoStreamQualityAvailable, -) +from .retry import before_sleep_log, wait_exponential_for_same_exceptions +from .statistics import StatisticsCalculator +from .stream_analyzer import StreamProfile +from .stream_remuxer import StreamRemuxer - -__all__ = 'BaseStreamRecorder', 'StreamRecorderEventListener', 'StreamProxy' +__all__ = 'StreamRecorderImpl', logger = logging.getLogger(__name__) @@ -67,7 +75,7 @@ class StreamRecorderEventListener(EventListener): ... -class BaseStreamRecorder( +class StreamRecorderImpl( EventEmitter[StreamRecorderEventListener], AsyncCooperationMixin, AsyncStoppableMixin, @@ -99,9 +107,8 @@ class BaseStreamRecorder( live, out_dir, path_template, buffer_size ) - self._stream_format = stream_format + self._stream_format: Final = stream_format self._quality_number = quality_number - self._real_stream_format: Optional[StreamFormat] = None self._real_quality_number: Optional[QualityNumber] = None self._api_platform: ApiPlatform = 'android' self._use_alternative_stream: bool = False @@ -116,8 +123,6 @@ class BaseStreamRecorder( self._stream_host: str = '' self._stream_profile: StreamProfile = {} - self._connection_recovered = Event() - def on_file_created(args: Tuple[str, int]) -> None: logger.info(f"Video file created: '{args[0]}'") self._emit_event('video_file_created', *args) @@ -177,11 +182,6 @@ class BaseStreamRecorder( def stream_format(self) -> StreamFormat: return self._stream_format - @stream_format.setter - def stream_format(self, value: StreamFormat) -> None: - self._stream_format = value - self._real_stream_format = None - @property def quality_number(self) -> QualityNumber: return self._quality_number @@ -189,15 +189,12 @@ class BaseStreamRecorder( @quality_number.setter def quality_number(self, value: QualityNumber) -> None: self._quality_number = value - self._real_quality_number = None @property - def real_stream_format(self) -> StreamFormat: - return self._real_stream_format or self.stream_format - - @property - def real_quality_number(self) -> QualityNumber: - return self._real_quality_number or self.quality_number + def real_quality_number(self) -> Optional[QualityNumber]: + if self.stopped: + return None + return self._real_quality_number @property def filesize_limit(self) -> int: @@ -263,16 +260,20 @@ class BaseStreamRecorder( if self._progress_bar is not None: self._progress_bar.set_postfix_str(self._make_pbar_postfix()) - async def _do_start(self) -> None: - logger.debug('Starting stream recorder...') + def _reset(self) -> None: self._dl_calculator.reset() self._rec_calculator.reset() self._stream_url = '' self._stream_host = '' self._stream_profile = {} self._api_platform = 'android' + self._real_quality_number = None self._use_alternative_stream = False - self._connection_recovered.clear() + self._fall_back_stream_format = False + + async def _do_start(self) -> None: + logger.debug('Starting stream recorder...') + self._reset() self._thread = Thread( target=self._run, name=f'StreamRecorder::{self._live.room_id}' ) @@ -290,6 +291,44 @@ class BaseStreamRecorder( def _run(self) -> None: raise NotImplementedError() + @abstractmethod + def _streaming_loop(self) -> None: + raise NotImplementedError() + + def _main_loop(self) -> None: + for attempt in Retrying( + reraise=True, + retry=( + retry_if_result(lambda r: not self._stopped) | + retry_if_not_exception_type((NotImplementedError)) + ), + wait=wait_exponential_for_same_exceptions(max=60), + before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), + ): + with attempt: + try: + self._streaming_loop() + except (NoStreamAvailable, NoStreamFormatAvailable) as e: + logger.warning(f'Failed to get live stream url: {repr(e)}') + except OSError as e: + logger.critical(repr(e), exc_info=e) + if e.errno == errno.ENOSPC: + # OSError(28, 'No space left on device') + self._handle_exception(e) + self._stopped = True + except LiveRoomHidden: + logger.error('The live room has been hidden!') + self._stopped = True + except LiveRoomLocked: + logger.error('The live room has been locked!') + self._stopped = True + except LiveRoomEncrypted: + logger.error('The live room has been encrypted!') + self._stopped = True + except Exception as e: + logger.exception(e) + self._handle_exception(e) + def _rotate_api_platform(self) -> None: if self._api_platform == 'android': self._api_platform = 'web' @@ -305,8 +344,8 @@ class BaseStreamRecorder( stop=stop_after_attempt(300), ) def _get_live_stream_url(self) -> str: + fmt = self._stream_format qn = self._real_quality_number or self.quality_number - fmt = self._real_stream_format or self.stream_format logger.info( f'Getting the live stream url... qn: {qn}, format: {fmt}, ' f'api platform: {self._api_platform}, ' @@ -327,35 +366,11 @@ class BaseStreamRecorder( ) self._real_quality_number = 10000 raise TryAgain - except NoStreamFormatAvailable: - if fmt == 'fmp4': - logger.info( - 'The specified stream format (fmp4) is not available, ' - 'falling back to stream format (ts).' - ) - self._real_stream_format = 'ts' - elif fmt == 'ts': - logger.info( - 'The specified stream format (ts) is not available, ' - 'falling back to stream format (flv).' - ) - self._real_stream_format = 'flv' - else: - raise NotImplementedError(fmt) - raise TryAgain - except NoStreamCodecAvailable as e: - logger.warning(repr(e)) - raise TryAgain - except Exception as e: - logger.warning(f'Failed to get live stream urls: {repr(e)}') - self._rotate_api_platform() - raise TryAgain else: logger.info( f'Adopted the stream format ({fmt}) and quality ({qn})' ) self._real_quality_number = qn - self._real_stream_format = fmt if not self._use_alternative_stream: url = urls[0] @@ -366,8 +381,9 @@ class BaseStreamRecorder( self._use_alternative_stream = False self._rotate_api_platform() logger.info( - 'No alternative stream url available, will using the primary' - f' stream url from {self._api_platform} api instead.' + 'No alternative stream url available, ' + 'will using the primary stream url ' + f'from {self._api_platform} api instead.' ) raise TryAgain logger.info(f"Got live stream url: '{url}'") @@ -380,16 +396,7 @@ class BaseStreamRecorder( logger.debug(f'Retry {name} after {seconds} seconds') time.sleep(seconds) - def _wait_for_connection_error(self) -> None: - Thread( - target=self._conectivity_checker, - name=f'ConectivityChecker::{self._live.room_id}', - daemon=True, - ).start() - self._connection_recovered.wait() - self._connection_recovered.clear() - - def _conectivity_checker(self, check_interval: int = 3) -> None: + def _wait_for_connection_error(self, check_interval: int = 3) -> None: timeout = self.disconnection_timeout logger.info(f'Waiting {timeout} seconds for connection recovery... ') timebase = time.monotonic() @@ -397,11 +404,10 @@ class BaseStreamRecorder( if timeout is not None and time.monotonic() - timebase > timeout: logger.error(f'Connection not recovered in {timeout} seconds') self._stopped = True - self._connection_recovered.set() + break time.sleep(check_interval) else: logger.info('Connection recovered') - self._connection_recovered.set() def _make_pbar_postfix(self) -> str: return '{room_id} - {user_name}: {room_title}'.format( @@ -434,7 +440,7 @@ B站直播录像 房间号:{self._live.room_info.room_id} 开播时间:{live_start_time} 流主机: {self._stream_host} -流格式:{self._real_stream_format} +流格式:{self._stream_format} 流画质:{stream_quality} 录制程序:{__prog__} v{__version__} {__github__}''', 'description': OrderedDict({ @@ -446,7 +452,7 @@ B站直播录像 'ParentArea': self._live.room_info.parent_area_name, 'LiveStartTime': str(live_start_time), 'StreamHost': self._stream_host, - 'StreamFormat': self._real_stream_format, + 'StreamFormat': self._stream_format, 'StreamQuality': stream_quality, 'Recorder': f'{__prog__} v{__version__} {__github__}', }) diff --git a/src/blrec/core/stream_remuxer.py b/src/blrec/core/stream_remuxer.py index 156aafe..6b3c4b4 100644 --- a/src/blrec/core/stream_remuxer.py +++ b/src/blrec/core/stream_remuxer.py @@ -1,22 +1,20 @@ -import re -import os -import io import errno -import shlex +import io import logging -from threading import Thread, Condition -from subprocess import Popen, PIPE, CalledProcessError +import os +import re +import shlex +from subprocess import PIPE, CalledProcessError, Popen +from threading import Condition, Thread from typing import Optional, cast - -from ..utils.mixins import StoppableMixin, SupportDebugMixin from ..utils.io import wait_for - +from ..utils.mixins import StoppableMixin, SupportDebugMixin logger = logging.getLogger(__name__) -__all__ = 'StreamRemuxer', +__all__ = ('StreamRemuxer',) class FFmpegError(Exception): @@ -28,10 +26,10 @@ class StreamRemuxer(StoppableMixin, SupportDebugMixin): r'\b(error|failed|missing|invalid|corrupt)\b', re.IGNORECASE ) - def __init__(self, room_id: int, bufsize: int = 1024 * 1024) -> None: + def __init__(self, room_id: int, remove_filler_data: bool = False) -> None: super().__init__() self._room_id = room_id - self._bufsize = bufsize + self._remove_filler_data = remove_filler_data self._exception: Optional[Exception] = None self._ready = Condition() self._env = None @@ -83,9 +81,7 @@ class StreamRemuxer(StoppableMixin, SupportDebugMixin): def _do_start(self) -> None: logger.debug('Starting stream remuxer...') self._thread = Thread( - target=self._run, - name=f'StreamRemuxer::{self._room_id}', - daemon=True, + target=self._run, name=f'StreamRemuxer::{self._room_id}', daemon=True ) self._thread.start() @@ -124,21 +120,21 @@ class StreamRemuxer(StoppableMixin, SupportDebugMixin): logger.debug('Stopped stream remuxer') def _run_subprocess(self) -> None: - cmd = 'ffmpeg -xerror -i pipe:0 -c copy -copyts -f flv pipe:1' + cmd = 'ffmpeg -xerror -i pipe:0 -c copy -copyts' + if self._remove_filler_data: + cmd += ' -bsf:v filter_units=remove_types=12' + cmd += ' -f flv pipe:1' args = shlex.split(cmd) with Popen( - args, stdin=PIPE, stdout=PIPE, stderr=PIPE, - bufsize=self._bufsize, env=self._env, + args, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=self._env ) as self._subprocess: with self._ready: self._ready.notify_all() assert self._subprocess.stderr is not None with io.TextIOWrapper( - self._subprocess.stderr, - encoding='utf-8', - errors='backslashreplace' + self._subprocess.stderr, encoding='utf-8', errors='backslashreplace' ) as stderr: while not self._stopped: line = wait_for(stderr.readline, timeout=10) diff --git a/src/blrec/data/webapp/474.c2cc33b068a782fc.js b/src/blrec/data/webapp/474.c2cc33b068a782fc.js new file mode 100644 index 0000000..2ab0ed4 --- /dev/null +++ b/src/blrec/data/webapp/474.c2cc33b068a782fc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[474],{4474:(Vr,xt,l)=>{l.r(xt),l.d(xt,{SettingsModule:()=>qr});var d=l(9808),a=l(4182),ct=l(7525),mn=l(1945),pn=l(7484),c=l(4546),S=l(1047),A=l(6462),Mt=l(6114),q=l(3868),t=l(5e3),gt=l(404),dn=l(925),j=l(226);let _n=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[j.vT,d.ez,dn.ud,gt.cg]]}),e})();var K=l(5197),x=l(7957),ut=l(6042),W=l(647),bt=l(6699),R=l(969),w=l(655),y=l(1721),tt=l(8929),Cn=l(8514),rt=l(1086),zn=l(6787),vn=l(591),On=l(2986),Tt=l(7545),nt=l(7625),Pt=l(685),m=l(1894);const B=["*"];function kn(e,o){1&e&&t.Hsn(0)}const Dn=["nz-list-item-actions",""];function Nn(e,o){}function En(e,o){1&e&&t._UZ(0,"em",3)}function Bn(e,o){if(1&e&&(t.TgZ(0,"li"),t.YNc(1,Nn,0,0,"ng-template",1),t.YNc(2,En,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 qn(e,o){}const St=function(e,o){return{$implicit:e,index:o}};function In(e,o){if(1&e&&(t.ynx(0),t.YNc(1,qn,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 Vn(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,In,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 Qn(e,o){if(1&e&&(t.ynx(0),t._uU(1),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Oqu(n.nzHeader)}}function Ln(e,o){if(1&e&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Qn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzHeader)}}function Jn(e,o){1&e&&t._UZ(0,"div"),2&e&&t.Udp("min-height",53,"px")}function Un(e,o){}function Yn(e,o){if(1&e&&(t.TgZ(0,"div",13),t.YNc(1,Un,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 Wn(e,o){if(1&e&&(t.TgZ(0,"div",11),t.YNc(1,Yn,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 Rn(e,o){if(1&e&&t._UZ(0,"nz-list-empty",14),2&e){const n=t.oxw();t.Q6J("nzNoResult",n.nzNoResult)}}function Hn(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 $n(e,o){if(1&e&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,Hn,2,1,"ng-container",10),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzFooter)}}function Gn(e,o){}function jn(e,o){}function Xn(e,o){if(1&e&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,jn,0,0,"ng-template",6),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzPagination)}}const Kn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],te=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function ne(e,o){if(1&e&&t._UZ(0,"ul",6),2&e){const n=t.oxw(2);t.Q6J("nzActions",n.nzActions)}}function ee(e,o){if(1&e&&(t.YNc(0,ne,1,1,"ul",5),t.Hsn(1)),2&e){const n=t.oxw();t.Q6J("ngIf",n.nzActions&&n.nzActions.length>0)}}function ie(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 oe(e,o){if(1&e&&(t.ynx(0),t.YNc(1,ie,2,1,"ng-container",8),t.BQk()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzContent)}}function re(e,o){if(1&e&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,oe,2,1,"ng-container",7)),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",n.nzContent)}}function ae(e,o){1&e&&t.Hsn(0,3)}function se(e,o){}function le(e,o){}function ce(e,o){}function ge(e,o){}function ue(e,o){if(1&e&&(t.YNc(0,se,0,0,"ng-template",9),t.YNc(1,le,0,0,"ng-template",9),t.YNc(2,ce,0,0,"ng-template",9),t.YNc(3,ge,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 me(e,o){}function pe(e,o){}function de(e,o){}function he(e,o){if(1&e&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,de,0,0,"ng-template",9),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",n.nzExtra)}}function fe(e,o){}function _e(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,me,0,0,"ng-template",9),t.YNc(3,pe,0,0,"ng-template",9),t.qZA(),t.YNc(4,he,2,1,"nz-list-item-extra",7),t.YNc(5,fe,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 Ce=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],ze=["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 dt=(()=>{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:B,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:B,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.YNc(0,kn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),yt=(()=>{class e{constructor(n,i){this.ngZone=n,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new tt.xQ,this.inputActionChanges$=new tt.xQ,this.contentChildrenChanges$=(0,Cn.P)(()=>this.nzListItemActions?(0,rt.of)(null):this.ngZone.onStable.asObservable().pipe((0,On.q)(1),(0,Tt.w)(()=>this.contentChildrenChanges$))),(0,zn.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,nt.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:Dn,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,Bn,3,2,"li",0),2&n&&t.Q6J("ngForOf",i.actions)},directives:[d.sg,d.tP,d.O5],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-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})(),ft=(()=>{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:B,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),_t=(()=>{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:B,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),e})(),Ct=(()=>{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:B,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})(),zt=(()=>{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 vn.X(this.nzItemLayout),this.destroy$=new tt.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,nt.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(j.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(n,i,r){if(1&n&&(t.Suo(r,_t,5),t.Suo(r,Ct,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:te,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(Kn),t.YNc(0,Vn,3,1,"ng-template",null,0,t.W1O),t.YNc(2,Ln,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,Jn,1,2,"div",3),t.YNc(7,Wn,2,2,"div",4),t.YNc(8,Rn,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,$n,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,Gn,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,Xn,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:[ft,ct.W,ht,_t,Ct,d.sg,d.tP,d.O5,R.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,y.yF)()],e.prototype,"nzBordered",void 0),(0,w.gn)([(0,y.yF)()],e.prototype,"nzLoading",void 0),(0,w.gn)([(0,y.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(zt),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,dt,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:ze,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(Ce),t.YNc(0,ee,2,1,"ng-template",null,0,t.W1O),t.YNc(2,re,3,1,"ng-template",null,1,t.W1O),t.YNc(4,ae,1,0,"ng-template",null,2,t.W1O),t.YNc(6,ue,4,4,"ng-template",null,3,t.W1O),t.YNc(8,_e,6,4,"ng-container",4)),2&n){const r=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",r)}},directives:[yt,dt,d.O5,R.f,d.tP],encapsulation:2,changeDetection:0}),(0,w.gn)([(0,y.yF)()],e.prototype,"nzNoFlex",void 0),e})(),xe=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[j.vT,d.ez,ct.j,m.Jb,bt.Rt,R.T,Pt.Xo]]}),e})();var at=l(3677),Me=l(5737),I=l(592),be=l(8076),H=l(9439),kt=l(4832);const Dt=["*"];function Te(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 Pe(e,o){if(1&e&&(t.TgZ(0,"div"),t.YNc(1,Te,2,2,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExpandedIcon)}}function Se(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 Fe(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 we(e,o){if(1&e&&(t.TgZ(0,"div",7),t.YNc(1,Fe,2,1,"ng-container",2),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",n.nzExtra)}}const Nt="collapse";let Et=(()=>{class e{constructor(n,i,r){this.nzConfigService=n,this.cdr=i,this.directionality=r,this._nzModuleName=Nt,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new tt.xQ,this.nzConfigService.getConfigChangeEventForComponent(Nt).pipe((0,nt.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,nt.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(H.jY),t.Y36(t.sBO),t.Y36(j.Is,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(n,i){2&n&&t.ekj("ant-collapse-icon-position-left","left"===i.nzExpandIconPosition)("ant-collapse-icon-position-right","right"===i.nzExpandIconPosition)("ant-collapse-ghost",i.nzGhost)("ant-collapse-borderless",!i.nzBordered)("ant-collapse-rtl","rtl"===i.dir)},inputs:{nzAccordion:"nzAccordion",nzBordered:"nzBordered",nzGhost:"nzGhost",nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],ngContentSelectors:Dt,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,w.gn)([(0,H.oS)(),(0,y.yF)()],e.prototype,"nzAccordion",void 0),(0,w.gn)([(0,H.oS)(),(0,y.yF)()],e.prototype,"nzBordered",void 0),(0,w.gn)([(0,H.oS)(),(0,y.yF)()],e.prototype,"nzGhost",void 0),e})();const Bt="collapsePanel";let ye=(()=>{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 tt.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,nt.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(H.jY),t.Y36(t.sBO),t.Y36(Et,1),t.Y36(kt.P,8))},e.\u0275cmp=t.Xpm({type:e,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(n,i){2&n&&t.ekj("ant-collapse-no-arrow",!i.nzShowArrow)("ant-collapse-item-active",i.nzActive)("ant-collapse-item-disabled",i.nzDisabled)},inputs:{nzActive:"nzActive",nzDisabled:"nzDisabled",nzShowArrow:"nzShowArrow",nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],ngContentSelectors:Dt,decls:7,vars:8,consts:[["role","button",1,"ant-collapse-header",3,"click"],[4,"ngIf"],[4,"nzStringTemplateOutlet"],["class","ant-collapse-extra",4,"ngIf"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"],[1,"ant-collapse-extra"]],template:function(n,i){1&n&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,Pe,2,1,"div",1),t.YNc(2,Se,2,1,"ng-container",2),t.YNc(3,we,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,R.f,W.Ls],encapsulation:2,data:{animation:[be.J_]},changeDetection:0}),(0,w.gn)([(0,y.yF)()],e.prototype,"nzActive",void 0),(0,w.gn)([(0,y.yF)()],e.prototype,"nzDisabled",void 0),(0,w.gn)([(0,H.oS)(),(0,y.yF)()],e.prototype,"nzShowArrow",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:[[j.vT,d.ez,W.PV,R.T,kt.g]]}),e})();var Ae=l(4466),Z=l(7221),k=l(7106),D=l(2306),V=l(5278),N=l(5136);let qt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["output","logging","header","danmaku","recorder","postprocessing","space"]).pipe((0,k.X)(3,300),(0,Z.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(D.Kf),t.LFG(V.zb),t.LFG(N.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var F=l(4850);let It=(()=>{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,F.U)(r=>r.emailNotification),(0,k.X)(3,300),(0,Z.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(D.Kf),t.LFG(V.zb),t.LFG(N.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,F.U)(r=>r.serverchanNotification),(0,k.X)(3,300),(0,Z.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(D.Kf),t.LFG(V.zb),t.LFG(N.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(["pushdeerNotification"]).pipe((0,F.U)(r=>r.pushdeerNotification),(0,k.X)(3,300),(0,Z.K)(r=>{throw this.logger.error("Failed to get PushDeer notification settings:",r),this.notification.error("\u83b7\u53d6 pushdeer \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(D.Kf),t.LFG(V.zb),t.LFG(N.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,F.U)(r=>r.pushplusNotification),(0,k.X)(3,300),(0,Z.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(D.Kf),t.LFG(V.zb),t.LFG(N.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Jt=(()=>{class e{constructor(n,i,r){this.logger=n,this.notification=i,this.settingService=r}resolve(n,i){return this.settingService.getSettings(["telegramNotification"]).pipe((0,F.U)(r=>r.telegramNotification),(0,k.X)(3,300),(0,Z.K)(r=>{throw this.logger.error("Failed to get telegram notification settings:",r),this.notification.error("\u83b7\u53d6 telegram \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",r.message,{nzDuration:0}),r}))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(D.Kf),t.LFG(V.zb),t.LFG(N.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})(),Ut=(()=>{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,F.U)(r=>r.webhooks),(0,k.X)(3,300),(0,Z.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(D.Kf),t.LFG(V.zb),t.LFG(N.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var f=l(2302),st=l(2198),Yt=l(2014),ke=l(7770),De=l(353),Wt=l(4704),C=l(2340);const _="RouterScrollService",Rt="defaultViewport",Ht="customViewport";let Ne=(()=>{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(`${_}:: constructor`),C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Subscribing to router events`);const g=this.router.events.pipe((0,st.h)(u=>u instanceof f.OD||u instanceof f.m2),(0,Yt.R)((u,p)=>{var T,P;C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Updating the known scroll positions`);const U=Object.assign({},u.positions);return p instanceof f.OD&&this.scrollDefaultViewport&&(C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Storing the scroll position of the default viewport`),U[`${p.id}-${Rt}`]=this.viewportScroller.getScrollPosition()),p instanceof f.OD&&this.customViewportToScroll&&(C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Storing the scroll position of the custom viewport`),U[`${p.id}-${Ht}`]=this.customViewportToScroll.scrollTop),{event:p,positions:U,trigger:p instanceof f.OD?p.navigationTrigger:u.trigger,idToRestore:p instanceof f.OD&&p.restoredState&&p.restoredState.navigationId+1||u.idToRestore,routeData:null===(P=null===(T=this.activatedRoute.firstChild)||void 0===T?void 0:T.routeConfig)||void 0===P?void 0:P.data}}),(0,st.h)(u=>!!u.trigger),(0,ke.QV)(De.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(Y=>u.event.url.indexOf(Y.partialRoute)>-1),T=p&&p.behaviour===Wt.g.KEEP_POSITION||!1,P=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Wt.g.KEEP_POSITION||!1,U=T||P;if(u.event instanceof f.m2){this.processRemoveQueue(this.removeQueue);const Y=u.trigger&&"imperative"===u.trigger||!1,un=!U||Y;C.N.traceRouterScrolling&&(this.logger.trace(`${_}:: Existing strategy with keep position behavior? `,T),this.logger.trace(`${_}:: Route data with keep position behavior? `,P),this.logger.trace(`${_}:: Imperative trigger? `,Y),this.logger.debug(`${_}:: Should scroll? `,un)),un?(this.scrollDefaultViewport&&(C.N.traceRouterScrolling&&this.logger.debug(`${_}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(C.N.traceRouterScrolling&&this.logger.debug(`${_}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(C.N.traceRouterScrolling&&this.logger.debug(`${_}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${Rt}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Ht}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(Ir=>Ir.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(`${_}:: 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(`${_}:: Adding a strategy for partial route: [${n}]`,i),this.addQueue.push({partialRoute:n,behaviour:i})}removeStrategyForPartialRoute(n){C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Removing strategory for: [${n}]: `),this.removeQueue.push(n)}setCustomViewportToScroll(n){C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Setting a custom viewport to scroll: `,n),this.customViewportToScroll=n}disableScrollDefaultViewport(){C.N.traceRouterScrolling&&this.logger.trace(`${_}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){C.N.traceRouterScrolling&&this.logger.trace(`${_}:: 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(`${_}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(f.F0),t.LFG(f.gz),t.LFG(d.EM),t.LFG(D.Kf))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Q=l(4670),E=l(3523),Ee=l(3496),Be=l(1149),qe=l(7242);const z=function Ie(e,o){var n={};return o=(0,qe.Z)(o,3),(0,Be.Z)(e,function(i,r,s){(0,Ee.Z)(n,r,o(i,r,s))}),n};var vt=l(2994),Ve=l(4884),Qe=l(4116),$t=l(4825),Ot=l(4177),Le=l(8706),Je=l(5202),Ue=l(1986),Ye=l(7583),$e=Object.prototype.hasOwnProperty;var Gt=l(1854),Xe=l(2134),jt=l(9727);function M(e){const o="result"in e;return z(e.diff,()=>o)}let b=(()=>{class e{constructor(n,i){this.message=n,this.settingService=i}syncSettings(n,i,r){return r.pipe((0,Yt.R)(([,s],g)=>[s,g,(0,Xe.e5)(g,s)],[i,i,{}]),(0,st.h)(([,,s])=>!function Ge(e){if(null==e)return!0;if((0,Le.Z)(e)&&((0,Ot.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,Je.Z)(e)||(0,Ye.Z)(e)||(0,$t.Z)(e)))return!e.length;var o=(0,Qe.Z)(e);if("[object Map]"==o||"[object Set]"==o)return!e.size;if((0,Ue.Z)(e))return!(0,Ve.Z)(e).length;for(var n in e)if($e.call(e,n))return!1;return!0}(s)),(0,Tt.w)(([s,g,u])=>this.settingService.changeSettings({[n]:u}).pipe((0,k.X)(3,300),(0,vt.b)(p=>{console.assert((0,Gt.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,F.U)(p=>({prev:s,curr:g,diff:u,result:p[n]})),(0,Z.K)(p=>(0,rt.of)({prev:s,curr:g,diff:u,error:p})))),(0,vt.b)(s=>console.debug(`${n} settings sync detail:`,s)))}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(jt.dD),t.LFG(N.R))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var h=l(8737),L=(()=>{return(e=L||(L={}))[e.EACCES=13]="EACCES",e[e.ENOTDIR=20]="ENOTDIR",L;var e})(),Ke=l(520);const ti=C.N.apiUrl;let Xt=(()=>{class e{constructor(n){this.http=n}validateDir(n){return this.http.post(ti+"/api/v1/validation/dir",{path:n})}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(Ke.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ni(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function ei(e,o){1&e&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function ii(e,o){1&e&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function oi(e,o){1&e&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function ri(e,o){if(1&e&&(t.YNc(0,ni,2,0,"ng-container",6),t.YNc(1,ei,2,0,"ng-container",6),t.YNc(2,ii,2,0,"ng-container",6),t.YNc(3,oi,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 ai(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,ri,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 si=(()=>{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,F.U)(g=>{switch(g.code){case L.ENOTDIR:return{error:!0,notADirectory:!0};case L.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,Z.K)(()=>(0,rt.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(Xt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-outdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u9a8c...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","outDir"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,ai,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 li=l(2643),lt=l(2683);function ci(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function gi(e,o){1&e&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ui(e,o){if(1&e&&(t.YNc(0,ci,2,0,"ng-container",12),t.YNc(1,gi,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 mi(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 pi(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,ui,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,mi,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 di(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 hi=(()=>{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,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[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){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,pi,22,8,"ng-container",1),t.YNc(2,di,6,2,"ng-template",null,2,t.W1O),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,a.c5,d.O5,Et,ye,I.N8,I.Om,I.$Z,I.Uo,I._C,I.p0,d.sg,ut.ix,li.dQ,lt.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),e})(),fi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.splitFileTip=h.Uk,this.syncFailedWarningTip=h.yT,this.filesizeLimitOptions=(0,E.Z)(h.Pu),this.durationLimitOptions=(0,E.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=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-output-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:27,vars:17,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["outDirEditDialog",""],["pathTemplateEditDialog",""],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","filesizeLimit",3,"nzOptions"],["formControlName","durationLimit",3,"nzOptions"]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-outdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.outDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(16).open()}),t.TgZ(10,"nz-form-label",2),t._uU(11,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(12,"nz-form-control",3),t.TgZ(13,"nz-form-text",4),t._uU(14),t.qZA(),t.TgZ(15,"app-path-template-edit-dialog",5,7),t.NdJ("confirm",function(g){return i.pathTemplateControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"nz-form-item",8),t.TgZ(18,"nz-form-label",9),t._uU(19,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(20,"nz-form-control",10),t._UZ(21,"nz-select",11),t.qZA(),t.qZA(),t.TgZ(22,"nz-form-item",8),t.TgZ(23,"nz-form-label",9),t._uU(24,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(25,"nz-form-control",10),t._UZ(26,"nz-select",12),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.outDir?i.outDirControl:"warning"),t.xp6(2),t.hij("",i.outDirControl.value," "),t.xp6(1),t.Q6J("value",i.outDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.pathTemplate?i.pathTemplateControl:"warning"),t.xp6(2),t.hij("",i.pathTemplateControl.value," "),t.xp6(1),t.Q6J("value",i.pathTemplateControl.value),t.xp6(3),t.Q6J("nzTooltipTitle",i.splitFileTip),t.xp6(2),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.filesizeLimit?i.filesizeLimitControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.filesizeLimitOptions),t.xp6(2),t.Q6J("nzTooltipTitle",i.splitFileTip),t.xp6(2),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.durationLimit?i.durationLimitControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.durationLimitOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,si,hi,K.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})(),J=(()=>{class e{constructor(){}get actionable(){var n;return(null===(n=this.directive)||void 0===n?void 0:n.valueAccessor)instanceof A.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 A.i&&this.directive.control.setValue(!this.directive.control.value))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=t.lG2({type:e,selectors:[["","appSwitchActionable",""]],contentQueries:function(n,i,r){if(1&n&&t.Suo(r,a.u,5),2&n){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(n,i){1&n&&t.NdJ("click",function(s){return i.onClick(s)}),2&n&&t.ekj("actionable",i.actionable)}}),e})();function _i(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function Ci(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function zi(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function vi(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"label",24),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 Oi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.streamFormatOptions=(0,E.Z)(h.tp),this.fmp4StreamTimeoutOptions=(0,E.Z)(h.D4),this.qualityOptions=(0,E.Z)(h.O6),this.readTimeoutOptions=(0,E.Z)(h.D4),this.disconnectionTimeoutOptions=(0,E.Z)(h.$w),this.bufferOptions=(0,E.Z)(h.Rc),this.coverSaveStrategies=(0,E.Z)(h.J_),this.settingsForm=n.group({streamFormat:[""],qualityNumber:[""],fmp4StreamTimeout:[""],readTimeout:[""],disconnectionTimeout:[""],bufferSize:[""],saveCover:[""],coverSaveStrategy:[""]})}get streamFormatControl(){return this.settingsForm.get("streamFormat")}get qualityNumberControl(){return this.settingsForm.get("qualityNumber")}get fmp4StreamTimeoutControl(){return this.settingsForm.get("fmp4StreamTimeout")}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")}get coverSaveStrategyControl(){return this.settingsForm.get("coverSaveStrategy")}ngOnChanges(){this.syncStatus=z(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:48,vars:28,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","streamFormat",3,"nzOptions"],["fmp4StreamTimeoutTip",""],["formControlName","fmp4StreamTimeout",3,"nzOptions"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["formControlName","qualityNumber",3,"nzOptions"],["appSwitchActionable","",1,"setting-item"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch",3,"nzWarningTip","nzValidateStatus"],["formControlName","saveCover"],["coverSaveStrategyTip",""],[1,"setting-control","radio",3,"nzWarningTip","nzValidateStatus"],["formControlName","coverSaveStrategy",3,"nzDisabled"],[4,"ngFor","ngForOf"],["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"],["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,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(4,_i,14,0,"ng-template",null,3,t.W1O),t.TgZ(6,"nz-form-control",4),t._UZ(7,"nz-select",5),t.qZA(),t.qZA(),t.TgZ(8,"nz-form-item",1),t.TgZ(9,"nz-form-label",2),t._uU(10,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(11,Ci,8,0,"ng-template",null,6,t.W1O),t.TgZ(13,"nz-form-control",4),t._UZ(14,"nz-select",7),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",1),t.TgZ(16,"nz-form-label",8),t._uU(17,"\u753b\u8d28"),t.qZA(),t.TgZ(18,"nz-form-control",4),t._UZ(19,"nz-select",9),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",10),t.TgZ(21,"nz-form-label",11),t._uU(22,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(23,"nz-form-control",12),t._UZ(24,"nz-switch",13),t.qZA(),t.qZA(),t.TgZ(25,"nz-form-item",1),t.TgZ(26,"nz-form-label",2),t._uU(27,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(28,zi,8,0,"ng-template",null,14,t.W1O),t.TgZ(30,"nz-form-control",15),t.TgZ(31,"nz-radio-group",16),t.YNc(32,vi,3,2,"ng-container",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(33,"nz-form-item",1),t.TgZ(34,"nz-form-label",18),t._uU(35,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(36,"nz-form-control",4),t._UZ(37,"nz-select",19),t.qZA(),t.qZA(),t.TgZ(38,"nz-form-item",1),t.TgZ(39,"nz-form-label",20),t._uU(40,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(41,"nz-form-control",4),t._UZ(42,"nz-select",21),t.qZA(),t.qZA(),t.TgZ(43,"nz-form-item",1),t.TgZ(44,"nz-form-label",22),t._uU(45,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(46,"nz-form-control",4),t._UZ(47,"nz-select",23),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(5),s=t.MAs(12),g=t.MAs(29);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",r),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.streamFormat?i.streamFormatControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.streamFormatOptions),t.xp6(2),t.Q6J("nzTooltipTitle",s),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.fmp4StreamTimeout?i.fmp4StreamTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.fmp4StreamTimeoutOptions),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(3),t.Q6J("nzTooltipTitle",g),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.coverSaveStrategy?i.coverSaveStrategyControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.saveCoverControl.value),t.xp6(1),t.Q6J("ngForOf",i.coverSaveStrategies),t.xp6(4),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.readTimeoutOptions),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,K.Vq,a.JJ,a.u,J,A.i,q.Dg,d.sg,q.Of,q.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})(),xi=(()=>{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=z(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,J,m.t3,c.iK,c.Fd,A.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 Mi(e,o){1&e&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function bi(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 Ti=(()=>{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=z(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,Mi,7,0,"ng-template",null,9,t.W1O),t.TgZ(16,"nz-form-control",10),t.TgZ(17,"nz-radio-group",11),t.YNc(18,bi,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,J,m.t3,c.iK,c.Fd,A.i,a.JJ,a.u,q.Dg,d.sg,q.Of,q.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})(),Pi=(()=>{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=z(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,K.Vq,a.JJ,a.u,J,A.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 Si(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Fi(e,o){1&e&&t.YNc(0,Si,2,0,"ng-container",6),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function wi(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,Fi,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 yi=(()=>{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,wi,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 Zi(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 Ai=(()=>{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,Zi,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})(),ki=(()=>{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=z(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,yi,Ai],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 Kt=l(7355);function Di(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function Ni(e,o){1&e&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function Ei(e,o){1&e&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function Bi(e,o){1&e&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function qi(e,o){if(1&e&&(t.YNc(0,Di,2,0,"ng-container",6),t.YNc(1,Ni,2,0,"ng-container",6),t.YNc(2,Ei,2,0,"ng-container",6),t.YNc(3,Bi,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 Ii(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,qi,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 Vi=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.validationService=r,this.value="",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.logDirAsyncValidator=s=>this.validationService.validateDir(s.value).pipe((0,F.U)(g=>{switch(g.code){case L.ENOTDIR:return{error:!0,notADirectory:!0};case L.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,Z.K)(()=>(0,rt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=n.group({logDir:["",[a.kI.required],[this.logDirAsyncValidator]]})}get control(){return this.settingsForm.get("logDir")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(n){this.visible=n,this.visibleChange.emit(n),this.changeDetector.markForCheck()}setValue(){this.control.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.control.value.trim()),this.close()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Xt))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-logdir-edit-dialog"]],inputs:{value:"value",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4fee\u6539\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55","nzCentered","",3,"nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","","nzValidatingTip","\u6b63\u5728\u9a8c\u8bc1...",3,"nzErrorTip"],["type","text","required","","nz-input","","formControlName","logDir"],["errorTip",""],[4,"ngIf"]],template:function(n,i){1&n&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Ii,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})(),Qi=(()=>{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,Kt.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,Kt.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=n.group({logDir:[""],consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get logDirControl(){return this.settingsForm.get("logDir")}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(n=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(n)),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(b))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-logging-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:24,vars:14,consts:[["nz-form","",3,"formGroup"],[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"nzWarningTip","nzValidateStatus"],[1,"setting-value"],[3,"value","confirm"],["logDirEditDialog",""],["appSwitchActionable","",1,"setting-item"],["nzNoColon","",1,"setting-label"],[1,"setting-control","select",3,"nzWarningTip","nzValidateStatus"],["formControlName","consoleLogLevel",3,"nzOptions"],[1,"setting-item"],["formControlName","maxBytes",3,"nzOptions"],["formControlName","backupCount",3,"nzOptions"]],template:function(n,i){if(1&n){const r=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(r),t.MAs(8).open()}),t.TgZ(2,"nz-form-label",2),t._uU(3,"\u65e5\u5fd7\u6587\u4ef6\u5b58\u653e\u76ee\u5f55"),t.qZA(),t.TgZ(4,"nz-form-control",3),t.TgZ(5,"nz-form-text",4),t._uU(6),t.qZA(),t.TgZ(7,"app-logdir-edit-dialog",5,6),t.NdJ("confirm",function(g){return i.logDirControl.setValue(g)}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",7),t.TgZ(10,"nz-form-label",8),t._uU(11,"\u7ec8\u7aef\u65e5\u5fd7\u8f93\u51fa\u7ea7\u522b"),t.qZA(),t.TgZ(12,"nz-form-control",9),t._UZ(13,"nz-select",10),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",11),t.TgZ(15,"nz-form-label",8),t._uU(16,"\u65e5\u5fd7\u6587\u4ef6\u5206\u5272\u5927\u5c0f"),t.qZA(),t.TgZ(17,"nz-form-control",9),t._UZ(18,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(19,"nz-form-item",11),t.TgZ(20,"nz-form-label",8),t._uU(21,"\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u6570\u91cf"),t.qZA(),t.TgZ(22,"nz-form-control",9),t._UZ(23,"nz-select",13),t.qZA(),t.qZA(),t.qZA()}2&n&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.logDir?i.logDirControl:"warning"),t.xp6(2),t.hij("",i.logDirControl.value," "),t.xp6(1),t.Q6J("value",i.logDirControl.value),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.consoleLogLevel?i.consoleLogLevelControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.logLevelOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.maxBytes?i.maxBytesControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.maxBytesOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.backupCount?i.backupCountControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.backupOptions))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,Vi,J,K.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})(),Li=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-notification-settings"]],decls:25,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","pushdeer-notification",1,"setting-item"],["routerLink","pushplus-notification",1,"setting-item"],["routerLink","telegram-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,"PushDeer \u901a\u77e5"),t.qZA(),t.TgZ(13,"span",2),t._UZ(14,"i",3),t.qZA(),t.qZA(),t.TgZ(15,"a",6),t.TgZ(16,"span",1),t._uU(17,"pushplus \u901a\u77e5"),t.qZA(),t.TgZ(18,"span",2),t._UZ(19,"i",3),t.qZA(),t.qZA(),t.TgZ(20,"a",7),t.TgZ(21,"span",1),t._uU(22,"telegram \u901a\u77e5"),t.qZA(),t.TgZ(23,"span",2),t._UZ(24,"i",3),t.qZA(),t.qZA())},directives:[f.yS,lt.w,W.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})(),Ji=(()=>{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:[f.yS,lt.w,W.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 Ui=["innerContent"];let Yi=(()=>{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(f.gz),t.Y36(D.Kf),t.Y36(Ne))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-settings"]],viewQuery:function(n,i){if(1&n&&t.Gf(Ui,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:[Q.g,fi,Oi,xi,Ti,Pi,ki,Qi,Li,Ji],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 Wi=l(7298),Ri=l(1481),tn=l(3449),Hi=l(6667),nn=l(1999),$i=l(2168);const ji=function Gi(e,o,n,i){if(!(0,nn.Z)(e))return e;for(var r=-1,s=(o=(0,tn.Z)(o,e)).length,g=s-1,u=e;null!=u&&++r0&&n(u)?o>1?rn(u,o-1,n,i,r):(0,io.Z)(r,u):i||(r[r.length]=u)}return r},lo=function so(e){return null!=e&&e.length?ao(e,1):[]},go=function co(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 an=Math.max;const ho=function po(e){return function(){return e}};var sn=l(2370),fo=l(9940),Oo=Date.now;const bo=function xo(e){var o=0,n=0;return function(){var i=Oo(),r=16-(i-n);if(n=i,r>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}(sn.Z?function(e,o){return(0,sn.Z)(e,"toString",{configurable:!0,enumerable:!1,value:ho(o),writable:!0})}:fo.Z),v=function To(e){return bo(function uo(e,o,n){return o=an(void 0===o?e.length-1:o,0),function(){for(var i=arguments,r=-1,s=an(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=z(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,J,m.t3,c.iK,c.Fd,A.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 ln=l(6422),cn=l(4843),So=l(13),Fo=l(5778),wo=l(7079),yo=l(214);function it(e){return(0,cn.z)((0,st.h)(()=>e.valid),(0,So.b)(300),function Do(){return(0,cn.z)((0,F.U)(e=>(0,ln.Z)(e,(o,n,i)=>{o[i]=function Ao(e){return"string"==typeof e||!(0,Ot.Z)(e)&&(0,yo.Z)(e)&&"[object String]"==(0,wo.Z)(e)}(n)?n.trim():n},{})))}(),(0,Fo.x)(Gt.Z))}function No(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Eo(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,No,2,0,"ng-container",17),t.YNc(1,Eo,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 qo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Io(e,o){1&e&&t.YNc(0,qo,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Vo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function Qo(e,o){1&e&&t.YNc(0,Vo,2,0,"ng-container",17),2&e&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Lo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Jo(e,o){1&e&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Uo(e,o){if(1&e&&(t.YNc(0,Lo,2,0,"ng-container",17),t.YNc(1,Jo,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 Yo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Wo(e,o){1&e&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Ro(e,o){if(1&e&&(t.YNc(0,Yo,2,0,"ng-container",17),t.YNc(1,Wo,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 Ho=(()=>{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=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(it(this.settingsForm),(0,F.U)(n=>(0,ln.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,Io,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,Qo,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,Uo,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,Ro,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=z(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,J,m.t3,c.iK,c.Fd,A.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 $o(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-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 Go=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.emailSettings=v(i,O.gP),this.notifierSettings=v(i,O._1),this.notificationSettings=v(i,O.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(f.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,$o,6,3,"ng-template",1),t.qZA())},directives:[$.q,G.Y,Q.g,et,Ho,ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function jo(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function Xo(e,o){1&e&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function Ko(e,o){if(1&e&&(t.YNc(0,jo,2,0,"ng-container",6),t.YNc(1,Xo,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 tr=(()=>{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=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe(it(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,Ko,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 nr(e,o){if(1&e&&(t.TgZ(0,"app-page-section"),t._UZ(1,"app-notifier-settings",2),t.qZA(),t.TgZ(2,"app-page-section",3),t._UZ(3,"app-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 er=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.serverchanSettings=v(i,O.gq),this.notifierSettings=v(i,O._1),this.notificationSettings=v(i,O.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(f.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,nr,6,3,"ng-template",1),t.qZA())},directives:[$.q,G.Y,Q.g,et,tr,ot],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}"],changeDetection:0}),e})();function ir(e,o){1&e&&(t.ynx(0),t._uU(1," server \u65e0\u6548 "),t.BQk())}function or(e,o){1&e&&t.YNc(0,ir,2,0,"ng-container",9),2&e&&t.Q6J("ngIf",o.$implicit.hasError("pattern"))}function rr(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 pushkey\uff01 "),t.BQk())}function ar(e,o){1&e&&(t.ynx(0),t._uU(1," pushkey \u65e0\u6548 "),t.BQk())}function sr(e,o){if(1&e&&(t.YNc(0,rr,2,0,"ng-container",9),t.YNc(1,ar,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 lr=(()=>{class e{constructor(n,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=n.group({server:["",[a.kI.pattern(/^https?:\/\/.+/)]],pushkey:["",[a.kI.required,a.kI.pattern(/^[a-zA-Z\d]{41}$/)]]})}get serverControl(){return this.settingsForm.get("server")}get pushkeyControl(){return this.settingsForm.get("pushkey")}ngOnChanges(){this.syncStatus=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushdeerNotification",this.settings,this.settingsForm.valueChanges.pipe(it(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-pushdeer-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:15,vars:7,consts:[["nz-form","",3,"formGroup"],[1,"setting-item"],["nzFor","server","nzNoColon","",1,"setting-label","align-required"],["nzHasFeedback","",1,"setting-control","input",3,"nzErrorTip","nzWarningTip","nzValidateStatus"],["id","server","type","url","placeholder","\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u670d\u52a1\u5668\uff1ahttps://api2.pushdeer.com","nz-input","","formControlName","server"],["serverErrorTip",""],["nzFor","pushkey","nzNoColon","","nzRequired","",1,"setting-label"],["id","pushkey","type","text","required","","nz-input","","formControlName","pushkey"],["pushkeyErrorTip",""],[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,"server"),t.qZA(),t.TgZ(4,"nz-form-control",3),t._UZ(5,"input",4),t.YNc(6,or,1,1,"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,"pushkey"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,sr,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",r)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.serverControl.valid&&!i.syncStatus.server?"warning":i.serverControl),t.xp6(7),t.Q6J("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.pushkeyControl.valid&&!i.syncStatus.pushkey?"warning":i.pushkeyControl)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,a.Fj,a.JJ,a.u,d.O5,a.Q7],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 cr(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-pushdeer-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.pushdeerSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let gr=(()=>{class e{constructor(n,i){this.changeDetector=n,this.route=i}ngOnInit(){this.route.data.subscribe(n=>{const i=n.settings;this.pushdeerSettings=v(i,O.jK),this.notifierSettings=v(i,O._1),this.notificationSettings=v(i,O.X),this.changeDetector.markForCheck()})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(f.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-pushdeer-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","PushDeer \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","pushdeerNotification",3,"settings"],["name","PushDeer"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,cr,6,3,"ng-template",1),t.qZA())},directives:[$.q,G.Y,Q.g,et,lr,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 ur(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function mr(e,o){1&e&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function pr(e,o){if(1&e&&(t.YNc(0,ur,2,0,"ng-container",9),t.YNc(1,mr,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 dr=(()=>{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=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe(it(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,pr,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 hr(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 fr=(()=>{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=v(i,O.q1),this.notifierSettings=v(i,O._1),this.notificationSettings=v(i,O.X)})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(f.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,hr,6,3,"ng-template",1),t.qZA())},directives:[$.q,G.Y,Q.g,et,dr,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 _r(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Cr(e,o){1&e&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function zr(e,o){if(1&e&&(t.YNc(0,_r,2,0,"ng-container",9),t.YNc(1,Cr,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"))}}function vr(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 chatid\uff01 "),t.BQk())}function Or(e,o){1&e&&(t.ynx(0),t._uU(1," chatid \u65e0\u6548 "),t.BQk())}function xr(e,o){if(1&e&&(t.YNc(0,vr,2,0,"ng-container",9),t.YNc(1,Or,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 Mr=(()=>{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(/^[0-9]{8,10}:[a-zA-Z0-9_-]{35}$/)]],chatid:["",[a.kI.required,a.kI.pattern(/^(-|[0-9]){0,}$/)]]})}get tokenControl(){return this.settingsForm.get("token")}get chatidControl(){return this.settingsForm.get("chatid")}ngOnChanges(){this.syncStatus=z(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("telegramNotification",this.settings,this.settingsForm.valueChanges.pipe(it(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-telegram-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:15,vars:7,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","chatid","nzNoColon","","nzRequired","",1,"setting-label"],["id","chatid","type","text","required","","nz-input","","formControlName","chatid"],["chatidErrorTip",""],[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,zr,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,"chatid"),t.qZA(),t.TgZ(11,"nz-form-control",3),t._UZ(12,"input",7),t.YNc(13,xr,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const r=t.MAs(7),s=t.MAs(14);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("nzErrorTip",s)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.chatidControl.valid&&!i.syncStatus.chatid?"warning":i.chatidControl)}},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 br(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-telegram-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.telegramSettings),t.xp6(2),t.Q6J("settings",n.notificationSettings)}}let Tr=(()=>{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.telegramSettings=v(i,O.wA),this.notifierSettings=v(i,O._1),this.notificationSettings=v(i,O.X)})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.sBO),t.Y36(f.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["app-telegram-notification-settings"]],decls:2,vars:0,consts:[["pageTitle","telegram \u901a\u77e5"],["appSubPageContent",""],["keyOfSettings","telegramNotification",3,"settings"],["name","telegram"],[3,"settings"],["name","\u4e8b\u4ef6"]],template:function(n,i){1&n&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,br,6,3,"ng-template",1),t.qZA())},directives:[$.q,G.Y,Q.g,et,Mr,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 gn=l(4219);function Pr(e,o){1&e&&t._UZ(0,"nz-list-empty")}function Sr(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 Fr=(()=>{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,Pr,1,0,"nz-list-empty",7),t.YNc(10,Sr,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:[zt,ft,ut.ix,lt.w,gt.SY,W.Ls,d.O5,ht,d.sg,At,at.wA,at.cm,at.RR,gn.wO,gn.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 wr(e,o){1&e&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function yr(e,o){1&e&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function Zr(e,o){if(1&e&&(t.YNc(0,wr,2,0,"ng-container",27),t.YNc(1,yr,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 Ar(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,Zr,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 kr={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 Dr=(()=>{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({},kr)),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,Ar,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 Nr(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 Er=[{path:"email-notification",component:Go,resolve:{settings:It}},{path:"serverchan-notification",component:er,resolve:{settings:Vt}},{path:"pushdeer-notification",component:gr,resolve:{settings:Qt}},{path:"pushplus-notification",component:fr,resolve:{settings:Lt}},{path:"telegram-notification",component:Tr,resolve:{settings:Jt}},{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,k.X)(3,300),(0,vt.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(f.gz),t.Y36(jt.dD),t.Y36(x.Sf),t.Y36(N.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,Nr,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:[$.q,G.Y,Q.g,Fr,Dr],styles:[""],changeDetection:0}),e})(),resolve:{settings:Ut}},{path:"",component:Yi,resolve:{settings:qt}}];let Br=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Er)],f.Bz]}),e})(),qr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({providers:[qt,It,Vt,Qt,Lt,Jt,Ut],imports:[[d.ez,Br,a.u5,a.UX,ct.j,mn.KJ,pn.vh,c.U5,S.o7,A.m,Mt.Wr,q.aF,_n,K.LV,x.Qp,ut.sL,W.PV,xe,at.b1,gt.cg,Me.S,I.HQ,Ze,Ae.m]]}),e})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/66.17103bf51c59b5c8.js b/src/blrec/data/webapp/66.17103bf51c59b5c8.js deleted file mode 100644 index 2a613f3..0000000 --- a/src/blrec/data/webapp/66.17103bf51c59b5c8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[66],{8737:(ae,I,a)=>{a.d(I,{Uk:()=>o,yT:()=>h,_m:()=>e,ip:()=>b,Dr:()=>O,Pu:()=>M,Fg:()=>A,rc:()=>w,tp:()=>D,O6:()=>S,D4:()=>F,$w:()=>L,Rc:()=>V});var i=a(8760),t=a(7355);const o="\u4f1a\u6309\u7167\u6b64\u9650\u5236\u81ea\u52a8\u5206\u5272\u6587\u4ef6",h="\u8bbe\u7f6e\u540c\u6b65\u5931\u8d25\uff01",e=/^(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?(?:\/(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?)*$/,b="{roomid} - {uname}/blive_{roomid}_{year}-{month}-{day}-{hour}{minute}{second}",O=[{name:"roomid",desc:"\u623f\u95f4\u53f7"},{name:"uname",desc:"\u4e3b\u64ad\u7528\u6237\u540d"},{name:"title",desc:"\u623f\u95f4\u6807\u9898"},{name:"area",desc:"\u76f4\u64ad\u5b50\u5206\u533a\u540d\u79f0"},{name:"parent_area",desc:"\u76f4\u64ad\u4e3b\u5206\u533a\u540d\u79f0"},{name:"year",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5e74\u4efd"},{name:"month",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u6708\u4efd"},{name:"day",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5929\u6570"},{name:"hour",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5c0f\u65f6"},{name:"minute",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5206\u949f"},{name:"second",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u79d2\u6570"}],M=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,21).map(P=>({label:`${P} GB`,value:1024**3*P}))],A=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,25).map(P=>({label:`${P} \u5c0f\u65f6`,value:3600*P}))],w=[{label:"\u81ea\u52a8",value:i.zu.AUTO},{label:"\u8c28\u614e",value:i.zu.SAFE},{label:"\u4ece\u4e0d",value:i.zu.NEVER}],D=[{label:"FLV",value:"flv"},{label:"HLS (ts)",value:"ts"},{label:"HLS (fmp4)",value:"fmp4"}],S=[{label:"4K",value:2e4},{label:"\u539f\u753b",value:1e4},{label:"\u84dd\u5149(\u675c\u6bd4)",value:401},{label:"\u84dd\u5149",value:400},{label:"\u8d85\u6e05",value:250},{label:"\u9ad8\u6e05",value:150},{label:"\u6d41\u7545",value:80}],F=[{label:"3 \u79d2",value:3},{label:"5 \u79d2",value:5},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],L=[{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600},{label:"15 \u5206\u949f",value:900},{label:"20 \u5206\u949f",value:1200},{label:"30 \u5206\u949f",value:1800}],V=[{label:"4 KB",value:4096},{label:"8 KB",value:8192},{label:"16 KB",value:16384},{label:"32 KB",value:32768},{label:"64 KB",value:65536},{label:"128 KB",value:131072},{label:"256 KB",value:262144},{label:"512 KB",value:524288},{label:"1 MB",value:1048576},{label:"2 MB",value:2097152},{label:"4 MB",value:4194304},{label:"8 MB",value:8388608},{label:"16 MB",value:16777216},{label:"32 MB",value:33554432},{label:"64 MB",value:67108864},{label:"128 MB",value:134217728},{label:"256 MB",value:268435456},{label:"512 MB",value:536870912}]},5136:(ae,I,a)=>{a.d(I,{R:()=>e});var i=a(2340),t=a(5e3),o=a(520);const h=i.N.apiUrl;let e=(()=>{class b{constructor(M){this.http=M}getSettings(M=null,A=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=M?M:[],exclude:null!=A?A:[]}})}changeSettings(M){return this.http.patch(h+"/api/v1/settings",M)}getTaskOptions(M){return this.http.get(h+`/api/v1/settings/tasks/${M}`)}changeTaskOptions(M,A){return this.http.patch(h+`/api/v1/settings/tasks/${M}`,A)}}return b.\u0275fac=function(M){return new(M||b)(t.LFG(o.eN))},b.\u0275prov=t.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},8760:(ae,I,a)=>{a.d(I,{zu:()=>i,gP:()=>t,gq:()=>o,jK:()=>h,q1:()=>e,wA:()=>b,_1:()=>O,X:()=>M});var i=(()=>{return(A=i||(i={})).AUTO="auto",A.SAFE="safe",A.NEVER="never",i;var A})();const t=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],o=["sendkey"],h=["server","pushkey"],e=["token","topic"],b=["token","chatid"],O=["enabled"],M=["notifyBegan","notifyEnded","notifyError","notifySpace"]},7512:(ae,I,a)=>{a.d(I,{q:()=>A});var i=a(5545),t=a(5e3),o=a(9808),h=a(7525),e=a(1945);function b(w,D){if(1&w&&t._UZ(0,"nz-spin",2),2&w){const S=t.oxw();t.Q6J("nzSize","large")("nzSpinning",S.loading)}}function O(w,D){if(1&w&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&w){const S=t.oxw(2);t.Q6J("ngStyle",S.contentStyles),t.xp6(1),t.Q6J("ngTemplateOutlet",S.content.templateRef)}}function M(w,D){if(1&w&&(t.TgZ(0,"div",3),t._UZ(1,"nz-page-header",4),t.YNc(2,O,2,2,"div",5),t.qZA()),2&w){const S=t.oxw();t.Q6J("ngStyle",S.pageStyles),t.xp6(1),t.Q6J("nzTitle",S.pageTitle)("nzGhost",!1),t.xp6(1),t.Q6J("ngIf",S.content)}}let A=(()=>{class w{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return w.\u0275fac=function(S){return new(S||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["app-sub-page"]],contentQueries:function(S,F,L){if(1&S&&t.Suo(L,i.Y,5),2&S){let V;t.iGM(V=t.CRH())&&(F.content=V.first)}},inputs:{pageTitle:"pageTitle",loading:"loading",pageStyles:"pageStyles",contentStyles:"contentStyles"},decls:3,vars:2,consts:[["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"spinner",3,"nzSize","nzSpinning"],[1,"sub-page",3,"ngStyle"],["nzBackIcon","",1,"page-header",3,"nzTitle","nzGhost"],["class","page-content",3,"ngStyle",4,"ngIf"],[1,"page-content",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(S,F){if(1&S&&(t.YNc(0,b,1,2,"nz-spin",0),t.YNc(1,M,3,4,"ng-template",null,1,t.W1O)),2&S){const L=t.MAs(2);t.Q6J("ngIf",F.loading)("ngIfElse",L)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),w})()},5545:(ae,I,a)=>{a.d(I,{Y:()=>t});var i=a(5e3);let t=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(i.Y36(i.Rgc))},o.\u0275dir=i.lG2({type:o,selectors:[["","appSubPageContent",""]]}),o})()},2134:(ae,I,a)=>{a.d(I,{e5:()=>h,AX:()=>e,N4:()=>b});var i=a(6422),t=a(1854),o=a(1999);function h(O,M){return function A(w,D){return(0,i.Z)(w,(S,F,L)=>{const V=Reflect.get(D,L);(0,t.Z)(F,V)||Reflect.set(S,L,(0,o.Z)(F)&&(0,o.Z)(V)?A(F,V):F)})}(O,M)}function e(O,M=" ",A=3){let w,D;if(O<=0)return"0"+M+"kbps";if(O<1e6)w=O/1e3,D="kbps";else if(O<1e9)w=O/1e6,D="Mbps";else if(O<1e12)w=O/1e9,D="Gbps";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);w=O/1e12,D="Tbps"}const S=A-Math.floor(Math.abs(Math.log10(w)))-1;return w.toFixed(S<0?0:S)+M+D}function b(O,M=" ",A=3){let w,D;if(O<=0)return"0"+M+"B/s";if(O<1e3)w=O,D="B/s";else if(O<1e6)w=O/1e3,D="KB/s";else if(O<1e9)w=O/1e6,D="MB/s";else if(O<1e12)w=O/1e9,D="GB/s";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);w=O/1e12,D="TB/s"}const S=A-Math.floor(Math.abs(Math.log10(w)))-1;return w.toFixed(S<0?0:S)+M+D}},2622:(ae,I,a)=>{a.d(I,{Z:()=>E});var o=a(3093);const e=function h(N,C){for(var y=N.length;y--;)if((0,o.Z)(N[y][0],C))return y;return-1};var O=Array.prototype.splice;function P(N){var C=-1,y=null==N?0:N.length;for(this.clear();++C-1},P.prototype.set=function L(N,C){var y=this.__data__,T=e(y,N);return T<0?(++this.size,y.push([N,C])):y[T][1]=C,this};const E=P},9329:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"Map")},3639:(ae,I,a)=>{a.d(I,{Z:()=>ge});const o=(0,a(3858).Z)(Object,"create");var w=Object.prototype.hasOwnProperty;var L=Object.prototype.hasOwnProperty;function y(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}y.prototype.clear=function h(){this.__data__=o?o(null):{},this.size=0},y.prototype.delete=function b(ie){var he=this.has(ie)&&delete this.__data__[ie];return this.size-=he?1:0,he},y.prototype.get=function D(ie){var he=this.__data__;if(o){var $=he[ie];return"__lodash_hash_undefined__"===$?void 0:$}return w.call(he,ie)?he[ie]:void 0},y.prototype.has=function V(ie){var he=this.__data__;return o?void 0!==he[ie]:L.call(he,ie)},y.prototype.set=function N(ie,he){var $=this.__data__;return this.size+=this.has(ie)?0:1,$[ie]=o&&void 0===he?"__lodash_hash_undefined__":he,this};const T=y;var f=a(2622),Z=a(9329);const pe=function J(ie,he){var $=ie.__data__;return function te(ie){var he=typeof ie;return"string"==he||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==ie:null===ie}(he)?$["string"==typeof he?"string":"hash"]:$.map};function q(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}q.prototype.clear=function K(){this.size=0,this.__data__={hash:new T,map:new(Z.Z||f.Z),string:new T}},q.prototype.delete=function me(ie){var he=pe(this,ie).delete(ie);return this.size-=he?1:0,he},q.prototype.get=function be(ie){return pe(this,ie).get(ie)},q.prototype.has=function ce(ie){return pe(this,ie).has(ie)},q.prototype.set=function re(ie,he){var $=pe(this,ie),se=$.size;return $.set(ie,he),this.size+=$.size==se?0:1,this};const ge=q},5343:(ae,I,a)=>{a.d(I,{Z:()=>P});var i=a(2622);var w=a(9329),D=a(3639);function V(E){var N=this.__data__=new i.Z(E);this.size=N.size}V.prototype.clear=function t(){this.__data__=new i.Z,this.size=0},V.prototype.delete=function h(E){var N=this.__data__,C=N.delete(E);return this.size=N.size,C},V.prototype.get=function b(E){return this.__data__.get(E)},V.prototype.has=function M(E){return this.__data__.has(E)},V.prototype.set=function F(E,N){var C=this.__data__;if(C instanceof i.Z){var y=C.__data__;if(!w.Z||y.length<199)return y.push([E,N]),this.size=++C.size,this;C=this.__data__=new D.Z(y)}return C.set(E,N),this.size=C.size,this};const P=V},8492:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=a(5946).Z.Symbol},1630:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=a(5946).Z.Uint8Array},7585:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o,h){for(var e=-1,b=null==o?0:o.length;++e{a.d(I,{Z:()=>D});var o=a(4825),h=a(4177),e=a(5202),b=a(6667),O=a(7583),A=Object.prototype.hasOwnProperty;const D=function w(S,F){var L=(0,h.Z)(S),V=!L&&(0,o.Z)(S),P=!L&&!V&&(0,e.Z)(S),E=!L&&!V&&!P&&(0,O.Z)(S),N=L||V||P||E,C=N?function i(S,F){for(var L=-1,V=Array(S);++L{a.d(I,{Z:()=>t});const t=function i(o,h){for(var e=-1,b=h.length,O=o.length;++e{a.d(I,{Z:()=>b});var i=a(3496),t=a(3093),h=Object.prototype.hasOwnProperty;const b=function e(O,M,A){var w=O[M];(!h.call(O,M)||!(0,t.Z)(w,A)||void 0===A&&!(M in O))&&(0,i.Z)(O,M,A)}},3496:(ae,I,a)=>{a.d(I,{Z:()=>o});var i=a(2370);const o=function t(h,e,b){"__proto__"==e&&i.Z?(0,i.Z)(h,e,{configurable:!0,enumerable:!0,value:b,writable:!0}):h[e]=b}},4792:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(1999),t=Object.create;const h=function(){function e(){}return function(b){if(!(0,i.Z)(b))return{};if(t)return t(b);e.prototype=b;var O=new e;return e.prototype=void 0,O}}()},1149:(ae,I,a)=>{a.d(I,{Z:()=>O});const h=function i(M){return function(A,w,D){for(var S=-1,F=Object(A),L=D(A),V=L.length;V--;){var P=L[M?V:++S];if(!1===w(F[P],P,F))break}return A}}();var e=a(1952);const O=function b(M,A){return M&&h(M,A,e.Z)}},7298:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(3449),t=a(2168);const h=function o(e,b){for(var O=0,M=(b=(0,i.Z)(b,e)).length;null!=e&&O{a.d(I,{Z:()=>h});var i=a(6623),t=a(4177);const h=function o(e,b,O){var M=b(e);return(0,t.Z)(e)?M:(0,i.Z)(M,O(e))}},7079:(ae,I,a)=>{a.d(I,{Z:()=>P});var i=a(8492),t=Object.prototype,o=t.hasOwnProperty,h=t.toString,e=i.Z?i.Z.toStringTag:void 0;var A=Object.prototype.toString;var L=i.Z?i.Z.toStringTag:void 0;const P=function V(E){return null==E?void 0===E?"[object Undefined]":"[object Null]":L&&L in Object(E)?function b(E){var N=o.call(E,e),C=E[e];try{E[e]=void 0;var y=!0}catch(f){}var T=h.call(E);return y&&(N?E[e]=C:delete E[e]),T}(E):function w(E){return A.call(E)}(E)}},771:(ae,I,a)=>{a.d(I,{Z:()=>ft});var i=a(5343),t=a(3639);function M(X){var oe=-1,ye=null==X?0:X.length;for(this.__data__=new t.Z;++oeBe))return!1;var Ze=ue.get(X),Ae=ue.get(oe);if(Ze&&Ae)return Ze==oe&&Ae==X;var Pe=-1,De=!0,Ke=2&ye?new A:void 0;for(ue.set(X,oe),ue.set(oe,X);++Pe{a.d(I,{Z:()=>re});var i=a(5343),t=a(771);var O=a(1999);const A=function M(W){return W==W&&!(0,O.Z)(W)};var w=a(1952);const L=function F(W,q){return function(ge){return null!=ge&&ge[W]===q&&(void 0!==q||W in Object(ge))}},P=function V(W){var q=function D(W){for(var q=(0,w.Z)(W),ge=q.length;ge--;){var ie=q[ge],he=W[ie];q[ge]=[ie,he,A(he)]}return q}(W);return 1==q.length&&q[0][2]?L(q[0][0],q[0][1]):function(ge){return ge===W||function e(W,q,ge,ie){var he=ge.length,$=he,se=!ie;if(null==W)return!$;for(W=Object(W);he--;){var _=ge[he];if(se&&_[2]?_[1]!==W[_[0]]:!(_[0]in W))return!1}for(;++he<$;){var x=(_=ge[he])[0],u=W[x],v=_[1];if(se&&_[2]){if(void 0===u&&!(x in W))return!1}else{var k=new i.Z;if(ie)var le=ie(u,v,x,W,q,k);if(!(void 0===le?(0,t.Z)(v,u,3,ie,k):le))return!1}}return!0}(ge,W,q)}};var E=a(7298);var y=a(5867),T=a(8042),f=a(2168);const te=function Q(W,q){return(0,T.Z)(W)&&A(q)?L((0,f.Z)(W),q):function(ge){var ie=function N(W,q,ge){var ie=null==W?void 0:(0,E.Z)(W,q);return void 0===ie?ge:ie}(ge,W);return void 0===ie&&ie===q?(0,y.Z)(ge,W):(0,t.Z)(q,ie,3)}};var H=a(9940),J=a(4177);const ce=function ne(W){return(0,T.Z)(W)?function pe(W){return function(q){return null==q?void 0:q[W]}}((0,f.Z)(W)):function Ce(W){return function(q){return(0,E.Z)(q,W)}}(W)},re=function Y(W){return"function"==typeof W?W:null==W?H.Z:"object"==typeof W?(0,J.Z)(W)?te(W[0],W[1]):P(W):ce(W)}},4884:(ae,I,a)=>{a.d(I,{Z:()=>M});var i=a(1986);const h=(0,a(5820).Z)(Object.keys,Object);var b=Object.prototype.hasOwnProperty;const M=function O(A){if(!(0,i.Z)(A))return h(A);var w=[];for(var D in Object(A))b.call(A,D)&&"constructor"!=D&&w.push(D);return w}},6932:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o){return function(h){return o(h)}}},3449:(ae,I,a)=>{a.d(I,{Z:()=>te});var i=a(4177),t=a(8042),o=a(3639);function e(H,J){if("function"!=typeof H||null!=J&&"function"!=typeof J)throw new TypeError("Expected a function");var pe=function(){var me=arguments,Ce=J?J.apply(this,me):me[0],be=pe.cache;if(be.has(Ce))return be.get(Ce);var ne=H.apply(this,me);return pe.cache=be.set(Ce,ne)||be,ne};return pe.cache=new(e.Cache||o.Z),pe}e.Cache=o.Z;const b=e;var w=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D=/\\(\\)?/g;const F=function M(H){var J=b(H,function(me){return 500===pe.size&&pe.clear(),me}),pe=J.cache;return J}(function(H){var J=[];return 46===H.charCodeAt(0)&&J.push(""),H.replace(w,function(pe,me,Ce,be){J.push(Ce?be.replace(D,"$1"):me||pe)}),J});var L=a(8492);var E=a(6460),C=L.Z?L.Z.prototype:void 0,y=C?C.toString:void 0;const f=function T(H){if("string"==typeof H)return H;if((0,i.Z)(H))return function V(H,J){for(var pe=-1,me=null==H?0:H.length,Ce=Array(me);++pe{a.d(I,{Z:()=>o});var i=a(3858);const o=function(){try{var h=(0,i.Z)(Object,"defineProperty");return h({},"",{}),h}catch(e){}}()},8346:(ae,I,a)=>{a.d(I,{Z:()=>t});const t="object"==typeof global&&global&&global.Object===Object&&global},8501:(ae,I,a)=>{a.d(I,{Z:()=>e});var i=a(8203),t=a(3976),o=a(1952);const e=function h(b){return(0,i.Z)(b,o.Z,t.Z)}},3858:(ae,I,a)=>{a.d(I,{Z:()=>f});var Z,i=a(2089),o=a(5946).Z["__core-js_shared__"],e=(Z=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var M=a(1999),A=a(4407),D=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const N=function E(Z){return!(!(0,M.Z)(Z)||function b(Z){return!!e&&e in Z}(Z))&&((0,i.Z)(Z)?P:D).test((0,A.Z)(Z))},f=function T(Z,K){var Q=function C(Z,K){return null==Z?void 0:Z[K]}(Z,K);return N(Q)?Q:void 0}},5650:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=(0,a(5820).Z)(Object.getPrototypeOf,Object)},3976:(ae,I,a)=>{a.d(I,{Z:()=>M});var o=a(3419),e=Object.prototype.propertyIsEnumerable,b=Object.getOwnPropertySymbols;const M=b?function(A){return null==A?[]:(A=Object(A),function i(A,w){for(var D=-1,S=null==A?0:A.length,F=0,L=[];++D{a.d(I,{Z:()=>te});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"DataView");var e=a(9329);const O=(0,i.Z)(t.Z,"Promise"),A=(0,i.Z)(t.Z,"Set"),D=(0,i.Z)(t.Z,"WeakMap");var S=a(7079),F=a(4407),L="[object Map]",P="[object Promise]",E="[object Set]",N="[object WeakMap]",C="[object DataView]",y=(0,F.Z)(h),T=(0,F.Z)(e.Z),f=(0,F.Z)(O),Z=(0,F.Z)(A),K=(0,F.Z)(D),Q=S.Z;(h&&Q(new h(new ArrayBuffer(1)))!=C||e.Z&&Q(new e.Z)!=L||O&&Q(O.resolve())!=P||A&&Q(new A)!=E||D&&Q(new D)!=N)&&(Q=function(H){var J=(0,S.Z)(H),pe="[object Object]"==J?H.constructor:void 0,me=pe?(0,F.Z)(pe):"";if(me)switch(me){case y:return C;case T:return L;case f:return P;case Z:return E;case K:return N}return J});const te=Q},6667:(ae,I,a)=>{a.d(I,{Z:()=>h});var t=/^(?:0|[1-9]\d*)$/;const h=function o(e,b){var O=typeof e;return!!(b=null==b?9007199254740991:b)&&("number"==O||"symbol"!=O&&t.test(e))&&e>-1&&e%1==0&&e{a.d(I,{Z:()=>b});var i=a(4177),t=a(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const b=function e(O,M){if((0,i.Z)(O))return!1;var A=typeof O;return!("number"!=A&&"symbol"!=A&&"boolean"!=A&&null!=O&&!(0,t.Z)(O))||h.test(O)||!o.test(O)||null!=M&&O in Object(M)}},1986:(ae,I,a)=>{a.d(I,{Z:()=>o});var i=Object.prototype;const o=function t(h){var e=h&&h.constructor;return h===("function"==typeof e&&e.prototype||i)}},6594:(ae,I,a)=>{a.d(I,{Z:()=>O});var i=a(8346),t="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=t&&"object"==typeof module&&module&&!module.nodeType&&module,e=o&&o.exports===t&&i.Z.process;const O=function(){try{return o&&o.require&&o.require("util").types||e&&e.binding&&e.binding("util")}catch(A){}}()},5820:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o,h){return function(e){return o(h(e))}}},5946:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(8346),t="object"==typeof self&&self&&self.Object===Object&&self;const h=i.Z||t||Function("return this")()},2168:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(6460);const h=function o(e){if("string"==typeof e||(0,i.Z)(e))return e;var b=e+"";return"0"==b&&1/e==-1/0?"-0":b}},4407:(ae,I,a)=>{a.d(I,{Z:()=>h});var t=Function.prototype.toString;const h=function o(e){if(null!=e){try{return t.call(e)}catch(b){}try{return e+""}catch(b){}}return""}},3523:(ae,I,a)=>{a.d(I,{Z:()=>_n});var i=a(5343),t=a(7585),o=a(1481),h=a(3496);const b=function e(U,fe,xe,Je){var zt=!xe;xe||(xe={});for(var ct=-1,qe=fe.length;++ct{a.d(I,{Z:()=>t});const t=function i(o,h){return o===h||o!=o&&h!=h}},5867:(ae,I,a)=>{a.d(I,{Z:()=>S});const t=function i(F,L){return null!=F&&L in Object(F)};var o=a(3449),h=a(4825),e=a(4177),b=a(6667),O=a(8696),M=a(2168);const S=function D(F,L){return null!=F&&function A(F,L,V){for(var P=-1,E=(L=(0,o.Z)(L,F)).length,N=!1;++P{a.d(I,{Z:()=>t});const t=function i(o){return o}},4825:(ae,I,a)=>{a.d(I,{Z:()=>w});var i=a(7079),t=a(214);const e=function h(D){return(0,t.Z)(D)&&"[object Arguments]"==(0,i.Z)(D)};var b=Object.prototype,O=b.hasOwnProperty,M=b.propertyIsEnumerable;const w=e(function(){return arguments}())?e:function(D){return(0,t.Z)(D)&&O.call(D,"callee")&&!M.call(D,"callee")}},4177:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=Array.isArray},8706:(ae,I,a)=>{a.d(I,{Z:()=>h});var i=a(2089),t=a(8696);const h=function o(e){return null!=e&&(0,t.Z)(e.length)&&!(0,i.Z)(e)}},5202:(ae,I,a)=>{a.d(I,{Z:()=>w});var i=a(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,O=e&&e.exports===h?i.Z.Buffer:void 0;const w=(O?O.isBuffer:void 0)||function t(){return!1}},1854:(ae,I,a)=>{a.d(I,{Z:()=>o});var i=a(771);const o=function t(h,e){return(0,i.Z)(h,e)}},2089:(ae,I,a)=>{a.d(I,{Z:()=>M});var i=a(7079),t=a(1999);const M=function O(A){if(!(0,t.Z)(A))return!1;var w=(0,i.Z)(A);return"[object Function]"==w||"[object GeneratorFunction]"==w||"[object AsyncFunction]"==w||"[object Proxy]"==w}},8696:(ae,I,a)=>{a.d(I,{Z:()=>o});const o=function t(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991}},1999:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o){var h=typeof o;return null!=o&&("object"==h||"function"==h)}},214:(ae,I,a)=>{a.d(I,{Z:()=>t});const t=function i(o){return null!=o&&"object"==typeof o}},6460:(ae,I,a)=>{a.d(I,{Z:()=>e});var i=a(7079),t=a(214);const e=function h(b){return"symbol"==typeof b||(0,t.Z)(b)&&"[object Symbol]"==(0,i.Z)(b)}},7583:(ae,I,a)=>{a.d(I,{Z:()=>Y});var i=a(7079),t=a(8696),o=a(214),J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Arguments]"]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object Boolean]"]=J["[object DataView]"]=J["[object Date]"]=J["[object Error]"]=J["[object Function]"]=J["[object Map]"]=J["[object Number]"]=J["[object Object]"]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object WeakMap]"]=!1;var Ce=a(6932),be=a(6594),ne=be.Z&&be.Z.isTypedArray;const Y=ne?(0,Ce.Z)(ne):function pe(re){return(0,o.Z)(re)&&(0,t.Z)(re.length)&&!!J[(0,i.Z)(re)]}},1952:(ae,I,a)=>{a.d(I,{Z:()=>e});var i=a(3487),t=a(4884),o=a(8706);const e=function h(b){return(0,o.Z)(b)?(0,i.Z)(b):(0,t.Z)(b)}},7355:(ae,I,a)=>{a.d(I,{Z:()=>be});var i=Math.ceil,t=Math.max;var e=a(3093),b=a(8706),O=a(6667),M=a(1999);var D=/\s/;var L=/^\s+/;const P=function V(ne){return ne&&ne.slice(0,function S(ne){for(var ce=ne.length;ce--&&D.test(ne.charAt(ce)););return ce}(ne)+1).replace(L,"")};var E=a(6460),C=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,T=/^0o[0-7]+$/i,f=parseInt;var Q=1/0;const J=function H(ne){return ne?(ne=function Z(ne){if("number"==typeof ne)return ne;if((0,E.Z)(ne))return NaN;if((0,M.Z)(ne)){var ce="function"==typeof ne.valueOf?ne.valueOf():ne;ne=(0,M.Z)(ce)?ce+"":ce}if("string"!=typeof ne)return 0===ne?ne:+ne;ne=P(ne);var Y=y.test(ne);return Y||T.test(ne)?f(ne.slice(2),Y?2:8):C.test(ne)?NaN:+ne}(ne))===Q||ne===-Q?17976931348623157e292*(ne<0?-1:1):ne==ne?ne:0:0===ne?ne:0},be=function pe(ne){return function(ce,Y,re){return re&&"number"!=typeof re&&function A(ne,ce,Y){if(!(0,M.Z)(Y))return!1;var re=typeof ce;return!!("number"==re?(0,b.Z)(Y)&&(0,O.Z)(ce,Y.length):"string"==re&&ce in Y)&&(0,e.Z)(Y[ce],ne)}(ce,Y,re)&&(Y=re=void 0),ce=J(ce),void 0===Y?(Y=ce,ce=0):Y=J(Y),function o(ne,ce,Y,re){for(var W=-1,q=t(i((ce-ne)/(Y||1)),0),ge=Array(q);q--;)ge[re?q:++W]=ne,ne+=Y;return ge}(ce,Y,re=void 0===re?ce{a.d(I,{Z:()=>t});const t=function i(){return[]}},6422:(ae,I,a)=>{a.d(I,{Z:()=>S});var i=a(7585),t=a(4792),o=a(1149),h=a(7242),e=a(5650),b=a(4177),O=a(5202),M=a(2089),A=a(1999),w=a(7583);const S=function D(F,L,V){var P=(0,b.Z)(F),E=P||(0,O.Z)(F)||(0,w.Z)(F);if(L=(0,h.Z)(L,4),null==V){var N=F&&F.constructor;V=E?P?new N:[]:(0,A.Z)(F)&&(0,M.Z)(N)?(0,t.Z)((0,e.Z)(F)):{}}return(E?i.Z:o.Z)(F,function(C,y,T){return L(V,C,y,T)}),V}},6699:(ae,I,a)=>{a.d(I,{Dz:()=>V,Rt:()=>E});var i=a(655),t=a(5e3),o=a(9439),h=a(1721),e=a(925),b=a(9808),O=a(647),M=a(226);const A=["textEl"];function w(N,C){if(1&N&&t._UZ(0,"i",3),2&N){const y=t.oxw();t.Q6J("nzType",y.nzIcon)}}function D(N,C){if(1&N){const y=t.EpF();t.TgZ(0,"img",4),t.NdJ("error",function(f){return t.CHM(y),t.oxw().imgError(f)}),t.qZA()}if(2&N){const y=t.oxw();t.Q6J("src",y.nzSrc,t.LSH),t.uIk("srcset",y.nzSrcSet,t.LSH)("alt",y.nzAlt)}}function S(N,C){if(1&N&&(t.TgZ(0,"span",5,6),t._uU(2),t.qZA()),2&N){const y=t.oxw();t.Q6J("ngStyle",y.textStyles),t.xp6(2),t.Oqu(y.nzText)}}let V=(()=>{class N{constructor(y,T,f,Z){this.nzConfigService=y,this.elementRef=T,this.cdr=f,this.platform=Z,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new t.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(y){this.nzError.emit(y),y.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const y=this.textEl.nativeElement.offsetWidth,T=this.el.getBoundingClientRect().width,f=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return N.\u0275fac=function(y){return new(y||N)(t.Y36(o.jY),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(e.t4))},N.\u0275cmp=t.Xpm({type:N,selectors:[["nz-avatar"]],viewQuery:function(y,T){if(1&y&&t.Gf(A,5),2&y){let f;t.iGM(f=t.CRH())&&(T.textEl=f.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(y,T){2&y&&(t.Udp("width",T.customSize)("height",T.customSize)("line-height",T.customSize)("font-size",T.hasIcon&&T.customSize?T.nzSize/2:null,"px"),t.ekj("ant-avatar-lg","large"===T.nzSize)("ant-avatar-sm","small"===T.nzSize)("ant-avatar-square","square"===T.nzShape)("ant-avatar-circle","circle"===T.nzShape)("ant-avatar-icon",T.nzIcon)("ant-avatar-image",T.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[t.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(y,T){1&y&&(t.YNc(0,w,1,1,"i",0),t.YNc(1,D,1,3,"img",1),t.YNc(2,S,3,2,"span",2)),2&y&&(t.Q6J("ngIf",T.nzIcon&&T.hasIcon),t.xp6(1),t.Q6J("ngIf",T.nzSrc&&T.hasSrc),t.xp6(1),t.Q6J("ngIf",T.nzText&&T.hasText))},directives:[b.O5,O.Ls,b.PC],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.oS)()],N.prototype,"nzShape",void 0),(0,i.gn)([(0,o.oS)()],N.prototype,"nzSize",void 0),(0,i.gn)([(0,o.oS)(),(0,h.Rn)()],N.prototype,"nzGap",void 0),N})(),E=(()=>{class N{}return N.\u0275fac=function(y){return new(y||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[[M.vT,b.ez,O.PV,e.ud]]}),N})()},6042:(ae,I,a)=>{a.d(I,{ix:()=>C,fY:()=>y,sL:()=>T});var i=a(655),t=a(5e3),o=a(8929),h=a(3753),e=a(7625),b=a(1059),O=a(2198),M=a(9439),A=a(1721),w=a(647),D=a(226),S=a(9808),F=a(2683),L=a(2643);const V=["nz-button",""];function P(f,Z){1&f&&t._UZ(0,"i",1)}const E=["*"],N="button";let C=(()=>{class f{constructor(K,Q,te,H,J,pe){this.ngZone=K,this.elementRef=Q,this.cdr=te,this.renderer=H,this.nzConfigService=J,this.directionality=pe,this._nzModuleName=N,this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ,this.loading$=new o.xQ,this.nzConfigService.getConfigChangeEventForComponent(N).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(K,Q){K.forEach(te=>{if("#text"===te.nodeName){const H=Q.createElement("span"),J=Q.parentNode(te);Q.insertBefore(J,H,te),Q.appendChild(H,te)}})}assertIconOnly(K,Q){const te=Array.from(K.childNodes),H=te.filter(Ce=>"I"===Ce.nodeName).length,J=te.every(Ce=>"#text"!==Ce.nodeName);te.every(Ce=>"SPAN"!==Ce.nodeName)&&J&&H>=1&&Q.addClass(K,"ant-btn-icon-only")}ngOnInit(){var K;null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.elementRef.nativeElement,"click").pipe((0,e.R)(this.destroy$)).subscribe(Q=>{var te;this.disabled&&"A"===(null===(te=Q.target)||void 0===te?void 0:te.tagName)&&(Q.preventDefault(),Q.stopImmediatePropagation())})})}ngOnChanges(K){const{nzLoading:Q}=K;Q&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,b.O)(this.nzLoading),(0,O.h)(()=>!!this.nzIconDirectiveElement),(0,e.R)(this.destroy$)).subscribe(K=>{const Q=this.nzIconDirectiveElement.nativeElement;K?this.renderer.setStyle(Q,"display","none"):this.renderer.removeStyle(Q,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(M.jY),t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(K,Q,te){if(1&K&&t.Suo(te,w.Ls,5,t.SBq),2&K){let H;t.iGM(H=t.CRH())&&(Q.nzIconDirectiveElement=H.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(K,Q){2&K&&(t.uIk("tabindex",Q.disabled?-1:null===Q.tabIndex?null:Q.tabIndex)("disabled",Q.disabled||null),t.ekj("ant-btn-primary","primary"===Q.nzType)("ant-btn-dashed","dashed"===Q.nzType)("ant-btn-link","link"===Q.nzType)("ant-btn-text","text"===Q.nzType)("ant-btn-circle","circle"===Q.nzShape)("ant-btn-round","round"===Q.nzShape)("ant-btn-lg","large"===Q.nzSize)("ant-btn-sm","small"===Q.nzSize)("ant-btn-dangerous",Q.nzDanger)("ant-btn-loading",Q.nzLoading)("ant-btn-background-ghost",Q.nzGhost)("ant-btn-block",Q.nzBlock)("ant-input-search-button",Q.nzSearch)("ant-btn-rtl","rtl"===Q.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[t.TTD],attrs:V,ngContentSelectors:E,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(K,Q){1&K&&(t.F$t(),t.YNc(0,P,1,0,"i",0),t.Hsn(1)),2&K&&t.Q6J("ngIf",Q.nzLoading)},directives:[S.O5,w.Ls,F.w],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,A.yF)()],f.prototype,"nzBlock",void 0),(0,i.gn)([(0,A.yF)()],f.prototype,"nzGhost",void 0),(0,i.gn)([(0,A.yF)()],f.prototype,"nzSearch",void 0),(0,i.gn)([(0,A.yF)()],f.prototype,"nzLoading",void 0),(0,i.gn)([(0,A.yF)()],f.prototype,"nzDanger",void 0),(0,i.gn)([(0,A.yF)()],f.prototype,"disabled",void 0),(0,i.gn)([(0,M.oS)()],f.prototype,"nzSize",void 0),f})(),y=(()=>{class f{constructor(K){this.directionality=K,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ}ngOnInit(){var K;this.dir=this.directionality.value,null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(K,Q){2&K&&t.ekj("ant-btn-group-lg","large"===Q.nzSize)("ant-btn-group-sm","small"===Q.nzSize)("ant-btn-group-rtl","rtl"===Q.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:E,decls:1,vars:0,template:function(K,Q){1&K&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),T=(()=>{class f{}return f.\u0275fac=function(K){return new(K||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[D.vT,S.ez,L.vG,w.PV,F.a],F.a,L.vG]}),f})()},7484:(ae,I,a)=>{a.d(I,{bd:()=>ge,l7:()=>ie,vh:()=>he});var i=a(655),t=a(5e3),o=a(1721),h=a(8929),e=a(7625),b=a(9439),O=a(226),M=a(9808),A=a(969);function w($,se){1&$&&t.Hsn(0)}const D=["*"];function S($,se){1&$&&(t.TgZ(0,"div",4),t._UZ(1,"div",5),t.qZA()),2&$&&t.Q6J("ngClass",se.$implicit)}function F($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,S,2,1,"div",3),t.qZA()),2&$){const _=se.$implicit;t.xp6(1),t.Q6J("ngForOf",_)}}function L($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function V($,se){if(1&$&&(t.TgZ(0,"div",11),t.YNc(1,L,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function P($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzExtra)}}function E($,se){if(1&$&&(t.TgZ(0,"div",13),t.YNc(1,P,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function N($,se){}function C($,se){if(1&$&&(t.ynx(0),t.YNc(1,N,0,0,"ng-template",14),t.BQk()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function y($,se){if(1&$&&(t.TgZ(0,"div",6),t.TgZ(1,"div",7),t.YNc(2,V,2,1,"div",8),t.YNc(3,E,2,1,"div",9),t.qZA(),t.YNc(4,C,2,1,"ng-container",10),t.qZA()),2&$){const _=t.oxw();t.xp6(2),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzExtra),t.xp6(1),t.Q6J("ngIf",_.listOfNzCardTabComponent)}}function T($,se){}function f($,se){if(1&$&&(t.TgZ(0,"div",15),t.YNc(1,T,0,0,"ng-template",14),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzCover)}}function Z($,se){1&$&&(t.ynx(0),t.Hsn(1),t.BQk())}function K($,se){1&$&&t._UZ(0,"nz-card-loading")}function Q($,se){}function te($,se){if(1&$&&(t.TgZ(0,"li"),t.TgZ(1,"span"),t.YNc(2,Q,0,0,"ng-template",14),t.qZA(),t.qZA()),2&$){const _=se.$implicit,x=t.oxw(2);t.Udp("width",100/x.nzActions.length,"%"),t.xp6(2),t.Q6J("ngTemplateOutlet",_)}}function H($,se){if(1&$&&(t.TgZ(0,"ul",16),t.YNc(1,te,3,3,"li",17),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngForOf",_.nzActions)}}function J($,se){}function pe($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,J,0,0,"ng-template",3),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzAvatar)}}function me($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function Ce($,se){if(1&$&&(t.TgZ(0,"div",7),t.YNc(1,me,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function be($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzDescription)}}function ne($,se){if(1&$&&(t.TgZ(0,"div",9),t.YNc(1,be,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzDescription)}}function ce($,se){if(1&$&&(t.TgZ(0,"div",4),t.YNc(1,Ce,2,1,"div",5),t.YNc(2,ne,2,1,"div",6),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzDescription)}}let Y=(()=>{class ${constructor(){this.nzHoverable=!0}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275dir=t.lG2({type:$,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,x){2&_&&t.ekj("ant-card-hoverable",x.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,i.gn)([(0,o.yF)()],$.prototype,"nzHoverable",void 0),$})(),re=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-tab"]],viewQuery:function(_,x){if(1&_&&t.Gf(t.Rgc,7),2&_){let u;t.iGM(u=t.CRH())&&(x.template=u.first)}},exportAs:["nzCardTab"],ngContentSelectors:D,decls:1,vars:0,template:function(_,x){1&_&&(t.F$t(),t.YNc(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),$})(),W=(()=>{class ${constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,x){1&_&&(t.TgZ(0,"div",0),t.YNc(1,F,2,1,"div",1),t.qZA()),2&_&&(t.xp6(1),t.Q6J("ngForOf",x.listOfLoading))},directives:[M.sg,M.mk],encapsulation:2,changeDetection:0}),$})();const q="card";let ge=(()=>{class ${constructor(_,x,u){this.nzConfigService=_,this.cdr=x,this.directionality=u,this._nzModuleName=q,this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new h.xQ,this.nzConfigService.getConfigChangeEventForComponent(q).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,e.R)(this.destroy$)).subscribe(x=>{this.dir=x,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return $.\u0275fac=function(_){return new(_||$)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(O.Is,8))},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card"]],contentQueries:function(_,x,u){if(1&_&&(t.Suo(u,re,5),t.Suo(u,Y,4)),2&_){let v;t.iGM(v=t.CRH())&&(x.listOfNzCardTabComponent=v.first),t.iGM(v=t.CRH())&&(x.listOfNzCardGridDirective=v)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,x){2&_&&t.ekj("ant-card-loading",x.nzLoading)("ant-card-bordered",!1===x.nzBorderless&&x.nzBordered)("ant-card-hoverable",x.nzHoverable)("ant-card-small","small"===x.nzSize)("ant-card-contain-grid",x.listOfNzCardGridDirective&&x.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===x.nzType)("ant-card-contain-tabs",!!x.listOfNzCardTabComponent)("ant-card-rtl","rtl"===x.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:D,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,x){if(1&_&&(t.F$t(),t.YNc(0,y,5,3,"div",0),t.YNc(1,f,2,1,"div",1),t.TgZ(2,"div",2),t.YNc(3,Z,2,0,"ng-container",3),t.YNc(4,K,1,0,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,H,2,1,"ul",5)),2&_){const u=t.MAs(5);t.Q6J("ngIf",x.nzTitle||x.nzExtra||x.listOfNzCardTabComponent),t.xp6(1),t.Q6J("ngIf",x.nzCover),t.xp6(1),t.Q6J("ngStyle",x.nzBodyStyle),t.xp6(1),t.Q6J("ngIf",!x.nzLoading)("ngIfElse",u),t.xp6(3),t.Q6J("ngIf",x.nzActions.length)}},directives:[W,M.O5,A.f,M.tP,M.PC,M.sg],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzBordered",void 0),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzBorderless",void 0),(0,i.gn)([(0,o.yF)()],$.prototype,"nzLoading",void 0),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzHoverable",void 0),(0,i.gn)([(0,b.oS)()],$.prototype,"nzSize",void 0),$})(),ie=(()=>{class ${constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(_,x){1&_&&(t.YNc(0,pe,2,1,"div",0),t.YNc(1,ce,3,2,"div",1)),2&_&&(t.Q6J("ngIf",x.nzAvatar),t.xp6(1),t.Q6J("ngIf",x.nzTitle||x.nzDescription))},directives:[M.O5,M.tP,A.f],encapsulation:2,changeDetection:0}),$})(),he=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[M.ez,A.T],O.vT]}),$})()},6114:(ae,I,a)=>{a.d(I,{Ie:()=>P,Wr:()=>N});var i=a(655),t=a(5e3),o=a(4182),h=a(8929),e=a(3753),b=a(7625),O=a(1721),M=a(5664),A=a(226),w=a(9808);const D=["*"],S=["inputElement"],F=["nz-checkbox",""];let V=(()=>{class C{constructor(T,f){this.nzOnChange=new t.vpe,this.checkboxList=[],T.addClass(f.nativeElement,"ant-checkbox-group")}addCheckbox(T){this.checkboxList.push(T)}removeCheckbox(T){this.checkboxList.splice(this.checkboxList.indexOf(T),1)}onChange(){const T=this.checkboxList.filter(f=>f.nzChecked).map(f=>f.nzValue);this.nzOnChange.emit(T)}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.Qsj),t.Y36(t.SBq))},C.\u0275cmp=t.Xpm({type:C,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:D,decls:1,vars:0,template:function(T,f){1&T&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),P=(()=>{class C{constructor(T,f,Z,K,Q,te){this.ngZone=T,this.elementRef=f,this.nzCheckboxWrapperComponent=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.dir="ltr",this.destroy$=new h.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(T){this.nzDisabled||(this.nzChecked=T,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(T){this.nzChecked=T,this.cdr.markForCheck()}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.nzDisabled=T,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(T=>{T||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(T=>{T.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(T=>T.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(V,8),t.Y36(t.sBO),t.Y36(M.tE),t.Y36(A.Is,8))},C.\u0275cmp=t.Xpm({type:C,selectors:[["","nz-checkbox",""]],viewQuery:function(T,f){if(1&T&&t.Gf(S,7),2&T){let Z;t.iGM(Z=t.CRH())&&(f.inputElement=Z.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(T,f){2&T&&t.ekj("ant-checkbox-wrapper-checked",f.nzChecked)("ant-checkbox-rtl","rtl"===f.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[t._Bn([{provide:o.JU,useExisting:(0,t.Gpc)(()=>C),multi:!0}])],attrs:F,ngContentSelectors:D,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(T,f){1&T&&(t.F$t(),t.TgZ(0,"span",0),t.TgZ(1,"input",1,2),t.NdJ("ngModelChange",function(K){return f.innerCheckedChange(K)}),t.qZA(),t._UZ(3,"span",3),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&T&&(t.ekj("ant-checkbox-checked",f.nzChecked&&!f.nzIndeterminate)("ant-checkbox-disabled",f.nzDisabled)("ant-checkbox-indeterminate",f.nzIndeterminate),t.xp6(1),t.Q6J("checked",f.nzChecked)("ngModel",f.nzChecked)("disabled",f.nzDisabled),t.uIk("autofocus",f.nzAutoFocus?"autofocus":null)("id",f.nzId))},directives:[o.Wl,o.JJ,o.On],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,O.yF)()],C.prototype,"nzAutoFocus",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzDisabled",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzIndeterminate",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzChecked",void 0),C})(),N=(()=>{class C{}return C.\u0275fac=function(T){return new(T||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[A.vT,w.ez,o.u5,M.rt]]}),C})()},2683:(ae,I,a)=>{a.d(I,{w:()=>o,a:()=>h});var i=a(925),t=a(5e3);let o=(()=>{class e{constructor(O,M){this.elementRef=O,this.renderer=M,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(O){return new(O||e)(t.Y36(t.SBq),t.Y36(t.Qsj))},e.\u0275dir=t.lG2({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[t.TTD]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[i.ud]]}),e})()},2643:(ae,I,a)=>{a.d(I,{dQ:()=>M,vG:()=>A});var i=a(925),t=a(5e3),o=a(6360);class h{constructor(D,S,F,L){this.triggerElement=D,this.ngZone=S,this.insertExtraNode=F,this.platformId=L,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=V=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===V.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new i.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const D=this.triggerElement,S=this.getWaveColor(D);D.setAttribute(this.waveAttributeName,"true"),!(Date.now(){D.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(D){return!!D&&"#ffffff"!==D&&"rgb(255, 255, 255)"!==D&&this.isNotGrey(D)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(D)&&"transparent"!==D}isNotGrey(D){const S=D.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(S&&S[1]&&S[2]&&S[3]&&S[1]===S[2]&&S[2]===S[3])}getWaveColor(D){const S=getComputedStyle(D);return S.getPropertyValue("border-top-color")||S.getPropertyValue("border-color")||S.getPropertyValue("background-color")}runTimeoutOutsideZone(D,S){this.ngZone.runOutsideAngular(()=>setTimeout(D,S))}}const e={disabled:!1},b=new t.OlP("nz-wave-global-options",{providedIn:"root",factory:function O(){return e}});let M=(()=>{class w{constructor(S,F,L,V,P){this.ngZone=S,this.elementRef=F,this.config=L,this.animationType=V,this.platformId=P,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let S=!1;return this.config&&"boolean"==typeof this.config.disabled&&(S=this.config.disabled),"NoopAnimations"===this.animationType&&(S=!0),S}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return w.\u0275fac=function(S){return new(S||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(b,8),t.Y36(o.Qb,8),t.Y36(t.Lbi))},w.\u0275dir=t.lG2({type:w,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),w})(),A=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[i.ud]]}),w})()},5737:(ae,I,a)=>{a.d(I,{g:()=>A,S:()=>w});var i=a(655),t=a(5e3),o=a(1721),h=a(9808),e=a(969),b=a(226);function O(D,S){if(1&D&&(t.ynx(0),t._uU(1),t.BQk()),2&D){const F=t.oxw(2);t.xp6(1),t.Oqu(F.nzText)}}function M(D,S){if(1&D&&(t.TgZ(0,"span",1),t.YNc(1,O,2,1,"ng-container",2),t.qZA()),2&D){const F=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",F.nzText)}}let A=(()=>{class D{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return D.\u0275fac=function(F){return new(F||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(F,L){2&F&&t.ekj("ant-divider-horizontal","horizontal"===L.nzType)("ant-divider-vertical","vertical"===L.nzType)("ant-divider-with-text",L.nzText)("ant-divider-plain",L.nzPlain)("ant-divider-with-text-left",L.nzText&&"left"===L.nzOrientation)("ant-divider-with-text-right",L.nzText&&"right"===L.nzOrientation)("ant-divider-with-text-center",L.nzText&&"center"===L.nzOrientation)("ant-divider-dashed",L.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(F,L){1&F&&t.YNc(0,M,2,1,"span",0),2&F&&t.Q6J("ngIf",L.nzText)},directives:[h.O5,e.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.yF)()],D.prototype,"nzDashed",void 0),(0,i.gn)([(0,o.yF)()],D.prototype,"nzPlain",void 0),D})(),w=(()=>{class D{}return D.\u0275fac=function(F){return new(F||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[b.vT,h.ez,e.T]]}),D})()},3677:(ae,I,a)=>{a.d(I,{cm:()=>re,b1:()=>he,wA:()=>ge,RR:()=>ie});var i=a(655),t=a(1159),o=a(7429),h=a(5e3),e=a(8929),b=a(591),O=a(6787),M=a(3753),A=a(8896),w=a(6053),D=a(7604),S=a(4850),F=a(7545),L=a(2198),V=a(7138),P=a(5778),E=a(7625),N=a(9439),C=a(6950),y=a(1721),T=a(2845),f=a(925),Z=a(226),K=a(9808),Q=a(4182),te=a(6042),H=a(4832),J=a(969),pe=a(647),me=a(4219),Ce=a(8076);function be(_,x){if(1&_){const u=h.EpF();h.TgZ(0,"div",0),h.NdJ("@slideMotion.done",function(k){return h.CHM(u),h.oxw().onAnimationEvent(k)})("mouseenter",function(){return h.CHM(u),h.oxw().setMouseState(!0)})("mouseleave",function(){return h.CHM(u),h.oxw().setMouseState(!1)}),h.Hsn(1),h.qZA()}if(2&_){const u=h.oxw();h.ekj("ant-dropdown-rtl","rtl"===u.dir),h.Q6J("ngClass",u.nzOverlayClassName)("ngStyle",u.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)("nzNoAnimation",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)}}const ne=["*"],Y=[C.yW.bottomLeft,C.yW.bottomRight,C.yW.topRight,C.yW.topLeft];let re=(()=>{class _{constructor(u,v,k,le,ze,Ee){this.nzConfigService=u,this.elementRef=v,this.overlay=k,this.renderer=le,this.viewContainerRef=ze,this.platform=Ee,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new e.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new b.X(!1),this.nzTrigger$=new b.X("hover"),this.overlayClose$=new e.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new h.vpe}setDropdownMenuValue(u,v){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(u,v)}ngAfterViewInit(){if(this.nzDropdownMenu){const u=this.elementRef.nativeElement,v=(0,O.T)((0,M.R)(u,"mouseenter").pipe((0,D.h)(!0)),(0,M.R)(u,"mouseleave").pipe((0,D.h)(!1))),le=(0,O.T)(this.nzDropdownMenu.mouseState$,v),ze=(0,M.R)(u,"click").pipe((0,S.U)(()=>!this.nzVisible)),Ee=this.nzTrigger$.pipe((0,F.w)(we=>"hover"===we?le:"click"===we?ze:A.E)),Fe=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,L.h)(()=>this.nzClickHide),(0,D.h)(!1)),Qe=(0,O.T)(Ee,Fe,this.overlayClose$).pipe((0,L.h)(()=>!this.nzDisabled)),Ve=(0,O.T)(this.inputVisible$,Qe);(0,w.aj)([Ve,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,S.U)(([we,je])=>we||je),(0,V.e)(150),(0,P.x)(),(0,L.h)(()=>this.platform.isBrowser),(0,E.R)(this.destroy$)).subscribe(we=>{const et=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:u).getBoundingClientRect().width;this.nzVisible!==we&&this.nzVisibleChange.emit(we),this.nzVisible=we,we?(this.overlayRef?this.overlayRef.getConfig().minWidth=et:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:et,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,O.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,L.h)(He=>!this.elementRef.nativeElement.contains(He.target))),this.overlayRef.keydownEvents().pipe((0,L.h)(He=>He.keyCode===t.hY&&!(0,t.Vb)(He)))).pipe((0,E.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([C.yW[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new o.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,E.R)(this.destroy$)).subscribe(we=>{"void"===we.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(u){const{nzVisible:v,nzDisabled:k,nzOverlayClassName:le,nzOverlayStyle:ze,nzTrigger:Ee}=u;if(Ee&&this.nzTrigger$.next(this.nzTrigger),v&&this.inputVisible$.next(this.nzVisible),k){const Fe=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Fe,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Fe,"disabled")}le&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),ze&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(N.jY),h.Y36(h.SBq),h.Y36(T.aV),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(f.t4))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[h.TTD]}),(0,i.gn)([(0,N.oS)(),(0,y.yF)()],_.prototype,"nzBackdrop",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzClickHide",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzDisabled",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzVisible",void 0),_})(),W=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({}),_})(),ge=(()=>{class _{constructor(u,v,k){this.renderer=u,this.nzButtonGroupComponent=v,this.elementRef=k}ngAfterViewInit(){const u=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&u&&this.renderer.addClass(u,"ant-dropdown-button")}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.Qsj),h.Y36(te.fY,9),h.Y36(h.SBq))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),ie=(()=>{class _{constructor(u,v,k,le,ze,Ee,Fe){this.cdr=u,this.elementRef=v,this.renderer=k,this.viewContainerRef=le,this.nzMenuService=ze,this.directionality=Ee,this.noAnimation=Fe,this.mouseState$=new b.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new h.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new e.xQ}onAnimationEvent(u){this.animationStateChange$.emit(u)}setMouseState(u){this.mouseState$.next(u)}setValue(u,v){this[u]=v,this.cdr.markForCheck()}ngOnInit(){var u;null===(u=this.directionality.change)||void 0===u||u.pipe((0,E.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(me.hl),h.Y36(Z.Is,8),h.Y36(H.P,9))},_.\u0275cmp=h.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(u,v){if(1&u&&h.Gf(h.Rgc,7),2&u){let k;h.iGM(k=h.CRH())&&(v.templateRef=k.first)}},exportAs:["nzDropdownMenu"],features:[h._Bn([me.hl,{provide:me.Cc,useValue:!0}])],ngContentSelectors:ne,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(u,v){1&u&&(h.F$t(),h.YNc(0,be,2,7,"ng-template"))},directives:[K.mk,K.PC,H.P],encapsulation:2,data:{animation:[Ce.mF]},changeDetection:0}),_})(),he=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[Z.vT,K.ez,T.U8,Q.u5,te.sL,me.ip,pe.PV,H.g,f.ud,C.e4,W,J.T],me.ip]}),_})();new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},685:(ae,I,a)=>{a.d(I,{gB:()=>ne,p9:()=>Ce,Xo:()=>ce});var i=a(7429),t=a(5e3),o=a(8929),h=a(7625),e=a(1059),b=a(9439),O=a(4170),M=a(9808),A=a(969),w=a(226);function D(Y,re){if(1&Y&&(t.ynx(0),t._UZ(1,"img",5),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.Q6J("src",W.nzNotFoundImage,t.LSH)("alt",W.isContentString?W.nzNotFoundContent:"empty")}}function S(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,D,2,2,"ng-container",4),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundImage)}}function F(Y,re){1&Y&&t._UZ(0,"nz-empty-default")}function L(Y,re){1&Y&&t._UZ(0,"nz-empty-simple")}function V(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.isContentString?W.nzNotFoundContent:W.locale.description," ")}}function P(Y,re){if(1&Y&&(t.TgZ(0,"p",6),t.YNc(1,V,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundContent)}}function E(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.nzNotFoundFooter," ")}}function N(Y,re){if(1&Y&&(t.TgZ(0,"div",7),t.YNc(1,E,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundFooter)}}function C(Y,re){1&Y&&t._UZ(0,"nz-empty",6),2&Y&&t.Q6J("nzNotFoundImage","simple")}function y(Y,re){1&Y&&t._UZ(0,"nz-empty",7),2&Y&&t.Q6J("nzNotFoundImage","simple")}function T(Y,re){1&Y&&t._UZ(0,"nz-empty")}function f(Y,re){if(1&Y&&(t.ynx(0,2),t.YNc(1,C,1,1,"nz-empty",3),t.YNc(2,y,1,1,"nz-empty",4),t.YNc(3,T,1,0,"nz-empty",5),t.BQk()),2&Y){const W=t.oxw();t.Q6J("ngSwitch",W.size),t.xp6(1),t.Q6J("ngSwitchCase","normal"),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function Z(Y,re){}function K(Y,re){if(1&Y&&t.YNc(0,Z,0,0,"ng-template",8),2&Y){const W=t.oxw(2);t.Q6J("cdkPortalOutlet",W.contentPortal)}}function Q(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.content," ")}}function te(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,K,1,1,void 0,1),t.YNc(2,Q,2,1,"ng-container",1),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("ngIf","string"!==W.contentType),t.xp6(1),t.Q6J("ngIf","string"===W.contentType)}}const H=new t.OlP("nz-empty-component-name");let J=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t.TgZ(2,"g",2),t._UZ(3,"ellipse",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t._UZ(7,"path",7),t.qZA(),t._UZ(8,"path",8),t.TgZ(9,"g",9),t._UZ(10,"ellipse",10),t._UZ(11,"path",11),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})(),pe=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t._UZ(2,"ellipse",2),t.TgZ(3,"g",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})();const me=["default","simple"];let Ce=(()=>{class Y{constructor(W,q){this.i18n=W,this.cdr=q,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new o.xQ}ngOnChanges(W){const{nzNotFoundContent:q,nzNotFoundImage:ge}=W;if(q&&(this.isContentString="string"==typeof q.currentValue),ge){const ie=ge.currentValue||"default";this.isImageBuildIn=me.findIndex(he=>he===ie)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(O.wi),t.Y36(t.sBO))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[t.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(W,q){1&W&&(t.TgZ(0,"div",0),t.YNc(1,S,2,1,"ng-container",1),t.YNc(2,F,1,0,"nz-empty-default",1),t.YNc(3,L,1,0,"nz-empty-simple",1),t.qZA(),t.YNc(4,P,2,1,"p",2),t.YNc(5,N,2,1,"div",3)),2&W&&(t.xp6(1),t.Q6J("ngIf",!q.isImageBuildIn),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"!==q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"===q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",null!==q.nzNotFoundContent),t.xp6(1),t.Q6J("ngIf",q.nzNotFoundFooter))},directives:[J,pe,M.O5,A.f],encapsulation:2,changeDetection:0}),Y})(),ne=(()=>{class Y{constructor(W,q,ge,ie){this.configService=W,this.viewContainerRef=q,this.cdr=ge,this.injector=ie,this.contentType="string",this.size="",this.destroy$=new o.xQ}ngOnChanges(W){W.nzComponentName&&(this.size=function be(Y){switch(Y){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(W.nzComponentName.currentValue)),W.specificContent&&!W.specificContent.isFirstChange()&&(this.content=W.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const W=this.content;if("string"==typeof W)this.contentType="string";else if(W instanceof t.Rgc){const q={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new i.UE(W,this.viewContainerRef,q)}else if(W instanceof t.DyG){const q=t.zs3.create({parent:this.injector,providers:[{provide:H,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new i.C5(W,this.viewContainerRef,q)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,e.O)(!0),(0,h.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(b.jY),t.Y36(t.s_b),t.Y36(t.sBO),t.Y36(t.zs3))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[t.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(W,q){1&W&&(t.YNc(0,f,4,3,"ng-container",0),t.YNc(1,te,3,2,"ng-container",1)),2&W&&(t.Q6J("ngIf",!q.content&&null!==q.specificContent),t.xp6(1),t.Q6J("ngIf",q.content))},directives:[Ce,M.O5,M.RF,M.n9,M.ED,i.Pl],encapsulation:2,changeDetection:0}),Y})(),ce=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275mod=t.oAB({type:Y}),Y.\u0275inj=t.cJS({imports:[[w.vT,M.ez,i.eL,A.T,O.YI]]}),Y})()},4546:(ae,I,a)=>{a.d(I,{Fd:()=>q,Lr:()=>re,Nx:()=>ne,iK:()=>ie,U5:()=>se,EF:()=>$});var i=a(226),t=a(5113),o=a(925),h=a(9808),e=a(5e3),b=a(969),O=a(1894),M=a(647),A=a(404),w=a(4182),D=a(8929),S=a(2654),F=a(7625),L=a(2198),V=a(4850),P=a(2994),E=a(1059),N=a(8076),C=a(1721),y=a(4170),T=a(655),f=a(9439);const Z=["*"];function K(_,x){if(1&_&&e._UZ(0,"i",6),2&_){const u=e.oxw();e.Q6J("nzType",u.iconType)}}function Q(_,x){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.innerTip)}}const te=function(_){return[_]},H=function(_){return{$implicit:_}};function J(_,x){if(1&_&&(e.TgZ(0,"div",7),e.TgZ(1,"div",8),e.YNc(2,Q,2,1,"ng-container",9),e.qZA(),e.qZA()),2&_){const u=e.oxw();e.Q6J("@helpMotion",void 0),e.xp6(1),e.Q6J("ngClass",e.VKq(4,te,"ant-form-item-explain-"+u.status)),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.innerTip)("nzStringTemplateOutletContext",e.VKq(6,H,u.validateControl))}}function pe(_,x){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.nzExtra)}}function me(_,x){if(1&_&&(e.TgZ(0,"div",10),e.YNc(1,pe,2,1,"ng-container",11),e.qZA()),2&_){const u=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.nzExtra)}}function Ce(_,x){if(1&_&&(e.ynx(0),e._UZ(1,"i",3),e.BQk()),2&_){const u=x.$implicit,v=e.oxw(2);e.xp6(1),e.Q6J("nzType",u)("nzTheme",v.tooltipIcon.theme)}}function be(_,x){if(1&_&&(e.TgZ(0,"span",1),e.YNc(1,Ce,2,2,"ng-container",2),e.qZA()),2&_){const u=e.oxw();e.Q6J("nzTooltipTitle",u.nzTooltipTitle),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.tooltipIcon.type)}}let ne=(()=>{class _{constructor(u,v,k){this.cdr=k,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item")}setWithHelpViaTips(u){this.withHelpClass=u,this.cdr.markForCheck()}setStatus(u){this.status=u,this.cdr.markForCheck()}setHasFeedback(u){this.hasFeedback=u,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(u,v){2&u&&e.ekj("ant-form-item-has-success","success"===v.status)("ant-form-item-has-warning","warning"===v.status)("ant-form-item-has-error","error"===v.status)("ant-form-item-is-validating","validating"===v.status)("ant-form-item-has-feedback",v.hasFeedback&&v.status)("ant-form-item-with-help",v.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})();const Y={type:"question-circle",theme:"outline"};let re=(()=>{class _{constructor(u,v,k,le){var ze;this.nzConfigService=u,this.renderer=k,this.directionality=le,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Y,this.dir="ltr",this.destroy$=new D.xQ,this.inputChanges$=new D.xQ,this.renderer.addClass(v.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(ze=this.directionality.change)||void 0===ze||ze.pipe((0,F.R)(this.destroy$)).subscribe(Ee=>{this.dir=Ee})}getInputObservable(u){return this.inputChanges$.pipe((0,L.h)(v=>u in v),(0,V.U)(v=>v[u]))}ngOnChanges(u){this.inputChanges$.next(u)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(f.jY),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(i.Is,8))},_.\u0275dir=e.lG2({type:_,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(u,v){2&u&&e.ekj("ant-form-horizontal","horizontal"===v.nzLayout)("ant-form-vertical","vertical"===v.nzLayout)("ant-form-inline","inline"===v.nzLayout)("ant-form-rtl","rtl"===v.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[e.TTD]}),(0,T.gn)([(0,f.oS)(),(0,C.yF)()],_.prototype,"nzNoColon",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzAutoTips",void 0),(0,T.gn)([(0,C.yF)()],_.prototype,"nzDisableAutoTips",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzTooltipIcon",void 0),_})();const W={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let q=(()=>{class _{constructor(u,v,k,le,ze,Ee){var Fe,Qe;this.nzFormItemComponent=v,this.cdr=k,this.nzFormDirective=Ee,this._hasFeedback=!1,this.validateChanges=S.w.EMPTY,this.validateString=null,this.destroyed$=new D.xQ,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",le.addClass(u.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(ze.localeChange.pipe((0,P.b)(Ve=>this.localeId=Ve.locale))),this.subscribeAutoTips(null===(Fe=this.nzFormDirective)||void 0===Fe?void 0:Fe.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.getInputObservable("nzDisableAutoTips").pipe((0,L.h)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var u;return"default"!==this.nzDisableAutoTips?(0,C.sw)(this.nzDisableAutoTips):null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzDisableAutoTips}set nzHasFeedback(u){this._hasFeedback=(0,C.sw)(u),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(u){u instanceof w.TO||u instanceof w.On?(this.validateControl=u,this.validateString=null,this.watchControl()):u instanceof w.u?(this.validateControl=u.control,this.validateString=null,this.watchControl()):(this.validateString=u,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,E.O)(null),(0,F.R)(this.destroyed$)).subscribe(u=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?W[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(u){let v;return v="warning"===u||this.validateControlStatus("INVALID","warning")?"warning":"error"===u||this.validateControlStatus("INVALID")?"error":"validating"===u||"pending"===u||this.validateControlStatus("PENDING")?"validating":"success"===u||this.validateControlStatus("VALID")?"success":null,v}validateControlStatus(u,v){if(this.validateControl){const{dirty:k,touched:le,status:ze}=this.validateControl;return(!!k||!!le)&&(v?this.validateControl.hasError(v):ze===u)}return!1}getInnerTip(u){switch(u){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var u,v,k,le,ze,Ee,Fe,Qe,Ve,we,je,et,He;if(this.validateControl){const st=this.validateControl.errors||{};let at="";for(const tt in st)if(st.hasOwnProperty(tt)&&(at=null!==(je=null!==(Fe=null!==(ze=null!==(v=null===(u=st[tt])||void 0===u?void 0:u[this.localeId])&&void 0!==v?v:null===(le=null===(k=this.nzAutoTips)||void 0===k?void 0:k[this.localeId])||void 0===le?void 0:le[tt])&&void 0!==ze?ze:null===(Ee=this.nzAutoTips.default)||void 0===Ee?void 0:Ee[tt])&&void 0!==Fe?Fe:null===(we=null===(Ve=null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.nzAutoTips)||void 0===Ve?void 0:Ve[this.localeId])||void 0===we?void 0:we[tt])&&void 0!==je?je:null===(He=null===(et=this.nzFormDirective)||void 0===et?void 0:et.nzAutoTips.default)||void 0===He?void 0:He[tt]),at)break;this.autoErrorTip=at}}subscribeAutoTips(u){null==u||u.pipe((0,F.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(u){const{nzDisableAutoTips:v,nzAutoTips:k,nzSuccessTip:le,nzWarningTip:ze,nzErrorTip:Ee,nzValidatingTip:Fe}=u;v||k?(this.updateAutoErrorTip(),this.setStatus()):(le||ze||Ee||Fe)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof w.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(ne,9),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(y.wi),e.Y36(re,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-control"]],contentQueries:function(u,v,k){if(1&u&&e.Suo(k,w.a5,5),2&u){let le;e.iGM(le=e.CRH())&&(v.defaultValidateControl=le.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[e.TTD],ngContentSelectors:Z,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"span",2),e.YNc(4,K,1,1,"i",3),e.qZA(),e.qZA(),e.YNc(5,J,3,8,"div",4),e.YNc(6,me,2,1,"div",5)),2&u&&(e.xp6(4),e.Q6J("ngIf",v.nzHasFeedback&&v.iconType),e.xp6(1),e.Q6J("ngIf",v.innerTip),e.xp6(1),e.Q6J("ngIf",v.nzExtra))},directives:[h.O5,M.Ls,h.mk,b.f],encapsulation:2,data:{animation:[N.c8]},changeDetection:0}),_})();function ge(_){const x="string"==typeof _?{type:_}:_;return Object.assign(Object.assign({},Y),x)}let ie=(()=>{class _{constructor(u,v,k,le){this.cdr=k,this.nzFormDirective=le,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.h)(()=>"default"===this.noColon),(0,F.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.h)(()=>"default"===this._tooltipIcon),(0,F.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(u){this.noColon=(0,C.sw)(u)}get nzNoColon(){var u;return"default"!==this.noColon?this.noColon:null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzNoColon}set nzTooltipIcon(u){this._tooltipIcon=ge(u)}get tooltipIcon(){var u;return"default"!==this._tooltipIcon?this._tooltipIcon:ge((null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzTooltipIcon)||Y)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(re,12))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-label"]],inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzFormLabel"],ngContentSelectors:Z,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"label"),e.Hsn(1),e.YNc(2,be,2,2,"span",0),e.qZA()),2&u&&(e.ekj("ant-form-item-no-colon",v.nzNoColon)("ant-form-item-required",v.nzRequired),e.uIk("for",v.nzFor),e.xp6(2),e.Q6J("ngIf",v.nzTooltipTitle))},directives:[h.O5,A.SY,b.f,M.Ls],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,C.yF)()],_.prototype,"nzRequired",void 0),_})(),$=(()=>{class _{constructor(u,v){this.elementRef=u,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-form-text")}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-text"]],exportAs:["nzFormText"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})(),se=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[i.vT,h.ez,O.Jb,M.PV,A.cg,t.xu,o.ud,b.T],O.Jb]}),_})()},1894:(ae,I,a)=>{a.d(I,{t3:()=>S,Jb:()=>F,SK:()=>D});var i=a(5e3),t=a(5647),o=a(8929),h=a(7625),e=a(4090),b=a(5113),O=a(925),M=a(226),A=a(1721),w=a(9808);let D=(()=>{class L{constructor(P,E,N,C,y,T,f){this.elementRef=P,this.renderer=E,this.mediaMatcher=N,this.ngZone=C,this.platform=y,this.breakpointService=T,this.directionality=f,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new t.t(1),this.dir="ltr",this.destroy$=new o.xQ}getGutter(){const P=[null,null],E=this.nzGutter||0;return(Array.isArray(E)?E:[E,null]).forEach((C,y)=>{"object"==typeof C&&null!==C?(P[y]=null,Object.keys(e.WV).map(T=>{const f=T;this.mediaMatcher.matchMedia(e.WV[f]).matches&&C[f]&&(P[y]=C[f])})):P[y]=Number(C)||null}),P}setGutterStyle(){const[P,E]=this.getGutter();this.actualGutter$.next([P,E]);const N=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,`-${y/2}px`)};N("margin-left",P),N("margin-right",P),N("margin-top",E),N("margin-bottom",E)}ngOnInit(){var P;this.dir=this.directionality.value,null===(P=this.directionality.change)||void 0===P||P.pipe((0,h.R)(this.destroy$)).subscribe(E=>{this.dir=E}),this.setGutterStyle()}ngOnChanges(P){P.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(e.WV).pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(P){return new(P||L)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(b.vx),i.Y36(i.R0b),i.Y36(O.t4),i.Y36(e.r3),i.Y36(M.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:18,hostBindings:function(P,E){2&P&&i.ekj("ant-row-top","top"===E.nzAlign)("ant-row-middle","middle"===E.nzAlign)("ant-row-bottom","bottom"===E.nzAlign)("ant-row-start","start"===E.nzJustify)("ant-row-end","end"===E.nzJustify)("ant-row-center","center"===E.nzJustify)("ant-row-space-around","space-around"===E.nzJustify)("ant-row-space-between","space-between"===E.nzJustify)("ant-row-rtl","rtl"===E.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[i.TTD]}),L})(),S=(()=>{class L{constructor(P,E,N,C){this.elementRef=P,this.nzRowDirective=E,this.renderer=N,this.directionality=C,this.classMap={},this.destroy$=new o.xQ,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const P=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,A.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,A.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,A.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,A.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,A.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const E in this.classMap)this.classMap.hasOwnProperty(E)&&this.renderer.removeClass(this.elementRef.nativeElement,E);this.classMap=Object.assign({},P);for(const E in this.classMap)this.classMap.hasOwnProperty(E)&&this.classMap[E]&&this.renderer.addClass(this.elementRef.nativeElement,E)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(P){return"number"==typeof P?`${P} ${P} auto`:"string"==typeof P&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(P)?`0 0 ${P}`:P}generateClass(){const E={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(N=>{const C=N.replace("nz","").toLowerCase();if((0,A.DX)(this[N]))if("number"==typeof this[N]||"string"==typeof this[N])E[`ant-col-${C}-${this[N]}`]=!0;else{const y=this[N];["span","pull","push","offset","order"].forEach(f=>{E[`ant-col-${C}${"span"===f?"-":`-${f}-`}${y[f]}`]=y&&(0,A.DX)(y[f])})}}),E}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe((0,h.R)(this.destroy$)).subscribe(P=>{this.dir=P,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(P){this.setHostClassMap();const{nzFlex:E}=P;E&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,h.R)(this.destroy$)).subscribe(([P,E])=>{const N=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,y/2+"px")};N("padding-left",P),N("padding-right",P),N("padding-top",E),N("padding-bottom",E)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(P){return new(P||L)(i.Y36(i.SBq),i.Y36(D,9),i.Y36(i.Qsj),i.Y36(M.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(P,E){2&P&&i.Udp("flex",E.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[i.TTD]}),L})(),F=(()=>{class L{}return L.\u0275fac=function(P){return new(P||L)},L.\u0275mod=i.oAB({type:L}),L.\u0275inj=i.cJS({imports:[[M.vT,w.ez,b.xu,O.ud]]}),L})()},1047:(ae,I,a)=>{a.d(I,{Zp:()=>q,gB:()=>he,ke:()=>ie,o7:()=>_});var i=a(655),t=a(5e3),o=a(8929),h=a(6787),e=a(2198),b=a(7625),O=a(1059),M=a(7545),A=a(1709),w=a(4850),D=a(1721),S=a(4182),F=a(226),L=a(5664),V=a(9808),P=a(647),E=a(969),N=a(925);const C=["nz-input-group-slot",""];function y(x,u){if(1&x&&t._UZ(0,"i",2),2&x){const v=t.oxw();t.Q6J("nzType",v.icon)}}function T(x,u){if(1&x&&(t.ynx(0),t._uU(1),t.BQk()),2&x){const v=t.oxw();t.xp6(1),t.Oqu(v.template)}}function f(x,u){if(1&x&&t._UZ(0,"span",7),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnBeforeIcon)("template",v.nzAddOnBefore)}}function Z(x,u){}function K(x,u){if(1&x&&(t.TgZ(0,"span",8),t.YNc(1,Z,0,0,"ng-template",9),t.qZA()),2&x){const v=t.oxw(2),k=t.MAs(4);t.ekj("ant-input-affix-wrapper-sm",v.isSmall)("ant-input-affix-wrapper-lg",v.isLarge),t.xp6(1),t.Q6J("ngTemplateOutlet",k)}}function Q(x,u){if(1&x&&t._UZ(0,"span",7),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnAfterIcon)("template",v.nzAddOnAfter)}}function te(x,u){if(1&x&&(t.TgZ(0,"span",4),t.YNc(1,f,1,2,"span",5),t.YNc(2,K,2,5,"span",6),t.YNc(3,Q,1,2,"span",5),t.qZA()),2&x){const v=t.oxw(),k=t.MAs(6);t.xp6(1),t.Q6J("ngIf",v.nzAddOnBefore||v.nzAddOnBeforeIcon),t.xp6(1),t.Q6J("ngIf",v.isAffix)("ngIfElse",k),t.xp6(1),t.Q6J("ngIf",v.nzAddOnAfter||v.nzAddOnAfterIcon)}}function H(x,u){}function J(x,u){if(1&x&&t.YNc(0,H,0,0,"ng-template",9),2&x){t.oxw(2);const v=t.MAs(4);t.Q6J("ngTemplateOutlet",v)}}function pe(x,u){if(1&x&&t.YNc(0,J,1,1,"ng-template",10),2&x){const v=t.oxw(),k=t.MAs(6);t.Q6J("ngIf",v.isAffix)("ngIfElse",k)}}function me(x,u){if(1&x&&t._UZ(0,"span",13),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzPrefixIcon)("template",v.nzPrefix)}}function Ce(x,u){}function be(x,u){if(1&x&&t._UZ(0,"span",14),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzSuffixIcon)("template",v.nzSuffix)}}function ne(x,u){if(1&x&&(t.YNc(0,me,1,2,"span",11),t.YNc(1,Ce,0,0,"ng-template",9),t.YNc(2,be,1,2,"span",12)),2&x){const v=t.oxw(),k=t.MAs(6);t.Q6J("ngIf",v.nzPrefix||v.nzPrefixIcon),t.xp6(1),t.Q6J("ngTemplateOutlet",k),t.xp6(1),t.Q6J("ngIf",v.nzSuffix||v.nzSuffixIcon)}}function ce(x,u){1&x&&t.Hsn(0)}const Y=["*"];let q=(()=>{class x{constructor(v,k,le,ze){this.ngControl=v,this.directionality=ze,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new o.xQ,this.dir="ltr",this.destroy$=new o.xQ,k.addClass(le.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(v){this._disabled=null!=v&&"false"!=`${v}`}ngOnInit(){var v,k;this.ngControl&&(null===(v=this.ngControl.statusChanges)||void 0===v||v.pipe((0,e.h)(()=>null!==this.ngControl.disabled),(0,b.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(k=this.directionality.change)||void 0===k||k.pipe((0,b.R)(this.destroy$)).subscribe(le=>{this.dir=le})}ngOnChanges(v){const{disabled:k}=v;k&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(S.a5,10),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(F.Is,8))},x.\u0275dir=t.lG2({type:x,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(v,k){2&v&&(t.uIk("disabled",k.disabled||null),t.ekj("ant-input-disabled",k.disabled)("ant-input-borderless",k.nzBorderless)("ant-input-lg","large"===k.nzSize)("ant-input-sm","small"===k.nzSize)("ant-input-rtl","rtl"===k.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[t.TTD]}),(0,i.gn)([(0,D.yF)()],x.prototype,"nzBorderless",void 0),x})(),ge=(()=>{class x{constructor(){this.icon=null,this.type=null,this.template=null}}return x.\u0275fac=function(v){return new(v||x)},x.\u0275cmp=t.Xpm({type:x,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(v,k){2&v&&t.ekj("ant-input-group-addon","addon"===k.type)("ant-input-prefix","prefix"===k.type)("ant-input-suffix","suffix"===k.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:C,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(v,k){1&v&&(t.YNc(0,y,1,1,"i",0),t.YNc(1,T,2,1,"ng-container",1)),2&v&&(t.Q6J("ngIf",k.icon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",k.template))},directives:[V.O5,P.Ls,E.f],encapsulation:2,changeDetection:0}),x})(),ie=(()=>{class x{constructor(v){this.elementRef=v}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(t.SBq))},x.\u0275dir=t.lG2({type:x,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),x})(),he=(()=>{class x{constructor(v,k,le,ze){this.focusMonitor=v,this.elementRef=k,this.cdr=le,this.directionality=ze,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new o.xQ}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(v=>v.nzSize=this.nzSize)}ngOnInit(){var v;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(k=>{this.focused=!!k,this.cdr.markForCheck()}),this.dir=this.directionality.value,null===(v=this.directionality.change)||void 0===v||v.pipe((0,b.R)(this.destroy$)).subscribe(k=>{this.dir=k})}ngAfterContentInit(){this.updateChildrenInputSize();const v=this.listOfNzInputDirective.changes.pipe((0,O.O)(this.listOfNzInputDirective));v.pipe((0,M.w)(k=>(0,h.T)(v,...k.map(le=>le.disabled$))),(0,A.zg)(()=>v),(0,w.U)(k=>k.some(le=>le.disabled)),(0,b.R)(this.destroy$)).subscribe(k=>{this.disabled=k,this.cdr.markForCheck()})}ngOnChanges(v){const{nzSize:k,nzSuffix:le,nzPrefix:ze,nzPrefixIcon:Ee,nzSuffixIcon:Fe,nzAddOnAfter:Qe,nzAddOnBefore:Ve,nzAddOnAfterIcon:we,nzAddOnBeforeIcon:je}=v;k&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(le||ze||Ee||Fe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Qe||Ve||we||je)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(L.tE),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(F.Is,8))},x.\u0275cmp=t.Xpm({type:x,selectors:[["nz-input-group"]],contentQueries:function(v,k,le){if(1&v&&t.Suo(le,q,4),2&v){let ze;t.iGM(ze=t.CRH())&&(k.listOfNzInputDirective=ze)}},hostVars:40,hostBindings:function(v,k){2&v&&t.ekj("ant-input-group-compact",k.nzCompact)("ant-input-search-enter-button",k.nzSearch)("ant-input-search",k.nzSearch)("ant-input-search-rtl","rtl"===k.dir)("ant-input-search-sm",k.nzSearch&&k.isSmall)("ant-input-search-large",k.nzSearch&&k.isLarge)("ant-input-group-wrapper",k.isAddOn)("ant-input-group-wrapper-rtl","rtl"===k.dir)("ant-input-group-wrapper-lg",k.isAddOn&&k.isLarge)("ant-input-group-wrapper-sm",k.isAddOn&&k.isSmall)("ant-input-affix-wrapper",k.isAffix&&!k.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===k.dir)("ant-input-affix-wrapper-focused",k.isAffix&&k.focused)("ant-input-affix-wrapper-disabled",k.isAffix&&k.disabled)("ant-input-affix-wrapper-lg",k.isAffix&&!k.isAddOn&&k.isLarge)("ant-input-affix-wrapper-sm",k.isAffix&&!k.isAddOn&&k.isSmall)("ant-input-group",!k.isAffix&&!k.isAddOn)("ant-input-group-rtl","rtl"===k.dir)("ant-input-group-lg",!k.isAffix&&!k.isAddOn&&k.isLarge)("ant-input-group-sm",!k.isAffix&&!k.isAddOn&&k.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[t.TTD],ngContentSelectors:Y,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(v,k){if(1&v&&(t.F$t(),t.YNc(0,te,4,4,"span",0),t.YNc(1,pe,1,2,"ng-template",null,1,t.W1O),t.YNc(3,ne,3,3,"ng-template",null,2,t.W1O),t.YNc(5,ce,1,0,"ng-template",null,3,t.W1O)),2&v){const le=t.MAs(2);t.Q6J("ngIf",k.isAddOn)("ngIfElse",le)}},directives:[ge,V.O5,V.tP],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,D.yF)()],x.prototype,"nzSearch",void 0),(0,i.gn)([(0,D.yF)()],x.prototype,"nzCompact",void 0),x})(),_=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[[F.vT,V.ez,P.PV,N.ud,E.T]]}),x})()},7957:(ae,I,a)=>{a.d(I,{du:()=>xt,Hf:()=>_t,Qp:()=>z,Sf:()=>Xe});var i=a(2845),t=a(7429),o=a(5e3),h=a(8929),e=a(3753),b=a(8514),O=a(7625),M=a(2198),A=a(2986),w=a(1059),D=a(6947),S=a(1721),F=a(9808),L=a(6360),V=a(1777),P=a(5664),E=a(9439),N=a(4170),C=a(969),y=a(2683),T=a(647),f=a(6042),Z=a(2643);a(2313);class te{transform(d,r=0,p="B",R){if(!((0,S.ui)(d)&&(0,S.ui)(r)&&r%1==0&&r>=0))return d;let G=d,de=p;for(;"B"!==de;)G*=1024,de=te.formats[de].prev;if(R){const Ne=(0,S.YM)(te.calculateResult(te.formats[R],G),r);return te.formatResult(Ne,R)}for(const Se in te.formats)if(te.formats.hasOwnProperty(Se)){const Ne=te.formats[Se];if(G{class s{transform(r,p="px"){let Ne="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(We=>We===p)&&(Ne=p),"number"==typeof r?`${r}${Ne}`:`${r}`}}return s.\u0275fac=function(r){return new(r||s)},s.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:s,pure:!0}),s})(),ne=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[F.ez]]}),s})();var ce=a(655),Y=a(1159),re=a(226),W=a(4832);const q=["nz-modal-close",""];function ge(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"i",2),o.BQk()),2&s){const r=d.$implicit;o.xp6(1),o.Q6J("nzType",r)}}const ie=["modalElement"];function he(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function $(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"span",17),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}function se(s,d){}function _(s,d){if(1&s&&o._UZ(0,"div",17),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function x(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function u(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){return o.CHM(r),o.oxw().onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled)("nzDanger",r.config.nzOkDanger),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}const v=["nz-modal-title",""];function k(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"div",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}const le=["nz-modal-footer",""];function ze(s,d){if(1&s&&o._UZ(0,"div",5),2&s){const r=o.oxw(3);o.Q6J("innerHTML",r.config.nzFooter,o.oJD)}}function Ee(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",7),o.NdJ("click",function(){const G=o.CHM(r).$implicit;return o.oxw(4).onButtonClick(G)}),o._uU(1),o.qZA()}if(2&s){const r=d.$implicit,p=o.oxw(4);o.Q6J("hidden",!p.getButtonCallableProp(r,"show"))("nzLoading",p.getButtonCallableProp(r,"loading"))("disabled",p.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzDanger",r.danger)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),o.xp6(1),o.hij(" ",r.label," ")}}function Fe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Ee,2,9,"button",6),o.BQk()),2&s){const r=o.oxw(3);o.xp6(1),o.Q6J("ngForOf",r.buttons)}}function Qe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,ze,1,1,"div",3),o.YNc(2,Fe,2,1,"ng-container",4),o.BQk()),2&s){const r=o.oxw(2);o.xp6(1),o.Q6J("ngIf",!r.buttonsFooter),o.xp6(1),o.Q6J("ngIf",r.buttonsFooter)}}const Ve=function(s,d){return{$implicit:s,modalRef:d}};function we(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Qe,3,2,"ng-container",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",r.config.nzFooter)("nzStringTemplateOutletContext",o.WLB(2,Ve,r.config.nzComponentParams,r.modalRef))}}function je(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function et(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzType",r.config.nzOkType)("nzDanger",r.config.nzOkDanger)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}function He(s,d){if(1&s&&(o.YNc(0,je,2,4,"button",8),o.YNc(1,et,2,6,"button",9)),2&s){const r=o.oxw();o.Q6J("ngIf",null!==r.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==r.config.nzOkText)}}function st(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function at(s,d){1&s&&o._UZ(0,"div",10)}function tt(s,d){}function ft(s,d){if(1&s&&o._UZ(0,"div",11),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function X(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"div",12),o.NdJ("cancelTriggered",function(){return o.CHM(r),o.oxw().onCloseClick()})("okTriggered",function(){return o.CHM(r),o.oxw().onOkClick()}),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("modalRef",r.modalRef)}}const oe=()=>{};class ye{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=oe,this.nzOnOk=oe,this.nzIconType="question-circle"}}const ue="ant-modal-mask",Me="modal",Be={modalContainer:(0,V.X$)("modalContainer",[(0,V.SB)("void, exit",(0,V.oB)({})),(0,V.SB)("enter",(0,V.oB)({})),(0,V.eR)("* => enter",(0,V.jt)(".24s",(0,V.oB)({}))),(0,V.eR)("* => void, * => exit",(0,V.jt)(".2s",(0,V.oB)({})))])};function Ze(s,d,r){return void 0===s?void 0===d?r:d:s}function Pe(s){const{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:R,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ne,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:Nt,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}=s;return{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:R,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ne,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:Nt,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}}function De(){throw Error("Attempting to attach modal content after content is already attached")}let Ke=(()=>{class s extends t.en{constructor(r,p,R,G,de,Se,Ne,We,lt,ht){super(),this.ngZone=r,this.host=p,this.focusTrapFactory=R,this.cdr=G,this.render=de,this.overlayRef=Se,this.nzConfigService=Ne,this.config=We,this.animationType=ht,this.animationStateChanged=new o.vpe,this.containerClick=new o.vpe,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new h.xQ,this.document=lt,this.dir=Se.getDirection(),this.isStringContent="string"==typeof We.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Me).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMask,r.nzMask,!0)}get maskClosable(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMaskClosable,r.nzMaskClosable,!0)}onContainerClick(r){r.target===r.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(r)}attachTemplatePortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(r)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const r=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const p=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),R=(0,S.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(r,"transform-origin",`${R.left+p.width/2-r.offsetLeft}px ${R.top+p.height/2-r.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const r=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const p=this.document.activeElement;p!==r&&!r.contains(p)&&r.focus()}}restoreFocus(){const r=this.elementFocusedBeforeModalWasOpened;if(r&&"function"==typeof r.focus){const p=this.document.activeElement,R=this.host.nativeElement;(!p||p===this.document.body||p===R||R.contains(p))&&r.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const r=this.modalElementRef.nativeElement,p=this.overlayRef.backdropElement;r.classList.add("ant-zoom-enter"),r.classList.add("ant-zoom-enter-active"),p&&(p.classList.add("ant-fade-enter"),p.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const r=this.modalElementRef.nativeElement;r.classList.add("ant-zoom-leave"),r.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(r=!1){const p=this.overlayRef.backdropElement;if(p){if(this.animationDisabled()||r)return void p.classList.remove(ue);p.classList.add("ant-fade-leave"),p.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const r=this.overlayRef.backdropElement,p=this.modalElementRef.nativeElement;r&&(r.classList.remove("ant-fade-enter"),r.classList.remove("ant-fade-enter-active")),p.classList.remove("ant-zoom-enter"),p.classList.remove("ant-zoom-enter-active"),p.classList.remove("ant-zoom-leave"),p.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const r=this.overlayRef.backdropElement;r&&(0,S.DX)(this.config.nzZIndex)&&this.render.setStyle(r,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const r=this.overlayRef.backdropElement;if(r&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(R=>{this.render.removeStyle(r,R)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const p=Object.assign({},this.config.nzMaskStyle);Object.keys(p).forEach(R=>{this.render.setStyle(r,R,p[R])}),this.oldMaskStyle=p}}updateMaskClassname(){const r=this.overlayRef.backdropElement;r&&(this.showMask?r.classList.add(ue):r.classList.remove(ue))}onAnimationDone(r){"enter"===r.toState?this.trapFocus():"exit"===r.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(r)}onAnimationStart(r){"enter"===r.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===r.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(r)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(r){this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"mouseup").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,e.R)(r.nativeElement,"mousedown").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return s.\u0275fac=function(r){o.$Z()},s.\u0275dir=o.lG2({type:s,features:[o.qOj]}),s})(),Ue=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:q,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(r,p){1&r&&(o.TgZ(0,"span",0),o.YNc(1,ge,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzCloseIcon))},directives:[C.f,y.w,T.Ls],encapsulation:2,changeDetection:0}),s})(),Ye=(()=>{class s extends Ke{constructor(r,p,R,G,de,Se,Ne,We,lt,ht,St){super(r,R,G,de,Se,Ne,We,lt,ht,St),this.i18n=p,this.config=lt,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.i18n.localeChange.pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(N.wi),o.Y36(o.SBq),o.Y36(P.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(E.jY),o.Y36(ye),o.Y36(F.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-confirm-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let R;o.iGM(R=o.CRH())&&(p.portalOutlet=R.first),o.iGM(R=o.CRH())&&(p.modalElementRef=R.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[o.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,he,1,0,"button",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o._UZ(8,"i",7),o.TgZ(9,"span",8),o.YNc(10,$,2,1,"ng-container",9),o.qZA(),o.TgZ(11,"div",10),o.YNc(12,se,0,0,"ng-template",11),o.YNc(13,_,1,1,"div",12),o.qZA(),o.qZA(),o.TgZ(14,"div",13),o.YNc(15,x,2,4,"button",14),o.YNc(16,u,2,6,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,11,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(3),o.Q6J("nzType",p.config.nzIconType),o.xp6(2),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle),o.xp6(3),o.Q6J("ngIf",p.isStringContent),o.xp6(2),o.Q6J("ngIf",null!==p.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzOkText))},directives:[Ue,f.ix,F.mk,F.PC,F.O5,y.w,T.Ls,C.f,t.Pl,Z.dQ],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})(),Ge=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:v,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0),o.YNc(1,k,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle))},directives:[C.f],encapsulation:2,changeDetection:0}),s})(),it=(()=>{class s{constructor(r,p){this.i18n=r,this.config=p,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.destroy$=new h.xQ,Array.isArray(p.nzFooter)&&(this.buttonsFooter=!0,this.buttons=p.nzFooter.map(nt)),this.i18n.localeChange.pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(r,p){const R=r[p],G=this.modalRef.getContentComponent();return"function"==typeof R?R.apply(r,G&&[G]):R}onButtonClick(r){if(!this.getButtonCallableProp(r,"loading")){const R=this.getButtonCallableProp(r,"onClick");r.autoLoading&&(0,S.tI)(R)&&(r.loading=!0,R.then(()=>r.loading=!1).catch(G=>{throw r.loading=!1,G}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(N.wi),o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:le,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(r,p){if(1&r&&(o.YNc(0,we,2,5,"ng-container",0),o.YNc(1,He,2,2,"ng-template",null,1,o.W1O)),2&r){const R=o.MAs(2);o.Q6J("ngIf",p.config.nzFooter)("ngIfElse",R)}},directives:[f.ix,F.O5,C.f,F.sg,Z.dQ,y.w],encapsulation:2}),s})();function nt(s){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},s)}let rt=(()=>{class s extends Ke{constructor(r,p,R,G,de,Se,Ne,We,lt,ht){super(r,p,R,G,de,Se,Ne,We,lt,ht),this.config=We}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(P.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(E.jY),o.Y36(ye),o.Y36(F.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let R;o.iGM(R=o.CRH())&&(p.portalOutlet=R.first),o.iGM(R=o.CRH())&&(p.modalElementRef=R.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},exportAs:["nzModalContainer"],features:[o.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,st,1,0,"button",3),o.YNc(5,at,1,0,"div",4),o.TgZ(6,"div",5),o.YNc(7,tt,0,0,"ng-template",6),o.YNc(8,ft,1,1,"div",7),o.qZA(),o.YNc(9,X,1,1,"div",8),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,9,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngIf",p.config.nzTitle),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(2),o.Q6J("ngIf",p.isStringContent),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzFooter))},directives:[Ue,Ge,it,F.mk,F.PC,F.O5,t.Pl],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})();class ot{constructor(d,r,p){this.overlayRef=d,this.config=r,this.containerInstance=p,this.componentInstance=null,this.state=0,this.afterClose=new h.xQ,this.afterOpen=new h.xQ,this.destroy$=new h.xQ,p.animationStateChanged.pipe((0,M.h)(R=>"done"===R.phaseName&&"enter"===R.toState),(0,A.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),r.nzAfterOpen instanceof o.vpe&&r.nzAfterOpen.emit()}),p.animationStateChanged.pipe((0,M.h)(R=>"done"===R.phaseName&&"exit"===R.toState),(0,A.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),p.containerClick.pipe((0,A.q)(1),(0,O.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),d.keydownEvents().pipe((0,M.h)(R=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&R.keyCode===Y.hY&&!(0,Y.Vb)(R))).subscribe(R=>{R.preventDefault(),this.trigger("cancel")}),p.cancelTriggered.pipe((0,O.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),p.okTriggered.pipe((0,O.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),d.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),r.nzAfterClose instanceof o.vpe&&r.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(d){this.close(d)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(d){0===this.state&&(this.result=d,this.containerInstance.animationStateChanged.pipe((0,M.h)(r=>"start"===r.phaseName),(0,A.q)(1)).subscribe(r=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},r.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(d){Object.assign(this.config,d),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(d){return(0,ce.mG)(this,void 0,void 0,function*(){const r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[d],p={ok:"nzOkLoading",cancel:"nzCancelLoading"}[d];if(!this.config[p])if(r instanceof o.vpe)r.emit(this.getContentComponent());else if("function"==typeof r){const G=r(this.getContentComponent());if((0,S.tI)(G)){this.config[p]=!0;let de=!1;try{de=yield G}finally{this.config[p]=!1,this.closeWhitResult(de)}}else this.closeWhitResult(G)}})}closeWhitResult(d){!1!==d&&this.close(d)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let Xe=(()=>{class s{constructor(r,p,R,G,de){this.overlay=r,this.injector=p,this.nzConfigService=R,this.parentModal=G,this.directionality=de,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new h.xQ,this.afterAllClose=(0,b.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,w.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,D.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in r||(r.nzWidth=416),"nzMaskClosable"in r||(r.nzMaskClosable=!1),r.nzModalType="confirm",r.nzClassName=`ant-modal-confirm ant-modal-confirm-${p} ${r.nzClassName||""}`,this.create(r)}info(r={}){return this.confirmFactory(r,"info")}success(r={}){return this.confirmFactory(r,"success")}error(r={}){return this.confirmFactory(r,"error")}warning(r={}){return this.confirmFactory(r,"warning")}open(r,p){const R=function Le(s,d){return Object.assign(Object.assign({},d),s)}(p||{},new ye),G=this.createOverlay(R),de=this.attachModalContainer(G,R),Se=this.attachModalContent(r,de,G,R);return de.modalRef=Se,this.openModals.push(Se),Se.afterClose.subscribe(()=>this.removeOpenModal(Se)),Se}removeOpenModal(r){const p=this.openModals.indexOf(r);p>-1&&(this.openModals.splice(p,1),this.openModals.length||this._afterAllClosed.next())}closeModals(r){let p=r.length;for(;p--;)r[p].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(r){const p=this.nzConfigService.getConfigForComponent(Me)||{},R=new i.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Ze(r.nzCloseOnNavigation,p.nzCloseOnNavigation,!0),direction:Ze(r.nzDirection,p.nzDirection,this.directionality.value)});return Ze(r.nzMask,p.nzMask,!0)&&(R.backdropClass=ue),this.overlay.create(R)}attachModalContainer(r,p){const G=o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:i.Iu,useValue:r},{provide:ye,useValue:p}]}),Se=new t.C5("confirm"===p.nzModalType?Ye:rt,p.nzViewContainerRef,G);return r.attach(Se).instance}attachModalContent(r,p,R,G){const de=new ot(R,G,p);if(r instanceof o.Rgc)p.attachTemplatePortal(new t.UE(r,null,{$implicit:G.nzComponentParams,modalRef:de}));else if((0,S.DX)(r)&&"string"!=typeof r){const Se=this.createInjector(de,G),Ne=p.attachComponentPortal(new t.C5(r,G.nzViewContainerRef,Se));(function Ae(s,d){Object.assign(s,d)})(Ne.instance,G.nzComponentParams),de.componentInstance=Ne.instance}else p.attachStringContent();return de}createInjector(r,p){return o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:ot,useValue:r}]})}confirmFactory(r={},p){return"nzIconType"in r||(r.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[p]),"nzCancelText"in r||(r.nzCancelText=null),this.confirm(r,p)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(E.jY),o.LFG(s,12),o.LFG(re.Is,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),_t=(()=>{class s{constructor(r){this.templateRef=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),s})(),yt=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),s})(),Ot=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),s})(),xt=(()=>{class s{constructor(r,p,R){this.cdr=r,this.modal=p,this.viewContainerRef=R,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new o.vpe,this.nzOnCancel=new o.vpe,this.nzAfterOpen=new o.vpe,this.nzAfterClose=new o.vpe,this.nzVisibleChange=new o.vpe,this.modalRef=null,this.destroy$=new h.xQ}set modalTitle(r){r&&this.setTitleWithTemplate(r)}set modalFooter(r){r&&this.setFooterWithTemplate(r)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const r=this.getConfig();this.modalRef=this.modal.create(r),this.modalRef.afterClose.asObservable().pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(r){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(r),this.modalRef=null)}destroy(r){this.close(r)}triggerOk(){var r;null===(r=this.modalRef)||void 0===r||r.triggerOk()}triggerCancel(){var r;null===(r=this.modalRef)||void 0===r||r.triggerCancel()}getContentComponent(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getContentComponent()}getElement(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(r){this.nzTitle=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(r){this.nzFooter=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const r=Pe(this);return r.nzViewContainerRef=this.viewContainerRef,r.nzContent=this.nzContent||this.contentFromContentChild,r}ngOnChanges(r){const{nzVisible:p}=r,R=(0,ce._T)(r,["nzVisible"]);Object.keys(R).length&&this.modalRef&&this.modalRef.updateConfig(Pe(this)),p&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var r;null===(r=this.modalRef)||void 0===r||r._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.sBO),o.Y36(Xe),o.Y36(o.s_b))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal"]],contentQueries:function(r,p,R){if(1&r&&(o.Suo(R,Ot,7,o.Rgc),o.Suo(R,_t,7,o.Rgc),o.Suo(R,yt,7,o.Rgc)),2&r){let G;o.iGM(G=o.CRH())&&(p.modalTitle=G.first),o.iGM(G=o.CRH())&&(p.contentFromContentChild=G.first),o.iGM(G=o.CRH())&&(p.modalFooter=G.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[o.TTD],decls:0,vars:0,template:function(r,p){},encapsulation:2,changeDetection:0}),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMask",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMaskClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCloseOnNavigation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzVisible",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzKeyboard",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzNoAnimation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCentered",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDanger",void 0),s})(),z=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Xe],imports:[[F.ez,re.vT,i.U8,C.T,t.eL,N.YI,f.sL,T.PV,ne,W.g,ne]]}),s})()},3868:(ae,I,a)=>{a.d(I,{Bq:()=>V,Of:()=>N,Dg:()=>E,aF:()=>C});var i=a(5e3),t=a(655),o=a(4182),h=a(5647),e=a(8929),b=a(3753),O=a(7625),M=a(1721),A=a(226),w=a(5664),D=a(9808);const S=["*"],F=["inputElement"],L=["nz-radio",""];let V=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=i.lG2({type:y,selectors:[["","nz-radio-button",""]]}),y})(),P=(()=>{class y{constructor(){this.selected$=new h.t(1),this.touched$=new e.xQ,this.disabled$=new h.t(1),this.name$=new h.t(1)}touch(){this.touched$.next()}select(f){this.selected$.next(f)}setDisabled(f){this.disabled$.next(f)}setName(f){this.name$.next(f)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=i.Yz7({token:y,factory:y.\u0275fac}),y})(),E=(()=>{class y{constructor(f,Z,K){this.cdr=f,this.nzRadioService=Z,this.directionality=K,this.value=null,this.destroy$=new e.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var f;this.nzRadioService.selected$.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.value!==Z&&(this.value=Z,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,O.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(f=this.directionality.change)||void 0===f||f.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(f){const{nzDisabled:Z,nzName:K}=f;Z&&this.nzRadioService.setDisabled(this.nzDisabled),K&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(f){this.value=f,this.nzRadioService.select(f),this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.nzDisabled=f,this.nzRadioService.setDisabled(f),this.cdr.markForCheck()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.sBO),i.Y36(P),i.Y36(A.Is,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-group-large","large"===Z.nzSize)("ant-radio-group-small","small"===Z.nzSize)("ant-radio-group-solid","solid"===Z.nzButtonStyle)("ant-radio-group-rtl","rtl"===Z.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[i._Bn([P,{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}]),i.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(f,Z){1&f&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,M.yF)()],y.prototype,"nzDisabled",void 0),y})(),N=(()=>{class y{constructor(f,Z,K,Q,te,H,J){this.ngZone=f,this.elementRef=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.nzRadioService=H,this.nzRadioButtonDirective=J,this.isNgModel=!1,this.destroy$=new e.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(f){this.nzDisabled=f,this.cdr.markForCheck()}writeValue(f){this.isChecked=f,this.cdr.markForCheck()}registerOnChange(f){this.isNgModel=!0,this.onChange=f}registerOnTouched(f){this.onTouched=f}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.name=f,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.nzDisabled=f,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.isChecked=this.nzValue===f,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,O.R)(this.destroy$)).subscribe(f=>{f||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,b.R)(this.elementRef.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(f=>{f.stopPropagation(),f.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(w.tE),i.Y36(A.Is,8),i.Y36(P,8),i.Y36(V,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(f,Z){if(1&f&&i.Gf(F,5),2&f){let K;i.iGM(K=i.CRH())&&(Z.inputElement=K.first)}},hostVars:16,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-wrapper",!Z.isRadioButton)("ant-radio-button-wrapper",Z.isRadioButton)("ant-radio-wrapper-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-button-wrapper-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-wrapper-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button-wrapper-disabled",Z.nzDisabled&&Z.isRadioButton)("ant-radio-wrapper-rtl",!Z.isRadioButton&&"rtl"===Z.dir)("ant-radio-button-wrapper-rtl",Z.isRadioButton&&"rtl"===Z.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[i._Bn([{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}])],attrs:L,ngContentSelectors:S,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(f,Z){1&f&&(i.F$t(),i.TgZ(0,"span"),i._UZ(1,"input",0,1),i._UZ(3,"span"),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&f&&(i.ekj("ant-radio",!Z.isRadioButton)("ant-radio-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button",Z.isRadioButton)("ant-radio-button-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-button-disabled",Z.nzDisabled&&Z.isRadioButton),i.xp6(1),i.ekj("ant-radio-input",!Z.isRadioButton)("ant-radio-button-input",Z.isRadioButton),i.Q6J("disabled",Z.nzDisabled)("checked",Z.isChecked),i.uIk("autofocus",Z.nzAutoFocus?"autofocus":null)("name",Z.name),i.xp6(2),i.ekj("ant-radio-inner",!Z.isRadioButton)("ant-radio-button-inner",Z.isRadioButton))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,M.yF)()],y.prototype,"nzDisabled",void 0),(0,t.gn)([(0,M.yF)()],y.prototype,"nzAutoFocus",void 0),y})(),C=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[A.vT,D.ez,o.u5]]}),y})()},5197:(ae,I,a)=>{a.d(I,{Ip:()=>Ye,Vq:()=>Ot,LV:()=>xt});var i=a(5e3),t=a(8929),o=a(3753),h=a(591),e=a(6053),b=a(6787),O=a(3393),M=a(685),A=a(969),w=a(9808),D=a(647),S=a(2683),F=a(655),L=a(1059),V=a(7625),P=a(7545),E=a(4090),N=a(1721),C=a(1159),y=a(2845),T=a(4182),f=a(8076),Z=a(9439);const K=["moz","ms","webkit"];function H(z){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(z);const j=K.filter(s=>`${s}CancelAnimationFrame`in window||`${s}CancelRequestAnimationFrame`in window)[0];return j?(window[`${j}CancelAnimationFrame`]||window[`${j}CancelRequestAnimationFrame`]).call(this,z):clearTimeout(z)}const J=function te(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const z=K.filter(j=>`${j}RequestAnimationFrame`in window)[0];return z?window[`${z}RequestAnimationFrame`]:function Q(){let z=0;return function(j){const s=(new Date).getTime(),d=Math.max(0,16-(s-z)),r=setTimeout(()=>{j(s+d)},d);return z=s+d,r}}()}();var pe=a(5664),me=a(4832),Ce=a(925),be=a(226),ne=a(6950),ce=a(4170);const Y=["*"];function re(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.nzLabel)}}function W(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.label)}}function q(z,j){}function ge(z,j){if(1&z&&(i.ynx(0),i.YNc(1,q,0,0,"ng-template",3),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",s.template)}}function ie(z,j){1&z&&i._UZ(0,"i",6)}function he(z,j){if(1&z&&(i.TgZ(0,"div",4),i.YNc(1,ie,1,0,"i",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.icon)("ngIfElse",s.icon)}}function $(z,j){if(1&z&&(i.TgZ(0,"div",4),i._UZ(1,"nz-embed-empty",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("specificContent",s.notFoundContent)}}function se(z,j){if(1&z&&i._UZ(0,"nz-option-item-group",9),2&z){const s=i.oxw().$implicit;i.Q6J("nzLabel",s.groupLabel)}}function _(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-item",10),i.NdJ("itemHover",function(r){return i.CHM(s),i.oxw(2).onItemHover(r)})("itemClick",function(r){return i.CHM(s),i.oxw(2).onItemClick(r)}),i.qZA()}if(2&z){const s=i.oxw().$implicit,d=i.oxw();i.Q6J("icon",d.menuItemSelectedIcon)("customContent",s.nzCustomContent)("template",s.template)("grouped",!!s.groupLabel)("disabled",s.nzDisabled)("showState","tags"===d.mode||"multiple"===d.mode)("label",s.nzLabel)("compareWith",d.compareWith)("activatedValue",d.activatedValue)("listOfSelectedValue",d.listOfSelectedValue)("value",s.nzValue)}}function x(z,j){1&z&&(i.ynx(0,6),i.YNc(1,se,1,1,"nz-option-item-group",7),i.YNc(2,_,1,11,"nz-option-item",8),i.BQk()),2&z&&(i.Q6J("ngSwitch",j.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase","group"),i.xp6(1),i.Q6J("ngSwitchCase","item"))}function u(z,j){}function v(z,j){1&z&&i.Hsn(0)}const k=["inputElement"],le=["mirrorElement"];function ze(z,j){1&z&&i._UZ(0,"span",3,4)}function Ee(z,j){if(1&z&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&z){const s=i.oxw(2);i.xp6(1),i.Oqu(s.label)}}function Fe(z,j){if(1&z&&i._uU(0),2&z){const s=i.oxw(2);i.Oqu(s.label)}}function Qe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,Ee,2,1,"div",2),i.YNc(2,Fe,1,1,"ng-template",null,3,i.W1O),i.BQk()),2&z){const s=i.MAs(3),d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.deletable)("ngIfElse",s)}}function Ve(z,j){1&z&&i._UZ(0,"i",7)}function we(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"span",5),i.NdJ("click",function(r){return i.CHM(s),i.oxw().onDelete(r)}),i.YNc(1,Ve,1,0,"i",6),i.qZA()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.removeIcon)("ngIfElse",s.removeIcon)}}const je=function(z){return{$implicit:z}};function et(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.hij(" ",s.placeholder," ")}}function He(z,j){if(1&z&&i._UZ(0,"nz-select-item",6),2&z){const s=i.oxw(2);i.Q6J("deletable",!1)("disabled",!1)("removeIcon",s.removeIcon)("label",s.listOfTopItem[0].nzLabel)("contentTemplateOutlet",s.customTemplate)("contentTemplateOutletContext",s.listOfTopItem[0])}}function st(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.TgZ(1,"nz-select-search",4),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.YNc(2,He,1,6,"nz-select-item",5),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("showInput",s.showSearch)("mirrorSync",!1)("autofocus",s.autofocus)("focusTrigger",s.open),i.xp6(1),i.Q6J("ngIf",s.isShowSingleLabel)}}function at(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-item",9),i.NdJ("delete",function(){const p=i.CHM(s).$implicit;return i.oxw(2).onDeleteItem(p.contentTemplateOutletContext)}),i.qZA()}if(2&z){const s=j.$implicit,d=i.oxw(2);i.Q6J("removeIcon",d.removeIcon)("label",s.nzLabel)("disabled",s.nzDisabled||d.disabled)("contentTemplateOutlet",s.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",s.contentTemplateOutletContext)}}function tt(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.YNc(1,at,1,6,"nz-select-item",7),i.TgZ(2,"nz-select-search",8),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngForOf",s.listOfSlicedItem)("ngForTrackBy",s.trackValue),i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("autofocus",s.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",s.open)}}function ft(z,j){if(1&z&&i._UZ(0,"nz-select-placeholder",10),2&z){const s=i.oxw();i.Q6J("placeholder",s.placeHolder)}}function X(z,j){1&z&&i._UZ(0,"i",2)}function oe(z,j){1&z&&i._UZ(0,"i",7)}function ye(z,j){1&z&&i._UZ(0,"i",8)}function Oe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,oe,1,0,"i",5),i.YNc(2,ye,1,0,"i",6),i.BQk()),2&z){const s=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!s.search),i.xp6(1),i.Q6J("ngIf",s.search)}}function Re(z,j){if(1&z&&(i.ynx(0),i._UZ(1,"i",10),i.BQk()),2&z){const s=j.$implicit;i.xp6(1),i.Q6J("nzType",s)}}function ue(z,j){if(1&z&&i.YNc(0,Re,2,1,"ng-container",9),2&z){const s=i.oxw(2);i.Q6J("nzStringTemplateOutlet",s.suffixIcon)}}function Me(z,j){if(1&z&&(i.YNc(0,Oe,3,2,"ng-container",3),i.YNc(1,ue,1,1,"ng-template",null,4,i.W1O)),2&z){const s=i.MAs(2),d=i.oxw();i.Q6J("ngIf",!d.suffixIcon)("ngIfElse",s)}}function Be(z,j){1&z&&i._UZ(0,"i",1)}function Le(z,j){if(1&z&&i._UZ(0,"nz-select-arrow",5),2&z){const s=i.oxw();i.Q6J("loading",s.nzLoading)("search",s.nzOpen&&s.nzShowSearch)("suffixIcon",s.nzSuffixIcon)}}function Ze(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-clear",6),i.NdJ("clear",function(){return i.CHM(s),i.oxw().onClearSelection()}),i.qZA()}if(2&z){const s=i.oxw();i.Q6J("clearIcon",s.nzClearIcon)}}function Ae(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-container",7),i.NdJ("keydown",function(r){return i.CHM(s),i.oxw().onKeyDown(r)})("itemClick",function(r){return i.CHM(s),i.oxw().onItemClick(r)})("scrollToBottom",function(){return i.CHM(s),i.oxw().nzScrollToBottom.emit()}),i.qZA()}if(2&z){const s=i.oxw();i.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===s.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===s.dropDownPosition),i.Q6J("ngStyle",s.nzDropdownStyle)("itemSize",s.nzOptionHeightPx)("maxItemLength",s.nzOptionOverflowSize)("matchWidth",s.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("nzNoAnimation",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("listOfContainerItem",s.listOfContainerItem)("menuItemSelectedIcon",s.nzMenuItemSelectedIcon)("notFoundContent",s.nzNotFoundContent)("activatedValue",s.activatedValue)("listOfSelectedValue",s.listOfValue)("dropdownRender",s.nzDropdownRender)("compareWith",s.compareWith)("mode",s.nzMode)}}let Pe=(()=>{class z{constructor(){this.nzLabel=null,this.changes=new t.xQ}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),z})(),De=(()=>{class z{constructor(){this.nzLabel=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,re,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.nzLabel)},directives:[A.f],encapsulation:2,changeDetection:0}),z})(),Ke=(()=>{class z{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new i.vpe,this.itemHover=new i.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(s){const{value:d,activatedValue:r,listOfSelectedValue:p}=s;(d||p)&&(this.selected=this.listOfSelectedValue.some(R=>this.compareWith(R,this.value))),(d||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(s,d){1&s&&i.NdJ("mouseenter",function(){return d.onHostMouseEnter()})("click",function(){return d.onHostClick()}),2&s&&(i.uIk("title",d.label),i.ekj("ant-select-item-option-grouped",d.grouped)("ant-select-item-option-selected",d.selected&&!d.disabled)("ant-select-item-option-disabled",d.disabled)("ant-select-item-option-active",d.activated&&!d.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[i.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(s,d){1&s&&(i.TgZ(0,"div",0),i.YNc(1,W,2,1,"ng-container",1),i.YNc(2,ge,2,1,"ng-container",1),i.qZA(),i.YNc(3,he,2,2,"div",2)),2&s&&(i.xp6(1),i.Q6J("ngIf",!d.customContent),i.xp6(1),i.Q6J("ngIf",d.customContent),i.xp6(1),i.Q6J("ngIf",d.showState&&d.selected))},directives:[w.O5,w.tP,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),Ue=(()=>{class z{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new i.vpe,this.scrollToBottom=new i.vpe,this.scrolledIndex=0}onItemClick(s){this.itemClick.emit(s)}onItemHover(s){this.activatedValue=s}trackValue(s,d){return d.key}onScrolledIndexChange(s){this.scrolledIndex=s,s===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const s=this.listOfContainerItem.findIndex(d=>this.compareWith(d.key,this.activatedValue));(s=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(s||0)}ngOnChanges(s){const{listOfContainerItem:d,activatedValue:r}=s;(d||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-container"]],viewQuery:function(s,d){if(1&s&&i.Gf(O.N7,7),2&s){let r;i.iGM(r=i.CRH())&&(d.cdkVirtualScrollViewport=r.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[i.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(s,d){1&s&&(i.TgZ(0,"div"),i.YNc(1,$,2,1,"div",0),i.TgZ(2,"cdk-virtual-scroll-viewport",1),i.NdJ("scrolledIndexChange",function(p){return d.onScrolledIndexChange(p)}),i.YNc(3,x,3,3,"ng-template",2),i.qZA(),i.YNc(4,u,0,0,"ng-template",3),i.qZA()),2&s&&(i.xp6(1),i.Q6J("ngIf",0===d.listOfContainerItem.length),i.xp6(1),i.Udp("height",d.listOfContainerItem.length*d.itemSize,"px")("max-height",d.itemSize*d.maxItemLength,"px"),i.ekj("full-width",!d.matchWidth),i.Q6J("itemSize",d.itemSize)("maxBufferPx",d.itemSize*d.maxItemLength)("minBufferPx",d.itemSize*d.maxItemLength),i.xp6(1),i.Q6J("cdkVirtualForOf",d.listOfContainerItem)("cdkVirtualForTrackBy",d.trackValue)("cdkVirtualForTemplateCacheSize",0),i.xp6(1),i.Q6J("ngTemplateOutlet",d.dropdownRender))},directives:[M.gB,O.N7,De,Ke,w.O5,O.xd,O.x0,w.RF,w.n9,w.tP],encapsulation:2,changeDetection:0}),z})(),Ye=(()=>{class z{constructor(s,d){this.nzOptionGroupComponent=s,this.destroy$=d,this.changes=new t.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,L.O)(!0),(0,V.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(Pe,8),i.Y36(E.kn))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option"]],viewQuery:function(s,d){if(1&s&&i.Gf(i.Rgc,7),2&s){let r;i.iGM(r=i.CRH())&&(d.template=r.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[i._Bn([E.kn]),i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.YNc(0,v,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,F.gn)([(0,N.yF)()],z.prototype,"nzDisabled",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzHide",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzCustomContent",void 0),z})(),Ge=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new i.vpe,this.isComposingChange=new i.vpe}setCompositionState(s){this.isComposingChange.next(s)}onValueChange(s){this.value=s,this.valueChange.next(s),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const s=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),s.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${s.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(s){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=s;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(pe.tE))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-search"]],viewQuery:function(s,d){if(1&s&&(i.Gf(k,7),i.Gf(le,5)),2&s){let r;i.iGM(r=i.CRH())&&(d.inputElement=r.first),i.iGM(r=i.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[i._Bn([{provide:T.ve,useValue:!1}]),i.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(s,d){1&s&&(i.TgZ(0,"input",0,1),i.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),i.qZA(),i.YNc(2,ze,2,0,"span",2)),2&s&&(i.Udp("opacity",d.showInput?null:0),i.Q6J("ngModel",d.value)("disabled",d.disabled),i.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),i.xp6(2),i.Q6J("ngIf",d.mirrorSync))},directives:[T.Fj,T.JJ,T.On,w.O5],encapsulation:2,changeDetection:0}),z})(),it=(()=>{class z{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new i.vpe}onDelete(s){s.preventDefault(),s.stopPropagation(),this.disabled||this.delete.next(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(s,d){2&s&&(i.uIk("title",d.label),i.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(s,d){1&s&&(i.YNc(0,Qe,4,2,"ng-container",0),i.YNc(1,we,2,2,"span",1)),2&s&&(i.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",i.VKq(3,je,d.contentTemplateOutletContext)),i.xp6(1),i.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[A.f,w.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),nt=(()=>{class z{constructor(){this.placeholder=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,et,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.placeholder)},directives:[A.f],encapsulation:2,changeDetection:0}),z})(),rt=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.ngZone=d,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new i.vpe,this.inputValueChange=new i.vpe,this.deleteItem=new i.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new t.xQ}updateTemplateVariable(){const s=0===this.listOfTopItem.length;this.isShowPlaceholder=s&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!s&&!this.isComposing&&!this.inputValue}isComposingChange(s){this.isComposing=s,this.updateTemplateVariable()}onInputValueChange(s){s!==this.inputValue&&(this.inputValue=s,this.updateTemplateVariable(),this.inputValueChange.emit(s),this.tokenSeparate(s,this.tokenSeparators))}tokenSeparate(s,d){if(s&&s.length&&d.length&&"default"!==this.mode&&((R,G)=>{for(let de=0;de0)return!0;return!1})(s,d)){const R=((R,G)=>{const de=new RegExp(`[${G.join()}]`),Se=R.split(de).filter(Ne=>Ne);return[...new Set(Se)]})(s,d);this.tokenize.next(R)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(s,d){return d.nzValue}onDeleteItem(s){!this.disabled&&!s.nzDisabled&&this.deleteItem.next(s)}ngOnChanges(s){const{listOfTopItem:d,maxTagCount:r,customTemplate:p,maxTagPlaceholder:R}=s;if(d&&this.updateTemplateVariable(),d||r||p||R){const G=this.listOfTopItem.slice(0,this.maxTagCount).map(de=>({nzLabel:de.nzLabel,nzValue:de.nzValue,nzDisabled:de.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:de}));if(this.listOfTopItem.length>this.maxTagCount){const de=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Se=this.listOfTopItem.map(We=>We.nzValue),Ne={nzLabel:de,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Se.slice(this.maxTagCount)};G.push(Ne)}this.listOfSlicedItem=G}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,o.R)(this.elementRef.nativeElement,"click").pipe((0,V.R)(this.destroy$)).subscribe(s=>{s.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,o.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.R)(this.destroy$)).subscribe(s=>{if(s.target instanceof HTMLInputElement){const d=s.target.value;s.keyCode===C.ZH&&"default"!==this.mode&&!d&&this.listOfTopItem.length>0&&(s.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-top-control"]],viewQuery:function(s,d){if(1&s&&i.Gf(Ge,5),2&s){let r;i.iGM(r=i.CRH())&&(d.nzSelectSearchComponent=r.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[i.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(s,d){1&s&&(i.ynx(0,0),i.YNc(1,st,3,8,"ng-container",1),i.YNc(2,tt,3,9,"ng-container",2),i.BQk(),i.YNc(3,ft,1,1,"nz-select-placeholder",3)),2&s&&(i.Q6J("ngSwitch",d.mode),i.xp6(1),i.Q6J("ngSwitchCase","default"),i.xp6(2),i.Q6J("ngIf",d.isShowPlaceholder))},directives:[Ge,it,nt,w.RF,w.n9,w.O5,w.ED,w.sg,S.w],encapsulation:2,changeDetection:0}),z})(),ot=(()=>{class z{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(s,d){2&s&&i.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(s,d){if(1&s&&(i.YNc(0,X,1,0,"i",0),i.YNc(1,Me,3,2,"ng-template",null,1,i.W1O)),2&s){const r=i.MAs(2);i.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[w.O5,D.Ls,S.w,A.f],encapsulation:2,changeDetection:0}),z})(),Xe=(()=>{class z{constructor(){this.clearIcon=null,this.clear=new i.vpe}onClick(s){s.preventDefault(),s.stopPropagation(),this.clear.emit(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(s,d){1&s&&i.NdJ("click",function(p){return d.onClick(p)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(s,d){1&s&&i.YNc(0,Be,1,0,"i",0),2&s&&i.Q6J("ngIf",!d.clearIcon)("ngIfElse",d.clearIcon)},directives:[w.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})();const _t=(z,j)=>!(!j||!j.nzLabel)&&j.nzLabel.toString().toLowerCase().indexOf(z.toLowerCase())>-1;let Ot=(()=>{class z{constructor(s,d,r,p,R,G,de,Se){this.destroy$=s,this.nzConfigService=d,this.cdr=r,this.elementRef=p,this.platform=R,this.focusMonitor=G,this.directionality=de,this.noAnimation=Se,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=_t,this.compareWith=(Ne,We)=>Ne===We,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new i.vpe,this.nzScrollToBottom=new i.vpe,this.nzOpenChange=new i.vpe,this.nzBlur=new i.vpe,this.nzFocus=new i.vpe,this.listOfValue$=new h.X([]),this.listOfTemplateItem$=new h.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(s){this._nzShowArrow=s}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(s){return{nzValue:s,nzLabel:s,type:"item"}}onItemClick(s){if(this.activatedValue=s,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],s))&&this.updateListOfValue([s]),this.setOpenState(!1);else{const d=this.listOfValue.findIndex(r=>this.compareWith(r,s));if(-1!==d){const r=this.listOfValue.filter((p,R)=>R!==d);this.updateListOfValue(r)}else if(this.listOfValue.length!this.compareWith(r,s.nzValue));this.updateListOfValue(d),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let s=this.listOfTagAndTemplateItem.filter(p=>!p.nzHide).filter(p=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,p));if("tags"===this.nzMode&&this.searchValue){const p=this.listOfTagAndTemplateItem.find(R=>R.nzLabel===this.searchValue);if(p)this.activatedValue=p.nzValue;else{const R=this.generateTagItem(this.searchValue);s=[R,...s],this.activatedValue=R.nzValue}}const d=s.find(p=>this.compareWith(p.nzValue,this.listOfValue[0]))||s[0];this.activatedValue=d&&d.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(p=>p.groupLabel).map(p=>p.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(p=>p.nzLabel)),r.forEach(p=>{const R=s.findIndex(G=>p===G.groupLabel);R>-1&&s.splice(R,0,{groupLabel:p,type:"group",key:p})}),this.listOfContainerItem=[...s],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(s){const r=((p,R)=>"default"===this.nzMode?p.length>0?p[0]:null:p)(s);this.value!==r&&(this.listOfValue=s,this.listOfValue$.next(s),this.value=r,this.onChange(this.value))}onTokenSeparate(s){const d=this.listOfTagAndTemplateItem.filter(r=>-1!==s.findIndex(p=>p===r.nzLabel)).map(r=>r.nzValue).filter(r=>-1===this.listOfValue.findIndex(p=>this.compareWith(p,r)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...d]);else if("tags"===this.nzMode){const r=s.filter(p=>-1===this.listOfTagAndTemplateItem.findIndex(R=>R.nzLabel===p));this.updateListOfValue([...this.listOfValue,...d,...r])}this.clearInput()}onOverlayKeyDown(s){s.keyCode===C.hY&&this.setOpenState(!1)}onKeyDown(s){if(this.nzDisabled)return;const d=this.listOfContainerItem.filter(p=>"item"===p.type).filter(p=>!p.nzDisabled),r=d.findIndex(p=>this.compareWith(p.nzValue,this.activatedValue));switch(s.keyCode){case C.LH:s.preventDefault(),this.nzOpen&&(this.activatedValue=d[r>0?r-1:d.length-1].nzValue);break;case C.JH:s.preventDefault(),this.nzOpen?this.activatedValue=d[r{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,s!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){J(()=>{var s,d;null===(d=null===(s=this.cdkConnectedOverlay)||void 0===s?void 0:s.overlayRef)||void 0===d||d.updatePosition()})}writeValue(s){if(this.value!==s){this.value=s;const r=((p,R)=>null==p?[]:"default"===this.nzMode?[p]:p)(s);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=s,s&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(s){const{nzOpen:d,nzDisabled:r,nzOptions:p}=s;if(d&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),p){this.isReactiveDriven=!0;const G=(this.nzOptions||[]).map(de=>({template:de.label instanceof i.Rgc?de.label:null,nzLabel:"string"==typeof de.label||"number"==typeof de.label?de.label:null,nzValue:de.value,nzDisabled:de.disabled||!1,nzHide:de.hide||!1,nzCustomContent:de.label instanceof i.Rgc,groupLabel:de.groupLabel||null,type:"item",key:de.value}));this.listOfTemplateItem$.next(G)}}ngOnInit(){var s;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,V.R)(this.destroy$)).subscribe(d=>{d?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,e.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.R)(this.destroy$)).subscribe(([d,r])=>{const p=d.filter(()=>"tags"===this.nzMode).filter(R=>-1===r.findIndex(G=>this.compareWith(G.nzValue,R))).map(R=>this.listOfTopItem.find(G=>this.compareWith(G.nzValue,R))||this.generateTagItem(R));this.listOfTagAndTemplateItem=[...r,...p],this.listOfTopItem=this.listOfValue.map(R=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(G=>this.compareWith(R,G.nzValue))).filter(R=>!!R),this.updateListOfContainerItem()}),null===(s=this.directionality.change)||void 0===s||s.pipe((0,V.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,b.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,L.O)(!0),(0,P.w)(()=>(0,b.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(s=>s.changes),...this.listOfNzOptionGroupComponent.map(s=>s.changes)).pipe((0,L.O)(!0))),(0,V.R)(this.destroy$)).subscribe(()=>{const s=this.listOfNzOptionComponent.toArray().map(d=>{const{template:r,nzLabel:p,nzValue:R,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ne}=d;return{template:r,nzLabel:p,nzValue:R,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ne,type:"item",key:R}});this.listOfTemplateItem$.next(s),this.cdr.markForCheck()})}ngOnDestroy(){H(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(E.kn),i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Ce.t4),i.Y36(pe.tE),i.Y36(be.Is,8),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select"]],contentQueries:function(s,d,r){if(1&s&&(i.Suo(r,Ye,5),i.Suo(r,Pe,5)),2&s){let p;i.iGM(p=i.CRH())&&(d.listOfNzOptionComponent=p),i.iGM(p=i.CRH())&&(d.listOfNzOptionGroupComponent=p)}},viewQuery:function(s,d){if(1&s&&(i.Gf(y.xu,7,i.SBq),i.Gf(y.pI,7),i.Gf(rt,7),i.Gf(Pe,7,i.SBq),i.Gf(rt,7,i.SBq)),2&s){let r;i.iGM(r=i.CRH())&&(d.originElement=r.first),i.iGM(r=i.CRH())&&(d.cdkConnectedOverlay=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponent=r.first),i.iGM(r=i.CRH())&&(d.nzOptionGroupComponentElement=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponentElement=r.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(s,d){1&s&&i.NdJ("click",function(){return d.onHostClick()}),2&s&&i.ekj("ant-select-lg","large"===d.nzSize)("ant-select-sm","small"===d.nzSize)("ant-select-show-arrow",d.nzShowArrow)("ant-select-disabled",d.nzDisabled)("ant-select-show-search",(d.nzShowSearch||"default"!==d.nzMode)&&!d.nzDisabled)("ant-select-allow-clear",d.nzAllowClear)("ant-select-borderless",d.nzBorderless)("ant-select-open",d.nzOpen)("ant-select-focused",d.nzOpen||d.focused)("ant-select-single","default"===d.nzMode)("ant-select-multiple","default"!==d.nzMode)("ant-select-rtl","rtl"===d.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[i._Bn([E.kn,{provide:T.JU,useExisting:(0,i.Gpc)(()=>z),multi:!0}]),i.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(s,d){if(1&s&&(i.TgZ(0,"nz-select-top-control",0,1),i.NdJ("inputValueChange",function(p){return d.onInputValueChange(p)})("tokenize",function(p){return d.onTokenSeparate(p)})("deleteItem",function(p){return d.onItemDelete(p)})("keydown",function(p){return d.onKeyDown(p)}),i.qZA(),i.YNc(2,Le,1,3,"nz-select-arrow",2),i.YNc(3,Ze,1,1,"nz-select-clear",3),i.YNc(4,Ae,1,19,"ng-template",4),i.NdJ("overlayKeydown",function(p){return d.onOverlayKeyDown(p)})("overlayOutsideClick",function(p){return d.onClickOutside(p)})("detach",function(){return d.setOpenState(!1)})("positionChange",function(p){return d.onPositionChange(p)})),2&s){const r=i.MAs(1);i.Q6J("nzId",d.nzId)("open",d.nzOpen)("disabled",d.nzDisabled)("mode",d.nzMode)("@.disabled",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("nzNoAnimation",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("maxTagPlaceholder",d.nzMaxTagPlaceholder)("removeIcon",d.nzRemoveIcon)("placeHolder",d.nzPlaceHolder)("maxTagCount",d.nzMaxTagCount)("customTemplate",d.nzCustomTemplate)("tokenSeparators",d.nzTokenSeparators)("showSearch",d.nzShowSearch)("autofocus",d.nzAutoFocus)("listOfTopItem",d.listOfTopItem),i.xp6(2),i.Q6J("ngIf",d.nzShowArrow),i.xp6(1),i.Q6J("ngIf",d.nzAllowClear&&!d.nzDisabled&&d.listOfValue.length),i.xp6(1),i.Q6J("cdkConnectedOverlayHasBackdrop",d.nzBackdrop)("cdkConnectedOverlayMinWidth",d.nzDropdownMatchSelectWidth?null:d.triggerWidth)("cdkConnectedOverlayWidth",d.nzDropdownMatchSelectWidth?d.triggerWidth:null)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",d.nzDropdownClassName)("cdkConnectedOverlayOpen",d.nzOpen)}},directives:[rt,ot,Xe,Ue,S.w,y.xu,me.P,w.O5,y.pI,ne.hQ,w.PC],encapsulation:2,data:{animation:[f.mF]},changeDetection:0}),(0,F.gn)([(0,Z.oS)()],z.prototype,"nzSuffixIcon",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzAllowClear",void 0),(0,F.gn)([(0,Z.oS)(),(0,N.yF)()],z.prototype,"nzBorderless",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzShowSearch",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzLoading",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzAutoFocus",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzAutoClearSearchValue",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzServerSearch",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzDisabled",void 0),(0,F.gn)([(0,N.yF)()],z.prototype,"nzOpen",void 0),(0,F.gn)([(0,Z.oS)(),(0,N.yF)()],z.prototype,"nzBackdrop",void 0),z})(),xt=(()=>{class z{}return z.\u0275fac=function(s){return new(s||z)},z.\u0275mod=i.oAB({type:z}),z.\u0275inj=i.cJS({imports:[[be.vT,w.ez,ce.YI,T.u5,Ce.ud,y.U8,D.PV,A.T,M.Xo,ne.e4,me.g,S.a,O.Cl,pe.rt]]}),z})()},6462:(ae,I,a)=>{a.d(I,{i:()=>Z,m:()=>K});var i=a(655),t=a(1159),o=a(5e3),h=a(4182),e=a(8929),b=a(3753),O=a(7625),M=a(9439),A=a(1721),w=a(5664),D=a(226),S=a(2643),F=a(9808),L=a(647),V=a(969);const P=["switchElement"];function E(Q,te){1&Q&&o._UZ(0,"i",8)}function N(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzCheckedChildren)}}function C(Q,te){if(1&Q&&(o.ynx(0),o.YNc(1,N,2,1,"ng-container",9),o.BQk()),2&Q){const H=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",H.nzCheckedChildren)}}function y(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzUnCheckedChildren)}}function T(Q,te){if(1&Q&&o.YNc(0,y,2,1,"ng-container",9),2&Q){const H=o.oxw();o.Q6J("nzStringTemplateOutlet",H.nzUnCheckedChildren)}}let Z=(()=>{class Q{constructor(H,J,pe,me,Ce,be){this.nzConfigService=H,this.host=J,this.ngZone=pe,this.cdr=me,this.focusMonitor=Ce,this.directionality=be,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new e.xQ}updateValue(H){this.isChecked!==H&&(this.isChecked=H,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,O.R)(this.destroy$)).subscribe(H=>{this.dir=H,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,b.R)(this.host.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(H=>{H.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,b.R)(this.switchElement.nativeElement,"keydown").pipe((0,O.R)(this.destroy$)).subscribe(H=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:J}=H;J!==t.oh&&J!==t.SV&&J!==t.L_&&J!==t.K5||(H.preventDefault(),this.ngZone.run(()=>{J===t.oh?this.updateValue(!1):J===t.SV?this.updateValue(!0):(J===t.L_||J===t.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,O.R)(this.destroy$)).subscribe(H=>{H||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(H){this.isChecked=H,this.cdr.markForCheck()}registerOnChange(H){this.onChange=H}registerOnTouched(H){this.onTouched=H}setDisabledState(H){this.nzDisabled=H,this.cdr.markForCheck()}}return Q.\u0275fac=function(H){return new(H||Q)(o.Y36(M.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(w.tE),o.Y36(D.Is,8))},Q.\u0275cmp=o.Xpm({type:Q,selectors:[["nz-switch"]],viewQuery:function(H,J){if(1&H&&o.Gf(P,7),2&H){let pe;o.iGM(pe=o.CRH())&&(J.switchElement=pe.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>Q),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(H,J){if(1&H&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,E,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,C,2,1,"ng-container",5),o.YNc(6,T,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&H){const pe=o.MAs(7);o.ekj("ant-switch-checked",J.isChecked)("ant-switch-loading",J.nzLoading)("ant-switch-disabled",J.nzDisabled)("ant-switch-small","small"===J.nzSize)("ant-switch-rtl","rtl"===J.dir),o.Q6J("disabled",J.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",J.nzLoading),o.xp6(2),o.Q6J("ngIf",J.isChecked)("ngIfElse",pe)}},directives:[S.dQ,F.O5,L.Ls,V.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,A.yF)()],Q.prototype,"nzLoading",void 0),(0,i.gn)([(0,A.yF)()],Q.prototype,"nzDisabled",void 0),(0,i.gn)([(0,A.yF)()],Q.prototype,"nzControl",void 0),(0,i.gn)([(0,M.oS)()],Q.prototype,"nzSize",void 0),Q})(),K=(()=>{class Q{}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275mod=o.oAB({type:Q}),Q.\u0275inj=o.cJS({imports:[[D.vT,F.ez,S.vG,L.PV,V.T]]}),Q})()},592:(ae,I,a)=>{a.d(I,{Uo:()=>Xt,N8:()=>In,HQ:()=>wn,p0:()=>yn,qD:()=>jt,_C:()=>ut,Om:()=>An,$Z:()=>Sn});var i=a(226),t=a(925),o=a(3393),h=a(9808),e=a(5e3),b=a(4182),O=a(6042),M=a(5577),A=a(6114),w=a(969),D=a(3677),S=a(685),F=a(4170),L=a(647),V=a(4219),P=a(655),E=a(8929),N=a(5647),C=a(7625),y=a(9439),T=a(4090),f=a(1721),Z=a(5197);const K=["nz-pagination-item",""];function Q(c,g){if(1&c&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&c){const n=e.oxw().page;e.xp6(1),e.Oqu(n)}}function te(c,g){1&c&&e._UZ(0,"i",9)}function H(c,g){1&c&&e._UZ(0,"i",10)}function J(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,te,1,0,"i",7),e.YNc(3,H,1,0,"i",8),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function pe(c,g){1&c&&e._UZ(0,"i",10)}function me(c,g){1&c&&e._UZ(0,"i",9)}function Ce(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,pe,1,0,"i",11),e.YNc(3,me,1,0,"i",12),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function be(c,g){1&c&&e._UZ(0,"i",20)}function ne(c,g){1&c&&e._UZ(0,"i",21)}function ce(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,be,1,0,"i",18),e.YNc(2,ne,1,0,"i",19),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function Y(c,g){1&c&&e._UZ(0,"i",21)}function re(c,g){1&c&&e._UZ(0,"i",20)}function W(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,Y,1,0,"i",22),e.YNc(2,re,1,0,"i",23),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function q(c,g){if(1&c&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,ce,3,2,"ng-container",16),e.YNc(3,W,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&c){const n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",n),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function ge(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,q,6,3,"div",14),e.qZA(),e.BQk()),2&c){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",n)}}function ie(c,g){1&c&&(e.ynx(0,2),e.YNc(1,Q,2,1,"a",3),e.YNc(2,J,4,3,"button",4),e.YNc(3,Ce,4,3,"button",4),e.YNc(4,ge,3,1,"ng-container",5),e.BQk()),2&c&&(e.Q6J("ngSwitch",g.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function he(c,g){}const $=function(c,g){return{$implicit:c,page:g}},se=["containerTemplate"];function _(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(n),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(n),e.oxw().nextPage()}),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("disabled",n.isFirstIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",n.locale.prev_page),e.xp6(1),e.uIk("title",n.pageIndex+"/"+n.lastIndex),e.xp6(1),e.Q6J("disabled",n.disabled)("value",n.pageIndex),e.xp6(3),e.hij(" ",n.lastIndex," "),e.xp6(1),e.Q6J("disabled",n.isLastIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",null==n.locale?null:n.locale.next_page)}}const x=["nz-pagination-options",""];function u(c,g){if(1&c&&e._UZ(0,"nz-option",4),2&c){const n=g.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value)}}function v(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(m){return e.CHM(n),e.oxw().onPageSizeChange(m)}),e.YNc(1,u,1,2,"nz-option",3),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("nzDisabled",n.disabled)("nzSize",n.nzSize)("ngModel",n.pageSize),e.xp6(1),e.Q6J("ngForOf",n.listOfPageSizeOption)("ngForTrackBy",n.trackByOption)}}function k(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e._uU(3),e.qZA()}if(2&c){const n=e.oxw();e.xp6(1),e.hij(" ",n.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",n.disabled),e.xp6(1),e.hij(" ",n.locale.page," ")}}function le(c,g){}const ze=function(c,g){return{$implicit:c,range:g}};function Ee(c,g){if(1&c&&(e.TgZ(0,"li",4),e.YNc(1,le,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.showTotal)("ngTemplateOutletContext",e.WLB(2,ze,n.total,n.ranges))}}function Fe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(m){return e.CHM(n),e.oxw(2).jumpPage(m)})("diffIndex",function(m){return e.CHM(n),e.oxw(2).jumpDiff(m)}),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("locale",l.locale)("type",n.type)("index",n.index)("disabled",!!n.disabled)("itemRender",l.itemRender)("active",l.pageIndex===n.index)("direction",l.dir)}}function Qe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)})("pageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("total",n.total)("locale",n.locale)("disabled",n.disabled)("nzSize",n.nzSize)("showSizeChanger",n.showSizeChanger)("showQuickJumper",n.showQuickJumper)("pageIndex",n.pageIndex)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)}}function Ve(c,g){if(1&c&&(e.YNc(0,Ee,2,5,"li",1),e.YNc(1,Fe,1,7,"li",2),e.YNc(2,Qe,1,9,"div",3)),2&c){const n=e.oxw();e.Q6J("ngIf",n.showTotal),e.xp6(1),e.Q6J("ngForOf",n.listOfPageItem)("ngForTrackBy",n.trackByPageItem),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper||n.showSizeChanger)}}function we(c,g){}function je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,we,0,0,"ng-template",6),e.BQk()),2&c){e.oxw(2);const n=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)}}function et(c,g){if(1&c&&(e.ynx(0),e.YNc(1,je,2,1,"ng-container",5),e.BQk()),2&c){const n=e.oxw(),l=e.MAs(4);e.xp6(1),e.Q6J("ngIf",n.nzSimple)("ngIfElse",l.template)}}let He=(()=>{class c{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(n){var l,m,B,ee;const{locale:_e,index:ve,type:Ie}=n;(_e||ve||Ie)&&(this.title={page:`${this.index}`,next:null===(l=this.locale)||void 0===l?void 0:l.next_page,prev:null===(m=this.locale)||void 0===m?void 0:m.prev_page,prev_5:null===(B=this.locale)||void 0===B?void 0:B.prev_5,next_5:null===(ee=this.locale)||void 0===ee?void 0:ee.next_5}[this.type])}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.clickItem()}),2&n&&(e.uIk("title",l.title),e.ekj("ant-pagination-prev","prev"===l.type)("ant-pagination-next","next"===l.type)("ant-pagination-item","page"===l.type)("ant-pagination-jump-prev","prev_5"===l.type)("ant-pagination-jump-prev-custom-icon","prev_5"===l.type)("ant-pagination-jump-next","next_5"===l.type)("ant-pagination-jump-next-custom-icon","next_5"===l.type)("ant-pagination-disabled",l.disabled)("ant-pagination-item-active",l.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:K,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(n,l){if(1&n&&(e.YNc(0,ie,5,4,"ng-template",null,0,e.W1O),e.YNc(2,he,0,0,"ng-template",1)),2&n){const m=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",l.itemRender||m)("ngTemplateOutletContext",e.WLB(2,$,l.type,l.index))}},directives:[h.RF,h.n9,L.Ls,h.ED,h.tP],encapsulation:2,changeDetection:0}),c})(),st=(()=>{class c{constructor(n,l,m,B){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=B,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new E.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(n){const l=n.target,m=(0,f.He)(l.value,this.pageIndex);this.onPageIndexChange(m),l.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(n){this.pageIndexChange.next(n)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(n){const{pageIndex:l,total:m,pageSize:B}=n;(l||m||B)&&this.updateBindingValue()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination-simple"]],viewQuery:function(n,l){if(1&n&&e.Gf(se,7),2&n){let m;e.iGM(m=e.CRH())&&(l.template=m.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(n,l){1&n&&e.YNc(0,_,7,12,"ng-template",null,0,e.W1O)},directives:[He],encapsulation:2,changeDetection:0}),c})(),at=(()=>{class c{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(n){this.pageSize!==n&&this.pageSizeChange.next(n)}jumpToPageViaInput(n){const l=n.target,m=Math.floor((0,f.He)(l.value,this.pageIndex));this.pageIndexChange.next(m),l.value=""}trackByOption(n,l){return l.value}ngOnChanges(n){const{pageSize:l,pageSizeOptions:m,locale:B}=n;(l||m||B)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(ee=>({value:ee,label:`${ee} ${this.locale.items_per_page}`})))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:x,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(n,l){1&n&&(e.YNc(0,v,2,5,"nz-select",0),e.YNc(1,k,4,3,"div",1)),2&n&&(e.Q6J("ngIf",l.showSizeChanger),e.xp6(1),e.Q6J("ngIf",l.showQuickJumper))},directives:[Z.Vq,Z.Ip,h.O5,b.JJ,b.On,h.sg],encapsulation:2,changeDetection:0}),c})(),tt=(()=>{class c{constructor(n,l,m,B){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=B,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new E.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(n){this.onPageIndexChange(n)}jumpDiff(n){this.jumpPage(this.pageIndex+n)}trackByPageItem(n,l){return`${l.type}-${l.index}`}onPageIndexChange(n){this.pageIndexChange.next(n)}onPageSizeChange(n){this.pageSizeChange.next(n)}getLastIndex(n,l){return Math.ceil(n/l)}buildIndexes(){const n=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,n)}getListOfPageItem(n,l){const B=(ee,_e)=>{const ve=[];for(let Ie=ee;Ie<=_e;Ie++)ve.push({index:Ie,type:"page"});return ve};return ee=l<=9?B(1,l):((_e,ve)=>{let Ie=[];const $e={type:"prev_5"},Te={type:"next_5"},dt=B(1,1),Tt=B(l,l);return Ie=_e<5?[...B(2,4===_e?6:5),Te]:_e{class c{constructor(n,l,m,B,ee){this.i18n=n,this.cdr=l,this.breakpointService=m,this.nzConfigService=B,this.directionality=ee,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new E.xQ,this.total$=new N.t(1)}validatePageIndex(n,l){return n>l?l:n<1?1:n}onPageIndexChange(n){const l=this.getLastIndex(this.nzTotal,this.nzPageSize),m=this.validatePageIndex(n,l);m!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=m,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(n){this.nzPageSize=n,this.nzPageSizeChange.emit(n);const l=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>l&&this.onPageIndexChange(l)}onTotalChange(n){const l=this.getLastIndex(n,this.nzPageSize);this.nzPageIndex>l&&Promise.resolve().then(()=>{this.onPageIndexChange(l),this.cdr.markForCheck()})}getLastIndex(n,l){return Math.ceil(n/l)}ngOnInit(){var n;this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.onTotalChange(l)}),this.breakpointService.subscribe(T.WV).pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.nzResponsive&&(this.size=l===T.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(n){const{nzHideOnSinglePage:l,nzTotal:m,nzPageSize:B,nzSize:ee}=n;m&&this.total$.next(this.nzTotal),(l||m||B)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),ee&&(this.size=ee.currentValue)}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(F.wi),e.Y36(e.sBO),e.Y36(T.r3),e.Y36(y.jY),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(n,l){2&n&&e.ekj("ant-pagination-simple",l.nzSimple)("ant-pagination-disabled",l.nzDisabled)("mini",!l.nzSimple&&"small"===l.size)("ant-pagination-rtl","rtl"===l.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,et,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(B){return l.onPageIndexChange(B)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(B){return l.onPageIndexChange(B)})("pageSizeChange",function(B){return l.onPageSizeChange(B)}),e.qZA()),2&n&&(e.Q6J("ngIf",l.showPagination),e.xp6(1),e.Q6J("disabled",l.nzDisabled)("itemRender",l.nzItemRender)("locale",l.locale)("pageSize",l.nzPageSize)("total",l.nzTotal)("pageIndex",l.nzPageIndex),e.xp6(2),e.Q6J("nzSize",l.size)("itemRender",l.nzItemRender)("showTotal",l.nzShowTotal)("disabled",l.nzDisabled)("locale",l.locale)("showSizeChanger",l.nzShowSizeChanger)("showQuickJumper",l.nzShowQuickJumper)("total",l.nzTotal)("pageIndex",l.nzPageIndex)("pageSize",l.nzPageSize)("pageSizeOptions",l.nzPageSizeOptions))},directives:[st,tt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,P.gn)([(0,y.oS)()],c.prototype,"nzPageSizeOptions",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzDisabled",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzResponsive",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,P.gn)([(0,f.Rn)()],c.prototype,"nzTotal",void 0),(0,P.gn)([(0,f.Rn)()],c.prototype,"nzPageIndex",void 0),(0,P.gn)([(0,f.Rn)()],c.prototype,"nzPageSize",void 0),c})(),oe=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,h.ez,b.u5,Z.LV,F.YI,L.PV]]}),c})();var ye=a(3868),Oe=a(7525),Re=a(3753),ue=a(591),Me=a(6053),Be=a(6787),Le=a(8896),Ze=a(1086),Ae=a(4850),Pe=a(1059),De=a(7545),Ke=a(13),Ue=a(8583),Ye=a(2198),Ge=a(5778),it=a(1307),nt=a(1709),rt=a(2683),ot=a(2643);const Xe=["*"];function _t(c,g){}function yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function Ot(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function xt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const B=e.CHM(n).$implicit;return e.oxw(2).check(B)}),e.YNc(1,yt,1,1,"label",13),e.YNc(2,Ot,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("nzSelected",n.checked),e.xp6(1),e.Q6J("ngIf",!l.filterMultiple),e.xp6(1),e.Q6J("ngIf",l.filterMultiple),e.xp6(2),e.Oqu(n.text)}}function z(c,g){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(m){return e.CHM(n),e.oxw().onVisibleChange(m)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,xt,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(n),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(n),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&c){const n=e.MAs(4),l=e.oxw();e.xp6(1),e.Q6J("nzVisible",l.isVisible)("nzActive",l.isChecked)("nzDropdownMenu",n),e.xp6(6),e.Q6J("ngForOf",l.listOfParsedFilter)("ngForTrackBy",l.trackByValue),e.xp6(2),e.Q6J("disabled",!l.isChecked),e.xp6(1),e.hij(" ",l.locale.filterReset," "),e.xp6(2),e.Oqu(l.locale.filterConfirm)}}function r(c,g){}function p(c,g){if(1&c&&e._UZ(0,"i",6),2&c){const n=e.oxw();e.ekj("active","ascend"===n.sortOrder)}}function R(c,g){if(1&c&&e._UZ(0,"i",7),2&c){const n=e.oxw();e.ekj("active","descend"===n.sortOrder)}}const Ne=["nzColumnKey",""];function We(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(m){return e.CHM(n),e.oxw().onFilterValueChange(m)}),e.qZA()}if(2&c){const n=e.oxw(),l=e.MAs(2),m=e.MAs(4);e.Q6J("contentTemplate",l)("extraTemplate",m)("customFilter",n.nzCustomFilter)("filterMultiple",n.nzFilterMultiple)("listOfFilter",n.nzFilters)}}function lt(c,g){}function ht(c,g){if(1&c&&e.YNc(0,lt,0,0,"ng-template",6),2&c){const n=e.oxw(),l=e.MAs(6),m=e.MAs(8);e.Q6J("ngTemplateOutlet",n.nzShowSort?l:m)}}function St(c,g){1&c&&(e.Hsn(0),e.Hsn(1,1))}function wt(c,g){if(1&c&&e._UZ(0,"nz-table-sorters",7),2&c){const n=e.oxw(),l=e.MAs(8);e.Q6J("sortOrder",n.sortOrder)("sortDirections",n.sortDirections)("contentTemplate",l)}}function Pt(c,g){1&c&&e.Hsn(0,2)}const Ft=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],bt=["[nz-th-extra]","nz-filter-trigger","*"],Rt=["nz-table-content",""];function Bt(c,g){if(1&c&&e._UZ(0,"col"),2&c){const n=g.$implicit;e.Udp("width",n)("min-width",n)}}function kt(c,g){}function Lt(c,g){if(1&c&&(e.TgZ(0,"thead",3),e.YNc(1,kt,0,0,"ng-template",2),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.theadTemplate)}}function Dt(c,g){}const Mt=["tdElement"],Zt=["nz-table-fixed-row",""];function $t(c,g){}function Wt(c,g){if(1&c&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,$t,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(),l=e.MAs(5);e.Udp("width",e.lcZ(1,3,n.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",l)}}function Et(c,g){1&c&&e.Hsn(0)}const Qt=["nz-table-measure-row",""];function Ut(c,g){1&c&&e._UZ(0,"td",1,2)}function Yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(m){return e.CHM(n),e.oxw(2).onListOfAutoWidthChange(m)}),e.qZA()}if(2&c){const n=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",n)}}function Nt(c,g){if(1&c&&(e.ynx(0),e.YNc(1,Yt,1,1,"tr",2),e.BQk()),2&c){const n=g.ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngIf",l.isInsideTable&&n.length)}}function Vt(c,g){if(1&c&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,n.noResult$))}}const Ht=["tableHeaderElement"],Jt=["tableBodyElement"];function qt(c,g){if(1&c&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("contentTemplate",n.contentTemplate)}}function en(c,g){}const tn=function(c,g){return{$implicit:c,index:g}};function nn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,en,0,0,"ng-template",13),e.BQk()),2&c){const n=g.$implicit,l=g.index,m=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",m.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,tn,n,l))}}function on(c,g){if(1&c&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,nn,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&c){const n=e.oxw(2);e.Udp("height",n.data.length?n.scrollY:n.noDateVirtualHeight),e.Q6J("itemSize",n.virtualItemSize)("maxBufferPx",n.virtualMaxBufferPx)("minBufferPx",n.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",n.data)("cdkVirtualForTrackBy",n.virtualForTrackBy)}}function an(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,qt,3,4,"div",5),e.YNc(5,on,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngStyle",n.headerStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate),e.xp6(1),e.Q6J("ngIf",!n.virtualTemplate),e.xp6(1),e.Q6J("ngIf",n.virtualTemplate)}}function sn(c,g){if(1&c&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&c){const n=e.oxw();e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",n.contentTemplate)}}function rn(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.title)}}function ln(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.footer)}}function cn(c,g){}function dn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function pn(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",11),2&c){const n=e.oxw();e.Q6J("title",n.nzTitle)}}function hn(c,g){if(1&c&&e._UZ(0,"nz-table-inner-scroll",12),2&c){const n=e.oxw(),l=e.MAs(13),m=e.MAs(3);e.Q6J("data",n.data)("scrollX",n.scrollX)("scrollY",n.scrollY)("contentTemplate",l)("listOfColWidth",n.listOfAutoColWidth)("theadTemplate",n.theadTemplate)("verticalScrollBarWidth",n.verticalScrollBarWidth)("virtualTemplate",n.nzVirtualScrollDirective?n.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",n.nzVirtualItemSize)("virtualMaxBufferPx",n.nzVirtualMaxBufferPx)("virtualMinBufferPx",n.nzVirtualMinBufferPx)("tableMainElement",m)("virtualForTrackBy",n.nzVirtualForTrackBy)}}function ke(c,g){if(1&c&&e._UZ(0,"nz-table-inner-default",13),2&c){const n=e.oxw(),l=e.MAs(13);e.Q6J("tableLayout",n.nzTableLayout)("listOfColWidth",n.listOfManualColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",l)}}function It(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",14),2&c){const n=e.oxw();e.Q6J("footer",n.nzFooter)}}function un(c,g){}function fn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,un,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function gn(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)})("nzPageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("hidden",!n.showPagination)("nzShowSizeChanger",n.nzShowSizeChanger)("nzPageSizeOptions",n.nzPageSizeOptions)("nzItemRender",n.nzItemRender)("nzShowQuickJumper",n.nzShowQuickJumper)("nzHideOnSinglePage",n.nzHideOnSinglePage)("nzShowTotal",n.nzShowTotal)("nzSize","small"===n.nzPaginationType?"small":"default"===n.nzSize?"default":"small")("nzPageSize",n.nzPageSize)("nzTotal",n.nzTotal)("nzSimple",n.nzSimple)("nzPageIndex",n.nzPageIndex)}}function mn(c,g){if(1&c&&e.YNc(0,gn,1,12,"nz-pagination",15),2&c){const n=e.oxw();e.Q6J("ngIf",n.nzShowPagination&&n.data.length)}}function _n(c,g){1&c&&e.Hsn(0)}const U=["contentTemplate"];function fe(c,g){1&c&&e.Hsn(0)}function xe(c,g){}function Je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,xe,0,0,"ng-template",2),e.BQk()),2&c){e.oxw();const n=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}let ct=(()=>{class c{constructor(n,l,m,B){this.nzConfigService=n,this.ngZone=l,this.cdr=m,this.destroy$=B,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(n){this.nzVisible=n,this.nzVisibleChange.next(n)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Re.R)(this.nzDropdown.nativeElement,"click").pipe((0,C.R)(this.destroy$)).subscribe(n=>{n.stopPropagation()})})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(y.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(T.kn))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-filter-trigger"]],viewQuery:function(n,l){if(1&n&&e.Gf(D.cm,7,e.SBq),2&n){let m;e.iGM(m=e.CRH())&&(l.nzDropdown=m.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([T.kn])],ngContentSelectors:Xe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(n,l){1&n&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(B){return l.onVisibleChange(B)}),e.Hsn(1),e.qZA()),2&n&&(e.ekj("active",l.nzActive)("ant-table-filter-open",l.nzVisible),e.Q6J("nzBackdrop",l.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible))},directives:[D.cm],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBackdrop",void 0),c})(),qe=(()=>{class c{constructor(n,l){this.cdr=n,this.i18n=l,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new E.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(n,l){return l.value}check(n){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(l=>l===n?Object.assign(Object.assign({},l),{checked:!n.checked}):l),n.checked=!n.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(l=>Object.assign(Object.assign({},l),{checked:l===n})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(n){this.isVisible=n,n?this.listOfChecked=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value):this.emitFilterData()}emitFilterData(){const n=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value);(0,f.cO)(this.listOfChecked,n)||this.filterChange.emit(this.filterMultiple?n:n.length>0?n[0]:null)}parseListOfFilter(n,l){return n.map(m=>({text:m.text,value:m.value,checked:!l&&!!m.byDefault}))}getCheckedStatus(n){return n.some(l=>l.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(n){const{listOfFilter:l}=n;l&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(F.wi))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,_t,0,0,"ng-template",1),e.qZA(),e.YNc(2,z,13,8,"ng-container",2)),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.Q6J("ngIf",!l.customFilter)("ngIfElse",l.extraTemplate))},directives:[ct,D.RR,ye.Of,A.Ie,O.ix,h.tP,h.O5,rt.w,L.Ls,V.wO,h.sg,V.r9,b.JJ,b.On,ot.dQ],encapsulation:2,changeDetection:0}),c})(),Gt=(()=>{class c{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(n){const{sortDirections:l}=n;l&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,r,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,p,1,2,"i",4),e.YNc(5,R,1,2,"i",5),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",l.isDown&&l.isUp),e.xp6(2),e.Q6J("ngIf",l.isUp),e.xp6(1),e.Q6J("ngIf",l.isDown))},directives:[h.tP,h.O5,rt.w,L.Ls],encapsulation:2,changeDetection:0}),c})(),Ct=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new E.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"left",n)}setAutoRightWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"right",n)}setIsFirstRight(n){this.setFixClass(n,"ant-table-cell-fix-right-first")}setIsLastLeft(n){this.setFixClass(n,"ant-table-cell-fix-left-last")}setFixClass(n,l){this.renderer.removeClass(this.elementRef.nativeElement,l),n&&this.renderer.addClass(this.elementRef.nativeElement,l)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const n=l=>"string"==typeof l&&""!==l?l:null;this.setAutoLeftWidth(n(this.nzLeft)),this.setAutoRightWidth(n(this.nzRight)),this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(n,l){2&n&&(e.Udp("position",l.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",l.isFixedRight)("ant-table-cell-fix-left",l.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),c})(),mt=(()=>{class c{constructor(){this.theadTemplate$=new N.t(1),this.hasFixLeft$=new N.t(1),this.hasFixRight$=new N.t(1),this.hostWidth$=new N.t(1),this.columnCount$=new N.t(1),this.showEmpty$=new N.t(1),this.noResult$=new N.t(1),this.listOfThWidthConfigPx$=new ue.X([]),this.tableWidthConfigPx$=new ue.X([]),this.manualWidthConfigPx$=(0,Me.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length?n:l)),this.listOfAutoWidthPx$=new N.t(1),this.listOfListOfThWidthPx$=(0,Be.T)(this.manualWidthConfigPx$,(0,Me.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length===l.length?n.map((m,B)=>"0px"===m?l[B]||null:l[B]||m):l))),this.listOfMeasureColumn$=new N.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,Ae.U)(n=>n.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new N.t(1)}setTheadTemplate(n){this.theadTemplate$.next(n)}setHasFixLeft(n){this.hasFixLeft$.next(n)}setHasFixRight(n){this.hasFixRight$.next(n)}setTableWidthConfig(n){this.tableWidthConfigPx$.next(n)}setListOfTh(n){let l=0;n.forEach(B=>{l+=B.colspan&&+B.colspan||B.colSpan&&+B.colSpan||1});const m=n.map(B=>B.nzWidth);this.columnCount$.next(l),this.listOfThWidthConfigPx$.next(m)}setListOfMeasureColumn(n){const l=[];n.forEach(m=>{const B=m.colspan&&+m.colspan||m.colSpan&&+m.colSpan||1;for(let ee=0;ee`${l}px`))}setShowEmpty(n){this.showEmpty$.next(n)}setNoResult(n){this.noResult$.next(n)}setScroll(n,l){const m=!(!n&&!l);m||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(m)}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Xt=(()=>{class c{constructor(n){this.isInsideTable=!1,this.isInsideTable=!!n}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-cell",l.isInsideTable)}}),c})(),jt=(()=>{class c{constructor(n){this.cdr=n,this.manualClickOrder$=new E.xQ,this.calcOperatorChange$=new E.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new E.xQ,this.destroy$=new E.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(n,l){const m=n.indexOf(l);return m===n.length-1?n[0]:n[m+1]}emitNextSortValue(){if(this.nzShowSort){const n=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(n),this.manualClickOrder$.next(this)}}setSortOrder(n){this.sortOrderChange$.next(n)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(n){this.nzFilterChange.emit(n),this.nzFilterValue=n,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.sortOrder!==n&&(this.sortOrder=n,this.nzSortOrderChange.emit(n)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(n){const{nzSortDirections:l,nzFilters:m,nzSortOrder:B,nzSortFn:ee,nzFilterFn:_e,nzSortPriority:ve,nzFilterMultiple:Ie,nzShowSort:$e,nzShowFilter:Te}=n;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),B&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),$e&&(this.isNzShowSortChanged=!0),Te&&(this.isNzShowFilterChanged=!0);const dt=Tt=>Tt&&Tt.firstChange&&void 0!==Tt.currentValue;if((dt(B)||dt(ee))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),dt(m)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(m||Ie)&&this.nzShowFilter){const Tt=this.nzFilters.filter(At=>At.byDefault).map(At=>At.value);this.nzFilterValue=this.nzFilterMultiple?Tt:Tt[0]||null}(ee||_e||ve||m)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO))},c.\u0275cmp=e.Xpm({type:c,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.emitNextSortValue()}),2&n&&e.ekj("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort","descend"===l.sortOrder||"ascend"===l.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:Ne,ngContentSelectors:bt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(n,l){if(1&n&&(e.F$t(Ft),e.YNc(0,We,1,5,"nz-table-filter",0),e.YNc(1,ht,1,1,"ng-template",null,1,e.W1O),e.YNc(3,St,2,0,"ng-template",null,2,e.W1O),e.YNc(5,wt,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Pt,1,0,"ng-template",null,4,e.W1O)),2&n){const m=e.MAs(2);e.Q6J("ngIf",l.nzShowFilter||l.nzCustomFilter)("ngIfElse",m)}},directives:[qe,Gt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,f.yF)()],c.prototype,"nzShowSort",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzShowFilter",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzCustomFilter",void 0),c})(),ut=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.changes$=new E.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(n){const{nzWidth:l,colspan:m,rowspan:B,colSpan:ee,rowSpan:_e}=n;if(m||ee){const ve=this.colspan||this.colSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${ve}`)}if(B||_e){const ve=this.rowspan||this.rowSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${ve}`)}(l||m)&&this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),c})(),Tn=(()=>{class c{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,l){2&n&&(e.Udp("table-layout",l.tableLayout)("width",l.scrollX)("min-width",l.scrollX?"100%":null),e.ekj("ant-table-fixed",l.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Rt,ngContentSelectors:Xe,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Bt,1,4,"col",0),e.YNc(1,Lt,2,1,"thead",1),e.YNc(2,Dt,0,0,"ng-template",2),e.Hsn(3)),2&n&&(e.Q6J("ngForOf",l.listOfColWidth),e.xp6(1),e.Q6J("ngIf",l.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate))},directives:[h.sg,h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),bn=(()=>{class c{constructor(n,l){this.nzTableStyleService=n,this.renderer=l,this.hostWidth$=new ue.X(null),this.enableAutoMeasure$=new ue.X(!1),this.destroy$=new E.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:n,hostWidth$:l}=this.nzTableStyleService;n.pipe((0,C.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${n}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt),e.Y36(e.Qsj))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,7),2&n){let m;e.iGM(m=e.CRH())&&(l.tdElement=m.first)}},attrs:Zt,ngContentSelectors:Xe,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,Wt,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Et,1,0,"ng-template",null,3,e.W1O)),2&n){const m=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,l.enableAutoMeasure$))("ngIfElse",m)}},directives:[h.O5,h.tP],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),Dn=(()=>{class c{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(n,l){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("contentTemplate",l.contentTemplate)("tableLayout",l.tableLayout)("listOfColWidth",l.listOfColWidth)("theadTemplate",l.theadTemplate))},directives:[Tn],encapsulation:2,changeDetection:0}),c})(),Mn=(()=>{class c{constructor(n,l){this.nzResizeObserver=n,this.ngZone=l,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new E.xQ}trackByFunc(n,l){return l}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Pe.O)(this.listOfTdElement)).pipe((0,De.w)(n=>(0,Me.aj)(n.toArray().map(l=>this.nzResizeObserver.observe(l).pipe((0,Ae.U)(([m])=>{const{width:B}=m.target.getBoundingClientRect();return Math.floor(B)}))))),(0,Ke.b)(16),(0,C.R)(this.destroy$)).subscribe(n=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(n)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(M.D3),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,5),2&n){let m;e.iGM(m=e.CRH())&&(l.listOfTdElement=m)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Qt,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(n,l){1&n&&e.YNc(0,Ut,2,0,"td",0),2&n&&e.Q6J("ngForOf",l.listOfMeasureColumn)("ngForTrackBy",l.trackByFunc)},directives:[h.sg],encapsulation:2,changeDetection:0}),c})(),yn=(()=>{class c{constructor(n){if(this.nzTableStyleService=n,this.isInsideTable=!1,this.showEmpty$=new ue.X(!1),this.noResult$=new ue.X(void 0),this.listOfMeasureColumn$=new ue.X([]),this.destroy$=new E.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:l,noResult$:m,listOfMeasureColumn$:B}=this.nzTableStyleService;m.pipe((0,C.R)(this.destroy$)).subscribe(this.noResult$),B.pipe((0,C.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(n){this.nzTableStyleService.setListOfAutoWidth(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-tbody",l.isInsideTable)},ngContentSelectors:Xe,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Nt,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Vt,3,3,"tr",1),e.ALo(4,"async")),2&n&&(e.Q6J("ngIf",e.lcZ(1,2,l.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,l.showEmpty$)))},directives:[Mn,bn,S.gB,h.O5],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),On=(()=>{class c{constructor(n,l,m,B){this.renderer=n,this.ngZone=l,this.platform=m,this.resizeService=B,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=ee=>ee,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new E.xQ,this.scroll$=new E.xQ,this.destroy$=new E.xQ}setScrollPositionClassName(n=!1){const{scrollWidth:l,scrollLeft:m,clientWidth:B}=this.tableBodyElement.nativeElement,ee="ant-table-ping-left",_e="ant-table-ping-right";l===B&&0!==l||n?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.removeClass(this.tableMainElement,_e)):0===m?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e)):l===m+B?(this.renderer.removeClass(this.tableMainElement,_e),this.renderer.addClass(this.tableMainElement,ee)):(this.renderer.addClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e))}ngOnChanges(n){const{scrollX:l,scrollY:m,data:B}=n;if(l||m){const ee=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&ee?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}B&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const n=this.scroll$.pipe((0,Pe.O)(null),(0,Ue.g)(0),(0,De.w)(()=>(0,Re.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Pe.O)(!0))),(0,C.R)(this.destroy$)),l=this.resizeService.subscribe().pipe((0,C.R)(this.destroy$)),m=this.data$.pipe((0,C.R)(this.destroy$));(0,Be.T)(n,l,m,this.scroll$).pipe((0,Pe.O)(!0),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),n.pipe((0,Ye.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(t.t4),e.Y36(T.rI))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,l){if(1&n&&(e.Gf(Ht,5,e.SBq),e.Gf(Jt,5,e.SBq),e.Gf(o.N7,5,o.N7)),2&n){let m;e.iGM(m=e.CRH())&&(l.tableHeaderElement=m.first),e.iGM(m=e.CRH())&&(l.tableBodyElement=m.first),e.iGM(m=e.CRH())&&(l.cdkVirtualScrollViewport=m.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(n,l){1&n&&(e.YNc(0,an,6,6,"ng-container",0),e.YNc(1,sn,3,5,"div",1)),2&n&&(e.Q6J("ngIf",l.scrollY),e.xp6(1),e.Q6J("ngIf",!l.scrollY))},directives:[Tn,o.N7,yn,h.O5,h.PC,o.xd,o.x0,h.tP],encapsulation:2,changeDetection:0}),c})(),En=(()=>{class c{constructor(n){this.templateRef=n}static ngTemplateContextGuard(n,l){return!0}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Rgc))},c.\u0275dir=e.lG2({type:c,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),c})(),zn=(()=>{class c{constructor(){this.destroy$=new E.xQ,this.pageIndex$=new ue.X(1),this.frontPagination$=new ue.X(!0),this.pageSize$=new ue.X(10),this.listOfData$=new ue.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Ge.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Ge.x)()),this.listOfCalcOperator$=new ue.X([]),this.queryParams$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,Ke.b)(0),(0,it.T)(1),(0,Ae.U)(([n,l,m])=>({pageIndex:n,pageSize:l,sort:m.filter(B=>B.sortFn).map(B=>({key:B.key,value:B.sortOrder})),filter:m.filter(B=>B.filterFn).map(B=>({key:B.key,value:B.filterValue}))}))),this.listOfDataAfterCalc$=(0,Me.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,Ae.U)(([n,l])=>{let m=[...n];const B=l.filter(_e=>{const{filterValue:ve,filterFn:Ie}=_e;return!(null==ve||Array.isArray(ve)&&0===ve.length)&&"function"==typeof Ie});for(const _e of B){const{filterFn:ve,filterValue:Ie}=_e;m=m.filter($e=>ve(Ie,$e))}const ee=l.filter(_e=>null!==_e.sortOrder&&"function"==typeof _e.sortFn).sort((_e,ve)=>+ve.sortPriority-+_e.sortPriority);return l.length&&m.sort((_e,ve)=>{for(const Ie of ee){const{sortFn:$e,sortOrder:Te}=Ie;if($e&&Te){const dt=$e(_e,ve,Te);if(0!==dt)return"ascend"===Te?dt:-dt}}return 0}),m})),this.listOfFrontEndCurrentPageData$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,C.R)(this.destroy$),(0,Ye.h)(n=>{const[l,m,B]=n;return l<=(Math.ceil(B.length/m)||1)}),(0,Ae.U)(([n,l,m])=>m.slice((n-1)*l,n*l))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfDataAfterCalc$:this.listOfData$),(0,Ae.U)(n=>n.length),(0,Ge.x)())}updatePageSize(n){this.pageSize$.next(n)}updateFrontPagination(n){this.frontPagination$.next(n)}updatePageIndex(n){this.pageIndex$.next(n)}updateListOfData(n){this.listOfData$.next(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Nn=(()=>{class c{constructor(){this.title=null,this.footer=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,l){2&n&&e.ekj("ant-table-title",null!==l.title)("ant-table-footer",null!==l.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,rn,2,1,"ng-container",0),e.YNc(1,ln,2,1,"ng-container",0)),2&n&&(e.Q6J("nzStringTemplateOutlet",l.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",l.footer))},directives:[w.f],encapsulation:2,changeDetection:0}),c})(),In=(()=>{class c{constructor(n,l,m,B,ee,_e,ve){this.elementRef=n,this.nzResizeObserver=l,this.nzConfigService=m,this.cdr=B,this.nzTableStyleService=ee,this.nzTableDataService=_e,this.directionality=ve,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Ie=>Ie,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new E.xQ,this.templateMode$=new ue.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(n){this.nzTableDataService.updatePageSize(n)}onPageIndexChange(n){this.nzTableDataService.updatePageIndex(n)}ngOnInit(){var n;const{pageIndexDistinct$:l,pageSizeDistinct$:m,listOfCurrentPageData$:B,total$:ee,queryParams$:_e}=this.nzTableDataService,{theadTemplate$:ve,hasFixLeft$:Ie,hasFixRight$:$e}=this.nzTableStyleService;this.dir=this.directionality.value,null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.dir=Te,this.cdr.detectChanges()}),_e.pipe((0,C.R)(this.destroy$)).subscribe(this.nzQueryParams),l.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageIndex&&(this.nzPageIndex=Te,this.nzPageIndexChange.next(Te))}),m.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageSize&&(this.nzPageSize=Te,this.nzPageSizeChange.next(Te))}),ee.pipe((0,C.R)(this.destroy$),(0,Ye.h)(()=>this.nzFrontPagination)).subscribe(Te=>{Te!==this.nzTotal&&(this.nzTotal=Te,this.cdr.markForCheck())}),B.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.data=Te,this.nzCurrentPageDataChange.next(Te),this.cdr.markForCheck()}),ve.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.theadTemplate=Te,this.cdr.markForCheck()}),Ie.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixLeft=Te,this.cdr.markForCheck()}),$e.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixRight=Te,this.cdr.markForCheck()}),(0,Me.aj)([ee,this.templateMode$]).pipe((0,Ae.U)(([Te,dt])=>0===Te&&!dt),(0,C.R)(this.destroy$)).subscribe(Te=>{this.nzTableStyleService.setShowEmpty(Te)}),this.verticalScrollBarWidth=(0,f.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfAutoColWidth=Te,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfManualColWidth=Te,this.cdr.markForCheck()})}ngOnChanges(n){const{nzScroll:l,nzPageIndex:m,nzPageSize:B,nzFrontPagination:ee,nzData:_e,nzWidthConfig:ve,nzNoResult:Ie,nzTemplateMode:$e}=n;m&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),B&&this.nzTableDataService.updatePageSize(this.nzPageSize),_e&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),ee&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),l&&this.setScrollOnChanges(),ve&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),$e&&this.templateMode$.next(this.nzTemplateMode),Ie&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,Ae.U)(([n])=>{const{width:l}=n.target.getBoundingClientRect();return Math.floor(l-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,C.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(M.D3),e.Y36(y.jY),e.Y36(e.sBO),e.Y36(mt),e.Y36(zn),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table"]],contentQueries:function(n,l,m){if(1&n&&e.Suo(m,En,5),2&n){let B;e.iGM(B=e.CRH())&&(l.nzVirtualScrollDirective=B.first)}},viewQuery:function(n,l){if(1&n&&e.Gf(On,5),2&n){let m;e.iGM(m=e.CRH())&&(l.nzTableInnerScrollComponent=m.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-wrapper-rtl","rtl"===l.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([mt,zn]),e.TTD],ngContentSelectors:Xe,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,dn,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,pn,1,1,"nz-table-title-footer",4),e.YNc(5,hn,1,13,"nz-table-inner-scroll",5),e.YNc(6,ke,1,4,"ng-template",null,6,e.W1O),e.YNc(8,It,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,fn,2,1,"ng-container",1),e.qZA(),e.YNc(10,mn,1,1,"ng-template",null,8,e.W1O),e.YNc(12,_n,1,0,"ng-template",null,9,e.W1O)),2&n){const m=e.MAs(7);e.Q6J("nzDelay",l.nzLoadingDelay)("nzSpinning",l.nzLoading)("nzIndicator",l.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"top"===l.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===l.dir)("ant-table-fixed-header",l.nzData.length&&l.scrollY)("ant-table-fixed-column",l.scrollX)("ant-table-has-fix-left",l.hasFixLeft)("ant-table-has-fix-right",l.hasFixRight)("ant-table-bordered",l.nzBordered)("nz-table-out-bordered",l.nzOuterBordered&&!l.nzBordered)("ant-table-middle","middle"===l.nzSize)("ant-table-small","small"===l.nzSize),e.xp6(2),e.Q6J("ngIf",l.nzTitle),e.xp6(1),e.Q6J("ngIf",l.scrollY||l.scrollX)("ngIfElse",m),e.xp6(3),e.Q6J("ngIf",l.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"bottom"===l.nzPaginationPosition)}},directives:[Oe.W,Nn,On,Dn,X,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,P.gn)([(0,f.yF)()],c.prototype,"nzFrontPagination",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzTemplateMode",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzShowPagination",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzLoading",void 0),(0,P.gn)([(0,f.yF)()],c.prototype,"nzOuterBordered",void 0),(0,P.gn)([(0,y.oS)()],c.prototype,"nzLoadingIndicator",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBordered",void 0),(0,P.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,P.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),c})(),Sn=(()=>{class c{constructor(n){this.nzTableStyleService=n,this.destroy$=new E.xQ,this.listOfFixedColumns$=new N.t(1),this.listOfColumns$=new N.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfFixedColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfFixedColumns$))),(0,C.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfColumns$))),(0,C.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!n}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Pe.O)(this.listOfCellFixedDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Pe.O)(this.listOfNzThDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsLastLeft(l===n[n.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsFirstRight(l===n[0]))}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,B)=>{if(m.isAutoLeft){const _e=l.slice(0,B).reduce((Ie,$e)=>Ie+($e.colspan||$e.colSpan||1),0),ve=n.slice(0,_e).reduce((Ie,$e)=>Ie+$e,0);m.setAutoLeftWidth(`${ve}px`)}})}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,B)=>{const ee=l[l.length-B-1];if(ee.isAutoRight){const ve=l.slice(l.length-B,l.length).reduce(($e,Te)=>$e+(Te.colspan||Te.colSpan||1),0),Ie=n.slice(n.length-ve,n.length).reduce(($e,Te)=>$e+Te,0);ee.setAutoRightWidth(`${Ie}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,ut,4),e.Suo(m,Ct,4)),2&n){let B;e.iGM(B=e.CRH())&&(l.listOfNzThDirective=B),e.iGM(B=e.CRH())&&(l.listOfCellFixedDirective=B)}},hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-row",l.isInsideTable)}}),c})(),An=(()=>{class c{constructor(n,l,m,B){this.elementRef=n,this.renderer=l,this.nzTableStyleService=m,this.nzTableDataService=B,this.destroy$=new E.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const n=this.listOfNzTrDirective.changes.pipe((0,Pe.O)(this.listOfNzTrDirective),(0,Ae.U)(ee=>ee&&ee.first)),l=n.pipe((0,De.w)(ee=>ee?ee.listOfColumnsChanges$:Le.E),(0,C.R)(this.destroy$));l.subscribe(ee=>this.nzTableStyleService.setListOfTh(ee)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,De.w)(ee=>ee?l:(0,Ze.of)([]))).pipe((0,C.R)(this.destroy$)).subscribe(ee=>this.nzTableStyleService.setListOfMeasureColumn(ee));const m=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedLeftColumnChanges$:Le.E),(0,C.R)(this.destroy$)),B=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedRightColumnChanges$:Le.E),(0,C.R)(this.destroy$));m.subscribe(ee=>{this.nzTableStyleService.setHasFixLeft(0!==ee.length)}),B.subscribe(ee=>{this.nzTableStyleService.setHasFixRight(0!==ee.length)})}if(this.nzTableDataService){const n=this.listOfNzThAddOnComponent.changes.pipe((0,Pe.O)(this.listOfNzThAddOnComponent));n.pipe((0,De.w)(()=>(0,Be.T)(...this.listOfNzThAddOnComponent.map(B=>B.manualClickOrder$))),(0,C.R)(this.destroy$)).subscribe(B=>{this.nzSortOrderChange.emit({key:B.nzColumnKey,value:B.sortOrder}),B.nzSortFn&&!1===B.nzSortPriority&&this.listOfNzThAddOnComponent.filter(_e=>_e!==B).forEach(_e=>_e.clearSortOrder())}),n.pipe((0,De.w)(B=>(0,Be.T)(n,...B.map(ee=>ee.calcOperatorChange$)).pipe((0,nt.zg)(()=>n))),(0,Ae.U)(B=>B.filter(ee=>!!ee.nzSortFn||!!ee.nzFilterFn).map(ee=>{const{nzSortFn:_e,sortOrder:ve,nzFilterFn:Ie,nzFilterValue:$e,nzSortPriority:Te,nzColumnKey:dt}=ee;return{key:dt,sortFn:_e,sortPriority:Te,sortOrder:ve,filterFn:Ie,filterValue:$e}})),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(B=>{this.nzTableDataService.listOfCalcOperator$.next(B)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(mt,8),e.Y36(zn,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,Sn,5),e.Suo(m,jt,5)),2&n){let B;e.iGM(B=e.CRH())&&(l.listOfNzTrDirective=B),e.iGM(B=e.CRH())&&(l.listOfNzThAddOnComponent=B)}},viewQuery:function(n,l){if(1&n&&e.Gf(U,7),2&n){let m;e.iGM(m=e.CRH())&&(l.templateRef=m.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Xe,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,fe,1,0,"ng-template",null,0,e.W1O),e.YNc(2,Je,2,1,"ng-container",1)),2&n&&(e.xp6(2),e.Q6J("ngIf",!l.isInsideTable))},directives:[h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),wn=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,V.ip,b.u5,w.T,ye.aF,A.Wr,D.b1,O.sL,h.ez,t.ud,oe,M.y7,Oe.j,F.YI,L.PV,S.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/66.31f5b9ae46ae9005.js b/src/blrec/data/webapp/66.31f5b9ae46ae9005.js new file mode 100644 index 0000000..184314d --- /dev/null +++ b/src/blrec/data/webapp/66.31f5b9ae46ae9005.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[66],{8737:(ae,A,a)=>{a.d(A,{Uk:()=>o,yT:()=>h,_m:()=>e,ip:()=>b,Dr:()=>O,Pu:()=>N,Fg:()=>w,rc:()=>E,J_:()=>D,tp:()=>S,O6:()=>P,D4:()=>L,$w:()=>V,Rc:()=>F});var i=a(8760),t=a(7355);const o="\u4f1a\u6309\u7167\u6b64\u9650\u5236\u81ea\u52a8\u5206\u5272\u6587\u4ef6",h="\u8bbe\u7f6e\u540c\u6b65\u5931\u8d25\uff01",e=/^(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?(?:\/(?:[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?\{(?:roomid|uname|title|area|parent_area|year|month|day|hour|minute|second)\}[^\\\/:*?"<>|\t\n\r\f\v\{\}]*?)+?)*$/,b="{roomid} - {uname}/blive_{roomid}_{year}-{month}-{day}-{hour}{minute}{second}",O=[{name:"roomid",desc:"\u623f\u95f4\u53f7"},{name:"uname",desc:"\u4e3b\u64ad\u7528\u6237\u540d"},{name:"title",desc:"\u623f\u95f4\u6807\u9898"},{name:"area",desc:"\u76f4\u64ad\u5b50\u5206\u533a\u540d\u79f0"},{name:"parent_area",desc:"\u76f4\u64ad\u4e3b\u5206\u533a\u540d\u79f0"},{name:"year",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5e74\u4efd"},{name:"month",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u6708\u4efd"},{name:"day",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5929\u6570"},{name:"hour",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5c0f\u65f6"},{name:"minute",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u5206\u949f"},{name:"second",desc:"\u6587\u4ef6\u521b\u5efa\u65e5\u671f\u65f6\u95f4\u4e4b\u79d2\u6570"}],N=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,21).map(M=>({label:`${M} GB`,value:1024**3*M}))],w=[{label:"\u4e0d\u9650",value:0},...(0,t.Z)(1,25).map(M=>({label:`${M} \u5c0f\u65f6`,value:3600*M}))],E=[{label:"\u81ea\u52a8",value:i.zu.AUTO},{label:"\u8c28\u614e",value:i.zu.SAFE},{label:"\u4ece\u4e0d",value:i.zu.NEVER}],D=[{label:"\u9ed8\u8ba4",value:i._l.DEFAULT},{label:"\u53bb\u91cd",value:i._l.DEDUP}],S=[{label:"FLV",value:"flv"},{label:"HLS (fmp4)",value:"fmp4"}],P=[{label:"4K",value:2e4},{label:"\u539f\u753b",value:1e4},{label:"\u84dd\u5149(\u675c\u6bd4)",value:401},{label:"\u84dd\u5149",value:400},{label:"\u8d85\u6e05",value:250},{label:"\u9ad8\u6e05",value:150},{label:"\u6d41\u7545",value:80}],L=[{label:"3 \u79d2",value:3},{label:"5 \u79d2",value:5},{label:"10 \u79d2",value:10},{label:"30 \u79d2",value:30},{label:"1 \u5206\u949f",value:60},{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600}],V=[{label:"3 \u5206\u949f",value:180},{label:"5 \u5206\u949f",value:300},{label:"10 \u5206\u949f",value:600},{label:"15 \u5206\u949f",value:900},{label:"20 \u5206\u949f",value:1200},{label:"30 \u5206\u949f",value:1800}],F=[{label:"4 KB",value:4096},{label:"8 KB",value:8192},{label:"16 KB",value:16384},{label:"32 KB",value:32768},{label:"64 KB",value:65536},{label:"128 KB",value:131072},{label:"256 KB",value:262144},{label:"512 KB",value:524288},{label:"1 MB",value:1048576},{label:"2 MB",value:2097152},{label:"4 MB",value:4194304},{label:"8 MB",value:8388608},{label:"16 MB",value:16777216},{label:"32 MB",value:33554432},{label:"64 MB",value:67108864},{label:"128 MB",value:134217728},{label:"256 MB",value:268435456},{label:"512 MB",value:536870912}]},5136:(ae,A,a)=>{a.d(A,{R:()=>e});var i=a(2340),t=a(5e3),o=a(520);const h=i.N.apiUrl;let e=(()=>{class b{constructor(N){this.http=N}getSettings(N=null,w=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=N?N:[],exclude:null!=w?w:[]}})}changeSettings(N){return this.http.patch(h+"/api/v1/settings",N)}getTaskOptions(N){return this.http.get(h+`/api/v1/settings/tasks/${N}`)}changeTaskOptions(N,w){return this.http.patch(h+`/api/v1/settings/tasks/${N}`,w)}}return b.\u0275fac=function(N){return new(N||b)(t.LFG(o.eN))},b.\u0275prov=t.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},8760:(ae,A,a)=>{a.d(A,{_l:()=>i,zu:()=>t,gP:()=>o,gq:()=>h,jK:()=>e,q1:()=>b,wA:()=>O,_1:()=>N,X:()=>w});var i=(()=>{return(E=i||(i={})).DEFAULT="default",E.DEDUP="dedup",i;var E})(),t=(()=>{return(E=t||(t={})).AUTO="auto",E.SAFE="safe",E.NEVER="never",t;var E})();const o=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],h=["sendkey"],e=["server","pushkey"],b=["token","topic"],O=["token","chatid"],N=["enabled"],w=["notifyBegan","notifyEnded","notifyError","notifySpace"]},7512:(ae,A,a)=>{a.d(A,{q:()=>w});var i=a(5545),t=a(5e3),o=a(9808),h=a(7525),e=a(1945);function b(E,D){if(1&E&&t._UZ(0,"nz-spin",2),2&E){const S=t.oxw();t.Q6J("nzSize","large")("nzSpinning",S.loading)}}function O(E,D){if(1&E&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&E){const S=t.oxw(2);t.Q6J("ngStyle",S.contentStyles),t.xp6(1),t.Q6J("ngTemplateOutlet",S.content.templateRef)}}function N(E,D){if(1&E&&(t.TgZ(0,"div",3),t._UZ(1,"nz-page-header",4),t.YNc(2,O,2,2,"div",5),t.qZA()),2&E){const S=t.oxw();t.Q6J("ngStyle",S.pageStyles),t.xp6(1),t.Q6J("nzTitle",S.pageTitle)("nzGhost",!1),t.xp6(1),t.Q6J("ngIf",S.content)}}let w=(()=>{class E{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return E.\u0275fac=function(S){return new(S||E)},E.\u0275cmp=t.Xpm({type:E,selectors:[["app-sub-page"]],contentQueries:function(S,P,L){if(1&S&&t.Suo(L,i.Y,5),2&S){let V;t.iGM(V=t.CRH())&&(P.content=V.first)}},inputs:{pageTitle:"pageTitle",loading:"loading",pageStyles:"pageStyles",contentStyles:"contentStyles"},decls:3,vars:2,consts:[["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"spinner",3,"nzSize","nzSpinning"],[1,"sub-page",3,"ngStyle"],["nzBackIcon","",1,"page-header",3,"nzTitle","nzGhost"],["class","page-content",3,"ngStyle",4,"ngIf"],[1,"page-content",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(S,P){if(1&S&&(t.YNc(0,b,1,2,"nz-spin",0),t.YNc(1,N,3,4,"ng-template",null,1,t.W1O)),2&S){const L=t.MAs(2);t.Q6J("ngIf",P.loading)("ngIfElse",L)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),E})()},5545:(ae,A,a)=>{a.d(A,{Y:()=>t});var i=a(5e3);let t=(()=>{class o{constructor(e){this.templateRef=e}}return o.\u0275fac=function(e){return new(e||o)(i.Y36(i.Rgc))},o.\u0275dir=i.lG2({type:o,selectors:[["","appSubPageContent",""]]}),o})()},2134:(ae,A,a)=>{a.d(A,{e5:()=>h,AX:()=>e,N4:()=>b});var i=a(6422),t=a(1854),o=a(1999);function h(O,N){return function w(E,D){return(0,i.Z)(E,(S,P,L)=>{const V=Reflect.get(D,L);(0,t.Z)(P,V)||Reflect.set(S,L,(0,o.Z)(P)&&(0,o.Z)(V)?w(P,V):P)})}(O,N)}function e(O,N=" ",w=3){let E,D;if(O<=0)return"0"+N+"kbps";if(O<1e6)E=O/1e3,D="kbps";else if(O<1e9)E=O/1e6,D="Mbps";else if(O<1e12)E=O/1e9,D="Gbps";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);E=O/1e12,D="Tbps"}const S=w-Math.floor(Math.abs(Math.log10(E)))-1;return E.toFixed(S<0?0:S)+N+D}function b(O,N=" ",w=3){let E,D;if(O<=0)return"0"+N+"B/s";if(O<1e3)E=O,D="B/s";else if(O<1e6)E=O/1e3,D="KB/s";else if(O<1e9)E=O/1e6,D="MB/s";else if(O<1e12)E=O/1e9,D="GB/s";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);E=O/1e12,D="TB/s"}const S=w-Math.floor(Math.abs(Math.log10(E)))-1;return E.toFixed(S<0?0:S)+N+D}},2622:(ae,A,a)=>{a.d(A,{Z:()=>M});var o=a(3093);const e=function h(I,C){for(var y=I.length;y--;)if((0,o.Z)(I[y][0],C))return y;return-1};var O=Array.prototype.splice;function F(I){var C=-1,y=null==I?0:I.length;for(this.clear();++C-1},F.prototype.set=function L(I,C){var y=this.__data__,T=e(y,I);return T<0?(++this.size,y.push([I,C])):y[T][1]=C,this};const M=F},9329:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"Map")},3639:(ae,A,a)=>{a.d(A,{Z:()=>ge});const o=(0,a(3858).Z)(Object,"create");var E=Object.prototype.hasOwnProperty;var L=Object.prototype.hasOwnProperty;function y(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}y.prototype.clear=function h(){this.__data__=o?o(null):{},this.size=0},y.prototype.delete=function b(ie){var he=this.has(ie)&&delete this.__data__[ie];return this.size-=he?1:0,he},y.prototype.get=function D(ie){var he=this.__data__;if(o){var $=he[ie];return"__lodash_hash_undefined__"===$?void 0:$}return E.call(he,ie)?he[ie]:void 0},y.prototype.has=function V(ie){var he=this.__data__;return o?void 0!==he[ie]:L.call(he,ie)},y.prototype.set=function I(ie,he){var $=this.__data__;return this.size+=this.has(ie)?0:1,$[ie]=o&&void 0===he?"__lodash_hash_undefined__":he,this};const T=y;var f=a(2622),Z=a(9329);const pe=function J(ie,he){var $=ie.__data__;return function te(ie){var he=typeof ie;return"string"==he||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==ie:null===ie}(he)?$["string"==typeof he?"string":"hash"]:$.map};function q(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}q.prototype.clear=function K(){this.size=0,this.__data__={hash:new T,map:new(Z.Z||f.Z),string:new T}},q.prototype.delete=function me(ie){var he=pe(this,ie).delete(ie);return this.size-=he?1:0,he},q.prototype.get=function be(ie){return pe(this,ie).get(ie)},q.prototype.has=function ce(ie){return pe(this,ie).has(ie)},q.prototype.set=function re(ie,he){var $=pe(this,ie),se=$.size;return $.set(ie,he),this.size+=$.size==se?0:1,this};const ge=q},5343:(ae,A,a)=>{a.d(A,{Z:()=>F});var i=a(2622);var E=a(9329),D=a(3639);function V(M){var I=this.__data__=new i.Z(M);this.size=I.size}V.prototype.clear=function t(){this.__data__=new i.Z,this.size=0},V.prototype.delete=function h(M){var I=this.__data__,C=I.delete(M);return this.size=I.size,C},V.prototype.get=function b(M){return this.__data__.get(M)},V.prototype.has=function N(M){return this.__data__.has(M)},V.prototype.set=function P(M,I){var C=this.__data__;if(C instanceof i.Z){var y=C.__data__;if(!E.Z||y.length<199)return y.push([M,I]),this.size=++C.size,this;C=this.__data__=new D.Z(y)}return C.set(M,I),this.size=C.size,this};const F=V},8492:(ae,A,a)=>{a.d(A,{Z:()=>o});const o=a(5946).Z.Symbol},1630:(ae,A,a)=>{a.d(A,{Z:()=>o});const o=a(5946).Z.Uint8Array},7585:(ae,A,a)=>{a.d(A,{Z:()=>t});const t=function i(o,h){for(var e=-1,b=null==o?0:o.length;++e{a.d(A,{Z:()=>D});var o=a(4825),h=a(4177),e=a(5202),b=a(6667),O=a(7583),w=Object.prototype.hasOwnProperty;const D=function E(S,P){var L=(0,h.Z)(S),V=!L&&(0,o.Z)(S),F=!L&&!V&&(0,e.Z)(S),M=!L&&!V&&!F&&(0,O.Z)(S),I=L||V||F||M,C=I?function i(S,P){for(var L=-1,V=Array(S);++L{a.d(A,{Z:()=>t});const t=function i(o,h){for(var e=-1,b=h.length,O=o.length;++e{a.d(A,{Z:()=>b});var i=a(3496),t=a(3093),h=Object.prototype.hasOwnProperty;const b=function e(O,N,w){var E=O[N];(!h.call(O,N)||!(0,t.Z)(E,w)||void 0===w&&!(N in O))&&(0,i.Z)(O,N,w)}},3496:(ae,A,a)=>{a.d(A,{Z:()=>o});var i=a(2370);const o=function t(h,e,b){"__proto__"==e&&i.Z?(0,i.Z)(h,e,{configurable:!0,enumerable:!0,value:b,writable:!0}):h[e]=b}},4792:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(1999),t=Object.create;const h=function(){function e(){}return function(b){if(!(0,i.Z)(b))return{};if(t)return t(b);e.prototype=b;var O=new e;return e.prototype=void 0,O}}()},1149:(ae,A,a)=>{a.d(A,{Z:()=>O});const h=function i(N){return function(w,E,D){for(var S=-1,P=Object(w),L=D(w),V=L.length;V--;){var F=L[N?V:++S];if(!1===E(P[F],F,P))break}return w}}();var e=a(1952);const O=function b(N,w){return N&&h(N,w,e.Z)}},7298:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(3449),t=a(2168);const h=function o(e,b){for(var O=0,N=(b=(0,i.Z)(b,e)).length;null!=e&&O{a.d(A,{Z:()=>h});var i=a(6623),t=a(4177);const h=function o(e,b,O){var N=b(e);return(0,t.Z)(e)?N:(0,i.Z)(N,O(e))}},7079:(ae,A,a)=>{a.d(A,{Z:()=>F});var i=a(8492),t=Object.prototype,o=t.hasOwnProperty,h=t.toString,e=i.Z?i.Z.toStringTag:void 0;var w=Object.prototype.toString;var L=i.Z?i.Z.toStringTag:void 0;const F=function V(M){return null==M?void 0===M?"[object Undefined]":"[object Null]":L&&L in Object(M)?function b(M){var I=o.call(M,e),C=M[e];try{M[e]=void 0;var y=!0}catch(f){}var T=h.call(M);return y&&(I?M[e]=C:delete M[e]),T}(M):function E(M){return w.call(M)}(M)}},771:(ae,A,a)=>{a.d(A,{Z:()=>ft});var i=a(5343),t=a(3639);function N(X){var oe=-1,ye=null==X?0:X.length;for(this.__data__=new t.Z;++oeBe))return!1;var Ze=ue.get(X),Ae=ue.get(oe);if(Ze&&Ae)return Ze==oe&&Ae==X;var Pe=-1,De=!0,Ke=2&ye?new w:void 0;for(ue.set(X,oe),ue.set(oe,X);++Pe{a.d(A,{Z:()=>re});var i=a(5343),t=a(771);var O=a(1999);const w=function N(W){return W==W&&!(0,O.Z)(W)};var E=a(1952);const L=function P(W,q){return function(ge){return null!=ge&&ge[W]===q&&(void 0!==q||W in Object(ge))}},F=function V(W){var q=function D(W){for(var q=(0,E.Z)(W),ge=q.length;ge--;){var ie=q[ge],he=W[ie];q[ge]=[ie,he,w(he)]}return q}(W);return 1==q.length&&q[0][2]?L(q[0][0],q[0][1]):function(ge){return ge===W||function e(W,q,ge,ie){var he=ge.length,$=he,se=!ie;if(null==W)return!$;for(W=Object(W);he--;){var _=ge[he];if(se&&_[2]?_[1]!==W[_[0]]:!(_[0]in W))return!1}for(;++he<$;){var x=(_=ge[he])[0],u=W[x],v=_[1];if(se&&_[2]){if(void 0===u&&!(x in W))return!1}else{var k=new i.Z;if(ie)var le=ie(u,v,x,W,q,k);if(!(void 0===le?(0,t.Z)(v,u,3,ie,k):le))return!1}}return!0}(ge,W,q)}};var M=a(7298);var y=a(5867),T=a(8042),f=a(2168);const te=function Q(W,q){return(0,T.Z)(W)&&w(q)?L((0,f.Z)(W),q):function(ge){var ie=function I(W,q,ge){var ie=null==W?void 0:(0,M.Z)(W,q);return void 0===ie?ge:ie}(ge,W);return void 0===ie&&ie===q?(0,y.Z)(ge,W):(0,t.Z)(q,ie,3)}};var H=a(9940),J=a(4177);const ce=function ne(W){return(0,T.Z)(W)?function pe(W){return function(q){return null==q?void 0:q[W]}}((0,f.Z)(W)):function Ce(W){return function(q){return(0,M.Z)(q,W)}}(W)},re=function Y(W){return"function"==typeof W?W:null==W?H.Z:"object"==typeof W?(0,J.Z)(W)?te(W[0],W[1]):F(W):ce(W)}},4884:(ae,A,a)=>{a.d(A,{Z:()=>N});var i=a(1986);const h=(0,a(5820).Z)(Object.keys,Object);var b=Object.prototype.hasOwnProperty;const N=function O(w){if(!(0,i.Z)(w))return h(w);var E=[];for(var D in Object(w))b.call(w,D)&&"constructor"!=D&&E.push(D);return E}},6932:(ae,A,a)=>{a.d(A,{Z:()=>t});const t=function i(o){return function(h){return o(h)}}},3449:(ae,A,a)=>{a.d(A,{Z:()=>te});var i=a(4177),t=a(8042),o=a(3639);function e(H,J){if("function"!=typeof H||null!=J&&"function"!=typeof J)throw new TypeError("Expected a function");var pe=function(){var me=arguments,Ce=J?J.apply(this,me):me[0],be=pe.cache;if(be.has(Ce))return be.get(Ce);var ne=H.apply(this,me);return pe.cache=be.set(Ce,ne)||be,ne};return pe.cache=new(e.Cache||o.Z),pe}e.Cache=o.Z;const b=e;var E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,D=/\\(\\)?/g;const P=function N(H){var J=b(H,function(me){return 500===pe.size&&pe.clear(),me}),pe=J.cache;return J}(function(H){var J=[];return 46===H.charCodeAt(0)&&J.push(""),H.replace(E,function(pe,me,Ce,be){J.push(Ce?be.replace(D,"$1"):me||pe)}),J});var L=a(8492);var M=a(6460),C=L.Z?L.Z.prototype:void 0,y=C?C.toString:void 0;const f=function T(H){if("string"==typeof H)return H;if((0,i.Z)(H))return function V(H,J){for(var pe=-1,me=null==H?0:H.length,Ce=Array(me);++pe{a.d(A,{Z:()=>o});var i=a(3858);const o=function(){try{var h=(0,i.Z)(Object,"defineProperty");return h({},"",{}),h}catch(e){}}()},8346:(ae,A,a)=>{a.d(A,{Z:()=>t});const t="object"==typeof global&&global&&global.Object===Object&&global},8501:(ae,A,a)=>{a.d(A,{Z:()=>e});var i=a(8203),t=a(3976),o=a(1952);const e=function h(b){return(0,i.Z)(b,o.Z,t.Z)}},3858:(ae,A,a)=>{a.d(A,{Z:()=>f});var Z,i=a(2089),o=a(5946).Z["__core-js_shared__"],e=(Z=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var N=a(1999),w=a(4407),D=/^\[object .+?Constructor\]$/,F=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const I=function M(Z){return!(!(0,N.Z)(Z)||function b(Z){return!!e&&e in Z}(Z))&&((0,i.Z)(Z)?F:D).test((0,w.Z)(Z))},f=function T(Z,K){var Q=function C(Z,K){return null==Z?void 0:Z[K]}(Z,K);return I(Q)?Q:void 0}},5650:(ae,A,a)=>{a.d(A,{Z:()=>o});const o=(0,a(5820).Z)(Object.getPrototypeOf,Object)},3976:(ae,A,a)=>{a.d(A,{Z:()=>N});var o=a(3419),e=Object.prototype.propertyIsEnumerable,b=Object.getOwnPropertySymbols;const N=b?function(w){return null==w?[]:(w=Object(w),function i(w,E){for(var D=-1,S=null==w?0:w.length,P=0,L=[];++D{a.d(A,{Z:()=>te});var i=a(3858),t=a(5946);const h=(0,i.Z)(t.Z,"DataView");var e=a(9329);const O=(0,i.Z)(t.Z,"Promise"),w=(0,i.Z)(t.Z,"Set"),D=(0,i.Z)(t.Z,"WeakMap");var S=a(7079),P=a(4407),L="[object Map]",F="[object Promise]",M="[object Set]",I="[object WeakMap]",C="[object DataView]",y=(0,P.Z)(h),T=(0,P.Z)(e.Z),f=(0,P.Z)(O),Z=(0,P.Z)(w),K=(0,P.Z)(D),Q=S.Z;(h&&Q(new h(new ArrayBuffer(1)))!=C||e.Z&&Q(new e.Z)!=L||O&&Q(O.resolve())!=F||w&&Q(new w)!=M||D&&Q(new D)!=I)&&(Q=function(H){var J=(0,S.Z)(H),pe="[object Object]"==J?H.constructor:void 0,me=pe?(0,P.Z)(pe):"";if(me)switch(me){case y:return C;case T:return L;case f:return F;case Z:return M;case K:return I}return J});const te=Q},6667:(ae,A,a)=>{a.d(A,{Z:()=>h});var t=/^(?:0|[1-9]\d*)$/;const h=function o(e,b){var O=typeof e;return!!(b=null==b?9007199254740991:b)&&("number"==O||"symbol"!=O&&t.test(e))&&e>-1&&e%1==0&&e{a.d(A,{Z:()=>b});var i=a(4177),t=a(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const b=function e(O,N){if((0,i.Z)(O))return!1;var w=typeof O;return!("number"!=w&&"symbol"!=w&&"boolean"!=w&&null!=O&&!(0,t.Z)(O))||h.test(O)||!o.test(O)||null!=N&&O in Object(N)}},1986:(ae,A,a)=>{a.d(A,{Z:()=>o});var i=Object.prototype;const o=function t(h){var e=h&&h.constructor;return h===("function"==typeof e&&e.prototype||i)}},6594:(ae,A,a)=>{a.d(A,{Z:()=>O});var i=a(8346),t="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=t&&"object"==typeof module&&module&&!module.nodeType&&module,e=o&&o.exports===t&&i.Z.process;const O=function(){try{return o&&o.require&&o.require("util").types||e&&e.binding&&e.binding("util")}catch(w){}}()},5820:(ae,A,a)=>{a.d(A,{Z:()=>t});const t=function i(o,h){return function(e){return o(h(e))}}},5946:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(8346),t="object"==typeof self&&self&&self.Object===Object&&self;const h=i.Z||t||Function("return this")()},2168:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(6460);const h=function o(e){if("string"==typeof e||(0,i.Z)(e))return e;var b=e+"";return"0"==b&&1/e==-1/0?"-0":b}},4407:(ae,A,a)=>{a.d(A,{Z:()=>h});var t=Function.prototype.toString;const h=function o(e){if(null!=e){try{return t.call(e)}catch(b){}try{return e+""}catch(b){}}return""}},3523:(ae,A,a)=>{a.d(A,{Z:()=>_n});var i=a(5343),t=a(7585),o=a(1481),h=a(3496);const b=function e(U,fe,xe,Je){var zt=!xe;xe||(xe={});for(var ct=-1,qe=fe.length;++ct{a.d(A,{Z:()=>t});const t=function i(o,h){return o===h||o!=o&&h!=h}},5867:(ae,A,a)=>{a.d(A,{Z:()=>S});const t=function i(P,L){return null!=P&&L in Object(P)};var o=a(3449),h=a(4825),e=a(4177),b=a(6667),O=a(8696),N=a(2168);const S=function D(P,L){return null!=P&&function w(P,L,V){for(var F=-1,M=(L=(0,o.Z)(L,P)).length,I=!1;++F{a.d(A,{Z:()=>t});const t=function i(o){return o}},4825:(ae,A,a)=>{a.d(A,{Z:()=>E});var i=a(7079),t=a(214);const e=function h(D){return(0,t.Z)(D)&&"[object Arguments]"==(0,i.Z)(D)};var b=Object.prototype,O=b.hasOwnProperty,N=b.propertyIsEnumerable;const E=e(function(){return arguments}())?e:function(D){return(0,t.Z)(D)&&O.call(D,"callee")&&!N.call(D,"callee")}},4177:(ae,A,a)=>{a.d(A,{Z:()=>t});const t=Array.isArray},8706:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(2089),t=a(8696);const h=function o(e){return null!=e&&(0,t.Z)(e.length)&&!(0,i.Z)(e)}},5202:(ae,A,a)=>{a.d(A,{Z:()=>E});var i=a(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,O=e&&e.exports===h?i.Z.Buffer:void 0;const E=(O?O.isBuffer:void 0)||function t(){return!1}},1854:(ae,A,a)=>{a.d(A,{Z:()=>o});var i=a(771);const o=function t(h,e){return(0,i.Z)(h,e)}},2089:(ae,A,a)=>{a.d(A,{Z:()=>N});var i=a(7079),t=a(1999);const N=function O(w){if(!(0,t.Z)(w))return!1;var E=(0,i.Z)(w);return"[object Function]"==E||"[object GeneratorFunction]"==E||"[object AsyncFunction]"==E||"[object Proxy]"==E}},8696:(ae,A,a)=>{a.d(A,{Z:()=>o});const o=function t(h){return"number"==typeof h&&h>-1&&h%1==0&&h<=9007199254740991}},1999:(ae,A,a)=>{a.d(A,{Z:()=>t});const t=function i(o){var h=typeof o;return null!=o&&("object"==h||"function"==h)}},214:(ae,A,a)=>{a.d(A,{Z:()=>t});const t=function i(o){return null!=o&&"object"==typeof o}},6460:(ae,A,a)=>{a.d(A,{Z:()=>e});var i=a(7079),t=a(214);const e=function h(b){return"symbol"==typeof b||(0,t.Z)(b)&&"[object Symbol]"==(0,i.Z)(b)}},7583:(ae,A,a)=>{a.d(A,{Z:()=>Y});var i=a(7079),t=a(8696),o=a(214),J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J["[object Arguments]"]=J["[object Array]"]=J["[object ArrayBuffer]"]=J["[object Boolean]"]=J["[object DataView]"]=J["[object Date]"]=J["[object Error]"]=J["[object Function]"]=J["[object Map]"]=J["[object Number]"]=J["[object Object]"]=J["[object RegExp]"]=J["[object Set]"]=J["[object String]"]=J["[object WeakMap]"]=!1;var Ce=a(6932),be=a(6594),ne=be.Z&&be.Z.isTypedArray;const Y=ne?(0,Ce.Z)(ne):function pe(re){return(0,o.Z)(re)&&(0,t.Z)(re.length)&&!!J[(0,i.Z)(re)]}},1952:(ae,A,a)=>{a.d(A,{Z:()=>e});var i=a(3487),t=a(4884),o=a(8706);const e=function h(b){return(0,o.Z)(b)?(0,i.Z)(b):(0,t.Z)(b)}},7355:(ae,A,a)=>{a.d(A,{Z:()=>be});var i=Math.ceil,t=Math.max;var e=a(3093),b=a(8706),O=a(6667),N=a(1999);var D=/\s/;var L=/^\s+/;const F=function V(ne){return ne&&ne.slice(0,function S(ne){for(var ce=ne.length;ce--&&D.test(ne.charAt(ce)););return ce}(ne)+1).replace(L,"")};var M=a(6460),C=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,T=/^0o[0-7]+$/i,f=parseInt;var Q=1/0;const J=function H(ne){return ne?(ne=function Z(ne){if("number"==typeof ne)return ne;if((0,M.Z)(ne))return NaN;if((0,N.Z)(ne)){var ce="function"==typeof ne.valueOf?ne.valueOf():ne;ne=(0,N.Z)(ce)?ce+"":ce}if("string"!=typeof ne)return 0===ne?ne:+ne;ne=F(ne);var Y=y.test(ne);return Y||T.test(ne)?f(ne.slice(2),Y?2:8):C.test(ne)?NaN:+ne}(ne))===Q||ne===-Q?17976931348623157e292*(ne<0?-1:1):ne==ne?ne:0:0===ne?ne:0},be=function pe(ne){return function(ce,Y,re){return re&&"number"!=typeof re&&function w(ne,ce,Y){if(!(0,N.Z)(Y))return!1;var re=typeof ce;return!!("number"==re?(0,b.Z)(Y)&&(0,O.Z)(ce,Y.length):"string"==re&&ce in Y)&&(0,e.Z)(Y[ce],ne)}(ce,Y,re)&&(Y=re=void 0),ce=J(ce),void 0===Y?(Y=ce,ce=0):Y=J(Y),function o(ne,ce,Y,re){for(var W=-1,q=t(i((ce-ne)/(Y||1)),0),ge=Array(q);q--;)ge[re?q:++W]=ne,ne+=Y;return ge}(ce,Y,re=void 0===re?ce{a.d(A,{Z:()=>t});const t=function i(){return[]}},6422:(ae,A,a)=>{a.d(A,{Z:()=>S});var i=a(7585),t=a(4792),o=a(1149),h=a(7242),e=a(5650),b=a(4177),O=a(5202),N=a(2089),w=a(1999),E=a(7583);const S=function D(P,L,V){var F=(0,b.Z)(P),M=F||(0,O.Z)(P)||(0,E.Z)(P);if(L=(0,h.Z)(L,4),null==V){var I=P&&P.constructor;V=M?F?new I:[]:(0,w.Z)(P)&&(0,N.Z)(I)?(0,t.Z)((0,e.Z)(P)):{}}return(M?i.Z:o.Z)(P,function(C,y,T){return L(V,C,y,T)}),V}},6699:(ae,A,a)=>{a.d(A,{Dz:()=>V,Rt:()=>M});var i=a(655),t=a(5e3),o=a(9439),h=a(1721),e=a(925),b=a(9808),O=a(647),N=a(226);const w=["textEl"];function E(I,C){if(1&I&&t._UZ(0,"i",3),2&I){const y=t.oxw();t.Q6J("nzType",y.nzIcon)}}function D(I,C){if(1&I){const y=t.EpF();t.TgZ(0,"img",4),t.NdJ("error",function(f){return t.CHM(y),t.oxw().imgError(f)}),t.qZA()}if(2&I){const y=t.oxw();t.Q6J("src",y.nzSrc,t.LSH),t.uIk("srcset",y.nzSrcSet,t.LSH)("alt",y.nzAlt)}}function S(I,C){if(1&I&&(t.TgZ(0,"span",5,6),t._uU(2),t.qZA()),2&I){const y=t.oxw();t.Q6J("ngStyle",y.textStyles),t.xp6(2),t.Oqu(y.nzText)}}let V=(()=>{class I{constructor(y,T,f,Z){this.nzConfigService=y,this.elementRef=T,this.cdr=f,this.platform=Z,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new t.vpe,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.textStyles={},this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(y){this.nzError.emit(y),y.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.notifyCalc())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.notifyCalc()}calcStringSize(){if(!this.hasText)return;const y=this.textEl.nativeElement.offsetWidth,T=this.el.getBoundingClientRect().width,f=2*this.nzGap{this.calcStringSize()})}setSizeStyle(){this.customSize="number"==typeof this.nzSize?`${this.nzSize}px`:null,this.cdr.markForCheck()}}return I.\u0275fac=function(y){return new(y||I)(t.Y36(o.jY),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(e.t4))},I.\u0275cmp=t.Xpm({type:I,selectors:[["nz-avatar"]],viewQuery:function(y,T){if(1&y&&t.Gf(w,5),2&y){let f;t.iGM(f=t.CRH())&&(T.textEl=f.first)}},hostAttrs:[1,"ant-avatar"],hostVars:20,hostBindings:function(y,T){2&y&&(t.Udp("width",T.customSize)("height",T.customSize)("line-height",T.customSize)("font-size",T.hasIcon&&T.customSize?T.nzSize/2:null,"px"),t.ekj("ant-avatar-lg","large"===T.nzSize)("ant-avatar-sm","small"===T.nzSize)("ant-avatar-square","square"===T.nzShape)("ant-avatar-circle","circle"===T.nzShape)("ant-avatar-icon",T.nzIcon)("ant-avatar-image",T.hasSrc))},inputs:{nzShape:"nzShape",nzSize:"nzSize",nzGap:"nzGap",nzText:"nzText",nzSrc:"nzSrc",nzSrcSet:"nzSrcSet",nzAlt:"nzAlt",nzIcon:"nzIcon"},outputs:{nzError:"nzError"},exportAs:["nzAvatar"],features:[t.TTD],decls:3,vars:3,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[3,"src","error",4,"ngIf"],["class","ant-avatar-string",3,"ngStyle",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"src","error"],[1,"ant-avatar-string",3,"ngStyle"],["textEl",""]],template:function(y,T){1&y&&(t.YNc(0,E,1,1,"i",0),t.YNc(1,D,1,3,"img",1),t.YNc(2,S,3,2,"span",2)),2&y&&(t.Q6J("ngIf",T.nzIcon&&T.hasIcon),t.xp6(1),t.Q6J("ngIf",T.nzSrc&&T.hasSrc),t.xp6(1),t.Q6J("ngIf",T.nzText&&T.hasText))},directives:[b.O5,O.Ls,b.PC],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.oS)()],I.prototype,"nzShape",void 0),(0,i.gn)([(0,o.oS)()],I.prototype,"nzSize",void 0),(0,i.gn)([(0,o.oS)(),(0,h.Rn)()],I.prototype,"nzGap",void 0),I})(),M=(()=>{class I{}return I.\u0275fac=function(y){return new(y||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[[N.vT,b.ez,O.PV,e.ud]]}),I})()},6042:(ae,A,a)=>{a.d(A,{ix:()=>C,fY:()=>y,sL:()=>T});var i=a(655),t=a(5e3),o=a(8929),h=a(3753),e=a(7625),b=a(1059),O=a(2198),N=a(9439),w=a(1721),E=a(647),D=a(226),S=a(9808),P=a(2683),L=a(2643);const V=["nz-button",""];function F(f,Z){1&f&&t._UZ(0,"i",1)}const M=["*"],I="button";let C=(()=>{class f{constructor(K,Q,te,H,J,pe){this.ngZone=K,this.elementRef=Q,this.cdr=te,this.renderer=H,this.nzConfigService=J,this.directionality=pe,this._nzModuleName=I,this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ,this.loading$=new o.xQ,this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}insertSpan(K,Q){K.forEach(te=>{if("#text"===te.nodeName){const H=Q.createElement("span"),J=Q.parentNode(te);Q.insertBefore(J,H,te),Q.appendChild(H,te)}})}assertIconOnly(K,Q){const te=Array.from(K.childNodes),H=te.filter(Ce=>"I"===Ce.nodeName).length,J=te.every(Ce=>"#text"!==Ce.nodeName);te.every(Ce=>"SPAN"!==Ce.nodeName)&&J&&H>=1&&Q.addClass(K,"ant-btn-icon-only")}ngOnInit(){var K;null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,h.R)(this.elementRef.nativeElement,"click").pipe((0,e.R)(this.destroy$)).subscribe(Q=>{var te;this.disabled&&"A"===(null===(te=Q.target)||void 0===te?void 0:te.tagName)&&(Q.preventDefault(),Q.stopImmediatePropagation())})})}ngOnChanges(K){const{nzLoading:Q}=K;Q&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,b.O)(this.nzLoading),(0,O.h)(()=>!!this.nzIconDirectiveElement),(0,e.R)(this.destroy$)).subscribe(K=>{const Q=this.nzIconDirectiveElement.nativeElement;K?this.renderer.setStyle(Q,"display","none"):this.renderer.removeStyle(Q,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(N.jY),t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(K,Q,te){if(1&K&&t.Suo(te,E.Ls,5,t.SBq),2&K){let H;t.iGM(H=t.CRH())&&(Q.nzIconDirectiveElement=H.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(K,Q){2&K&&(t.uIk("tabindex",Q.disabled?-1:null===Q.tabIndex?null:Q.tabIndex)("disabled",Q.disabled||null),t.ekj("ant-btn-primary","primary"===Q.nzType)("ant-btn-dashed","dashed"===Q.nzType)("ant-btn-link","link"===Q.nzType)("ant-btn-text","text"===Q.nzType)("ant-btn-circle","circle"===Q.nzShape)("ant-btn-round","round"===Q.nzShape)("ant-btn-lg","large"===Q.nzSize)("ant-btn-sm","small"===Q.nzSize)("ant-btn-dangerous",Q.nzDanger)("ant-btn-loading",Q.nzLoading)("ant-btn-background-ghost",Q.nzGhost)("ant-btn-block",Q.nzBlock)("ant-input-search-button",Q.nzSearch)("ant-btn-rtl","rtl"===Q.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[t.TTD],attrs:V,ngContentSelectors:M,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(K,Q){1&K&&(t.F$t(),t.YNc(0,F,1,0,"i",0),t.Hsn(1)),2&K&&t.Q6J("ngIf",Q.nzLoading)},directives:[S.O5,E.Ls,P.w],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,w.yF)()],f.prototype,"nzBlock",void 0),(0,i.gn)([(0,w.yF)()],f.prototype,"nzGhost",void 0),(0,i.gn)([(0,w.yF)()],f.prototype,"nzSearch",void 0),(0,i.gn)([(0,w.yF)()],f.prototype,"nzLoading",void 0),(0,i.gn)([(0,w.yF)()],f.prototype,"nzDanger",void 0),(0,i.gn)([(0,w.yF)()],f.prototype,"disabled",void 0),(0,i.gn)([(0,N.oS)()],f.prototype,"nzSize",void 0),f})(),y=(()=>{class f{constructor(K){this.directionality=K,this.nzSize="default",this.dir="ltr",this.destroy$=new o.xQ}ngOnInit(){var K;this.dir=this.directionality.value,null===(K=this.directionality.change)||void 0===K||K.pipe((0,e.R)(this.destroy$)).subscribe(Q=>{this.dir=Q})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return f.\u0275fac=function(K){return new(K||f)(t.Y36(D.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(K,Q){2&K&&t.ekj("ant-btn-group-lg","large"===Q.nzSize)("ant-btn-group-sm","small"===Q.nzSize)("ant-btn-group-rtl","rtl"===Q.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:M,decls:1,vars:0,template:function(K,Q){1&K&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),f})(),T=(()=>{class f{}return f.\u0275fac=function(K){return new(K||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[D.vT,S.ez,L.vG,E.PV,P.a],P.a,L.vG]}),f})()},7484:(ae,A,a)=>{a.d(A,{bd:()=>ge,l7:()=>ie,vh:()=>he});var i=a(655),t=a(5e3),o=a(1721),h=a(8929),e=a(7625),b=a(9439),O=a(226),N=a(9808),w=a(969);function E($,se){1&$&&t.Hsn(0)}const D=["*"];function S($,se){1&$&&(t.TgZ(0,"div",4),t._UZ(1,"div",5),t.qZA()),2&$&&t.Q6J("ngClass",se.$implicit)}function P($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,S,2,1,"div",3),t.qZA()),2&$){const _=se.$implicit;t.xp6(1),t.Q6J("ngForOf",_)}}function L($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function V($,se){if(1&$&&(t.TgZ(0,"div",11),t.YNc(1,L,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function F($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzExtra)}}function M($,se){if(1&$&&(t.TgZ(0,"div",13),t.YNc(1,F,2,1,"ng-container",12),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzExtra)}}function I($,se){}function C($,se){if(1&$&&(t.ynx(0),t.YNc(1,I,0,0,"ng-template",14),t.BQk()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",_.listOfNzCardTabComponent.template)}}function y($,se){if(1&$&&(t.TgZ(0,"div",6),t.TgZ(1,"div",7),t.YNc(2,V,2,1,"div",8),t.YNc(3,M,2,1,"div",9),t.qZA(),t.YNc(4,C,2,1,"ng-container",10),t.qZA()),2&$){const _=t.oxw();t.xp6(2),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzExtra),t.xp6(1),t.Q6J("ngIf",_.listOfNzCardTabComponent)}}function T($,se){}function f($,se){if(1&$&&(t.TgZ(0,"div",15),t.YNc(1,T,0,0,"ng-template",14),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzCover)}}function Z($,se){1&$&&(t.ynx(0),t.Hsn(1),t.BQk())}function K($,se){1&$&&t._UZ(0,"nz-card-loading")}function Q($,se){}function te($,se){if(1&$&&(t.TgZ(0,"li"),t.TgZ(1,"span"),t.YNc(2,Q,0,0,"ng-template",14),t.qZA(),t.qZA()),2&$){const _=se.$implicit,x=t.oxw(2);t.Udp("width",100/x.nzActions.length,"%"),t.xp6(2),t.Q6J("ngTemplateOutlet",_)}}function H($,se){if(1&$&&(t.TgZ(0,"ul",16),t.YNc(1,te,3,3,"li",17),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngForOf",_.nzActions)}}function J($,se){}function pe($,se){if(1&$&&(t.TgZ(0,"div",2),t.YNc(1,J,0,0,"ng-template",3),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",_.nzAvatar)}}function me($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzTitle)}}function Ce($,se){if(1&$&&(t.TgZ(0,"div",7),t.YNc(1,me,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzTitle)}}function be($,se){if(1&$&&(t.ynx(0),t._uU(1),t.BQk()),2&$){const _=t.oxw(3);t.xp6(1),t.Oqu(_.nzDescription)}}function ne($,se){if(1&$&&(t.TgZ(0,"div",9),t.YNc(1,be,2,1,"ng-container",8),t.qZA()),2&$){const _=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",_.nzDescription)}}function ce($,se){if(1&$&&(t.TgZ(0,"div",4),t.YNc(1,Ce,2,1,"div",5),t.YNc(2,ne,2,1,"div",6),t.qZA()),2&$){const _=t.oxw();t.xp6(1),t.Q6J("ngIf",_.nzTitle),t.xp6(1),t.Q6J("ngIf",_.nzDescription)}}let Y=(()=>{class ${constructor(){this.nzHoverable=!0}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275dir=t.lG2({type:$,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(_,x){2&_&&t.ekj("ant-card-hoverable",x.nzHoverable)},inputs:{nzHoverable:"nzHoverable"},exportAs:["nzCardGrid"]}),(0,i.gn)([(0,o.yF)()],$.prototype,"nzHoverable",void 0),$})(),re=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-tab"]],viewQuery:function(_,x){if(1&_&&t.Gf(t.Rgc,7),2&_){let u;t.iGM(u=t.CRH())&&(x.template=u.first)}},exportAs:["nzCardTab"],ngContentSelectors:D,decls:1,vars:0,template:function(_,x){1&_&&(t.F$t(),t.YNc(0,E,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),$})(),W=(()=>{class ${constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,x){1&_&&(t.TgZ(0,"div",0),t.YNc(1,P,2,1,"div",1),t.qZA()),2&_&&(t.xp6(1),t.Q6J("ngForOf",x.listOfLoading))},directives:[N.sg,N.mk],encapsulation:2,changeDetection:0}),$})();const q="card";let ge=(()=>{class ${constructor(_,x,u){this.nzConfigService=_,this.cdr=x,this.directionality=u,this._nzModuleName=q,this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new h.xQ,this.nzConfigService.getConfigChangeEventForComponent(q).pipe((0,e.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var _;null===(_=this.directionality.change)||void 0===_||_.pipe((0,e.R)(this.destroy$)).subscribe(x=>{this.dir=x,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return $.\u0275fac=function(_){return new(_||$)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(O.Is,8))},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card"]],contentQueries:function(_,x,u){if(1&_&&(t.Suo(u,re,5),t.Suo(u,Y,4)),2&_){let v;t.iGM(v=t.CRH())&&(x.listOfNzCardTabComponent=v.first),t.iGM(v=t.CRH())&&(x.listOfNzCardGridDirective=v)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(_,x){2&_&&t.ekj("ant-card-loading",x.nzLoading)("ant-card-bordered",!1===x.nzBorderless&&x.nzBordered)("ant-card-hoverable",x.nzHoverable)("ant-card-small","small"===x.nzSize)("ant-card-contain-grid",x.listOfNzCardGridDirective&&x.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===x.nzType)("ant-card-contain-tabs",!!x.listOfNzCardTabComponent)("ant-card-rtl","rtl"===x.dir)},inputs:{nzBordered:"nzBordered",nzBorderless:"nzBorderless",nzLoading:"nzLoading",nzHoverable:"nzHoverable",nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:D,decls:7,vars:6,consts:[["class","ant-card-head",4,"ngIf"],["class","ant-card-cover",4,"ngIf"],[1,"ant-card-body",3,"ngStyle"],[4,"ngIf","ngIfElse"],["loadingTemplate",""],["class","ant-card-actions",4,"ngIf"],[1,"ant-card-head"],[1,"ant-card-head-wrapper"],["class","ant-card-head-title",4,"ngIf"],["class","ant-card-extra",4,"ngIf"],[4,"ngIf"],[1,"ant-card-head-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[1,"ant-card-cover"],[1,"ant-card-actions"],[3,"width",4,"ngFor","ngForOf"]],template:function(_,x){if(1&_&&(t.F$t(),t.YNc(0,y,5,3,"div",0),t.YNc(1,f,2,1,"div",1),t.TgZ(2,"div",2),t.YNc(3,Z,2,0,"ng-container",3),t.YNc(4,K,1,0,"ng-template",null,4,t.W1O),t.qZA(),t.YNc(6,H,2,1,"ul",5)),2&_){const u=t.MAs(5);t.Q6J("ngIf",x.nzTitle||x.nzExtra||x.listOfNzCardTabComponent),t.xp6(1),t.Q6J("ngIf",x.nzCover),t.xp6(1),t.Q6J("ngStyle",x.nzBodyStyle),t.xp6(1),t.Q6J("ngIf",!x.nzLoading)("ngIfElse",u),t.xp6(3),t.Q6J("ngIf",x.nzActions.length)}},directives:[W,N.O5,w.f,N.tP,N.PC,N.sg],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzBordered",void 0),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzBorderless",void 0),(0,i.gn)([(0,o.yF)()],$.prototype,"nzLoading",void 0),(0,i.gn)([(0,b.oS)(),(0,o.yF)()],$.prototype,"nzHoverable",void 0),(0,i.gn)([(0,b.oS)()],$.prototype,"nzSize",void 0),$})(),ie=(()=>{class ${constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[["class","ant-card-meta-avatar",4,"ngIf"],["class","ant-card-meta-detail",4,"ngIf"],[1,"ant-card-meta-avatar"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-detail"],["class","ant-card-meta-title",4,"ngIf"],["class","ant-card-meta-description",4,"ngIf"],[1,"ant-card-meta-title"],[4,"nzStringTemplateOutlet"],[1,"ant-card-meta-description"]],template:function(_,x){1&_&&(t.YNc(0,pe,2,1,"div",0),t.YNc(1,ce,3,2,"div",1)),2&_&&(t.Q6J("ngIf",x.nzAvatar),t.xp6(1),t.Q6J("ngIf",x.nzTitle||x.nzDescription))},directives:[N.O5,N.tP,w.f],encapsulation:2,changeDetection:0}),$})(),he=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[N.ez,w.T],O.vT]}),$})()},6114:(ae,A,a)=>{a.d(A,{Ie:()=>F,Wr:()=>I});var i=a(655),t=a(5e3),o=a(4182),h=a(8929),e=a(3753),b=a(7625),O=a(1721),N=a(5664),w=a(226),E=a(9808);const D=["*"],S=["inputElement"],P=["nz-checkbox",""];let V=(()=>{class C{constructor(T,f){this.nzOnChange=new t.vpe,this.checkboxList=[],T.addClass(f.nativeElement,"ant-checkbox-group")}addCheckbox(T){this.checkboxList.push(T)}removeCheckbox(T){this.checkboxList.splice(this.checkboxList.indexOf(T),1)}onChange(){const T=this.checkboxList.filter(f=>f.nzChecked).map(f=>f.nzValue);this.nzOnChange.emit(T)}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.Qsj),t.Y36(t.SBq))},C.\u0275cmp=t.Xpm({type:C,selectors:[["nz-checkbox-wrapper"]],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:D,decls:1,vars:0,template:function(T,f){1&T&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),C})(),F=(()=>{class C{constructor(T,f,Z,K,Q,te){this.ngZone=T,this.elementRef=f,this.nzCheckboxWrapperComponent=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.dir="ltr",this.destroy$=new h.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.vpe,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}innerCheckedChange(T){this.nzDisabled||(this.nzChecked=T,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(T){this.nzChecked=T,this.cdr.markForCheck()}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.nzDisabled=T,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(T=>{T||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,b.R)(this.destroy$)).subscribe(T=>{this.dir=T,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(T=>{T.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,b.R)(this.destroy$)).subscribe(T=>T.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}}return C.\u0275fac=function(T){return new(T||C)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(V,8),t.Y36(t.sBO),t.Y36(N.tE),t.Y36(w.Is,8))},C.\u0275cmp=t.Xpm({type:C,selectors:[["","nz-checkbox",""]],viewQuery:function(T,f){if(1&T&&t.Gf(S,7),2&T){let Z;t.iGM(Z=t.CRH())&&(f.inputElement=Z.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:4,hostBindings:function(T,f){2&T&&t.ekj("ant-checkbox-wrapper-checked",f.nzChecked)("ant-checkbox-rtl","rtl"===f.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:"nzAutoFocus",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzChecked:"nzChecked",nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[t._Bn([{provide:o.JU,useExisting:(0,t.Gpc)(()=>C),multi:!0}])],attrs:P,ngContentSelectors:D,decls:6,vars:11,consts:[[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"checked","ngModel","disabled","ngModelChange"],["inputElement",""],[1,"ant-checkbox-inner"]],template:function(T,f){1&T&&(t.F$t(),t.TgZ(0,"span",0),t.TgZ(1,"input",1,2),t.NdJ("ngModelChange",function(K){return f.innerCheckedChange(K)}),t.qZA(),t._UZ(3,"span",3),t.qZA(),t.TgZ(4,"span"),t.Hsn(5),t.qZA()),2&T&&(t.ekj("ant-checkbox-checked",f.nzChecked&&!f.nzIndeterminate)("ant-checkbox-disabled",f.nzDisabled)("ant-checkbox-indeterminate",f.nzIndeterminate),t.xp6(1),t.Q6J("checked",f.nzChecked)("ngModel",f.nzChecked)("disabled",f.nzDisabled),t.uIk("autofocus",f.nzAutoFocus?"autofocus":null)("id",f.nzId))},directives:[o.Wl,o.JJ,o.On],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,O.yF)()],C.prototype,"nzAutoFocus",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzDisabled",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzIndeterminate",void 0),(0,i.gn)([(0,O.yF)()],C.prototype,"nzChecked",void 0),C})(),I=(()=>{class C{}return C.\u0275fac=function(T){return new(T||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[w.vT,E.ez,o.u5,N.rt]]}),C})()},2683:(ae,A,a)=>{a.d(A,{w:()=>o,a:()=>h});var i=a(925),t=a(5e3);let o=(()=>{class e{constructor(O,N){this.elementRef=O,this.renderer=N,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}}return e.\u0275fac=function(O){return new(O||e)(t.Y36(t.SBq),t.Y36(t.Qsj))},e.\u0275dir=t.lG2({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[t.TTD]}),e})(),h=(()=>{class e{}return e.\u0275fac=function(O){return new(O||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[i.ud]]}),e})()},2643:(ae,A,a)=>{a.d(A,{dQ:()=>N,vG:()=>w});var i=a(925),t=a(5e3),o=a(6360);class h{constructor(D,S,P,L){this.triggerElement=D,this.ngZone=S,this.insertExtraNode=P,this.platformId=L,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=V=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===V.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new i.t4(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const D=this.triggerElement,S=this.getWaveColor(D);D.setAttribute(this.waveAttributeName,"true"),!(Date.now(){D.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(D){return!!D&&"#ffffff"!==D&&"rgb(255, 255, 255)"!==D&&this.isNotGrey(D)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(D)&&"transparent"!==D}isNotGrey(D){const S=D.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(S&&S[1]&&S[2]&&S[3]&&S[1]===S[2]&&S[2]===S[3])}getWaveColor(D){const S=getComputedStyle(D);return S.getPropertyValue("border-top-color")||S.getPropertyValue("border-color")||S.getPropertyValue("background-color")}runTimeoutOutsideZone(D,S){this.ngZone.runOutsideAngular(()=>setTimeout(D,S))}}const e={disabled:!1},b=new t.OlP("nz-wave-global-options",{providedIn:"root",factory:function O(){return e}});let N=(()=>{class E{constructor(S,P,L,V,F){this.ngZone=S,this.elementRef=P,this.config=L,this.animationType=V,this.platformId=F,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}isConfigDisabled(){let S=!1;return this.config&&"boolean"==typeof this.config.disabled&&(S=this.config.disabled),"NoopAnimations"===this.animationType&&(S=!0),S}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return E.\u0275fac=function(S){return new(S||E)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(b,8),t.Y36(o.Qb,8),t.Y36(t.Lbi))},E.\u0275dir=t.lG2({type:E,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),E})(),w=(()=>{class E{}return E.\u0275fac=function(S){return new(S||E)},E.\u0275mod=t.oAB({type:E}),E.\u0275inj=t.cJS({imports:[[i.ud]]}),E})()},5737:(ae,A,a)=>{a.d(A,{g:()=>w,S:()=>E});var i=a(655),t=a(5e3),o=a(1721),h=a(9808),e=a(969),b=a(226);function O(D,S){if(1&D&&(t.ynx(0),t._uU(1),t.BQk()),2&D){const P=t.oxw(2);t.xp6(1),t.Oqu(P.nzText)}}function N(D,S){if(1&D&&(t.TgZ(0,"span",1),t.YNc(1,O,2,1,"ng-container",2),t.qZA()),2&D){const P=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",P.nzText)}}let w=(()=>{class D{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return D.\u0275fac=function(P){return new(P||D)},D.\u0275cmp=t.Xpm({type:D,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(P,L){2&P&&t.ekj("ant-divider-horizontal","horizontal"===L.nzType)("ant-divider-vertical","vertical"===L.nzType)("ant-divider-with-text",L.nzText)("ant-divider-plain",L.nzPlain)("ant-divider-with-text-left",L.nzText&&"left"===L.nzOrientation)("ant-divider-with-text-right",L.nzText&&"right"===L.nzOrientation)("ant-divider-with-text-center",L.nzText&&"center"===L.nzOrientation)("ant-divider-dashed",L.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:"nzDashed",nzPlain:"nzPlain"},exportAs:["nzDivider"],decls:1,vars:1,consts:[["class","ant-divider-inner-text",4,"ngIf"],[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(P,L){1&P&&t.YNc(0,N,2,1,"span",0),2&P&&t.Q6J("ngIf",L.nzText)},directives:[h.O5,e.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.yF)()],D.prototype,"nzDashed",void 0),(0,i.gn)([(0,o.yF)()],D.prototype,"nzPlain",void 0),D})(),E=(()=>{class D{}return D.\u0275fac=function(P){return new(P||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[b.vT,h.ez,e.T]]}),D})()},3677:(ae,A,a)=>{a.d(A,{cm:()=>re,b1:()=>he,wA:()=>ge,RR:()=>ie});var i=a(655),t=a(1159),o=a(7429),h=a(5e3),e=a(8929),b=a(591),O=a(6787),N=a(3753),w=a(8896),E=a(6053),D=a(7604),S=a(4850),P=a(7545),L=a(2198),V=a(7138),F=a(5778),M=a(7625),I=a(9439),C=a(6950),y=a(1721),T=a(2845),f=a(925),Z=a(226),K=a(9808),Q=a(4182),te=a(6042),H=a(4832),J=a(969),pe=a(647),me=a(4219),Ce=a(8076);function be(_,x){if(1&_){const u=h.EpF();h.TgZ(0,"div",0),h.NdJ("@slideMotion.done",function(k){return h.CHM(u),h.oxw().onAnimationEvent(k)})("mouseenter",function(){return h.CHM(u),h.oxw().setMouseState(!0)})("mouseleave",function(){return h.CHM(u),h.oxw().setMouseState(!1)}),h.Hsn(1),h.qZA()}if(2&_){const u=h.oxw();h.ekj("ant-dropdown-rtl","rtl"===u.dir),h.Q6J("ngClass",u.nzOverlayClassName)("ngStyle",u.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)("nzNoAnimation",null==u.noAnimation?null:u.noAnimation.nzNoAnimation)}}const ne=["*"],Y=[C.yW.bottomLeft,C.yW.bottomRight,C.yW.topRight,C.yW.topLeft];let re=(()=>{class _{constructor(u,v,k,le,ze,Ee){this.nzConfigService=u,this.elementRef=v,this.overlay=k,this.renderer=le,this.viewContainerRef=ze,this.platform=Ee,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new e.xQ,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new b.X(!1),this.nzTrigger$=new b.X("hover"),this.overlayClose$=new e.xQ,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new h.vpe}setDropdownMenuValue(u,v){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(u,v)}ngAfterViewInit(){if(this.nzDropdownMenu){const u=this.elementRef.nativeElement,v=(0,O.T)((0,N.R)(u,"mouseenter").pipe((0,D.h)(!0)),(0,N.R)(u,"mouseleave").pipe((0,D.h)(!1))),le=(0,O.T)(this.nzDropdownMenu.mouseState$,v),ze=(0,N.R)(u,"click").pipe((0,S.U)(()=>!this.nzVisible)),Ee=this.nzTrigger$.pipe((0,P.w)(we=>"hover"===we?le:"click"===we?ze:w.E)),Fe=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,L.h)(()=>this.nzClickHide),(0,D.h)(!1)),Qe=(0,O.T)(Ee,Fe,this.overlayClose$).pipe((0,L.h)(()=>!this.nzDisabled)),Ve=(0,O.T)(this.inputVisible$,Qe);(0,E.aj)([Ve,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,S.U)(([we,je])=>we||je),(0,V.e)(150),(0,F.x)(),(0,L.h)(()=>this.platform.isBrowser),(0,M.R)(this.destroy$)).subscribe(we=>{const et=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:u).getBoundingClientRect().width;this.nzVisible!==we&&this.nzVisibleChange.emit(we),this.nzVisible=we,we?(this.overlayRef?this.overlayRef.getConfig().minWidth=et:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:et,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,O.T)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,L.h)(He=>!this.elementRef.nativeElement.contains(He.target))),this.overlayRef.keydownEvents().pipe((0,L.h)(He=>He.keyCode===t.hY&&!(0,t.Vb)(He)))).pipe((0,M.R)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([C.yW[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new o.UE(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,M.R)(this.destroy$)).subscribe(we=>{"void"===we.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(u){const{nzVisible:v,nzDisabled:k,nzOverlayClassName:le,nzOverlayStyle:ze,nzTrigger:Ee}=u;if(Ee&&this.nzTrigger$.next(this.nzTrigger),v&&this.inputVisible$.next(this.nzVisible),k){const Fe=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Fe,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Fe,"disabled")}le&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),ze&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(I.jY),h.Y36(h.SBq),h.Y36(T.aV),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(f.t4))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[h.TTD]}),(0,i.gn)([(0,I.oS)(),(0,y.yF)()],_.prototype,"nzBackdrop",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzClickHide",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzDisabled",void 0),(0,i.gn)([(0,y.yF)()],_.prototype,"nzVisible",void 0),_})(),W=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({}),_})(),ge=(()=>{class _{constructor(u,v,k){this.renderer=u,this.nzButtonGroupComponent=v,this.elementRef=k}ngAfterViewInit(){const u=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&u&&this.renderer.addClass(u,"ant-dropdown-button")}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.Qsj),h.Y36(te.fY,9),h.Y36(h.SBq))},_.\u0275dir=h.lG2({type:_,selectors:[["","nz-button","","nz-dropdown",""]]}),_})(),ie=(()=>{class _{constructor(u,v,k,le,ze,Ee,Fe){this.cdr=u,this.elementRef=v,this.renderer=k,this.viewContainerRef=le,this.nzMenuService=ze,this.directionality=Ee,this.noAnimation=Fe,this.mouseState$=new b.X(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new h.vpe,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new e.xQ}onAnimationEvent(u){this.animationStateChange$.emit(u)}setMouseState(u){this.mouseState$.next(u)}setValue(u,v){this[u]=v,this.cdr.markForCheck()}ngOnInit(){var u;null===(u=this.directionality.change)||void 0===u||u.pipe((0,M.R)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(h.s_b),h.Y36(me.hl),h.Y36(Z.Is,8),h.Y36(H.P,9))},_.\u0275cmp=h.Xpm({type:_,selectors:[["nz-dropdown-menu"]],viewQuery:function(u,v){if(1&u&&h.Gf(h.Rgc,7),2&u){let k;h.iGM(k=h.CRH())&&(v.templateRef=k.first)}},exportAs:["nzDropdownMenu"],features:[h._Bn([me.hl,{provide:me.Cc,useValue:!0}])],ngContentSelectors:ne,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(u,v){1&u&&(h.F$t(),h.YNc(0,be,2,7,"ng-template"))},directives:[K.mk,K.PC,H.P],encapsulation:2,data:{animation:[Ce.mF]},changeDetection:0}),_})(),he=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=h.oAB({type:_}),_.\u0275inj=h.cJS({imports:[[Z.vT,K.ez,T.U8,Q.u5,te.sL,me.ip,pe.PV,H.g,f.ud,C.e4,W,J.T],me.ip]}),_})();new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new T.tR({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new T.tR({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},685:(ae,A,a)=>{a.d(A,{gB:()=>ne,p9:()=>Ce,Xo:()=>ce});var i=a(7429),t=a(5e3),o=a(8929),h=a(7625),e=a(1059),b=a(9439),O=a(4170),N=a(9808),w=a(969),E=a(226);function D(Y,re){if(1&Y&&(t.ynx(0),t._UZ(1,"img",5),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.Q6J("src",W.nzNotFoundImage,t.LSH)("alt",W.isContentString?W.nzNotFoundContent:"empty")}}function S(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,D,2,2,"ng-container",4),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundImage)}}function P(Y,re){1&Y&&t._UZ(0,"nz-empty-default")}function L(Y,re){1&Y&&t._UZ(0,"nz-empty-simple")}function V(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.isContentString?W.nzNotFoundContent:W.locale.description," ")}}function F(Y,re){if(1&Y&&(t.TgZ(0,"p",6),t.YNc(1,V,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundContent)}}function M(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.nzNotFoundFooter," ")}}function I(Y,re){if(1&Y&&(t.TgZ(0,"div",7),t.YNc(1,M,2,1,"ng-container",4),t.qZA()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",W.nzNotFoundFooter)}}function C(Y,re){1&Y&&t._UZ(0,"nz-empty",6),2&Y&&t.Q6J("nzNotFoundImage","simple")}function y(Y,re){1&Y&&t._UZ(0,"nz-empty",7),2&Y&&t.Q6J("nzNotFoundImage","simple")}function T(Y,re){1&Y&&t._UZ(0,"nz-empty")}function f(Y,re){if(1&Y&&(t.ynx(0,2),t.YNc(1,C,1,1,"nz-empty",3),t.YNc(2,y,1,1,"nz-empty",4),t.YNc(3,T,1,0,"nz-empty",5),t.BQk()),2&Y){const W=t.oxw();t.Q6J("ngSwitch",W.size),t.xp6(1),t.Q6J("ngSwitchCase","normal"),t.xp6(1),t.Q6J("ngSwitchCase","small")}}function Z(Y,re){}function K(Y,re){if(1&Y&&t.YNc(0,Z,0,0,"ng-template",8),2&Y){const W=t.oxw(2);t.Q6J("cdkPortalOutlet",W.contentPortal)}}function Q(Y,re){if(1&Y&&(t.ynx(0),t._uU(1),t.BQk()),2&Y){const W=t.oxw(2);t.xp6(1),t.hij(" ",W.content," ")}}function te(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,K,1,1,void 0,1),t.YNc(2,Q,2,1,"ng-container",1),t.BQk()),2&Y){const W=t.oxw();t.xp6(1),t.Q6J("ngIf","string"!==W.contentType),t.xp6(1),t.Q6J("ngIf","string"===W.contentType)}}const H=new t.OlP("nz-empty-component-name");let J=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t.TgZ(2,"g",2),t._UZ(3,"ellipse",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t._UZ(6,"path",6),t._UZ(7,"path",7),t.qZA(),t._UZ(8,"path",8),t.TgZ(9,"g",9),t._UZ(10,"ellipse",10),t._UZ(11,"path",11),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})(),pe=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(W,q){1&W&&(t.O4$(),t.TgZ(0,"svg",0),t.TgZ(1,"g",1),t._UZ(2,"ellipse",2),t.TgZ(3,"g",3),t._UZ(4,"path",4),t._UZ(5,"path",5),t.qZA(),t.qZA(),t.qZA())},encapsulation:2,changeDetection:0}),Y})();const me=["default","simple"];let Ce=(()=>{class Y{constructor(W,q){this.i18n=W,this.cdr=q,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new o.xQ}ngOnChanges(W){const{nzNotFoundContent:q,nzNotFoundImage:ge}=W;if(q&&(this.isContentString="string"==typeof q.currentValue),ge){const ie=ge.currentValue||"default";this.isImageBuildIn=me.findIndex(he=>he===ie)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(O.wi),t.Y36(t.sBO))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[t.TTD],decls:6,vars:5,consts:[[1,"ant-empty-image"],[4,"ngIf"],["class","ant-empty-description",4,"ngIf"],["class","ant-empty-footer",4,"ngIf"],[4,"nzStringTemplateOutlet"],[3,"src","alt"],[1,"ant-empty-description"],[1,"ant-empty-footer"]],template:function(W,q){1&W&&(t.TgZ(0,"div",0),t.YNc(1,S,2,1,"ng-container",1),t.YNc(2,P,1,0,"nz-empty-default",1),t.YNc(3,L,1,0,"nz-empty-simple",1),t.qZA(),t.YNc(4,F,2,1,"p",2),t.YNc(5,I,2,1,"div",3)),2&W&&(t.xp6(1),t.Q6J("ngIf",!q.isImageBuildIn),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"!==q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",q.isImageBuildIn&&"simple"===q.nzNotFoundImage),t.xp6(1),t.Q6J("ngIf",null!==q.nzNotFoundContent),t.xp6(1),t.Q6J("ngIf",q.nzNotFoundFooter))},directives:[J,pe,N.O5,w.f],encapsulation:2,changeDetection:0}),Y})(),ne=(()=>{class Y{constructor(W,q,ge,ie){this.configService=W,this.viewContainerRef=q,this.cdr=ge,this.injector=ie,this.contentType="string",this.size="",this.destroy$=new o.xQ}ngOnChanges(W){W.nzComponentName&&(this.size=function be(Y){switch(Y){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(W.nzComponentName.currentValue)),W.specificContent&&!W.specificContent.isFirstChange()&&(this.content=W.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const W=this.content;if("string"==typeof W)this.contentType="string";else if(W instanceof t.Rgc){const q={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new i.UE(W,this.viewContainerRef,q)}else if(W instanceof t.DyG){const q=t.zs3.create({parent:this.injector,providers:[{provide:H,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new i.C5(W,this.viewContainerRef,q)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,e.O)(!0),(0,h.R)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}}return Y.\u0275fac=function(W){return new(W||Y)(t.Y36(b.jY),t.Y36(t.s_b),t.Y36(t.sBO),t.Y36(t.zs3))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[t.TTD],decls:2,vars:2,consts:[[3,"ngSwitch",4,"ngIf"],[4,"ngIf"],[3,"ngSwitch"],["class","ant-empty-normal",3,"nzNotFoundImage",4,"ngSwitchCase"],["class","ant-empty-small",3,"nzNotFoundImage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"ant-empty-normal",3,"nzNotFoundImage"],[1,"ant-empty-small",3,"nzNotFoundImage"],[3,"cdkPortalOutlet"]],template:function(W,q){1&W&&(t.YNc(0,f,4,3,"ng-container",0),t.YNc(1,te,3,2,"ng-container",1)),2&W&&(t.Q6J("ngIf",!q.content&&null!==q.specificContent),t.xp6(1),t.Q6J("ngIf",q.content))},directives:[Ce,N.O5,N.RF,N.n9,N.ED,i.Pl],encapsulation:2,changeDetection:0}),Y})(),ce=(()=>{class Y{}return Y.\u0275fac=function(W){return new(W||Y)},Y.\u0275mod=t.oAB({type:Y}),Y.\u0275inj=t.cJS({imports:[[E.vT,N.ez,i.eL,w.T,O.YI]]}),Y})()},4546:(ae,A,a)=>{a.d(A,{Fd:()=>q,Lr:()=>re,Nx:()=>ne,iK:()=>ie,U5:()=>se,EF:()=>$});var i=a(226),t=a(5113),o=a(925),h=a(9808),e=a(5e3),b=a(969),O=a(1894),N=a(647),w=a(404),E=a(4182),D=a(8929),S=a(2654),P=a(7625),L=a(2198),V=a(4850),F=a(2994),M=a(1059),I=a(8076),C=a(1721),y=a(4170),T=a(655),f=a(9439);const Z=["*"];function K(_,x){if(1&_&&e._UZ(0,"i",6),2&_){const u=e.oxw();e.Q6J("nzType",u.iconType)}}function Q(_,x){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.innerTip)}}const te=function(_){return[_]},H=function(_){return{$implicit:_}};function J(_,x){if(1&_&&(e.TgZ(0,"div",7),e.TgZ(1,"div",8),e.YNc(2,Q,2,1,"ng-container",9),e.qZA(),e.qZA()),2&_){const u=e.oxw();e.Q6J("@helpMotion",void 0),e.xp6(1),e.Q6J("ngClass",e.VKq(4,te,"ant-form-item-explain-"+u.status)),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.innerTip)("nzStringTemplateOutletContext",e.VKq(6,H,u.validateControl))}}function pe(_,x){if(1&_&&(e.ynx(0),e._uU(1),e.BQk()),2&_){const u=e.oxw(2);e.xp6(1),e.Oqu(u.nzExtra)}}function me(_,x){if(1&_&&(e.TgZ(0,"div",10),e.YNc(1,pe,2,1,"ng-container",11),e.qZA()),2&_){const u=e.oxw();e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.nzExtra)}}function Ce(_,x){if(1&_&&(e.ynx(0),e._UZ(1,"i",3),e.BQk()),2&_){const u=x.$implicit,v=e.oxw(2);e.xp6(1),e.Q6J("nzType",u)("nzTheme",v.tooltipIcon.theme)}}function be(_,x){if(1&_&&(e.TgZ(0,"span",1),e.YNc(1,Ce,2,2,"ng-container",2),e.qZA()),2&_){const u=e.oxw();e.Q6J("nzTooltipTitle",u.nzTooltipTitle),e.xp6(1),e.Q6J("nzStringTemplateOutlet",u.tooltipIcon.type)}}let ne=(()=>{class _{constructor(u,v,k){this.cdr=k,this.status=null,this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item")}setWithHelpViaTips(u){this.withHelpClass=u,this.cdr.markForCheck()}setStatus(u){this.status=u,this.cdr.markForCheck()}setHasFeedback(u){this.hasFeedback=u,this.cdr.markForCheck()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-item"]],hostVars:12,hostBindings:function(u,v){2&u&&e.ekj("ant-form-item-has-success","success"===v.status)("ant-form-item-has-warning","warning"===v.status)("ant-form-item-has-error","error"===v.status)("ant-form-item-is-validating","validating"===v.status)("ant-form-item-has-feedback",v.hasFeedback&&v.status)("ant-form-item-with-help",v.withHelpClass)},exportAs:["nzFormItem"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})();const Y={type:"question-circle",theme:"outline"};let re=(()=>{class _{constructor(u,v,k,le){var ze;this.nzConfigService=u,this.renderer=k,this.directionality=le,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Y,this.dir="ltr",this.destroy$=new D.xQ,this.inputChanges$=new D.xQ,this.renderer.addClass(v.nativeElement,"ant-form"),this.dir=this.directionality.value,null===(ze=this.directionality.change)||void 0===ze||ze.pipe((0,P.R)(this.destroy$)).subscribe(Ee=>{this.dir=Ee})}getInputObservable(u){return this.inputChanges$.pipe((0,L.h)(v=>u in v),(0,V.U)(v=>v[u]))}ngOnChanges(u){this.inputChanges$.next(u)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(f.jY),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(i.Is,8))},_.\u0275dir=e.lG2({type:_,selectors:[["","nz-form",""]],hostVars:8,hostBindings:function(u,v){2&u&&e.ekj("ant-form-horizontal","horizontal"===v.nzLayout)("ant-form-vertical","vertical"===v.nzLayout)("ant-form-inline","inline"===v.nzLayout)("ant-form-rtl","rtl"===v.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:"nzNoColon",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzForm"],features:[e.TTD]}),(0,T.gn)([(0,f.oS)(),(0,C.yF)()],_.prototype,"nzNoColon",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzAutoTips",void 0),(0,T.gn)([(0,C.yF)()],_.prototype,"nzDisableAutoTips",void 0),(0,T.gn)([(0,f.oS)()],_.prototype,"nzTooltipIcon",void 0),_})();const W={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let q=(()=>{class _{constructor(u,v,k,le,ze,Ee){var Fe,Qe;this.nzFormItemComponent=v,this.cdr=k,this.nzFormDirective=Ee,this._hasFeedback=!1,this.validateChanges=S.w.EMPTY,this.validateString=null,this.destroyed$=new D.xQ,this.status=null,this.validateControl=null,this.iconType=null,this.innerTip=null,this.nzAutoTips={},this.nzDisableAutoTips="default",le.addClass(u.nativeElement,"ant-form-item-control"),this.subscribeAutoTips(ze.localeChange.pipe((0,F.b)(Ve=>this.localeId=Ve.locale))),this.subscribeAutoTips(null===(Fe=this.nzFormDirective)||void 0===Fe?void 0:Fe.getInputObservable("nzAutoTips")),this.subscribeAutoTips(null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.getInputObservable("nzDisableAutoTips").pipe((0,L.h)(()=>"default"===this.nzDisableAutoTips)))}get disableAutoTips(){var u;return"default"!==this.nzDisableAutoTips?(0,C.sw)(this.nzDisableAutoTips):null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzDisableAutoTips}set nzHasFeedback(u){this._hasFeedback=(0,C.sw)(u),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(u){u instanceof E.TO||u instanceof E.On?(this.validateControl=u,this.validateString=null,this.watchControl()):u instanceof E.u?(this.validateControl=u.control,this.validateString=null,this.watchControl()):(this.validateString=u,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,M.O)(null),(0,P.R)(this.destroyed$)).subscribe(u=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.iconType=this.status?W[this.status]:null,this.innerTip=this.getInnerTip(this.status),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(u){let v;return v="warning"===u||this.validateControlStatus("INVALID","warning")?"warning":"error"===u||this.validateControlStatus("INVALID")?"error":"validating"===u||"pending"===u||this.validateControlStatus("PENDING")?"validating":"success"===u||this.validateControlStatus("VALID")?"success":null,v}validateControlStatus(u,v){if(this.validateControl){const{dirty:k,touched:le,status:ze}=this.validateControl;return(!!k||!!le)&&(v?this.validateControl.hasError(v):ze===u)}return!1}getInnerTip(u){switch(u){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){var u,v,k,le,ze,Ee,Fe,Qe,Ve,we,je,et,He;if(this.validateControl){const st=this.validateControl.errors||{};let at="";for(const tt in st)if(st.hasOwnProperty(tt)&&(at=null!==(je=null!==(Fe=null!==(ze=null!==(v=null===(u=st[tt])||void 0===u?void 0:u[this.localeId])&&void 0!==v?v:null===(le=null===(k=this.nzAutoTips)||void 0===k?void 0:k[this.localeId])||void 0===le?void 0:le[tt])&&void 0!==ze?ze:null===(Ee=this.nzAutoTips.default)||void 0===Ee?void 0:Ee[tt])&&void 0!==Fe?Fe:null===(we=null===(Ve=null===(Qe=this.nzFormDirective)||void 0===Qe?void 0:Qe.nzAutoTips)||void 0===Ve?void 0:Ve[this.localeId])||void 0===we?void 0:we[tt])&&void 0!==je?je:null===(He=null===(et=this.nzFormDirective)||void 0===et?void 0:et.nzAutoTips.default)||void 0===He?void 0:He[tt]),at)break;this.autoErrorTip=at}}subscribeAutoTips(u){null==u||u.pipe((0,P.R)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}ngOnChanges(u){const{nzDisableAutoTips:v,nzAutoTips:k,nzSuccessTip:le,nzWarningTip:ze,nzErrorTip:Ee,nzValidatingTip:Fe}=u;v||k?(this.updateAutoErrorTip(),this.setStatus()):(le||ze||Ee||Fe)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof E.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(ne,9),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(y.wi),e.Y36(re,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-control"]],contentQueries:function(u,v,k){if(1&u&&e.Suo(k,E.a5,5),2&u){let le;e.iGM(le=e.CRH())&&(v.defaultValidateControl=le.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[e.TTD],ngContentSelectors:Z,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"span",2),e.YNc(4,K,1,1,"i",3),e.qZA(),e.qZA(),e.YNc(5,J,3,8,"div",4),e.YNc(6,me,2,1,"div",5)),2&u&&(e.xp6(4),e.Q6J("ngIf",v.nzHasFeedback&&v.iconType),e.xp6(1),e.Q6J("ngIf",v.innerTip),e.xp6(1),e.Q6J("ngIf",v.nzExtra))},directives:[h.O5,N.Ls,h.mk,b.f],encapsulation:2,data:{animation:[I.c8]},changeDetection:0}),_})();function ge(_){const x="string"==typeof _?{type:_}:_;return Object.assign(Object.assign({},Y),x)}let ie=(()=>{class _{constructor(u,v,k,le){this.cdr=k,this.nzFormDirective=le,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.destroy$=new D.xQ,v.addClass(u.nativeElement,"ant-form-item-label"),this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.h)(()=>"default"===this.noColon),(0,P.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.h)(()=>"default"===this._tooltipIcon),(0,P.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}set nzNoColon(u){this.noColon=(0,C.sw)(u)}get nzNoColon(){var u;return"default"!==this.noColon?this.noColon:null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzNoColon}set nzTooltipIcon(u){this._tooltipIcon=ge(u)}get tooltipIcon(){var u;return"default"!==this._tooltipIcon?this._tooltipIcon:ge((null===(u=this.nzFormDirective)||void 0===u?void 0:u.nzTooltipIcon)||Y)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.sBO),e.Y36(re,12))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-label"]],inputs:{nzFor:"nzFor",nzRequired:"nzRequired",nzNoColon:"nzNoColon",nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon"},exportAs:["nzFormLabel"],ngContentSelectors:Z,decls:3,vars:6,consts:[["class","ant-form-item-tooltip","nz-tooltip","",3,"nzTooltipTitle",4,"ngIf"],["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"label"),e.Hsn(1),e.YNc(2,be,2,2,"span",0),e.qZA()),2&u&&(e.ekj("ant-form-item-no-colon",v.nzNoColon)("ant-form-item-required",v.nzRequired),e.uIk("for",v.nzFor),e.xp6(2),e.Q6J("ngIf",v.nzTooltipTitle))},directives:[h.O5,w.SY,b.f,N.Ls],encapsulation:2,changeDetection:0}),(0,T.gn)([(0,C.yF)()],_.prototype,"nzRequired",void 0),_})(),$=(()=>{class _{constructor(u,v){this.elementRef=u,this.renderer=v,this.renderer.addClass(this.elementRef.nativeElement,"ant-form-text")}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(e.Qsj))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-text"]],exportAs:["nzFormText"],ngContentSelectors:Z,decls:1,vars:0,template:function(u,v){1&u&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0}),_})(),se=(()=>{class _{}return _.\u0275fac=function(u){return new(u||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[[i.vT,h.ez,O.Jb,N.PV,w.cg,t.xu,o.ud,b.T],O.Jb]}),_})()},1894:(ae,A,a)=>{a.d(A,{t3:()=>S,Jb:()=>P,SK:()=>D});var i=a(5e3),t=a(5647),o=a(8929),h=a(7625),e=a(4090),b=a(5113),O=a(925),N=a(226),w=a(1721),E=a(9808);let D=(()=>{class L{constructor(F,M,I,C,y,T,f){this.elementRef=F,this.renderer=M,this.mediaMatcher=I,this.ngZone=C,this.platform=y,this.breakpointService=T,this.directionality=f,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new t.t(1),this.dir="ltr",this.destroy$=new o.xQ}getGutter(){const F=[null,null],M=this.nzGutter||0;return(Array.isArray(M)?M:[M,null]).forEach((C,y)=>{"object"==typeof C&&null!==C?(F[y]=null,Object.keys(e.WV).map(T=>{const f=T;this.mediaMatcher.matchMedia(e.WV[f]).matches&&C[f]&&(F[y]=C[f])})):F[y]=Number(C)||null}),F}setGutterStyle(){const[F,M]=this.getGutter();this.actualGutter$.next([F,M]);const I=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,`-${y/2}px`)};I("margin-left",F),I("margin-right",F),I("margin-top",M),I("margin-bottom",M)}ngOnInit(){var F;this.dir=this.directionality.value,null===(F=this.directionality.change)||void 0===F||F.pipe((0,h.R)(this.destroy$)).subscribe(M=>{this.dir=M}),this.setGutterStyle()}ngOnChanges(F){F.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(e.WV).pipe((0,h.R)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(F){return new(F||L)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(b.vx),i.Y36(i.R0b),i.Y36(O.t4),i.Y36(e.r3),i.Y36(N.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:18,hostBindings:function(F,M){2&F&&i.ekj("ant-row-top","top"===M.nzAlign)("ant-row-middle","middle"===M.nzAlign)("ant-row-bottom","bottom"===M.nzAlign)("ant-row-start","start"===M.nzJustify)("ant-row-end","end"===M.nzJustify)("ant-row-center","center"===M.nzJustify)("ant-row-space-around","space-around"===M.nzJustify)("ant-row-space-between","space-between"===M.nzJustify)("ant-row-rtl","rtl"===M.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[i.TTD]}),L})(),S=(()=>{class L{constructor(F,M,I,C){this.elementRef=F,this.nzRowDirective=M,this.renderer=I,this.directionality=C,this.classMap={},this.destroy$=new o.xQ,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}setHostClassMap(){const F=Object.assign({"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,w.DX)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,w.DX)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,w.DX)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,w.DX)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,w.DX)(this.nzPush),"ant-col-rtl":"rtl"===this.dir},this.generateClass());for(const M in this.classMap)this.classMap.hasOwnProperty(M)&&this.renderer.removeClass(this.elementRef.nativeElement,M);this.classMap=Object.assign({},F);for(const M in this.classMap)this.classMap.hasOwnProperty(M)&&this.classMap[M]&&this.renderer.addClass(this.elementRef.nativeElement,M)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(F){return"number"==typeof F?`${F} ${F} auto`:"string"==typeof F&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(F)?`0 0 ${F}`:F}generateClass(){const M={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(I=>{const C=I.replace("nz","").toLowerCase();if((0,w.DX)(this[I]))if("number"==typeof this[I]||"string"==typeof this[I])M[`ant-col-${C}-${this[I]}`]=!0;else{const y=this[I];["span","pull","push","offset","order"].forEach(f=>{M[`ant-col-${C}${"span"===f?"-":`-${f}-`}${y[f]}`]=y&&(0,w.DX)(y[f])})}}),M}ngOnInit(){this.dir=this.directionality.value,this.directionality.change.pipe((0,h.R)(this.destroy$)).subscribe(F=>{this.dir=F,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(F){this.setHostClassMap();const{nzFlex:M}=F;M&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,h.R)(this.destroy$)).subscribe(([F,M])=>{const I=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,y/2+"px")};I("padding-left",F),I("padding-right",F),I("padding-top",M),I("padding-bottom",M)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(F){return new(F||L)(i.Y36(i.SBq),i.Y36(D,9),i.Y36(i.Qsj),i.Y36(N.Is,8))},L.\u0275dir=i.lG2({type:L,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(F,M){2&F&&i.Udp("flex",M.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[i.TTD]}),L})(),P=(()=>{class L{}return L.\u0275fac=function(F){return new(F||L)},L.\u0275mod=i.oAB({type:L}),L.\u0275inj=i.cJS({imports:[[N.vT,E.ez,b.xu,O.ud]]}),L})()},1047:(ae,A,a)=>{a.d(A,{Zp:()=>q,gB:()=>he,ke:()=>ie,o7:()=>_});var i=a(655),t=a(5e3),o=a(8929),h=a(6787),e=a(2198),b=a(7625),O=a(1059),N=a(7545),w=a(1709),E=a(4850),D=a(1721),S=a(4182),P=a(226),L=a(5664),V=a(9808),F=a(647),M=a(969),I=a(925);const C=["nz-input-group-slot",""];function y(x,u){if(1&x&&t._UZ(0,"i",2),2&x){const v=t.oxw();t.Q6J("nzType",v.icon)}}function T(x,u){if(1&x&&(t.ynx(0),t._uU(1),t.BQk()),2&x){const v=t.oxw();t.xp6(1),t.Oqu(v.template)}}function f(x,u){if(1&x&&t._UZ(0,"span",7),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnBeforeIcon)("template",v.nzAddOnBefore)}}function Z(x,u){}function K(x,u){if(1&x&&(t.TgZ(0,"span",8),t.YNc(1,Z,0,0,"ng-template",9),t.qZA()),2&x){const v=t.oxw(2),k=t.MAs(4);t.ekj("ant-input-affix-wrapper-sm",v.isSmall)("ant-input-affix-wrapper-lg",v.isLarge),t.xp6(1),t.Q6J("ngTemplateOutlet",k)}}function Q(x,u){if(1&x&&t._UZ(0,"span",7),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzAddOnAfterIcon)("template",v.nzAddOnAfter)}}function te(x,u){if(1&x&&(t.TgZ(0,"span",4),t.YNc(1,f,1,2,"span",5),t.YNc(2,K,2,5,"span",6),t.YNc(3,Q,1,2,"span",5),t.qZA()),2&x){const v=t.oxw(),k=t.MAs(6);t.xp6(1),t.Q6J("ngIf",v.nzAddOnBefore||v.nzAddOnBeforeIcon),t.xp6(1),t.Q6J("ngIf",v.isAffix)("ngIfElse",k),t.xp6(1),t.Q6J("ngIf",v.nzAddOnAfter||v.nzAddOnAfterIcon)}}function H(x,u){}function J(x,u){if(1&x&&t.YNc(0,H,0,0,"ng-template",9),2&x){t.oxw(2);const v=t.MAs(4);t.Q6J("ngTemplateOutlet",v)}}function pe(x,u){if(1&x&&t.YNc(0,J,1,1,"ng-template",10),2&x){const v=t.oxw(),k=t.MAs(6);t.Q6J("ngIf",v.isAffix)("ngIfElse",k)}}function me(x,u){if(1&x&&t._UZ(0,"span",13),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzPrefixIcon)("template",v.nzPrefix)}}function Ce(x,u){}function be(x,u){if(1&x&&t._UZ(0,"span",14),2&x){const v=t.oxw(2);t.Q6J("icon",v.nzSuffixIcon)("template",v.nzSuffix)}}function ne(x,u){if(1&x&&(t.YNc(0,me,1,2,"span",11),t.YNc(1,Ce,0,0,"ng-template",9),t.YNc(2,be,1,2,"span",12)),2&x){const v=t.oxw(),k=t.MAs(6);t.Q6J("ngIf",v.nzPrefix||v.nzPrefixIcon),t.xp6(1),t.Q6J("ngTemplateOutlet",k),t.xp6(1),t.Q6J("ngIf",v.nzSuffix||v.nzSuffixIcon)}}function ce(x,u){1&x&&t.Hsn(0)}const Y=["*"];let q=(()=>{class x{constructor(v,k,le,ze){this.ngControl=v,this.directionality=ze,this.nzBorderless=!1,this.nzSize="default",this._disabled=!1,this.disabled$=new o.xQ,this.dir="ltr",this.destroy$=new o.xQ,k.addClass(le.nativeElement,"ant-input")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(v){this._disabled=null!=v&&"false"!=`${v}`}ngOnInit(){var v,k;this.ngControl&&(null===(v=this.ngControl.statusChanges)||void 0===v||v.pipe((0,e.h)(()=>null!==this.ngControl.disabled),(0,b.R)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)})),this.dir=this.directionality.value,null===(k=this.directionality.change)||void 0===k||k.pipe((0,b.R)(this.destroy$)).subscribe(le=>{this.dir=le})}ngOnChanges(v){const{disabled:k}=v;k&&this.disabled$.next(this.disabled)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(S.a5,10),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(P.Is,8))},x.\u0275dir=t.lG2({type:x,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostVars:11,hostBindings:function(v,k){2&v&&(t.uIk("disabled",k.disabled||null),t.ekj("ant-input-disabled",k.disabled)("ant-input-borderless",k.nzBorderless)("ant-input-lg","large"===k.nzSize)("ant-input-sm","small"===k.nzSize)("ant-input-rtl","rtl"===k.dir))},inputs:{nzBorderless:"nzBorderless",nzSize:"nzSize",disabled:"disabled"},exportAs:["nzInput"],features:[t.TTD]}),(0,i.gn)([(0,D.yF)()],x.prototype,"nzBorderless",void 0),x})(),ge=(()=>{class x{constructor(){this.icon=null,this.type=null,this.template=null}}return x.\u0275fac=function(v){return new(v||x)},x.\u0275cmp=t.Xpm({type:x,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(v,k){2&v&&t.ekj("ant-input-group-addon","addon"===k.type)("ant-input-prefix","prefix"===k.type)("ant-input-suffix","suffix"===k.type)},inputs:{icon:"icon",type:"type",template:"template"},attrs:C,decls:2,vars:2,consts:[["nz-icon","",3,"nzType",4,"ngIf"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(v,k){1&v&&(t.YNc(0,y,1,1,"i",0),t.YNc(1,T,2,1,"ng-container",1)),2&v&&(t.Q6J("ngIf",k.icon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",k.template))},directives:[V.O5,F.Ls,M.f],encapsulation:2,changeDetection:0}),x})(),ie=(()=>{class x{constructor(v){this.elementRef=v}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(t.SBq))},x.\u0275dir=t.lG2({type:x,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]]}),x})(),he=(()=>{class x{constructor(v,k,le,ze){this.focusMonitor=v,this.elementRef=k,this.cdr=le,this.directionality=ze,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.destroy$=new o.xQ}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(v=>v.nzSize=this.nzSize)}ngOnInit(){var v;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,b.R)(this.destroy$)).subscribe(k=>{this.focused=!!k,this.cdr.markForCheck()}),this.dir=this.directionality.value,null===(v=this.directionality.change)||void 0===v||v.pipe((0,b.R)(this.destroy$)).subscribe(k=>{this.dir=k})}ngAfterContentInit(){this.updateChildrenInputSize();const v=this.listOfNzInputDirective.changes.pipe((0,O.O)(this.listOfNzInputDirective));v.pipe((0,N.w)(k=>(0,h.T)(v,...k.map(le=>le.disabled$))),(0,w.zg)(()=>v),(0,E.U)(k=>k.some(le=>le.disabled)),(0,b.R)(this.destroy$)).subscribe(k=>{this.disabled=k,this.cdr.markForCheck()})}ngOnChanges(v){const{nzSize:k,nzSuffix:le,nzPrefix:ze,nzPrefixIcon:Ee,nzSuffixIcon:Fe,nzAddOnAfter:Qe,nzAddOnBefore:Ve,nzAddOnAfterIcon:we,nzAddOnBeforeIcon:je}=v;k&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(le||ze||Ee||Fe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Qe||Ve||we||je)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon))}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}}return x.\u0275fac=function(v){return new(v||x)(t.Y36(L.tE),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(P.Is,8))},x.\u0275cmp=t.Xpm({type:x,selectors:[["nz-input-group"]],contentQueries:function(v,k,le){if(1&v&&t.Suo(le,q,4),2&v){let ze;t.iGM(ze=t.CRH())&&(k.listOfNzInputDirective=ze)}},hostVars:40,hostBindings:function(v,k){2&v&&t.ekj("ant-input-group-compact",k.nzCompact)("ant-input-search-enter-button",k.nzSearch)("ant-input-search",k.nzSearch)("ant-input-search-rtl","rtl"===k.dir)("ant-input-search-sm",k.nzSearch&&k.isSmall)("ant-input-search-large",k.nzSearch&&k.isLarge)("ant-input-group-wrapper",k.isAddOn)("ant-input-group-wrapper-rtl","rtl"===k.dir)("ant-input-group-wrapper-lg",k.isAddOn&&k.isLarge)("ant-input-group-wrapper-sm",k.isAddOn&&k.isSmall)("ant-input-affix-wrapper",k.isAffix&&!k.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===k.dir)("ant-input-affix-wrapper-focused",k.isAffix&&k.focused)("ant-input-affix-wrapper-disabled",k.isAffix&&k.disabled)("ant-input-affix-wrapper-lg",k.isAffix&&!k.isAddOn&&k.isLarge)("ant-input-affix-wrapper-sm",k.isAffix&&!k.isAddOn&&k.isSmall)("ant-input-group",!k.isAffix&&!k.isAddOn)("ant-input-group-rtl","rtl"===k.dir)("ant-input-group-lg",!k.isAffix&&!k.isAddOn&&k.isLarge)("ant-input-group-sm",!k.isAffix&&!k.isAddOn&&k.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:"nzSearch",nzCompact:"nzCompact"},exportAs:["nzInputGroup"],features:[t.TTD],ngContentSelectors:Y,decls:7,vars:2,consts:[["class","ant-input-wrapper ant-input-group",4,"ngIf","ngIfElse"],["noAddOnTemplate",""],["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template",4,"ngIf"],["class","ant-input-affix-wrapper",3,"ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg",4,"ngIf","ngIfElse"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper"],[3,"ngTemplateOutlet"],[3,"ngIf","ngIfElse"],["nz-input-group-slot","","type","prefix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","suffix",3,"icon","template",4,"ngIf"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"]],template:function(v,k){if(1&v&&(t.F$t(),t.YNc(0,te,4,4,"span",0),t.YNc(1,pe,1,2,"ng-template",null,1,t.W1O),t.YNc(3,ne,3,3,"ng-template",null,2,t.W1O),t.YNc(5,ce,1,0,"ng-template",null,3,t.W1O)),2&v){const le=t.MAs(2);t.Q6J("ngIf",k.isAddOn)("ngIfElse",le)}},directives:[ge,V.O5,V.tP],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,D.yF)()],x.prototype,"nzSearch",void 0),(0,i.gn)([(0,D.yF)()],x.prototype,"nzCompact",void 0),x})(),_=(()=>{class x{}return x.\u0275fac=function(v){return new(v||x)},x.\u0275mod=t.oAB({type:x}),x.\u0275inj=t.cJS({imports:[[P.vT,V.ez,F.PV,I.ud,M.T]]}),x})()},7957:(ae,A,a)=>{a.d(A,{du:()=>xt,Hf:()=>_t,Qp:()=>z,Sf:()=>Xe});var i=a(2845),t=a(7429),o=a(5e3),h=a(8929),e=a(3753),b=a(8514),O=a(7625),N=a(2198),w=a(2986),E=a(1059),D=a(6947),S=a(1721),P=a(9808),L=a(6360),V=a(1777),F=a(5664),M=a(9439),I=a(4170),C=a(969),y=a(2683),T=a(647),f=a(6042),Z=a(2643);a(2313);class te{transform(d,r=0,p="B",R){if(!((0,S.ui)(d)&&(0,S.ui)(r)&&r%1==0&&r>=0))return d;let G=d,de=p;for(;"B"!==de;)G*=1024,de=te.formats[de].prev;if(R){const Ne=(0,S.YM)(te.calculateResult(te.formats[R],G),r);return te.formatResult(Ne,R)}for(const Se in te.formats)if(te.formats.hasOwnProperty(Se)){const Ne=te.formats[Se];if(G{class s{transform(r,p="px"){let Ne="px";return["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","1h","vw","vh","vmin","vmax","%"].some(We=>We===p)&&(Ne=p),"number"==typeof r?`${r}${Ne}`:`${r}`}}return s.\u0275fac=function(r){return new(r||s)},s.\u0275pipe=o.Yjl({name:"nzToCssUnit",type:s,pure:!0}),s})(),ne=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({imports:[[P.ez]]}),s})();var ce=a(655),Y=a(1159),re=a(226),W=a(4832);const q=["nz-modal-close",""];function ge(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"i",2),o.BQk()),2&s){const r=d.$implicit;o.xp6(1),o.Q6J("nzType",r)}}const ie=["modalElement"];function he(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",16),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function $(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"span",17),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}function se(s,d){}function _(s,d){if(1&s&&o._UZ(0,"div",17),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function x(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",18),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function u(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",19),o.NdJ("click",function(){return o.CHM(r),o.oxw().onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("nzType",r.config.nzOkType)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled)("nzDanger",r.config.nzOkDanger),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}const v=["nz-modal-title",""];function k(s,d){if(1&s&&(o.ynx(0),o._UZ(1,"div",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("innerHTML",r.config.nzTitle,o.oJD)}}const le=["nz-modal-footer",""];function ze(s,d){if(1&s&&o._UZ(0,"div",5),2&s){const r=o.oxw(3);o.Q6J("innerHTML",r.config.nzFooter,o.oJD)}}function Ee(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",7),o.NdJ("click",function(){const G=o.CHM(r).$implicit;return o.oxw(4).onButtonClick(G)}),o._uU(1),o.qZA()}if(2&s){const r=d.$implicit,p=o.oxw(4);o.Q6J("hidden",!p.getButtonCallableProp(r,"show"))("nzLoading",p.getButtonCallableProp(r,"loading"))("disabled",p.getButtonCallableProp(r,"disabled"))("nzType",r.type)("nzDanger",r.danger)("nzShape",r.shape)("nzSize",r.size)("nzGhost",r.ghost),o.xp6(1),o.hij(" ",r.label," ")}}function Fe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Ee,2,9,"button",6),o.BQk()),2&s){const r=o.oxw(3);o.xp6(1),o.Q6J("ngForOf",r.buttons)}}function Qe(s,d){if(1&s&&(o.ynx(0),o.YNc(1,ze,1,1,"div",3),o.YNc(2,Fe,2,1,"ng-container",4),o.BQk()),2&s){const r=o.oxw(2);o.xp6(1),o.Q6J("ngIf",!r.buttonsFooter),o.xp6(1),o.Q6J("ngIf",r.buttonsFooter)}}const Ve=function(s,d){return{$implicit:s,modalRef:d}};function we(s,d){if(1&s&&(o.ynx(0),o.YNc(1,Qe,3,2,"ng-container",2),o.BQk()),2&s){const r=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",r.config.nzFooter)("nzStringTemplateOutletContext",o.WLB(2,Ve,r.config.nzComponentParams,r.modalRef))}}function je(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",10),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onCancel()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzLoading",!!r.config.nzCancelLoading)("disabled",r.config.nzCancelDisabled),o.uIk("cdkFocusInitial","cancel"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzCancelText||r.locale.cancelText," ")}}function et(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",11),o.NdJ("click",function(){return o.CHM(r),o.oxw(2).onOk()}),o._uU(1),o.qZA()}if(2&s){const r=o.oxw(2);o.Q6J("nzType",r.config.nzOkType)("nzDanger",r.config.nzOkDanger)("nzLoading",!!r.config.nzOkLoading)("disabled",r.config.nzOkDisabled),o.uIk("cdkFocusInitial","ok"===r.config.nzAutofocus||null),o.xp6(1),o.hij(" ",r.config.nzOkText||r.locale.okText," ")}}function He(s,d){if(1&s&&(o.YNc(0,je,2,4,"button",8),o.YNc(1,et,2,6,"button",9)),2&s){const r=o.oxw();o.Q6J("ngIf",null!==r.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==r.config.nzOkText)}}function st(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(r),o.oxw().onCloseClick()}),o.qZA()}}function at(s,d){1&s&&o._UZ(0,"div",10)}function tt(s,d){}function ft(s,d){if(1&s&&o._UZ(0,"div",11),2&s){const r=o.oxw();o.Q6J("innerHTML",r.config.nzContent,o.oJD)}}function X(s,d){if(1&s){const r=o.EpF();o.TgZ(0,"div",12),o.NdJ("cancelTriggered",function(){return o.CHM(r),o.oxw().onCloseClick()})("okTriggered",function(){return o.CHM(r),o.oxw().onOkClick()}),o.qZA()}if(2&s){const r=o.oxw();o.Q6J("modalRef",r.modalRef)}}const oe=()=>{};class ye{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=oe,this.nzOnOk=oe,this.nzIconType="question-circle"}}const ue="ant-modal-mask",Me="modal",Be={modalContainer:(0,V.X$)("modalContainer",[(0,V.SB)("void, exit",(0,V.oB)({})),(0,V.SB)("enter",(0,V.oB)({})),(0,V.eR)("* => enter",(0,V.jt)(".24s",(0,V.oB)({}))),(0,V.eR)("* => void, * => exit",(0,V.jt)(".2s",(0,V.oB)({})))])};function Ze(s,d,r){return void 0===s?void 0===d?r:d:s}function Pe(s){const{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:R,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ne,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:Nt,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}=s;return{nzCentered:d,nzMask:r,nzMaskClosable:p,nzClosable:R,nzOkLoading:G,nzOkDisabled:de,nzCancelDisabled:Se,nzCancelLoading:Ne,nzKeyboard:We,nzNoAnimation:lt,nzContent:ht,nzComponentParams:St,nzFooter:wt,nzZIndex:Pt,nzWidth:Ft,nzWrapClassName:bt,nzClassName:Kt,nzStyle:Rt,nzTitle:Bt,nzCloseIcon:kt,nzMaskStyle:Lt,nzBodyStyle:Dt,nzOkText:Mt,nzCancelText:Zt,nzOkType:$t,nzOkDanger:Wt,nzIconType:Et,nzModalType:Qt,nzOnOk:Ut,nzOnCancel:Yt,nzAfterOpen:Nt,nzAfterClose:Vt,nzCloseOnNavigation:Ht,nzAutofocus:Jt}}function De(){throw Error("Attempting to attach modal content after content is already attached")}let Ke=(()=>{class s extends t.en{constructor(r,p,R,G,de,Se,Ne,We,lt,ht){super(),this.ngZone=r,this.host=p,this.focusTrapFactory=R,this.cdr=G,this.render=de,this.overlayRef=Se,this.nzConfigService=Ne,this.config=We,this.animationType=ht,this.animationStateChanged=new o.vpe,this.containerClick=new o.vpe,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new h.xQ,this.document=lt,this.dir=Se.getDirection(),this.isStringContent="string"==typeof We.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Me).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}get showMask(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMask,r.nzMask,!0)}get maskClosable(){const r=this.nzConfigService.getConfigForComponent(Me)||{};return!!Ze(this.config.nzMaskClosable,r.nzMaskClosable,!0)}onContainerClick(r){r.target===r.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(r)}attachTemplatePortal(r){return this.portalOutlet.hasAttached()&&De(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(r)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const r=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const p=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),R=(0,S.pW)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(r,"transform-origin",`${R.left+p.width/2-r.offsetLeft}px ${R.top+p.height/2-r.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.host.nativeElement.focus())))}trapFocus(){const r=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const p=this.document.activeElement;p!==r&&!r.contains(p)&&r.focus()}}restoreFocus(){const r=this.elementFocusedBeforeModalWasOpened;if(r&&"function"==typeof r.focus){const p=this.document.activeElement,R=this.host.nativeElement;(!p||p===this.document.body||p===R||R.contains(p))&&r.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const r=this.modalElementRef.nativeElement,p=this.overlayRef.backdropElement;r.classList.add("ant-zoom-enter"),r.classList.add("ant-zoom-enter-active"),p&&(p.classList.add("ant-fade-enter"),p.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const r=this.modalElementRef.nativeElement;r.classList.add("ant-zoom-leave"),r.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(r=!1){const p=this.overlayRef.backdropElement;if(p){if(this.animationDisabled()||r)return void p.classList.remove(ue);p.classList.add("ant-fade-leave"),p.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const r=this.overlayRef.backdropElement,p=this.modalElementRef.nativeElement;r&&(r.classList.remove("ant-fade-enter"),r.classList.remove("ant-fade-enter-active")),p.classList.remove("ant-zoom-enter"),p.classList.remove("ant-zoom-enter-active"),p.classList.remove("ant-zoom-leave"),p.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const r=this.overlayRef.backdropElement;r&&(0,S.DX)(this.config.nzZIndex)&&this.render.setStyle(r,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const r=this.overlayRef.backdropElement;if(r&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(R=>{this.render.removeStyle(r,R)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const p=Object.assign({},this.config.nzMaskStyle);Object.keys(p).forEach(R=>{this.render.setStyle(r,R,p[R])}),this.oldMaskStyle=p}}updateMaskClassname(){const r=this.overlayRef.backdropElement;r&&(this.showMask?r.classList.add(ue):r.classList.remove(ue))}onAnimationDone(r){"enter"===r.toState?this.trapFocus():"exit"===r.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(r)}onAnimationStart(r){"enter"===r.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===r.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(r)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(),this.destroy$.complete()}setupMouseListeners(r){this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.host.nativeElement,"mouseup").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,e.R)(r.nativeElement,"mousedown").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}}return s.\u0275fac=function(r){o.$Z()},s.\u0275dir=o.lG2({type:s,features:[o.qOj]}),s})(),Ue=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],attrs:q,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(r,p){1&r&&(o.TgZ(0,"span",0),o.YNc(1,ge,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzCloseIcon))},directives:[C.f,y.w,T.Ls],encapsulation:2,changeDetection:0}),s})(),Ye=(()=>{class s extends Ke{constructor(r,p,R,G,de,Se,Ne,We,lt,ht,St){super(r,R,G,de,Se,Ne,We,lt,ht,St),this.i18n=p,this.config=lt,this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.i18n.localeChange.pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(I.wi),o.Y36(o.SBq),o.Y36(F.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(M.jY),o.Y36(ye),o.Y36(P.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-confirm-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let R;o.iGM(R=o.CRH())&&(p.portalOutlet=R.first),o.iGM(R=o.CRH())&&(p.modalElementRef=R.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],features:[o.qOj],decls:17,vars:13,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click",4,"ngIf"],["nz-modal-close","",3,"click"],[3,"innerHTML"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger","click"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,he,1,0,"button",3),o.TgZ(5,"div",4),o.TgZ(6,"div",5),o.TgZ(7,"div",6),o._UZ(8,"i",7),o.TgZ(9,"span",8),o.YNc(10,$,2,1,"ng-container",9),o.qZA(),o.TgZ(11,"div",10),o.YNc(12,se,0,0,"ng-template",11),o.YNc(13,_,1,1,"div",12),o.qZA(),o.qZA(),o.TgZ(14,"div",13),o.YNc(15,x,2,4,"button",14),o.YNc(16,u,2,6,"button",15),o.qZA(),o.qZA(),o.qZA(),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,11,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(3),o.Q6J("nzType",p.config.nzIconType),o.xp6(2),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle),o.xp6(3),o.Q6J("ngIf",p.isStringContent),o.xp6(2),o.Q6J("ngIf",null!==p.config.nzCancelText),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzOkText))},directives:[Ue,f.ix,P.mk,P.PC,P.O5,y.w,T.Ls,C.f,t.Pl,Z.dQ],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})(),Ge=(()=>{class s{constructor(r){this.config=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],attrs:v,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0),o.YNc(1,k,2,1,"ng-container",1),o.qZA()),2&r&&(o.xp6(1),o.Q6J("nzStringTemplateOutlet",p.config.nzTitle))},directives:[C.f],encapsulation:2,changeDetection:0}),s})(),it=(()=>{class s{constructor(r,p){this.i18n=r,this.config=p,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new o.vpe,this.okTriggered=new o.vpe,this.destroy$=new h.xQ,Array.isArray(p.nzFooter)&&(this.buttonsFooter=!0,this.buttons=p.nzFooter.map(nt)),this.i18n.localeChange.pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(r,p){const R=r[p],G=this.modalRef.getContentComponent();return"function"==typeof R?R.apply(r,G&&[G]):R}onButtonClick(r){if(!this.getButtonCallableProp(r,"loading")){const R=this.getButtonCallableProp(r,"onClick");r.autoLoading&&(0,S.tI)(R)&&(r.loading=!0,R.then(()=>r.loading=!1).catch(G=>{throw r.loading=!1,G}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(I.wi),o.Y36(ye))},s.\u0275cmp=o.Xpm({type:s,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],attrs:le,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultFooterButtons",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click",4,"ngFor","ngForOf"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost","click"],["nz-button","",3,"nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click",4,"ngIf"],["nz-button","",3,"nzLoading","disabled","click"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled","click"]],template:function(r,p){if(1&r&&(o.YNc(0,we,2,5,"ng-container",0),o.YNc(1,He,2,2,"ng-template",null,1,o.W1O)),2&r){const R=o.MAs(2);o.Q6J("ngIf",p.config.nzFooter)("ngIfElse",R)}},directives:[f.ix,P.O5,C.f,P.sg,Z.dQ,y.w],encapsulation:2}),s})();function nt(s){return Object.assign({type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1},s)}let rt=(()=>{class s extends Ke{constructor(r,p,R,G,de,Se,Ne,We,lt,ht){super(r,p,R,G,de,Se,Ne,We,lt,ht),this.config=We}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(F.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(M.jY),o.Y36(ye),o.Y36(P.K0,8),o.Y36(L.Qb,8))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal-container"]],viewQuery:function(r,p){if(1&r&&(o.Gf(t.Pl,7),o.Gf(ie,7)),2&r){let R;o.iGM(R=o.CRH())&&(p.portalOutlet=R.first),o.iGM(R=o.CRH())&&(p.modalElementRef=R.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(r,p){1&r&&(o.WFA("@modalContainer.start",function(G){return p.onAnimationStart(G)})("@modalContainer.done",function(G){return p.onAnimationDone(G)}),o.NdJ("click",function(G){return p.onContainerClick(G)})),2&r&&(o.d8E("@.disabled",p.config.nzNoAnimation)("@modalContainer",p.state),o.Tol(p.config.nzWrapClassName?"ant-modal-wrap "+p.config.nzWrapClassName:"ant-modal-wrap"),o.Udp("z-index",p.config.nzZIndex),o.ekj("ant-modal-wrap-rtl","rtl"===p.dir)("ant-modal-centered",p.config.nzCentered))},exportAs:["nzModalContainer"],features:[o.qOj],decls:10,vars:11,consts:[["role","document",1,"ant-modal",3,"ngClass","ngStyle"],["modalElement",""],[1,"ant-modal-content"],["nz-modal-close","",3,"click",4,"ngIf"],["nz-modal-title","",4,"ngIf"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML",4,"ngIf"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered",4,"ngIf"],["nz-modal-close","",3,"click"],["nz-modal-title",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef","cancelTriggered","okTriggered"]],template:function(r,p){1&r&&(o.TgZ(0,"div",0,1),o.ALo(2,"nzToCssUnit"),o.TgZ(3,"div",2),o.YNc(4,st,1,0,"button",3),o.YNc(5,at,1,0,"div",4),o.TgZ(6,"div",5),o.YNc(7,tt,0,0,"ng-template",6),o.YNc(8,ft,1,1,"div",7),o.qZA(),o.YNc(9,X,1,1,"div",8),o.qZA(),o.qZA()),2&r&&(o.Udp("width",o.lcZ(2,9,null==p.config?null:p.config.nzWidth)),o.Q6J("ngClass",p.config.nzClassName)("ngStyle",p.config.nzStyle),o.xp6(4),o.Q6J("ngIf",p.config.nzClosable),o.xp6(1),o.Q6J("ngIf",p.config.nzTitle),o.xp6(1),o.Q6J("ngStyle",p.config.nzBodyStyle),o.xp6(2),o.Q6J("ngIf",p.isStringContent),o.xp6(1),o.Q6J("ngIf",null!==p.config.nzFooter))},directives:[Ue,Ge,it,P.mk,P.PC,P.O5,t.Pl],pipes:[H],encapsulation:2,data:{animation:[Be.modalContainer]}}),s})();class ot{constructor(d,r,p){this.overlayRef=d,this.config=r,this.containerInstance=p,this.componentInstance=null,this.state=0,this.afterClose=new h.xQ,this.afterOpen=new h.xQ,this.destroy$=new h.xQ,p.animationStateChanged.pipe((0,N.h)(R=>"done"===R.phaseName&&"enter"===R.toState),(0,w.q)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),r.nzAfterOpen instanceof o.vpe&&r.nzAfterOpen.emit()}),p.animationStateChanged.pipe((0,N.h)(R=>"done"===R.phaseName&&"exit"===R.toState),(0,w.q)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),p.containerClick.pipe((0,w.q)(1),(0,O.R)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),d.keydownEvents().pipe((0,N.h)(R=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&R.keyCode===Y.hY&&!(0,Y.Vb)(R))).subscribe(R=>{R.preventDefault(),this.trigger("cancel")}),p.cancelTriggered.pipe((0,O.R)(this.destroy$)).subscribe(()=>this.trigger("cancel")),p.okTriggered.pipe((0,O.R)(this.destroy$)).subscribe(()=>this.trigger("ok")),d.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),r.nzAfterClose instanceof o.vpe&&r.nzAfterClose.emit(this.result),this.componentInstance=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getElement(){return this.containerInstance.getNativeElement()}destroy(d){this.close(d)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(d){0===this.state&&(this.result=d,this.containerInstance.animationStateChanged.pipe((0,N.h)(r=>"start"===r.phaseName),(0,w.q)(1)).subscribe(r=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},r.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(d){Object.assign(this.config,d),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(d){return(0,ce.mG)(this,void 0,void 0,function*(){const r={ok:this.config.nzOnOk,cancel:this.config.nzOnCancel}[d],p={ok:"nzOkLoading",cancel:"nzCancelLoading"}[d];if(!this.config[p])if(r instanceof o.vpe)r.emit(this.getContentComponent());else if("function"==typeof r){const G=r(this.getContentComponent());if((0,S.tI)(G)){this.config[p]=!0;let de=!1;try{de=yield G}finally{this.config[p]=!1,this.closeWhitResult(de)}}else this.closeWhitResult(G)}})}closeWhitResult(d){!1!==d&&this.close(d)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let Xe=(()=>{class s{constructor(r,p,R,G,de){this.overlay=r,this.injector=p,this.nzConfigService=R,this.parentModal=G,this.directionality=de,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new h.xQ,this.afterAllClose=(0,b.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,E.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,D.ZK)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in r||(r.nzWidth=416),"nzMaskClosable"in r||(r.nzMaskClosable=!1),r.nzModalType="confirm",r.nzClassName=`ant-modal-confirm ant-modal-confirm-${p} ${r.nzClassName||""}`,this.create(r)}info(r={}){return this.confirmFactory(r,"info")}success(r={}){return this.confirmFactory(r,"success")}error(r={}){return this.confirmFactory(r,"error")}warning(r={}){return this.confirmFactory(r,"warning")}open(r,p){const R=function Le(s,d){return Object.assign(Object.assign({},d),s)}(p||{},new ye),G=this.createOverlay(R),de=this.attachModalContainer(G,R),Se=this.attachModalContent(r,de,G,R);return de.modalRef=Se,this.openModals.push(Se),Se.afterClose.subscribe(()=>this.removeOpenModal(Se)),Se}removeOpenModal(r){const p=this.openModals.indexOf(r);p>-1&&(this.openModals.splice(p,1),this.openModals.length||this._afterAllClosed.next())}closeModals(r){let p=r.length;for(;p--;)r[p].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(r){const p=this.nzConfigService.getConfigForComponent(Me)||{},R=new i.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Ze(r.nzCloseOnNavigation,p.nzCloseOnNavigation,!0),direction:Ze(r.nzDirection,p.nzDirection,this.directionality.value)});return Ze(r.nzMask,p.nzMask,!0)&&(R.backdropClass=ue),this.overlay.create(R)}attachModalContainer(r,p){const G=o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:i.Iu,useValue:r},{provide:ye,useValue:p}]}),Se=new t.C5("confirm"===p.nzModalType?Ye:rt,p.nzViewContainerRef,G);return r.attach(Se).instance}attachModalContent(r,p,R,G){const de=new ot(R,G,p);if(r instanceof o.Rgc)p.attachTemplatePortal(new t.UE(r,null,{$implicit:G.nzComponentParams,modalRef:de}));else if((0,S.DX)(r)&&"string"!=typeof r){const Se=this.createInjector(de,G),Ne=p.attachComponentPortal(new t.C5(r,G.nzViewContainerRef,Se));(function Ae(s,d){Object.assign(s,d)})(Ne.instance,G.nzComponentParams),de.componentInstance=Ne.instance}else p.attachStringContent();return de}createInjector(r,p){return o.zs3.create({parent:p&&p.nzViewContainerRef&&p.nzViewContainerRef.injector||this.injector,providers:[{provide:ot,useValue:r}]})}confirmFactory(r={},p){return"nzIconType"in r||(r.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[p]),"nzCancelText"in r||(r.nzCancelText=null),this.confirm(r,p)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(M.jY),o.LFG(s,12),o.LFG(re.Is,8))},s.\u0275prov=o.Yz7({token:s,factory:s.\u0275fac}),s})(),_t=(()=>{class s{constructor(r){this.templateRef=r}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"]}),s})(),yt=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"]}),s})(),Ot=(()=>{class s{constructor(r,p){this.nzModalRef=r,this.templateRef=p,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(ot,8),o.Y36(o.Rgc))},s.\u0275dir=o.lG2({type:s,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"]}),s})(),xt=(()=>{class s{constructor(r,p,R){this.cdr=r,this.modal=p,this.viewContainerRef=R,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new o.vpe,this.nzOnCancel=new o.vpe,this.nzAfterOpen=new o.vpe,this.nzAfterClose=new o.vpe,this.nzVisibleChange=new o.vpe,this.modalRef=null,this.destroy$=new h.xQ}set modalTitle(r){r&&this.setTitleWithTemplate(r)}set modalFooter(r){r&&this.setFooterWithTemplate(r)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const r=this.getConfig();this.modalRef=this.modal.create(r),this.modalRef.afterClose.asObservable().pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.close()})}}close(r){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(r),this.modalRef=null)}destroy(r){this.close(r)}triggerOk(){var r;null===(r=this.modalRef)||void 0===r||r.triggerOk()}triggerCancel(){var r;null===(r=this.modalRef)||void 0===r||r.triggerCancel()}getContentComponent(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getContentComponent()}getElement(){var r;return null===(r=this.modalRef)||void 0===r?void 0:r.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(r){this.nzTitle=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(r){this.nzFooter=r,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const r=Pe(this);return r.nzViewContainerRef=this.viewContainerRef,r.nzContent=this.nzContent||this.contentFromContentChild,r}ngOnChanges(r){const{nzVisible:p}=r,R=(0,ce._T)(r,["nzVisible"]);Object.keys(R).length&&this.modalRef&&this.modalRef.updateConfig(Pe(this)),p&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){var r;null===(r=this.modalRef)||void 0===r||r._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}}return s.\u0275fac=function(r){return new(r||s)(o.Y36(o.sBO),o.Y36(Xe),o.Y36(o.s_b))},s.\u0275cmp=o.Xpm({type:s,selectors:[["nz-modal"]],contentQueries:function(r,p,R){if(1&r&&(o.Suo(R,Ot,7,o.Rgc),o.Suo(R,_t,7,o.Rgc),o.Suo(R,yt,7,o.Rgc)),2&r){let G;o.iGM(G=o.CRH())&&(p.modalTitle=G.first),o.iGM(G=o.CRH())&&(p.contentFromContentChild=G.first),o.iGM(G=o.CRH())&&(p.modalFooter=G.first)}},inputs:{nzMask:"nzMask",nzMaskClosable:"nzMaskClosable",nzCloseOnNavigation:"nzCloseOnNavigation",nzVisible:"nzVisible",nzClosable:"nzClosable",nzOkLoading:"nzOkLoading",nzOkDisabled:"nzOkDisabled",nzCancelDisabled:"nzCancelDisabled",nzCancelLoading:"nzCancelLoading",nzKeyboard:"nzKeyboard",nzNoAnimation:"nzNoAnimation",nzCentered:"nzCentered",nzContent:"nzContent",nzComponentParams:"nzComponentParams",nzFooter:"nzFooter",nzZIndex:"nzZIndex",nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:"nzOkDanger",nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],features:[o.TTD],decls:0,vars:0,template:function(r,p){},encapsulation:2,changeDetection:0}),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMask",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzMaskClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCloseOnNavigation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzVisible",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzClosable",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelDisabled",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCancelLoading",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzKeyboard",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzNoAnimation",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzCentered",void 0),(0,ce.gn)([(0,S.yF)()],s.prototype,"nzOkDanger",void 0),s})(),z=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=o.oAB({type:s}),s.\u0275inj=o.cJS({providers:[Xe],imports:[[P.ez,re.vT,i.U8,C.T,t.eL,I.YI,f.sL,T.PV,ne,W.g,ne]]}),s})()},3868:(ae,A,a)=>{a.d(A,{Bq:()=>V,Of:()=>I,Dg:()=>M,aF:()=>C});var i=a(5e3),t=a(655),o=a(4182),h=a(5647),e=a(8929),b=a(3753),O=a(7625),N=a(1721),w=a(226),E=a(5664),D=a(9808);const S=["*"],P=["inputElement"],L=["nz-radio",""];let V=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=i.lG2({type:y,selectors:[["","nz-radio-button",""]]}),y})(),F=(()=>{class y{constructor(){this.selected$=new h.t(1),this.touched$=new e.xQ,this.disabled$=new h.t(1),this.name$=new h.t(1)}touch(){this.touched$.next()}select(f){this.selected$.next(f)}setDisabled(f){this.disabled$.next(f)}setName(f){this.name$.next(f)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=i.Yz7({token:y,factory:y.\u0275fac}),y})(),M=(()=>{class y{constructor(f,Z,K){this.cdr=f,this.nzRadioService=Z,this.directionality=K,this.value=null,this.destroy$=new e.xQ,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){var f;this.nzRadioService.selected$.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.value!==Z&&(this.value=Z,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,O.R)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),null===(f=this.directionality.change)||void 0===f||f.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(f){const{nzDisabled:Z,nzName:K}=f;Z&&this.nzRadioService.setDisabled(this.nzDisabled),K&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}writeValue(f){this.value=f,this.nzRadioService.select(f),this.cdr.markForCheck()}registerOnChange(f){this.onChange=f}registerOnTouched(f){this.onTouched=f}setDisabledState(f){this.nzDisabled=f,this.nzRadioService.setDisabled(f),this.cdr.markForCheck()}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.sBO),i.Y36(F),i.Y36(w.Is,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-group-large","large"===Z.nzSize)("ant-radio-group-small","small"===Z.nzSize)("ant-radio-group-solid","solid"===Z.nzButtonStyle)("ant-radio-group-rtl","rtl"===Z.dir)},inputs:{nzDisabled:"nzDisabled",nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[i._Bn([F,{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}]),i.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(f,Z){1&f&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,N.yF)()],y.prototype,"nzDisabled",void 0),y})(),I=(()=>{class y{constructor(f,Z,K,Q,te,H,J){this.ngZone=f,this.elementRef=Z,this.cdr=K,this.focusMonitor=Q,this.directionality=te,this.nzRadioService=H,this.nzRadioButtonDirective=J,this.isNgModel=!1,this.destroy$=new e.xQ,this.isChecked=!1,this.name=null,this.isRadioButton=!!this.nzRadioButtonDirective,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.dir="ltr"}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}setDisabledState(f){this.nzDisabled=f,this.cdr.markForCheck()}writeValue(f){this.isChecked=f,this.cdr.markForCheck()}registerOnChange(f){this.isNgModel=!0,this.onChange=f}registerOnTouched(f){this.onTouched=f}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.name=f,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.nzDisabled=f,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.isChecked=this.nzValue===f,this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,O.R)(this.destroy$)).subscribe(f=>{f||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,O.R)(this.destroy$)).subscribe(f=>{this.dir=f,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,b.R)(this.elementRef.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(f=>{f.stopPropagation(),f.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(E.tE),i.Y36(w.Is,8),i.Y36(F,8),i.Y36(V,8))},y.\u0275cmp=i.Xpm({type:y,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(f,Z){if(1&f&&i.Gf(P,5),2&f){let K;i.iGM(K=i.CRH())&&(Z.inputElement=K.first)}},hostVars:16,hostBindings:function(f,Z){2&f&&i.ekj("ant-radio-wrapper",!Z.isRadioButton)("ant-radio-button-wrapper",Z.isRadioButton)("ant-radio-wrapper-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-button-wrapper-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-wrapper-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button-wrapper-disabled",Z.nzDisabled&&Z.isRadioButton)("ant-radio-wrapper-rtl",!Z.isRadioButton&&"rtl"===Z.dir)("ant-radio-button-wrapper-rtl",Z.isRadioButton&&"rtl"===Z.dir)},inputs:{nzValue:"nzValue",nzDisabled:"nzDisabled",nzAutoFocus:"nzAutoFocus"},exportAs:["nzRadio"],features:[i._Bn([{provide:o.JU,useExisting:(0,i.Gpc)(()=>y),multi:!0}])],attrs:L,ngContentSelectors:S,decls:6,vars:24,consts:[["type","radio",3,"disabled","checked"],["inputElement",""]],template:function(f,Z){1&f&&(i.F$t(),i.TgZ(0,"span"),i._UZ(1,"input",0,1),i._UZ(3,"span"),i.qZA(),i.TgZ(4,"span"),i.Hsn(5),i.qZA()),2&f&&(i.ekj("ant-radio",!Z.isRadioButton)("ant-radio-checked",Z.isChecked&&!Z.isRadioButton)("ant-radio-disabled",Z.nzDisabled&&!Z.isRadioButton)("ant-radio-button",Z.isRadioButton)("ant-radio-button-checked",Z.isChecked&&Z.isRadioButton)("ant-radio-button-disabled",Z.nzDisabled&&Z.isRadioButton),i.xp6(1),i.ekj("ant-radio-input",!Z.isRadioButton)("ant-radio-button-input",Z.isRadioButton),i.Q6J("disabled",Z.nzDisabled)("checked",Z.isChecked),i.uIk("autofocus",Z.nzAutoFocus?"autofocus":null)("name",Z.name),i.xp6(2),i.ekj("ant-radio-inner",!Z.isRadioButton)("ant-radio-button-inner",Z.isRadioButton))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,N.yF)()],y.prototype,"nzDisabled",void 0),(0,t.gn)([(0,N.yF)()],y.prototype,"nzAutoFocus",void 0),y})(),C=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=i.oAB({type:y}),y.\u0275inj=i.cJS({imports:[[w.vT,D.ez,o.u5]]}),y})()},5197:(ae,A,a)=>{a.d(A,{Ip:()=>Ye,Vq:()=>Ot,LV:()=>xt});var i=a(5e3),t=a(8929),o=a(3753),h=a(591),e=a(6053),b=a(6787),O=a(3393),N=a(685),w=a(969),E=a(9808),D=a(647),S=a(2683),P=a(655),L=a(1059),V=a(7625),F=a(7545),M=a(4090),I=a(1721),C=a(1159),y=a(2845),T=a(4182),f=a(8076),Z=a(9439);const K=["moz","ms","webkit"];function H(z){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(z);const j=K.filter(s=>`${s}CancelAnimationFrame`in window||`${s}CancelRequestAnimationFrame`in window)[0];return j?(window[`${j}CancelAnimationFrame`]||window[`${j}CancelRequestAnimationFrame`]).call(this,z):clearTimeout(z)}const J=function te(){if("undefined"==typeof window)return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const z=K.filter(j=>`${j}RequestAnimationFrame`in window)[0];return z?window[`${z}RequestAnimationFrame`]:function Q(){let z=0;return function(j){const s=(new Date).getTime(),d=Math.max(0,16-(s-z)),r=setTimeout(()=>{j(s+d)},d);return z=s+d,r}}()}();var pe=a(5664),me=a(4832),Ce=a(925),be=a(226),ne=a(6950),ce=a(4170);const Y=["*"];function re(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.nzLabel)}}function W(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Oqu(s.label)}}function q(z,j){}function ge(z,j){if(1&z&&(i.ynx(0),i.YNc(1,q,0,0,"ng-template",3),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",s.template)}}function ie(z,j){1&z&&i._UZ(0,"i",6)}function he(z,j){if(1&z&&(i.TgZ(0,"div",4),i.YNc(1,ie,1,0,"i",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.icon)("ngIfElse",s.icon)}}function $(z,j){if(1&z&&(i.TgZ(0,"div",4),i._UZ(1,"nz-embed-empty",5),i.qZA()),2&z){const s=i.oxw();i.xp6(1),i.Q6J("specificContent",s.notFoundContent)}}function se(z,j){if(1&z&&i._UZ(0,"nz-option-item-group",9),2&z){const s=i.oxw().$implicit;i.Q6J("nzLabel",s.groupLabel)}}function _(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-item",10),i.NdJ("itemHover",function(r){return i.CHM(s),i.oxw(2).onItemHover(r)})("itemClick",function(r){return i.CHM(s),i.oxw(2).onItemClick(r)}),i.qZA()}if(2&z){const s=i.oxw().$implicit,d=i.oxw();i.Q6J("icon",d.menuItemSelectedIcon)("customContent",s.nzCustomContent)("template",s.template)("grouped",!!s.groupLabel)("disabled",s.nzDisabled)("showState","tags"===d.mode||"multiple"===d.mode)("label",s.nzLabel)("compareWith",d.compareWith)("activatedValue",d.activatedValue)("listOfSelectedValue",d.listOfSelectedValue)("value",s.nzValue)}}function x(z,j){1&z&&(i.ynx(0,6),i.YNc(1,se,1,1,"nz-option-item-group",7),i.YNc(2,_,1,11,"nz-option-item",8),i.BQk()),2&z&&(i.Q6J("ngSwitch",j.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase","group"),i.xp6(1),i.Q6J("ngSwitchCase","item"))}function u(z,j){}function v(z,j){1&z&&i.Hsn(0)}const k=["inputElement"],le=["mirrorElement"];function ze(z,j){1&z&&i._UZ(0,"span",3,4)}function Ee(z,j){if(1&z&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&z){const s=i.oxw(2);i.xp6(1),i.Oqu(s.label)}}function Fe(z,j){if(1&z&&i._uU(0),2&z){const s=i.oxw(2);i.Oqu(s.label)}}function Qe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,Ee,2,1,"div",2),i.YNc(2,Fe,1,1,"ng-template",null,3,i.W1O),i.BQk()),2&z){const s=i.MAs(3),d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.deletable)("ngIfElse",s)}}function Ve(z,j){1&z&&i._UZ(0,"i",7)}function we(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"span",5),i.NdJ("click",function(r){return i.CHM(s),i.oxw().onDelete(r)}),i.YNc(1,Ve,1,0,"i",6),i.qZA()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngIf",!s.removeIcon)("ngIfElse",s.removeIcon)}}const je=function(z){return{$implicit:z}};function et(z,j){if(1&z&&(i.ynx(0),i._uU(1),i.BQk()),2&z){const s=i.oxw();i.xp6(1),i.hij(" ",s.placeholder," ")}}function He(z,j){if(1&z&&i._UZ(0,"nz-select-item",6),2&z){const s=i.oxw(2);i.Q6J("deletable",!1)("disabled",!1)("removeIcon",s.removeIcon)("label",s.listOfTopItem[0].nzLabel)("contentTemplateOutlet",s.customTemplate)("contentTemplateOutletContext",s.listOfTopItem[0])}}function st(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.TgZ(1,"nz-select-search",4),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.YNc(2,He,1,6,"nz-select-item",5),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("showInput",s.showSearch)("mirrorSync",!1)("autofocus",s.autofocus)("focusTrigger",s.open),i.xp6(1),i.Q6J("ngIf",s.isShowSingleLabel)}}function at(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-item",9),i.NdJ("delete",function(){const p=i.CHM(s).$implicit;return i.oxw(2).onDeleteItem(p.contentTemplateOutletContext)}),i.qZA()}if(2&z){const s=j.$implicit,d=i.oxw(2);i.Q6J("removeIcon",d.removeIcon)("label",s.nzLabel)("disabled",s.nzDisabled||d.disabled)("contentTemplateOutlet",s.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",s.contentTemplateOutletContext)}}function tt(z,j){if(1&z){const s=i.EpF();i.ynx(0),i.YNc(1,at,1,6,"nz-select-item",7),i.TgZ(2,"nz-select-search",8),i.NdJ("isComposingChange",function(r){return i.CHM(s),i.oxw().isComposingChange(r)})("valueChange",function(r){return i.CHM(s),i.oxw().onInputValueChange(r)}),i.qZA(),i.BQk()}if(2&z){const s=i.oxw();i.xp6(1),i.Q6J("ngForOf",s.listOfSlicedItem)("ngForTrackBy",s.trackValue),i.xp6(1),i.Q6J("nzId",s.nzId)("disabled",s.disabled)("value",s.inputValue)("autofocus",s.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",s.open)}}function ft(z,j){if(1&z&&i._UZ(0,"nz-select-placeholder",10),2&z){const s=i.oxw();i.Q6J("placeholder",s.placeHolder)}}function X(z,j){1&z&&i._UZ(0,"i",2)}function oe(z,j){1&z&&i._UZ(0,"i",7)}function ye(z,j){1&z&&i._UZ(0,"i",8)}function Oe(z,j){if(1&z&&(i.ynx(0),i.YNc(1,oe,1,0,"i",5),i.YNc(2,ye,1,0,"i",6),i.BQk()),2&z){const s=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!s.search),i.xp6(1),i.Q6J("ngIf",s.search)}}function Re(z,j){if(1&z&&(i.ynx(0),i._UZ(1,"i",10),i.BQk()),2&z){const s=j.$implicit;i.xp6(1),i.Q6J("nzType",s)}}function ue(z,j){if(1&z&&i.YNc(0,Re,2,1,"ng-container",9),2&z){const s=i.oxw(2);i.Q6J("nzStringTemplateOutlet",s.suffixIcon)}}function Me(z,j){if(1&z&&(i.YNc(0,Oe,3,2,"ng-container",3),i.YNc(1,ue,1,1,"ng-template",null,4,i.W1O)),2&z){const s=i.MAs(2),d=i.oxw();i.Q6J("ngIf",!d.suffixIcon)("ngIfElse",s)}}function Be(z,j){1&z&&i._UZ(0,"i",1)}function Le(z,j){if(1&z&&i._UZ(0,"nz-select-arrow",5),2&z){const s=i.oxw();i.Q6J("loading",s.nzLoading)("search",s.nzOpen&&s.nzShowSearch)("suffixIcon",s.nzSuffixIcon)}}function Ze(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-select-clear",6),i.NdJ("clear",function(){return i.CHM(s),i.oxw().onClearSelection()}),i.qZA()}if(2&z){const s=i.oxw();i.Q6J("clearIcon",s.nzClearIcon)}}function Ae(z,j){if(1&z){const s=i.EpF();i.TgZ(0,"nz-option-container",7),i.NdJ("keydown",function(r){return i.CHM(s),i.oxw().onKeyDown(r)})("itemClick",function(r){return i.CHM(s),i.oxw().onItemClick(r)})("scrollToBottom",function(){return i.CHM(s),i.oxw().nzScrollToBottom.emit()}),i.qZA()}if(2&z){const s=i.oxw();i.ekj("ant-select-dropdown-placement-bottomLeft","bottom"===s.dropDownPosition)("ant-select-dropdown-placement-topLeft","top"===s.dropDownPosition),i.Q6J("ngStyle",s.nzDropdownStyle)("itemSize",s.nzOptionHeightPx)("maxItemLength",s.nzOptionOverflowSize)("matchWidth",s.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("nzNoAnimation",null==s.noAnimation?null:s.noAnimation.nzNoAnimation)("listOfContainerItem",s.listOfContainerItem)("menuItemSelectedIcon",s.nzMenuItemSelectedIcon)("notFoundContent",s.nzNotFoundContent)("activatedValue",s.activatedValue)("listOfSelectedValue",s.listOfValue)("dropdownRender",s.nzDropdownRender)("compareWith",s.compareWith)("mode",s.nzMode)}}let Pe=(()=>{class z{constructor(){this.nzLabel=null,this.changes=new t.xQ}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),z})(),De=(()=>{class z{constructor(){this.nzLabel=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,re,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.nzLabel)},directives:[w.f],encapsulation:2,changeDetection:0}),z})(),Ke=(()=>{class z{constructor(){this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new i.vpe,this.itemHover=new i.vpe}onHostMouseEnter(){this.disabled||this.itemHover.next(this.value)}onHostClick(){this.disabled||this.itemClick.next(this.value)}ngOnChanges(s){const{value:d,activatedValue:r,listOfSelectedValue:p}=s;(d||p)&&(this.selected=this.listOfSelectedValue.some(R=>this.compareWith(R,this.value))),(d||r)&&(this.activated=this.compareWith(this.activatedValue,this.value))}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(s,d){1&s&&i.NdJ("mouseenter",function(){return d.onHostMouseEnter()})("click",function(){return d.onHostClick()}),2&s&&(i.uIk("title",d.label),i.ekj("ant-select-item-option-grouped",d.grouped)("ant-select-item-option-selected",d.selected&&!d.disabled)("ant-select-item-option-disabled",d.disabled)("ant-select-item-option-active",d.activated&&!d.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[i.TTD],decls:4,vars:3,consts:[[1,"ant-select-item-option-content"],[4,"ngIf"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(s,d){1&s&&(i.TgZ(0,"div",0),i.YNc(1,W,2,1,"ng-container",1),i.YNc(2,ge,2,1,"ng-container",1),i.qZA(),i.YNc(3,he,2,2,"div",2)),2&s&&(i.xp6(1),i.Q6J("ngIf",!d.customContent),i.xp6(1),i.Q6J("ngIf",d.customContent),i.xp6(1),i.Q6J("ngIf",d.showState&&d.selected))},directives:[E.O5,E.tP,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),Ue=(()=>{class z{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.listOfContainerItem=[],this.itemClick=new i.vpe,this.scrollToBottom=new i.vpe,this.scrolledIndex=0}onItemClick(s){this.itemClick.emit(s)}onItemHover(s){this.activatedValue=s}trackValue(s,d){return d.key}onScrolledIndexChange(s){this.scrolledIndex=s,s===this.listOfContainerItem.length-this.maxItemLength&&this.scrollToBottom.emit()}scrollToActivatedValue(){const s=this.listOfContainerItem.findIndex(d=>this.compareWith(d.key,this.activatedValue));(s=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(s||0)}ngOnChanges(s){const{listOfContainerItem:d,activatedValue:r}=s;(d||r)&&this.scrollToActivatedValue()}ngAfterViewInit(){setTimeout(()=>this.scrollToActivatedValue())}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option-container"]],viewQuery:function(s,d){if(1&s&&i.Gf(O.N7,7),2&s){let r;i.iGM(r=i.CRH())&&(d.cdkVirtualScrollViewport=r.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[i.TTD],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","scrolledIndexChange"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick"]],template:function(s,d){1&s&&(i.TgZ(0,"div"),i.YNc(1,$,2,1,"div",0),i.TgZ(2,"cdk-virtual-scroll-viewport",1),i.NdJ("scrolledIndexChange",function(p){return d.onScrolledIndexChange(p)}),i.YNc(3,x,3,3,"ng-template",2),i.qZA(),i.YNc(4,u,0,0,"ng-template",3),i.qZA()),2&s&&(i.xp6(1),i.Q6J("ngIf",0===d.listOfContainerItem.length),i.xp6(1),i.Udp("height",d.listOfContainerItem.length*d.itemSize,"px")("max-height",d.itemSize*d.maxItemLength,"px"),i.ekj("full-width",!d.matchWidth),i.Q6J("itemSize",d.itemSize)("maxBufferPx",d.itemSize*d.maxItemLength)("minBufferPx",d.itemSize*d.maxItemLength),i.xp6(1),i.Q6J("cdkVirtualForOf",d.listOfContainerItem)("cdkVirtualForTrackBy",d.trackValue)("cdkVirtualForTemplateCacheSize",0),i.xp6(1),i.Q6J("ngTemplateOutlet",d.dropdownRender))},directives:[N.gB,O.N7,De,Ke,E.O5,O.xd,O.x0,E.RF,E.n9,E.tP],encapsulation:2,changeDetection:0}),z})(),Ye=(()=>{class z{constructor(s,d){this.nzOptionGroupComponent=s,this.destroy$=d,this.changes=new t.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,L.O)(!0),(0,V.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(Pe,8),i.Y36(M.kn))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-option"]],viewQuery:function(s,d){if(1&s&&i.Gf(i.Rgc,7),2&s){let r;i.iGM(r=i.CRH())&&(d.template=r.first)}},inputs:{nzLabel:"nzLabel",nzValue:"nzValue",nzDisabled:"nzDisabled",nzHide:"nzHide",nzCustomContent:"nzCustomContent"},exportAs:["nzOption"],features:[i._Bn([M.kn]),i.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(s,d){1&s&&(i.F$t(),i.YNc(0,v,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,P.gn)([(0,I.yF)()],z.prototype,"nzDisabled",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzHide",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzCustomContent",void 0),z})(),Ge=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new i.vpe,this.isComposingChange=new i.vpe}setCompositionState(s){this.isComposingChange.next(s)}onValueChange(s){this.value=s,this.valueChange.next(s),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const s=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),s.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${s.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(s){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=s;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(pe.tE))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-search"]],viewQuery:function(s,d){if(1&s&&(i.Gf(k,7),i.Gf(le,5)),2&s){let r;i.iGM(r=i.CRH())&&(d.inputElement=r.first),i.iGM(r=i.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[i._Bn([{provide:T.ve,useValue:!1}]),i.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(s,d){1&s&&(i.TgZ(0,"input",0,1),i.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),i.qZA(),i.YNc(2,ze,2,0,"span",2)),2&s&&(i.Udp("opacity",d.showInput?null:0),i.Q6J("ngModel",d.value)("disabled",d.disabled),i.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),i.xp6(2),i.Q6J("ngIf",d.mirrorSync))},directives:[T.Fj,T.JJ,T.On,E.O5],encapsulation:2,changeDetection:0}),z})(),it=(()=>{class z{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new i.vpe}onDelete(s){s.preventDefault(),s.stopPropagation(),this.disabled||this.delete.next(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(s,d){2&s&&(i.uIk("title",d.label),i.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(s,d){1&s&&(i.YNc(0,Qe,4,2,"ng-container",0),i.YNc(1,we,2,2,"span",1)),2&s&&(i.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",i.VKq(3,je,d.contentTemplateOutletContext)),i.xp6(1),i.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[w.f,E.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})(),nt=(()=>{class z{constructor(){this.placeholder=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(s,d){1&s&&i.YNc(0,et,2,1,"ng-container",0),2&s&&i.Q6J("nzStringTemplateOutlet",d.placeholder)},directives:[w.f],encapsulation:2,changeDetection:0}),z})(),rt=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.ngZone=d,this.noAnimation=r,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new i.vpe,this.inputValueChange=new i.vpe,this.deleteItem=new i.vpe,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new t.xQ}updateTemplateVariable(){const s=0===this.listOfTopItem.length;this.isShowPlaceholder=s&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!s&&!this.isComposing&&!this.inputValue}isComposingChange(s){this.isComposing=s,this.updateTemplateVariable()}onInputValueChange(s){s!==this.inputValue&&(this.inputValue=s,this.updateTemplateVariable(),this.inputValueChange.emit(s),this.tokenSeparate(s,this.tokenSeparators))}tokenSeparate(s,d){if(s&&s.length&&d.length&&"default"!==this.mode&&((R,G)=>{for(let de=0;de0)return!0;return!1})(s,d)){const R=((R,G)=>{const de=new RegExp(`[${G.join()}]`),Se=R.split(de).filter(Ne=>Ne);return[...new Set(Se)]})(s,d);this.tokenize.next(R)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(s,d){return d.nzValue}onDeleteItem(s){!this.disabled&&!s.nzDisabled&&this.deleteItem.next(s)}ngOnChanges(s){const{listOfTopItem:d,maxTagCount:r,customTemplate:p,maxTagPlaceholder:R}=s;if(d&&this.updateTemplateVariable(),d||r||p||R){const G=this.listOfTopItem.slice(0,this.maxTagCount).map(de=>({nzLabel:de.nzLabel,nzValue:de.nzValue,nzDisabled:de.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:de}));if(this.listOfTopItem.length>this.maxTagCount){const de=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,Se=this.listOfTopItem.map(We=>We.nzValue),Ne={nzLabel:de,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:Se.slice(this.maxTagCount)};G.push(Ne)}this.listOfSlicedItem=G}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,o.R)(this.elementRef.nativeElement,"click").pipe((0,V.R)(this.destroy$)).subscribe(s=>{s.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,o.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.R)(this.destroy$)).subscribe(s=>{if(s.target instanceof HTMLInputElement){const d=s.target.value;s.keyCode===C.ZH&&"default"!==this.mode&&!d&&this.listOfTopItem.length>0&&(s.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})})}ngOnDestroy(){this.destroy$.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-top-control"]],viewQuery:function(s,d){if(1&s&&i.Gf(Ge,5),2&s){let r;i.iGM(r=i.CRH())&&(d.nzSelectSearchComponent=r.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:"maxTagCount",autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[i.TTD],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger","isComposingChange","valueChange"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger","isComposingChange","valueChange"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete"],[3,"placeholder"]],template:function(s,d){1&s&&(i.ynx(0,0),i.YNc(1,st,3,8,"ng-container",1),i.YNc(2,tt,3,9,"ng-container",2),i.BQk(),i.YNc(3,ft,1,1,"nz-select-placeholder",3)),2&s&&(i.Q6J("ngSwitch",d.mode),i.xp6(1),i.Q6J("ngSwitchCase","default"),i.xp6(2),i.Q6J("ngIf",d.isShowPlaceholder))},directives:[Ge,it,nt,E.RF,E.n9,E.O5,E.ED,E.sg,S.w],encapsulation:2,changeDetection:0}),z})(),ot=(()=>{class z{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(s,d){2&s&&i.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(s,d){if(1&s&&(i.YNc(0,X,1,0,"i",0),i.YNc(1,Me,3,2,"ng-template",null,1,i.W1O)),2&s){const r=i.MAs(2);i.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[E.O5,D.Ls,S.w,w.f],encapsulation:2,changeDetection:0}),z})(),Xe=(()=>{class z{constructor(){this.clearIcon=null,this.clear=new i.vpe}onClick(s){s.preventDefault(),s.stopPropagation(),this.clear.emit(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(s,d){1&s&&i.NdJ("click",function(p){return d.onClick(p)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(s,d){1&s&&i.YNc(0,Be,1,0,"i",0),2&s&&i.Q6J("ngIf",!d.clearIcon)("ngIfElse",d.clearIcon)},directives:[E.O5,D.Ls,S.w],encapsulation:2,changeDetection:0}),z})();const _t=(z,j)=>!(!j||!j.nzLabel)&&j.nzLabel.toString().toLowerCase().indexOf(z.toLowerCase())>-1;let Ot=(()=>{class z{constructor(s,d,r,p,R,G,de,Se){this.destroy$=s,this.nzConfigService=d,this.cdr=r,this.elementRef=p,this.platform=R,this.focusMonitor=G,this.directionality=de,this.noAnimation=Se,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=_t,this.compareWith=(Ne,We)=>Ne===We,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new i.vpe,this.nzScrollToBottom=new i.vpe,this.nzOpenChange=new i.vpe,this.nzBlur=new i.vpe,this.nzFocus=new i.vpe,this.listOfValue$=new h.X([]),this.listOfTemplateItem$=new h.X([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottom",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr"}set nzShowArrow(s){this._nzShowArrow=s}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}generateTagItem(s){return{nzValue:s,nzLabel:s,type:"item"}}onItemClick(s){if(this.activatedValue=s,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],s))&&this.updateListOfValue([s]),this.setOpenState(!1);else{const d=this.listOfValue.findIndex(r=>this.compareWith(r,s));if(-1!==d){const r=this.listOfValue.filter((p,R)=>R!==d);this.updateListOfValue(r)}else if(this.listOfValue.length!this.compareWith(r,s.nzValue));this.updateListOfValue(d),this.clearInput()}onHostClick(){this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.setOpenState(!this.nzOpen)}updateListOfContainerItem(){let s=this.listOfTagAndTemplateItem.filter(p=>!p.nzHide).filter(p=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,p));if("tags"===this.nzMode&&this.searchValue){const p=this.listOfTagAndTemplateItem.find(R=>R.nzLabel===this.searchValue);if(p)this.activatedValue=p.nzValue;else{const R=this.generateTagItem(this.searchValue);s=[R,...s],this.activatedValue=R.nzValue}}const d=s.find(p=>this.compareWith(p.nzValue,this.listOfValue[0]))||s[0];this.activatedValue=d&&d.nzValue||null;let r=[];this.isReactiveDriven?r=[...new Set(this.nzOptions.filter(p=>p.groupLabel).map(p=>p.groupLabel))]:this.listOfNzOptionGroupComponent&&(r=this.listOfNzOptionGroupComponent.map(p=>p.nzLabel)),r.forEach(p=>{const R=s.findIndex(G=>p===G.groupLabel);R>-1&&s.splice(R,0,{groupLabel:p,type:"group",key:p})}),this.listOfContainerItem=[...s],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(s){const r=((p,R)=>"default"===this.nzMode?p.length>0?p[0]:null:p)(s);this.value!==r&&(this.listOfValue=s,this.listOfValue$.next(s),this.value=r,this.onChange(this.value))}onTokenSeparate(s){const d=this.listOfTagAndTemplateItem.filter(r=>-1!==s.findIndex(p=>p===r.nzLabel)).map(r=>r.nzValue).filter(r=>-1===this.listOfValue.findIndex(p=>this.compareWith(p,r)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...d]);else if("tags"===this.nzMode){const r=s.filter(p=>-1===this.listOfTagAndTemplateItem.findIndex(R=>R.nzLabel===p));this.updateListOfValue([...this.listOfValue,...d,...r])}this.clearInput()}onOverlayKeyDown(s){s.keyCode===C.hY&&this.setOpenState(!1)}onKeyDown(s){if(this.nzDisabled)return;const d=this.listOfContainerItem.filter(p=>"item"===p.type).filter(p=>!p.nzDisabled),r=d.findIndex(p=>this.compareWith(p.nzValue,this.activatedValue));switch(s.keyCode){case C.LH:s.preventDefault(),this.nzOpen&&(this.activatedValue=d[r>0?r-1:d.length-1].nzValue);break;case C.JH:s.preventDefault(),this.nzOpen?this.activatedValue=d[r{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,s!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){J(()=>{var s,d;null===(d=null===(s=this.cdkConnectedOverlay)||void 0===s?void 0:s.overlayRef)||void 0===d||d.updatePosition()})}writeValue(s){if(this.value!==s){this.value=s;const r=((p,R)=>null==p?[]:"default"===this.nzMode?[p]:p)(s);this.listOfValue=r,this.listOfValue$.next(r),this.cdr.markForCheck()}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=s,s&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(s){const{nzOpen:d,nzDisabled:r,nzOptions:p}=s;if(d&&this.onOpenChange(),r&&this.nzDisabled&&this.setOpenState(!1),p){this.isReactiveDriven=!0;const G=(this.nzOptions||[]).map(de=>({template:de.label instanceof i.Rgc?de.label:null,nzLabel:"string"==typeof de.label||"number"==typeof de.label?de.label:null,nzValue:de.value,nzDisabled:de.disabled||!1,nzHide:de.hide||!1,nzCustomContent:de.label instanceof i.Rgc,groupLabel:de.groupLabel||null,type:"item",key:de.value}));this.listOfTemplateItem$.next(G)}}ngOnInit(){var s;this.focusMonitor.monitor(this.elementRef,!0).pipe((0,V.R)(this.destroy$)).subscribe(d=>{d?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,e.aj)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.R)(this.destroy$)).subscribe(([d,r])=>{const p=d.filter(()=>"tags"===this.nzMode).filter(R=>-1===r.findIndex(G=>this.compareWith(G.nzValue,R))).map(R=>this.listOfTopItem.find(G=>this.compareWith(G.nzValue,R))||this.generateTagItem(R));this.listOfTagAndTemplateItem=[...r,...p],this.listOfTopItem=this.listOfValue.map(R=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(G=>this.compareWith(R,G.nzValue))).filter(R=>!!R),this.updateListOfContainerItem()}),null===(s=this.directionality.change)||void 0===s||s.pipe((0,V.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value}ngAfterContentInit(){this.isReactiveDriven||(0,b.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,L.O)(!0),(0,F.w)(()=>(0,b.T)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(s=>s.changes),...this.listOfNzOptionGroupComponent.map(s=>s.changes)).pipe((0,L.O)(!0))),(0,V.R)(this.destroy$)).subscribe(()=>{const s=this.listOfNzOptionComponent.toArray().map(d=>{const{template:r,nzLabel:p,nzValue:R,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ne}=d;return{template:r,nzLabel:p,nzValue:R,nzDisabled:G,nzHide:de,nzCustomContent:Se,groupLabel:Ne,type:"item",key:R}});this.listOfTemplateItem$.next(s),this.cdr.markForCheck()})}ngOnDestroy(){H(this.requestId),this.focusMonitor.stopMonitoring(this.elementRef)}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(M.kn),i.Y36(Z.jY),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(Ce.t4),i.Y36(pe.tE),i.Y36(be.Is,8),i.Y36(me.P,9))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select"]],contentQueries:function(s,d,r){if(1&s&&(i.Suo(r,Ye,5),i.Suo(r,Pe,5)),2&s){let p;i.iGM(p=i.CRH())&&(d.listOfNzOptionComponent=p),i.iGM(p=i.CRH())&&(d.listOfNzOptionGroupComponent=p)}},viewQuery:function(s,d){if(1&s&&(i.Gf(y.xu,7,i.SBq),i.Gf(y.pI,7),i.Gf(rt,7),i.Gf(Pe,7,i.SBq),i.Gf(rt,7,i.SBq)),2&s){let r;i.iGM(r=i.CRH())&&(d.originElement=r.first),i.iGM(r=i.CRH())&&(d.cdkConnectedOverlay=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponent=r.first),i.iGM(r=i.CRH())&&(d.nzOptionGroupComponentElement=r.first),i.iGM(r=i.CRH())&&(d.nzSelectTopControlComponentElement=r.first)}},hostAttrs:[1,"ant-select"],hostVars:24,hostBindings:function(s,d){1&s&&i.NdJ("click",function(){return d.onHostClick()}),2&s&&i.ekj("ant-select-lg","large"===d.nzSize)("ant-select-sm","small"===d.nzSize)("ant-select-show-arrow",d.nzShowArrow)("ant-select-disabled",d.nzDisabled)("ant-select-show-search",(d.nzShowSearch||"default"!==d.nzMode)&&!d.nzDisabled)("ant-select-allow-clear",d.nzAllowClear)("ant-select-borderless",d.nzBorderless)("ant-select-open",d.nzOpen)("ant-select-focused",d.nzOpen||d.focused)("ant-select-single","default"===d.nzMode)("ant-select-multiple","default"!==d.nzMode)("ant-select-rtl","rtl"===d.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:"nzAllowClear",nzBorderless:"nzBorderless",nzShowSearch:"nzShowSearch",nzLoading:"nzLoading",nzAutoFocus:"nzAutoFocus",nzAutoClearSearchValue:"nzAutoClearSearchValue",nzServerSearch:"nzServerSearch",nzDisabled:"nzDisabled",nzOpen:"nzOpen",nzBackdrop:"nzBackdrop",nzOptions:"nzOptions",nzShowArrow:"nzShowArrow"},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],features:[i._Bn([M.kn,{provide:T.JU,useExisting:(0,i.Gpc)(()=>z),multi:!0}]),i.TTD],decls:5,vars:24,consts:[["cdkOverlayOrigin","",3,"nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","inputValueChange","tokenize","deleteItem","keydown"],["origin","cdkOverlayOrigin"],[3,"loading","search","suffixIcon",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","overlayKeydown","overlayOutsideClick","detach","positionChange"],[3,"loading","search","suffixIcon"],[3,"clearIcon","clear"],[3,"ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","keydown","itemClick","scrollToBottom"]],template:function(s,d){if(1&s&&(i.TgZ(0,"nz-select-top-control",0,1),i.NdJ("inputValueChange",function(p){return d.onInputValueChange(p)})("tokenize",function(p){return d.onTokenSeparate(p)})("deleteItem",function(p){return d.onItemDelete(p)})("keydown",function(p){return d.onKeyDown(p)}),i.qZA(),i.YNc(2,Le,1,3,"nz-select-arrow",2),i.YNc(3,Ze,1,1,"nz-select-clear",3),i.YNc(4,Ae,1,19,"ng-template",4),i.NdJ("overlayKeydown",function(p){return d.onOverlayKeyDown(p)})("overlayOutsideClick",function(p){return d.onClickOutside(p)})("detach",function(){return d.setOpenState(!1)})("positionChange",function(p){return d.onPositionChange(p)})),2&s){const r=i.MAs(1);i.Q6J("nzId",d.nzId)("open",d.nzOpen)("disabled",d.nzDisabled)("mode",d.nzMode)("@.disabled",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("nzNoAnimation",null==d.noAnimation?null:d.noAnimation.nzNoAnimation)("maxTagPlaceholder",d.nzMaxTagPlaceholder)("removeIcon",d.nzRemoveIcon)("placeHolder",d.nzPlaceHolder)("maxTagCount",d.nzMaxTagCount)("customTemplate",d.nzCustomTemplate)("tokenSeparators",d.nzTokenSeparators)("showSearch",d.nzShowSearch)("autofocus",d.nzAutoFocus)("listOfTopItem",d.listOfTopItem),i.xp6(2),i.Q6J("ngIf",d.nzShowArrow),i.xp6(1),i.Q6J("ngIf",d.nzAllowClear&&!d.nzDisabled&&d.listOfValue.length),i.xp6(1),i.Q6J("cdkConnectedOverlayHasBackdrop",d.nzBackdrop)("cdkConnectedOverlayMinWidth",d.nzDropdownMatchSelectWidth?null:d.triggerWidth)("cdkConnectedOverlayWidth",d.nzDropdownMatchSelectWidth?d.triggerWidth:null)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",d.nzDropdownClassName)("cdkConnectedOverlayOpen",d.nzOpen)}},directives:[rt,ot,Xe,Ue,S.w,y.xu,me.P,E.O5,y.pI,ne.hQ,E.PC],encapsulation:2,data:{animation:[f.mF]},changeDetection:0}),(0,P.gn)([(0,Z.oS)()],z.prototype,"nzSuffixIcon",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzAllowClear",void 0),(0,P.gn)([(0,Z.oS)(),(0,I.yF)()],z.prototype,"nzBorderless",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzShowSearch",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzLoading",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzAutoFocus",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzAutoClearSearchValue",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzServerSearch",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzDisabled",void 0),(0,P.gn)([(0,I.yF)()],z.prototype,"nzOpen",void 0),(0,P.gn)([(0,Z.oS)(),(0,I.yF)()],z.prototype,"nzBackdrop",void 0),z})(),xt=(()=>{class z{}return z.\u0275fac=function(s){return new(s||z)},z.\u0275mod=i.oAB({type:z}),z.\u0275inj=i.cJS({imports:[[be.vT,E.ez,ce.YI,T.u5,Ce.ud,y.U8,D.PV,w.T,N.Xo,ne.e4,me.g,S.a,O.Cl,pe.rt]]}),z})()},6462:(ae,A,a)=>{a.d(A,{i:()=>Z,m:()=>K});var i=a(655),t=a(1159),o=a(5e3),h=a(4182),e=a(8929),b=a(3753),O=a(7625),N=a(9439),w=a(1721),E=a(5664),D=a(226),S=a(2643),P=a(9808),L=a(647),V=a(969);const F=["switchElement"];function M(Q,te){1&Q&&o._UZ(0,"i",8)}function I(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzCheckedChildren)}}function C(Q,te){if(1&Q&&(o.ynx(0),o.YNc(1,I,2,1,"ng-container",9),o.BQk()),2&Q){const H=o.oxw();o.xp6(1),o.Q6J("nzStringTemplateOutlet",H.nzCheckedChildren)}}function y(Q,te){if(1&Q&&(o.ynx(0),o._uU(1),o.BQk()),2&Q){const H=o.oxw(2);o.xp6(1),o.Oqu(H.nzUnCheckedChildren)}}function T(Q,te){if(1&Q&&o.YNc(0,y,2,1,"ng-container",9),2&Q){const H=o.oxw();o.Q6J("nzStringTemplateOutlet",H.nzUnCheckedChildren)}}let Z=(()=>{class Q{constructor(H,J,pe,me,Ce,be){this.nzConfigService=H,this.host=J,this.ngZone=pe,this.cdr=me,this.focusMonitor=Ce,this.directionality=be,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.dir="ltr",this.destroy$=new e.xQ}updateValue(H){this.isChecked!==H&&(this.isChecked=H,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}ngOnInit(){this.directionality.change.pipe((0,O.R)(this.destroy$)).subscribe(H=>{this.dir=H,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,b.R)(this.host.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(H=>{H.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,b.R)(this.switchElement.nativeElement,"keydown").pipe((0,O.R)(this.destroy$)).subscribe(H=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:J}=H;J!==t.oh&&J!==t.SV&&J!==t.L_&&J!==t.K5||(H.preventDefault(),this.ngZone.run(()=>{J===t.oh?this.updateValue(!1):J===t.SV?this.updateValue(!0):(J===t.L_||J===t.K5)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,O.R)(this.destroy$)).subscribe(H=>{H||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(H){this.isChecked=H,this.cdr.markForCheck()}registerOnChange(H){this.onChange=H}registerOnTouched(H){this.onTouched=H}setDisabledState(H){this.nzDisabled=H,this.cdr.markForCheck()}}return Q.\u0275fac=function(H){return new(H||Q)(o.Y36(N.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(E.tE),o.Y36(D.Is,8))},Q.\u0275cmp=o.Xpm({type:Q,selectors:[["nz-switch"]],viewQuery:function(H,J){if(1&H&&o.Gf(F,7),2&H){let pe;o.iGM(pe=o.CRH())&&(J.switchElement=pe.first)}},inputs:{nzLoading:"nzLoading",nzDisabled:"nzDisabled",nzControl:"nzControl",nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize"},exportAs:["nzSwitch"],features:[o._Bn([{provide:h.JU,useExisting:(0,o.Gpc)(()=>Q),multi:!0}])],decls:9,vars:15,consts:[["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],["switchElement",""],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],["uncheckTemplate",""],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(H,J){if(1&H&&(o.TgZ(0,"button",0,1),o.TgZ(2,"span",2),o.YNc(3,M,1,0,"i",3),o.qZA(),o.TgZ(4,"span",4),o.YNc(5,C,2,1,"ng-container",5),o.YNc(6,T,1,1,"ng-template",null,6,o.W1O),o.qZA(),o._UZ(8,"div",7),o.qZA()),2&H){const pe=o.MAs(7);o.ekj("ant-switch-checked",J.isChecked)("ant-switch-loading",J.nzLoading)("ant-switch-disabled",J.nzDisabled)("ant-switch-small","small"===J.nzSize)("ant-switch-rtl","rtl"===J.dir),o.Q6J("disabled",J.nzDisabled)("nzWaveExtraNode",!0),o.xp6(3),o.Q6J("ngIf",J.nzLoading),o.xp6(2),o.Q6J("ngIf",J.isChecked)("ngIfElse",pe)}},directives:[S.dQ,P.O5,L.Ls,V.f],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,w.yF)()],Q.prototype,"nzLoading",void 0),(0,i.gn)([(0,w.yF)()],Q.prototype,"nzDisabled",void 0),(0,i.gn)([(0,w.yF)()],Q.prototype,"nzControl",void 0),(0,i.gn)([(0,N.oS)()],Q.prototype,"nzSize",void 0),Q})(),K=(()=>{class Q{}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275mod=o.oAB({type:Q}),Q.\u0275inj=o.cJS({imports:[[D.vT,P.ez,S.vG,L.PV,V.T]]}),Q})()},592:(ae,A,a)=>{a.d(A,{Uo:()=>Xt,N8:()=>In,HQ:()=>wn,p0:()=>yn,qD:()=>jt,_C:()=>ut,Om:()=>An,$Z:()=>Sn});var i=a(226),t=a(925),o=a(3393),h=a(9808),e=a(5e3),b=a(4182),O=a(6042),N=a(5577),w=a(6114),E=a(969),D=a(3677),S=a(685),P=a(4170),L=a(647),V=a(4219),F=a(655),M=a(8929),I=a(5647),C=a(7625),y=a(9439),T=a(4090),f=a(1721),Z=a(5197);const K=["nz-pagination-item",""];function Q(c,g){if(1&c&&(e.TgZ(0,"a"),e._uU(1),e.qZA()),2&c){const n=e.oxw().page;e.xp6(1),e.Oqu(n)}}function te(c,g){1&c&&e._UZ(0,"i",9)}function H(c,g){1&c&&e._UZ(0,"i",10)}function J(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,te,1,0,"i",7),e.YNc(3,H,1,0,"i",8),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function pe(c,g){1&c&&e._UZ(0,"i",10)}function me(c,g){1&c&&e._UZ(0,"i",9)}function Ce(c,g){if(1&c&&(e.TgZ(0,"button",6),e.ynx(1,2),e.YNc(2,pe,1,0,"i",11),e.YNc(3,me,1,0,"i",12),e.BQk(),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("disabled",n.disabled),e.xp6(1),e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function be(c,g){1&c&&e._UZ(0,"i",20)}function ne(c,g){1&c&&e._UZ(0,"i",21)}function ce(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,be,1,0,"i",18),e.YNc(2,ne,1,0,"i",19),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function Y(c,g){1&c&&e._UZ(0,"i",21)}function re(c,g){1&c&&e._UZ(0,"i",20)}function W(c,g){if(1&c&&(e.ynx(0,2),e.YNc(1,Y,1,0,"i",22),e.YNc(2,re,1,0,"i",23),e.BQk()),2&c){const n=e.oxw(4);e.Q6J("ngSwitch",n.direction),e.xp6(1),e.Q6J("ngSwitchCase","rtl")}}function q(c,g){if(1&c&&(e.TgZ(0,"div",15),e.ynx(1,2),e.YNc(2,ce,3,2,"ng-container",16),e.YNc(3,W,3,2,"ng-container",16),e.BQk(),e.TgZ(4,"span",17),e._uU(5,"\u2022\u2022\u2022"),e.qZA(),e.qZA()),2&c){const n=e.oxw(2).$implicit;e.xp6(1),e.Q6J("ngSwitch",n),e.xp6(1),e.Q6J("ngSwitchCase","prev_5"),e.xp6(1),e.Q6J("ngSwitchCase","next_5")}}function ge(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"a",13),e.YNc(2,q,6,3,"div",14),e.qZA(),e.BQk()),2&c){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("ngSwitch",n)}}function ie(c,g){1&c&&(e.ynx(0,2),e.YNc(1,Q,2,1,"a",3),e.YNc(2,J,4,3,"button",4),e.YNc(3,Ce,4,3,"button",4),e.YNc(4,ge,3,1,"ng-container",5),e.BQk()),2&c&&(e.Q6J("ngSwitch",g.$implicit),e.xp6(1),e.Q6J("ngSwitchCase","page"),e.xp6(1),e.Q6J("ngSwitchCase","prev"),e.xp6(1),e.Q6J("ngSwitchCase","next"))}function he(c,g){}const $=function(c,g){return{$implicit:c,page:g}},se=["containerTemplate"];function _(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",1),e.NdJ("click",function(){return e.CHM(n),e.oxw().prePage()}),e.qZA(),e.TgZ(1,"li",2),e.TgZ(2,"input",3),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e.TgZ(3,"span",4),e._uU(4,"/"),e.qZA(),e._uU(5),e.qZA(),e.TgZ(6,"li",5),e.NdJ("click",function(){return e.CHM(n),e.oxw().nextPage()}),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("disabled",n.isFirstIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",n.locale.prev_page),e.xp6(1),e.uIk("title",n.pageIndex+"/"+n.lastIndex),e.xp6(1),e.Q6J("disabled",n.disabled)("value",n.pageIndex),e.xp6(3),e.hij(" ",n.lastIndex," "),e.xp6(1),e.Q6J("disabled",n.isLastIndex)("direction",n.dir)("itemRender",n.itemRender),e.uIk("title",null==n.locale?null:n.locale.next_page)}}const x=["nz-pagination-options",""];function u(c,g){if(1&c&&e._UZ(0,"nz-option",4),2&c){const n=g.$implicit;e.Q6J("nzLabel",n.label)("nzValue",n.value)}}function v(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-select",2),e.NdJ("ngModelChange",function(m){return e.CHM(n),e.oxw().onPageSizeChange(m)}),e.YNc(1,u,1,2,"nz-option",3),e.qZA()}if(2&c){const n=e.oxw();e.Q6J("nzDisabled",n.disabled)("nzSize",n.nzSize)("ngModel",n.pageSize),e.xp6(1),e.Q6J("ngForOf",n.listOfPageSizeOption)("ngForTrackBy",n.trackByOption)}}function k(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",5),e._uU(1),e.TgZ(2,"input",6),e.NdJ("keydown.enter",function(m){return e.CHM(n),e.oxw().jumpToPageViaInput(m)}),e.qZA(),e._uU(3),e.qZA()}if(2&c){const n=e.oxw();e.xp6(1),e.hij(" ",n.locale.jump_to," "),e.xp6(1),e.Q6J("disabled",n.disabled),e.xp6(1),e.hij(" ",n.locale.page," ")}}function le(c,g){}const ze=function(c,g){return{$implicit:c,range:g}};function Ee(c,g){if(1&c&&(e.TgZ(0,"li",4),e.YNc(1,le,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.showTotal)("ngTemplateOutletContext",e.WLB(2,ze,n.total,n.ranges))}}function Fe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",6),e.NdJ("gotoIndex",function(m){return e.CHM(n),e.oxw(2).jumpPage(m)})("diffIndex",function(m){return e.CHM(n),e.oxw(2).jumpDiff(m)}),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("locale",l.locale)("type",n.type)("index",n.index)("disabled",!!n.disabled)("itemRender",l.itemRender)("active",l.pageIndex===n.index)("direction",l.dir)}}function Qe(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"div",7),e.NdJ("pageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)})("pageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("total",n.total)("locale",n.locale)("disabled",n.disabled)("nzSize",n.nzSize)("showSizeChanger",n.showSizeChanger)("showQuickJumper",n.showQuickJumper)("pageIndex",n.pageIndex)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)}}function Ve(c,g){if(1&c&&(e.YNc(0,Ee,2,5,"li",1),e.YNc(1,Fe,1,7,"li",2),e.YNc(2,Qe,1,9,"div",3)),2&c){const n=e.oxw();e.Q6J("ngIf",n.showTotal),e.xp6(1),e.Q6J("ngForOf",n.listOfPageItem)("ngForTrackBy",n.trackByPageItem),e.xp6(1),e.Q6J("ngIf",n.showQuickJumper||n.showSizeChanger)}}function we(c,g){}function je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,we,0,0,"ng-template",6),e.BQk()),2&c){e.oxw(2);const n=e.MAs(2);e.xp6(1),e.Q6J("ngTemplateOutlet",n.template)}}function et(c,g){if(1&c&&(e.ynx(0),e.YNc(1,je,2,1,"ng-container",5),e.BQk()),2&c){const n=e.oxw(),l=e.MAs(4);e.xp6(1),e.Q6J("ngIf",n.nzSimple)("ngIfElse",l.template)}}let He=(()=>{class c{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new e.vpe,this.gotoIndex=new e.vpe,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(n){var l,m,B,ee;const{locale:_e,index:ve,type:Ie}=n;(_e||ve||Ie)&&(this.title={page:`${this.index}`,next:null===(l=this.locale)||void 0===l?void 0:l.next_page,prev:null===(m=this.locale)||void 0===m?void 0:m.prev_page,prev_5:null===(B=this.locale)||void 0===B?void 0:B.prev_5,next_5:null===(ee=this.locale)||void 0===ee?void 0:ee.next_5}[this.type])}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.clickItem()}),2&n&&(e.uIk("title",l.title),e.ekj("ant-pagination-prev","prev"===l.type)("ant-pagination-next","next"===l.type)("ant-pagination-item","page"===l.type)("ant-pagination-jump-prev","prev_5"===l.type)("ant-pagination-jump-prev-custom-icon","prev_5"===l.type)("ant-pagination-jump-next","next_5"===l.type)("ant-pagination-jump-next-custom-icon","next_5"===l.type)("ant-pagination-disabled",l.disabled)("ant-pagination-item-active",l.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},features:[e.TTD],attrs:K,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],["type","button","class","ant-pagination-item-link",3,"disabled",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["type","button",1,"ant-pagination-item-link",3,"disabled"],["nz-icon","","nzType","right",4,"ngSwitchCase"],["nz-icon","","nzType","left",4,"ngSwitchDefault"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],["nz-icon","","nzType","left",4,"ngSwitchCase"],["nz-icon","","nzType","right",4,"ngSwitchDefault"],[1,"ant-pagination-item-link",3,"ngSwitch"],["class","ant-pagination-item-container",4,"ngSwitchDefault"],[1,"ant-pagination-item-container"],[3,"ngSwitch",4,"ngSwitchCase"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left","class","ant-pagination-item-link-icon",4,"ngSwitchCase"],["nz-icon","","nzType","double-right","class","ant-pagination-item-link-icon",4,"ngSwitchDefault"]],template:function(n,l){if(1&n&&(e.YNc(0,ie,5,4,"ng-template",null,0,e.W1O),e.YNc(2,he,0,0,"ng-template",1)),2&n){const m=e.MAs(1);e.xp6(2),e.Q6J("ngTemplateOutlet",l.itemRender||m)("ngTemplateOutletContext",e.WLB(2,$,l.type,l.index))}},directives:[h.RF,h.n9,L.Ls,h.ED,h.tP],encapsulation:2,changeDetection:0}),c})(),st=(()=>{class c{constructor(n,l,m,B){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=B,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new e.vpe,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(n){const l=n.target,m=(0,f.He)(l.value,this.pageIndex);this.onPageIndexChange(m),l.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(n){this.pageIndexChange.next(n)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(n){const{pageIndex:l,total:m,pageSize:B}=n;(l||m||B)&&this.updateBindingValue()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination-simple"]],viewQuery:function(n,l){if(1&n&&e.Gf(se,7),2&n){let m;e.iGM(m=e.CRH())&&(l.template=m.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},features:[e.TTD],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"disabled","direction","itemRender","click"],[1,"ant-pagination-simple-pager"],["size","3",3,"disabled","value","keydown.enter"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"disabled","direction","itemRender","click"]],template:function(n,l){1&n&&e.YNc(0,_,7,12,"ng-template",null,0,e.W1O)},directives:[He],encapsulation:2,changeDetection:0}),c})(),at=(()=>{class c{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.listOfPageSizeOption=[]}onPageSizeChange(n){this.pageSize!==n&&this.pageSizeChange.next(n)}jumpToPageViaInput(n){const l=n.target,m=Math.floor((0,f.He)(l.value,this.pageIndex));this.pageIndexChange.next(m),l.value=""}trackByOption(n,l){return l.value}ngOnChanges(n){const{pageSize:l,pageSizeOptions:m,locale:B}=n;(l||m||B)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(ee=>({value:ee,label:`${ee} ${this.locale.items_per_page}`})))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["div","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[e.TTD],attrs:x,decls:2,vars:2,consts:[["class","ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange",4,"ngIf"],["class","ant-pagination-options-quick-jumper",4,"ngIf"],[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzLabel","nzValue"],[1,"ant-pagination-options-quick-jumper"],[3,"disabled","keydown.enter"]],template:function(n,l){1&n&&(e.YNc(0,v,2,5,"nz-select",0),e.YNc(1,k,4,3,"div",1)),2&n&&(e.Q6J("ngIf",l.showSizeChanger),e.xp6(1),e.Q6J("ngIf",l.showQuickJumper))},directives:[Z.Vq,Z.Ip,h.O5,b.JJ,b.On,h.sg],encapsulation:2,changeDetection:0}),c})(),tt=(()=>{class c{constructor(n,l,m,B){this.cdr=n,this.renderer=l,this.elementRef=m,this.directionality=B,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new e.vpe,this.pageSizeChange=new e.vpe,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new M.xQ,l.removeChild(l.parentNode(m.nativeElement),m.nativeElement)}ngOnInit(){var n;null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(n){this.onPageIndexChange(n)}jumpDiff(n){this.jumpPage(this.pageIndex+n)}trackByPageItem(n,l){return`${l.type}-${l.index}`}onPageIndexChange(n){this.pageIndexChange.next(n)}onPageSizeChange(n){this.pageSizeChange.next(n)}getLastIndex(n,l){return Math.ceil(n/l)}buildIndexes(){const n=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,n)}getListOfPageItem(n,l){const B=(ee,_e)=>{const ve=[];for(let Ie=ee;Ie<=_e;Ie++)ve.push({index:Ie,type:"page"});return ve};return ee=l<=9?B(1,l):((_e,ve)=>{let Ie=[];const $e={type:"prev_5"},Te={type:"next_5"},dt=B(1,1),Tt=B(l,l);return Ie=_e<5?[...B(2,4===_e?6:5),Te]:_e{class c{constructor(n,l,m,B,ee){this.i18n=n,this.cdr=l,this.breakpointService=m,this.nzConfigService=B,this.directionality=ee,this._nzModuleName="pagination",this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new M.xQ,this.total$=new I.t(1)}validatePageIndex(n,l){return n>l?l:n<1?1:n}onPageIndexChange(n){const l=this.getLastIndex(this.nzTotal,this.nzPageSize),m=this.validatePageIndex(n,l);m!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=m,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(n){this.nzPageSize=n,this.nzPageSizeChange.emit(n);const l=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>l&&this.onPageIndexChange(l)}onTotalChange(n){const l=this.getLastIndex(n,this.nzPageSize);this.nzPageIndex>l&&Promise.resolve().then(()=>{this.onPageIndexChange(l),this.cdr.markForCheck()})}getLastIndex(n,l){return Math.ceil(n/l)}ngOnInit(){var n;this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.onTotalChange(l)}),this.breakpointService.subscribe(T.WV).pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.nzResponsive&&(this.size=l===T.G_.xs?"small":"default",this.cdr.markForCheck())}),null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(n){const{nzHideOnSinglePage:l,nzTotal:m,nzPageSize:B,nzSize:ee}=n;m&&this.total$.next(this.nzTotal),(l||m||B)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),ee&&(this.size=ee.currentValue)}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(P.wi),e.Y36(e.sBO),e.Y36(T.r3),e.Y36(y.jY),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(n,l){2&n&&e.ekj("ant-pagination-simple",l.nzSimple)("ant-pagination-disabled",l.nzDisabled)("mini",!l.nzSimple&&"small"===l.size)("ant-pagination-rtl","rtl"===l.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:"nzShowSizeChanger",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple",nzDisabled:"nzDisabled",nzResponsive:"nzResponsive",nzHideOnSinglePage:"nzHideOnSinglePage",nzTotal:"nzTotal",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],features:[e.TTD],decls:5,vars:18,consts:[[4,"ngIf"],[3,"disabled","itemRender","locale","pageSize","total","pageIndex","pageIndexChange"],["simplePagination",""],[3,"nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions","pageIndexChange","pageSizeChange"],["defaultPagination",""],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,et,2,2,"ng-container",0),e.TgZ(1,"nz-pagination-simple",1,2),e.NdJ("pageIndexChange",function(B){return l.onPageIndexChange(B)}),e.qZA(),e.TgZ(3,"nz-pagination-default",3,4),e.NdJ("pageIndexChange",function(B){return l.onPageIndexChange(B)})("pageSizeChange",function(B){return l.onPageSizeChange(B)}),e.qZA()),2&n&&(e.Q6J("ngIf",l.showPagination),e.xp6(1),e.Q6J("disabled",l.nzDisabled)("itemRender",l.nzItemRender)("locale",l.locale)("pageSize",l.nzPageSize)("total",l.nzTotal)("pageIndex",l.nzPageIndex),e.xp6(2),e.Q6J("nzSize",l.size)("itemRender",l.nzItemRender)("showTotal",l.nzShowTotal)("disabled",l.nzDisabled)("locale",l.locale)("showSizeChanger",l.nzShowSizeChanger)("showQuickJumper",l.nzShowQuickJumper)("total",l.nzTotal)("pageIndex",l.nzPageIndex)("pageSize",l.nzPageSize)("pageSizeOptions",l.nzPageSizeOptions))},directives:[st,tt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,F.gn)([(0,y.oS)()],c.prototype,"nzPageSizeOptions",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzDisabled",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzResponsive",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,F.gn)([(0,f.Rn)()],c.prototype,"nzTotal",void 0),(0,F.gn)([(0,f.Rn)()],c.prototype,"nzPageIndex",void 0),(0,F.gn)([(0,f.Rn)()],c.prototype,"nzPageSize",void 0),c})(),oe=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,h.ez,b.u5,Z.LV,P.YI,L.PV]]}),c})();var ye=a(3868),Oe=a(7525),Re=a(3753),ue=a(591),Me=a(6053),Be=a(6787),Le=a(8896),Ze=a(1086),Ae=a(4850),Pe=a(1059),De=a(7545),Ke=a(13),Ue=a(8583),Ye=a(2198),Ge=a(5778),it=a(1307),nt=a(1709),rt=a(2683),ot=a(2643);const Xe=["*"];function _t(c,g){}function yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",15),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function Ot(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"label",16),e.NdJ("ngModelChange",function(){e.CHM(n);const m=e.oxw().$implicit;return e.oxw(2).check(m)}),e.qZA()}if(2&c){const n=e.oxw().$implicit;e.Q6J("ngModel",n.checked)}}function xt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"li",12),e.NdJ("click",function(){const B=e.CHM(n).$implicit;return e.oxw(2).check(B)}),e.YNc(1,yt,1,1,"label",13),e.YNc(2,Ot,1,1,"label",14),e.TgZ(3,"span"),e._uU(4),e.qZA(),e.qZA()}if(2&c){const n=g.$implicit,l=e.oxw(2);e.Q6J("nzSelected",n.checked),e.xp6(1),e.Q6J("ngIf",!l.filterMultiple),e.xp6(1),e.Q6J("ngIf",l.filterMultiple),e.xp6(2),e.Oqu(n.text)}}function z(c,g){if(1&c){const n=e.EpF();e.ynx(0),e.TgZ(1,"nz-filter-trigger",3),e.NdJ("nzVisibleChange",function(m){return e.CHM(n),e.oxw().onVisibleChange(m)}),e._UZ(2,"i",4),e.qZA(),e.TgZ(3,"nz-dropdown-menu",null,5),e.TgZ(5,"div",6),e.TgZ(6,"ul",7),e.YNc(7,xt,5,4,"li",8),e.qZA(),e.TgZ(8,"div",9),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(n),e.oxw().reset()}),e._uU(10),e.qZA(),e.TgZ(11,"button",11),e.NdJ("click",function(){return e.CHM(n),e.oxw().confirm()}),e._uU(12),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&c){const n=e.MAs(4),l=e.oxw();e.xp6(1),e.Q6J("nzVisible",l.isVisible)("nzActive",l.isChecked)("nzDropdownMenu",n),e.xp6(6),e.Q6J("ngForOf",l.listOfParsedFilter)("ngForTrackBy",l.trackByValue),e.xp6(2),e.Q6J("disabled",!l.isChecked),e.xp6(1),e.hij(" ",l.locale.filterReset," "),e.xp6(2),e.Oqu(l.locale.filterConfirm)}}function r(c,g){}function p(c,g){if(1&c&&e._UZ(0,"i",6),2&c){const n=e.oxw();e.ekj("active","ascend"===n.sortOrder)}}function R(c,g){if(1&c&&e._UZ(0,"i",7),2&c){const n=e.oxw();e.ekj("active","descend"===n.sortOrder)}}const Ne=["nzColumnKey",""];function We(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-table-filter",5),e.NdJ("filterChange",function(m){return e.CHM(n),e.oxw().onFilterValueChange(m)}),e.qZA()}if(2&c){const n=e.oxw(),l=e.MAs(2),m=e.MAs(4);e.Q6J("contentTemplate",l)("extraTemplate",m)("customFilter",n.nzCustomFilter)("filterMultiple",n.nzFilterMultiple)("listOfFilter",n.nzFilters)}}function lt(c,g){}function ht(c,g){if(1&c&&e.YNc(0,lt,0,0,"ng-template",6),2&c){const n=e.oxw(),l=e.MAs(6),m=e.MAs(8);e.Q6J("ngTemplateOutlet",n.nzShowSort?l:m)}}function St(c,g){1&c&&(e.Hsn(0),e.Hsn(1,1))}function wt(c,g){if(1&c&&e._UZ(0,"nz-table-sorters",7),2&c){const n=e.oxw(),l=e.MAs(8);e.Q6J("sortOrder",n.sortOrder)("sortDirections",n.sortDirections)("contentTemplate",l)}}function Pt(c,g){1&c&&e.Hsn(0,2)}const Ft=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],bt=["[nz-th-extra]","nz-filter-trigger","*"],Rt=["nz-table-content",""];function Bt(c,g){if(1&c&&e._UZ(0,"col"),2&c){const n=g.$implicit;e.Udp("width",n)("min-width",n)}}function kt(c,g){}function Lt(c,g){if(1&c&&(e.TgZ(0,"thead",3),e.YNc(1,kt,0,0,"ng-template",2),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",n.theadTemplate)}}function Dt(c,g){}const Mt=["tdElement"],Zt=["nz-table-fixed-row",""];function $t(c,g){}function Wt(c,g){if(1&c&&(e.TgZ(0,"div",4),e.ALo(1,"async"),e.YNc(2,$t,0,0,"ng-template",5),e.qZA()),2&c){const n=e.oxw(),l=e.MAs(5);e.Udp("width",e.lcZ(1,3,n.hostWidth$),"px"),e.xp6(2),e.Q6J("ngTemplateOutlet",l)}}function Et(c,g){1&c&&e.Hsn(0)}const Qt=["nz-table-measure-row",""];function Ut(c,g){1&c&&e._UZ(0,"td",1,2)}function Yt(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"tr",3),e.NdJ("listOfAutoWidth",function(m){return e.CHM(n),e.oxw(2).onListOfAutoWidthChange(m)}),e.qZA()}if(2&c){const n=e.oxw().ngIf;e.Q6J("listOfMeasureColumn",n)}}function Nt(c,g){if(1&c&&(e.ynx(0),e.YNc(1,Yt,1,1,"tr",2),e.BQk()),2&c){const n=g.ngIf,l=e.oxw();e.xp6(1),e.Q6J("ngIf",l.isInsideTable&&n.length)}}function Vt(c,g){if(1&c&&(e.TgZ(0,"tr",4),e._UZ(1,"nz-embed-empty",5),e.ALo(2,"async"),e.qZA()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("specificContent",e.lcZ(2,1,n.noResult$))}}const Ht=["tableHeaderElement"],Jt=["tableBodyElement"];function qt(c,g){if(1&c&&(e.TgZ(0,"div",7,8),e._UZ(2,"table",9),e.qZA()),2&c){const n=e.oxw(2);e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("contentTemplate",n.contentTemplate)}}function en(c,g){}const tn=function(c,g){return{$implicit:c,index:g}};function nn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,en,0,0,"ng-template",13),e.BQk()),2&c){const n=g.$implicit,l=g.index,m=e.oxw(3);e.xp6(1),e.Q6J("ngTemplateOutlet",m.virtualTemplate)("ngTemplateOutletContext",e.WLB(2,tn,n,l))}}function on(c,g){if(1&c&&(e.TgZ(0,"cdk-virtual-scroll-viewport",10,8),e.TgZ(2,"table",11),e.TgZ(3,"tbody"),e.YNc(4,nn,2,5,"ng-container",12),e.qZA(),e.qZA(),e.qZA()),2&c){const n=e.oxw(2);e.Udp("height",n.data.length?n.scrollY:n.noDateVirtualHeight),e.Q6J("itemSize",n.virtualItemSize)("maxBufferPx",n.virtualMaxBufferPx)("minBufferPx",n.virtualMinBufferPx),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth),e.xp6(2),e.Q6J("cdkVirtualForOf",n.data)("cdkVirtualForTrackBy",n.virtualForTrackBy)}}function an(c,g){if(1&c&&(e.ynx(0),e.TgZ(1,"div",2,3),e._UZ(3,"table",4),e.qZA(),e.YNc(4,qt,3,4,"div",5),e.YNc(5,on,5,9,"cdk-virtual-scroll-viewport",6),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Q6J("ngStyle",n.headerStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate),e.xp6(1),e.Q6J("ngIf",!n.virtualTemplate),e.xp6(1),e.Q6J("ngIf",n.virtualTemplate)}}function sn(c,g){if(1&c&&(e.TgZ(0,"div",14,8),e._UZ(2,"table",15),e.qZA()),2&c){const n=e.oxw();e.Q6J("ngStyle",n.bodyStyleMap),e.xp6(2),e.Q6J("scrollX",n.scrollX)("listOfColWidth",n.listOfColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",n.contentTemplate)}}function rn(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.title)}}function ln(c,g){if(1&c&&(e.ynx(0),e._uU(1),e.BQk()),2&c){const n=e.oxw();e.xp6(1),e.Oqu(n.footer)}}function cn(c,g){}function dn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,cn,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function pn(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",11),2&c){const n=e.oxw();e.Q6J("title",n.nzTitle)}}function hn(c,g){if(1&c&&e._UZ(0,"nz-table-inner-scroll",12),2&c){const n=e.oxw(),l=e.MAs(13),m=e.MAs(3);e.Q6J("data",n.data)("scrollX",n.scrollX)("scrollY",n.scrollY)("contentTemplate",l)("listOfColWidth",n.listOfAutoColWidth)("theadTemplate",n.theadTemplate)("verticalScrollBarWidth",n.verticalScrollBarWidth)("virtualTemplate",n.nzVirtualScrollDirective?n.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",n.nzVirtualItemSize)("virtualMaxBufferPx",n.nzVirtualMaxBufferPx)("virtualMinBufferPx",n.nzVirtualMinBufferPx)("tableMainElement",m)("virtualForTrackBy",n.nzVirtualForTrackBy)}}function ke(c,g){if(1&c&&e._UZ(0,"nz-table-inner-default",13),2&c){const n=e.oxw(),l=e.MAs(13);e.Q6J("tableLayout",n.nzTableLayout)("listOfColWidth",n.listOfManualColWidth)("theadTemplate",n.theadTemplate)("contentTemplate",l)}}function It(c,g){if(1&c&&e._UZ(0,"nz-table-title-footer",14),2&c){const n=e.oxw();e.Q6J("footer",n.nzFooter)}}function un(c,g){}function fn(c,g){if(1&c&&(e.ynx(0),e.YNc(1,un,0,0,"ng-template",10),e.BQk()),2&c){e.oxw();const n=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}function gn(c,g){if(1&c){const n=e.EpF();e.TgZ(0,"nz-pagination",16),e.NdJ("nzPageSizeChange",function(m){return e.CHM(n),e.oxw(2).onPageSizeChange(m)})("nzPageIndexChange",function(m){return e.CHM(n),e.oxw(2).onPageIndexChange(m)}),e.qZA()}if(2&c){const n=e.oxw(2);e.Q6J("hidden",!n.showPagination)("nzShowSizeChanger",n.nzShowSizeChanger)("nzPageSizeOptions",n.nzPageSizeOptions)("nzItemRender",n.nzItemRender)("nzShowQuickJumper",n.nzShowQuickJumper)("nzHideOnSinglePage",n.nzHideOnSinglePage)("nzShowTotal",n.nzShowTotal)("nzSize","small"===n.nzPaginationType?"small":"default"===n.nzSize?"default":"small")("nzPageSize",n.nzPageSize)("nzTotal",n.nzTotal)("nzSimple",n.nzSimple)("nzPageIndex",n.nzPageIndex)}}function mn(c,g){if(1&c&&e.YNc(0,gn,1,12,"nz-pagination",15),2&c){const n=e.oxw();e.Q6J("ngIf",n.nzShowPagination&&n.data.length)}}function _n(c,g){1&c&&e.Hsn(0)}const U=["contentTemplate"];function fe(c,g){1&c&&e.Hsn(0)}function xe(c,g){}function Je(c,g){if(1&c&&(e.ynx(0),e.YNc(1,xe,0,0,"ng-template",2),e.BQk()),2&c){e.oxw();const n=e.MAs(1);e.xp6(1),e.Q6J("ngTemplateOutlet",n)}}let ct=(()=>{class c{constructor(n,l,m,B){this.nzConfigService=n,this.ngZone=l,this.cdr=m,this.destroy$=B,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new e.vpe}onVisibleChange(n){this.nzVisible=n,this.nzVisibleChange.next(n)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Re.R)(this.nzDropdown.nativeElement,"click").pipe((0,C.R)(this.destroy$)).subscribe(n=>{n.stopPropagation()})})}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(y.jY),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(T.kn))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-filter-trigger"]],viewQuery:function(n,l){if(1&n&&e.Gf(D.cm,7,e.SBq),2&n){let m;e.iGM(m=e.CRH())&&(l.nzDropdown=m.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:"nzBackdrop"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],features:[e._Bn([T.kn])],ngContentSelectors:Xe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible","nzVisibleChange"]],template:function(n,l){1&n&&(e.F$t(),e.TgZ(0,"span",0),e.NdJ("nzVisibleChange",function(B){return l.onVisibleChange(B)}),e.Hsn(1),e.qZA()),2&n&&(e.ekj("active",l.nzActive)("ant-table-filter-open",l.nzVisible),e.Q6J("nzBackdrop",l.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",l.nzDropdownMenu)("nzVisible",l.nzVisible))},directives:[D.cm],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBackdrop",void 0),c})(),qe=(()=>{class c{constructor(n,l){this.cdr=n,this.i18n=l,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new e.vpe,this.destroy$=new M.xQ,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}trackByValue(n,l){return l.value}check(n){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(l=>l===n?Object.assign(Object.assign({},l),{checked:!n.checked}):l),n.checked=!n.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(l=>Object.assign(Object.assign({},l),{checked:l===n})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(n){this.isVisible=n,n?this.listOfChecked=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value):this.emitFilterData()}emitFilterData(){const n=this.listOfParsedFilter.filter(l=>l.checked).map(l=>l.value);(0,f.cO)(this.listOfChecked,n)||this.filterChange.emit(this.filterMultiple?n:n.length>0?n[0]:null)}parseListOfFilter(n,l){return n.map(m=>({text:m.text,value:m.value,checked:!l&&!!m.byDefault}))}getCheckedStatus(n){return n.some(l=>l.checked)}ngOnInit(){this.i18n.localeChange.pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(n){const{listOfFilter:l}=n;l&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO),e.Y36(P.wi))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},features:[e.TTD],decls:3,vars:3,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],[3,"nzVisible","nzActive","nzDropdownMenu","nzVisibleChange"],["nz-icon","","nzType","filter","nzTheme","fill"],["filterMenu","nzDropdownMenu"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"disabled","click"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"nzSelected","click"],["nz-radio","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-checkbox","",3,"ngModel","ngModelChange",4,"ngIf"],["nz-radio","",3,"ngModel","ngModelChange"],["nz-checkbox","",3,"ngModel","ngModelChange"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,_t,0,0,"ng-template",1),e.qZA(),e.YNc(2,z,13,8,"ng-container",2)),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.Q6J("ngIf",!l.customFilter)("ngIfElse",l.extraTemplate))},directives:[ct,D.RR,ye.Of,w.Ie,O.ix,h.tP,h.O5,rt.w,L.Ls,V.wO,h.sg,V.r9,b.JJ,b.On,ot.dQ],encapsulation:2,changeDetection:0}),c})(),Gt=(()=>{class c{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(n){const{sortDirections:l}=n;l&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},features:[e.TTD],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up","class","ant-table-column-sorter-up",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-down","class","ant-table-column-sorter-down",3,"active",4,"ngIf"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(n,l){1&n&&(e.TgZ(0,"span",0),e.YNc(1,r,0,0,"ng-template",1),e.qZA(),e.TgZ(2,"span",2),e.TgZ(3,"span",3),e.YNc(4,p,1,2,"i",4),e.YNc(5,R,1,2,"i",5),e.qZA(),e.qZA()),2&n&&(e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate),e.xp6(1),e.ekj("ant-table-column-sorter-full",l.isDown&&l.isUp),e.xp6(2),e.Q6J("ngIf",l.isUp),e.xp6(1),e.Q6J("ngIf",l.isDown))},directives:[h.tP,h.O5,rt.w,L.Ls],encapsulation:2,changeDetection:0}),c})(),Ct=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new M.xQ,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}setAutoLeftWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"left",n)}setAutoRightWidth(n){this.renderer.setStyle(this.elementRef.nativeElement,"right",n)}setIsFirstRight(n){this.setFixClass(n,"ant-table-cell-fix-right-first")}setIsLastLeft(n){this.setFixClass(n,"ant-table-cell-fix-left-last")}setFixClass(n,l){this.renderer.removeClass(this.elementRef.nativeElement,l),n&&this.renderer.addClass(this.elementRef.nativeElement,l)}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const n=l=>"string"==typeof l&&""!==l?l:null;this.setAutoLeftWidth(n(this.nzLeft)),this.setAutoRightWidth(n(this.nzRight)),this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(n,l){2&n&&(e.Udp("position",l.isFixed?"sticky":null),e.ekj("ant-table-cell-fix-right",l.isFixedRight)("ant-table-cell-fix-left",l.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},features:[e.TTD]}),c})(),mt=(()=>{class c{constructor(){this.theadTemplate$=new I.t(1),this.hasFixLeft$=new I.t(1),this.hasFixRight$=new I.t(1),this.hostWidth$=new I.t(1),this.columnCount$=new I.t(1),this.showEmpty$=new I.t(1),this.noResult$=new I.t(1),this.listOfThWidthConfigPx$=new ue.X([]),this.tableWidthConfigPx$=new ue.X([]),this.manualWidthConfigPx$=(0,Me.aj)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length?n:l)),this.listOfAutoWidthPx$=new I.t(1),this.listOfListOfThWidthPx$=(0,Be.T)(this.manualWidthConfigPx$,(0,Me.aj)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,Ae.U)(([n,l])=>n.length===l.length?n.map((m,B)=>"0px"===m?l[B]||null:l[B]||m):l))),this.listOfMeasureColumn$=new I.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,Ae.U)(n=>n.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new I.t(1)}setTheadTemplate(n){this.theadTemplate$.next(n)}setHasFixLeft(n){this.hasFixLeft$.next(n)}setHasFixRight(n){this.hasFixRight$.next(n)}setTableWidthConfig(n){this.tableWidthConfigPx$.next(n)}setListOfTh(n){let l=0;n.forEach(B=>{l+=B.colspan&&+B.colspan||B.colSpan&&+B.colSpan||1});const m=n.map(B=>B.nzWidth);this.columnCount$.next(l),this.listOfThWidthConfigPx$.next(m)}setListOfMeasureColumn(n){const l=[];n.forEach(m=>{const B=m.colspan&&+m.colspan||m.colSpan&&+m.colSpan||1;for(let ee=0;ee`${l}px`))}setShowEmpty(n){this.showEmpty$.next(n)}setNoResult(n){this.noResult$.next(n)}setScroll(n,l){const m=!(!n&&!l);m||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(m)}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Xt=(()=>{class c{constructor(n){this.isInsideTable=!1,this.isInsideTable=!!n}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-cell",l.isInsideTable)}}),c})(),jt=(()=>{class c{constructor(n){this.cdr=n,this.manualClickOrder$=new M.xQ,this.calcOperatorChange$=new M.xQ,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new M.xQ,this.destroy$=new M.xQ,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new e.vpe,this.nzSortOrderChange=new e.vpe,this.nzFilterChange=new e.vpe}getNextSortDirection(n,l){const m=n.indexOf(l);return m===n.length-1?n[0]:n[m+1]}emitNextSortValue(){if(this.nzShowSort){const n=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.setSortOrder(n),this.manualClickOrder$.next(this)}}setSortOrder(n){this.sortOrderChange$.next(n)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(n){this.nzFilterChange.emit(n),this.nzFilterValue=n,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}ngOnInit(){this.sortOrderChange$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.sortOrder!==n&&(this.sortOrder=n,this.nzSortOrderChange.emit(n)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(n){const{nzSortDirections:l,nzFilters:m,nzSortOrder:B,nzSortFn:ee,nzFilterFn:_e,nzSortPriority:ve,nzFilterMultiple:Ie,nzShowSort:$e,nzShowFilter:Te}=n;l&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),B&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),$e&&(this.isNzShowSortChanged=!0),Te&&(this.isNzShowFilterChanged=!0);const dt=Tt=>Tt&&Tt.firstChange&&void 0!==Tt.currentValue;if((dt(B)||dt(ee))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),dt(m)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(m||Ie)&&this.nzShowFilter){const Tt=this.nzFilters.filter(At=>At.byDefault).map(At=>At.value);this.nzFilterValue=this.nzFilterMultiple?Tt:Tt[0]||null}(ee||_e||ve||m)&&this.updateCalcOperator()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.sBO))},c.\u0275cmp=e.Xpm({type:c,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(n,l){1&n&&e.NdJ("click",function(){return l.emitNextSortValue()}),2&n&&e.ekj("ant-table-column-has-sorters",l.nzShowSort)("ant-table-column-sort","descend"===l.sortOrder||"ascend"===l.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:"nzShowSort",nzShowFilter:"nzShowFilter",nzCustomFilter:"nzCustomFilter"},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},features:[e.TTD],attrs:Ne,ngContentSelectors:bt,decls:9,vars:2,consts:[[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange",4,"ngIf","ngIfElse"],["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter","filterChange"],[3,"ngTemplateOutlet"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(n,l){if(1&n&&(e.F$t(Ft),e.YNc(0,We,1,5,"nz-table-filter",0),e.YNc(1,ht,1,1,"ng-template",null,1,e.W1O),e.YNc(3,St,2,0,"ng-template",null,2,e.W1O),e.YNc(5,wt,1,3,"ng-template",null,3,e.W1O),e.YNc(7,Pt,1,0,"ng-template",null,4,e.W1O)),2&n){const m=e.MAs(2);e.Q6J("ngIf",l.nzShowFilter||l.nzCustomFilter)("ngIfElse",m)}},directives:[qe,Gt,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,f.yF)()],c.prototype,"nzShowSort",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzShowFilter",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzCustomFilter",void 0),c})(),ut=(()=>{class c{constructor(n,l){this.renderer=n,this.elementRef=l,this.changes$=new M.xQ,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(n){const{nzWidth:l,colspan:m,rowspan:B,colSpan:ee,rowSpan:_e}=n;if(m||ee){const ve=this.colspan||this.colSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${ve}`)}if(B||_e){const ve=this.rowspan||this.rowSpan;(0,f.kK)(ve)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${ve}`)}(l||m)&&this.changes$.next()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.SBq))},c.\u0275dir=e.lG2({type:c,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},features:[e.TTD]}),c})(),Tn=(()=>{class c{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(n,l){2&n&&(e.Udp("table-layout",l.tableLayout)("width",l.scrollX)("min-width",l.scrollX?"100%":null),e.ekj("ant-table-fixed",l.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},attrs:Rt,ngContentSelectors:Xe,decls:4,vars:3,consts:[[3,"width","minWidth",4,"ngFor","ngForOf"],["class","ant-table-thead",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-table-thead"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Bt,1,4,"col",0),e.YNc(1,Lt,2,1,"thead",1),e.YNc(2,Dt,0,0,"ng-template",2),e.Hsn(3)),2&n&&(e.Q6J("ngForOf",l.listOfColWidth),e.xp6(1),e.Q6J("ngIf",l.theadTemplate),e.xp6(1),e.Q6J("ngTemplateOutlet",l.contentTemplate))},directives:[h.sg,h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),bn=(()=>{class c{constructor(n,l){this.nzTableStyleService=n,this.renderer=l,this.hostWidth$=new ue.X(null),this.enableAutoMeasure$=new ue.X(!1),this.destroy$=new M.xQ}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:n,hostWidth$:l}=this.nzTableStyleService;n.pipe((0,C.R)(this.destroy$)).subscribe(this.enableAutoMeasure$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,C.R)(this.destroy$)).subscribe(n=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${n}`)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt),e.Y36(e.Qsj))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,7),2&n){let m;e.iGM(m=e.CRH())&&(l.tdElement=m.first)}},attrs:Zt,ngContentSelectors:Xe,decls:6,vars:4,consts:[[1,"nz-disable-td","ant-table-cell"],["tdElement",""],["class","ant-table-expanded-row-fixed","style","position: sticky; left: 0px; overflow: hidden;",3,"width",4,"ngIf","ngIfElse"],["contentTemplate",""],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0px","overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"td",0,1),e.YNc(2,Wt,3,5,"div",2),e.ALo(3,"async"),e.qZA(),e.YNc(4,Et,1,0,"ng-template",null,3,e.W1O)),2&n){const m=e.MAs(5);e.xp6(2),e.Q6J("ngIf",e.lcZ(3,2,l.enableAutoMeasure$))("ngIfElse",m)}},directives:[h.O5,h.tP],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),Dn=(()=>{class c{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(n,l){1&n&&(e.TgZ(0,"div",0),e._UZ(1,"table",1),e.qZA()),2&n&&(e.xp6(1),e.Q6J("contentTemplate",l.contentTemplate)("tableLayout",l.tableLayout)("listOfColWidth",l.listOfColWidth)("theadTemplate",l.theadTemplate))},directives:[Tn],encapsulation:2,changeDetection:0}),c})(),Mn=(()=>{class c{constructor(n,l){this.nzResizeObserver=n,this.ngZone=l,this.listOfMeasureColumn=[],this.listOfAutoWidth=new e.vpe,this.destroy$=new M.xQ}trackByFunc(n,l){return l}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Pe.O)(this.listOfTdElement)).pipe((0,De.w)(n=>(0,Me.aj)(n.toArray().map(l=>this.nzResizeObserver.observe(l).pipe((0,Ae.U)(([m])=>{const{width:B}=m.target.getBoundingClientRect();return Math.floor(B)}))))),(0,Ke.b)(16),(0,C.R)(this.destroy$)).subscribe(n=>{this.ngZone.run(()=>{this.listOfAutoWidth.next(n)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(N.D3),e.Y36(e.R0b))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(n,l){if(1&n&&e.Gf(Mt,5),2&n){let m;e.iGM(m=e.CRH())&&(l.listOfTdElement=m)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},attrs:Qt,decls:1,vars:2,consts:[["class","nz-disable-td","style","padding: 0px; border: 0px; height: 0px;",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nz-disable-td",2,"padding","0px","border","0px","height","0px"],["tdElement",""]],template:function(n,l){1&n&&e.YNc(0,Ut,2,0,"td",0),2&n&&e.Q6J("ngForOf",l.listOfMeasureColumn)("ngForTrackBy",l.trackByFunc)},directives:[h.sg],encapsulation:2,changeDetection:0}),c})(),yn=(()=>{class c{constructor(n){if(this.nzTableStyleService=n,this.isInsideTable=!1,this.showEmpty$=new ue.X(!1),this.noResult$=new ue.X(void 0),this.listOfMeasureColumn$=new ue.X([]),this.destroy$=new M.xQ,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:l,noResult$:m,listOfMeasureColumn$:B}=this.nzTableStyleService;m.pipe((0,C.R)(this.destroy$)).subscribe(this.noResult$),B.pipe((0,C.R)(this.destroy$)).subscribe(this.listOfMeasureColumn$),l.pipe((0,C.R)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(n){this.nzTableStyleService.setListOfAutoWidth(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["tbody"]],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-tbody",l.isInsideTable)},ngContentSelectors:Xe,decls:5,vars:6,consts:[[4,"ngIf"],["class","ant-table-placeholder","nz-table-fixed-row","",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth",4,"ngIf"],["nz-table-measure-row","",3,"listOfMeasureColumn","listOfAutoWidth"],["nz-table-fixed-row","",1,"ant-table-placeholder"],["nzComponentName","table",3,"specificContent"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,Nt,2,1,"ng-container",0),e.ALo(1,"async"),e.Hsn(2),e.YNc(3,Vt,3,3,"tr",1),e.ALo(4,"async")),2&n&&(e.Q6J("ngIf",e.lcZ(1,2,l.listOfMeasureColumn$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(4,4,l.showEmpty$)))},directives:[Mn,bn,S.gB,h.O5],pipes:[h.Ov],encapsulation:2,changeDetection:0}),c})(),On=(()=>{class c{constructor(n,l,m,B){this.renderer=n,this.ngZone=l,this.platform=m,this.resizeService=B,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=ee=>ee,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDateVirtualHeight="182px",this.data$=new M.xQ,this.scroll$=new M.xQ,this.destroy$=new M.xQ}setScrollPositionClassName(n=!1){const{scrollWidth:l,scrollLeft:m,clientWidth:B}=this.tableBodyElement.nativeElement,ee="ant-table-ping-left",_e="ant-table-ping-right";l===B&&0!==l||n?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.removeClass(this.tableMainElement,_e)):0===m?(this.renderer.removeClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e)):l===m+B?(this.renderer.removeClass(this.tableMainElement,_e),this.renderer.addClass(this.tableMainElement,ee)):(this.renderer.addClass(this.tableMainElement,ee),this.renderer.addClass(this.tableMainElement,_e))}ngOnChanges(n){const{scrollX:l,scrollY:m,data:B}=n;if(l||m){const ee=0!==this.verticalScrollBarWidth;this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&ee?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.scroll$.next()}B&&this.data$.next()}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const n=this.scroll$.pipe((0,Pe.O)(null),(0,Ue.g)(0),(0,De.w)(()=>(0,Re.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Pe.O)(!0))),(0,C.R)(this.destroy$)),l=this.resizeService.subscribe().pipe((0,C.R)(this.destroy$)),m=this.data$.pipe((0,C.R)(this.destroy$));(0,Be.T)(n,l,m,this.scroll$).pipe((0,Pe.O)(!0),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),n.pipe((0,Ye.h)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(t.t4),e.Y36(T.rI))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-inner-scroll"]],viewQuery:function(n,l){if(1&n&&(e.Gf(Ht,5,e.SBq),e.Gf(Jt,5,e.SBq),e.Gf(o.N7,5,o.N7)),2&n){let m;e.iGM(m=e.CRH())&&(l.tableHeaderElement=m.first),e.iGM(m=e.CRH())&&(l.tableBodyElement=m.first),e.iGM(m=e.CRH())&&(l.cdkVirtualScrollViewport=m.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-table-content",3,"ngStyle",4,"ngIf"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["tableHeaderElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],["class","ant-table-body",3,"ngStyle",4,"ngIf"],[3,"itemSize","maxBufferPx","minBufferPx","height",4,"ngIf"],[1,"ant-table-body",3,"ngStyle"],["tableBodyElement",""],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-table-content",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(n,l){1&n&&(e.YNc(0,an,6,6,"ng-container",0),e.YNc(1,sn,3,5,"div",1)),2&n&&(e.Q6J("ngIf",l.scrollY),e.xp6(1),e.Q6J("ngIf",!l.scrollY))},directives:[Tn,o.N7,yn,h.O5,h.PC,o.xd,o.x0,h.tP],encapsulation:2,changeDetection:0}),c})(),En=(()=>{class c{constructor(n){this.templateRef=n}static ngTemplateContextGuard(n,l){return!0}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.Rgc))},c.\u0275dir=e.lG2({type:c,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"]}),c})(),zn=(()=>{class c{constructor(){this.destroy$=new M.xQ,this.pageIndex$=new ue.X(1),this.frontPagination$=new ue.X(!0),this.pageSize$=new ue.X(10),this.listOfData$=new ue.X([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Ge.x)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Ge.x)()),this.listOfCalcOperator$=new ue.X([]),this.queryParams$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,Ke.b)(0),(0,it.T)(1),(0,Ae.U)(([n,l,m])=>({pageIndex:n,pageSize:l,sort:m.filter(B=>B.sortFn).map(B=>({key:B.key,value:B.sortOrder})),filter:m.filter(B=>B.filterFn).map(B=>({key:B.key,value:B.filterValue}))}))),this.listOfDataAfterCalc$=(0,Me.aj)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,Ae.U)(([n,l])=>{let m=[...n];const B=l.filter(_e=>{const{filterValue:ve,filterFn:Ie}=_e;return!(null==ve||Array.isArray(ve)&&0===ve.length)&&"function"==typeof Ie});for(const _e of B){const{filterFn:ve,filterValue:Ie}=_e;m=m.filter($e=>ve(Ie,$e))}const ee=l.filter(_e=>null!==_e.sortOrder&&"function"==typeof _e.sortFn).sort((_e,ve)=>+ve.sortPriority-+_e.sortPriority);return l.length&&m.sort((_e,ve)=>{for(const Ie of ee){const{sortFn:$e,sortOrder:Te}=Ie;if($e&&Te){const dt=$e(_e,ve,Te);if(0!==dt)return"ascend"===Te?dt:-dt}}return 0}),m})),this.listOfFrontEndCurrentPageData$=(0,Me.aj)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,C.R)(this.destroy$),(0,Ye.h)(n=>{const[l,m,B]=n;return l<=(Math.ceil(B.length/m)||1)}),(0,Ae.U)(([n,l,m])=>m.slice((n-1)*l,n*l))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,De.w)(n=>n?this.listOfDataAfterCalc$:this.listOfData$),(0,Ae.U)(n=>n.length),(0,Ge.x)())}updatePageSize(n){this.pageSize$.next(n)}updateFrontPagination(n){this.frontPagination$.next(n)}updatePageIndex(n){this.pageIndex$.next(n)}updateListOfData(n){this.listOfData$.next(n)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275prov=e.Yz7({token:c,factory:c.\u0275fac}),c})(),Nn=(()=>{class c{constructor(){this.title=null,this.footer=null}}return c.\u0275fac=function(n){return new(n||c)},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(n,l){2&n&&e.ekj("ant-table-title",null!==l.title)("ant-table-footer",null!==l.footer)},inputs:{title:"title",footer:"footer"},decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,l){1&n&&(e.YNc(0,rn,2,1,"ng-container",0),e.YNc(1,ln,2,1,"ng-container",0)),2&n&&(e.Q6J("nzStringTemplateOutlet",l.title),e.xp6(1),e.Q6J("nzStringTemplateOutlet",l.footer))},directives:[E.f],encapsulation:2,changeDetection:0}),c})(),In=(()=>{class c{constructor(n,l,m,B,ee,_e,ve){this.elementRef=n,this.nzResizeObserver=l,this.nzConfigService=m,this.cdr=B,this.nzTableStyleService=ee,this.nzTableDataService=_e,this.directionality=ve,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Ie=>Ie,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new M.xQ,this.templateMode$=new ue.X(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,C.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}onPageSizeChange(n){this.nzTableDataService.updatePageSize(n)}onPageIndexChange(n){this.nzTableDataService.updatePageIndex(n)}ngOnInit(){var n;const{pageIndexDistinct$:l,pageSizeDistinct$:m,listOfCurrentPageData$:B,total$:ee,queryParams$:_e}=this.nzTableDataService,{theadTemplate$:ve,hasFixLeft$:Ie,hasFixRight$:$e}=this.nzTableStyleService;this.dir=this.directionality.value,null===(n=this.directionality.change)||void 0===n||n.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.dir=Te,this.cdr.detectChanges()}),_e.pipe((0,C.R)(this.destroy$)).subscribe(this.nzQueryParams),l.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageIndex&&(this.nzPageIndex=Te,this.nzPageIndexChange.next(Te))}),m.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{Te!==this.nzPageSize&&(this.nzPageSize=Te,this.nzPageSizeChange.next(Te))}),ee.pipe((0,C.R)(this.destroy$),(0,Ye.h)(()=>this.nzFrontPagination)).subscribe(Te=>{Te!==this.nzTotal&&(this.nzTotal=Te,this.cdr.markForCheck())}),B.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.data=Te,this.nzCurrentPageDataChange.next(Te),this.cdr.markForCheck()}),ve.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.theadTemplate=Te,this.cdr.markForCheck()}),Ie.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixLeft=Te,this.cdr.markForCheck()}),$e.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.hasFixRight=Te,this.cdr.markForCheck()}),(0,Me.aj)([ee,this.templateMode$]).pipe((0,Ae.U)(([Te,dt])=>0===Te&&!dt),(0,C.R)(this.destroy$)).subscribe(Te=>{this.nzTableStyleService.setShowEmpty(Te)}),this.verticalScrollBarWidth=(0,f.D8)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfAutoColWidth=Te,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,C.R)(this.destroy$)).subscribe(Te=>{this.listOfManualColWidth=Te,this.cdr.markForCheck()})}ngOnChanges(n){const{nzScroll:l,nzPageIndex:m,nzPageSize:B,nzFrontPagination:ee,nzData:_e,nzWidthConfig:ve,nzNoResult:Ie,nzTemplateMode:$e}=n;m&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),B&&this.nzTableDataService.updatePageSize(this.nzPageSize),_e&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),ee&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),l&&this.setScrollOnChanges(),ve&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),$e&&this.templateMode$.next(this.nzTemplateMode),Ie&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,Ae.U)(([n])=>{const{width:l}=n.target.getBoundingClientRect();return Math.floor(l-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,C.R)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(N.D3),e.Y36(y.jY),e.Y36(e.sBO),e.Y36(mt),e.Y36(zn),e.Y36(i.Is,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["nz-table"]],contentQueries:function(n,l,m){if(1&n&&e.Suo(m,En,5),2&n){let B;e.iGM(B=e.CRH())&&(l.nzVirtualScrollDirective=B.first)}},viewQuery:function(n,l){if(1&n&&e.Gf(On,5),2&n){let m;e.iGM(m=e.CRH())&&(l.nzTableInnerScrollComponent=m.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-wrapper-rtl","rtl"===l.dir)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",nzPaginationType:"nzPaginationType",nzFrontPagination:"nzFrontPagination",nzTemplateMode:"nzTemplateMode",nzShowPagination:"nzShowPagination",nzLoading:"nzLoading",nzOuterBordered:"nzOuterBordered",nzLoadingIndicator:"nzLoadingIndicator",nzBordered:"nzBordered",nzSize:"nzSize",nzShowSizeChanger:"nzShowSizeChanger",nzHideOnSinglePage:"nzHideOnSinglePage",nzShowQuickJumper:"nzShowQuickJumper",nzSimple:"nzSimple"},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange"},exportAs:["nzTable"],features:[e._Bn([mt,zn]),e.TTD],ngContentSelectors:Xe,decls:14,vars:27,consts:[[3,"nzDelay","nzSpinning","nzIndicator"],[4,"ngIf"],[1,"ant-table"],["tableMainElement",""],[3,"title",4,"ngIf"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy",4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"footer",4,"ngIf"],["paginationTemplate",""],["contentTemplate",""],[3,"ngTemplateOutlet"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],["class","ant-table-pagination ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange",4,"ngIf"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex","nzPageSizeChange","nzPageIndexChange"]],template:function(n,l){if(1&n&&(e.F$t(),e.TgZ(0,"nz-spin",0),e.YNc(1,dn,2,1,"ng-container",1),e.TgZ(2,"div",2,3),e.YNc(4,pn,1,1,"nz-table-title-footer",4),e.YNc(5,hn,1,13,"nz-table-inner-scroll",5),e.YNc(6,ke,1,4,"ng-template",null,6,e.W1O),e.YNc(8,It,1,1,"nz-table-title-footer",7),e.qZA(),e.YNc(9,fn,2,1,"ng-container",1),e.qZA(),e.YNc(10,mn,1,1,"ng-template",null,8,e.W1O),e.YNc(12,_n,1,0,"ng-template",null,9,e.W1O)),2&n){const m=e.MAs(7);e.Q6J("nzDelay",l.nzLoadingDelay)("nzSpinning",l.nzLoading)("nzIndicator",l.nzLoadingIndicator),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"top"===l.nzPaginationPosition),e.xp6(1),e.ekj("ant-table-rtl","rtl"===l.dir)("ant-table-fixed-header",l.nzData.length&&l.scrollY)("ant-table-fixed-column",l.scrollX)("ant-table-has-fix-left",l.hasFixLeft)("ant-table-has-fix-right",l.hasFixRight)("ant-table-bordered",l.nzBordered)("nz-table-out-bordered",l.nzOuterBordered&&!l.nzBordered)("ant-table-middle","middle"===l.nzSize)("ant-table-small","small"===l.nzSize),e.xp6(2),e.Q6J("ngIf",l.nzTitle),e.xp6(1),e.Q6J("ngIf",l.scrollY||l.scrollX)("ngIfElse",m),e.xp6(3),e.Q6J("ngIf",l.nzFooter),e.xp6(1),e.Q6J("ngIf","both"===l.nzPaginationPosition||"bottom"===l.nzPaginationPosition)}},directives:[Oe.W,Nn,On,Dn,X,h.O5,h.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,f.yF)()],c.prototype,"nzFrontPagination",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzTemplateMode",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzShowPagination",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzLoading",void 0),(0,F.gn)([(0,f.yF)()],c.prototype,"nzOuterBordered",void 0),(0,F.gn)([(0,y.oS)()],c.prototype,"nzLoadingIndicator",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzBordered",void 0),(0,F.gn)([(0,y.oS)()],c.prototype,"nzSize",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowSizeChanger",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzHideOnSinglePage",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzShowQuickJumper",void 0),(0,F.gn)([(0,y.oS)(),(0,f.yF)()],c.prototype,"nzSimple",void 0),c})(),Sn=(()=>{class c{constructor(n){this.nzTableStyleService=n,this.destroy$=new M.xQ,this.listOfFixedColumns$=new I.t(1),this.listOfColumns$=new I.t(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfFixedColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfFixedColumns$))),(0,C.R)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,Ae.U)(l=>l.filter(m=>!1!==m.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,De.w)(l=>(0,Be.T)(this.listOfColumns$,...l.map(m=>m.changes$)).pipe((0,nt.zg)(()=>this.listOfColumns$))),(0,C.R)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!n}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Pe.O)(this.listOfCellFixedDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Pe.O)(this.listOfNzThDirective),(0,C.R)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsLastLeft(l===n[n.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(n=>{n.forEach(l=>l.setIsFirstRight(l===n[0]))}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,B)=>{if(m.isAutoLeft){const _e=l.slice(0,B).reduce((Ie,$e)=>Ie+($e.colspan||$e.colSpan||1),0),ve=n.slice(0,_e).reduce((Ie,$e)=>Ie+$e,0);m.setAutoLeftWidth(`${ve}px`)}})}),(0,Me.aj)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,C.R)(this.destroy$)).subscribe(([n,l])=>{l.forEach((m,B)=>{const ee=l[l.length-B-1];if(ee.isAutoRight){const ve=l.slice(l.length-B,l.length).reduce(($e,Te)=>$e+(Te.colspan||Te.colSpan||1),0),Ie=n.slice(n.length-ve,n.length).reduce(($e,Te)=>$e+Te,0);ee.setAutoRightWidth(`${Ie}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(mt,8))},c.\u0275dir=e.lG2({type:c,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,ut,4),e.Suo(m,Ct,4)),2&n){let B;e.iGM(B=e.CRH())&&(l.listOfNzThDirective=B),e.iGM(B=e.CRH())&&(l.listOfCellFixedDirective=B)}},hostVars:2,hostBindings:function(n,l){2&n&&e.ekj("ant-table-row",l.isInsideTable)}}),c})(),An=(()=>{class c{constructor(n,l,m,B){this.elementRef=n,this.renderer=l,this.nzTableStyleService=m,this.nzTableDataService=B,this.destroy$=new M.xQ,this.isInsideTable=!1,this.nzSortOrderChange=new e.vpe,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const n=this.listOfNzTrDirective.changes.pipe((0,Pe.O)(this.listOfNzTrDirective),(0,Ae.U)(ee=>ee&&ee.first)),l=n.pipe((0,De.w)(ee=>ee?ee.listOfColumnsChanges$:Le.E),(0,C.R)(this.destroy$));l.subscribe(ee=>this.nzTableStyleService.setListOfTh(ee)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,De.w)(ee=>ee?l:(0,Ze.of)([]))).pipe((0,C.R)(this.destroy$)).subscribe(ee=>this.nzTableStyleService.setListOfMeasureColumn(ee));const m=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedLeftColumnChanges$:Le.E),(0,C.R)(this.destroy$)),B=n.pipe((0,De.w)(ee=>ee?ee.listOfFixedRightColumnChanges$:Le.E),(0,C.R)(this.destroy$));m.subscribe(ee=>{this.nzTableStyleService.setHasFixLeft(0!==ee.length)}),B.subscribe(ee=>{this.nzTableStyleService.setHasFixRight(0!==ee.length)})}if(this.nzTableDataService){const n=this.listOfNzThAddOnComponent.changes.pipe((0,Pe.O)(this.listOfNzThAddOnComponent));n.pipe((0,De.w)(()=>(0,Be.T)(...this.listOfNzThAddOnComponent.map(B=>B.manualClickOrder$))),(0,C.R)(this.destroy$)).subscribe(B=>{this.nzSortOrderChange.emit({key:B.nzColumnKey,value:B.sortOrder}),B.nzSortFn&&!1===B.nzSortPriority&&this.listOfNzThAddOnComponent.filter(_e=>_e!==B).forEach(_e=>_e.clearSortOrder())}),n.pipe((0,De.w)(B=>(0,Be.T)(n,...B.map(ee=>ee.calcOperatorChange$)).pipe((0,nt.zg)(()=>n))),(0,Ae.U)(B=>B.filter(ee=>!!ee.nzSortFn||!!ee.nzFilterFn).map(ee=>{const{nzSortFn:_e,sortOrder:ve,nzFilterFn:Ie,nzFilterValue:$e,nzSortPriority:Te,nzColumnKey:dt}=ee;return{key:dt,sortFn:_e,sortPriority:Te,sortOrder:ve,filterFn:Ie,filterValue:$e}})),(0,Ue.g)(0),(0,C.R)(this.destroy$)).subscribe(B=>{this.nzTableDataService.listOfCalcOperator$.next(B)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return c.\u0275fac=function(n){return new(n||c)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(mt,8),e.Y36(zn,8))},c.\u0275cmp=e.Xpm({type:c,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(n,l,m){if(1&n&&(e.Suo(m,Sn,5),e.Suo(m,jt,5)),2&n){let B;e.iGM(B=e.CRH())&&(l.listOfNzTrDirective=B),e.iGM(B=e.CRH())&&(l.listOfNzThAddOnComponent=B)}},viewQuery:function(n,l){if(1&n&&e.Gf(U,7),2&n){let m;e.iGM(m=e.CRH())&&(l.templateRef=m.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},ngContentSelectors:Xe,decls:3,vars:1,consts:[["contentTemplate",""],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(n,l){1&n&&(e.F$t(),e.YNc(0,fe,1,0,"ng-template",null,0,e.W1O),e.YNc(2,Je,2,1,"ng-container",1)),2&n&&(e.xp6(2),e.Q6J("ngIf",!l.isInsideTable))},directives:[h.O5,h.tP],encapsulation:2,changeDetection:0}),c})(),wn=(()=>{class c{}return c.\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.oAB({type:c}),c.\u0275inj=e.cJS({imports:[[i.vT,V.ip,b.u5,E.T,ye.aF,w.Wr,D.b1,O.sL,h.ez,t.ud,oe,N.y7,Oe.j,P.YI,L.PV,S.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/869.42b1fd9a88732b97.js b/src/blrec/data/webapp/869.42b1fd9a88732b97.js new file mode 100644 index 0000000..adc02f5 --- /dev/null +++ b/src/blrec/data/webapp/869.42b1fd9a88732b97.js @@ -0,0 +1 @@ +(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[869],{5869:(jt,ot,l)=>{"use strict";l.r(ot),l.d(ot,{TasksModule:()=>ga});var u=l(9808),m=l(4182),U=l(5113),t=l(5e3);class h{constructor(o,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),s=i.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",i.setAttribute("aria-hidden","true"),i.value=o,this._document.body.appendChild(i)}copy(){const o=this._textarea;let e=!1;try{if(o){const i=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const o=this._textarea;o&&(o.remove(),this._textarea=void 0)}}let q=(()=>{class n{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),s=i.copy();return i.destroy(),s}beginCopy(e){return new h(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(u.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var P=l(1894),D=l(7484),M=l(647),_=l(655),v=l(8929),y=l(7625),L=l(8693),T=l(1721),b=l(226);function Y(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(s){return t.CHM(e),t.oxw().closeTag(s)}),t.qZA()}}const X=["*"];let st=(()=>{class n{constructor(e,i,s,a){this.cdr=e,this.renderer=i,this.elementRef=s,this.directionality=a,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new v.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,i=new RegExp(`(ant-tag-(?:${[...L.uf,...L.Bh].join("|")}))`,"g"),s=e.classList.toString(),a=[];let c=i.exec(s);for(;null!==c;)a.push(c[1]),c=i.exec(s);e.classList.remove(...a)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,L.o2)(this.nzColor)||(0,L.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:i}=e;i&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,i){1&e&&t.NdJ("click",function(){return i.updateCheckedStatus()}),2&e&&(t.Udp("background-color",i.isPresetColor?"":i.nzColor),t.ekj("ant-tag-has-color",i.nzColor&&!i.isPresetColor)("ant-tag-checkable","checkable"===i.nzMode)("ant-tag-checkable-checked",i.nzChecked)("ant-tag-rtl","rtl"===i.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:X,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,i){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,Y,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===i.nzMode))},directives:[u.O5,M.Ls],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,T.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,m.u5,M.PV]]}),n})();var at=l(6699);const $=["nzType","avatar"];function K(n,o){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function mt(n,o){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function _t(n,o){if(1&n&&t._UZ(0,"li"),2&n){const e=o.index,i=t.oxw(3);t.Udp("width",i.toCSSUnit(i.widthList[e]))}}function ht(n,o){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,_t,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function ft(n,o){if(1&n&&(t.ynx(0),t.YNc(1,K,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,mt,1,2,"h3",3),t.YNc(4,ht,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function zt(n,o){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const Zt=["*"];let ke=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,_.gn)([(0,T.yF)()],n.prototype,"nzBlock",void 0),n})(),ve=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:$,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,i){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===i.nzShape)("ant-skeleton-avatar-circle","circle"===i.nzShape)("ant-skeleton-avatar-lg","large"===i.nzSize)("ant-skeleton-avatar-sm","small"===i.nzSize),t.Q6J("ngStyle",i.styleMap))},directives:[u.PC],encapsulation:2,changeDetection:0}),n})(),ye=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],i.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,T.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,i=!!this.nzParagraph;let s="";return!e&&i?s="38%":e&&i&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,i=!!this.nzTitle,s={};return(!e||!i)&&(s.width="61%"),s.rows=!e&&i?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:i}=this.paragraph;let s=[];return e&&Array.isArray(e)?s=e:e&&!Array.isArray(e)&&(s=[],s[i-1]=e),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:Zt,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(t.F$t(),t.YNc(0,ft,5,3,"ng-container",0),t.YNc(1,zt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",i.nzLoading),t.xp6(1),t.Q6J("ngIf",!i.nzLoading))},directives:[ve,u.O5,ke,u.sg],encapsulation:2,changeDetection:0}),n})(),Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez]]}),n})();var rt=l(404),Ot=l(6462),tt=l(3677),Ct=l(6042),V=l(7957),B=l(4546),et=l(1047),Wt=l(6114),be=l(4832),Se=l(2845),Ae=l(6950),De=l(5664),E=l(969),Me=l(4170);let Ie=(()=>{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,Ct.sL,Se.U8,Me.YI,M.PV,E.T,Ae.e4,be.g,rt.cg,De.rt]]}),n})();var Tt=l(3868),Xt=l(5737),Kt=l(685),te=l(7525),Be=l(8076),S=l(9439);function Je(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Ue(n,o){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Re(n,o){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Le(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ue,2,1,"span",7),t.YNc(2,Re,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Ye(n,o){1&n&&t._UZ(0,"i",15)}function Ge(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function $e(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ge,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ve(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ye,1,0,"ng-template",null,13,t.W1O),t.YNc(3,$e,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),i=t.oxw(2);t.xp6(3),t.Q6J("ngIf",i.nzCloseText)("ngIfElse",e)}}function je(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,Je,2,2,"ng-container",2),t.YNc(2,Le,3,2,"div",3),t.YNc(3,Ve,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let He=(()=>{class n{constructor(e,i,s){this.nzConfigService=e,this.cdr=i,this.directionality=s,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new v.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,y.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:i,nzDescription:s,nzType:a,nzBanner:c}=e;if(i&&(this.isShowIconSet=!0),a)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}s&&(this.iconTheme=this.nzDescription?"outline":"fill"),c&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.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,i){1&e&&t.YNc(0,je,4,23,"div",0),2&e&&t.Q6J("ngIf",!i.closed)},directives:[u.O5,M.Ls,E.f],encapsulation:2,data:{animation:[Be.Rq]},changeDetection:0}),(0,_.gn)([(0,S.oS)(),(0,T.yF)()],n.prototype,"nzCloseable",void 0),(0,_.gn)([(0,S.oS)(),(0,T.yF)()],n.prototype,"nzShowIcon",void 0),(0,_.gn)([(0,T.yF)()],n.prototype,"nzBanner",void 0),(0,_.gn)([(0,T.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),We=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,M.PV,E.T]]}),n})();var lt=l(4147),wt=l(5197);function Xe(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function Ke(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.hij(" ",e(i.nzPercent)," ")}}const tn=function(n){return{$implicit:n}};function en(n,o){if(1&n&&t.YNc(0,Ke,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,tn,e.nzPercent))}}function nn(n,o){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Xe,2,1,"ng-container",6),t.YNc(2,en,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===i.status||"success"===i.status)&&!i.nzFormat)("ngIfElse",e)}}function on(n,o){if(1&n&&t.YNc(0,nn,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function sn(n,o){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function an(n,o){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,sn,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function rn(n,o){}function ln(n,o){if(1&n&&(t.ynx(0),t.YNc(1,an,4,11,"div",11),t.YNc(2,rn,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function cn(n,o){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",o.$implicit)}function un(n,o){}function pn(n,o){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,cn,1,1,"div",19),t.YNc(2,un,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function gn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,ln,3,2,"ng-container",2),t.YNc(2,pn,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function dn(n,o){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=o.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function mn(n,o){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,dn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function _n(n,o){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=o.$implicit,i=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0)}}function hn(n,o){1&n&&t.O4$()}function fn(n,o){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,mn,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,_n,1,5,"path",23),t.qZA(),t.YNc(5,hn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),i=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}const ne=n=>{let o=[];return Object.keys(n).forEach(e=>{const i=n[e],s=function zn(n){return+n.replace("%","")}(e);isNaN(s)||o.push({key:s,value:i})}),o=o.sort((e,i)=>e.key-i.key),o};let xn=0;const ie="progress",kn=new Map([["success","check"],["exception","close"]]),vn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),yn=n=>`${n}%`;let oe=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzConfigService=i,this.directionality=s,this._nzModuleName=ie,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=xn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=a=>`${a}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new v.xQ}get formatter(){return this.nzFormat||yn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:i,nzGapPosition:s,nzStrokeLinecap:a,nzStrokeColor:c,nzGapDegree:p,nzType:d,nzStatus:f,nzPercent:r,nzSuccessPercent:N,nzStrokeWidth:I}=e;f&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(r||N)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,T.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(f||r||N||c)&&this.updateIcon(),c&&this.setStrokeColor(),(s||a||p||d||r||c||c)&&this.getCirclePaths(),(r||i||I)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(ie).pipe((0,y.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=kn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),i="small"===this.nzSize?2:14,s=[];for(let a=0;a{const Q=2===e.length&&0===I;return{stroke:this.isGradient&&!Q?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Q?vn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(N||0)/100*(a-c)}px ${a}px`,strokeDashoffset:`-${c/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,i=this.isGradient=!!e&&"string"!=typeof e;i&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:o="#1890ff",to:e="#1890ff",direction:i="to right"}=n,s=(0,_._T)(n,["from","to","direction"]);return 0!==Object.keys(s).length?`linear-gradient(${i}, ${ne(s).map(({key:c,value:p})=>`${p} ${c}%`).join(", ")})`:`linear-gradient(${i}, ${o}, ${e})`})(e):i&&this.isCircleStyle?this.circleGradient=(n=>ne(this.nzStrokeColor).map(({key:o,value:e})=>({offset:`${o}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(S.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,i){1&e&&(t.YNc(0,on,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,gn,3,2,"div",2),t.YNc(4,fn,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===i.nzType)("ant-progress-small","small"===i.nzSize)("ant-progress-show-info",i.nzShowInfo)("ant-progress-circle",i.isCircleStyle)("ant-progress-steps",i.isSteps)("ant-progress-rtl","rtl"===i.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+i.status),t.xp6(1),t.Q6J("ngIf","line"===i.nzType),t.xp6(1),t.Q6J("ngIf",i.isCircleStyle))},directives:[u.O5,M.Ls,E.f,u.mk,u.tP,u.sg,u.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,S.oS)()],n.prototype,"nzShowInfo",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzStrokeColor",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzPercent",void 0),(0,_.gn)([(0,S.oS)(),(0,T.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,_.gn)([(0,S.oS)(),(0,T.Rn)()],n.prototype,"nzGapDegree",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzGapPosition",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzSteps",void 0),n})(),bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,M.PV,E.T]]}),n})();var J=l(592),se=l(925);let Sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez]]}),n})();const An=function(n){return{$implicit:n}};function Dn(n,o){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,An,e.nzValue))}}function Mn(n,o){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function Zn(n,o){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function On(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Mn,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 wn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function Fn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function Nn(n,o){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,Fn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function Pn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function En(n,o){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,Pn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let In=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,u.dv)(this.locale_id,u.wE.Decimal),i=String(this.nzValue),[s,a]=i.split(e);this.displayInt=s,this.displayDecimal=a?`${e}${a}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,i){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Dn,1,4,"ng-container",1),t.YNc(2,On,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!i.nzValueTemplate))},directives:[u.O5,u.tP],encapsulation:2,changeDetection:0}),n})(),ae=(()=>{class n{constructor(e,i){this.cdr=e,this.directionality=i,this.nzValueStyle={},this.dir="ltr",this.destroy$=new v.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(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,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,Nn,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,En,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===i.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",i.nzTitle),t.xp6(1),t.Q6J("ngStyle",i.nzValueStyle),t.xp6(1),t.Q6J("ngIf",i.nzPrefix),t.xp6(1),t.Q6J("nzValue",i.nzValue)("nzValueTemplate",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",i.nzSuffix))},directives:[In,E.f,u.PC,u.O5],encapsulation:2,changeDetection:0}),n})(),Bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,se.ud,E.T,Sn]]}),n})();var re=l(6787),Jn=l(1059),nt=l(7545),Qn=l(7138),k=l(2994),Un=l(6947),Ft=l(4090);function qn(n,o){1&n&&t.Hsn(0)}const Rn=["*"];function Ln(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function Yn(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ln,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Gn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function $n(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Gn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function Vn(n,o){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,Yn,2,1,"div",4),t.YNc(2,$n,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function jn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Hn(n,o){}function Wn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,jn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Xn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Kn(n,o){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Xn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ti(n,o){}function ei(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Kn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,ti,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function ni(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Wn,7,5,"ng-container",2),t.YNc(2,ei,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function ii(n,o){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,ni,3,2,"ng-container",11),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function oi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ii,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function si(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function ai(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,si,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ri(n,o){}function li(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,ri,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function ci(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,ai,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,li,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ui(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ci,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function pi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function gi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,pi,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function di(n,o){}function mi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,di,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function _i(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,gi,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,mi,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function hi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,_i,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function fi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ui,2,1,"ng-container",2),t.YNc(2,hi,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let Nt=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new v.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,7),2&e){let s;t.iGM(s=t.CRH())&&(i.content=s.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:Rn,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,qn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,_.gn)([(0,T.Rn)()],n.prototype,"nzSpan",void 0),n})();const Ci={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let le=(()=>{class n{constructor(e,i,s,a){this.nzConfigService=e,this.cdr=i,this.breakpointService=s,this.directionality=a,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Ci,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=Ft.G_.md,this.destroy$=new v.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,y.R)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,Jn.O)(this.items),(0,y.R)(this.destroy$));(0,re.T)(e,e.pipe((0,nt.w)(()=>(0,re.T)(...this.items.map(i=>i.inputChange$)).pipe((0,Qn.e)(16)))),this.breakpointService.subscribe(Ft.WV).pipe((0,k.b)(i=>this.breakpoint=i))).pipe((0,y.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],i=0;const s=this.realColumn=this.getColumn(),a=this.items.toArray(),c=a.length,p=[],d=()=>{p.push(e),e=[],i=0};for(let f=0;f=s?(i>s&&(0,Un.ZK)(`"nzColumn" is ${s} but we have row length ${i}`),e.push({title:N,content:I,span:s-(i-Q)}),d()):f===c-1?(e.push({title:N,content:I,span:s-(i-Q)}),d()):e.push({title:N,content:I,span:Q})}this.itemMatrix=p}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(S.jY),t.Y36(t.sBO),t.Y36(Ft.r3),t.Y36(b.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,i,s){if(1&e&&t.Suo(s,Nt,4),2&e){let a;t.iGM(a=t.CRH())&&(i.items=a)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,i){2&e&&t.ekj("ant-descriptions-bordered",i.nzBordered)("ant-descriptions-middle","middle"===i.nzSize)("ant-descriptions-small","small"===i.nzSize)("ant-descriptions-rtl","rtl"===i.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,i){1&e&&(t.YNc(0,Vn,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,oi,2,1,"ng-container",2),t.YNc(5,fi,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",i.nzTitle||i.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===i.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===i.nzLayout))},directives:[u.O5,E.f,u.sg,u.tP],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,T.yF)(),(0,S.oS)()],n.prototype,"nzBordered",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzColumn",void 0),(0,_.gn)([(0,S.oS)()],n.prototype,"nzSize",void 0),(0,_.gn)([(0,S.oS)(),(0,T.yF)()],n.prototype,"nzColon",void 0),n})(),Ti=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[b.vT,u.ez,E.T,se.ud]]}),n})();var A=l(1086),xt=l(8896),kt=l(353),ce=l(6498),ue=l(3489);const pe={leading:!0,trailing:!1};class yi{constructor(o,e,i,s){this.duration=o,this.scheduler=e,this.leading=i,this.trailing=s}call(o,e){return e.subscribe(new bi(o,this.duration,this.scheduler,this.leading,this.trailing))}}class bi extends ue.L{constructor(o,e,i,s,a){super(o),this.duration=e,this.scheduler=i,this.leading=s,this.trailing=a,this._hasTrailingValue=!1,this._trailingValue=null}_next(o){this.throttled?this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Si,this.duration,{subscriber:this})),this.leading?this.destination.next(o):this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const o=this.throttled;o&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),o.unsubscribe(),this.remove(o),this.throttled=null)}}function Si(n){const{subscriber:o}=n;o.clearThrottle()}class Pt{constructor(o){this.changes=o}static of(o){return new Pt(o)}notEmpty(o){if(this.changes[o]){const e=this.changes[o].currentValue;if(null!=e)return(0,A.of)(e)}return xt.E}has(o){return this.changes[o]?(0,A.of)(this.changes[o].currentValue):xt.E}notFirst(o){return this.changes[o]&&!this.changes[o].isFirstChange()?(0,A.of)(this.changes[o].currentValue):xt.E}notFirstAndEmpty(o){if(this.changes[o]&&!this.changes[o].isFirstChange()){const e=this.changes[o].currentValue;if(null!=e)return(0,A.of)(e)}return xt.E}}const ge=new t.OlP("NGX_ECHARTS_CONFIG");let de=(()=>{class n{constructor(e,i,s){this.el=i,this.ngZone=s,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new v.xQ,this.echarts=e.echarts}ngOnChanges(e){const i=Pt.of(e);i.notFirstAndEmpty("options").subscribe(s=>this.onOptionsChange(s)),i.notFirstAndEmpty("merge").subscribe(s=>this.setOption(s)),i.has("loading").subscribe(s=>this.toggleLoading(!!s)),i.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function vi(n,o=kt.P,e=pe){return i=>i.lift(new yi(n,o,e.leading,e.trailing))}(100,kt.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,i){if(this.chart)try{this.chart.setOption(e,i)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){return(0,_.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const i=window.getComputedStyle(e,null).getPropertyValue("height");(!i||"0px"===i)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(e,this.theme,this.initOpts)))}initChart(){return(0,_.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,_.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,nt.w)(i=>new ce.y(s=>(i.on(e,a=>this.ngZone.run(()=>s.next(a))),()=>{this.chart&&(this.chart.isDisposed()||i.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ge),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[t.TTD]}),n})(),Ai=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:ge,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var Di=l(4466),ct=l(2302),Mi=l(4241);function vt(n=0,o=kt.P){return(!(0,Mi.k)(n)||n<0)&&(n=0),(!o||"function"!=typeof o.schedule)&&(o=kt.P),new ce.y(e=>(e.add(o.schedule(Zi,n,{subscriber:e,counter:0,period:n})),e))}function Zi(n){const{subscriber:o,counter:e,period:i}=n;o.next(e),this.schedule({subscriber:o,counter:e+1,period:i},i)}var Oi=l(3009),wi=l(6688),yt=l(5430),Et=l(1177);function It(...n){const o=n[n.length-1];return"function"==typeof o&&n.pop(),(0,Oi.n)(n,void 0).lift(new Fi(o))}class Fi{constructor(o){this.resultSelector=o}call(o,e){return e.subscribe(new Ni(o,this.resultSelector))}}class Ni extends ue.L{constructor(o,e,i=Object.create(null)){super(o),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(o){const e=this.iterators;(0,wi.k)(o)?e.push(new Ei(o)):e.push("function"==typeof o[yt.hZ]?new Pi(o[yt.hZ]()):new Ii(this.destination,this,o))}_complete(){const o=this.iterators,e=o.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class Ii extends Et.Ds{constructor(o,e,i){super(o),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[yt.hZ](){return this}next(){const o=this.buffer;return 0===o.length&&this.isComplete?{value:null,done:!0}:{value:o.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(o){this.buffer.push(o),this.parent.checkIterators()}subscribe(){return(0,Et.ft)(this.observable,new Et.IY(this))}}var Bt=l(534),it=l(7221),bt=l(7106),Jt=l(5278),Bi=l(2340),Z=(()=>{return(n=Z||(Z={})).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",Z;var n})(),O=(()=>{return(n=O||(O={})).STOPPED="stopped",n.WAITING="waiting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",O;var n})(),ut=(()=>{return(n=ut||(ut={})).WAITING="waiting",n.REMUXING="remuxing",n.INJECTING="injecting",ut;var n})(),x=(()=>{return(n=x||(x={})).RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",n.COMPLETED="completed",n.MISSING="missing",n.BROKEN="broken",x;var n})(),Ji=l(520);const C=Bi.N.apiUrl;let St=(()=>{class n{constructor(e){this.http=e}getAllTaskData(e=Z.ALL){return this.http.get(C+"/api/v1/tasks/data",{params:{select:e}})}getTaskData(e){return this.http.get(C+`/api/v1/tasks/${e}/data`)}getVideoFileDetails(e){return this.http.get(C+`/api/v1/tasks/${e}/videos`)}getDanmakuFileDetails(e){return this.http.get(C+`/api/v1/tasks/${e}/danmakus`)}getTaskParam(e){return this.http.get(C+`/api/v1/tasks/${e}/param`)}getMetadata(e){return this.http.get(C+`/api/v1/tasks/${e}/metadata`)}getStreamProfile(e){return this.http.get(C+`/api/v1/tasks/${e}/profile`)}updateAllTaskInfos(){return this.http.post(C+"/api/v1/tasks/info",null)}updateTaskInfo(e){return this.http.post(C+`/api/v1/tasks/${e}/info`,null)}addTask(e){return this.http.post(C+`/api/v1/tasks/${e}`,null)}removeTask(e){return this.http.delete(C+`/api/v1/tasks/${e}`)}removeAllTasks(){return this.http.delete(C+"/api/v1/tasks")}startTask(e){return this.http.post(C+`/api/v1/tasks/${e}/start`,null)}startAllTasks(){return this.http.post(C+"/api/v1/tasks/start",null)}stopTask(e,i=!1,s=!1){return this.http.post(C+`/api/v1/tasks/${e}/stop`,{force:i,background:s})}stopAllTasks(e=!1,i=!1){return this.http.post(C+"/api/v1/tasks/stop",{force:e,background:i})}enableTaskMonitor(e){return this.http.post(C+`/api/v1/tasks/${e}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(C+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(e,i=!1){return this.http.post(C+`/api/v1/tasks/${e}/monitor/disable`,{background:i})}disableAllMonitors(e=!1){return this.http.post(C+"/api/v1/tasks/monitor/disable",{background:e})}enableTaskRecorder(e){return this.http.post(C+`/api/v1/tasks/${e}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(C+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(e,i=!1,s=!1){return this.http.post(C+`/api/v1/tasks/${e}/recorder/disable`,{force:i,background:s})}disableAllRecorders(e=!1,i=!1){return this.http.post(C+"/api/v1/tasks/recorder/disable",{force:e,background:i})}cutStream(e){return this.http.post(C+`/api/v1/tasks/${e}/cut`,null)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ji.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Qi=l(7512),Ui=l(5545);let qi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.userInfo.name),t.xp6(2),t.Oqu(i.userInfo.gender),t.xp6(2),t.Oqu(i.userInfo.uid),t.xp6(2),t.Oqu(i.userInfo.level),t.xp6(2),t.hij(" ",i.userInfo.sign," "))},directives:[D.bd,le,Nt],styles:[""],changeDetection:0}),n})();function Ri(n,o){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Li(n,o){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Yi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Gi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function $i(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function Vi(n,o){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e," ")}}function ji(n,o){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e)}}let Hi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Ri,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Li,2,0,"ng-container",10),t.YNc(14,Yi,2,0,"ng-container",10),t.YNc(15,Gi,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,$i,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,Vi,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,ji,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.roomInfo.title),t.xp6(2),t.AsE(" ",i.roomInfo.parent_area_name," - ",i.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",i.roomInfo.short_room_id),t.xp6(2),t.hij(" ",i.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",i.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==i.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.description.split("\n")))},directives:[D.bd,le,Nt,u.O5,u.RF,u.n9,u.sg,st],pipes:[u.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var j=l(2134);let me=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const i=Math.floor(e/3600),s=Math.floor(e/60%60),a=Math.floor(e%60);let c="";return i>0&&(c+=i+":"),c+=s<10?"0"+s:s,c+=":",c+=a<10?"0"+a:a,c}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})(),At=(()=>{class n{transform(e,i){if("string"==typeof e)e=parseFloat(e);else if("number"!=typeof e||isNaN(e))return"N/A";return(i=Object.assign({bitrate:!1,precision:3,spacer:" "},i)).bitrate?(0,j.AX)(e,i.spacer,i.precision):(0,j.N4)(e,i.spacer,i.precision)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"datarate",type:n,pure:!0}),n})();var Wi=l(855);let Dt=(()=>{class n{transform(e,i){return Wi(e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();const Xi={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};let Qt=(()=>{class n{transform(e){return Xi[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"quality",type:n,pure:!0}),n})();function Ki(n,o){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function to(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const eo=function(){return{spacer:" "}};function no(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,eo)))}}function io(n,o){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_quality_number?t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")":"")}}let oo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.N4)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:i=>(0,j.N4)(i)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Ki,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,to,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,no,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,io,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",p),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,i.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[D.bd,ae,de],pipes:[me,At,Dt,Qt,u.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function so(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function ao(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const ro=function(){return{bitrate:!0}};function lo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,ro)))}}const co=function(){return{spacer:" "}};function uo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,co)))}}let po=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.AX)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(i){return(0,j.AX)(i)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,so,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,ao,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,lo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,uo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",p),t.xp6(3),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[D.bd,ae,de],pipes:[At,Dt],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),Ut=(()=>{class n{transform(e){var i,s;return e?e.startsWith("/")?null!==(i=e.split("/").pop())&&void 0!==i?i:"":null!==(s=e.split("\\").pop())&&void 0!==s?s:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),_e=(()=>{class n{transform(e){return e&&0!==e.duration?Math.round(e.time/e.duration*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),go=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case ut.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case ut.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let s;t.Q6J("nzTitle",i.title)("nzLoading",i.loading),t.xp6(1),t.Q6J("title",i.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(s=i.taskStatus.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzPercent",null===i.taskStatus.postprocessing_progress?0:t.lcZ(5,7,i.taskStatus.postprocessing_progress))}},directives:[D.bd,oe],pipes:[Ut,_e],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const mo=new Map([[x.RECORDING,"\u5f55\u5236\u4e2d"],[x.INJECTING,"\u5904\u7406\u4e2d"],[x.REMUXING,"\u5904\u7406\u4e2d"],[x.COMPLETED,"\u5df2\u5b8c\u6210"],[x.MISSING,"\u4e0d\u5b58\u5728"],[x.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let _o=(()=>{class n{transform(e){var i;return null!==(i=mo.get(e))&&void 0!==i?i:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function ho(n,o){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function fo(n,o){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const he=[x.RECORDING,x.INJECTING,x.REMUXING,x.COMPLETED,x.MISSING];let zo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=x,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,i)=>e.path.localeCompare(i.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,i)=>{switch(e){case"video":return i.path.endsWith(".flv")||i.path.endsWith(".mp4");case"danmaku":return i.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,i)=>e.size-i.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,i)=>he.indexOf(e.status)-he.indexOf(i.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[x.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[x.INJECTING,x.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[x.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[x.MISSING]}],filterFn:(e,i)=>e.some(s=>s.some(a=>a===i.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,i){return i.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,ho,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,fo,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(2);t.Q6J("nzLoading",i.loading),t.xp6(1),t.Q6J("nzLoading",i.loading)("nzData",i.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",i.columns),t.xp6(2),t.Q6J("ngForOf",s.data)("ngForTrackBy",i.trackByPath)}},directives:[D.bd,J.N8,J.Om,J.$Z,u.sg,J.Uo,J._C,J.qD,J.p0],pipes:[Ut,u.JJ,Dt,_o],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function Co(n,o){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function To(n,o){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function xo(n,o){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ko(n,o){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function vo(n,o){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function yo(n,o){if(1&n&&(t.YNc(0,Co,1,2,"app-task-user-info-detail",2),t.YNc(1,To,1,2,"app-task-room-info-detail",3),t.YNc(2,xo,1,2,"app-task-recording-detail",4),t.YNc(3,ko,1,2,"app-task-network-detail",4),t.YNc(4,vo,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const bo=function(){return{"max-width":"unset"}},So=function(){return{"row-gap":"1em"}};let Ao=(()=>{class n{constructor(e,i,s,a,c){this.route=e,this.router=i,this.changeDetector=s,this.notification=a,this.taskService=c,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,A.of)((0,A.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>It(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(([e,i,s])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=i,this.danmakuFileDetails=s,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.gz),t.Y36(ct.F0),t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,yo,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",i.loading)("pageStyles",t.DdM(3,bo))("contentStyles",t.DdM(4,So))},directives:[Qi.q,Ui.Y,u.O5,qi,Hi,oo,po,go,zo],styles:[""],changeDetection:0}),n})();var fe=l(2323),Do=l(13),Mo=l(5778),H=l(4850);const pt=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var qt=l(9727);let Rt=(()=>{class n{constructor(e,i){this.message=e,this.taskService=i}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,H.U)(e=>e.map(i=>i.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,k.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},i=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${i.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,k.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,H.U)(i=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,it.K)(i=>{let s;return s=409==i.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==i.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==i.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${i.message}`},(0,A.of)(s)}),(0,H.U)(i=>(i.message=`${e}: ${i.message}`,i)),(0,k.b)(i=>{this.message[i.type](i.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,k.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},i=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,k.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}startTask(e){const i=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},s=>{this.message.remove(i),this.message.error(`[${e}] \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,k.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}stopTask(e,i=!1){const s=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,i).pipe((0,k.b)(()=>{this.message.remove(s),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},a=>{this.message.remove(s),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}stopAllTasks(e=!1){const i=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},s=>{this.message.remove(i),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}enableRecorder(e){const i=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},s=>{this.message.remove(i),this.message.error(`[${e}] \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,k.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},i=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${i.message}`)}))}disableRecorder(e,i=!1){const s=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,i).pipe((0,k.b)(()=>{this.message.remove(s),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},a=>{this.message.remove(s),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}disableAllRecorders(e=!1){const i=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,k.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},s=>{this.message.remove(i),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,k.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},i=>{403==i.status?this.message.warning(`[${e}] \u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002`):this.message.error(`[${e}] \u5207\u5272\u6587\u4ef6\u51fa\u9519: ${i.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(qt.dD),t.LFG(St))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Lt=l(2683),gt=l(4219);function Zo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function Oo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function wo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),i=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function Fo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function No(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.YNc(1,Fo,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function Po(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function Eo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const s=t.MAs(2),a=t.oxw();return s.value="",a.onFilterInput("")}),t.qZA()}}function Io(n,o){if(1&n&&t.YNc(0,Eo,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function Bo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const s=t.MAs(2);return t.oxw().onFilterInput(s.value)}),t.qZA(),t.qZA(),t.YNc(3,Io,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Jo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function Qo(n,o){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function qo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function Ro(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),i=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",i)}}function Lo(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Yo=function(){return{padding:"0"}};function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().drawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,Ro,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Lo,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),i=t.MAs(23);t.Q6J("nzTitle",i)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,Yo))("nzVisible",e.menuDrawerVisible)}}function $o(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Vo=(()=>{class n{constructor(e,i,s,a,c,p){this.message=s,this.modal=a,this.clipboard=c,this.taskManager=p,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new v.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new v.xQ,this.selections=[{label:"\u5168\u90e8",value:Z.ALL},{label:"\u5f55\u5236\u4e2d",value:Z.RECORDING},{label:"\u5f55\u5236\u5f00",value:Z.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:Z.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:Z.MONITOR_ENABLED},{label:"\u505c\u6b62",value:Z.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:Z.LIVING},{label:"\u8f6e\u64ad",value:Z.ROUNDING},{label:"\u95f2\u7f6e",value:Z.PREPARING}],i.observe(pt).pipe((0,y.R)(this.destroyed)).subscribe(d=>{this.useDrawer=d.breakpoints[pt[0]],this.useSelector=d.breakpoints[pt[1]],this.useRadioGroup=d.breakpoints[pt[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,Do.b)(300),(0,Mo.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,i)=>{this.taskManager.removeAllTasks().subscribe(e,i)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopAllTasks(e).subscribe(i,s)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableAllRecorders(e).subscribe(i,s)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,H.U)(e=>e.join(" ")),(0,k.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(U.Yg),t.Y36(qt.dD),t.Y36(V.Sf),t.Y36(q),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,Zo,8,4,"ng-container",1),t.YNc(2,Oo,8,4,"ng-container",1),t.YNc(3,wo,3,2,"ng-container",1),t.qZA(),t.YNc(4,No,2,2,"ng-template",null,2,t.W1O),t.YNc(6,Po,1,2,"ng-template",null,3,t.W1O),t.YNc(8,Bo,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Jo,4,3,"ng-template",null,5,t.W1O),t.YNc(12,Qo,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Uo,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,qo,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Go,4,7,"nz-drawer",11),t.YNc(22,$o,3,0,"ng-template",null,12,t.W1O)),2&e){const s=t.MAs(18);t.ekj("use-drawer",i.useDrawer),t.xp6(1),t.Q6J("ngIf",i.useRadioGroup),t.xp6(1),t.Q6J("ngIf",i.useSelector),t.xp6(1),t.Q6J("ngIf",i.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",s),t.xp6(5),t.Q6J("ngIf",i.useDrawer)}},directives:[u.O5,u.tP,Xt.g,Tt.Dg,m.JJ,m.On,u.sg,Tt.Of,Tt.Bq,wt.Vq,Lt.w,et.gB,et.ke,et.Zp,M.Ls,Ct.ix,tt.wA,tt.cm,tt.RR,gt.wO,gt.r9,gt.YV,lt.Vz,lt.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var jo=l(5136);let Ho=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var i;const s=this.storage.getData(this.getStorageKey(e));return s&&null!==(i=JSON.parse(s))&&void 0!==i?i:{}}updateSettings(e,i){i=Object.assign(this.getSettings(e),i);const s=JSON.stringify(i);this.storage.setData(this.getStorageKey(e),s)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(fe.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n{constructor(e){this.changeDetector=e,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let i=0;i<=this.width;i+=2)this.data.push(0),this.points.push({x:i,y:this.height})}get polylinePoints(){return this.points.map(e=>`${e.x},${e.y}`).join(" ")}ngOnInit(){this.subscription=vt(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let e=Math.max(...this.data);this.points=this.data.map((i,s)=>({x:Math.min(2*s,this.width),y:(1-i/(e||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(e,i){1&e&&(t.O4$(),t.TgZ(0,"svg"),t._UZ(1,"polyline",0),t.qZA()),2&e&&(t.uIk("width",i.width)("height",i.height),t.xp6(1),t.uIk("stroke",i.stroke)("points",i.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),n})();function Xo(n,o){1&n&&(t.ynx(0),t._uU(1,", bluray"),t.BQk())}function Ko(n,o){if(1&n&&(t.TgZ(0,"li",4),t.TgZ(1,"span",5),t._uU(2,"\u6d41\u7f16\u7801\u5668"),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder)}}const Yt=function(){return{bitrate:!0}};function ts(n,o){if(1&n&&(t.TgZ(0,"ul",3),t.TgZ(1,"li",4),t.TgZ(2,"span",5),t._uU(3,"\u89c6\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(4,"span",6),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA(),t.TgZ(9,"span"),t._uU(10),t.qZA(),t.TgZ(11,"span"),t._uU(12),t.ALo(13,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",4),t.TgZ(15,"span",5),t._uU(16,"\u97f3\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(17,"span",6),t.TgZ(18,"span"),t._uU(19),t.qZA(),t.TgZ(20,"span"),t._uU(21),t.qZA(),t.TgZ(22,"span"),t._uU(23),t.qZA(),t.TgZ(24,"span"),t._uU(25),t.ALo(26,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(27,"li",4),t.TgZ(28,"span",5),t._uU(29,"\u683c\u5f0f\u753b\u8d28"),t.qZA(),t.TgZ(30,"span",6),t.TgZ(31,"span"),t._uU(32),t.qZA(),t.TgZ(33,"span"),t._uU(34),t.ALo(35,"quality"),t.YNc(36,Xo,2,0,"ng-container",7),t._uU(37,") "),t.qZA(),t.qZA(),t.qZA(),t.YNc(38,Ko,5,1,"li",8),t.TgZ(39,"li",4),t.TgZ(40,"span",5),t._uU(41,"\u6d41\u4e3b\u673a\u540d"),t.qZA(),t.TgZ(42,"span",6),t._uU(43),t.qZA(),t.qZA(),t.TgZ(44,"li",4),t.TgZ(45,"span",5),t._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),t.qZA(),t._UZ(47,"app-wave-graph",9),t.TgZ(48,"span",6),t._uU(49),t.ALo(50,"datarate"),t.qZA(),t.qZA(),t.TgZ(51,"li",4),t.TgZ(52,"span",5),t._uU(53,"\u5f55\u5236\u901f\u5ea6"),t.qZA(),t._UZ(54,"app-wave-graph",9),t.TgZ(55,"span",6),t._uU(56),t.ALo(57,"datarate"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();let i;t.xp6(6),t.hij(" ",null==e.profile.streams[0]?null:e.profile.streams[0].codec_name," "),t.xp6(2),t.AsE(" ",null==e.profile.streams[0]?null:e.profile.streams[0].width,"x",null==e.profile.streams[0]?null:e.profile.streams[0].height," "),t.xp6(2),t.hij(" ",(null==e.profile.streams[0]?null:e.profile.streams[0].r_frame_rate).split("/")[0]," fps"),t.xp6(2),t.hij(" ",t.xi3(13,19,1e3*e.metadata.videodatarate,t.DdM(32,Yt))," "),t.xp6(7),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].codec_name," "),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].sample_rate," HZ"),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].channel_layout," "),t.xp6(2),t.hij(" ",t.xi3(26,22,1e3*e.metadata.audiodatarate,t.DdM(33,Yt))," "),t.xp6(7),t.hij(" ",e.data.task_status.real_stream_format?e.data.task_status.real_stream_format:"N/A"," "),t.xp6(2),t.AsE(" ",e.data.task_status.real_quality_number?t.lcZ(35,25,e.data.task_status.real_quality_number):"N/A"," (",null!==(i=e.data.task_status.real_quality_number)&&void 0!==i?i:"N/A",""),t.xp6(2),t.Q6J("ngIf",e.isBlurayStreamQuality()),t.xp6(2),t.Q6J("ngIf",null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder),t.xp6(5),t.hij(" ",e.data.task_status.stream_host," "),t.xp6(4),t.Q6J("value",e.data.task_status.dl_rate),t.xp6(2),t.hij(" ",t.xi3(50,27,8*e.data.task_status.dl_rate,t.DdM(34,Yt))," "),t.xp6(5),t.Q6J("value",e.data.task_status.rec_rate),t.xp6(2),t.hij(" ",t.lcZ(57,30,e.data.task_status.rec_rate)," ")}}let es=(()=>{class n{constructor(e,i,s){this.changeDetector=e,this.notification=i,this.taskService=s,this.metadata=null,this.close=new t.vpe,this.RunningStatus=O}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(e){e.preventDefault(),e.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,A.of)((0,A.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>It(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(3,1e3)).subscribe(([e,i])=>{this.profile=e,this.metadata=i,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"button",1),t.NdJ("click",function(a){return i.closePanel(a)}),t._uU(2," [x] "),t.qZA(),t.YNc(3,ts,58,35,"ul",2),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.data.task_status.running_status===i.RunningStatus.RECORDING&&i.profile&&i.profile.streams&&i.profile.format&&i.metadata))},directives:[u.O5,Wo],pipes:[At,Qt],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),n})();const ze=function(){return{spacer:""}};function ns(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,ze))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ze))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",e.status.real_quality_number?t.lcZ(19,20,e.status.real_quality_number):""," ")}}function is(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function os(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let ss=(()=>{class n{constructor(){this.RunningStatus=O}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,i){1&e&&(t.ynx(0,0),t.YNc(1,ns,20,24,"div",1),t.YNc(2,is,7,13,"div",1),t.YNc(3,os,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",i.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.REMUXING))},directives:[u.RF,u.n9,rt.SY,oe],pipes:[me,At,Dt,u.JJ,Qt,Ut,_e],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var F=l(3523),w=l(8737);function as(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function rs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ls(n,o){if(1&n&&(t.YNc(0,as,2,0,"ng-container",66),t.YNc(1,rs,2,0,"ng-container",66)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function cs(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f "),t._UZ(2,"br"),t._uU(3," FLV: \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e\u6216\u5f55\u5236\u5230\u4e8c\u538b\u753b\u8d28 "),t._UZ(4,"br"),t._uU(5," HLS (fmp4): \u57fa\u672c\u4e0d\u53d7\u7f51\u7edc\u6ce2\u52a8\u5f71\u54cd\uff0c\u4f46\u53ea\u6709\u90e8\u5206\u76f4\u64ad\u95f4\u652f\u6301\u3002 "),t._UZ(6,"br"),t._uU(7," P.S. "),t._UZ(8,"br"),t._uU(9," \u5f55\u5236 HLS \u6d41\u9700\u8981 ffmpeg "),t._UZ(10,"br"),t._uU(11," \u5728\u8bbe\u5b9a\u65f6\u95f4\u5185\u6ca1\u6709 fmp4 \u6d41\u4f1a\u81ea\u52a8\u5207\u6362\u5f55\u5236 flv \u6d41 "),t._UZ(12,"br"),t._uU(13," WEB \u7aef\u76f4\u64ad\u64ad\u653e\u5668\u662f Hls7Player \u7684\u76f4\u64ad\u95f4\u652f\u6301\u5f55\u5236 fmp4 \u6d41, fMp4Player \u5219\u4e0d\u652f\u6301\u3002 "),t.qZA())}function us(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u5982\u679c\u8d85\u8fc7\u6240\u8bbe\u7f6e\u7684\u7b49\u5f85\u65f6\u95f4 fmp4 \u6d41\u8fd8\u6ca1\u6709\u5c31\u5207\u6362\u4e3a\u5f55\u5236 flv \u6d41 "),t._UZ(2,"br"),t._uU(3," fmp4 \u6d41\u5728\u521a\u63a8\u6d41\u662f\u6ca1\u6709\u7684\uff0c\u8981\u8fc7\u4e00\u4f1a\u624d\u6709\u3002 "),t._UZ(4,"br"),t._uU(5," fmp4 \u6d41\u51fa\u73b0\u7684\u65f6\u95f4\u548c\u76f4\u64ad\u5ef6\u8fdf\u6709\u5173\uff0c\u4e00\u822c\u90fd\u5728 10 \u79d2\u5185\uff0c\u4f46\u4e5f\u6709\u5ef6\u8fdf\u6bd4\u8f83\u5927\u8d85\u8fc7 1 \u5206\u949f\u7684\u3002 "),t._UZ(6,"br"),t._uU(7," \u63a8\u8350\u5168\u5c40\u8bbe\u7f6e\u4e3a 10 \u79d2\uff0c\u4e2a\u522b\u5ef6\u8fdf\u6bd4\u8f83\u5927\u7684\u76f4\u64ad\u95f4\u5355\u72ec\u8bbe\u7f6e\u3002 "),t.qZA())}function ps(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9ed8\u8ba4: \u6bcf\u4e2a\u5206\u5272\u7684\u5f55\u64ad\u6587\u4ef6\u5bf9\u5e94\u4fdd\u5b58\u4e00\u4e2a\u5c01\u9762\u6587\u4ef6\uff0c\u4e0d\u7ba1\u5c01\u9762\u662f\u5426\u76f8\u540c\u3002"),t._UZ(2,"br"),t._uU(3," \u53bb\u91cd: \u76f8\u540c\u7684\u5c01\u9762\u53ea\u4fdd\u5b58\u4e00\u6b21"),t._UZ(4,"br"),t._uU(5," P.S. "),t._UZ(6,"br"),t._uU(7," \u5224\u65ad\u662f\u5426\u76f8\u540c\u662f\u4f9d\u636e\u5c01\u9762\u6570\u636e\u7684 sha1\uff0c\u53ea\u5728\u5355\u6b21\u5f55\u5236\u5185\u6709\u6548\u3002 "),t.qZA())}function gs(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function ds(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function ms(n,o){1&n&&t.YNc(0,ds,2,0,"ng-container",66),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function _s(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.pathTemplate=s}),t.qZA(),t.YNc(10,ls,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.pathTemplate=s?a.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",10),t.TgZ(15,"nz-form-label",11),t._uU(16,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(17,"nz-form-control",12),t.TgZ(18,"nz-select",13),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.filesizeLimit=s}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.filesizeLimit=s?a.globalSettings.output.filesizeLimit:null}),t._uU(20,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",10),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(24,"nz-form-control",12),t.TgZ(25,"nz-select",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.durationLimit=s}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.durationLimit=s?a.globalSettings.output.durationLimit:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",15),t.TgZ(29,"h2"),t._uU(30,"\u5f55\u5236"),t.qZA(),t.TgZ(31,"nz-form-item",10),t.TgZ(32,"nz-form-label",11),t._uU(33,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(34,cs,14,0,"ng-template",null,16,t.W1O),t.TgZ(36,"nz-form-control",12),t.TgZ(37,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.streamFormat=s}),t.qZA(),t.qZA(),t.TgZ(38,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.streamFormat=s?a.globalSettings.recorder.streamFormat:null}),t._uU(39,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",10),t.TgZ(41,"nz-form-label",11),t._uU(42,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(43,us,8,0,"ng-template",null,18,t.W1O),t.TgZ(45,"nz-form-control",12),t.TgZ(46,"nz-select",19,20),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.fmp4StreamTimeout=s}),t.qZA(),t.qZA(),t.TgZ(48,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.fmp4StreamTimeout=s?a.globalSettings.recorder.fmp4StreamTimeout:null}),t._uU(49,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(50,"nz-form-item",10),t.TgZ(51,"nz-form-label",21),t._uU(52,"\u753b\u8d28"),t.qZA(),t.TgZ(53,"nz-form-control",12),t.TgZ(54,"nz-select",22),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.qualityNumber=s}),t.qZA(),t.qZA(),t.TgZ(55,"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(56,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(57,"nz-form-item",10),t.TgZ(58,"nz-form-label",23),t._uU(59,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(60,"nz-form-control",24),t.TgZ(61,"nz-switch",25),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.saveCover=s}),t.qZA(),t.qZA(),t.TgZ(62,"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(63,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(64,"nz-form-item",10),t.TgZ(65,"nz-form-label",11),t._uU(66,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(67,ps,8,0,"ng-template",null,26,t.W1O),t.TgZ(69,"nz-form-control",12),t.TgZ(70,"nz-select",27),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=s}),t.qZA(),t.qZA(),t.TgZ(71,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.coverSaveStrategy=s?a.globalSettings.recorder.coverSaveStrategy:null}),t._uU(72,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(73,"nz-form-item",10),t.TgZ(74,"nz-form-label",28),t._uU(75,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(76,"nz-form-control",29),t.TgZ(77,"nz-select",30,31),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.readTimeout=s}),t.qZA(),t.qZA(),t.TgZ(79,"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(80,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(81,"nz-form-item",10),t.TgZ(82,"nz-form-label",32),t._uU(83,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(84,"nz-form-control",12),t.TgZ(85,"nz-select",33),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=s}),t.qZA(),t.qZA(),t.TgZ(86,"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(87,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(88,"nz-form-item",10),t.TgZ(89,"nz-form-label",34),t._uU(90,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(91,"nz-form-control",12),t.TgZ(92,"nz-select",35),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.bufferSize=s}),t.qZA(),t.qZA(),t.TgZ(93,"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(94,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(95,"div",36),t.TgZ(96,"h2"),t._uU(97,"\u5f39\u5e55"),t.qZA(),t.TgZ(98,"nz-form-item",10),t.TgZ(99,"nz-form-label",37),t._uU(100,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(101,"nz-form-control",24),t.TgZ(102,"nz-switch",38),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=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.recordGiftSend=s?a.globalSettings.danmaku.recordGiftSend: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",39),t._uU(107,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(108,"nz-form-control",24),t.TgZ(109,"nz-switch",40),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=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.recordFreeGifts=s?a.globalSettings.danmaku.recordFreeGifts:null}),t._uU(111,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(112,"nz-form-item",10),t.TgZ(113,"nz-form-label",41),t._uU(114,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(115,"nz-form-control",24),t.TgZ(116,"nz-switch",42),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=s}),t.qZA(),t.qZA(),t.TgZ(117,"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(118,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(119,"nz-form-item",10),t.TgZ(120,"nz-form-label",43),t._uU(121,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(122,"nz-form-control",24),t.TgZ(123,"nz-switch",44),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=s}),t.qZA(),t.qZA(),t.TgZ(124,"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(125,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(126,"nz-form-item",10),t.TgZ(127,"nz-form-label",45),t._uU(128,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(129,"nz-form-control",24),t.TgZ(130,"nz-switch",46),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.danmuUname=s}),t.qZA(),t.qZA(),t.TgZ(131,"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(132,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(133,"nz-form-item",10),t.TgZ(134,"nz-form-label",47),t._uU(135,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(136,"nz-form-control",24),t.TgZ(137,"nz-switch",48),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=s}),t.qZA(),t.qZA(),t.TgZ(138,"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(139,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(140,"div",49),t.TgZ(141,"h2"),t._uU(142,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(143,"nz-form-item",10),t.TgZ(144,"nz-form-label",50),t._uU(145,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(146,"nz-form-control",24),t.TgZ(147,"nz-switch",51),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=s}),t.qZA(),t.qZA(),t.TgZ(148,"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(149,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(150,"nz-form-item",10),t.TgZ(151,"nz-form-label",52),t._uU(152,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(153,"nz-form-control",24),t.TgZ(154,"nz-switch",53),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=s}),t.qZA(),t.qZA(),t.TgZ(155,"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(156,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(157,"nz-form-item",10),t.TgZ(158,"nz-form-label",11),t._uU(159,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(160,gs,7,0,"ng-template",null,54,t.W1O),t.TgZ(162,"nz-form-control",12),t.TgZ(163,"nz-select",55),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=s}),t.qZA(),t.qZA(),t.TgZ(164,"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(165,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(166,"div",56),t.TgZ(167,"h2"),t._uU(168,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(169,"nz-form-item",57),t.TgZ(170,"nz-form-label",58),t._uU(171,"User Agent"),t.qZA(),t.TgZ(172,"nz-form-control",59),t.TgZ(173,"textarea",60,61),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.userAgent=s}),t.qZA(),t.qZA(),t.YNc(175,ms,1,1,"ng-template",null,8,t.W1O),t.TgZ(177,"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(178,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(179,"nz-form-item",57),t.TgZ(180,"nz-form-label",62),t._uU(181,"Cookie"),t.qZA(),t.TgZ(182,"nz-form-control",63),t.TgZ(183,"textarea",64,65),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.cookie=s}),t.qZA(),t.qZA(),t.TgZ(185,"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(186,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),i=t.MAs(35),s=t.MAs(44),a=t.MAs(68),c=t.MAs(78),p=t.MAs(161),d=t.MAs(174),f=t.MAs(184),r=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern)("ngModel",r.model.output.pathTemplate)("disabled",null===r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.filesizeLimit)("disabled",null===r.options.output.filesizeLimit)("nzOptions",r.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.durationLimit)("disabled",null===r.options.output.durationLimit)("nzOptions",r.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.durationLimit),t.xp6(6),t.Q6J("nzTooltipTitle",i),t.xp6(5),t.Q6J("ngModel",r.model.recorder.streamFormat)("disabled",null===r.options.recorder.streamFormat)("nzOptions",r.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.streamFormat),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(5),t.Q6J("ngModel",r.model.recorder.fmp4StreamTimeout)("disabled",null===r.options.recorder.fmp4StreamTimeout)("nzOptions",r.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==r.options.recorder.fmp4StreamTimeout),t.xp6(6),t.Q6J("ngModel",r.model.recorder.qualityNumber)("disabled",null===r.options.recorder.qualityNumber)("nzOptions",r.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",r.model.recorder.saveCover)("disabled",null===r.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",r.model.recorder.coverSaveStrategy)("disabled",null===r.options.recorder.coverSaveStrategy||!r.options.recorder.saveCover)("nzOptions",r.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.coverSaveStrategy),t.xp6(5),t.Q6J("nzValidateStatus",c.value>3?"warning":c),t.xp6(1),t.Q6J("ngModel",r.model.recorder.readTimeout)("disabled",null===r.options.recorder.readTimeout)("nzOptions",r.readTimeoutOptions),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",p),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",d.valid&&r.options.header.userAgent!==r.taskOptions.header.userAgent&&r.options.header.userAgent!==r.globalSettings.header.userAgent?"warning":d)("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",f.valid&&r.options.header.cookie!==r.taskOptions.header.cookie&&r.options.header.cookie!==r.globalSettings.header.cookie?"warning":f),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 hs=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.splitFileTip=w.Uk,this.pathTemplatePattern=w._m,this.filesizeLimitOptions=(0,F.Z)(w.Pu),this.durationLimitOptions=(0,F.Z)(w.Fg),this.streamFormatOptions=(0,F.Z)(w.tp),this.fmp4StreamTimeoutOptions=(0,F.Z)(w.D4),this.qualityOptions=(0,F.Z)(w.O6),this.readTimeoutOptions=(0,F.Z)(w.D4),this.disconnectionTimeoutOptions=(0,F.Z)(w.$w),this.bufferOptions=(0,F.Z)(w.Rc),this.deleteStrategies=(0,F.Z)(w.rc),this.coverSaveStrategies=(0,F.Z)(w.J_)}ngOnChanges(){this.options=(0,F.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,j.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const i of Object.keys(this.options)){const c=this.globalSettings[i];Reflect.set(e,i,new Proxy(this.options[i],{get:(p,d)=>{var f;return null!==(f=Reflect.get(p,d))&&void 0!==f?f:Reflect.get(c,d)},set:(p,d,f)=>Reflect.set(p,d,f)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(m.F,5),2&e){let s;t.iGM(s=t.CRH())&&(i.ngForm=s.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["errorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","recorder",1,"form-group","recorder"],["streamFormatTip",""],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeoutTip",""],["name","fmp4StreamTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeout","ngModel"],["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"],["coverSaveStrategyTip",""],["name","coverSaveStrategy",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()})("nzAfterOpen",function(){return i.afterOpen.emit()})("nzAfterClose",function(){return i.afterClose.emit()}),t.YNc(1,_s,187,94,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",null==i.ngForm||null==i.ngForm.form?null:i.ngForm.form.invalid)},directives:[V.du,V.Hf,m._Y,m.JL,m.F,B.Lr,m.Mq,P.SK,B.Nx,P.t3,B.iK,B.Fd,et.Zp,m.Fj,m.Q7,m.c5,m.JJ,m.On,u.O5,Wt.Ie,wt.Vq,Ot.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}"],changeDetection:0}),n})();function Ce(n,o,e,i,s,a,c){try{var p=n[a](c),d=p.value}catch(f){return void e(f)}p.done?o(d):Promise.resolve(d).then(i,s)}var Gt=l(5254),zs=l(3753),Cs=l(2313);const $t=new Map,Vt=new Map;let Ts=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,i="object"){return"object"===i?Vt.has(e)?(0,A.of)(Vt.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,H.U)(s=>URL.createObjectURL(s)),(0,H.U)(s=>this.domSanitizer.bypassSecurityTrustUrl(s)),(0,k.b)(s=>Vt.set(e,s)),(0,it.K)(()=>(0,A.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):$t.has(e)?(0,A.of)($t.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,nt.w)(s=>this.createDataURL(s)),(0,k.b)(s=>$t.set(e,s)),(0,it.K)(()=>(0,A.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function fs(n){return function(){var o=this,e=arguments;return new Promise(function(i,s){var a=n.apply(o,e);function c(d){Ce(a,i,s,c,p,"next",d)}function p(d){Ce(a,i,s,c,p,"throw",d)}c(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const i=new FileReader,s=(0,zs.R)(i,"load").pipe((0,H.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(i.result)));return i.readAsDataURL(e),s}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Cs.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function xs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const ks=function(n){return[n,"detail"]};function vs(n,o){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,xs,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,ks,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function ys(n,o){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function bs(n,o){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function Ss(n,o){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function As(n,o){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function Ds(n,o){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,bs,4,0,"nz-tag",28),t.YNc(7,Ss,4,0,"nz-tag",29),t.YNc(8,As,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function Ms(n,o){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function Zs(n,o){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,Ms,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function Os(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function ws(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Fs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(s){return t.CHM(e),t.oxw(2).settingsDialogVisible=s})("confirm",function(s){return t.CHM(e),t.oxw(2).changeTaskOptions(s)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function Ns(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,Fs,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function Ps(n,o){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function Es(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function Is(n,o){if(1&n&&(t.YNc(0,Ps,2,1,"div",52),t.YNc(1,Es,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function Bs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function Js(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Qs=function(){return{padding:"0"}};function Us(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Js,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,Qs))("nzVisible",e.menuDrawerVisible)}}const qs=function(n,o,e,i){return[n,o,e,i]},Rs=function(){return{padding:"0.5rem"}},Ls=function(){return{size:"large"}};let Ys=(()=>{class n{constructor(e,i,s,a,c,p,d){this.changeDetector=i,this.message=s,this.modal=a,this.settingService=c,this.taskManager=p,this.appTaskSettings=d,this.stopped=!1,this.destroyed=new v.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=O,e.observe(pt[0]).pipe((0,y.R)(this.destroyed)).subscribe(f=>{this.useDrawer=f.matches,i.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===O.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===O.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==O.STOPPED?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopTask(this.roomId,e).subscribe(i,s)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(i,s)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){It(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,i])=>{this.taskOptions=e,this.globalSettings=i,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,bt.X)(3,300)).subscribe(i=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},i=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)})}cutStream(){this.data.task_status.running_status===O.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.Yg),t.Y36(t.sBO),t.Y36(qt.dD),t.Y36(V.Sf),t.Y36(jo.R),t.Y36(Rt),t.Y36(Ho))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("stopped",i.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,vs,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ys,3,7,"ng-template",null,4,t.W1O),t.YNc(7,Ds,9,6,"ng-template",null,5,t.W1O),t.YNc(9,Zs,12,7,"ng-template",null,6,t.W1O),t.YNc(11,Os,1,4,"ng-template",null,7,t.W1O),t.YNc(13,ws,2,2,"ng-template",null,8,t.W1O),t.YNc(15,Ns,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Is,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,Bs,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Us,2,4,"nz-drawer",14)),2&e){const s=t.MAs(4),a=t.MAs(6),c=t.MAs(8),p=t.MAs(10),d=t.MAs(12),f=t.MAs(14),r=t.MAs(16),N=t.MAs(18),I=t.MAs(23);t.Q6J("nzCover",s)("nzHoverable",!0)("nzActions",t.l5B(12,qs,f,r,d,N))("nzBodyStyle",t.DdM(17,Rs)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!i.data)("nzAvatar",t.DdM(18,Ls)),t.xp6(1),t.Q6J("nzAvatar",a)("nzTitle",c)("nzDescription",p),t.xp6(19),t.Q6J("ngTemplateOutlet",I),t.xp6(3),t.Q6J("ngIf",i.useDrawer)}},directives:[D.bd,ye,D.l7,ct.yS,rt.SY,u.O5,es,ss,at.Dz,u.RF,u.n9,st,M.Ls,Lt.w,Ot.i,m.JJ,m.On,hs,tt.cm,tt.RR,u.tP,gt.wO,gt.r9,lt.Vz,lt.SQ],pipes:[u.Ov,Ts],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 Gs(n,o){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function $s(n,o){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",o.$implicit)}function Vs(n,o){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,$s,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 js=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,i){return i.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,i){if(1&e&&(t.YNc(0,Gs,2,0,"div",0),t.YNc(1,Vs,3,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",0===i.dataList.length)("ngIfElse",s)}},directives:[u.O5,Kt.p9,u.sg,Ys],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var Hs=l(2643),Ws=l(1406);function Xs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function Ks(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function ta(n,o){if(1&n&&(t.YNc(0,Xs,2,0,"ng-container",8),t.YNc(1,Ks,2,0,"ng-container",8)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function ea(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function na(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,ta,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,ea,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",i.pattern),t.xp6(4),t.Q6J("ngForOf",i.resultMessages)}}const ia=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,oa=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let sa=(()=>{class n{constructor(e,i,s){this.changeDetector=i,this.taskManager=s,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=oa,this.formGroup=e.group({input:["",[m.kI.required,m.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let i;i=e.startsWith("http")?[parseInt(ia.exec(e)[1])]:new Set(e.split(/\s+/).map(s=>parseInt(s))),(0,Gt.D)(i).pipe((0,Ws.b)(s=>this.taskManager.addTask(s)),(0,k.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(m.qu),t.Y36(t.sBO),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,na,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkLoading",i.pending)("nzOkDisabled",i.formGroup.invalid)("nzCancelDisabled",i.pending)("nzClosable",!i.pending)("nzMaskClosable",!i.pending)},directives:[V.du,V.Hf,m._Y,m.JL,B.Lr,m.sg,P.SK,B.Nx,P.t3,B.Fd,et.Zp,m.Fj,m.Q7,m.JJ,m.u,m.c5,u.O5,u.sg,He],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),ra=(()=>{class n{transform(e,i=""){return console.debug("filter tasks by '%s'",i),[...this.filterByTerm(e,i)]}filterByTerm(e,i){return function*aa(n,o){for(const e of n)o(e)&&(yield e)}(e,s=>""===(i=i.trim())||s.user_info.name.includes(i)||s.room_info.title.toString().includes(i)||s.room_info.area_name.toString().includes(i)||s.room_info.room_id.toString().includes(i)||s.room_info.short_room_id.toString().includes(i))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function la(n,o){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function ca(n,o){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const Te="app-tasks-selection",xe="app-tasks-reverse",ua=[{path:":id/detail",component:Ao},{path:"",component:(()=>{class n{constructor(e,i,s,a){this.changeDetector=e,this.notification=i,this.storage=s,this.taskService=a,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(Te);return null!==e?e:Z.ALL}retrieveReverse(){return"true"===this.storage.getData(xe)}storeSelection(e){this.storage.setData(Te,e)}storeReverse(e){this.storage.setData(xe,e.toString())}syncTaskData(){this.dataSubscription=(0,A.of)((0,A.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(fe.V),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,i){if(1&e){const s=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(c){return i.onSelectionChanged(c)})("reverseChange",function(c){return i.onReverseChanged(c)})("filterChange",function(c){return i.filterTerm=c}),t.qZA(),t.YNc(1,la,1,2,"nz-spin",1),t.YNc(2,ca,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(s),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const s=t.MAs(3);t.Q6J("selection",i.selection)("reverse",i.reverse),t.xp6(1),t.Q6J("ngIf",i.loading)("ngIfElse",s)}},directives:[Vo,u.O5,te.W,js,Ct.ix,Hs.dQ,Lt.w,rt.SY,M.Ls,sa],pipes:[ra],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 pa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ct.Bz.forChild(ua)],ct.Bz]}),n})(),ga=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez,m.u5,m.UX,U.xu,dt,P.Jb,D.vh,Ht,at.Rt,M.PV,Ht,rt.cg,G,Ot.m,tt.b1,Ct.sL,V.Qp,B.U5,et.o7,Wt.Wr,Ie,Tt.aF,Xt.S,Kt.Xo,te.j,We,lt.BL,wt.LV,bn,J.HQ,Bn,Ti,Ai.forRoot({echarts:()=>l.e(45).then(l.bind(l,8045))}),pa,Di.m]]}),n})()},855:function(jt){jt.exports=function(){"use strict";var ot=/^(b|B)$/,l={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},u={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},m={floor:Math.floor,ceil:Math.ceil};function U(t){var h,q,R,W,dt,P,D,M,_,v,y,L,T,b,Y,X,st,G,at,Mt,$,z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],K=0;if(isNaN(t))throw new TypeError("Invalid number");if(R=!0===z.bits,Y=!0===z.unix,L=!0===z.pad,T=void 0!==z.round?z.round:Y?1:2,D=void 0!==z.locale?z.locale:"",M=z.localeOptions||{},X=void 0!==z.separator?z.separator:"",st=void 0!==z.spacer?z.spacer:Y?"":" ",at=z.symbols||{},G=2===(q=z.base||2)&&z.standard||"jedec",y=z.output||"string",dt=!0===z.fullform,P=z.fullforms instanceof Array?z.fullforms:[],h=void 0!==z.exponent?z.exponent:-1,Mt=m[z.roundingMethod]||Math.round,_=(v=Number(t))<0,W=q>2?1e3:1024,$=!1===isNaN(z.precision)?parseInt(z.precision,10):0,_&&(v=-v),(-1===h||isNaN(h))&&(h=Math.floor(Math.log(v)/Math.log(W)))<0&&(h=0),h>8&&($>0&&($+=8-h),h=8),"exponent"===y)return h;if(0===v)g[0]=0,b=g[1]=Y?"":l[G][R?"bits":"bytes"][h];else{K=v/(2===q?Math.pow(2,10*h):Math.pow(1e3,h)),R&&(K*=8)>=W&&h<8&&(K/=W,h++);var mt=Math.pow(10,h>0?T:0);g[0]=Mt(K*mt)/mt,g[0]===W&&h<8&&void 0===z.exponent&&(g[0]=1,h++),b=g[1]=10===q&&1===h?R?"kb":"kB":l[G][R?"bits":"bytes"][h],Y&&(g[1]="jedec"===G?g[1].charAt(0):h>0?g[1].replace(/B$/,""):g[1],ot.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))}if(_&&(g[0]=-g[0]),$>0&&(g[0]=g[0].toPrecision($)),g[1]=at[g[1]]||g[1],!0===D?g[0]=g[0].toLocaleString():D.length>0?g[0]=g[0].toLocaleString(D,M):X.length>0&&(g[0]=g[0].toString().replace(".",X)),L&&!1===Number.isInteger(g[0])&&T>0){var _t=X||".",ht=g[0].toString().split(_t),ft=ht[1]||"",zt=ft.length,Zt=T-zt;g[0]="".concat(ht[0]).concat(_t).concat(ft.padEnd(zt+Zt,"0"))}return dt&&(g[1]=P[h]?P[h]:u[G][h]+(R?"bit":"byte")+(1===g[0]?"":"s")),"array"===y?g:"object"===y?{value:g[0],symbol:g[1],exponent:h,unit:b}:g.join(st)}return U.partial=function(t){return function(h){return U(h,t)}},U}()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/869.ac675e78fa0ea7cf.js b/src/blrec/data/webapp/869.ac675e78fa0ea7cf.js deleted file mode 100644 index feeba10..0000000 --- a/src/blrec/data/webapp/869.ac675e78fa0ea7cf.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[869],{5869:(jt,ot,l)=>{"use strict";l.r(ot),l.d(ot,{TasksModule:()=>ua});var u=l(9808),d=l(4182),U=l(5113),t=l(5e3);class _{constructor(o,e){this._document=e;const i=this._textarea=this._document.createElement("textarea"),s=i.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",i.setAttribute("aria-hidden","true"),i.value=o,this._document.body.appendChild(i)}copy(){const o=this._textarea;let e=!1;try{if(o){const i=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),i&&i.focus()}}catch(i){}return e}destroy(){const o=this._textarea;o&&(o.remove(),this._textarea=void 0)}}let q=(()=>{class n{constructor(e){this._document=e}copy(e){const i=this.beginCopy(e),s=i.copy();return i.destroy(),s}beginCopy(e){return new _(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(u.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var N=l(1894),A=l(7484),M=l(647),m=l(655),k=l(8929),v=l(7625),L=l(8693),C=l(1721),y=l(226);function Y(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(s){return t.CHM(e),t.oxw().closeTag(s)}),t.qZA()}}const X=["*"];let st=(()=>{class n{constructor(e,i,s,a){this.cdr=e,this.renderer=i,this.elementRef=s,this.directionality=a,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzOnClose=new t.vpe,this.nzCheckedChange=new t.vpe,this.dir="ltr",this.destroy$=new k.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,i=new RegExp(`(ant-tag-(?:${[...L.uf,...L.Bh].join("|")}))`,"g"),s=e.classList.toString(),a=[];let c=i.exec(s);for(;null!==c;)a.push(c[1]),c=i.exec(s);e.classList.remove(...a)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,L.o2)(this.nzColor)||(0,L.M8)(this.nzColor)),this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:i}=e;i&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,i){1&e&&t.NdJ("click",function(){return i.updateCheckedStatus()}),2&e&&(t.Udp("background-color",i.isPresetColor?"":i.nzColor),t.ekj("ant-tag-has-color",i.nzColor&&!i.isPresetColor)("ant-tag-checkable","checkable"===i.nzMode)("ant-tag-checkable-checked",i.nzChecked)("ant-tag-rtl","rtl"===i.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:X,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,i){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,Y,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===i.nzMode))},directives:[u.O5,M.Ls],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,C.yF)()],n.prototype,"nzChecked",void 0),n})(),G=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,d.u5,M.PV]]}),n})();var at=l(6699);const V=["nzType","avatar"];function K(n,o){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function mt(n,o){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function _t(n,o){if(1&n&&t._UZ(0,"li"),2&n){const e=o.index,i=t.oxw(3);t.Udp("width",i.toCSSUnit(i.widthList[e]))}}function ht(n,o){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,_t,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function ft(n,o){if(1&n&&(t.ynx(0),t.YNc(1,K,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,mt,1,2,"h3",3),t.YNc(4,ht,2,1,"ul",4),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!!e.nzAvatar),t.xp6(2),t.Q6J("ngIf",!!e.nzTitle),t.xp6(1),t.Q6J("ngIf",!!e.nzParagraph)}}function zt(n,o){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const Ot=["*"];let ke=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,m.gn)([(0,C.yF)()],n.prototype,"nzBlock",void 0),n})(),ve=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const i=`${this.nzSize}px`;this.styleMap={width:i,height:i,"line-height":i}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:V,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,i){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===i.nzShape)("ant-skeleton-avatar-circle","circle"===i.nzShape)("ant-skeleton-avatar-lg","large"===i.nzSize)("ant-skeleton-avatar-sm","small"===i.nzSize),t.Q6J("ngStyle",i.styleMap))},directives:[u.PC],encapsulation:2,changeDetection:0}),n})(),ye=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],i.addClass(s.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,C.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,i=!!this.nzParagraph;let s="";return!e&&i?s="38%":e&&i&&(s="50%"),Object.assign({width:s},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,i=!!this.nzTitle,s={};return(!e||!i)&&(s.width="61%"),s.rows=!e&&i?3:2,Object.assign(Object.assign({},s),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:i}=this.paragraph;let s=[];return e&&Array.isArray(e)?s=e:e&&!Array.isArray(e)&&(s=[],s[i-1]=e),s}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,i){2&e&&t.ekj("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",!!i.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:Ot,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,i){1&e&&(t.F$t(),t.YNc(0,ft,5,3,"ng-container",0),t.YNc(1,zt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",i.nzLoading),t.xp6(1),t.Q6J("ngIf",!i.nzLoading))},directives:[ve,u.O5,ke,u.sg],encapsulation:2,changeDetection:0}),n})(),Ht=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez]]}),n})();var rt=l(404),Zt=l(6462),tt=l(3677),Ct=l(6042),$=l(7957),B=l(4546),et=l(1047),Wt=l(6114),be=l(4832),Se=l(2845),Ae=l(6950),Me=l(5664),P=l(969),De=l(4170);let Ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,Ct.sL,Se.U8,De.YI,M.PV,P.T,Ae.e4,be.g,rt.cg,Me.rt]]}),n})();var Tt=l(3868),Xt=l(5737),Kt=l(685),te=l(7525),Be=l(8076),b=l(9439);function Je(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function Qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Ue(n,o){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,Qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function qe(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Re(n,o){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,qe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Le(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ue,2,1,"span",7),t.YNc(2,Re,2,1,"span",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.nzMessage),t.xp6(1),t.Q6J("ngIf",e.nzDescription)}}function Ye(n,o){1&n&&t._UZ(0,"i",15)}function Ge(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Ve(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ge,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function $e(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ye,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Ve,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),i=t.oxw(2);t.xp6(3),t.Q6J("ngIf",i.nzCloseText)("ngIfElse",e)}}function je(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,Je,2,2,"ng-container",2),t.YNc(2,Le,3,2,"div",3),t.YNc(3,$e,4,2,"button",4),t.qZA()}if(2&n){const e=t.oxw();t.ekj("ant-alert-rtl","rtl"===e.dir)("ant-alert-success","success"===e.nzType)("ant-alert-info","info"===e.nzType)("ant-alert-warning","warning"===e.nzType)("ant-alert-error","error"===e.nzType)("ant-alert-no-icon",!e.nzShowIcon)("ant-alert-banner",e.nzBanner)("ant-alert-closable",e.nzCloseable)("ant-alert-with-description",!!e.nzDescription),t.Q6J("@.disabled",e.nzNoAnimation)("@slideAlertMotion",void 0),t.xp6(1),t.Q6J("ngIf",e.nzShowIcon),t.xp6(1),t.Q6J("ngIf",e.nzMessage||e.nzDescription),t.xp6(1),t.Q6J("ngIf",e.nzCloseable||e.nzCloseText)}}let He=(()=>{class n{constructor(e,i,s){this.nzConfigService=e,this.cdr=i,this.directionality=s,this._nzModuleName="alert",this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzOnClose=new t.vpe,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new k.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:i,nzDescription:s,nzType:a,nzBanner:c}=e;if(i&&(this.isShowIconSet=!0),a)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}s&&(this.iconTheme=this.nzDescription?"outline":"fill"),c&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,i){1&e&&t.YNc(0,je,4,23,"div",0),2&e&&t.Q6J("ngIf",!i.closed)},directives:[u.O5,M.Ls,P.f],encapsulation:2,data:{animation:[Be.Rq]},changeDetection:0}),(0,m.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzCloseable",void 0),(0,m.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzShowIcon",void 0),(0,m.gn)([(0,C.yF)()],n.prototype,"nzBanner",void 0),(0,m.gn)([(0,C.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),We=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,M.PV,P.T]]}),n})();var lt=l(4147),wt=l(5197);function Xe(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function Ke(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.hij(" ",e(i.nzPercent)," ")}}const tn=function(n){return{$implicit:n}};function en(n,o){if(1&n&&t.YNc(0,Ke,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,tn,e.nzPercent))}}function nn(n,o){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Xe,2,1,"ng-container",6),t.YNc(2,en,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===i.status||"success"===i.status)&&!i.nzFormat)("ngIfElse",e)}}function on(n,o){if(1&n&&t.YNc(0,nn,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function sn(n,o){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function an(n,o){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,sn,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function rn(n,o){}function ln(n,o){if(1&n&&(t.ynx(0),t.YNc(1,an,4,11,"div",11),t.YNc(2,rn,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function cn(n,o){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",o.$implicit)}function un(n,o){}function pn(n,o){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,cn,1,1,"div",19),t.YNc(2,un,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function gn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,ln,3,2,"ng-container",2),t.YNc(2,pn,3,2,"div",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngIf",e.isSteps)}}function dn(n,o){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=o.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function mn(n,o){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,dn,1,2,"stop",25),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("id","gradient-"+e.gradientId),t.xp6(1),t.Q6J("ngForOf",e.circleGradient)}}function _n(n,o){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=o.$implicit,i=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",i.pathString)("stroke-linecap",i.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",i.nzPercent?i.strokeWidth:0)}}function hn(n,o){1&n&&t.O4$()}function fn(n,o){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,mn,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,_n,1,5,"path",23),t.qZA(),t.YNc(5,hn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),i=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}const ne=n=>{let o=[];return Object.keys(n).forEach(e=>{const i=n[e],s=function zn(n){return+n.replace("%","")}(e);isNaN(s)||o.push({key:s,value:i})}),o=o.sort((e,i)=>e.key-i.key),o};let xn=0;const ie="progress",kn=new Map([["success","check"],["exception","close"]]),vn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),yn=n=>`${n}%`;let oe=(()=>{class n{constructor(e,i,s){this.cdr=e,this.nzConfigService=i,this.directionality=s,this._nzModuleName=ie,this.nzShowInfo=!0,this.nzWidth=132,this.nzStrokeColor=void 0,this.nzSize="default",this.nzPercent=0,this.nzStrokeWidth=void 0,this.nzGapDegree=void 0,this.nzType="line",this.nzGapPosition="top",this.nzStrokeLinecap="round",this.nzSteps=0,this.steps=[],this.lineGradient=null,this.isGradient=!1,this.isSteps=!1,this.gradientId=xn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=a=>`${a}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new k.xQ}get formatter(){return this.nzFormat||yn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:i,nzGapPosition:s,nzStrokeLinecap:a,nzStrokeColor:c,nzGapDegree:p,nzType:r,nzStatus:z,nzPercent:Z,nzSuccessPercent:F,nzStrokeWidth:E}=e;z&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(Z||F)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,C.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(z||Z||F||c)&&this.updateIcon(),c&&this.setStrokeColor(),(s||a||p||r||Z||c||c)&&this.getCirclePaths(),(Z||i||E)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(ie).pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=kn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),i="small"===this.nzSize?2:14,s=[];for(let a=0;a{const Q=2===e.length&&0===E;return{stroke:this.isGradient&&!Q?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:Q?vn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(F||0)/100*(a-c)}px ${a}px`,strokeDashoffset:`-${c/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,i=this.isGradient=!!e&&"string"!=typeof e;i&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:o="#1890ff",to:e="#1890ff",direction:i="to right"}=n,s=(0,m._T)(n,["from","to","direction"]);return 0!==Object.keys(s).length?`linear-gradient(${i}, ${ne(s).map(({key:c,value:p})=>`${p} ${c}%`).join(", ")})`:`linear-gradient(${i}, ${o}, ${e})`})(e):i&&this.isCircleStyle?this.circleGradient=(n=>ne(this.nzStrokeColor).map(({key:o,value:e})=>({offset:`${o}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(b.jY),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,i){1&e&&(t.YNc(0,on,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,gn,3,2,"div",2),t.YNc(4,fn,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===i.nzType)("ant-progress-small","small"===i.nzSize)("ant-progress-show-info",i.nzShowInfo)("ant-progress-circle",i.isCircleStyle)("ant-progress-steps",i.isSteps)("ant-progress-rtl","rtl"===i.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+i.status),t.xp6(1),t.Q6J("ngIf","line"===i.nzType),t.xp6(1),t.Q6J("ngIf",i.isCircleStyle))},directives:[u.O5,M.Ls,P.f,u.mk,u.tP,u.sg,u.PC],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,b.oS)()],n.prototype,"nzShowInfo",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzStrokeColor",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzSize",void 0),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzPercent",void 0),(0,m.gn)([(0,b.oS)(),(0,C.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,m.gn)([(0,b.oS)(),(0,C.Rn)()],n.prototype,"nzGapDegree",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzGapPosition",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzSteps",void 0),n})(),bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,M.PV,P.T]]}),n})();var J=l(592),se=l(925);let Sn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez]]}),n})();const An=function(n){return{$implicit:n}};function Mn(n,o){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,An,e.nzValue))}}function Dn(n,o){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function On(n,o){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function Zn(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Dn,2,1,"span",4),t.YNc(2,On,2,1,"span",5),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.displayInt),t.xp6(1),t.Q6J("ngIf",e.displayDecimal)}}function wn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function Fn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function Nn(n,o){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,Fn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function Pn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function In(n,o){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,Pn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let En=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,u.dv)(this.locale_id,u.wE.Decimal),i=String(this.nzValue),[s,a]=i.split(e);this.displayInt=s,this.displayDecimal=a?`${e}${a}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,i){1&e&&(t.TgZ(0,"span",0),t.YNc(1,Mn,1,4,"ng-container",1),t.YNc(2,Zn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!i.nzValueTemplate))},directives:[u.O5,u.tP],encapsulation:2,changeDetection:0}),n})(),ae=(()=>{class n{constructor(e,i){this.cdr=e,this.directionality=i,this.nzValueStyle={},this.dir="ltr",this.destroy$=new k.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,Nn,2,1,"span",4),t._UZ(5,"nz-statistic-number",5),t.YNc(6,In,2,1,"span",6),t.qZA(),t.qZA()),2&e&&(t.ekj("ant-statistic-rtl","rtl"===i.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",i.nzTitle),t.xp6(1),t.Q6J("ngStyle",i.nzValueStyle),t.xp6(1),t.Q6J("ngIf",i.nzPrefix),t.xp6(1),t.Q6J("nzValue",i.nzValue)("nzValueTemplate",i.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",i.nzSuffix))},directives:[En,P.f,u.PC,u.O5],encapsulation:2,changeDetection:0}),n})(),Bn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,se.ud,P.T,Sn]]}),n})();var re=l(6787),Jn=l(1059),nt=l(7545),Qn=l(7138),x=l(2994),Un=l(6947),Ft=l(4090);function qn(n,o){1&n&&t.Hsn(0)}const Rn=["*"];function Ln(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function Yn(n,o){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Ln,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Gn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function Vn(n,o){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Gn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function $n(n,o){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,Yn,2,1,"div",4),t.YNc(2,Vn,2,1,"div",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.nzTitle),t.xp6(1),t.Q6J("ngIf",e.nzExtra)}}function jn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Hn(n,o){}function Wn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,jn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Xn(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Kn(n,o){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Xn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ti(n,o){}function ei(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Kn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,ti,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(1),t.Q6J("colSpan",2*e.span-1),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function ni(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Wn,7,5,"ng-container",2),t.YNc(2,ei,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function ii(n,o){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,ni,3,2,"ng-container",11),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function oi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ii,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function si(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function ai(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,si,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!i.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function ri(n,o){}function li(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,ri,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function ci(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,ai,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,li,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ui(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ci,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function pi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function gi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,pi,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function di(n,o){}function mi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,di,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function _i(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,gi,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,mi,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function hi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,_i,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function fi(n,o){if(1&n&&(t.ynx(0),t.YNc(1,ui,2,1,"ng-container",2),t.YNc(2,hi,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let Nt=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new k.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,7),2&e){let s;t.iGM(s=t.CRH())&&(i.content=s.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:Rn,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,qn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,m.gn)([(0,C.Rn)()],n.prototype,"nzSpan",void 0),n})();const Ci={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let le=(()=>{class n{constructor(e,i,s,a){this.nzConfigService=e,this.cdr=i,this.breakpointService=s,this.directionality=a,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Ci,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=Ft.G_.md,this.destroy$=new k.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,v.R)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,Jn.O)(this.items),(0,v.R)(this.destroy$));(0,re.T)(e,e.pipe((0,nt.w)(()=>(0,re.T)(...this.items.map(i=>i.inputChange$)).pipe((0,Qn.e)(16)))),this.breakpointService.subscribe(Ft.WV).pipe((0,x.b)(i=>this.breakpoint=i))).pipe((0,v.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],i=0;const s=this.realColumn=this.getColumn(),a=this.items.toArray(),c=a.length,p=[],r=()=>{p.push(e),e=[],i=0};for(let z=0;z=s?(i>s&&(0,Un.ZK)(`"nzColumn" is ${s} but we have row length ${i}`),e.push({title:F,content:E,span:s-(i-Q)}),r()):z===c-1?(e.push({title:F,content:E,span:s-(i-Q)}),r()):e.push({title:F,content:E,span:Q})}this.itemMatrix=p}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.jY),t.Y36(t.sBO),t.Y36(Ft.r3),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,i,s){if(1&e&&t.Suo(s,Nt,4),2&e){let a;t.iGM(a=t.CRH())&&(i.items=a)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,i){2&e&&t.ekj("ant-descriptions-bordered",i.nzBordered)("ant-descriptions-middle","middle"===i.nzSize)("ant-descriptions-small","small"===i.nzSize)("ant-descriptions-rtl","rtl"===i.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,i){1&e&&(t.YNc(0,$n,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,oi,2,1,"ng-container",2),t.YNc(5,fi,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",i.nzTitle||i.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===i.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===i.nzLayout))},directives:[u.O5,P.f,u.sg,u.tP],encapsulation:2,changeDetection:0}),(0,m.gn)([(0,C.yF)(),(0,b.oS)()],n.prototype,"nzBordered",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzColumn",void 0),(0,m.gn)([(0,b.oS)()],n.prototype,"nzSize",void 0),(0,m.gn)([(0,b.oS)(),(0,C.yF)()],n.prototype,"nzColon",void 0),n})(),Ti=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,u.ez,P.T,se.ud]]}),n})();var S=l(1086),xt=l(8896),kt=l(353),ce=l(6498),ue=l(3489);const pe={leading:!0,trailing:!1};class yi{constructor(o,e,i,s){this.duration=o,this.scheduler=e,this.leading=i,this.trailing=s}call(o,e){return e.subscribe(new bi(o,this.duration,this.scheduler,this.leading,this.trailing))}}class bi extends ue.L{constructor(o,e,i,s,a){super(o),this.duration=e,this.scheduler=i,this.leading=s,this.trailing=a,this._hasTrailingValue=!1,this._trailingValue=null}_next(o){this.throttled?this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Si,this.duration,{subscriber:this})),this.leading?this.destination.next(o):this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const o=this.throttled;o&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),o.unsubscribe(),this.remove(o),this.throttled=null)}}function Si(n){const{subscriber:o}=n;o.clearThrottle()}class Pt{constructor(o){this.changes=o}static of(o){return new Pt(o)}notEmpty(o){if(this.changes[o]){const e=this.changes[o].currentValue;if(null!=e)return(0,S.of)(e)}return xt.E}has(o){return this.changes[o]?(0,S.of)(this.changes[o].currentValue):xt.E}notFirst(o){return this.changes[o]&&!this.changes[o].isFirstChange()?(0,S.of)(this.changes[o].currentValue):xt.E}notFirstAndEmpty(o){if(this.changes[o]&&!this.changes[o].isFirstChange()){const e=this.changes[o].currentValue;if(null!=e)return(0,S.of)(e)}return xt.E}}const ge=new t.OlP("NGX_ECHARTS_CONFIG");let de=(()=>{class n{constructor(e,i,s){this.el=i,this.ngZone=s,this.autoResize=!0,this.loadingType="default",this.chartInit=new t.vpe,this.optionsError=new t.vpe,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.resize$=new k.xQ,this.echarts=e.echarts}ngOnChanges(e){const i=Pt.of(e);i.notFirstAndEmpty("options").subscribe(s=>this.onOptionsChange(s)),i.notFirstAndEmpty("merge").subscribe(s=>this.setOption(s)),i.has("loading").subscribe(s=>this.toggleLoading(!!s)),i.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function vi(n,o=kt.P,e=pe){return i=>i.lift(new yi(n,o,e.leading,e.trailing))}(100,kt.z,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(()=>{this.animationFrameID=window.requestAnimationFrame(()=>this.resize$.next())})),this.resizeOb.observe(this.el.nativeElement))}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart&&(e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}setOption(e,i){if(this.chart)try{this.chart.setOption(e,i)}catch(s){console.error(s),this.optionsError.emit(s)}}refreshChart(){return(0,m.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const i=window.getComputedStyle(e,null).getPropertyValue("height");(!i||"0px"===i)&&(!e.style.height||"0px"===e.style.height)&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:s})=>s(e,this.theme,this.initOpts)))}initChart(){return(0,m.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,m.mG)(this,void 0,void 0,function*(){!e||(this.chart||(this.chart=yield this.createChart(),this.chartInit.emit(this.chart)),this.setOption(this.options,!0))})}createLazyEvent(e){return this.chartInit.pipe((0,nt.w)(i=>new ce.y(s=>(i.on(e,a=>this.ngZone.run(()=>s.next(a))),()=>{this.chart&&(this.chart.isDisposed()||i.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ge),t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[t.TTD]}),n})(),Ai=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:ge,useValue:e}]}}static forChild(){return{ngModule:n}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[]]}),n})();var Mi=l(4466),ct=l(2302),Di=l(4241);function vt(n=0,o=kt.P){return(!(0,Di.k)(n)||n<0)&&(n=0),(!o||"function"!=typeof o.schedule)&&(o=kt.P),new ce.y(e=>(e.add(o.schedule(Oi,n,{subscriber:e,counter:0,period:n})),e))}function Oi(n){const{subscriber:o,counter:e,period:i}=n;o.next(e),this.schedule({subscriber:o,counter:e+1,period:i},i)}var Zi=l(3009),wi=l(6688),yt=l(5430),It=l(1177);function Et(...n){const o=n[n.length-1];return"function"==typeof o&&n.pop(),(0,Zi.n)(n,void 0).lift(new Fi(o))}class Fi{constructor(o){this.resultSelector=o}call(o,e){return e.subscribe(new Ni(o,this.resultSelector))}}class Ni extends ue.L{constructor(o,e,i=Object.create(null)){super(o),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(o){const e=this.iterators;(0,wi.k)(o)?e.push(new Ii(o)):e.push("function"==typeof o[yt.hZ]?new Pi(o[yt.hZ]()):new Ei(this.destination,this,o))}_complete(){const o=this.iterators,e=o.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class Ei extends It.Ds{constructor(o,e,i){super(o),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[yt.hZ](){return this}next(){const o=this.buffer;return 0===o.length&&this.isComplete?{value:null,done:!0}:{value:o.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(o){this.buffer.push(o),this.parent.checkIterators()}subscribe(){return(0,It.ft)(this.observable,new It.IY(this))}}var Bt=l(534),it=l(7221),bt=l(7106),Jt=l(5278),Bi=l(2340),D=(()=>{return(n=D||(D={})).ALL="all",n.PREPARING="preparing",n.LIVING="living",n.ROUNDING="rounding",n.MONITOR_ENABLED="monitor_enabled",n.MONITOR_DISABLED="monitor_disabled",n.RECORDER_ENABLED="recorder_enabled",n.RECORDER_DISABLED="recorder_disabled",n.STOPPED="stopped",n.WAITTING="waitting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",D;var n})(),O=(()=>{return(n=O||(O={})).STOPPED="stopped",n.WAITING="waiting",n.RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",O;var n})(),ut=(()=>{return(n=ut||(ut={})).WAITING="waiting",n.REMUXING="remuxing",n.INJECTING="injecting",ut;var n})(),T=(()=>{return(n=T||(T={})).RECORDING="recording",n.REMUXING="remuxing",n.INJECTING="injecting",n.COMPLETED="completed",n.MISSING="missing",n.BROKEN="broken",T;var n})(),Ji=l(520);const f=Bi.N.apiUrl;let St=(()=>{class n{constructor(e){this.http=e}getAllTaskData(e=D.ALL){return this.http.get(f+"/api/v1/tasks/data",{params:{select:e}})}getTaskData(e){return this.http.get(f+`/api/v1/tasks/${e}/data`)}getVideoFileDetails(e){return this.http.get(f+`/api/v1/tasks/${e}/videos`)}getDanmakuFileDetails(e){return this.http.get(f+`/api/v1/tasks/${e}/danmakus`)}getTaskParam(e){return this.http.get(f+`/api/v1/tasks/${e}/param`)}getMetadata(e){return this.http.get(f+`/api/v1/tasks/${e}/metadata`)}getStreamProfile(e){return this.http.get(f+`/api/v1/tasks/${e}/profile`)}updateAllTaskInfos(){return this.http.post(f+"/api/v1/tasks/info",null)}updateTaskInfo(e){return this.http.post(f+`/api/v1/tasks/${e}/info`,null)}addTask(e){return this.http.post(f+`/api/v1/tasks/${e}`,null)}removeTask(e){return this.http.delete(f+`/api/v1/tasks/${e}`)}removeAllTasks(){return this.http.delete(f+"/api/v1/tasks")}startTask(e){return this.http.post(f+`/api/v1/tasks/${e}/start`,null)}startAllTasks(){return this.http.post(f+"/api/v1/tasks/start",null)}stopTask(e,i=!1,s=!1){return this.http.post(f+`/api/v1/tasks/${e}/stop`,{force:i,background:s})}stopAllTasks(e=!1,i=!1){return this.http.post(f+"/api/v1/tasks/stop",{force:e,background:i})}enableTaskMonitor(e){return this.http.post(f+`/api/v1/tasks/${e}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(f+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(e,i=!1){return this.http.post(f+`/api/v1/tasks/${e}/monitor/disable`,{background:i})}disableAllMonitors(e=!1){return this.http.post(f+"/api/v1/tasks/monitor/disable",{background:e})}enableTaskRecorder(e){return this.http.post(f+`/api/v1/tasks/${e}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(f+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(e,i=!1,s=!1){return this.http.post(f+`/api/v1/tasks/${e}/recorder/disable`,{force:i,background:s})}disableAllRecorders(e=!1,i=!1){return this.http.post(f+"/api/v1/tasks/recorder/disable",{force:e,background:i})}cutStream(e){return this.http.post(f+`/api/v1/tasks/${e}/cut`,null)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Ji.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Qi=l(7512),Ui=l(5545);let qi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.userInfo.name),t.xp6(2),t.Oqu(i.userInfo.gender),t.xp6(2),t.Oqu(i.userInfo.uid),t.xp6(2),t.Oqu(i.userInfo.level),t.xp6(2),t.hij(" ",i.userInfo.sign," "))},directives:[A.bd,le,Nt],styles:[""],changeDetection:0}),n})();function Ri(n,o){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Li(n,o){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Yi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Gi(n,o){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function Vi(n,o){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function $i(n,o){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.hij(" ",e," ")}}function ji(n,o){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.Oqu(e)}}let Hi=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,Ri,2,1,"span",6),t.TgZ(9,"span",7),t._uU(10),t.qZA(),t.qZA(),t.qZA(),t.TgZ(11,"nz-descriptions-item",8),t.ynx(12,9),t.YNc(13,Li,2,0,"ng-container",10),t.YNc(14,Yi,2,0,"ng-container",10),t.YNc(15,Gi,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,Vi,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,$i,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,ji,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",i.loading),t.xp6(3),t.Oqu(i.roomInfo.title),t.xp6(2),t.AsE(" ",i.roomInfo.parent_area_name," - ",i.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",i.roomInfo.short_room_id),t.xp6(2),t.hij(" ",i.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",i.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==i.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",i.roomInfo.description.split("\n")))},directives:[A.bd,le,Nt,u.O5,u.RF,u.n9,u.sg,st],pipes:[u.uU],styles:['.room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}.tags[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;row-gap:.5em}.introduction[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0}'],changeDetection:0}),n})();var j=l(2134);let me=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const i=Math.floor(e/3600),s=Math.floor(e/60%60),a=Math.floor(e%60);let c="";return i>0&&(c+=i+":"),c+=s<10?"0"+s:s,c+=":",c+=a<10?"0"+a:a,c}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})(),At=(()=>{class n{transform(e,i){if("string"==typeof e)e=parseFloat(e);else if("number"!=typeof e||isNaN(e))return"N/A";return(i=Object.assign({bitrate:!1,precision:3,spacer:" "},i)).bitrate?(0,j.AX)(e,i.spacer,i.precision):(0,j.N4)(e,i.spacer,i.precision)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"datarate",type:n,pure:!0}),n})();var Wi=l(855);let Mt=(()=>{class n{transform(e,i){return Wi(e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();const Xi={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};let Qt=(()=>{class n{transform(e){return Xi[e]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"quality",type:n,pure:!0}),n})();function Ki(n,o){if(1&n&&(t._uU(0),t.ALo(1,"duration")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_elapsed))}}function to(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.rec_rate))}}const eo=function(){return{spacer:" "}};function no(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.rec_total,t.DdM(4,eo)))}}function io(n,o){if(1&n&&(t._uU(0),t.ALo(1,"quality")),2&n){const e=t.oxw();t.Oqu(t.lcZ(1,1,e.taskStatus.real_quality_number)+" ("+e.taskStatus.real_quality_number+")")}}let oo=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.N4)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u5f55\u5236\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:i=>(0,j.N4)(i)}},series:[{name:"\u5f55\u5236\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),this.taskStatus.rec_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-recording-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:17,vars:17,consts:[["nzTitle","\u5f55\u5236\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[3,"nzTitle","nzValueTemplate"],["recordingElapsed",""],["recordingRate",""],["recordedTotal",""],["recordingQuality",""],[3,"nzTitle","nzValue"],["echarts","",1,"rec-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Ki,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,to,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,no,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,io,2,3,"ng-template",null,6,t.W1O),t._UZ(14,"nz-statistic",7),t.ALo(15,"number"),t.qZA(),t._UZ(16,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",p),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,i.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[A.bd,ae,de],pipes:[me,At,Mt,Qt,u.JJ],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.rec-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})();function so(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function ao(n,o){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const ro=function(){return{bitrate:!0}};function lo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"datarate")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,8*e.taskStatus.dl_rate,t.DdM(4,ro)))}}const co=function(){return{spacer:" "}};function uo(n,o){if(1&n&&(t._uU(0),t.ALo(1,"filesize")),2&n){const e=t.oxw();t.Oqu(t.xi3(1,1,e.taskStatus.dl_total,t.DdM(4,co)))}}let po=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===O.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let i=59;i>=0;i--){const s=new Date(e-1e3*i);this.chartData.push({name:s.toLocaleString("zh-CN",{hour12:!1}),value:[s.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:i=>{const s=i[0];return`\n
\n
\n ${new Date(s.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,j.AX)(s.value[1])}
\n
\n `},axisPointer:{animation:!1}},xAxis:{type:"time",name:"\u65f6\u95f4",min:"dataMin",max:"dataMax",splitLine:{show:!0}},yAxis:{type:"value",name:"\u4e0b\u8f7d\u901f\u5ea6",splitLine:{show:!0},axisLabel:{formatter:function(i){return(0,j.AX)(i)}}},series:[{name:"\u4e0b\u8f7d\u901f\u5ea6",type:"line",showSymbol:!1,smooth:!0,lineStyle:{width:1},areaStyle:{opacity:.2},data:this.chartData}]}}updateChartOptions(){const e=new Date;this.chartData.push({name:e.toLocaleString("zh-CN",{hour12:!1}),value:[e.toISOString(),8*this.taskStatus.dl_rate]}),this.chartData.shift(),this.updatedChartOptions={series:[{data:this.chartData}]},this.changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-network-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},features:[t.TTD],decls:15,vars:12,consts:[["nzTitle","\u7f51\u7edc\u8be6\u60c5",3,"nzLoading"],[1,"statistics"],[1,"stream-host",3,"nzTitle","nzValueTemplate"],["streamHost",""],[3,"nzTitle","nzValueTemplate"],["realStreamFormat",""],["downloadRate",""],["downloadTotal",""],["echarts","",1,"dl-rate-chart",3,"loading","options","merge"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,so,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,ao,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,lo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,uo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const s=t.MAs(4),a=t.MAs(7),c=t.MAs(10),p=t.MAs(13);t.Q6J("nzLoading",i.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",c),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",p),t.xp6(3),t.Q6J("loading",i.loading)("options",i.initialChartOptions)("merge",i.updatedChartOptions)}},directives:[A.bd,ae,de],pipes:[At,Mt],styles:[".statistics[_ngcontent-%COMP%]{--grid-width: 200px;display:grid;grid-template-columns:repeat(auto-fill,var(--grid-width));grid-gap:1em;gap:1em;justify-content:center;margin:0 auto}@media screen and (max-width: 1024px){.statistics[_ngcontent-%COMP%]{--grid-width: 180px}}@media screen and (max-width: 720px){.statistics[_ngcontent-%COMP%]{--grid-width: 160px}}@media screen and (max-width: 680px){.statistics[_ngcontent-%COMP%]{--grid-width: 140px}}@media screen and (max-width: 480px){.statistics[_ngcontent-%COMP%]{--grid-width: 120px}}.stream-host[_ngcontent-%COMP%]{grid-column:1/3;grid-row:1}.dl-rate-chart[_ngcontent-%COMP%]{width:100%;height:300px;margin:0}"],changeDetection:0}),n})(),Ut=(()=>{class n{transform(e){var i,s;return e?e.startsWith("/")?null!==(i=e.split("/").pop())&&void 0!==i?i:"":null!==(s=e.split("\\").pop())&&void 0!==s?s:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),_e=(()=>{class n{transform(e){return e&&0!==e.duration?Math.round(e.time/e.duration*100):0}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"progress",type:n,pure:!0}),n})(),go=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}get title(){switch(this.taskStatus.postprocessor_status){case ut.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case ut.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let s;t.Q6J("nzTitle",i.title)("nzLoading",i.loading),t.xp6(1),t.Q6J("title",i.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(s=i.taskStatus.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzPercent",null===i.taskStatus.postprocessing_progress?0:t.lcZ(5,7,i.taskStatus.postprocessing_progress))}},directives:[A.bd,oe],pipes:[Ut,_e],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const mo=new Map([[T.RECORDING,"\u5f55\u5236\u4e2d"],[T.INJECTING,"\u5904\u7406\u4e2d"],[T.REMUXING,"\u5904\u7406\u4e2d"],[T.COMPLETED,"\u5df2\u5b8c\u6210"],[T.MISSING,"\u4e0d\u5b58\u5728"],[T.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let _o=(()=>{class n{transform(e){var i;return null!==(i=mo.get(e))&&void 0!==i?i:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function ho(n,o){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=o.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function fo(n,o){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=o.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const he=[T.RECORDING,T.INJECTING,T.REMUXING,T.COMPLETED,T.MISSING];let zo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=T,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,i)=>e.path.localeCompare(i.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,i)=>{switch(e){case"video":return i.path.endsWith(".flv")||i.path.endsWith(".mp4");case"danmaku":return i.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,i)=>e.size-i.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,i)=>he.indexOf(e.status)-he.indexOf(i.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[T.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[T.INJECTING,T.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[T.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[T.MISSING]}],filterFn:(e,i)=>e.some(s=>s.some(a=>a===i.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,i){return i.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,ho,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,fo,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const s=t.MAs(2);t.Q6J("nzLoading",i.loading),t.xp6(1),t.Q6J("nzLoading",i.loading)("nzData",i.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",i.columns),t.xp6(2),t.Q6J("ngForOf",s.data)("ngForTrackBy",i.trackByPath)}},directives:[A.bd,J.N8,J.Om,J.$Z,u.sg,J.Uo,J._C,J.qD,J.p0],pipes:[Ut,u.JJ,Mt,_o],styles:[".status.recording[_ngcontent-%COMP%]{color:red}.status.injecting[_ngcontent-%COMP%], .status.remuxing[_ngcontent-%COMP%]{color:#00f}.status.completed[_ngcontent-%COMP%]{color:green}.status.missing[_ngcontent-%COMP%]{color:gray}.status.broken[_ngcontent-%COMP%]{color:orange}"],changeDetection:0}),n})();function Co(n,o){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function To(n,o){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function xo(n,o){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ko(n,o){if(1&n&&t._UZ(0,"app-task-network-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function vo(n,o){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function yo(n,o){if(1&n&&(t.YNc(0,Co,1,2,"app-task-user-info-detail",2),t.YNc(1,To,1,2,"app-task-room-info-detail",3),t.YNc(2,xo,1,2,"app-task-recording-detail",4),t.YNc(3,ko,1,2,"app-task-network-detail",4),t.YNc(4,vo,1,2,"app-task-postprocessing-detail",4),t._UZ(5,"app-task-file-detail",5)),2&n){const e=t.oxw();t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",e.taskData),t.xp6(1),t.Q6J("ngIf",null==e.taskData||null==e.taskData.task_status?null:e.taskData.task_status.postprocessing_path),t.xp6(1),t.Q6J("loading",e.loading)("videoFileDetails",e.videoFileDetails)("danmakuFileDetails",e.danmakuFileDetails)}}const bo=function(){return{"max-width":"unset"}},So=function(){return{"row-gap":"1em"}};let Ao=(()=>{class n{constructor(e,i,s,a,c){this.route=e,this.router=i,this.changeDetector=s,this.notification=a,this.taskService=c,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,S.of)((0,S.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>Et(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(([e,i,s])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=i,this.danmakuFileDetails=s,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ct.gz),t.Y36(ct.F0),t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,yo,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",i.loading)("pageStyles",t.DdM(3,bo))("contentStyles",t.DdM(4,So))},directives:[Qi.q,Ui.Y,u.O5,qi,Hi,oo,po,go,zo],styles:[""],changeDetection:0}),n})();var fe=l(2323),Mo=l(13),Do=l(5778),H=l(4850);const pt=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var qt=l(9727);let Rt=(()=>{class n{constructor(e,i){this.message=e,this.taskService=i}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,H.U)(e=>e.map(i=>i.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,x.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e")},i=>{this.message.error(`\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${i.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,x.b)(()=>{this.message.success("\u6210\u529f\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e")},e=>{this.message.error(`\u5237\u65b0\u5168\u90e8\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${e.message}`)}))}addTask(e){return this.taskService.addTask(e).pipe((0,H.U)(i=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,it.K)(i=>{let s;return s=409==i.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==i.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==i.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${i.message}`},(0,S.of)(s)}),(0,H.U)(i=>(i.message=`${e}: ${i.message}`,i)),(0,x.b)(i=>{this.message[i.type](i.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,x.b)(()=>{this.message.success("\u4efb\u52a1\u5df2\u5220\u9664")},i=>{this.message.error(`\u5220\u9664\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}startTask(e){const i=this.message.loading("\u6b63\u5728\u8fd0\u884c\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u8fd0\u884c\u4efb\u52a1")},s=>{this.message.remove(i),this.message.error(`\u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},i=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${i.message}`)}))}stopTask(e,i=!1){const s=this.message.loading("\u6b63\u5728\u505c\u6b62\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopTask(e,i).pipe((0,x.b)(()=>{this.message.remove(s),this.message.success("\u6210\u529f\u505c\u6b62\u4efb\u52a1")},a=>{this.message.remove(s),this.message.error(`\u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}stopAllTasks(e=!1){const i=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},s=>{this.message.remove(i),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}enableRecorder(e){const i=this.message.loading("\u6b63\u5728\u5f00\u542f\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u5f00\u542f\u5f55\u5236")},s=>{this.message.remove(i),this.message.error(`\u5f00\u542f\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}enableAllRecorders(){const e=this.message.loading("\u6b63\u5728\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.enableAllRecorders().pipe((0,x.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},i=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${i.message}`)}))}disableRecorder(e,i=!1){const s=this.message.loading("\u6b63\u5728\u5173\u95ed\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,i).pipe((0,x.b)(()=>{this.message.remove(s),this.message.success("\u6210\u529f\u5173\u95ed\u5f55\u5236")},a=>{this.message.remove(s),this.message.error(`\u5173\u95ed\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}disableAllRecorders(e=!1){const i=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,x.b)(()=>{this.message.remove(i),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},s=>{this.message.remove(i),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,x.b)(()=>{this.message.success("\u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1")},i=>{403==i.status?this.message.warning("\u65f6\u957f\u592a\u77ed\u4e0d\u80fd\u5207\u5272\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002"):this.message.error(`\u5207\u5272\u6587\u4ef6\u51fa\u9519: ${i.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(qt.dD),t.LFG(St))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Lt=l(2683),gt=l(4219);function Oo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function Zo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),i=t.MAs(9),s=t.MAs(11),a=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(2),t.Q6J("ngTemplateOutlet",s),t.xp6(2),t.Q6J("ngTemplateOutlet",a)}}function wo(n,o){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),i=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",i)}}function Fo(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function No(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.YNc(1,Fo,3,2,"ng-container",15),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.selection),t.xp6(1),t.Q6J("ngForOf",e.selections)}}function Po(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().selection=s})("ngModelChange",function(s){return t.CHM(e),t.oxw().selectionChange.emit(s)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function Io(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const s=t.MAs(2),a=t.oxw();return s.value="",a.onFilterInput("")}),t.qZA()}}function Eo(n,o){if(1&n&&t.YNc(0,Io,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function Bo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const s=t.MAs(2);return t.oxw().onFilterInput(s.value)}),t.qZA(),t.qZA(),t.YNc(3,Eo,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Jo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function Qo(n,o){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Uo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function qo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function Ro(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),i=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",i)}}function Lo(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Yo=function(){return{padding:"0"}};function Go(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().drawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,Ro,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Lo,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),i=t.MAs(23);t.Q6J("nzTitle",i)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,Yo))("nzVisible",e.menuDrawerVisible)}}function Vo(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let $o=(()=>{class n{constructor(e,i,s,a,c,p){this.message=s,this.modal=a,this.clipboard=c,this.taskManager=p,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new k.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new k.xQ,this.selections=[{label:"\u5168\u90e8",value:D.ALL},{label:"\u5f55\u5236\u4e2d",value:D.RECORDING},{label:"\u5f55\u5236\u5f00",value:D.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:D.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:D.MONITOR_ENABLED},{label:"\u505c\u6b62",value:D.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:D.LIVING},{label:"\u8f6e\u64ad",value:D.ROUNDING},{label:"\u95f2\u7f6e",value:D.PREPARING}],i.observe(pt).pipe((0,v.R)(this.destroyed)).subscribe(r=>{this.useDrawer=r.breakpoints[pt[0]],this.useSelector=r.breakpoints[pt[1]],this.useRadioGroup=r.breakpoints[pt[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,Mo.b)(300),(0,Do.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,i)=>{this.taskManager.removeAllTasks().subscribe(e,i)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopAllTasks(e).subscribe(i,s)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableAllRecorders(e).subscribe(i,s)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,H.U)(e=>e.join(" ")),(0,x.b)(e=>{if(!this.clipboard.copy(e))throw Error("Failed to copy text to the clipboard")})).subscribe(()=>{this.message.success("\u5168\u90e8\u623f\u95f4\u53f7\u5df2\u590d\u5236\u5230\u526a\u5207\u677f")},e=>{this.message.error("\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7\u5230\u526a\u5207\u677f\u51fa\u9519",e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(U.Yg),t.Y36(qt.dD),t.Y36($.Sf),t.Y36(q),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,Oo,8,4,"ng-container",1),t.YNc(2,Zo,8,4,"ng-container",1),t.YNc(3,wo,3,2,"ng-container",1),t.qZA(),t.YNc(4,No,2,2,"ng-template",null,2,t.W1O),t.YNc(6,Po,1,2,"ng-template",null,3,t.W1O),t.YNc(8,Bo,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Jo,4,3,"ng-template",null,5,t.W1O),t.YNc(12,Qo,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Uo,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,qo,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Go,4,7,"nz-drawer",11),t.YNc(22,Vo,3,0,"ng-template",null,12,t.W1O)),2&e){const s=t.MAs(18);t.ekj("use-drawer",i.useDrawer),t.xp6(1),t.Q6J("ngIf",i.useRadioGroup),t.xp6(1),t.Q6J("ngIf",i.useSelector),t.xp6(1),t.Q6J("ngIf",i.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",s),t.xp6(5),t.Q6J("ngIf",i.useDrawer)}},directives:[u.O5,u.tP,Xt.g,Tt.Dg,d.JJ,d.On,u.sg,Tt.Of,Tt.Bq,wt.Vq,Lt.w,et.gB,et.ke,et.Zp,M.Ls,Ct.ix,tt.wA,tt.cm,tt.RR,gt.wO,gt.r9,gt.YV,lt.Vz,lt.SQ],styles:[".drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:.2em;width:100%;padding:.2em;background:#f9f9f9;border-left:none;border-right:none}.controls-wrapper[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{height:1.8em;top:0}.controls-wrapper[_ngcontent-%COMP%]:not(.use-drawer) .filter[_ngcontent-%COMP%]{max-width:18em}.controls-wrapper.use-drawer[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{max-width:unset;width:unset;flex:auto}.controls-wrapper[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{min-width:6em}.reverse-button[_ngcontent-%COMP%]{padding:0 .5em}.reverse-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}.more-actions-button[_ngcontent-%COMP%]{margin-left:auto;border:none;background:inherit}.more-actions-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}.menu[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]{margin:0}.drawer-header[_ngcontent-%COMP%]{display:flex}.drawer-content[_ngcontent-%COMP%] .reorder-button-wrapper[_ngcontent-%COMP%], .drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:2vw;gap:2vw}.drawer-content[_ngcontent-%COMP%] nz-divider[_ngcontent-%COMP%]:first-of-type{margin-top:0}.drawer-content[_ngcontent-%COMP%] .radio-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{text-align:center;padding:0}"],changeDetection:0}),n})();var jo=l(5136);let Ho=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var i;const s=this.storage.getData(this.getStorageKey(e));return s&&null!==(i=JSON.parse(s))&&void 0!==i?i:{}}updateSettings(e,i){i=Object.assign(this.getSettings(e),i);const s=JSON.stringify(i);this.storage.setData(this.getStorageKey(e),s)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(fe.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wo=(()=>{class n{constructor(e){this.changeDetector=e,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let i=0;i<=this.width;i+=2)this.data.push(0),this.points.push({x:i,y:this.height})}get polylinePoints(){return this.points.map(e=>`${e.x},${e.y}`).join(" ")}ngOnInit(){this.subscription=vt(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let e=Math.max(...this.data);this.points=this.data.map((i,s)=>({x:Math.min(2*s,this.width),y:(1-i/(e||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(e,i){1&e&&(t.O4$(),t.TgZ(0,"svg"),t._UZ(1,"polyline",0),t.qZA()),2&e&&(t.uIk("width",i.width)("height",i.height),t.xp6(1),t.uIk("stroke",i.stroke)("points",i.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),n})();function Xo(n,o){1&n&&(t.ynx(0),t._uU(1,", bluray"),t.BQk())}function Ko(n,o){if(1&n&&(t.TgZ(0,"li",4),t.TgZ(1,"span",5),t._uU(2,"\u6d41\u7f16\u7801\u5668"),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(4),t.Oqu(null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder)}}const Yt=function(){return{bitrate:!0}};function ts(n,o){if(1&n&&(t.TgZ(0,"ul",3),t.TgZ(1,"li",4),t.TgZ(2,"span",5),t._uU(3,"\u89c6\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(4,"span",6),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA(),t.TgZ(9,"span"),t._uU(10),t.qZA(),t.TgZ(11,"span"),t._uU(12),t.ALo(13,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"li",4),t.TgZ(15,"span",5),t._uU(16,"\u97f3\u9891\u4fe1\u606f"),t.qZA(),t.TgZ(17,"span",6),t.TgZ(18,"span"),t._uU(19),t.qZA(),t.TgZ(20,"span"),t._uU(21),t.qZA(),t.TgZ(22,"span"),t._uU(23),t.qZA(),t.TgZ(24,"span"),t._uU(25),t.ALo(26,"datarate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(27,"li",4),t.TgZ(28,"span",5),t._uU(29,"\u683c\u5f0f\u753b\u8d28"),t.qZA(),t.TgZ(30,"span",6),t.TgZ(31,"span"),t._uU(32),t.qZA(),t.TgZ(33,"span"),t._uU(34),t.ALo(35,"quality"),t.YNc(36,Xo,2,0,"ng-container",7),t._uU(37,") "),t.qZA(),t.qZA(),t.qZA(),t.YNc(38,Ko,5,1,"li",8),t.TgZ(39,"li",4),t.TgZ(40,"span",5),t._uU(41,"\u6d41\u4e3b\u673a\u540d"),t.qZA(),t.TgZ(42,"span",6),t._uU(43),t.qZA(),t.qZA(),t.TgZ(44,"li",4),t.TgZ(45,"span",5),t._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),t.qZA(),t._UZ(47,"app-wave-graph",9),t.TgZ(48,"span",6),t._uU(49),t.ALo(50,"datarate"),t.qZA(),t.qZA(),t.TgZ(51,"li",4),t.TgZ(52,"span",5),t._uU(53,"\u5f55\u5236\u901f\u5ea6"),t.qZA(),t._UZ(54,"app-wave-graph",9),t.TgZ(55,"span",6),t._uU(56),t.ALo(57,"datarate"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.hij(" ",null==e.profile.streams[0]?null:e.profile.streams[0].codec_name," "),t.xp6(2),t.AsE(" ",null==e.profile.streams[0]?null:e.profile.streams[0].width,"x",null==e.profile.streams[0]?null:e.profile.streams[0].height," "),t.xp6(2),t.hij(" ",(null==e.profile.streams[0]?null:e.profile.streams[0].r_frame_rate).split("/")[0]," fps"),t.xp6(2),t.hij(" ",t.xi3(13,19,1e3*e.metadata.videodatarate,t.DdM(32,Yt))," "),t.xp6(7),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].codec_name," "),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].sample_rate," HZ"),t.xp6(2),t.hij(" ",null==e.profile.streams[1]?null:e.profile.streams[1].channel_layout," "),t.xp6(2),t.hij(" ",t.xi3(26,22,1e3*e.metadata.audiodatarate,t.DdM(33,Yt))," "),t.xp6(7),t.hij(" ",e.data.task_status.real_stream_format," "),t.xp6(2),t.AsE(" ",t.lcZ(35,25,e.data.task_status.real_quality_number)," (",e.data.task_status.real_quality_number,""),t.xp6(2),t.Q6J("ngIf",e.isBlurayStreamQuality()),t.xp6(2),t.Q6J("ngIf",null==e.profile.streams[0]||null==e.profile.streams[0].tags?null:e.profile.streams[0].tags.encoder),t.xp6(5),t.hij(" ",e.data.task_status.stream_host," "),t.xp6(4),t.Q6J("value",e.data.task_status.dl_rate),t.xp6(2),t.hij(" ",t.xi3(50,27,8*e.data.task_status.dl_rate,t.DdM(34,Yt))," "),t.xp6(5),t.Q6J("value",e.data.task_status.rec_rate),t.xp6(2),t.hij(" ",t.lcZ(57,30,e.data.task_status.rec_rate)," ")}}let es=(()=>{class n{constructor(e,i,s){this.changeDetector=e,this.notification=i,this.taskService=s,this.metadata=null,this.close=new t.vpe,this.RunningStatus=O}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(e){e.preventDefault(),e.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,S.of)((0,S.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>Et(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(3,1e3)).subscribe(([e,i])=>{this.profile=e,this.metadata=i,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-info-panel"]],inputs:{data:"data",profile:"profile",metadata:"metadata"},outputs:{close:"close"},decls:4,vars:1,consts:[[1,"info-panel"],["title","\u5173\u95ed",1,"close-panel",3,"click"],["class","info-list",4,"ngIf"],[1,"info-list"],[1,"info-item"],[1,"label"],[1,"value"],[4,"ngIf"],["class","info-item",4,"ngIf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"button",1),t.NdJ("click",function(a){return i.closePanel(a)}),t._uU(2," [x] "),t.qZA(),t.YNc(3,ts,58,35,"ul",2),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.data.task_status.running_status===i.RunningStatus.RECORDING&&i.profile&&i.profile.streams&&i.profile.format&&i.metadata))},directives:[u.O5,Wo],pipes:[At,Qt],styles:['@charset "UTF-8";.info-panel[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.info-panel[_ngcontent-%COMP%]{position:absolute;top:2.55rem;bottom:2rem;left:0rem;right:0rem;width:100%;font-size:1rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent;width:4px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#eee;border-radius:2px}.info-panel[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#fff}.info-panel[_ngcontent-%COMP%] .close-panel[_ngcontent-%COMP%]{position:absolute;top:0rem;right:0rem;width:2rem;height:2rem;padding:0;color:#fff;background:transparent;border:none;font-size:1rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none;width:100%;height:100%}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:inline-block;margin:0;width:5rem;text-align:right}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]:after{content:"\\ff1a"}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:inline-block;margin:0;text-align:left}.info-panel[_ngcontent-%COMP%] .info-list[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child):before{content:", "}app-wave-graph[_ngcontent-%COMP%]{margin-right:1rem}'],changeDetection:0}),n})();const ze=function(){return{spacer:""}};function ns(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"datarate"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.ALo(12,"filesize"),t.qZA(),t.TgZ(13,"span",8),t.ALo(14,"number"),t._uU(15),t.ALo(16,"number"),t.qZA(),t.TgZ(17,"span",9),t._uU(18),t.ALo(19,"quality"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(5),t.hij(" ",t.lcZ(6,6,e.status.rec_elapsed)," "),t.xp6(3),t.hij(" ",t.xi3(9,8,e.status.rec_rate,t.DdM(22,ze))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ze))," "),t.xp6(2),t.MGl("nzTooltipTitle","\u5f39\u5e55\u603b\u8ba1\uff1a",t.xi3(14,14,e.status.danmu_total,"1.0-0"),""),t.xp6(2),t.hij(" ",t.xi3(16,17,e.status.danmu_total,"1.0-0")," "),t.xp6(3),t.hij(" ",t.lcZ(19,20,e.status.real_quality_number)," ")}}function is(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}function os(n,o){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let i,s;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(i=e.status.postprocessing_path)&&void 0!==i?i:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(s=e.status.postprocessing_path)&&void 0!==s?s:"")," "),t.xp6(2),t.Q6J("nzType","line")("nzShowInfo",!1)("nzStrokeLinecap","square")("nzStrokeWidth",2)("nzPercent",null===e.status.postprocessing_progress?0:t.lcZ(6,11,e.status.postprocessing_progress))}}let ss=(()=>{class n{constructor(){this.RunningStatus=O}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-status-display"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","status-display",4,"ngSwitchCase"],[1,"status-display"],[1,"status-bar","recording"],["nz-tooltip","","nzTooltipTitle","\u6b63\u5728\u5f55\u5236","nzTooltipPlacement","top",1,"status-indicator"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u7528\u65f6","nzTooltipPlacement","top",1,"time-elapsed"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u901f\u5ea6","nzTooltipPlacement","top",1,"data-rate"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u603b\u8ba1","nzTooltipPlacement","top",1,"data-count"],["nz-tooltip","","nzTooltipPlacement","top",1,"danmu-count",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u753b\u8d28","nzTooltipPlacement","leftTop",1,"quality"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","injecting",3,"nzTooltipTitle"],[3,"nzType","nzShowInfo","nzStrokeLinecap","nzStrokeWidth","nzPercent"],["nz-tooltip","","nzTooltipPlacement","top",1,"status-bar","remuxing",3,"nzTooltipTitle"]],template:function(e,i){1&e&&(t.ynx(0,0),t.YNc(1,ns,20,24,"div",1),t.YNc(2,is,7,13,"div",1),t.YNc(3,os,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",i.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",i.RunningStatus.REMUXING))},directives:[u.RF,u.n9,rt.SY,oe],pipes:[me,At,Mt,u.JJ,Qt,Ut,_e],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var I=l(3523),w=l(8737);function as(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function rs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function ls(n,o){if(1&n&&(t.YNc(0,as,2,0,"ng-container",61),t.YNc(1,rs,2,0,"ng-container",61)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function cs(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u9009\u62e9\u8981\u5f55\u5236\u7684\u76f4\u64ad\u6d41\u683c\u5f0f"),t._UZ(2,"br"),t._UZ(3,"br"),t._uU(4," FLV \u7f51\u7edc\u4e0d\u7a33\u5b9a\u5bb9\u6613\u4e2d\u65ad\u4e22\u5931\u6570\u636e "),t._UZ(5,"br"),t._uU(6," HLS (ts) \u57fa\u672c\u4e0d\u53d7\u672c\u5730\u7f51\u7edc\u5f71\u54cd "),t._UZ(7,"br"),t._uU(8," HLS (fmp4) \u53ea\u6709\u5c11\u6570\u76f4\u64ad\u95f4\u652f\u6301 "),t._UZ(9,"br"),t._UZ(10,"br"),t._uU(11," P.S."),t._UZ(12,"br"),t._uU(13," \u975e FLV \u683c\u5f0f\u9700\u8981 ffmpeg"),t._UZ(14,"br"),t._uU(15," HLS (fmp4) \u4e0d\u652f\u6301\u4f1a\u81ea\u52a8\u5207\u6362\u5230 HLS (ts)"),t._UZ(16,"br"),t.qZA())}function us(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u81ea\u52a8: \u6ca1\u51fa\u9519\u5c31\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(2,"br"),t._uU(3," \u8c28\u614e: \u6ca1\u51fa\u9519\u4e14\u6ca1\u8b66\u544a\u624d\u5220\u9664\u6e90\u6587\u4ef6"),t._UZ(4,"br"),t._uU(5," \u4ece\u4e0d: \u603b\u662f\u4fdd\u7559\u6e90\u6587\u4ef6"),t._UZ(6,"br"),t.qZA())}function ps(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function gs(n,o){1&n&&t.YNc(0,ps,2,0,"ng-container",61),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function ds(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.pathTemplate=s}),t.qZA(),t.YNc(10,ls,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.pathTemplate=s?a.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",10),t.TgZ(15,"nz-form-label",11),t._uU(16,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(17,"nz-form-control",12),t.TgZ(18,"nz-select",13),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.filesizeLimit=s}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.filesizeLimit=s?a.globalSettings.output.filesizeLimit:null}),t._uU(20,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(21,"nz-form-item",10),t.TgZ(22,"nz-form-label",11),t._uU(23,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(24,"nz-form-control",12),t.TgZ(25,"nz-select",14),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.output.durationLimit=s}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.output.durationLimit=s?a.globalSettings.output.durationLimit:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(28,"div",15),t.TgZ(29,"h2"),t._uU(30,"\u5f55\u5236"),t.qZA(),t.TgZ(31,"nz-form-item",10),t.TgZ(32,"nz-form-label",11),t._uU(33,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(34,cs,17,0,"ng-template",null,16,t.W1O),t.TgZ(36,"nz-form-control",12),t.TgZ(37,"nz-select",17),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.streamFormat=s}),t.qZA(),t.qZA(),t.TgZ(38,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.streamFormat=s?a.globalSettings.recorder.streamFormat:null}),t._uU(39,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(40,"nz-form-item",10),t.TgZ(41,"nz-form-label",18),t._uU(42,"\u753b\u8d28"),t.qZA(),t.TgZ(43,"nz-form-control",12),t.TgZ(44,"nz-select",19),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.qualityNumber=s}),t.qZA(),t.qZA(),t.TgZ(45,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.qualityNumber=s?a.globalSettings.recorder.qualityNumber:null}),t._uU(46,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(47,"nz-form-item",10),t.TgZ(48,"nz-form-label",20),t._uU(49,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(50,"nz-form-control",21),t.TgZ(51,"nz-switch",22),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.saveCover=s}),t.qZA(),t.qZA(),t.TgZ(52,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.saveCover=s?a.globalSettings.recorder.saveCover:null}),t._uU(53,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(54,"nz-form-item",10),t.TgZ(55,"nz-form-label",23),t._uU(56,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(57,"nz-form-control",24),t.TgZ(58,"nz-select",25,26),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.readTimeout=s}),t.qZA(),t.qZA(),t.TgZ(60,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.readTimeout=s?a.globalSettings.recorder.readTimeout:null}),t._uU(61,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(62,"nz-form-item",10),t.TgZ(63,"nz-form-label",27),t._uU(64,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(65,"nz-form-control",12),t.TgZ(66,"nz-select",28),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=s}),t.qZA(),t.qZA(),t.TgZ(67,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(68,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(69,"nz-form-item",10),t.TgZ(70,"nz-form-label",29),t._uU(71,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(72,"nz-form-control",12),t.TgZ(73,"nz-select",30),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.recorder.bufferSize=s}),t.qZA(),t.qZA(),t.TgZ(74,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.recorder.bufferSize=s?a.globalSettings.recorder.bufferSize:null}),t._uU(75,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(76,"div",31),t.TgZ(77,"h2"),t._uU(78,"\u5f39\u5e55"),t.qZA(),t.TgZ(79,"nz-form-item",10),t.TgZ(80,"nz-form-label",32),t._uU(81,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(82,"nz-form-control",21),t.TgZ(83,"nz-switch",33),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=s}),t.qZA(),t.qZA(),t.TgZ(84,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGiftSend=s?a.globalSettings.danmaku.recordGiftSend:null}),t._uU(85,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(86,"nz-form-item",10),t.TgZ(87,"nz-form-label",34),t._uU(88,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(89,"nz-form-control",21),t.TgZ(90,"nz-switch",35),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=s}),t.qZA(),t.qZA(),t.TgZ(91,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordFreeGifts=s?a.globalSettings.danmaku.recordFreeGifts:null}),t._uU(92,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(93,"nz-form-item",10),t.TgZ(94,"nz-form-label",36),t._uU(95,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(96,"nz-form-control",21),t.TgZ(97,"nz-switch",37),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=s}),t.qZA(),t.qZA(),t.TgZ(98,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordGuardBuy=s?a.globalSettings.danmaku.recordGuardBuy:null}),t._uU(99,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(100,"nz-form-item",10),t.TgZ(101,"nz-form-label",38),t._uU(102,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(103,"nz-form-control",21),t.TgZ(104,"nz-switch",39),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=s}),t.qZA(),t.qZA(),t.TgZ(105,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.recordSuperChat=s?a.globalSettings.danmaku.recordSuperChat:null}),t._uU(106,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(107,"nz-form-item",10),t.TgZ(108,"nz-form-label",40),t._uU(109,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(110,"nz-form-control",21),t.TgZ(111,"nz-switch",41),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.danmuUname=s}),t.qZA(),t.qZA(),t.TgZ(112,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.danmuUname=s?a.globalSettings.danmaku.danmuUname:null}),t._uU(113,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(114,"nz-form-item",10),t.TgZ(115,"nz-form-label",42),t._uU(116,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(117,"nz-form-control",21),t.TgZ(118,"nz-switch",43),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=s}),t.qZA(),t.qZA(),t.TgZ(119,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.danmaku.saveRawDanmaku=s?a.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(120,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(121,"div",44),t.TgZ(122,"h2"),t._uU(123,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.TgZ(124,"nz-form-item",10),t.TgZ(125,"nz-form-label",45),t._uU(126,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(127,"nz-form-control",21),t.TgZ(128,"nz-switch",46),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=s}),t.qZA(),t.qZA(),t.TgZ(129,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.injectExtraMetadata=s?a.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(130,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(131,"nz-form-item",10),t.TgZ(132,"nz-form-label",47),t._uU(133,"flv \u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(134,"nz-form-control",21),t.TgZ(135,"nz-switch",48),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=s}),t.qZA(),t.qZA(),t.TgZ(136,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.remuxToMp4=s?a.globalSettings.postprocessing.remuxToMp4:null}),t._uU(137,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(138,"nz-form-item",10),t.TgZ(139,"nz-form-label",11),t._uU(140,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(141,us,7,0,"ng-template",null,49,t.W1O),t.TgZ(143,"nz-form-control",12),t.TgZ(144,"nz-select",50),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=s}),t.qZA(),t.qZA(),t.TgZ(145,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.postprocessing.deleteSource=s?a.globalSettings.postprocessing.deleteSource:null}),t._uU(146,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(147,"div",51),t.TgZ(148,"h2"),t._uU(149,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(150,"nz-form-item",52),t.TgZ(151,"nz-form-label",53),t._uU(152,"User Agent"),t.qZA(),t.TgZ(153,"nz-form-control",54),t.TgZ(154,"textarea",55,56),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.userAgent=s}),t.qZA(),t.qZA(),t.YNc(156,gs,1,1,"ng-template",null,8,t.W1O),t.TgZ(158,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.userAgent=s?a.globalSettings.header.userAgent:null}),t._uU(159,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(160,"nz-form-item",52),t.TgZ(161,"nz-form-label",57),t._uU(162,"Cookie"),t.qZA(),t.TgZ(163,"nz-form-control",58),t.TgZ(164,"textarea",59,60),t.NdJ("ngModelChange",function(s){return t.CHM(e),t.oxw().model.header.cookie=s}),t.qZA(),t.qZA(),t.TgZ(166,"label",9),t.NdJ("nzCheckedChange",function(s){t.CHM(e);const a=t.oxw();return a.options.header.cookie=s?a.globalSettings.header.cookie:null}),t._uU(167,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),i=t.MAs(35),s=t.MAs(59),a=t.MAs(142),c=t.MAs(155),p=t.MAs(165),r=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",r.pathTemplatePattern)("ngModel",r.model.output.pathTemplate)("disabled",null===r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==r.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.filesizeLimit)("disabled",null===r.options.output.filesizeLimit)("nzOptions",r.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",r.splitFileTip),t.xp6(3),t.Q6J("ngModel",r.model.output.durationLimit)("disabled",null===r.options.output.durationLimit)("nzOptions",r.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.output.durationLimit),t.xp6(6),t.Q6J("nzTooltipTitle",i),t.xp6(5),t.Q6J("ngModel",r.model.recorder.streamFormat)("disabled",null===r.options.recorder.streamFormat)("nzOptions",r.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.streamFormat),t.xp6(6),t.Q6J("ngModel",r.model.recorder.qualityNumber)("disabled",null===r.options.recorder.qualityNumber)("nzOptions",r.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",r.model.recorder.saveCover)("disabled",null===r.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.saveCover),t.xp6(5),t.Q6J("nzValidateStatus",s.value>3?"warning":s),t.xp6(1),t.Q6J("ngModel",r.model.recorder.readTimeout)("disabled",null===r.options.recorder.readTimeout)("nzOptions",r.timeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==r.options.recorder.readTimeout),t.xp6(6),t.Q6J("ngModel",r.model.recorder.disconnectionTimeout)("disabled",null===r.options.recorder.disconnectionTimeout)("nzOptions",r.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(6),t.Q6J("ngModel",r.model.recorder.bufferSize)("disabled",null===r.options.recorder.bufferSize)("nzOptions",r.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==r.options.recorder.bufferSize),t.xp6(9),t.Q6J("ngModel",r.model.danmaku.recordGiftSend)("disabled",null===r.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordFreeGifts)("disabled",null===r.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordGuardBuy)("disabled",null===r.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.recordSuperChat)("disabled",null===r.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.danmuUname)("disabled",null===r.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",r.model.danmaku.saveRawDanmaku)("disabled",null===r.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==r.options.danmaku.saveRawDanmaku),t.xp6(9),t.Q6J("ngModel",r.model.postprocessing.injectExtraMetadata)("disabled",null===r.options.postprocessing.injectExtraMetadata||!!r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.injectExtraMetadata),t.xp6(6),t.Q6J("ngModel",r.model.postprocessing.remuxToMp4)("disabled",null===r.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",r.model.postprocessing.deleteSource)("disabled",null===r.options.postprocessing.deleteSource||!r.options.postprocessing.remuxToMp4)("nzOptions",r.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==r.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",c.valid&&r.options.header.userAgent!==r.taskOptions.header.userAgent&&r.options.header.userAgent!==r.globalSettings.header.userAgent?"warning":c)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.userAgent)("disabled",null===r.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==r.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",r.warningTip)("nzValidateStatus",p.valid&&r.options.header.cookie!==r.taskOptions.header.cookie&&r.options.header.cookie!==r.globalSettings.header.cookie?"warning":p),t.xp6(1),t.Q6J("rows",3)("ngModel",r.model.header.cookie)("disabled",null===r.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==r.options.header.cookie)}}let ms=(()=>{class n{constructor(e){this.changeDetector=e,this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.afterOpen=new t.vpe,this.afterClose=new t.vpe,this.warningTip="\u9700\u8981\u91cd\u542f\u5f39\u5e55\u5ba2\u6237\u7aef\u624d\u80fd\u751f\u6548\uff0c\u5982\u679c\u4efb\u52a1\u6b63\u5728\u5f55\u5236\u53ef\u80fd\u4f1a\u4e22\u5931\u5f39\u5e55\uff01",this.splitFileTip=w.Uk,this.pathTemplatePattern=w._m,this.filesizeLimitOptions=(0,I.Z)(w.Pu),this.durationLimitOptions=(0,I.Z)(w.Fg),this.streamFormatOptions=(0,I.Z)(w.tp),this.qualityOptions=(0,I.Z)(w.O6),this.timeoutOptions=(0,I.Z)(w.D4),this.disconnectionTimeoutOptions=(0,I.Z)(w.$w),this.bufferOptions=(0,I.Z)(w.Rc),this.deleteStrategies=(0,I.Z)(w.rc)}ngOnChanges(){this.options=(0,I.Z)(this.taskOptions),this.setupModel(),this.changeDetector.markForCheck()}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit((0,j.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const i of Object.keys(this.options)){const c=this.globalSettings[i];Reflect.set(e,i,new Proxy(this.options[i],{get:(p,r)=>{var z;return null!==(z=Reflect.get(p,r))&&void 0!==z?z:Reflect.get(c,r)},set:(p,r,z)=>Reflect.set(p,r,z)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(d.F,5),2&e){let s;t.iGM(s=t.CRH())&&(i.ngForm=s.first)}},inputs:{taskOptions:"taskOptions",globalSettings:"globalSettings",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm",afterOpen:"afterOpen",afterClose:"afterClose"},features:[t.TTD],decls:2,vars:2,consts:[["nzTitle","\u4efb\u52a1\u8bbe\u7f6e","nzCentered","",3,"nzVisible","nzOkDisabled","nzOnOk","nzOnCancel","nzAfterOpen","nzAfterClose"],[4,"nzModalContent"],["nz-form","","ngForm",""],["ngModelGroup","output",1,"form-group","output"],[1,"setting-item","input"],["nzNoColon","","nzTooltipTitle","\u53d8\u91cf\u8bf4\u660e\u8bf7\u67e5\u770b\u5bf9\u5e94\u5168\u5c40\u8bbe\u7f6e",1,"setting-label"],[1,"setting-control","input",3,"nzErrorTip"],["type","text","required","","nz-input","","name","pathTemplate",3,"pattern","ngModel","disabled","ngModelChange"],["errorTip",""],["nz-checkbox","",3,"nzChecked","nzCheckedChange"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","select"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","recorder",1,"form-group","recorder"],["streamFormatTip",""],["name","streamFormat",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u6240\u9009\u753b\u8d28\u4e0d\u5b58\u5728\u5c06\u4ee5\u539f\u753b\u4ee3\u66ff",1,"setting-label"],["name","qualityNumber",3,"ngModel","disabled","nzOptions","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u5f55\u64ad\u6587\u4ef6\u5b8c\u6210\u65f6\u4fdd\u5b58\u5f53\u524d\u76f4\u64ad\u95f4\u7684\u5c01\u9762",1,"setting-label"],[1,"setting-control","switch"],["name","saveCover",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8d85\u65f6\u65f6\u95f4\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u957f\u76f8\u5bf9\u4e0d\u5bb9\u6613\u56e0\u7f51\u7edc\u4e0d\u7a33\u5b9a\u800c\u51fa\u73b0\u6d41\u4e2d\u65ad\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u4e2d\u65ad\u5c31\u65e0\u6cd5\u5b9e\u73b0\u65e0\u7f1d\u62fc\u63a5\u4e14\u6f0f\u5f55\u8f83\u591a\u3002",1,"setting-label"],["nzWarningTip","\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01",1,"setting-control","select",3,"nzValidateStatus"],["name","readTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["readTimeout","ngModel"],["nzNoColon","","nzTooltipTitle","\u65ad\u7f51\u8d85\u8fc7\u7b49\u5f85\u65f6\u95f4\u5c31\u7ed3\u675f\u5f55\u5236\uff0c\u5982\u679c\u7f51\u7edc\u6062\u590d\u540e\u4ecd\u672a\u4e0b\u64ad\u4f1a\u81ea\u52a8\u91cd\u65b0\u5f00\u59cb\u5f55\u5236\u3002",1,"setting-label"],["name","disconnectionTimeout",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["name","bufferSize",3,"ngModel","disabled","nzOptions","nzOptionOverflowSize","ngModelChange"],["ngModelGroup","danmaku",1,"form-group","danmaku"],["nzFor","recordGiftSend","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGiftSend","name","recordGiftSend",3,"ngModel","disabled","ngModelChange"],["nzFor","recordFreeGifts","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u514d\u8d39\u793c\u7269\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordFreeGifts","name","recordFreeGifts",3,"ngModel","disabled","ngModelChange"],["nzFor","recordGuardBuy","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55\u4e0a\u8230\u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordGuardBuy","name","recordGuardBuy",3,"ngModel","disabled","ngModelChange"],["nzFor","recordSuperChat","nzNoColon","","nzTooltipTitle","\u8bb0\u5f55 Super Chat \u4fe1\u606f\u5230\u5f39\u5e55\u6587\u4ef6\u91cc",1,"setting-label"],["id","recordSuperChat","name","recordSuperChat",3,"ngModel","disabled","ngModelChange"],["nzFor","danmuUname","nzNoColon","","nzTooltipTitle","\u53d1\u9001\u8005: \u5f39\u5e55\u5185\u5bb9",1,"setting-label"],["id","danmuUname","name","danmuUname",3,"ngModel","disabled","ngModelChange"],["nzFor","saveRawDanmaku","nzNoColon","","nzTooltipTitle","\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55\u5230 JSON lines \u6587\u4ef6\uff0c\u4e3b\u8981\u7528\u4e8e\u5206\u6790\u8c03\u8bd5\u3002",1,"setting-label"],["id","saveRawDanmaku","name","saveRawDanmaku",3,"ngModel","disabled","ngModelChange"],["ngModelGroup","postprocessing",1,"form-group","postprocessing"],["nzNoColon","","nzTooltipTitle","\u6dfb\u52a0\u5173\u952e\u5e27\u7b49\u5143\u6570\u636e\u4f7f\u5b9a\u4f4d\u64ad\u653e\u548c\u62d6\u8fdb\u5ea6\u6761\u4e0d\u4f1a\u5361\u987f",1,"setting-label"],["name","injectExtraMetadata",3,"ngModel","disabled","ngModelChange"],["nzNoColon","","nzTooltipTitle","\u8c03\u7528 ffmpeg \u8fdb\u884c\u8f6c\u6362\uff0c\u9700\u8981\u5b89\u88c5 ffmpeg \u3002",1,"setting-label"],["name","remuxToMp4",3,"ngModel","disabled","ngModelChange"],["deleteSourceTip",""],["name","deleteSource",3,"ngModel","disabled","nzOptions","ngModelChange"],["ngModelGroup","header",1,"form-group","header"],[1,"setting-item","textarea"],["nzFor","userAgent","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus","nzErrorTip"],["nz-input","","required","","id","userAgent","name","userAgent",3,"rows","ngModel","disabled","ngModelChange"],["userAgent","ngModel"],["nzFor","cookie","nzNoColon","",1,"setting-label"],[1,"setting-control","textarea",3,"nzWarningTip","nzValidateStatus"],["nz-input","","id","cookie","name","cookie",3,"rows","ngModel","disabled","ngModelChange"],["cookie","ngModel"],[4,"ngIf"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()})("nzAfterOpen",function(){return i.afterOpen.emit()})("nzAfterClose",function(){return i.afterClose.emit()}),t.YNc(1,ds,168,84,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",null==i.ngForm||null==i.ngForm.form?null:i.ngForm.form.invalid)},directives:[$.du,$.Hf,d._Y,d.JL,d.F,B.Lr,d.Mq,N.SK,B.Nx,N.t3,B.iK,B.Fd,et.Zp,d.Fj,d.Q7,d.c5,d.JJ,d.On,u.O5,Wt.Ie,wt.Vq,Zt.i],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}.setting-label[_ngcontent-%COMP%]{padding:0!important;max-width:-moz-fit-content!important;max-width:fit-content!important;text-align:left}.setting-label.align-required[_ngcontent-%COMP%]{position:relative;left:11px}.setting-control[_ngcontent-%COMP%], .setting-value[_ngcontent-%COMP%]{max-width:-moz-fit-content!important;max-width:fit-content!important;margin-left:auto!important}.setting-control.input[_ngcontent-%COMP%], .setting-value.input[_ngcontent-%COMP%]{max-width:100%!important}.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{max-width:8em!important;width:8em!important}.setting-control.switch[_ngcontent-%COMP%], .setting-value.switch[_ngcontent-%COMP%]{flex-direction:row-reverse;align-items:center}.setting-control.checkbox[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}.setting-control.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .setting-value.checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%}.setting-control.textarea[_ngcontent-%COMP%], .setting-value.textarea[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;margin-left:0}@media screen and (max-width: 332px){.setting-control.radio[_ngcontent-%COMP%], .setting-value.radio[_ngcontent-%COMP%]{margin-left:0!important}}@media screen and (max-width: 319px){.setting-control.select[_ngcontent-%COMP%], .setting-value.select[_ngcontent-%COMP%]{margin-left:0!important}}.setting-value[_ngcontent-%COMP%]{color:#5f6368;font-weight:400}nz-divider[_ngcontent-%COMP%]{margin:0!important}.form-group[_ngcontent-%COMP%]:last-child .setting-item[_ngcontent-%COMP%]:last-child{padding-bottom:0}.setting-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);align-items:center;padding:1em 0;grid-gap:1em;gap:1em;border:none}.setting-item[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0!important}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{justify-self:start}.setting-item[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%] span:last-of-type{padding-right:0}.setting-item.input[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item.input[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-row:1/2;grid-column:1/2;justify-self:center}.setting-item.input[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] .setting-control[_ngcontent-%COMP%]{grid-row:2/3;grid-column:1/-1;justify-self:stretch}.setting-item.input[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%], .setting-item.textarea[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{grid-row:1/2;grid-column:2/3;justify-self:center}@media screen and (max-width: 450px){.setting-item[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.setting-item[_ngcontent-%COMP%] .setting-label[_ngcontent-%COMP%]{grid-column:1/-1;justify-self:center}.setting-item[_ngcontent-%COMP%] label[nz-checkbox][_ngcontent-%COMP%]{justify-self:end}}"],changeDetection:0}),n})();function Ce(n,o,e,i,s,a,c){try{var p=n[a](c),r=p.value}catch(z){return void e(z)}p.done?o(r):Promise.resolve(r).then(i,s)}var Gt=l(5254),hs=l(3753),fs=l(2313);const Vt=new Map,$t=new Map;let zs=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,i="object"){return"object"===i?$t.has(e)?(0,S.of)($t.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,H.U)(s=>URL.createObjectURL(s)),(0,H.U)(s=>this.domSanitizer.bypassSecurityTrustUrl(s)),(0,x.b)(s=>$t.set(e,s)),(0,it.K)(()=>(0,S.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):Vt.has(e)?(0,S.of)(Vt.get(e)):(0,Gt.D)(this.fetchImage(e)).pipe((0,nt.w)(s=>this.createDataURL(s)),(0,x.b)(s=>Vt.set(e,s)),(0,it.K)(()=>(0,S.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function _s(n){return function(){var o=this,e=arguments;return new Promise(function(i,s){var a=n.apply(o,e);function c(r){Ce(a,i,s,c,p,"next",r)}function p(r){Ce(a,i,s,c,p,"throw",r)}c(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const i=new FileReader,s=(0,hs.R)(i,"load").pipe((0,H.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(i.result)));return i.readAsDataURL(e),s}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(fs.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function Cs(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-info-panel",21),t.NdJ("close",function(){return t.CHM(e),t.oxw(2).showInfoPanel=!1}),t.qZA()}if(2&n){const e=t.oxw(2);t.Q6J("data",e.data)}}const Ts=function(n){return[n,"detail"]};function xs(n,o){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,Cs,1,1,"app-info-panel",19),t._UZ(8,"app-status-display",20),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.Q6J("routerLink",t.VKq(10,Ts,e.data.room_info.room_id)),t.xp6(2),t.Q6J("src",t.lcZ(3,6,t.lcZ(4,8,e.data.room_info.cover)),t.LSH),t.xp6(3),t.Q6J("nzTooltipTitle","\u76f4\u64ad\u95f4\u6807\u9898\uff1a"+e.data.room_info.title),t.xp6(1),t.hij(" ",e.data.room_info.title," "),t.xp6(1),t.Q6J("ngIf",e.showInfoPanel),t.xp6(1),t.Q6J("status",e.data.task_status)}}function ks(n,o){if(1&n&&(t._UZ(0,"nz-avatar",22),t.ALo(1,"async"),t.ALo(2,"dataurl")),2&n){const e=t.oxw();t.Q6J("nzShape","square")("nzSize",54)("nzSrc",t.lcZ(1,3,t.lcZ(2,5,e.data.user_info.face)))}}function vs(n,o){1&n&&(t.TgZ(0,"nz-tag",31),t._UZ(1,"i",32),t.TgZ(2,"span"),t._uU(3,"\u672a\u5f00\u64ad"),t.qZA(),t.qZA())}function ys(n,o){1&n&&(t.TgZ(0,"nz-tag",33),t._UZ(1,"i",34),t.TgZ(2,"span"),t._uU(3,"\u76f4\u64ad\u4e2d"),t.qZA(),t.qZA())}function bs(n,o){1&n&&(t.TgZ(0,"nz-tag",35),t._UZ(1,"i",36),t.TgZ(2,"span"),t._uU(3,"\u8f6e\u64ad\u4e2d"),t.qZA(),t.qZA())}function Ss(n,o){if(1&n&&(t.TgZ(0,"p",23),t.TgZ(1,"span",24),t.TgZ(2,"a",25),t._uU(3),t.qZA(),t.qZA(),t.TgZ(4,"span",26),t.ynx(5,27),t.YNc(6,vs,4,0,"nz-tag",28),t.YNc(7,ys,4,0,"nz-tag",29),t.YNc(8,bs,4,0,"nz-tag",30),t.BQk(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.MGl("href","https://space.bilibili.com/",e.data.user_info.uid,"",t.LSH),t.xp6(1),t.hij(" ",e.data.user_info.name," "),t.xp6(2),t.Q6J("ngSwitch",e.data.room_info.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2)}}function As(n,o){if(1&n&&(t.TgZ(0,"span",44),t.TgZ(1,"a",25),t._uU(2),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.MGl("href","https://live.bilibili.com/",e.data.room_info.short_room_id,"",t.LSH),t.xp6(1),t.hij(" ",e.data.room_info.short_room_id,"")}}function Ms(n,o){if(1&n&&(t.TgZ(0,"p",37),t.TgZ(1,"span",38),t.TgZ(2,"span",39),t._uU(3,"\u623f\u95f4\u53f7\uff1a"),t.qZA(),t.YNc(4,As,3,2,"span",40),t.TgZ(5,"span",41),t.TgZ(6,"a",25),t._uU(7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(8,"span",42),t.TgZ(9,"a",25),t.TgZ(10,"nz-tag",43),t._uU(11),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.data.room_info.short_room_id),t.xp6(2),t.MGl("href","https://live.bilibili.com/",e.data.room_info.room_id,"",t.LSH),t.xp6(1),t.Oqu(e.data.room_info.room_id),t.xp6(2),t.hYB("href","https://live.bilibili.com/p/eden/area-tags?parentAreaId=",e.data.room_info.parent_area_id,"&areaId=",e.data.room_info.area_id,"",t.LSH),t.xp6(1),t.Q6J("nzColor","#23ade5"),t.xp6(1),t.hij(" ",e.data.room_info.area_name," ")}}function Ds(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-switch",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleRecorder()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzDisabled",e.toggleRecorderForbidden)("ngModel",e.data.task_status.recorder_enabled)("nzControl",!0)("nzLoading",e.switchPending)}}function Os(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",46),t.NdJ("click",function(){return t.CHM(e),t.oxw().cutStream()}),t._UZ(1,"i",47),t.qZA()}if(2&n){const e=t.oxw();t.ekj("not-allowed",e.data.task_status.running_status!==e.RunningStatus.RECORDING)}}function Zs(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(s){return t.CHM(e),t.oxw(2).settingsDialogVisible=s})("confirm",function(s){return t.CHM(e),t.oxw(2).changeTaskOptions(s)})("afterClose",function(){return t.CHM(e),t.oxw(2).cleanSettingsData()}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("taskOptions",e.taskOptions)("globalSettings",e.globalSettings)("visible",e.settingsDialogVisible)}}function ws(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSettingsDialog()}),t._UZ(1,"i",49),t.qZA(),t.YNc(2,Zs,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function Fs(n,o){if(1&n&&(t.TgZ(0,"div",54),t._UZ(1,"i",55),t.qZA()),2&n){t.oxw(2);const e=t.MAs(20);t.Q6J("nzDropdownMenu",e)}}function Ns(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"div",56),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!0}),t._UZ(1,"i",55),t.qZA()}}function Ps(n,o){if(1&n&&(t.YNc(0,Fs,2,1,"div",52),t.YNc(1,Ns,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function Is(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"ul",57),t.TgZ(1,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().startTask()}),t._uU(2,"\u8fd0\u884c\u4efb\u52a1"),t.qZA(),t.TgZ(3,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask()}),t._uU(4,"\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(5,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTask()}),t._uU(6,"\u5220\u9664\u4efb\u52a1"),t.qZA(),t.TgZ(7,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopTask(!0)}),t._uU(8,"\u5f3a\u5236\u505c\u6b62\u4efb\u52a1"),t.qZA(),t.TgZ(9,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableRecorder(!0)}),t._uU(10,"\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(11,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateTaskInfo()}),t._uU(12,"\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(13,"li",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().showInfoPanel=!0}),t._uU(14,"\u663e\u793a\u5f55\u5236\u4fe1\u606f"),t.qZA(),t.qZA()}}function Es(n,o){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",61),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,12),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(23);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const Bs=function(){return{padding:"0"}};function Js(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(s){return t.CHM(e),t.oxw().menuDrawerVisible=s})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Es,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,Bs))("nzVisible",e.menuDrawerVisible)}}const Qs=function(n,o,e,i){return[n,o,e,i]},Us=function(){return{padding:"0.5rem"}},qs=function(){return{size:"large"}};let Rs=(()=>{class n{constructor(e,i,s,a,c,p,r){this.changeDetector=i,this.message=s,this.modal=a,this.settingService=c,this.taskManager=p,this.appTaskSettings=r,this.stopped=!1,this.destroyed=new k.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=O,e.observe(pt[0]).pipe((0,v.R)(this.destroyed)).subscribe(z=>{this.useDrawer=z.matches,i.markForCheck()})}get roomId(){return this.data.room_info.room_id}get toggleRecorderForbidden(){return!this.data.task_status.monitor_enabled}get showInfoPanel(){return Boolean(this.appTaskSettings.getSettings(this.roomId).showInfoPanel)}set showInfoPanel(e){this.appTaskSettings.updateSettings(this.roomId,{showInfoPanel:e})}ngOnChanges(e){console.debug("[ngOnChanges]",this.roomId,e),this.stopped=this.data.task_status.running_status===O.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===O.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==O.STOPPED?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.stopTask(this.roomId,e).subscribe(i,s)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==O.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((i,s)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(i,s)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){Et(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,i])=>{this.taskOptions=e,this.globalSettings=i,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,bt.X)(3,300)).subscribe(i=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},i=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)})}cutStream(){this.data.task_status.running_status===O.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.Yg),t.Y36(t.sBO),t.Y36(qt.dD),t.Y36($.Sf),t.Y36(jo.R),t.Y36(Rt),t.Y36(Ho))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("stopped",i.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"data","close",4,"ngIf"],[3,"status"],[3,"data","close"],[3,"nzShape","nzSize","nzSrc"],[1,"meta-title"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u4e3b\u64ad\u4e2a\u4eba\u7a7a\u95f4\u9875\u9762","nzTooltipPlacement","right",1,"user-name"],["target","_blank",3,"href"],[1,"live-status"],[3,"ngSwitch"],["nzColor","default",4,"ngSwitchCase"],["nzColor","red",4,"ngSwitchCase"],["nzColor","green",4,"ngSwitchCase"],["nzColor","default"],["nz-icon","","nzType","frown"],["nzColor","red"],["nz-icon","","nzType","fire"],["nzColor","green"],["nz-icon","","nzType","sync","nzSpin",""],[1,"meta-desc"],[1,"room-id-wrapper"],[1,"room-id-label"],["class","short-room-id","nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",4,"ngIf"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"real-room-id"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u5206\u533a\u9875\u9762","nzTooltipPlacement","leftTop",1,"area-name"],[3,"nzColor"],["nz-tooltip","","nzTooltipTitle","\u6253\u5f00\u76f4\u64ad\u95f4\u9875\u9762","nzTooltipPlacement","bottom",1,"short-room-id"],["nz-tooltip","","nzTooltipTitle","\u5f55\u5236\u5f00\u5173",3,"nzDisabled","ngModel","nzControl","nzLoading","click"],["nz-tooltip","","nzTooltipTitle","\u5207\u5272\u6587\u4ef6",3,"click"],["nz-icon","","nzType","scissor",1,"action-icon"],["nz-tooltip","","nzTooltipTitle","\u4efb\u52a1\u8bbe\u7f6e",3,"click"],["nz-icon","","nzType","setting",1,"action-icon"],[4,"ngIf"],[3,"taskOptions","globalSettings","visible","visibleChange","confirm","afterClose"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu",4,"ngIf"],[3,"click",4,"ngIf"],["nz-dropdown","","nzPlacement","topRight",3,"nzDropdownMenu"],["nz-icon","","nzType","more",1,"action-icon"],[3,"click"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],[1,"drawer-content",3,"click"]],template:function(e,i){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,xs,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ks,3,7,"ng-template",null,4,t.W1O),t.YNc(7,Ss,9,6,"ng-template",null,5,t.W1O),t.YNc(9,Ms,12,7,"ng-template",null,6,t.W1O),t.YNc(11,Ds,1,4,"ng-template",null,7,t.W1O),t.YNc(13,Os,2,2,"ng-template",null,8,t.W1O),t.YNc(15,ws,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Ps,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,Is,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Js,2,4,"nz-drawer",14)),2&e){const s=t.MAs(4),a=t.MAs(6),c=t.MAs(8),p=t.MAs(10),r=t.MAs(12),z=t.MAs(14),Z=t.MAs(16),F=t.MAs(18),E=t.MAs(23);t.Q6J("nzCover",s)("nzHoverable",!0)("nzActions",t.l5B(12,Qs,z,Z,r,F))("nzBodyStyle",t.DdM(17,Us)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!i.data)("nzAvatar",t.DdM(18,qs)),t.xp6(1),t.Q6J("nzAvatar",a)("nzTitle",c)("nzDescription",p),t.xp6(19),t.Q6J("ngTemplateOutlet",E),t.xp6(3),t.Q6J("ngIf",i.useDrawer)}},directives:[A.bd,ye,A.l7,ct.yS,rt.SY,u.O5,es,ss,at.Dz,u.RF,u.n9,st,M.Ls,Lt.w,Zt.i,d.JJ,d.On,ms,tt.cm,tt.RR,u.tP,gt.wO,gt.r9,lt.Vz,lt.SQ],pipes:[u.Ov,zs],styles:['.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{box-shadow:none;padding:.5em 0}.drawer-content[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] *[nz-menu-item][_ngcontent-%COMP%]{margin:0;padding:.5em 2em}.stopped[_nghost-%COMP%]{filter:grayscale(100%)}a[_ngcontent-%COMP%]{color:inherit}a[_ngcontent-%COMP%]:hover{color:#1890ff}a[_ngcontent-%COMP%]:focus-visible{outline:-webkit-focus-ring-color auto 1px}.cover-wrapper[_ngcontent-%COMP%]{--cover-ratio: 264 / 470;--cover-height: calc(var(--card-width) * var(--cover-ratio));position:relative;width:var(--card-width);height:var(--cover-height)}.cover-wrapper[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{width:100%;max-height:var(--cover-height);object-fit:cover}.cover-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;top:.5rem;left:.5rem;font-size:1.2rem;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 1em);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}nz-card-meta[_ngcontent-%COMP%]{margin:0}.meta-title[_ngcontent-%COMP%]{margin:0;display:flex;column-gap:1em}.meta-title[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{color:#fb7299;font-size:1rem;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.meta-title[_ngcontent-%COMP%] .live-status[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;position:relative;bottom:1px}.meta-desc[_ngcontent-%COMP%]{margin:0;display:flex}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .short-room-id[_ngcontent-%COMP%]:after{display:inline-block;width:1em;content:","}@media screen and (max-width: 320px){.meta-desc[_ngcontent-%COMP%] .room-id-wrapper[_ngcontent-%COMP%] .room-id-label[_ngcontent-%COMP%]{display:none}}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%]{margin-left:auto}.meta-desc[_ngcontent-%COMP%] .area-name[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;border-radius:30px;padding:0 1em}.action-icon[_ngcontent-%COMP%]{font-size:16px}.not-allowed[_ngcontent-%COMP%]{cursor:not-allowed}'],changeDetection:0}),n})();function Ls(n,o){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Ys(n,o){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",o.$implicit)}function Gs(n,o){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Ys,1,1,"app-task-item",5),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.dataList)("ngForTrackBy",e.trackByRoomId)}}let Vs=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,i){return i.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,i){if(1&e&&(t.YNc(0,Ls,2,0,"div",0),t.YNc(1,Gs,3,2,"ng-template",null,1,t.W1O)),2&e){const s=t.MAs(2);t.Q6J("ngIf",0===i.dataList.length)("ngIfElse",s)}},directives:[u.O5,Kt.p9,u.sg,Rs],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}[_nghost-%COMP%]{--card-width: 400px;--grid-gutter: 12px;padding:var(--grid-gutter)}@media screen and (max-width: 400px){[_nghost-%COMP%]{--card-width: 100%;padding:var(--grid-gutter) 0}}.tasks-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,var(--card-width));grid-gap:var(--grid-gutter);gap:var(--grid-gutter);justify-content:center;max-width:100%;margin:0 auto}.empty-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;align-items:center;justify-content:center}"],changeDetection:0}),n})();var $s=l(2643),js=l(1406);function Hs(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function Ws(n,o){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function Xs(n,o){if(1&n&&(t.YNc(0,Hs,2,0,"ng-container",8),t.YNc(1,Ws,2,0,"ng-container",8)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ks(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=o.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function ta(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Xs,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,Ks,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",i.pattern),t.xp6(4),t.Q6J("ngForOf",i.resultMessages)}}const ea=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,na=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let ia=(()=>{class n{constructor(e,i,s){this.changeDetector=i,this.taskManager=s,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=na,this.formGroup=e.group({input:["",[d.kI.required,d.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let i;i=e.startsWith("http")?[parseInt(ea.exec(e)[1])]:new Set(e.split(/\s+/).map(s=>parseInt(s))),(0,Gt.D)(i).pipe((0,js.b)(s=>this.taskManager.addTask(s)),(0,x.b)(s=>{this.resultMessages.push(s),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(s=>"success"===s.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.qu),t.Y36(t.sBO),t.Y36(Rt))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,ta,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkLoading",i.pending)("nzOkDisabled",i.formGroup.invalid)("nzCancelDisabled",i.pending)("nzClosable",!i.pending)("nzMaskClosable",!i.pending)},directives:[$.du,$.Hf,d._Y,d.JL,B.Lr,d.sg,N.SK,B.Nx,N.t3,B.Fd,et.Zp,d.Fj,d.Q7,d.JJ,d.u,d.c5,u.O5,u.sg,He],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),sa=(()=>{class n{transform(e,i=""){return console.debug("filter tasks by '%s'",i),[...this.filterByTerm(e,i)]}filterByTerm(e,i){return function*oa(n,o){for(const e of n)o(e)&&(yield e)}(e,s=>""===(i=i.trim())||s.user_info.name.includes(i)||s.room_info.title.toString().includes(i)||s.room_info.area_name.toString().includes(i)||s.room_info.room_id.toString().includes(i)||s.room_info.short_room_id.toString().includes(i))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function aa(n,o){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function ra(n,o){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const Te="app-tasks-selection",xe="app-tasks-reverse",la=[{path:":id/detail",component:Ao},{path:"",component:(()=>{class n{constructor(e,i,s,a){this.changeDetector=e,this.notification=i,this.storage=s,this.taskService=a,this.loading=!0,this.dataList=[],this.filterTerm="",this.selection=this.retrieveSelection(),this.reverse=this.retrieveReverse()}ngOnInit(){this.syncTaskData()}ngOnDestroy(){this.desyncTaskData()}onSelectionChanged(e){this.selection=e,this.storeSelection(e),this.desyncTaskData(),this.syncTaskData()}onReverseChanged(e){this.reverse=e,this.storeReverse(e),e&&(this.dataList=[...this.dataList.reverse()],this.changeDetector.markForCheck())}retrieveSelection(){const e=this.storage.getData(Te);return null!==e?e:D.ALL}retrieveReverse(){return"true"===this.storage.getData(xe)}storeSelection(e){this.storage.setData(Te,e)}storeReverse(e){this.storage.setData(xe,e.toString())}syncTaskData(){this.dataSubscription=(0,S.of)((0,S.of)(0),vt(1e3)).pipe((0,Bt.u)(),(0,nt.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,it.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,bt.X)(10,3e3)).subscribe(e=>{this.loading=!1,this.dataList=this.reverse?e.reverse():e,this.changeDetector.markForCheck()},e=>{this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519","\u7f51\u7edc\u8fde\u63a5\u5f02\u5e38, \u8bf7\u5f85\u7f51\u7edc\u6b63\u5e38\u540e\u5237\u65b0\u3002",{nzDuration:0})})}desyncTaskData(){var e;null===(e=this.dataSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Jt.zb),t.Y36(fe.V),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,i){if(1&e){const s=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(c){return i.onSelectionChanged(c)})("reverseChange",function(c){return i.onReverseChanged(c)})("filterChange",function(c){return i.filterTerm=c}),t.qZA(),t.YNc(1,aa,1,2,"nz-spin",1),t.YNc(2,ra,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(s),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const s=t.MAs(3);t.Q6J("selection",i.selection)("reverse",i.reverse),t.xp6(1),t.Q6J("ngIf",i.loading)("ngIfElse",s)}},directives:[$o,u.O5,te.W,Vs,Ct.ix,$s.dQ,Lt.w,rt.SY,M.Ls,ia],pipes:[sa],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0;overflow:hidden}.add-task-button[_ngcontent-%COMP%]{position:fixed;bottom:5vh;right:5vw}"],changeDetection:0}),n})()}];let ca=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ct.Bz.forChild(la)],ct.Bz]}),n})(),ua=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[u.ez,d.u5,d.UX,U.xu,dt,N.Jb,A.vh,Ht,at.Rt,M.PV,Ht,rt.cg,G,Zt.m,tt.b1,Ct.sL,$.Qp,B.U5,et.o7,Wt.Wr,Ee,Tt.aF,Xt.S,Kt.Xo,te.j,We,lt.BL,wt.LV,bn,J.HQ,Bn,Ti,Ai.forRoot({echarts:()=>l.e(45).then(l.bind(l,8045))}),ca,Mi.m]]}),n})()},855:function(jt){jt.exports=function(){"use strict";var ot=/^(b|B)$/,l={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},u={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},d={floor:Math.floor,ceil:Math.ceil};function U(t){var _,q,R,W,dt,N,A,M,m,k,v,L,C,y,Y,X,st,G,at,Dt,V,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=[],K=0;if(isNaN(t))throw new TypeError("Invalid number");if(R=!0===h.bits,Y=!0===h.unix,L=!0===h.pad,C=void 0!==h.round?h.round:Y?1:2,A=void 0!==h.locale?h.locale:"",M=h.localeOptions||{},X=void 0!==h.separator?h.separator:"",st=void 0!==h.spacer?h.spacer:Y?"":" ",at=h.symbols||{},G=2===(q=h.base||2)&&h.standard||"jedec",v=h.output||"string",dt=!0===h.fullform,N=h.fullforms instanceof Array?h.fullforms:[],_=void 0!==h.exponent?h.exponent:-1,Dt=d[h.roundingMethod]||Math.round,m=(k=Number(t))<0,W=q>2?1e3:1024,V=!1===isNaN(h.precision)?parseInt(h.precision,10):0,m&&(k=-k),(-1===_||isNaN(_))&&(_=Math.floor(Math.log(k)/Math.log(W)))<0&&(_=0),_>8&&(V>0&&(V+=8-_),_=8),"exponent"===v)return _;if(0===k)g[0]=0,y=g[1]=Y?"":l[G][R?"bits":"bytes"][_];else{K=k/(2===q?Math.pow(2,10*_):Math.pow(1e3,_)),R&&(K*=8)>=W&&_<8&&(K/=W,_++);var mt=Math.pow(10,_>0?C:0);g[0]=Dt(K*mt)/mt,g[0]===W&&_<8&&void 0===h.exponent&&(g[0]=1,_++),y=g[1]=10===q&&1===_?R?"kb":"kB":l[G][R?"bits":"bytes"][_],Y&&(g[1]="jedec"===G?g[1].charAt(0):_>0?g[1].replace(/B$/,""):g[1],ot.test(g[1])&&(g[0]=Math.floor(g[0]),g[1]=""))}if(m&&(g[0]=-g[0]),V>0&&(g[0]=g[0].toPrecision(V)),g[1]=at[g[1]]||g[1],!0===A?g[0]=g[0].toLocaleString():A.length>0?g[0]=g[0].toLocaleString(A,M):X.length>0&&(g[0]=g[0].toString().replace(".",X)),L&&!1===Number.isInteger(g[0])&&C>0){var _t=X||".",ht=g[0].toString().split(_t),ft=ht[1]||"",zt=ft.length,Ot=C-zt;g[0]="".concat(ht[0]).concat(_t).concat(ft.padEnd(zt+Ot,"0"))}return dt&&(g[1]=N[_]?N[_]:u[G][_]+(R?"bit":"byte")+(1===g[0]?"":"s")),"array"===v?g:"object"===v?{value:g[0],symbol:g[1],exponent:_,unit:y}:g.join(st)}return U.partial=function(t){return function(_){return U(_,t)}},U}()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/index.html b/src/blrec/data/webapp/index.html index 4ab17ea..9b3ff3b 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/ngsw.json b/src/blrec/data/webapp/ngsw.json index 30b2475..1e1d1f6 100644 --- a/src/blrec/data/webapp/ngsw.json +++ b/src/blrec/data/webapp/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1651566774775, + "timestamp": 1651812628293, "index": "/index.html", "assetGroups": [ { @@ -14,15 +14,15 @@ "/103.5b5d2a6e5a8a7479.js", "/146.92e3b29c4c754544.js", "/45.c90c3cea2bf1a66e.js", - "/474.88f730916af2dc81.js", - "/66.17103bf51c59b5c8.js", - "/869.ac675e78fa0ea7cf.js", + "/474.c2cc33b068a782fc.js", + "/66.31f5b9ae46ae9005.js", + "/869.42b1fd9a88732b97.js", "/common.858f777e9296e6f2.js", "/index.html", "/main.b9234f0840c7101a.js", "/manifest.webmanifest", "/polyfills.4b08448aee19bb22.js", - "/runtime.5296fd12ffdfadbe.js", + "/runtime.6dfcba40e2a24845.js", "/styles.1f581691b230dc4d.css" ], "patterns": [] @@ -1637,9 +1637,9 @@ "/103.5b5d2a6e5a8a7479.js": "cc0240f217015b6d4ddcc14f31fcc42e1c1c282a", "/146.92e3b29c4c754544.js": "3824de681dd1f982ea69a065cdf54d7a1e781f4d", "/45.c90c3cea2bf1a66e.js": "e5bfb8cf3803593e6b8ea14c90b3d3cb6a066764", - "/474.88f730916af2dc81.js": "e7cb3e7bd68c162633d94c8c848dea2daeac8bc3", - "/66.17103bf51c59b5c8.js": "67c9bb3ac7e7c7c25ebe1db69fc87890a2fdc184", - "/869.ac675e78fa0ea7cf.js": "f45052016cb5201d5784b3f261e719d96bd1b153", + "/474.c2cc33b068a782fc.js": "cb59c0b560cdceeccf9c17df5e9be76bfa942775", + "/66.31f5b9ae46ae9005.js": "cc22d2582d8e4c2a83e089d5a1ec32619e439ccd", + "/869.42b1fd9a88732b97.js": "ca5c951f04d02218b3fe7dc5c022dad22bf36eca", "/assets/animal/panda.js": "fec2868bb3053dd2da45f96bbcb86d5116ed72b1", "/assets/animal/panda.svg": "bebd302cdc601e0ead3a6d2710acf8753f3d83b1", "/assets/fill/.gitkeep": "da39a3ee5e6b4b0d3255bfef95601890afd80709", @@ -3234,11 +3234,11 @@ "/assets/twotone/warning.js": "fb2d7ea232f3a99bf8f080dbc94c65699232ac01", "/assets/twotone/warning.svg": "8c7a2d3e765a2e7dd58ac674870c6655cecb0068", "/common.858f777e9296e6f2.js": "b68ca68e1e214a2537d96935c23410126cc564dd", - "/index.html": "4957097d609200632fe355aef8f7603a3bb1addc", + "/index.html": "02b6c1c31185bec91e297c4f224b2d193f9c981c", "/main.b9234f0840c7101a.js": "c8c7b588c070b957a2659f62d6a77de284aa2233", "/manifest.webmanifest": "62c1cb8c5ad2af551a956b97013ab55ce77dd586", "/polyfills.4b08448aee19bb22.js": "8e73f2d42cc13ca353cea5c886d930bd6da08d0d", - "/runtime.5296fd12ffdfadbe.js": "5b84a91028ab9e0daaaf89d70f2d12c48d5e358e", + "/runtime.6dfcba40e2a24845.js": "9dc2eec70103e3ee2249dde68eeb09910a7ae02d", "/styles.1f581691b230dc4d.css": "6f5befbbad57c2b2e80aae855139744b8010d150" }, "navigationUrls": [ diff --git a/src/blrec/data/webapp/runtime.5296fd12ffdfadbe.js b/src/blrec/data/webapp/runtime.6dfcba40e2a24845.js similarity index 60% rename from src/blrec/data/webapp/runtime.5296fd12ffdfadbe.js rename to src/blrec/data/webapp/runtime.6dfcba40e2a24845.js index ca6c23d..d0d5396 100644 --- a/src/blrec/data/webapp/runtime.5296fd12ffdfadbe.js +++ b/src/blrec/data/webapp/runtime.6dfcba40e2a24845.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)+"."+{45:"c90c3cea2bf1a66e",66:"17103bf51c59b5c8",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",474:"88f730916af2dc81",592:"858f777e9296e6f2",869:"ac675e78fa0ea7cf"}[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[d]))?t.splice(d--,1):(c=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,o,f]},r.n=e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return r.d(i,{a:i}),i},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",66:"31f5b9ae46ae9005",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",474:"c2cc33b068a782fc",592:"858f777e9296e6f2",869:"42b1fd9a88732b97"}[e]+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="blrec:";r.l=(t,o,f,n)=>{if(e[t])e[t].push(o);else{var a,c;if(void 0!==f)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(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((l,s)=>n=e[o]=[l,s]);f.push(n[2]=a);var c=r.p+r.u(o),d=new Error;r.l(c,l=>{if(r.o(e,o)&&(0!==(n=e[o])&&(e[o]=void 0),n)){var s=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;d.message="Loading chunk "+o+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,n[1](d)}},"chunk-"+o,o)}else e[o]=0},r.O.j=o=>0===e[o];var i=(o,f)=>{var d,u,[n,a,c]=f,l=0;if(n.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var s=c(r)}for(o&&o(f);l 0: break + else: + raise EOFError('no tags') start = tag.timestamp end = start + duration diff --git a/src/blrec/flv/stream_processor.py b/src/blrec/flv/stream_processor.py index 2823228..5b4b3a9 100644 --- a/src/blrec/flv/stream_processor.py +++ b/src/blrec/flv/stream_processor.py @@ -381,11 +381,26 @@ class StreamProcessor: bytes_io = io.BytesIO() writer = FlvWriter(bytes_io) writer.write_header(flv_header) - writer.write_tag(self._parameters_checker.last_metadata_tag) - writer.write_tag(self._parameters_checker.last_video_header_tag) + writer.write_tag( + self._correct_ts( + self._parameters_checker.last_metadata_tag, + -self._parameters_checker.last_metadata_tag.timestamp, + ) + ) + writer.write_tag( + self._correct_ts( + self._parameters_checker.last_video_header_tag, + -self._parameters_checker.last_video_header_tag.timestamp, + ) + ) if self._parameters_checker.last_audio_header_tag is not None: - writer.write_tag(self._parameters_checker.last_audio_header_tag) - writer.write_tag(first_data_tag) + writer.write_tag( + self._correct_ts( + self._parameters_checker.last_audio_header_tag, + -self._parameters_checker.last_audio_header_tag.timestamp, + ) + ) + writer.write_tag(self._correct_ts(first_data_tag, -first_data_tag.timestamp)) def on_next(profile: StreamProfile) -> None: self._stream_profile_updates.on_next(profile) diff --git a/src/blrec/notification/providers.py b/src/blrec/notification/providers.py index 66f67ff..8e5d72f 100644 --- a/src/blrec/notification/providers.py +++ b/src/blrec/notification/providers.py @@ -5,7 +5,7 @@ import ssl from abc import ABC, abstractmethod from email.message import EmailMessage from http.client import HTTPException -from typing import Final, Literal, TypedDict, cast +from typing import Final, Literal, TypedDict, Dict, Any, cast from urllib.parse import urljoin import aiohttp @@ -192,7 +192,7 @@ class Pushplus(MessagingProvider): class TelegramResponse(TypedDict): ok: bool - result: dict + result: Dict[str, Any] class Telegram(MessagingProvider): diff --git a/src/blrec/postprocess/postprocessor.py b/src/blrec/postprocess/postprocessor.py index 710dd1a..7de84ce 100644 --- a/src/blrec/postprocess/postprocessor.py +++ b/src/blrec/postprocess/postprocessor.py @@ -245,6 +245,7 @@ class Postprocessor( out_path, metadata_path, report_progress=True, + remove_filler_data=True, ).subscribe( on_next, lambda e: future.set_exception(e), diff --git a/src/blrec/postprocess/remuxer.py b/src/blrec/postprocess/remuxer.py index 11bde5f..28aa184 100644 --- a/src/blrec/postprocess/remuxer.py +++ b/src/blrec/postprocess/remuxer.py @@ -61,12 +61,20 @@ class VideoRemuxer: in_path: str, out_path: str, metadata_path: Optional[str] = None, + *, + remove_filler_data: bool = False, ) -> RemuxResult: + cmd = f'ffmpeg -i "{in_path}"' if metadata_path is not None: - cmd = f'ffmpeg -i "{in_path}" -i "{metadata_path}" ' \ - f'-map_metadata 1 -codec copy "{out_path}" -y' - else: - cmd = f'ffmpeg -i "{in_path}" -codec copy "{out_path}" -y' + cmd += f' -i "{metadata_path}" -map_metadata 1' + cmd += ' -codec copy' + if remove_filler_data: + # https://forum.doom9.org/showthread.php?t=152051 + # ISO_IEC_14496-10_2020(E) + # Table 7-1 – NAL unit type codes, syntax element categories, and NAL unit type classes # noqa + # 7.4.2.7 Filler data RBSP semantics + cmd += ' -bsf:v filter_units=remove_types=12' + cmd += f' "{out_path}" -y' args = shlex.split(cmd) out_lines: List[str] = [] @@ -140,6 +148,7 @@ def remux_video( metadata_path: Optional[str] = None, *, report_progress: bool = False, + remove_filler_data: bool = False, ) -> Observable: def subscribe( observer: Observer[Union[RemuxProgress, RemuxResult]], @@ -167,7 +176,12 @@ def remux_video( ) try: - result = remuxer.remux(in_path, out_path, metadata_path) + result = remuxer.remux( + in_path, + out_path, + metadata_path, + remove_filler_data=remove_filler_data, + ) except Exception as e: observer.on_error(e) else: diff --git a/src/blrec/setting/models.py b/src/blrec/setting/models.py index 9701b8f..110287d 100644 --- a/src/blrec/setting/models.py +++ b/src/blrec/setting/models.py @@ -20,6 +20,7 @@ from pydantic.networks import HttpUrl, EmailStr from ..bili.typing import StreamFormat, QualityNumber from ..postprocess import DeleteStrategy +from ..core.cover_downloader import CoverSaveStrategy from ..logging.typing import LOG_LEVEL from ..utils.string import camel_case @@ -144,12 +145,21 @@ class DanmakuSettings(DanmakuOptions): class RecorderOptions(BaseModel): stream_format: Optional[StreamFormat] quality_number: Optional[QualityNumber] + fmp4_stream_timeout: Optional[int] read_timeout: Optional[int] # seconds disconnection_timeout: Optional[int] # seconds buffer_size: Annotated[ # bytes Optional[int], Field(ge=4096, le=1024 ** 2 * 512, multiple_of=2) ] save_cover: Optional[bool] + cover_save_strategy: Optional[CoverSaveStrategy] + + @validator('fmp4_stream_timeout') + def _validate_fmp4_stream_timeout(cls, v: Optional[int]) -> Optional[int]: + if v is not None: + allowed_values = frozenset((3, 5, 10, 30, 60, 180, 300, 600)) + cls._validate_with_collection(v, allowed_values) + return v @validator('read_timeout') def _validate_read_timeout(cls, value: Optional[int]) -> Optional[int]: @@ -171,12 +181,14 @@ class RecorderOptions(BaseModel): class RecorderSettings(RecorderOptions): stream_format: StreamFormat = 'flv' quality_number: QualityNumber = 20000 # 4K, the highest quality. + fmp4_stream_timeout: int = 10 read_timeout: int = 3 disconnection_timeout: int = 600 buffer_size: Annotated[ int, Field(ge=4096, le=1024 ** 2 * 512, multiple_of=2) ] = 8192 save_cover: bool = False + cover_save_strategy: CoverSaveStrategy = CoverSaveStrategy.DEFAULT class PostprocessingOptions(BaseModel): @@ -465,8 +477,8 @@ class Settings(BaseModel): version: str = '1.0' tasks: Annotated[List[TaskSettings], Field(max_items=100)] = [] - output: OutputSettings = OutputSettings() - logging: LoggingSettings = LoggingSettings() + output: OutputSettings = OutputSettings() # type: ignore + logging: LoggingSettings = LoggingSettings() # type: ignore header: HeaderSettings = HeaderSettings() danmaku: DanmakuSettings = DanmakuSettings() recorder: RecorderSettings = RecorderSettings() diff --git a/src/blrec/task/models.py b/src/blrec/task/models.py index 2f9f52d..7cc39be 100644 --- a/src/blrec/task/models.py +++ b/src/blrec/task/models.py @@ -6,6 +6,7 @@ import attr from ..bili.models import RoomInfo, UserInfo from ..bili.typing import StreamFormat, QualityNumber +from ..core.cover_downloader import CoverSaveStrategy from ..postprocess import DeleteStrategy, PostprocessorStatus from ..postprocess.typing import Progress @@ -32,8 +33,8 @@ class TaskStatus: rec_rate: float # Number of Bytes per second danmu_total: int # Number of Danmu in total danmu_rate: float # Number of Danmu per minutes - real_stream_format: StreamFormat - real_quality_number: QualityNumber + real_stream_format: Optional[StreamFormat] + real_quality_number: Optional[QualityNumber] recording_path: Optional[str] = None postprocessor_status: PostprocessorStatus = PostprocessorStatus.WAITING postprocessing_path: Optional[str] = None @@ -60,10 +61,12 @@ class TaskParam: # RecorderSettings stream_format: StreamFormat quality_number: QualityNumber + fmp4_stream_timeout: int read_timeout: int disconnection_timeout: Optional[int] buffer_size: int save_cover: bool + cover_save_strategy: CoverSaveStrategy # PostprocessingOptions remux_to_mp4: bool inject_extra_metadata: bool diff --git a/src/blrec/task/task.py b/src/blrec/task/task.py index 2a4d0c2..7d0de84 100644 --- a/src/blrec/task/task.py +++ b/src/blrec/task/task.py @@ -19,6 +19,7 @@ from ..bili.live_monitor import LiveMonitor from ..bili.typing import StreamFormat, QualityNumber from ..core import Recorder from ..core.stream_analyzer import StreamProfile +from ..core.cover_downloader import CoverSaveStrategy from ..postprocess import Postprocessor, PostprocessorStatus, DeleteStrategy from ..postprocess.remuxer import RemuxProgress from ..flv.metadata_injector import InjectProgress @@ -257,6 +258,14 @@ class RecordTask: def save_cover(self, value: bool) -> None: self._recorder.save_cover = value + @property + def cover_save_strategy(self) -> CoverSaveStrategy: + return self._recorder.cover_save_strategy + + @cover_save_strategy.setter + def cover_save_strategy(self, value: CoverSaveStrategy) -> None: + self._recorder.cover_save_strategy = value + @property def save_raw_danmaku(self) -> bool: return self._recorder.save_raw_danmaku @@ -282,11 +291,19 @@ class RecordTask: self._recorder.quality_number = value @property - def real_stream_format(self) -> StreamFormat: + def fmp4_stream_timeout(self) -> int: + return self._recorder.fmp4_stream_timeout + + @fmp4_stream_timeout.setter + def fmp4_stream_timeout(self, value: int) -> None: + self._recorder.fmp4_stream_timeout = value + + @property + def real_stream_format(self) -> Optional[StreamFormat]: return self._recorder.real_stream_format @property - def real_quality_number(self) -> QualityNumber: + def real_quality_number(self) -> Optional[QualityNumber]: return self._recorder.real_quality_number @property diff --git a/src/blrec/task/task_manager.py b/src/blrec/task/task_manager.py index 76c4130..1218a32 100644 --- a/src/blrec/task/task_manager.py +++ b/src/blrec/task/task_manager.py @@ -285,10 +285,12 @@ class RecordTaskManager: task = self._get_task(room_id) task.stream_format = settings.stream_format task.quality_number = settings.quality_number + task.fmp4_stream_timeout = settings.fmp4_stream_timeout task.read_timeout = settings.read_timeout task.disconnection_timeout = settings.disconnection_timeout task.buffer_size = settings.buffer_size task.save_cover = settings.save_cover + task.cover_save_strategy = settings.cover_save_strategy def apply_task_postprocessing_settings( self, room_id: int, settings: PostprocessingSettings @@ -322,9 +324,11 @@ class RecordTaskManager: record_guard_buy=task.record_guard_buy, record_super_chat=task.record_super_chat, save_cover=task.save_cover, + cover_save_strategy=task.cover_save_strategy, save_raw_danmaku=task.save_raw_danmaku, stream_format=task.stream_format, quality_number=task.quality_number, + fmp4_stream_timeout=task.fmp4_stream_timeout, read_timeout=task.read_timeout, disconnection_timeout=task.disconnection_timeout, buffer_size=task.buffer_size, diff --git a/webapp/src/app/settings/notification-settings/pushdeer-notification-settings/pushdeer-settings/pushdeer-settings.component.html b/webapp/src/app/settings/notification-settings/pushdeer-notification-settings/pushdeer-settings/pushdeer-settings.component.html index bb3edbe..ab8cd61 100644 --- a/webapp/src/app/settings/notification-settings/pushdeer-notification-settings/pushdeer-settings/pushdeer-settings.component.html +++ b/webapp/src/app/settings/notification-settings/pushdeer-notification-settings/pushdeer-settings/pushdeer-settings.component.html @@ -15,7 +15,7 @@ diff --git a/webapp/src/app/settings/recorder-settings/recorder-settings.component.html b/webapp/src/app/settings/recorder-settings/recorder-settings.component.html index bbf81fb..7ae763b 100644 --- a/webapp/src/app/settings/recorder-settings/recorder-settings.component.html +++ b/webapp/src/app/settings/recorder-settings/recorder-settings.component.html @@ -8,15 +8,20 @@ >

- 选择要录制的直播流格式
+ 选择要录制的直播流格式
- FLV 网络不稳定容易中断丢失数据
- HLS (ts) 基本不受本地网络影响
- HLS (fmp4) 只有少数直播间支持
+ FLV: 网络不稳定容易中断丢失数据或录制到二压画质
- P.S.
- 非 FLV 格式需要 ffmpeg
- HLS (fmp4) 不支持会自动切换到 HLS (ts)
+ HLS (fmp4): 基本不受网络波动影响,但只有部分直播间支持。 +
+ P.S. +
+ 录制 HLS 流需要 ffmpeg +
+ 在设定时间内没有 fmp4 流会自动切换录制 flv 流 +
+ WEB 端直播播放器是 Hls7Player 的直播间支持录制 fmp4 流, fMp4Player + 则不支持。

+ + fmp4 流等待时间 + +

+ 如果超过所设置的等待时间 fmp4 流还没有就切换为录制 flv 流 +
+ fmp4 流在刚推流是没有的,要过一会才有。 +
+ fmp4 流出现的时间和直播延迟有关,一般都在 10 秒内,但也有延迟比较大超过 + 1 分钟的。 +
+ 推荐全局设置为 10 秒,个别延迟比较大的直播间单独设置。 +

+
+ + + + +
+ + 封面保存策略 + +

+ 默认: 每个分割的录播文件对应保存一个封面文件,不管封面是否相同。
+ 去重: 相同的封面只保存一次
+ P.S. +
+ 判断是否相同是依据封面数据的 sha1,只在单次录制内有效。 +

+
+ + + + + + + +
- + diff --git a/webapp/src/app/settings/recorder-settings/recorder-settings.component.ts b/webapp/src/app/settings/recorder-settings/recorder-settings.component.ts index 62ff456..49becfe 100644 --- a/webapp/src/app/settings/recorder-settings/recorder-settings.component.ts +++ b/webapp/src/app/settings/recorder-settings/recorder-settings.component.ts @@ -20,6 +20,7 @@ import { TIMEOUT_OPTIONS, DISCONNECTION_TIMEOUT_OPTIONS, SYNC_FAILED_WARNING_TIP, + COVER_SAVE_STRATEGIES, } from '../shared/constants/form'; import { RecorderSettings } from '../shared/setting.model'; import { @@ -43,10 +44,13 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { readonly streamFormatOptions = cloneDeep(STREAM_FORMAT_OPTIONS) as Mutable< typeof STREAM_FORMAT_OPTIONS >; + readonly fmp4StreamTimeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< + typeof TIMEOUT_OPTIONS + >; readonly qualityOptions = cloneDeep(QUALITY_OPTIONS) as Mutable< typeof QUALITY_OPTIONS >; - readonly timeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< + readonly readTimeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< typeof TIMEOUT_OPTIONS >; readonly disconnectionTimeoutOptions = cloneDeep( @@ -55,6 +59,9 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { readonly bufferOptions = cloneDeep(BUFFER_OPTIONS) as Mutable< typeof BUFFER_OPTIONS >; + readonly coverSaveStrategies = cloneDeep(COVER_SAVE_STRATEGIES) as Mutable< + typeof COVER_SAVE_STRATEGIES + >; constructor( formBuilder: FormBuilder, @@ -64,10 +71,12 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { this.settingsForm = formBuilder.group({ streamFormat: [''], qualityNumber: [''], + fmp4StreamTimeout: [''], readTimeout: [''], disconnectionTimeout: [''], bufferSize: [''], saveCover: [''], + coverSaveStrategy: [''], }); } @@ -79,6 +88,10 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { return this.settingsForm.get('qualityNumber') as FormControl; } + get fmp4StreamTimeoutControl() { + return this.settingsForm.get('fmp4StreamTimeout') as FormControl; + } + get readTimeoutControl() { return this.settingsForm.get('readTimeout') as FormControl; } @@ -95,6 +108,10 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { return this.settingsForm.get('saveCover') as FormControl; } + get coverSaveStrategyControl() { + return this.settingsForm.get('coverSaveStrategy') as FormControl; + } + ngOnChanges(): void { this.syncStatus = mapValues(this.settings, () => true); this.settingsForm.setValue(this.settings); diff --git a/webapp/src/app/settings/shared/constants/form.ts b/webapp/src/app/settings/shared/constants/form.ts index be2d039..d3af32c 100644 --- a/webapp/src/app/settings/shared/constants/form.ts +++ b/webapp/src/app/settings/shared/constants/form.ts @@ -1,4 +1,4 @@ -import { DeleteStrategy } from '../setting.model'; +import { CoverSaveStrategy, DeleteStrategy } from '../setting.model'; import range from 'lodash-es/range'; @@ -52,9 +52,14 @@ export const DELETE_STRATEGIES = [ { label: '从不', value: DeleteStrategy.NEVER }, ] as const; +export const COVER_SAVE_STRATEGIES = [ + { label: '默认', value: CoverSaveStrategy.DEFAULT }, + { label: '去重', value: CoverSaveStrategy.DEDUP }, +] as const; + export const STREAM_FORMAT_OPTIONS = [ { label: 'FLV', value: 'flv' }, - { label: 'HLS (ts)', value: 'ts' }, + // { label: 'HLS (ts)', value: 'ts' }, { label: 'HLS (fmp4)', value: 'fmp4' }, ] as const; diff --git a/webapp/src/app/settings/shared/setting.model.ts b/webapp/src/app/settings/shared/setting.model.ts index 02e7fec..8bbba45 100644 --- a/webapp/src/app/settings/shared/setting.model.ts +++ b/webapp/src/app/settings/shared/setting.model.ts @@ -29,13 +29,20 @@ export type QualityNumber = | 150 // 高清 | 80; // 流畅 +export enum CoverSaveStrategy { + DEFAULT = 'default', + DEDUP = 'dedup', +} + export interface RecorderSettings { streamFormat: StreamFormat; qualityNumber: QualityNumber; + fmp4StreamTimeout: number; readTimeout: number; disconnectionTimeout: number; bufferSize: number; saveCover: boolean; + coverSaveStrategy: CoverSaveStrategy; } export type RecorderOptions = Nullable; diff --git a/webapp/src/app/tasks/info-panel/info-panel.component.html b/webapp/src/app/tasks/info-panel/info-panel.component.html index 8f40191..b879ef4 100644 --- a/webapp/src/app/tasks/info-panel/info-panel.component.html +++ b/webapp/src/app/tasks/info-panel/info-panel.component.html @@ -62,11 +62,19 @@ 格式画质 - {{ data.task_status.real_stream_format }} + {{ + data.task_status.real_stream_format + ? data.task_status.real_stream_format + : "N/A" + }} - {{ data.task_status.real_quality_number | quality }} - ({{ data.task_status.real_quality_number + {{ + data.task_status.real_quality_number + ? (data.task_status.real_quality_number | quality) + : "N/A" + }} + ({{ data.task_status.real_quality_number ?? "N/A" }}, bluray) diff --git a/webapp/src/app/tasks/shared/services/task-manager.service.ts b/webapp/src/app/tasks/shared/services/task-manager.service.ts index 964f61c..49829ce 100644 --- a/webapp/src/app/tasks/shared/services/task-manager.service.ts +++ b/webapp/src/app/tasks/shared/services/task-manager.service.ts @@ -32,10 +32,12 @@ export class TaskManagerService { return this.taskService.updateTaskInfo(roomId).pipe( tap( () => { - this.message.success('成功刷新任务的数据'); + this.message.success(`[${roomId}] 成功刷新任务的数据`); }, (error: HttpErrorResponse) => { - this.message.error(`刷新任务的数据出错: ${error.message}`); + this.message.error( + `[${roomId}] 刷新任务的数据出错: ${error.message}` + ); } ) ); @@ -101,10 +103,10 @@ export class TaskManagerService { return this.taskService.removeTask(roomId).pipe( tap( () => { - this.message.success('任务已删除'); + this.message.success(`[${roomId}] 任务已删除`); }, (error: HttpErrorResponse) => { - this.message.error(`删除任务出错: ${error.message}`); + this.message.error(`[${roomId}] 删除任务出错: ${error.message}`); } ) ); @@ -129,18 +131,18 @@ export class TaskManagerService { } startTask(roomId: number): Observable { - const messageId = this.message.loading('正在运行任务...', { + const messageId = this.message.loading(`[${roomId}] 正在运行任务...`, { nzDuration: 0, }).messageId; return this.taskService.startTask(roomId).pipe( tap( () => { this.message.remove(messageId); - this.message.success('成功运行任务'); + this.message.success(`[${roomId}] 成功运行任务`); }, (error: HttpErrorResponse) => { this.message.remove(messageId); - this.message.error(`运行任务出错: ${error.message}`); + this.message.error(`[${roomId}] 运行任务出错: ${error.message}`); } ) ); @@ -168,18 +170,18 @@ export class TaskManagerService { roomId: number, force: boolean = false ): Observable { - const messageId = this.message.loading('正在停止任务...', { + const messageId = this.message.loading(`[${roomId}] 正在停止任务...`, { nzDuration: 0, }).messageId; return this.taskService.stopTask(roomId, force).pipe( tap( () => { this.message.remove(messageId); - this.message.success('成功停止任务'); + this.message.success(`[${roomId}] 成功停止任务`); }, (error: HttpErrorResponse) => { this.message.remove(messageId); - this.message.error(`停止任务出错: ${error.message}`); + this.message.error(`[${roomId}] 停止任务出错: ${error.message}`); } ) ); @@ -204,18 +206,18 @@ export class TaskManagerService { } enableRecorder(roomId: number): Observable { - const messageId = this.message.loading('正在开启录制...', { + const messageId = this.message.loading(`[${roomId}] 正在开启录制...`, { nzDuration: 0, }).messageId; return this.taskService.enableTaskRecorder(roomId).pipe( tap( () => { this.message.remove(messageId); - this.message.success('成功开启录制'); + this.message.success(`[${roomId}] 成功开启录制`); }, (error: HttpErrorResponse) => { this.message.remove(messageId); - this.message.error(`开启录制出错: ${error.message}`); + this.message.error(`[${roomId}] 开启录制出错: ${error.message}`); } ) ); @@ -248,18 +250,18 @@ export class TaskManagerService { roomId: number, force: boolean = false ): Observable { - const messageId = this.message.loading('正在关闭录制...', { + const messageId = this.message.loading(`[${roomId}] 正在关闭录制...`, { nzDuration: 0, }).messageId; return this.taskService.disableTaskRecorder(roomId, force).pipe( tap( () => { this.message.remove(messageId); - this.message.success('成功关闭录制'); + this.message.success(`[${roomId}] 成功关闭录制`); }, (error: HttpErrorResponse) => { this.message.remove(messageId); - this.message.error(`关闭录制出错: ${error.message}`); + this.message.error(`[${roomId}] 关闭录制出错: ${error.message}`); } ) ); @@ -287,13 +289,13 @@ export class TaskManagerService { return this.taskService.cutStream(roomId).pipe( tap( () => { - this.message.success('文件切割已触发'); + this.message.success(`[${roomId}] 文件切割已触发`); }, (error: HttpErrorResponse) => { if (error.status == 403) { - this.message.warning('时长太短不能切割,请稍后再试。'); + this.message.warning(`[${roomId}] 时长太短不能切割,请稍后再试。`); } else { - this.message.error(`切割文件出错: ${error.message}`); + this.message.error(`[${roomId}] 切割文件出错: ${error.message}`); } } ) diff --git a/webapp/src/app/tasks/shared/task.model.ts b/webapp/src/app/tasks/shared/task.model.ts index 6f4ef1f..72b1176 100644 --- a/webapp/src/app/tasks/shared/task.model.ts +++ b/webapp/src/app/tasks/shared/task.model.ts @@ -91,8 +91,8 @@ export interface TaskStatus { readonly rec_rate: number; readonly danmu_total: number; readonly danmu_rate: number; - readonly real_stream_format: StreamFormat; - readonly real_quality_number: QualityNumber; + readonly real_stream_format: StreamFormat | null; + readonly real_quality_number: QualityNumber | null; readonly recording_path: string | null; readonly postprocessor_status: PostprocessorStatus; readonly postprocessing_path: string | null; diff --git a/webapp/src/app/tasks/status-display/status-display.component.html b/webapp/src/app/tasks/status-display/status-display.component.html index 863db27..e50e7ee 100644 --- a/webapp/src/app/tasks/status-display/status-display.component.html +++ b/webapp/src/app/tasks/status-display/status-display.component.html @@ -47,7 +47,11 @@ nzTooltipTitle="录制画质" nzTooltipPlacement="leftTop" > - {{ status.real_quality_number | quality }} + {{ + status.real_quality_number + ? (status.real_quality_number | quality) + : "" + }}

diff --git a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html index 6de4676..cbd351e 100644 --- a/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html +++ b/webapp/src/app/tasks/task-detail/task-recording-detail/task-recording-detail.component.html @@ -29,11 +29,13 @@ [nzValueTemplate]="recordingQuality" > {{ - (taskStatus.real_quality_number | quality)! + - " " + - "(" + - taskStatus.real_quality_number + - ")" + taskStatus.real_quality_number + ? (taskStatus.real_quality_number | quality) + + " " + + "(" + + taskStatus.real_quality_number + + ")" + : "" }}

- 选择要录制的直播流格式
+ 选择要录制的直播流格式
- FLV 网络不稳定容易中断丢失数据
- HLS (ts) 基本不受本地网络影响
- HLS (fmp4) 只有少数直播间支持
+ FLV: 网络不稳定容易中断丢失数据或录制到二压画质
- P.S.
- 非 FLV 格式需要 ffmpeg
- HLS (fmp4) 不支持会自动切换到 HLS (ts)
+ HLS (fmp4): 基本不受网络波动影响,但只有部分直播间支持。 +
+ P.S. +
+ 录制 HLS 流需要 ffmpeg +
+ 在设定时间内没有 fmp4 流会自动切换录制 flv 流 +
+ WEB 端直播播放器是 Hls7Player 的直播间支持录制 fmp4 流, fMp4Player + 则不支持。

@@ -150,6 +155,46 @@ >覆盖全局设置 + + fmp4 流等待时间 + +

+ 如果超过所设置的等待时间 fmp4 流还没有就切换为录制 flv 流 +
+ fmp4 流在刚推流是没有的,要过一会才有。 +
+ fmp4 流出现的时间和直播延迟有关,一般都在 10 + 秒内,但也有延迟比较大超过 1 分钟的。 +
+ 推荐全局设置为 10 秒,个别延迟比较大的直播间单独设置。 +

+
+ + + + + +
覆盖全局设置 + + 封面保存策略 + +

+ 默认: + 每个分割的录播文件对应保存一个封面文件,不管封面是否相同。
+ 去重: 相同的封面只保存一次
+ P.S. +
+ 判断是否相同是依据封面数据的 sha1,只在单次录制内有效。 +

+
+ + + + +
diff --git a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts index 06b6007..2943685 100644 --- a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts +++ b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.ts @@ -30,6 +30,7 @@ import { BUFFER_OPTIONS, DELETE_STRATEGIES, SPLIT_FILE_TIP, + COVER_SAVE_STRATEGIES, } from '../../settings/shared/constants/form'; type OptionsModel = NonNullable; @@ -67,10 +68,13 @@ export class TaskSettingsDialogComponent implements OnChanges { readonly streamFormatOptions = cloneDeep(STREAM_FORMAT_OPTIONS) as Mutable< typeof STREAM_FORMAT_OPTIONS >; + readonly fmp4StreamTimeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< + typeof TIMEOUT_OPTIONS + >; readonly qualityOptions = cloneDeep(QUALITY_OPTIONS) as Mutable< typeof QUALITY_OPTIONS >; - readonly timeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< + readonly readTimeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< typeof TIMEOUT_OPTIONS >; readonly disconnectionTimeoutOptions = cloneDeep( @@ -82,6 +86,9 @@ export class TaskSettingsDialogComponent implements OnChanges { readonly deleteStrategies = cloneDeep(DELETE_STRATEGIES) as Mutable< typeof DELETE_STRATEGIES >; + readonly coverSaveStrategies = cloneDeep(COVER_SAVE_STRATEGIES) as Mutable< + typeof COVER_SAVE_STRATEGIES + >; model!: OptionsModel; options!: TaskOptions; diff --git a/workspace.code-workspace b/workspace.code-workspace index 6a32902..754fdb6 100644 --- a/workspace.code-workspace +++ b/workspace.code-workspace @@ -3,5 +3,11 @@ { "path": "." } - ] + ], + "settings": { + "python.linting.mypyPath": "mypy", + "python.linting.flake8Path": "flake8", + "python.formatting.blackPath": "black", + "python.sortImports.path": "isort" + } } \ No newline at end of file