diff --git a/FAQ.md b/FAQ.md index 85a7795..14a09b2 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1,5 +1,19 @@ # 常见问题 +## HLS 标准录制模式和原始录制模式有什么区别? + +| | 标准录制模式 | 原始录制模式 | +| --- | --- | --- | +| ffmpeg | 需要 | 不需要 | +| 资源占用 | 较多 | 较少 | +| 稳定性 | 比较差 | 比较好 | +| 录播文件 | 一个 flv 文件 | 很多片段文件 | +| 录播信息 | 包含在 flv 文件里 | 单独保存为一个文件 (index.meta.json) | +| 播放器支持 | 几乎全部播放器都支持 flv | 支持 m3u8 的播放器很少 (VLC、dandanplay) | +| 自动分割文件 | 支持 | 不支持 | +| 手动分割文件 | 支持 | 不支持 | +| 自动转 mp4 | 支持 | 支持 | + ## 如何终止程序? `ctrl + c` diff --git a/src/blrec/core/cover_downloader.py b/src/blrec/core/cover_downloader.py index bef48e7..f41e0b1 100644 --- a/src/blrec/core/cover_downloader.py +++ b/src/blrec/core/cover_downloader.py @@ -8,12 +8,13 @@ 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 blrec.bili.live import Live +from blrec.exception import exception_callback +from blrec.logging.room_id import aio_task_with_room_id +from blrec.path import cover_path +from blrec.utils.hash import sha1sum +from blrec.utils.mixins import SwitchableMixin + from .stream_recorder import StreamRecorder, StreamRecorderEventListener __all__ = ('CoverDownloader',) diff --git a/src/blrec/core/danmaku_dumper.py b/src/blrec/core/danmaku_dumper.py index 38d14e3..17f0592 100644 --- a/src/blrec/core/danmaku_dumper.py +++ b/src/blrec/core/danmaku_dumper.py @@ -7,22 +7,23 @@ from typing import Iterator, List, Optional from tenacity import AsyncRetrying, retry_if_not_exception_type, stop_after_attempt -from .. import __github__, __prog__, __version__ -from ..bili.live import Live -from ..core.models import GiftSendMsg, GuardBuyMsg, SuperChatMsg -from ..danmaku.io import DanmakuWriter -from ..danmaku.models import ( +from blrec import __github__, __prog__, __version__ +from blrec.bili.live import Live +from blrec.core.models import GiftSendMsg, GuardBuyMsg, SuperChatMsg +from blrec.danmaku.io import DanmakuWriter +from blrec.danmaku.models import ( Danmu, GiftSendRecord, GuardBuyRecord, Metadata, SuperChatRecord, ) -from ..event.event_emitter import EventEmitter, EventListener -from ..exception import exception_callback, submit_exception -from ..logging.room_id import aio_task_with_room_id -from ..path import danmaku_path -from ..utils.mixins import SwitchableMixin +from blrec.event.event_emitter import EventEmitter, EventListener +from blrec.exception import exception_callback, submit_exception +from blrec.logging.room_id import aio_task_with_room_id +from blrec.path import danmaku_path +from blrec.utils.mixins import SwitchableMixin + from .danmaku_receiver import DanmakuReceiver, DanmuMsg from .statistics import Statistics from .stream_recorder import StreamRecorder, StreamRecorderEventListener diff --git a/src/blrec/core/danmaku_receiver.py b/src/blrec/core/danmaku_receiver.py index 63ea24d..3aabc4c 100644 --- a/src/blrec/core/danmaku_receiver.py +++ b/src/blrec/core/danmaku_receiver.py @@ -2,9 +2,10 @@ import logging from asyncio import Queue, QueueFull from typing import Final -from ..bili.danmaku_client import DanmakuClient, DanmakuCommand, DanmakuListener -from ..bili.typing import Danmaku -from ..utils.mixins import StoppableMixin +from blrec.bili.danmaku_client import DanmakuClient, DanmakuCommand, DanmakuListener +from blrec.bili.typing import Danmaku +from blrec.utils.mixins import StoppableMixin + from .models import DanmuMsg, GiftSendMsg, GuardBuyMsg, SuperChatMsg from .typing import DanmakuMsg diff --git a/src/blrec/core/flv_stream_recorder_impl.py b/src/blrec/core/flv_stream_recorder_impl.py index 306dc83..d698262 100644 --- a/src/blrec/core/flv_stream_recorder_impl.py +++ b/src/blrec/core/flv_stream_recorder_impl.py @@ -3,10 +3,13 @@ from typing import Optional from reactivex.scheduler import NewThreadScheduler -from ..bili.live import Live -from ..bili.typing import QualityNumber -from ..flv import operators as flv_ops -from ..utils.mixins import SupportDebugMixin +from blrec.bili.live import Live +from blrec.bili.typing import QualityNumber +from blrec.flv import operators as flv_ops +from blrec.flv.metadata_dumper import MetadataDumper +from blrec.utils.mixins import SupportDebugMixin + +from . import operators as core_ops from .stream_recorder_impl import StreamRecorderImpl __all__ = ('FLVStreamRecorderImpl',) @@ -34,6 +37,7 @@ class FLVStreamRecorderImpl(StreamRecorderImpl, SupportDebugMixin): out_dir=out_dir, path_template=path_template, stream_format='flv', + recording_mode='standard', quality_number=quality_number, buffer_size=buffer_size, read_timeout=read_timeout, @@ -43,6 +47,89 @@ class FLVStreamRecorderImpl(StreamRecorderImpl, SupportDebugMixin): ) self._init_for_debug(live.room_id) + self._stream_fetcher = core_ops.StreamFetcher( + live, self._session, read_timeout=read_timeout + ) + + self._prober = flv_ops.Prober() + self._dl_statistics = core_ops.StreamStatistics() + + self._stream_parser = core_ops.StreamParser(self._stream_param_holder) + self._analyser = flv_ops.Analyser() + self._injector = flv_ops.Injector(self._metadata_provider) + self._join_point_extractor = flv_ops.JoinPointExtractor() + self._limiter = flv_ops.Limiter(filesize_limit, duration_limit) + self._cutter = flv_ops.Cutter() + self._dumper = flv_ops.Dumper(self._path_provider, buffer_size) + self._metadata_dumper = MetadataDumper( + self._dumper, self._analyser, self._join_point_extractor + ) + + self._recording_monitor = core_ops.RecordingMonitor( + live, lambda: self._analyser.duration + ) + + self._prober.profiles.subscribe(self._on_profile_updated) + self._dumper.file_opened.subscribe(self._on_video_file_opened) + self._dumper.file_closed.subscribe(self._on_video_file_closed) + self._recording_monitor.interrupted.subscribe(self._on_recording_interrupted) + self._recording_monitor.recovered.subscribe(self._on_recording_recovered) + + @property + def read_timeout(self) -> int: + return self._stream_fetcher.read_timeout + + @read_timeout.setter + def read_timeout(self, value: int) -> None: + self._stream_fetcher.read_timeout = value + + @property + def buffer_size(self) -> int: + return self._dumper.buffer_size + + @buffer_size.setter + def buffer_size(self, value: int) -> None: + self._dumper.buffer_size = value + + @property + def recording_path(self) -> Optional[str]: + return self._dumper.path + + @property + def filesize_limit(self) -> int: + return self._limiter.filesize_limit + + @filesize_limit.setter + def filesize_limit(self, value: int) -> None: + self._limiter.filesize_limit = value + + @property + def duration_limit(self) -> int: + return self._limiter.duration_limit + + @duration_limit.setter + def duration_limit(self, value: int) -> None: + self._limiter.duration_limit = value + + @property + def metadata(self) -> Optional[flv_ops.MetaData]: + try: + return self._analyser.make_metadata() + except Exception: + return None + + def can_cut_stream(self) -> bool: + return self._cutter.can_cut_stream() + + def cut_stream(self) -> bool: + return self._cutter.cut_stream() + + def _on_start(self) -> None: + self._metadata_dumper.enable() + + def _on_stop(self) -> None: + self._metadata_dumper.disable() + def _run(self) -> None: self._subscription = ( self._stream_param_holder.get_stream_params() # type: ignore diff --git a/src/blrec/core/hls_raw_stream_recorder_impl.py b/src/blrec/core/hls_raw_stream_recorder_impl.py new file mode 100644 index 0000000..b828d60 --- /dev/null +++ b/src/blrec/core/hls_raw_stream_recorder_impl.py @@ -0,0 +1,105 @@ +import logging +from typing import Optional + +from reactivex import operators as ops +from reactivex.scheduler import NewThreadScheduler + +from blrec.bili.live import Live +from blrec.bili.typing import QualityNumber +from blrec.hls import operators as hls_ops +from blrec.hls.metadata_dumper import MetadataDumper + +from . import operators as core_ops +from .stream_recorder_impl import StreamRecorderImpl + +__all__ = ('HLSRawStreamRecorderImpl',) + + +logger = logging.getLogger(__name__) + + +class HLSRawStreamRecorderImpl(StreamRecorderImpl): + def __init__( + self, + live: Live, + out_dir: str, + path_template: str, + *, + quality_number: QualityNumber = 10000, + buffer_size: Optional[int] = None, + read_timeout: Optional[int] = None, + disconnection_timeout: Optional[int] = None, + filesize_limit: int = 0, + duration_limit: int = 0, + ) -> None: + super().__init__( + live=live, + out_dir=out_dir, + path_template=path_template, + stream_format='fmp4', + recording_mode='raw', + 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._playlist_fetcher = hls_ops.PlaylistFetcher(self._live, self._session) + self._playlist_dumper = hls_ops.PlaylistDumper(self._path_provider) + self._segment_fetcher = hls_ops.SegmentFetcher(self._live, self._session) + self._segment_dumper = hls_ops.SegmentDumper(self._playlist_dumper) + self._ff_metadata_dumper = MetadataDumper( + self._playlist_dumper, self._metadata_provider + ) + + self._prober = hls_ops.Prober() + self._dl_statistics = core_ops.SizedStatistics() + + self._recording_monitor = core_ops.RecordingMonitor( + live, lambda: self._playlist_dumper.duration + ) + + self._prober.profiles.subscribe(self._on_profile_updated) + self._playlist_dumper.file_opened.subscribe(self._on_video_file_opened) + self._playlist_dumper.file_closed.subscribe(self._on_video_file_closed) + self._recording_monitor.interrupted.subscribe(self._on_recording_interrupted) + self._recording_monitor.recovered.subscribe(self._on_recording_recovered) + + @property + def recording_path(self) -> Optional[str]: + return self._playlist_dumper.path + + def _on_start(self) -> None: + self._ff_metadata_dumper.enable() + + def _on_stop(self) -> None: + self._ff_metadata_dumper.disable() + + def _run(self) -> None: + self._subscription = ( + self._stream_param_holder.get_stream_params() # type: ignore + .pipe( + self._stream_url_resolver, + ops.subscribe_on( + NewThreadScheduler(self._thread_factory('PlaylistDownloader')) + ), + self._playlist_fetcher, + self._recording_monitor, + self._connection_error_handler, + self._request_exception_handler, + self._playlist_dumper, + ops.observe_on( + NewThreadScheduler(self._thread_factory('SegmentDownloader')) + ), + self._segment_fetcher, + self._dl_statistics, + self._prober, + self._segment_dumper, + self._rec_statistics, + self._progress_bar, + self._exception_handler, + ) + .subscribe(on_completed=self._on_completed) + ) diff --git a/src/blrec/core/hls_stream_recorder_impl.py b/src/blrec/core/hls_stream_recorder_impl.py index e5f9d2c..7294ee5 100644 --- a/src/blrec/core/hls_stream_recorder_impl.py +++ b/src/blrec/core/hls_stream_recorder_impl.py @@ -4,9 +4,12 @@ from typing import Optional from reactivex import operators as ops from reactivex.scheduler import NewThreadScheduler -from ..bili.live import Live -from ..bili.typing import QualityNumber -from ..flv import operators as flv_ops +from blrec.bili.live import Live +from blrec.bili.typing import QualityNumber +from blrec.flv import operators as flv_ops +from blrec.flv.metadata_dumper import MetadataDumper +from blrec.hls import operators as hls_ops + from . import operators as core_ops from .stream_recorder_impl import StreamRecorderImpl @@ -35,6 +38,7 @@ class HLSStreamRecorderImpl(StreamRecorderImpl): out_dir=out_dir, path_template=path_template, stream_format='fmp4', + recording_mode='standard', quality_number=quality_number, buffer_size=buffer_size, read_timeout=read_timeout, @@ -43,10 +47,83 @@ class HLSStreamRecorderImpl(StreamRecorderImpl): duration_limit=duration_limit, ) - self._playlist_fetcher = core_ops.PlaylistFetcher(self._live, self._session) - self._playlist_resolver = core_ops.PlaylistResolver() - self._segment_fetcher = core_ops.SegmentFetcher(self._live, self._session) - self._segment_remuxer = core_ops.SegmentRemuxer(live) + self._playlist_fetcher = hls_ops.PlaylistFetcher(self._live, self._session) + self._playlist_resolver = hls_ops.PlaylistResolver() + self._segment_fetcher = hls_ops.SegmentFetcher(self._live, self._session) + self._segment_remuxer = hls_ops.SegmentRemuxer(live) + + self._prober = hls_ops.Prober() + self._dl_statistics = core_ops.SizedStatistics() + + self._stream_parser = core_ops.StreamParser( + self._stream_param_holder, ignore_eof=True, ignore_value_error=True + ) + self._analyser = flv_ops.Analyser() + self._injector = flv_ops.Injector(self._metadata_provider) + self._join_point_extractor = flv_ops.JoinPointExtractor() + self._limiter = flv_ops.Limiter(filesize_limit, duration_limit) + self._cutter = flv_ops.Cutter() + self._dumper = flv_ops.Dumper(self._path_provider, buffer_size) + self._metadata_dumper = MetadataDumper( + self._dumper, self._analyser, self._join_point_extractor + ) + + self._recording_monitor = core_ops.RecordingMonitor( + live, lambda: self._analyser.duration + ) + + self._prober.profiles.subscribe(self._on_profile_updated) + self._dumper.file_opened.subscribe(self._on_video_file_opened) + self._dumper.file_closed.subscribe(self._on_video_file_closed) + self._recording_monitor.interrupted.subscribe(self._on_recording_interrupted) + self._recording_monitor.recovered.subscribe(self._on_recording_recovered) + + @property + def buffer_size(self) -> int: + return self._dumper.buffer_size + + @buffer_size.setter + def buffer_size(self, value: int) -> None: + self._dumper.buffer_size = value + + @property + def recording_path(self) -> Optional[str]: + return self._dumper.path + + @property + def filesize_limit(self) -> int: + return self._limiter.filesize_limit + + @filesize_limit.setter + def filesize_limit(self, value: int) -> None: + self._limiter.filesize_limit = value + + @property + def duration_limit(self) -> int: + return self._limiter.duration_limit + + @duration_limit.setter + def duration_limit(self, value: int) -> None: + self._limiter.duration_limit = value + + @property + def metadata(self) -> Optional[flv_ops.MetaData]: + try: + return self._analyser.make_metadata() + except Exception: + return None + + def can_cut_stream(self) -> bool: + return self._cutter.can_cut_stream() + + def cut_stream(self) -> bool: + return self._cutter.cut_stream() + + def _on_start(self) -> None: + self._metadata_dumper.enable() + + def _on_stop(self) -> None: + self._metadata_dumper.disable() def _run(self) -> None: self._subscription = ( diff --git a/src/blrec/core/metadata_provider.py b/src/blrec/core/metadata_provider.py index 14c578c..2d8ab3a 100644 --- a/src/blrec/core/metadata_provider.py +++ b/src/blrec/core/metadata_provider.py @@ -4,9 +4,9 @@ from collections import OrderedDict from datetime import datetime, timedelta, timezone from typing import TYPE_CHECKING, Any, Dict, Union -from .. import __github__, __prog__, __version__ -from ..bili.helpers import get_quality_name -from ..bili.live import Live +from blrec import __github__, __prog__, __version__ +from blrec.bili.helpers import get_quality_name +from blrec.bili.live import Live if TYPE_CHECKING: from .stream_recorder_impl import StreamRecorderImpl @@ -54,6 +54,13 @@ class MetadataProvider: ', bluray' if '_bluray' in self._stream_recorder.stream_url else '', ) + if self._stream_recorder.recording_mode == 'standard': + recording_mode_desc = '标准' + elif self._stream_recorder.recording_mode == 'raw': + recording_mode_desc = '原始' + else: + recording_mode_desc = '??' + return { 'Title': self._live.room_info.title, 'Artist': self._live.user_info.name, @@ -71,6 +78,7 @@ HLS流可用时间: {hls_stream_available_time} 流主机: {self._stream_recorder.stream_host} 流格式:{self._stream_recorder.stream_format} 流画质:{stream_quality} +录制模式: {recording_mode_desc} 录制程序:{__prog__} v{__version__} {__github__}''', 'description': OrderedDict( { @@ -87,6 +95,7 @@ HLS流可用时间: {hls_stream_available_time} 'StreamHost': self._stream_recorder.stream_host, 'StreamFormat': self._stream_recorder.stream_format, 'StreamQuality': stream_quality, + 'RecordingMode': self._stream_recorder.recording_mode, 'Recorder': f'{__prog__} v{__version__} {__github__}', } ), diff --git a/src/blrec/core/models.py b/src/blrec/core/models.py index 3c762e9..f5e1323 100644 --- a/src/blrec/core/models.py +++ b/src/blrec/core/models.py @@ -3,8 +3,7 @@ from typing import Literal import attr -from ..bili.typing import Danmaku - +from blrec.bili.typing import Danmaku logger = logging.getLogger(__name__) diff --git a/src/blrec/core/operators/__init__.py b/src/blrec/core/operators/__init__.py index 88e810e..b669e84 100644 --- a/src/blrec/core/operators/__init__.py +++ b/src/blrec/core/operators/__init__.py @@ -1,13 +1,8 @@ from .connection_error_handler import ConnectionErrorHandler from .exception_handler import ExceptionHandler -from .hls_prober import HLSProber, StreamProfile -from .playlist_fetcher import PlaylistFetcher -from .playlist_resolver import PlaylistResolver from .progress_bar import ProgressBar from .recording_monitor import RecordingMonitor from .request_exception_handler import RequestExceptionHandler -from .segment_fetcher import InitSectionData, SegmentData, SegmentFetcher -from .segment_remuxer import SegmentRemuxer from .sized_statistics import SizedStatistics from .stream_fetcher import StreamFetcher from .stream_parser import StreamParser @@ -17,20 +12,12 @@ from .stream_url_resolver import StreamURLResolver __all__ = ( 'ConnectionErrorHandler', 'ExceptionHandler', - 'HLSProber', - 'InitSectionData', - 'PlaylistFetcher', - 'PlaylistResolver', 'ProgressBar', 'RecordingMonitor', 'RequestExceptionHandler', - 'SegmentData', - 'SegmentFetcher', - 'SegmentRemuxer', 'SizedStatistics', 'StreamFetcher', 'StreamParser', - 'StreamProfile', 'StreamStatistics', 'StreamURLResolver', ) diff --git a/src/blrec/core/operators/connection_error_handler.py b/src/blrec/core/operators/connection_error_handler.py index 58196ad..debceb1 100644 --- a/src/blrec/core/operators/connection_error_handler.py +++ b/src/blrec/core/operators/connection_error_handler.py @@ -8,9 +8,9 @@ import aiohttp import requests from reactivex import Observable, abc -from ...bili.live import Live -from ...utils import operators as utils_ops -from ...utils.mixins import AsyncCooperationMixin +from blrec.bili.live import Live +from blrec.utils import operators as utils_ops +from blrec.utils.mixins import AsyncCooperationMixin __all__ = ('ConnectionErrorHandler',) diff --git a/src/blrec/core/operators/exception_handler.py b/src/blrec/core/operators/exception_handler.py index b5b2644..ebe2398 100644 --- a/src/blrec/core/operators/exception_handler.py +++ b/src/blrec/core/operators/exception_handler.py @@ -6,9 +6,9 @@ from typing import Optional, TypeVar from reactivex import Observable, abc -from ...bili.exceptions import LiveRoomEncrypted, LiveRoomHidden, LiveRoomLocked -from ...utils import operators as utils_ops -from ...utils.mixins import AsyncCooperationMixin +from blrec.bili.exceptions import LiveRoomEncrypted, LiveRoomHidden, LiveRoomLocked +from blrec.utils import operators as utils_ops +from blrec.utils.mixins import AsyncCooperationMixin __all__ = ('ExceptionHandler',) diff --git a/src/blrec/core/operators/progress_bar.py b/src/blrec/core/operators/progress_bar.py index 7e15d9d..a7ce985 100644 --- a/src/blrec/core/operators/progress_bar.py +++ b/src/blrec/core/operators/progress_bar.py @@ -7,8 +7,8 @@ from reactivex import Observable, abc from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable from tqdm import tqdm -from ...bili.live import Live -from ...flv.operators.typing import FLVStream, FLVStreamItem +from blrec.bili.live import Live +from blrec.flv.operators.typing import FLVStream, FLVStreamItem __all__ = ('ProgressBar',) diff --git a/src/blrec/core/operators/recording_monitor.py b/src/blrec/core/operators/recording_monitor.py index 2945c72..3f1d534 100644 --- a/src/blrec/core/operators/recording_monitor.py +++ b/src/blrec/core/operators/recording_monitor.py @@ -1,13 +1,12 @@ from __future__ import annotations import logging -from typing import Final, Optional, TypeVar +from typing import Callable, Final, Optional, TypeVar from reactivex import Observable, Subject, abc -from ...bili.live import Live -from ...flv import operators as flv_ops -from ...utils.mixins import AsyncCooperationMixin +from blrec.bili.live import Live +from blrec.utils.mixins import AsyncCooperationMixin __all__ = ('RecordingMonitor',) @@ -18,10 +17,10 @@ _T = TypeVar('_T') class RecordingMonitor(AsyncCooperationMixin): - def __init__(self, live: Live, analyser: flv_ops.Analyser) -> None: + def __init__(self, live: Live, duration_provider: Callable[..., float]) -> None: super().__init__() self._live = live - self._analyser = analyser + self._duration_provider = duration_provider self._interrupted: Subject[float] = Subject() self._recovered: Subject[int] = Subject() @@ -59,7 +58,8 @@ class RecordingMonitor(AsyncCooperationMixin): if recording: failed_count += 1 if failed_count == CRITERIA: - self._interrupted.on_next(self._analyser.duration) + duration = self._duration_provider() + self._interrupted.on_next(duration) observer.on_error(exc) return source.subscribe( diff --git a/src/blrec/core/operators/request_exception_handler.py b/src/blrec/core/operators/request_exception_handler.py index 2f65aab..af65c57 100644 --- a/src/blrec/core/operators/request_exception_handler.py +++ b/src/blrec/core/operators/request_exception_handler.py @@ -9,7 +9,7 @@ import requests import urllib3 from reactivex import Observable, abc -from ...utils import operators as utils_ops +from blrec.utils import operators as utils_ops __all__ = ('RequestExceptionHandler',) diff --git a/src/blrec/core/operators/stream_fetcher.py b/src/blrec/core/operators/stream_fetcher.py index 22ca599..6ec9953 100644 --- a/src/blrec/core/operators/stream_fetcher.py +++ b/src/blrec/core/operators/stream_fetcher.py @@ -7,8 +7,8 @@ from typing import Optional import requests from reactivex import Observable, abc -from ...bili.live import Live -from ...utils.mixins import AsyncCooperationMixin +from blrec.bili.live import Live +from blrec.utils.mixins import AsyncCooperationMixin __all__ = ('StreamFetcher',) diff --git a/src/blrec/core/operators/stream_parser.py b/src/blrec/core/operators/stream_parser.py index f8ac3a9..ee4bfc6 100644 --- a/src/blrec/core/operators/stream_parser.py +++ b/src/blrec/core/operators/stream_parser.py @@ -6,10 +6,11 @@ import logging from reactivex import Observable from reactivex import operators as ops -from ...flv import operators as flv_ops -from ...flv.exceptions import FlvDataError -from ...flv.operators.typing import FLVStream -from ...utils import operators as utils_ops +from blrec.flv import operators as flv_ops +from blrec.flv.exceptions import FlvDataError +from blrec.flv.operators.typing import FLVStream +from blrec.utils import operators as utils_ops + from ..stream_param_holder import StreamParamHolder __all__ = ('StreamParser',) diff --git a/src/blrec/core/operators/stream_url_resolver.py b/src/blrec/core/operators/stream_url_resolver.py index 94d30a5..bc60529 100644 --- a/src/blrec/core/operators/stream_url_resolver.py +++ b/src/blrec/core/operators/stream_url_resolver.py @@ -9,7 +9,7 @@ import urllib3 from reactivex import Observable, abc from reactivex import operators as ops -from ...bili.exceptions import ( +from blrec.bili.exceptions import ( LiveRoomEncrypted, LiveRoomHidden, LiveRoomLocked, @@ -19,9 +19,10 @@ from ...bili.exceptions import ( NoStreamFormatAvailable, NoStreamQualityAvailable, ) -from ...bili.live import Live -from ...utils import operators as utils_ops -from ...utils.mixins import AsyncCooperationMixin +from blrec.bili.live import Live +from blrec.utils import operators as utils_ops +from blrec.utils.mixins import AsyncCooperationMixin + from ..stream_param_holder import StreamParamHolder, StreamParams __all__ = ('StreamURLResolver',) diff --git a/src/blrec/core/path_provider.py b/src/blrec/core/path_provider.py index 37c7fda..955751d 100644 --- a/src/blrec/core/path_provider.py +++ b/src/blrec/core/path_provider.py @@ -4,9 +4,9 @@ import re from datetime import datetime from typing import Tuple -from ..bili.live import Live -from ..path import escape_path -from ..utils.mixins import AsyncCooperationMixin +from blrec.bili.live import Live +from blrec.path import escape_path +from blrec.utils.mixins import AsyncCooperationMixin __all__ = ('PathProvider',) diff --git a/src/blrec/core/raw_danmaku_dumper.py b/src/blrec/core/raw_danmaku_dumper.py index 6622acc..a14ac71 100644 --- a/src/blrec/core/raw_danmaku_dumper.py +++ b/src/blrec/core/raw_danmaku_dumper.py @@ -8,12 +8,13 @@ import aiofiles from aiofiles.threadpool.text import AsyncTextIOWrapper from tenacity import AsyncRetrying, retry_if_not_exception_type, stop_after_attempt -from ..bili.live import Live -from ..event.event_emitter import EventEmitter, EventListener -from ..exception import exception_callback, submit_exception -from ..logging.room_id import aio_task_with_room_id -from ..path import raw_danmaku_path -from ..utils.mixins import SwitchableMixin +from blrec.bili.live import Live +from blrec.event.event_emitter import EventEmitter, EventListener +from blrec.exception import exception_callback, submit_exception +from blrec.logging.room_id import aio_task_with_room_id +from blrec.path import raw_danmaku_path +from blrec.utils.mixins import SwitchableMixin + from .raw_danmaku_receiver import RawDanmakuReceiver from .stream_recorder import StreamRecorder, StreamRecorderEventListener diff --git a/src/blrec/core/raw_danmaku_receiver.py b/src/blrec/core/raw_danmaku_receiver.py index 5d5a894..7a68c13 100644 --- a/src/blrec/core/raw_danmaku_receiver.py +++ b/src/blrec/core/raw_danmaku_receiver.py @@ -2,13 +2,11 @@ import logging from asyncio import Queue, QueueFull from typing import Final +from blrec.bili.danmaku_client import DanmakuClient, DanmakuListener +from blrec.bili.typing import Danmaku +from blrec.utils.mixins import StoppableMixin -from ..bili.danmaku_client import DanmakuClient, DanmakuListener -from ..bili.typing import Danmaku -from ..utils.mixins import StoppableMixin - - -__all__ = 'RawDanmakuReceiver', +__all__ = ('RawDanmakuReceiver',) logger = logging.getLogger(__name__) diff --git a/src/blrec/core/recorder.py b/src/blrec/core/recorder.py index dfa0387..a434f8d 100644 --- a/src/blrec/core/recorder.py +++ b/src/blrec/core/recorder.py @@ -7,15 +7,17 @@ from typing import Iterator, Optional import humanize -from ..bili.danmaku_client import DanmakuClient -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.operators import MetaData, StreamProfile -from ..logging.room_id import aio_task_with_room_id -from ..utils.mixins import AsyncStoppableMixin +from blrec.bili.danmaku_client import DanmakuClient +from blrec.bili.live import Live +from blrec.bili.live_monitor import LiveEventListener, LiveMonitor +from blrec.bili.models import RoomInfo +from blrec.bili.typing import QualityNumber, StreamFormat +from blrec.event.event_emitter import EventEmitter, EventListener +from blrec.flv.operators import MetaData, StreamProfile +from blrec.logging.room_id import aio_task_with_room_id +from blrec.setting.typing import RecordingMode +from blrec.utils.mixins import AsyncStoppableMixin + from .cover_downloader import CoverDownloader, CoverSaveStrategy from .danmaku_dumper import DanmakuDumper, DanmakuDumperEventListener from .danmaku_receiver import DanmakuReceiver @@ -77,6 +79,7 @@ class Recorder( path_template: str, *, stream_format: StreamFormat = 'flv', + recording_mode: RecordingMode = 'standard', quality_number: QualityNumber = 10000, fmp4_stream_timeout: int = 10, buffer_size: Optional[int] = None, @@ -108,6 +111,7 @@ class Recorder( out_dir=out_dir, path_template=path_template, stream_format=stream_format, + recording_mode=recording_mode, quality_number=quality_number, fmp4_stream_timeout=fmp4_stream_timeout, buffer_size=buffer_size, @@ -156,6 +160,14 @@ class Recorder( def stream_format(self, value: StreamFormat) -> None: self._stream_recorder.stream_format = value + @property + def recording_mode(self) -> RecordingMode: + return self._stream_recorder.recording_mode + + @recording_mode.setter + def recording_mode(self, value: RecordingMode) -> None: + self._stream_recorder.recording_mode = value + @property def quality_number(self) -> QualityNumber: return self._stream_recorder.quality_number @@ -365,6 +377,7 @@ class Recorder( async def on_live_ended(self, live: Live) -> None: logger.info('The live has ended') + await asyncio.sleep(3) self._stream_available = False self._stream_recorder.stream_available_time = None await self._stop_recording() diff --git a/src/blrec/core/stream_param_holder.py b/src/blrec/core/stream_param_holder.py index 8a54a62..8874a22 100644 --- a/src/blrec/core/stream_param_holder.py +++ b/src/blrec/core/stream_param_holder.py @@ -8,7 +8,7 @@ from reactivex import Observable, abc, create from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable from reactivex.scheduler.currentthreadscheduler import CurrentThreadScheduler -from ..bili.typing import ApiPlatform, QualityNumber, StreamFormat +from blrec.bili.typing import ApiPlatform, QualityNumber, StreamFormat __all__ = ('StreamParamHolder',) diff --git a/src/blrec/core/stream_recorder.py b/src/blrec/core/stream_recorder.py index 4132848..aece0cf 100644 --- a/src/blrec/core/stream_recorder.py +++ b/src/blrec/core/stream_recorder.py @@ -3,12 +3,15 @@ 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.operators import MetaData, StreamProfile -from ..utils.mixins import AsyncStoppableMixin +from blrec.bili.live import Live +from blrec.bili.typing import QualityNumber, StreamFormat +from blrec.event.event_emitter import EventEmitter +from blrec.flv.operators import MetaData, StreamProfile +from blrec.setting.typing import RecordingMode +from blrec.utils.mixins import AsyncStoppableMixin + from .flv_stream_recorder_impl import FLVStreamRecorderImpl +from .hls_raw_stream_recorder_impl import HLSRawStreamRecorderImpl from .hls_stream_recorder_impl import HLSStreamRecorderImpl from .stream_recorder_impl import StreamRecorderEventListener @@ -30,6 +33,7 @@ class StreamRecorder( path_template: str, *, stream_format: StreamFormat = 'flv', + recording_mode: RecordingMode = 'standard', quality_number: QualityNumber = 10000, fmp4_stream_timeout: int = 10, buffer_size: Optional[int] = None, @@ -42,12 +46,16 @@ class StreamRecorder( self._live = live self.stream_format = stream_format + self.recording_mode = recording_mode self.fmp4_stream_timeout = fmp4_stream_timeout if stream_format == 'flv': cls = FLVStreamRecorderImpl elif stream_format == 'fmp4': - cls = HLSStreamRecorderImpl # type: ignore + if recording_mode == 'standard': + cls = HLSStreamRecorderImpl # type: ignore + else: + cls = HLSRawStreamRecorderImpl # type: ignore else: logger.warning( f'The specified stream format ({stream_format}) is ' @@ -254,8 +262,8 @@ class StreamRecorder( async def on_video_file_completed(self, path: str) -> None: await self._emit('video_file_completed', path) - async def on_stream_recording_interrupted(self, timestamp: int) -> None: - await self._emit('stream_recording_interrupted', timestamp) + async def on_stream_recording_interrupted(self, duration: float) -> None: + await self._emit('stream_recording_interrupted', duration) async def on_stream_recording_recovered(self, timestamp: int) -> None: await self._emit('stream_recording_recovered', timestamp) @@ -284,7 +292,10 @@ class StreamRecorder( if stream_format == 'flv': cls = FLVStreamRecorderImpl elif stream_format == 'fmp4': - cls = HLSStreamRecorderImpl # type: ignore + if self.recording_mode == 'standard': + cls = HLSStreamRecorderImpl # type: ignore + else: + cls = HLSRawStreamRecorderImpl # type: ignore else: logger.warning( f'The specified stream format ({stream_format}) is ' diff --git a/src/blrec/core/stream_recorder_impl.py b/src/blrec/core/stream_recorder_impl.py index 34e500d..969fa70 100644 --- a/src/blrec/core/stream_recorder_impl.py +++ b/src/blrec/core/stream_recorder_impl.py @@ -9,15 +9,16 @@ import urllib3 from reactivex import abc from reactivex.typing import StartableFactory, StartableTarget -from ..bili.live import Live -from ..bili.typing import QualityNumber, StreamFormat -from ..event.event_emitter import EventEmitter, EventListener -from ..flv import operators as flv_ops -from ..flv.metadata_dumper import MetadataDumper -from ..flv.operators import StreamProfile -from ..flv.utils import format_timestamp -from ..logging.room_id import aio_task_with_room_id -from ..utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin +from blrec.bili.live import Live +from blrec.bili.typing import QualityNumber, StreamFormat +from blrec.event.event_emitter import EventEmitter, EventListener +from blrec.flv import operators as flv_ops +from blrec.flv.operators import StreamProfile +from blrec.flv.utils import format_timestamp +from blrec.logging.room_id import aio_task_with_room_id +from blrec.setting.typing import RecordingMode +from blrec.utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin + from . import operators as core_ops from .metadata_provider import MetadataProvider from .path_provider import PathProvider @@ -60,6 +61,7 @@ class StreamRecorderImpl( path_template: str, *, stream_format: StreamFormat = 'flv', + recording_mode: RecordingMode = 'standard', quality_number: QualityNumber = 10000, buffer_size: Optional[int] = None, read_timeout: Optional[int] = None, @@ -71,50 +73,30 @@ class StreamRecorderImpl( self._live = live self._session = requests.Session() + + self._recording_mode = recording_mode + self._buffer_size = buffer_size + self._read_timeout = read_timeout + self._filesize_limit = filesize_limit + self._duration_limit = duration_limit + self._stream_param_holder = StreamParamHolder( stream_format=stream_format, quality_number=quality_number ) self._stream_url_resolver = core_ops.StreamURLResolver( live, self._stream_param_holder ) - self._stream_fetcher = core_ops.StreamFetcher( - live, self._session, read_timeout=read_timeout - ) - self._stream_parser = core_ops.StreamParser( - self._stream_param_holder, - ignore_eof=stream_format != 'flv', - ignore_value_error=stream_format != 'flv', - ) self._progress_bar = core_ops.ProgressBar(live) - self._analyser = flv_ops.Analyser() self._metadata_provider = MetadataProvider(live, self) - self._injector = flv_ops.Injector(self._metadata_provider) - self._join_point_extractor = flv_ops.JoinPointExtractor() - self._limiter = flv_ops.Limiter(filesize_limit, duration_limit) - self._cutter = flv_ops.Cutter() self._path_provider = PathProvider(live, out_dir, path_template) - self._dumper = flv_ops.Dumper(self._path_provider, buffer_size) self._rec_statistics = core_ops.SizedStatistics() - self._recording_monitor = core_ops.RecordingMonitor(live, self._analyser) - - self._prober: Union[flv_ops.Prober, core_ops.HLSProber] self._dl_statistics: Union[core_ops.StreamStatistics, core_ops.SizedStatistics] - if stream_format == 'flv': - self._prober = flv_ops.Prober() - self._dl_statistics = core_ops.StreamStatistics() - else: - self._prober = core_ops.HLSProber() - self._dl_statistics = core_ops.SizedStatistics() self._request_exception_handler = core_ops.RequestExceptionHandler() self._connection_error_handler = core_ops.ConnectionErrorHandler( live, disconnection_timeout=disconnection_timeout ) self._exception_handler = core_ops.ExceptionHandler() - self._metadata_dumper = MetadataDumper( - self._dumper, self._analyser, self._join_point_extractor - ) - self._metadata_dumper.enable() self._subscription: abc.DisposableBase self._completed: bool = False @@ -126,37 +108,6 @@ class StreamRecorderImpl( self._stream_available_time: Optional[int] = None self._hls_stream_available_time: Optional[int] = None - def on_profile_updated(profile: StreamProfile) -> None: - self._stream_profile = profile - - self._prober.profiles.subscribe(on_profile_updated) - - def on_file_opened(args: Tuple[str, int]) -> None: - logger.info(f"Video file created: '{args[0]}'") - self._files.append(args[0]) - self._record_start_time = args[1] - self._emit_event('video_file_created', *args) - - def on_file_closed(path: str) -> None: - logger.info(f"Video file completed: '{path}'") - self._emit_event('video_file_completed', path) - - self._dumper.file_opened.subscribe(on_file_opened) - self._dumper.file_closed.subscribe(on_file_closed) - - def on_recording_interrupted(duration: float) -> None: - duration_string = format_timestamp(int(duration * 1000)) - logger.info(f'Recording interrupted, current duration: {duration_string}') - self._emit_event('stream_recording_interrupted', duration) - - def on_recording_recovered(timestamp: int) -> None: - datetime_string = datetime.fromtimestamp(timestamp).isoformat() - logger.info(f'Recording recovered, current date time {(datetime_string)}') - self._emit_event('stream_recording_recovered', timestamp) - - self._recording_monitor.interrupted.subscribe(on_recording_interrupted) - self._recording_monitor.recovered.subscribe(on_recording_recovered) - @property def stream_url(self) -> str: return self._stream_url_resolver.stream_url @@ -225,6 +176,10 @@ class StreamRecorderImpl( def stream_format(self) -> StreamFormat: return self._stream_param_holder.stream_format + @property + def recording_mode(self) -> RecordingMode: + return self._recording_mode + @property def quality_number(self) -> QualityNumber: return self._stream_param_holder.quality_number @@ -241,27 +196,27 @@ class StreamRecorderImpl( @property def filesize_limit(self) -> int: - return self._limiter.filesize_limit + return self._filesize_limit @filesize_limit.setter def filesize_limit(self, value: int) -> None: - self._limiter.filesize_limit = value + self._filesize_limit = value @property def duration_limit(self) -> int: - return self._limiter.duration_limit + return self._duration_limit @duration_limit.setter def duration_limit(self, value: int) -> None: - self._limiter.duration_limit = value + self._duration_limit = value @property def read_timeout(self) -> int: - return self._stream_fetcher.read_timeout + return self._read_timeout @read_timeout.setter def read_timeout(self, value: int) -> None: - self._stream_fetcher.read_timeout = value + self._read_timeout = value @property def disconnection_timeout(self) -> int: @@ -273,22 +228,19 @@ class StreamRecorderImpl( @property def buffer_size(self) -> int: - return self._dumper.buffer_size + return self._buffer_size @buffer_size.setter def buffer_size(self, value: int) -> None: - self._dumper.buffer_size = value + self._buffer_size = value @property def recording_path(self) -> Optional[str]: - return self._dumper.path + return '' @property def metadata(self) -> Optional[flv_ops.MetaData]: - try: - return self._analyser.make_metadata() - except Exception: - return None + return None @property def stream_profile(self) -> StreamProfile: @@ -304,10 +256,10 @@ class StreamRecorderImpl( self._files.clear() def can_cut_stream(self) -> bool: - return self._cutter.can_cut_stream() + return False def cut_stream(self) -> bool: - return self._cutter.cut_stream() + return False def update_progress_bar_info(self) -> None: self._progress_bar.update_bar_info() @@ -320,6 +272,7 @@ class StreamRecorderImpl( async def _do_start(self) -> None: logger.debug('Starting stream recorder...') + self._on_start() self._reset() self._run() logger.debug('Started stream recorder') @@ -332,8 +285,15 @@ class StreamRecorderImpl( for thread in self._threads: await self._loop.run_in_executor(None, thread.join, 30) self._threads.clear() + self._on_stop() logger.debug('Stopped stream recorder') + def _on_start(self) -> None: + pass + + def _on_stop(self) -> None: + pass + @abstractmethod def _run(self) -> None: raise NotImplementedError() @@ -362,6 +322,30 @@ class StreamRecorderImpl( self._rec_statistics.freeze() self._emit_event('stream_recording_completed') + def _on_profile_updated(self, profile: StreamProfile) -> None: + logger.debug(f'Stream profile: {profile}') + self._stream_profile = profile + + def _on_video_file_opened(self, args: Tuple[str, int]) -> None: + logger.info(f"Video file created: '{args[0]}'") + self._files.append(args[0]) + self._record_start_time = args[1] + self._emit_event('video_file_created', *args) + + def _on_video_file_closed(self, path: str) -> None: + logger.info(f"Video file completed: '{path}'") + self._emit_event('video_file_completed', path) + + def _on_recording_interrupted(self, duration: float) -> None: + duration_string = format_timestamp(int(duration * 1000)) + logger.info(f'Recording interrupted, current duration: {duration_string}') + self._emit_event('stream_recording_interrupted', duration) + + def _on_recording_recovered(self, timestamp: int) -> None: + datetime_string = datetime.fromtimestamp(timestamp).isoformat() + logger.info(f'Recording recovered, current date time {(datetime_string)}') + self._emit_event('stream_recording_recovered', timestamp) + def _emit_event(self, name: str, *args: Any, **kwds: Any) -> None: self._run_coroutine(self._emit(name, *args, **kwds)) diff --git a/src/blrec/data/webapp/183.90c399afcab1b014.js b/src/blrec/data/webapp/183.90c399afcab1b014.js new file mode 100644 index 0000000..42b60c1 --- /dev/null +++ b/src/blrec/data/webapp/183.90c399afcab1b014.js @@ -0,0 +1 @@ +(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[183],{3692:(M,v,s)=>{"use strict";s.d(v,{f:()=>P});var _=s(2134),d=s(5e3);let P=(()=>{class t{transform(c,z){if("string"==typeof c)c=parseFloat(c);else if("number"!=typeof c||isNaN(c))return"N/A";return(z=Object.assign({bitrate:!1,precision:3,spacer:" "},z)).bitrate?(0,_.AX)(c,z.spacer,z.precision):(0,_.N4)(c,z.spacer,z.precision)}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=d.Yjl({name:"datarate",type:t,pure:!0}),t})()},3520:(M,v,s)=>{"use strict";s.d(v,{U:()=>P});const _={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};var d=s(5e3);let P=(()=>{class t{transform(c){return _[c]}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=d.Yjl({name:"quality",type:t,pure:!0}),t})()},5141:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>InfoPanelComponent});var _angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5e3),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1715),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1746),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(534),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7221),src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7106),_shared_task_model__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2948),ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5278),_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(844),_angular_common__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9808),_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(1755),_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3692),_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3520);function InfoPanelComponent_ul_3_ng_container_36_Template(M,v){1&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.ynx(0),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(1,", bluray"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.BQk())}function InfoPanelComponent_ul_3_li_38_Template(M,v){if(1&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(2,"\u6d41\u7f16\u7801\u5668"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(3,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&M){const s=_angular_core__WEBPACK_IMPORTED_MODULE_2__.oxw(2);_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Oqu(null==s.profile.streams[0]||null==s.profile.streams[0].tags?null:s.profile.streams[0].tags.encoder)}}const _c0=function(){return{bitrate:!0}};function InfoPanelComponent_ul_3_Template(M,v){if(1&M&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"ul",3),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(3,"\u89c6\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(4,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(5,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(7,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(9,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(10),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(11,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(12),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(13,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(14,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(15,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(16,"\u97f3\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(17,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(18,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(19),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(20,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(21),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(22,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(23),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(24,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(25),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(26,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(27,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(28,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(29,"\u683c\u5f0f\u753b\u8d28"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(30,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(31,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(32),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(33,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(34),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(35,"quality"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(36,InfoPanelComponent_ul_3_ng_container_36_Template,2,0,"ng-container",7),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(37,") "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(38,InfoPanelComponent_ul_3_li_38_Template,5,1,"li",8),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(39,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(40,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(41,"\u6d41\u4e3b\u673a\u540d"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(42,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(43),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(44,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(45,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__._UZ(47,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(48,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(49),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(50,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(51,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(52,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(53,"\u5f55\u5236\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__._UZ(54,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(55,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(56),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(57,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&M){const s=_angular_core__WEBPACK_IMPORTED_MODULE_2__.oxw();let _;_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==s.profile.streams[0]?null:s.profile.streams[0].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.AsE(" ",null==s.profile.streams[0]?null:s.profile.streams[0].width,"x",null==s.profile.streams[0]?null:s.profile.streams[0].height," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",s.fps," fps"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(13,19,1e3*s.metadata.videodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(32,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].sample_rate," HZ"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==s.profile.streams[1]?null:s.profile.streams[1].channel_layout," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(26,22,1e3*s.metadata.audiodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(33,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",s.data.task_status.real_stream_format?s.data.task_status.real_stream_format:"N/A"," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.AsE(" ",s.data.task_status.real_quality_number?_angular_core__WEBPACK_IMPORTED_MODULE_2__.lcZ(35,25,s.data.task_status.real_quality_number):"N/A"," (",null!==(_=s.data.task_status.real_quality_number)&&void 0!==_?_:"N/A",""),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",s.isBlurayStreamQuality()),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",null==s.profile.streams[0]||null==s.profile.streams[0].tags?null:s.profile.streams[0].tags.encoder),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",s.data.task_status.stream_host," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("value",s.data.task_status.dl_rate),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(50,27,8*s.data.task_status.dl_rate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(34,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("value",s.data.task_status.rec_rate),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.lcZ(57,30,s.data.task_status.rec_rate)," ")}}let InfoPanelComponent=(()=>{class InfoPanelComponent{constructor(M,v,s){this.changeDetector=M,this.notification=v,this.taskService=s,this.metadata=null,this.close=new _angular_core__WEBPACK_IMPORTED_MODULE_2__.vpe,this.RunningStatus=_shared_task_model__WEBPACK_IMPORTED_MODULE_3__.cG}get fps(){var _a,_b;const avgFrameRate=null===(_b=null===(_a=this.profile)||void 0===_a?void 0:_a.streams[0])||void 0===_b?void 0:_b.avg_frame_rate;return avgFrameRate?eval(avgFrameRate).toFixed():"N/A"}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(M){M.preventDefault(),M.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)(0),(0,rxjs__WEBPACK_IMPORTED_MODULE_5__.F)(1e3)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.u)(),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.w)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_8__.$R)(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.K)(M=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",M.message),M}),(0,src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_10__.X)(3,1e3)).subscribe(([M,v])=>{this.profile=M,this.metadata=v,this.changeDetector.markForCheck()},M=>{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 M;null===(M=this.dataSubscription)||void 0===M||M.unsubscribe()}}return InfoPanelComponent.\u0275fac=function M(v){return new(v||InfoPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_2__.sBO),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_11__.zb),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__.M))},InfoPanelComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_2__.Xpm({type:InfoPanelComponent,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 M(v,s){1&v&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"button",1),_angular_core__WEBPACK_IMPORTED_MODULE_2__.NdJ("click",function(d){return s.closePanel(d)}),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(2," [x] "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(3,InfoPanelComponent_ul_3_Template,58,35,"ul",2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&v&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",s.data.task_status.running_status===s.RunningStatus.RECORDING&&s.profile&&s.profile.streams&&s.profile.format&&s.metadata))},directives:[_angular_common__WEBPACK_IMPORTED_MODULE_12__.O5,_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_13__.w],pipes:[_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_14__.f,_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_1__.U],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;height: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}),InfoPanelComponent})()},1755:(M,v,s)=>{"use strict";s.d(v,{w:()=>P});var _=s(1715),d=s(5e3);let P=(()=>{class t{constructor(c){this.changeDetector=c,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let z=0;z<=this.width;z+=2)this.data.push(0),this.points.push({x:z,y:this.height})}get polylinePoints(){return this.points.map(c=>`${c.x},${c.y}`).join(" ")}ngOnInit(){this.subscription=(0,_.F)(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let c=Math.max(...this.data);this.points=this.data.map((z,b)=>({x:Math.min(2*b,this.width),y:(1-z/(c||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var c;null===(c=this.subscription)||void 0===c||c.unsubscribe()}}return t.\u0275fac=function(c){return new(c||t)(d.Y36(d.sBO))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(c,z){1&c&&(d.O4$(),d.TgZ(0,"svg"),d._UZ(1,"polyline",0),d.qZA()),2&c&&(d.uIk("width",z.width)("height",z.height),d.xp6(1),d.uIk("stroke",z.stroke)("points",z.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),t})()},844:(M,v,s)=>{"use strict";s.d(v,{M:()=>z});var _=s(4850),d=s(2340),P=s(2948),t=s(5e3),h=s(520);const c=d.N.apiUrl;let z=(()=>{class b{constructor(p){this.http=p}getAllTaskData(p=P.jf.ALL){return this.http.get(c+"/api/v1/tasks/data",{params:{select:p}})}getTaskData(p){return this.http.get(c+`/api/v1/tasks/${p}/data`)}getVideoFileDetails(p){return this.http.get(c+`/api/v1/tasks/${p}/videos`)}getDanmakuFileDetails(p){return this.http.get(c+`/api/v1/tasks/${p}/danmakus`)}getTaskParam(p){return this.http.get(c+`/api/v1/tasks/${p}/param`)}getMetadata(p){return this.http.get(c+`/api/v1/tasks/${p}/metadata`)}getStreamProfile(p){return this.http.get(c+`/api/v1/tasks/${p}/profile`)}updateAllTaskInfos(){return this.http.post(c+"/api/v1/tasks/info",null)}updateTaskInfo(p){return this.http.post(c+`/api/v1/tasks/${p}/info`,null)}addTask(p){return this.http.post(c+`/api/v1/tasks/${p}`,null)}removeTask(p){return this.http.delete(c+`/api/v1/tasks/${p}`)}removeAllTasks(){return this.http.delete(c+"/api/v1/tasks")}startTask(p){return this.http.post(c+`/api/v1/tasks/${p}/start`,null)}startAllTasks(){return this.http.post(c+"/api/v1/tasks/start",null)}stopTask(p,m=!1,D=!1){return this.http.post(c+`/api/v1/tasks/${p}/stop`,{force:m,background:D})}stopAllTasks(p=!1,m=!1){return this.http.post(c+"/api/v1/tasks/stop",{force:p,background:m})}enableTaskMonitor(p){return this.http.post(c+`/api/v1/tasks/${p}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(c+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(p,m=!1){return this.http.post(c+`/api/v1/tasks/${p}/monitor/disable`,{background:m})}disableAllMonitors(p=!1){return this.http.post(c+"/api/v1/tasks/monitor/disable",{background:p})}enableTaskRecorder(p){return this.http.post(c+`/api/v1/tasks/${p}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(c+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(p,m=!1,D=!1){return this.http.post(c+`/api/v1/tasks/${p}/recorder/disable`,{force:m,background:D})}disableAllRecorders(p=!1,m=!1){return this.http.post(c+"/api/v1/tasks/recorder/disable",{force:p,background:m})}canCutStream(p){return this.http.get(c+`/api/v1/tasks/${p}/cut`).pipe((0,_.U)(D=>D.data.result))}cutStream(p){return this.http.post(c+`/api/v1/tasks/${p}/cut`,null)}}return b.\u0275fac=function(p){return new(p||b)(t.LFG(h.eN))},b.\u0275prov=t.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},2948:(M,v,s)=>{"use strict";s.d(v,{jf:()=>_,cG:()=>d,ii:()=>P,cS:()=>t});var _=(()=>{return(c=_||(_={})).ALL="all",c.PREPARING="preparing",c.LIVING="living",c.ROUNDING="rounding",c.MONITOR_ENABLED="monitor_enabled",c.MONITOR_DISABLED="monitor_disabled",c.RECORDER_ENABLED="recorder_enabled",c.RECORDER_DISABLED="recorder_disabled",c.STOPPED="stopped",c.WAITTING="waitting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",_;var c})(),d=(()=>{return(c=d||(d={})).STOPPED="stopped",c.WAITING="waiting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",d;var c})(),P=(()=>{return(c=P||(P={})).WAITING="waiting",c.REMUXING="remuxing",c.INJECTING="injecting",P;var c})(),t=(()=>{return(c=t||(t={})).RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",c.COMPLETED="completed",c.MISSING="missing",c.BROKEN="broken",t;var c})()},3183:(M,v,s)=>{"use strict";s.r(v),s.d(v,{TasksModule:()=>Ha});var _=s(9808),d=s(4182),P=s(5113),t=s(5e3);class h{constructor(i,e){this._document=e;const o=this._textarea=this._document.createElement("textarea"),a=o.style;a.position="fixed",a.top=a.opacity="0",a.left="-999em",o.setAttribute("aria-hidden","true"),o.value=i,this._document.body.appendChild(o)}copy(){const i=this._textarea;let e=!1;try{if(i){const o=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),o&&o.focus()}}catch(o){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let c=(()=>{class n{constructor(e){this._document=e}copy(e){const o=this.beginCopy(e),a=o.copy();return o.destroy(),a}beginCopy(e){return new h(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),R=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var p=s(1894),m=s(7484),D=s(647),u=s(655),f=s(8929),O=s(7625),w=s(8693),k=s(1721),y=s(226);function I(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(a){return t.CHM(e),t.oxw().closeTag(a)}),t.qZA()}}const J=["*"];let et=(()=>{class n{constructor(e,o,a,r){this.cdr=e,this.renderer=o,this.elementRef=a,this.directionality=r,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 f.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,o=new RegExp(`(ant-tag-(?:${[...w.uf,...w.Bh].join("|")}))`,"g"),a=e.classList.toString(),r=[];let g=o.exec(a);for(;null!==g;)r.push(g[1]),g=o.exec(a);e.classList.remove(...r)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,w.o2)(this.nzColor)||(0,w.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,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:o}=e;o&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o.updateCheckedStatus()}),2&e&&(t.Udp("background-color",o.isPresetColor?"":o.nzColor),t.ekj("ant-tag-has-color",o.nzColor&&!o.isPresetColor)("ant-tag-checkable","checkable"===o.nzMode)("ant-tag-checkable-checked",o.nzChecked)("ant-tag-rtl","rtl"===o.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:J,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,o){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,I,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===o.nzMode))},directives:[_.O5,D.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,k.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,_.ez,d.u5,D.PV]]}),n})();var nt=s(6699);const $=["nzType","avatar"];function H(n,i){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function ut(n,i){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function pt(n,i){if(1&n&&t._UZ(0,"li"),2&n){const e=i.index,o=t.oxw(3);t.Udp("width",o.toCSSUnit(o.widthList[e]))}}function gt(n,i){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,pt,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function dt(n,i){if(1&n&&(t.ynx(0),t.YNc(1,H,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,ut,1,2,"h3",3),t.YNc(4,gt,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 mt(n,i){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const xt=["*"];let ge=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-active",o.nzActive)("ant-skeleton-block",o.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,u.gn)([(0,k.yF)()],n.prototype,"nzBlock",void 0),n})(),de=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const o=`${this.nzSize}px`;this.styleMap={width:o,height:o,"line-height":o}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:$,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,o){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===o.nzShape)("ant-skeleton-avatar-circle","circle"===o.nzShape)("ant-skeleton-avatar-lg","large"===o.nzSize)("ant-skeleton-avatar-sm","small"===o.nzSize),t.Q6J("ngStyle",o.styleMap))},directives:[_.PC],encapsulation:2,changeDetection:0}),n})(),me=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],o.addClass(a.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,k.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,o=!!this.nzParagraph;let a="";return!e&&o?a="38%":e&&o&&(a="50%"),Object.assign({width:a},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,o=!!this.nzTitle,a={};return(!e||!o)&&(a.width="61%"),a.rows=!e&&o?3:2,Object.assign(Object.assign({},a),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:o}=this.paragraph;let a=[];return e&&Array.isArray(e)?a=e:e&&!Array.isArray(e)&&(a=[],a[o-1]=e),a}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-with-avatar",!!o.nzAvatar)("ant-skeleton-active",o.nzActive)("ant-skeleton-round",!!o.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:xt,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,dt,5,3,"ng-container",0),t.YNc(1,mt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",o.nzLoading),t.xp6(1),t.Q6J("ngIf",!o.nzLoading))},directives:[de,_.O5,ge,_.sg],encapsulation:2,changeDetection:0}),n})(),Nt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,_.ez]]}),n})();var ot=s(404),Dt=s(6462),X=s(3677),ht=s(6042),j=s(7957),W=s(4546),tt=s(1047),Bt=s(6114),he=s(4832),fe=s(2845),Ce=s(6950),ze=s(5664),Q=s(969),Te=s(4170);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,_.ez,ht.sL,fe.U8,Te.YI,D.PV,Q.T,Ce.e4,he.g,ot.cg,ze.rt]]}),n})();var ft=s(3868),Ut=s(5737),Rt=s(685),Lt=s(7525),Pe=s(8076),F=s(9439);function be(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function ye(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Se(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,ye,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function Fe(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function Ze(n,i){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,Fe,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function we(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Se,2,1,"span",7),t.YNc(2,Ze,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 Ie(n,i){1&n&&t._UZ(0,"i",15)}function Ne(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Be(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ne,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ue(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ie,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Be,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),o=t.oxw(2);t.xp6(3),t.Q6J("ngIf",o.nzCloseText)("ngIfElse",e)}}function Re(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,be,2,2,"ng-container",2),t.YNc(2,we,3,2,"div",3),t.YNc(3,Ue,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 Le=(()=>{class n{constructor(e,o,a){this.nzConfigService=e,this.cdr=o,this.directionality=a,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 f.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:o,nzDescription:a,nzType:r,nzBanner:g}=e;if(o&&(this.isShowIconSet=!0),r)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"}a&&(this.iconTheme=this.nzDescription?"outline":"fill"),g&&(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(F.jY),t.Y36(t.sBO),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,o){1&e&&t.YNc(0,Re,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[_.O5,D.Ls,Q.f],encapsulation:2,data:{animation:[Pe.Rq]},changeDetection:0}),(0,u.gn)([(0,F.oS)(),(0,k.yF)()],n.prototype,"nzCloseable",void 0),(0,u.gn)([(0,F.oS)(),(0,k.yF)()],n.prototype,"nzShowIcon",void 0),(0,u.gn)([(0,k.yF)()],n.prototype,"nzBanner",void 0),(0,u.gn)([(0,k.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),Je=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,_.ez,D.PV,Q.T]]}),n})();var it=s(4147),Mt=s(5197);function Qe(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function qe(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.hij(" ",e(o.nzPercent)," ")}}const We=function(n){return{$implicit:n}};function Ye(n,i){if(1&n&&t.YNc(0,qe,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,We,e.nzPercent))}}function Ke(n,i){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Qe,2,1,"ng-container",6),t.YNc(2,Ye,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===o.status||"success"===o.status)&&!o.nzFormat)("ngIfElse",e)}}function Ge(n,i){if(1&n&&t.YNc(0,Ke,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function $e(n,i){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function je(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,$e,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function Ve(n,i){}function He(n,i){if(1&n&&(t.ynx(0),t.YNc(1,je,4,11,"div",11),t.YNc(2,Ve,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Xe(n,i){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",i.$implicit)}function tn(n,i){}function en(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Xe,1,1,"div",19),t.YNc(2,tn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function nn(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,He,3,2,"ng-container",2),t.YNc(2,en,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 on(n,i){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=i.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function an(n,i){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,on,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 rn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",o.pathString)("stroke-linecap",o.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",o.nzPercent?o.strokeWidth:0)}}function sn(n,i){1&n&&t.O4$()}function ln(n,i){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,an,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,rn,1,5,"path",23),t.qZA(),t.YNc(5,sn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}const Qt=n=>{let i=[];return Object.keys(n).forEach(e=>{const o=n[e],a=function cn(n){return+n.replace("%","")}(e);isNaN(a)||i.push({key:a,value:o})}),i=i.sort((e,o)=>e.key-o.key),i};let pn=0;const qt="progress",gn=new Map([["success","check"],["exception","close"]]),dn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),mn=n=>`${n}%`;let Wt=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzConfigService=o,this.directionality=a,this._nzModuleName=qt,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=pn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=r=>`${r}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new f.xQ}get formatter(){return this.nzFormat||mn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:o,nzGapPosition:a,nzStrokeLinecap:r,nzStrokeColor:g,nzGapDegree:x,nzType:l,nzStatus:A,nzPercent:Z,nzSuccessPercent:L,nzStrokeWidth:q}=e;A&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(Z||L)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,k.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(A||Z||L||g)&&this.updateIcon(),g&&this.setStrokeColor(),(a||r||x||l||Z||g||g)&&this.getCirclePaths(),(Z||o||q)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(qt).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=gn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),o="small"===this.nzSize?2:14,a=[];for(let r=0;r{const K=2===e.length&&0===q;return{stroke:this.isGradient&&!K?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:K?dn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(L||0)/100*(r-g)}px ${r}px`,strokeDashoffset:`-${g/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,o=this.isGradient=!!e&&"string"!=typeof e;o&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:i="#1890ff",to:e="#1890ff",direction:o="to right"}=n,a=(0,u._T)(n,["from","to","direction"]);return 0!==Object.keys(a).length?`linear-gradient(${o}, ${Qt(a).map(({key:g,value:x})=>`${x} ${g}%`).join(", ")})`:`linear-gradient(${o}, ${i}, ${e})`})(e):o&&this.isCircleStyle?this.circleGradient=(n=>Qt(this.nzStrokeColor).map(({key:i,value:e})=>({offset:`${i}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(F.jY),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,o){1&e&&(t.YNc(0,Ge,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,nn,3,2,"div",2),t.YNc(4,ln,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===o.nzType)("ant-progress-small","small"===o.nzSize)("ant-progress-show-info",o.nzShowInfo)("ant-progress-circle",o.isCircleStyle)("ant-progress-steps",o.isSteps)("ant-progress-rtl","rtl"===o.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+o.status),t.xp6(1),t.Q6J("ngIf","line"===o.nzType),t.xp6(1),t.Q6J("ngIf",o.isCircleStyle))},directives:[_.O5,D.Ls,Q.f,_.mk,_.tP,_.sg,_.PC],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,F.oS)()],n.prototype,"nzShowInfo",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzStrokeColor",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzPercent",void 0),(0,u.gn)([(0,F.oS)(),(0,k.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,u.gn)([(0,F.oS)(),(0,k.Rn)()],n.prototype,"nzGapDegree",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzGapPosition",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzSteps",void 0),n})(),hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,_.ez,D.PV,Q.T]]}),n})();var Y=s(592),Yt=s(925);let fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();const Cn=function(n){return{$implicit:n}};function zn(n,i){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,Cn,e.nzValue))}}function Tn(n,i){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function xn(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function Dn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Tn,2,1,"span",4),t.YNc(2,xn,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 Mn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function vn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function On(n,i){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,vn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function kn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function En(n,i){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,kn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let An=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,_.dv)(this.locale_id,_.wE.Decimal),o=String(this.nzValue),[a,r]=o.split(e);this.displayInt=a,this.displayDecimal=r?`${e}${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,zn,1,4,"ng-container",1),t.YNc(2,Dn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!o.nzValueTemplate))},directives:[_.O5,_.tP],encapsulation:2,changeDetection:0}),n})(),Kt=(()=>{class n{constructor(e,o){this.cdr=e,this.directionality=o,this.nzValueStyle={},this.dir="ltr",this.destroy$=new f.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Mn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,On,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"===o.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",o.nzTitle),t.xp6(1),t.Q6J("ngStyle",o.nzValueStyle),t.xp6(1),t.Q6J("ngIf",o.nzPrefix),t.xp6(1),t.Q6J("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",o.nzSuffix))},directives:[An,Q.f,_.PC,_.O5],encapsulation:2,changeDetection:0}),n})(),Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,_.ez,Yt.ud,Q.T,fn]]}),n})();var Gt=s(6787),bn=s(1059),at=s(7545),yn=s(7138),S=s(2994),Sn=s(6947),vt=s(4090);function Fn(n,i){1&n&&t.Hsn(0)}const Zn=["*"];function wn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function In(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,wn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Nn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function Bn(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Nn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function Un(n,i){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,In,2,1,"div",4),t.YNc(2,Bn,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 Rn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Ln(n,i){}function Jn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Rn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Ln,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Qn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function qn(n,i){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Qn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Wn(n,i){}function Yn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,qn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,Wn,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 Kn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Jn,7,5,"ng-container",2),t.YNc(2,Yn,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function Gn(n,i){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,Kn,3,2,"ng-container",11),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function $n(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Gn,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function jn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Vn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,jn,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Hn(n,i){}function Xn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function to(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,Vn,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,Xn,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function eo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,to,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function no(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function oo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,no,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function io(n,i){}function ao(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,io,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function ro(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,oo,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,ao,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function so(n,i){if(1&n&&(t.ynx(0),t.YNc(1,ro,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function lo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,eo,2,1,"ng-container",2),t.YNc(2,so,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}let Ot=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new f.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,7),2&e){let a;t.iGM(a=t.CRH())&&(o.content=a.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:Zn,decls:1,vars:0,template:function(e,o){1&e&&(t.F$t(),t.YNc(0,Fn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,u.gn)([(0,k.Rn)()],n.prototype,"nzSpan",void 0),n})();const _o={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let $t=(()=>{class n{constructor(e,o,a,r){this.nzConfigService=e,this.cdr=o,this.breakpointService=a,this.directionality=r,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=_o,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=vt.G_.md,this.destroy$=new f.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,bn.O)(this.items),(0,O.R)(this.destroy$));(0,Gt.T)(e,e.pipe((0,at.w)(()=>(0,Gt.T)(...this.items.map(o=>o.inputChange$)).pipe((0,yn.e)(16)))),this.breakpointService.subscribe(vt.WV).pipe((0,S.b)(o=>this.breakpoint=o))).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],o=0;const a=this.realColumn=this.getColumn(),r=this.items.toArray(),g=r.length,x=[],l=()=>{x.push(e),e=[],o=0};for(let A=0;A=a?(o>a&&(0,Sn.ZK)(`"nzColumn" is ${a} but we have row length ${o}`),e.push({title:L,content:q,span:a-(o-K)}),l()):A===g-1?(e.push({title:L,content:q,span:a-(o-K)}),l()):e.push({title:L,content:q,span:K})}this.itemMatrix=x}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(F.jY),t.Y36(t.sBO),t.Y36(vt.r3),t.Y36(y.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,o,a){if(1&e&&t.Suo(a,Ot,4),2&e){let r;t.iGM(r=t.CRH())&&(o.items=r)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,o){2&e&&t.ekj("ant-descriptions-bordered",o.nzBordered)("ant-descriptions-middle","middle"===o.nzSize)("ant-descriptions-small","small"===o.nzSize)("ant-descriptions-rtl","rtl"===o.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,o){1&e&&(t.YNc(0,Un,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,$n,2,1,"ng-container",2),t.YNc(5,lo,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",o.nzTitle||o.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===o.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===o.nzLayout))},directives:[_.O5,Q.f,_.sg,_.tP],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,k.yF)(),(0,F.oS)()],n.prototype,"nzBordered",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzColumn",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,F.oS)(),(0,k.yF)()],n.prototype,"nzColon",void 0),n})(),uo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[y.vT,_.ez,Q.T,Yt.ud]]}),n})();var N=s(1086),Ct=s(8896),jt=s(353),po=s(6498),go=s(3489);const Vt={leading:!0,trailing:!1};class Co{constructor(i,e,o,a){this.duration=i,this.scheduler=e,this.leading=o,this.trailing=a}call(i,e){return e.subscribe(new zo(i,this.duration,this.scheduler,this.leading,this.trailing))}}class zo extends go.L{constructor(i,e,o,a,r){super(i),this.duration=e,this.scheduler=o,this.leading=a,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(i){this.throttled?this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(To,this.duration,{subscriber:this})),this.leading?this.destination.next(i):this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const i=this.throttled;i&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),i.unsubscribe(),this.remove(i),this.throttled=null)}}function To(n){const{subscriber:i}=n;i.clearThrottle()}class kt{constructor(i){this.changes=i}static of(i){return new kt(i)}notEmpty(i){if(this.changes[i]){const e=this.changes[i].currentValue;if(null!=e)return(0,N.of)(e)}return Ct.E}has(i){return this.changes[i]?(0,N.of)(this.changes[i].currentValue):Ct.E}notFirst(i){return this.changes[i]&&!this.changes[i].isFirstChange()?(0,N.of)(this.changes[i].currentValue):Ct.E}notFirstAndEmpty(i){if(this.changes[i]&&!this.changes[i].isFirstChange()){const e=this.changes[i].currentValue;if(null!=e)return(0,N.of)(e)}return Ct.E}}const Ht=new t.OlP("NGX_ECHARTS_CONFIG");let Xt=(()=>{class n{constructor(e,o,a){this.el=o,this.ngZone=a,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 f.xQ,this.echarts=e.echarts}ngOnChanges(e){const o=kt.of(e);o.notFirstAndEmpty("options").subscribe(a=>this.onOptionsChange(a)),o.notFirstAndEmpty("merge").subscribe(a=>this.setOption(a)),o.has("loading").subscribe(a=>this.toggleLoading(!!a)),o.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function fo(n,i=jt.P,e=Vt){return o=>o.lift(new Co(n,i,e.leading,e.trailing))}(100,jt.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,o){if(this.chart)try{this.chart.setOption(e,o)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){return(0,u.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const o=window.getComputedStyle(e,null).getPropertyValue("height");(!o||"0px"===o)&&(!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:a})=>a(e,this.theme,this.initOpts)))}initChart(){return(0,u.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,u.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,at.w)(o=>new po.y(a=>(o.on(e,r=>this.ngZone.run(()=>a.next(r))),()=>{this.chart&&(this.chart.isDisposed()||o.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),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})(),xo=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Ht,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 Do=s(4466),rt=s(2302),te=s(1715),ee=s(1746),ne=s(534),st=s(7221),Et=s(7106),oe=s(5278),At=s(844),Mo=s(7512),vo=s(5545);let Oo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.userInfo.name),t.xp6(2),t.Oqu(o.userInfo.gender),t.xp6(2),t.Oqu(o.userInfo.uid),t.xp6(2),t.Oqu(o.userInfo.level),t.xp6(2),t.hij(" ",o.userInfo.sign," "))},directives:[m.bd,$t,Ot],styles:[""],changeDetection:0}),n})();function ko(n,i){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Eo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Ao(n,i){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Po(n,i){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function bo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function yo(n,i){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e," ")}}function So(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let Fo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,ko,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,Eo,2,0,"ng-container",10),t.YNc(14,Ao,2,0,"ng-container",10),t.YNc(15,Po,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,bo,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,yo,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,So,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.roomInfo.title),t.xp6(2),t.AsE(" ",o.roomInfo.parent_area_name," - ",o.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",o.roomInfo.short_room_id),t.xp6(2),t.hij(" ",o.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",o.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==o.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.description.split("\n")))},directives:[m.bd,$t,Ot,_.O5,_.RF,_.n9,_.sg,et],pipes:[_.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 C=s(2948),lt=s(2134);let ie=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const o=Math.floor(e/3600),a=Math.floor(e/60%60),r=Math.floor(e%60);let g="";return o>0&&(g+=o+":"),g+=a<10?"0"+a:a,g+=":",g+=r<10?"0"+r:r,g}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})();var Pt=s(3692),Zo=s(855);let zt=(()=>{class n{transform(e,o){return Zo(e,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();var ae=s(3520);function wo(n,i){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 Io(n,i){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 No=function(){return{spacer:" "}};function Bo(n,i){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,No)))}}function Uo(n,i){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 Ro=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===C.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,lt.N4)(a.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:o=>(0,lt.N4)(o)}},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,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,wo,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,Io,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,Bo,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,Uo,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 a=t.MAs(4),r=t.MAs(7),g=t.MAs(10),x=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",r),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",g),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",x),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,o.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[m.bd,Kt,Xt],pipes:[ie,Pt.f,zt,ae.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 Lo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function Jo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const Qo=function(){return{bitrate:!0}};function qo(n,i){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,Qo)))}}const Wo=function(){return{spacer:" "}};function Yo(n,i){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,Wo)))}}let Ko=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===C.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,lt.AX)(a.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(o){return(0,lt.AX)(o)}}},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,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Lo,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,Jo,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,qo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,Yo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const a=t.MAs(4),r=t.MAs(7),g=t.MAs(10),x=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",r),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",g),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",x),t.xp6(3),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[m.bd,Kt,Xt],pipes:[Pt.f,zt],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})(),bt=(()=>{class n{transform(e){var o,a;return e?e.startsWith("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":null!==(a=e.split("\\").pop())&&void 0!==a?a:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),re=(()=>{class n{transform(e){return e&&0!==e.total?Math.round(e.count/e.total*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 C.ii.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case C.ii.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let a;t.Q6J("nzTitle",o.title)("nzLoading",o.loading),t.xp6(1),t.Q6J("title",o.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(a=o.taskStatus.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzPercent",null===o.taskStatus.postprocessing_progress?0:t.lcZ(5,7,o.taskStatus.postprocessing_progress))}},directives:[m.bd,Wt],pipes:[bt,re],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const $o=new Map([[C.cS.RECORDING,"\u5f55\u5236\u4e2d"],[C.cS.INJECTING,"\u5904\u7406\u4e2d"],[C.cS.REMUXING,"\u5904\u7406\u4e2d"],[C.cS.COMPLETED,"\u5df2\u5b8c\u6210"],[C.cS.MISSING,"\u4e0d\u5b58\u5728"],[C.cS.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let jo=(()=>{class n{transform(e){var o;return null!==(o=$o.get(e))&&void 0!==o?o:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function Vo(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function Ho(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const se=[C.cS.RECORDING,C.cS.INJECTING,C.cS.REMUXING,C.cS.COMPLETED,C.cS.MISSING];let Xo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=C.cS,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,o)=>e.path.localeCompare(o.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,o)=>{switch(e){case"video":return o.path.endsWith(".flv")||o.path.endsWith(".mp4");case"danmaku":return o.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,o)=>e.size-o.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,o)=>se.indexOf(e.status)-se.indexOf(o.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[C.cS.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[C.cS.INJECTING,C.cS.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[C.cS.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[C.cS.MISSING]}],filterFn:(e,o)=>e.some(a=>a.some(r=>r===o.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,o){return o.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,Vo,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,Ho,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(2);t.Q6J("nzLoading",o.loading),t.xp6(1),t.Q6J("nzLoading",o.loading)("nzData",o.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",o.columns),t.xp6(2),t.Q6J("ngForOf",a.data)("ngForTrackBy",o.trackByPath)}},directives:[m.bd,Y.N8,Y.Om,Y.$Z,_.sg,Y.Uo,Y._C,Y.qD,Y.p0],pipes:[bt,_.JJ,zt,jo],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 ti(n,i){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function ei(n,i){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function ni(n,i){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function oi(n,i){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 ii(n,i){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ai(n,i){if(1&n&&(t.YNc(0,ti,1,2,"app-task-user-info-detail",2),t.YNc(1,ei,1,2,"app-task-room-info-detail",3),t.YNc(2,ni,1,2,"app-task-recording-detail",4),t.YNc(3,oi,1,2,"app-task-network-detail",4),t.YNc(4,ii,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 ri=function(){return{"max-width":"unset"}},si=function(){return{"row-gap":"1em"}};let li=(()=>{class n{constructor(e,o,a,r,g){this.route=e,this.router=o,this.changeDetector=a,this.notification=r,this.taskService=g,this.videoFileDetails=[],this.danmakuFileDetails=[],this.loading=!0}ngOnInit(){this.route.paramMap.subscribe(e=>{this.roomId=parseInt(e.get("id")),this.syncData()})}ngOnDestroy(){this.desyncData()}syncData(){this.dataSubscription=(0,N.of)((0,N.of)(0),(0,te.F)(1e3)).pipe((0,ne.u)(),(0,at.w)(()=>(0,ee.$R)(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,st.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,Et.X)(10,3e3)).subscribe(([e,o,a])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=o,this.danmakuFileDetails=a,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(rt.gz),t.Y36(rt.F0),t.Y36(t.sBO),t.Y36(oe.zb),t.Y36(At.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,o){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ai,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",o.loading)("pageStyles",t.DdM(3,ri))("contentStyles",t.DdM(4,si))},directives:[Mo.q,vo.Y,_.O5,Oo,Fo,Ro,Ko,Go,Xo],styles:[""],changeDetection:0}),n})();var le=s(2323),ci=s(13),_i=s(5778),V=s(4850);const ct=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var yt=s(9727);let St=(()=>{class n{constructor(e,o){this.message=e,this.taskService=o}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,V.U)(e=>e.map(o=>o.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,S.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},o=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${o.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,S.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,V.U)(o=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,st.K)(o=>{let a;return a=409==o.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==o.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==o.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${o.message}`},(0,N.of)(a)}),(0,V.U)(o=>(o.message=`${e}: ${o.message}`,o)),(0,S.b)(o=>{this.message[o.type](o.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,S.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},o=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,S.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}startTask(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,S.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,S.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}stopTask(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,o).pipe((0,S.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},r=>{this.message.remove(a),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${r.message}`)}))}stopAllTasks(e=!1){const o=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,S.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},a=>{this.message.remove(o),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}enableRecorder(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,S.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u5f00\u542f\u5f55\u5236\u51fa\u9519: ${a.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,S.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},o=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${o.message}`)}))}disableRecorder(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,o).pipe((0,S.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},r=>{this.message.remove(a),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${r.message}`)}))}disableAllRecorders(e=!1){const o=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,S.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},a=>{this.message.remove(o),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}canCutStream(e){return this.taskService.canCutStream(e).pipe((0,S.b)(o=>{o||this.message.warning(`[${e}] \u4e0d\u652f\u6301\u6587\u4ef6\u5207\u5272~`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,S.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},o=>{403==o.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: ${o.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(yt.dD),t.LFG(At.M))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Ft=s(2683),_t=s(4219);function ui(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),o=t.MAs(9),a=t.MAs(11),r=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",r)}}function pi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),o=t.MAs(9),a=t.MAs(11),r=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",r)}}function gi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),o=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function di(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.YNc(1,di,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 hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function fi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const a=t.MAs(2),r=t.oxw();return a.value="",r.onFilterInput("")}),t.qZA()}}function Ci(n,i){if(1&n&&t.YNc(0,fi,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const a=t.MAs(2);return t.oxw().onFilterInput(a.value)}),t.qZA(),t.qZA(),t.YNc(3,Ci,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Ti(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function xi(n,i){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function Mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function vi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),o=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",o)}}function Oi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const ki=function(){return{padding:"0"}};function Ei(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().drawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,vi,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Oi,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(23);t.Q6J("nzTitle",o)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,ki))("nzVisible",e.menuDrawerVisible)}}function Ai(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Pi=(()=>{class n{constructor(e,o,a,r,g,x){this.message=a,this.modal=r,this.clipboard=g,this.taskManager=x,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new f.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new f.xQ,this.selections=[{label:"\u5168\u90e8",value:C.jf.ALL},{label:"\u5f55\u5236\u4e2d",value:C.jf.RECORDING},{label:"\u5f55\u5236\u5f00",value:C.jf.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:C.jf.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:C.jf.MONITOR_ENABLED},{label:"\u505c\u6b62",value:C.jf.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:C.jf.LIVING},{label:"\u8f6e\u64ad",value:C.jf.ROUNDING},{label:"\u95f2\u7f6e",value:C.jf.PREPARING}],o.observe(ct).pipe((0,O.R)(this.destroyed)).subscribe(l=>{this.useDrawer=l.breakpoints[ct[0]],this.useSelector=l.breakpoints[ct[1]],this.useRadioGroup=l.breakpoints[ct[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,ci.b)(300),(0,_i.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,o)=>{this.taskManager.removeAllTasks().subscribe(e,o)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopAllTasks(e).subscribe(o,a)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableAllRecorders(e).subscribe(o,a)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,V.U)(e=>e.join(" ")),(0,S.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(P.Yg),t.Y36(yt.dD),t.Y36(j.Sf),t.Y36(c),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,ui,8,4,"ng-container",1),t.YNc(2,pi,8,4,"ng-container",1),t.YNc(3,gi,3,2,"ng-container",1),t.qZA(),t.YNc(4,mi,2,2,"ng-template",null,2,t.W1O),t.YNc(6,hi,1,2,"ng-template",null,3,t.W1O),t.YNc(8,zi,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Ti,4,3,"ng-template",null,5,t.W1O),t.YNc(12,xi,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Di,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,Mi,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Ei,4,7,"nz-drawer",11),t.YNc(22,Ai,3,0,"ng-template",null,12,t.W1O)),2&e){const a=t.MAs(18);t.ekj("use-drawer",o.useDrawer),t.xp6(1),t.Q6J("ngIf",o.useRadioGroup),t.xp6(1),t.Q6J("ngIf",o.useSelector),t.xp6(1),t.Q6J("ngIf",o.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",a),t.xp6(5),t.Q6J("ngIf",o.useDrawer)}},directives:[_.O5,_.tP,Ut.g,ft.Dg,d.JJ,d.On,_.sg,ft.Of,ft.Bq,Mt.Vq,Ft.w,tt.gB,tt.ke,tt.Zp,D.Ls,ht.ix,X.wA,X.cm,X.RR,_t.wO,_t.r9,_t.YV,it.Vz,it.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 bi=s(5136);let yi=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var o;const a=this.storage.getData(this.getStorageKey(e));return a&&null!==(o=JSON.parse(a))&&void 0!==o?o:{}}updateSettings(e,o){o=Object.assign(this.getSettings(e),o);const a=JSON.stringify(o);this.storage.setData(this.getStorageKey(e),a)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(le.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Si=s(5141);const ce=function(){return{spacer:""}};function Fi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"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,ce))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ce))," "),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 Zi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),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 wi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),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 Ii=(()=>{class n{constructor(){this.RunningStatus=C.cG}}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,o){1&e&&(t.ynx(0,0),t.YNc(1,Fi,20,24,"div",1),t.YNc(2,Zi,7,13,"div",1),t.YNc(3,wi,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",o.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.REMUXING))},directives:[_.RF,_.n9,ot.SY,Wt],pipes:[ie,Pt.f,zt,_.JJ,ae.U,bt,re],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 U=s(3523),B=s(8737);function Ni(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function Bi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function Ui(n,i){if(1&n&&(t.YNc(0,Ni,2,0,"ng-container",54),t.YNc(1,Bi,2,0,"ng-container",54)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ri(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",13),t._uU(2,"\u5927\u5c0f\u9650\u5236"),t.qZA(),t.TgZ(3,"nz-form-control",15),t.TgZ(4,"nz-select",55),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.output.filesizeLimit=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.output.filesizeLimit=a?r.globalSettings.output.filesizeLimit:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e.splitFileTip),t.xp6(3),t.Q6J("ngModel",e.model.output.filesizeLimit)("disabled",null===e.options.output.filesizeLimit)("nzOptions",e.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==e.options.output.filesizeLimit)}}function Li(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",13),t._uU(2,"\u65f6\u957f\u9650\u5236"),t.qZA(),t.TgZ(3,"nz-form-control",15),t.TgZ(4,"nz-select",56),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.output.durationLimit=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.output.durationLimit=a?r.globalSettings.output.durationLimit:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e.splitFileTip),t.xp6(3),t.Q6J("ngModel",e.model.output.durationLimit)("disabled",null===e.options.output.durationLimit)("nzOptions",e.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==e.options.output.durationLimit)}}function Ji(n,i){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 Qi(n,i){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 qi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",13),t._uU(2,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(3,Qi,8,0,"ng-template",null,57,t.W1O),t.TgZ(5,"nz-form-control",15),t.TgZ(6,"nz-select",58,59),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.fmp4StreamTimeout=a}),t.qZA(),t.qZA(),t.TgZ(8,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.fmp4StreamTimeout=a?r.globalSettings.recorder.fmp4StreamTimeout:null}),t._uU(9,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.recorder.fmp4StreamTimeout)("disabled",null===o.options.recorder.fmp4StreamTimeout)("nzOptions",o.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==o.options.recorder.fmp4StreamTimeout)}}function Wi(n,i){1&n&&(t.TgZ(0,"p"),t._uU(1," \u6807\u51c6\u6a21\u5f0f: \u5bf9\u4e0b\u8f7d\u7684\u6d41\u6570\u636e\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(2,"br"),t._uU(3," \u539f\u59cb\u6a21\u5f0f: \u76f4\u63a5\u4e0b\u8f7d\u6d41\u6570\u636e\uff0c\u6ca1\u6709\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u4e0d\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(4,"br"),t.qZA())}function Yi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",13),t._uU(2,"\u5f55\u5236\u6a21\u5f0f"),t.qZA(),t.YNc(3,Wi,5,0,"ng-template",null,60,t.W1O),t.TgZ(5,"nz-form-control",15),t.TgZ(6,"nz-select",61),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.recordingMode=a}),t.qZA(),t.qZA(),t.TgZ(7,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.recordingMode=a?r.globalSettings.recorder.recordingMode:null}),t._uU(8,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(4),o=t.oxw(2);t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(5),t.Q6J("ngModel",o.model.recorder.recordingMode)("disabled",null===o.options.recorder.recordingMode)("nzOptions",o.recordingModeOptions),t.xp6(1),t.Q6J("nzChecked",null!==o.options.recorder.recordingMode)}}function Ki(n,i){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 Gi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",62),t._uU(2,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(3,"nz-form-control",63),t.TgZ(4,"nz-select",64,65),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.readTimeout=a}),t.qZA(),t.qZA(),t.TgZ(6,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.readTimeout=a?r.globalSettings.recorder.readTimeout:null}),t._uU(7,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.MAs(5),o=t.oxw(2);t.xp6(3),t.Q6J("nzValidateStatus",e.value>3?"warning":e),t.xp6(1),t.Q6J("ngModel",o.model.recorder.readTimeout)("disabled",null===o.options.recorder.readTimeout)("nzOptions",o.readTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==o.options.recorder.readTimeout)}}function $i(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",66),t._uU(2,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(3,"nz-form-control",15),t.TgZ(4,"nz-select",67),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.recorder.bufferSize=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.recorder.bufferSize=a?r.globalSettings.recorder.bufferSize:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.model.recorder.bufferSize)("disabled",null===e.options.recorder.bufferSize)("nzOptions",e.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==e.options.recorder.bufferSize)}}function ji(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-form-item",12),t.TgZ(1,"nz-form-label",68),t._uU(2,"flv \u6dfb\u52a0\u5143\u6570\u636e"),t.qZA(),t.TgZ(3,"nz-form-control",20),t.TgZ(4,"nz-switch",69),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).model.postprocessing.injectExtraMetadata=a}),t.qZA(),t.qZA(),t.TgZ(5,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw(2);return r.options.postprocessing.injectExtraMetadata=a?r.globalSettings.postprocessing.injectExtraMetadata:null}),t._uU(6,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngModel",e.model.postprocessing.injectExtraMetadata)("disabled",null===e.options.postprocessing.injectExtraMetadata||!!e.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==e.options.postprocessing.injectExtraMetadata)}}function Vi(n,i){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 Hi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Xi(n,i){1&n&&t.YNc(0,Hi,2,0,"ng-container",54),2&n&&t.Q6J("ngIf",i.$implicit.hasError("required"))}function ta(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.pathTemplate=a}),t.qZA(),t.YNc(10,Ui,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.output.pathTemplate=a?r.globalSettings.output.pathTemplate:null}),t._uU(13,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(14,Ri,7,5,"nz-form-item",10),t.YNc(15,Li,7,5,"nz-form-item",10),t.qZA(),t.TgZ(16,"div",11),t.TgZ(17,"h2"),t._uU(18,"\u5f55\u5236"),t.qZA(),t.TgZ(19,"nz-form-item",12),t.TgZ(20,"nz-form-label",13),t._uU(21,"\u76f4\u64ad\u6d41\u683c\u5f0f"),t.qZA(),t.YNc(22,Ji,14,0,"ng-template",null,14,t.W1O),t.TgZ(24,"nz-form-control",15),t.TgZ(25,"nz-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.streamFormat=a}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.streamFormat=a?r.globalSettings.recorder.streamFormat:null}),t._uU(27,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(28,qi,10,5,"nz-form-item",10),t.YNc(29,Yi,9,5,"nz-form-item",10),t.TgZ(30,"nz-form-item",12),t.TgZ(31,"nz-form-label",17),t._uU(32,"\u753b\u8d28"),t.qZA(),t.TgZ(33,"nz-form-control",15),t.TgZ(34,"nz-select",18),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.qualityNumber=a}),t.qZA(),t.qZA(),t.TgZ(35,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.qualityNumber=a?r.globalSettings.recorder.qualityNumber:null}),t._uU(36,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(37,"nz-form-item",12),t.TgZ(38,"nz-form-label",19),t._uU(39,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(40,"nz-form-control",20),t.TgZ(41,"nz-switch",21),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.saveCover=a}),t.qZA(),t.qZA(),t.TgZ(42,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.saveCover=a?r.globalSettings.recorder.saveCover:null}),t._uU(43,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(44,"nz-form-item",12),t.TgZ(45,"nz-form-label",13),t._uU(46,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(47,Ki,8,0,"ng-template",null,22,t.W1O),t.TgZ(49,"nz-form-control",15),t.TgZ(50,"nz-select",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=a}),t.qZA(),t.qZA(),t.TgZ(51,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.coverSaveStrategy=a?r.globalSettings.recorder.coverSaveStrategy:null}),t._uU(52,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(53,Gi,8,5,"nz-form-item",10),t.TgZ(54,"nz-form-item",12),t.TgZ(55,"nz-form-label",24),t._uU(56,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(57,"nz-form-control",15),t.TgZ(58,"nz-select",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=a}),t.qZA(),t.qZA(),t.TgZ(59,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.recorder.bufferSize=a?r.globalSettings.recorder.bufferSize:null}),t._uU(60,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.YNc(61,$i,7,5,"nz-form-item",10),t.qZA(),t.TgZ(62,"div",26),t.TgZ(63,"h2"),t._uU(64,"\u5f39\u5e55"),t.qZA(),t.TgZ(65,"nz-form-item",12),t.TgZ(66,"nz-form-label",27),t._uU(67,"\u8bb0\u5f55\u793c\u7269"),t.qZA(),t.TgZ(68,"nz-form-control",20),t.TgZ(69,"nz-switch",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=a}),t.qZA(),t.qZA(),t.TgZ(70,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordGiftSend=a?r.globalSettings.danmaku.recordGiftSend:null}),t._uU(71,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(72,"nz-form-item",12),t.TgZ(73,"nz-form-label",29),t._uU(74,"\u8bb0\u5f55\u514d\u8d39\u793c\u7269"),t.qZA(),t.TgZ(75,"nz-form-control",20),t.TgZ(76,"nz-switch",30),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=a}),t.qZA(),t.qZA(),t.TgZ(77,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordFreeGifts=a?r.globalSettings.danmaku.recordFreeGifts:null}),t._uU(78,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(79,"nz-form-item",12),t.TgZ(80,"nz-form-label",31),t._uU(81,"\u8bb0\u5f55\u4e0a\u8230"),t.qZA(),t.TgZ(82,"nz-form-control",20),t.TgZ(83,"nz-switch",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=a}),t.qZA(),t.qZA(),t.TgZ(84,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordGuardBuy=a?r.globalSettings.danmaku.recordGuardBuy:null}),t._uU(85,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(86,"nz-form-item",12),t.TgZ(87,"nz-form-label",33),t._uU(88,"\u8bb0\u5f55 Super Chat"),t.qZA(),t.TgZ(89,"nz-form-control",20),t.TgZ(90,"nz-switch",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=a}),t.qZA(),t.qZA(),t.TgZ(91,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.recordSuperChat=a?r.globalSettings.danmaku.recordSuperChat:null}),t._uU(92,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(93,"nz-form-item",12),t.TgZ(94,"nz-form-label",35),t._uU(95,"\u5f39\u5e55\u524d\u52a0\u7528\u6237\u540d"),t.qZA(),t.TgZ(96,"nz-form-control",20),t.TgZ(97,"nz-switch",36),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.danmuUname=a}),t.qZA(),t.qZA(),t.TgZ(98,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.danmuUname=a?r.globalSettings.danmaku.danmuUname:null}),t._uU(99,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(100,"nz-form-item",12),t.TgZ(101,"nz-form-label",37),t._uU(102,"\u4fdd\u5b58\u539f\u59cb\u5f39\u5e55"),t.qZA(),t.TgZ(103,"nz-form-control",20),t.TgZ(104,"nz-switch",38),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=a}),t.qZA(),t.qZA(),t.TgZ(105,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.danmaku.saveRawDanmaku=a?r.globalSettings.danmaku.saveRawDanmaku:null}),t._uU(106,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(107,"div",39),t.TgZ(108,"h2"),t._uU(109,"\u6587\u4ef6\u5904\u7406"),t.qZA(),t.YNc(110,ji,7,3,"nz-form-item",10),t.TgZ(111,"nz-form-item",12),t.TgZ(112,"nz-form-label",40),t._uU(113,"\u8f6c\u5c01\u88c5\u4e3a mp4"),t.qZA(),t.TgZ(114,"nz-form-control",20),t.TgZ(115,"nz-switch",41),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=a}),t.qZA(),t.qZA(),t.TgZ(116,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.postprocessing.remuxToMp4=a?r.globalSettings.postprocessing.remuxToMp4:null}),t._uU(117,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(118,"nz-form-item",12),t.TgZ(119,"nz-form-label",13),t._uU(120,"\u6e90\u6587\u4ef6\u5220\u9664\u7b56\u7565"),t.qZA(),t.YNc(121,Vi,7,0,"ng-template",null,42,t.W1O),t.TgZ(123,"nz-form-control",15),t.TgZ(124,"nz-select",43),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=a}),t.qZA(),t.qZA(),t.TgZ(125,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.postprocessing.deleteSource=a?r.globalSettings.postprocessing.deleteSource:null}),t._uU(126,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(127,"div",44),t.TgZ(128,"h2"),t._uU(129,"\u7f51\u7edc\u8bf7\u6c42"),t.qZA(),t.TgZ(130,"nz-form-item",45),t.TgZ(131,"nz-form-label",46),t._uU(132,"User Agent"),t.qZA(),t.TgZ(133,"nz-form-control",47),t.TgZ(134,"textarea",48,49),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.userAgent=a}),t.qZA(),t.qZA(),t.YNc(136,Xi,1,1,"ng-template",null,8,t.W1O),t.TgZ(138,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.header.userAgent=a?r.globalSettings.header.userAgent:null}),t._uU(139,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.TgZ(140,"nz-form-item",45),t.TgZ(141,"nz-form-label",50),t._uU(142,"Cookie"),t.qZA(),t.TgZ(143,"nz-form-control",51),t.TgZ(144,"textarea",52,53),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.header.cookie=a}),t.qZA(),t.qZA(),t.TgZ(146,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const r=t.oxw();return r.options.header.cookie=a?r.globalSettings.header.cookie:null}),t._uU(147,"\u8986\u76d6\u5168\u5c40\u8bbe\u7f6e"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.BQk()}if(2&n){const e=t.MAs(11),o=t.MAs(23),a=t.MAs(48),r=t.MAs(122),g=t.MAs(135),x=t.MAs(145),l=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",l.pathTemplatePattern)("ngModel",l.model.output.pathTemplate)("disabled",null===l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==l.options.output.pathTemplate),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(1),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(5),t.Q6J("nzTooltipTitle",o),t.xp6(5),t.Q6J("ngModel",l.model.recorder.streamFormat)("disabled",null===l.options.recorder.streamFormat)("nzOptions",l.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.streamFormat),t.xp6(2),t.Q6J("ngIf","fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(1),t.Q6J("ngIf","fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(5),t.Q6J("ngModel",l.model.recorder.qualityNumber)("disabled",null===l.options.recorder.qualityNumber)("nzOptions",l.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",l.model.recorder.saveCover)("disabled",null===l.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",l.model.recorder.coverSaveStrategy)("disabled",null===l.options.recorder.coverSaveStrategy||!l.options.recorder.saveCover)("nzOptions",l.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.coverSaveStrategy),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)),t.xp6(5),t.Q6J("ngModel",l.model.recorder.disconnectionTimeout)("disabled",null===l.options.recorder.disconnectionTimeout)("nzOptions",l.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(2),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(8),t.Q6J("ngModel",l.model.danmaku.recordGiftSend)("disabled",null===l.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordFreeGifts)("disabled",null===l.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordGuardBuy)("disabled",null===l.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordSuperChat)("disabled",null===l.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.danmuUname)("disabled",null===l.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.saveRawDanmaku)("disabled",null===l.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.saveRawDanmaku),t.xp6(5),t.Q6J("ngIf","flv"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)||"fmp4"===(l.options.recorder.streamFormat||l.model.recorder.streamFormat)&&"standard"===(l.options.recorder.recordingMode||l.model.recorder.recordingMode)),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.remuxToMp4)("disabled",null===l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",r),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.deleteSource)("disabled",null===l.options.postprocessing.deleteSource||!l.options.postprocessing.remuxToMp4)("nzOptions",l.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",g.valid&&l.options.header.userAgent!==l.taskOptions.header.userAgent&&l.options.header.userAgent!==l.globalSettings.header.userAgent?"warning":g)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.userAgent)("disabled",null===l.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==l.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",x.valid&&l.options.header.cookie!==l.taskOptions.header.cookie&&l.options.header.cookie!==l.globalSettings.header.cookie?"warning":x),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.cookie)("disabled",null===l.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==l.options.header.cookie)}}let ea=(()=>{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=B.Uk,this.pathTemplatePattern=B._m,this.filesizeLimitOptions=(0,U.Z)(B.Pu),this.durationLimitOptions=(0,U.Z)(B.Fg),this.streamFormatOptions=(0,U.Z)(B.tp),this.recordingModeOptions=(0,U.Z)(B.kV),this.fmp4StreamTimeoutOptions=(0,U.Z)(B.D4),this.qualityOptions=(0,U.Z)(B.O6),this.readTimeoutOptions=(0,U.Z)(B.D4),this.disconnectionTimeoutOptions=(0,U.Z)(B.$w),this.bufferOptions=(0,U.Z)(B.Rc),this.deleteStrategies=(0,U.Z)(B.rc),this.coverSaveStrategies=(0,U.Z)(B.J_)}ngOnChanges(){this.options=(0,U.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,lt.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const o of Object.keys(this.options)){const g=this.globalSettings[o];Reflect.set(e,o,new Proxy(this.options[o],{get:(x,l)=>{var A;return null!==(A=Reflect.get(x,l))&&void 0!==A?A:Reflect.get(g,l)},set:(x,l,A)=>Reflect.set(x,l,A)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(d.F,5),2&e){let a;t.iGM(a=t.CRH())&&(o.ngForm=a.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"],["class","setting-item",4,"ngIf"],["ngModelGroup","recorder",1,"form-group","recorder"],[1,"setting-item"],["nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],["streamFormatTip",""],[1,"setting-control","select"],["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"],["coverSaveStrategyTip",""],["name","coverSaveStrategy",3,"ngModel","disabled","nzOptions","ngModelChange"],["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"],["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","\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"],["name","filesizeLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["name","durationLimit",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeoutTip",""],["name","fmp4StreamTimeout",3,"ngModel","disabled","nzOptions","ngModelChange"],["fmp4StreamTimeout","ngModel"],["recordingModeTip",""],["name","recordingMode",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","\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"],["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"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()})("nzAfterOpen",function(){return o.afterOpen.emit()})("nzAfterClose",function(){return o.afterClose.emit()}),t.YNc(1,ta,148,73,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkDisabled",null==o.ngForm||null==o.ngForm.form?null:o.ngForm.form.invalid)},directives:[j.du,j.Hf,d._Y,d.JL,d.F,W.Lr,d.Mq,p.SK,W.Nx,p.t3,W.iK,W.Fd,tt.Zp,d.Fj,d.Q7,d.c5,d.JJ,d.On,_.O5,Bt.Ie,Mt.Vq,Dt.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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 _e(n,i,e,o,a,r,g){try{var x=n[r](g),l=x.value}catch(A){return void e(A)}x.done?i(l):Promise.resolve(l).then(o,a)}var Zt=s(5254),oa=s(3753),ia=s(2313);const wt=new Map,It=new Map;let aa=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,o="object"){return"object"===o?It.has(e)?(0,N.of)(It.get(e)):(0,Zt.D)(this.fetchImage(e)).pipe((0,V.U)(a=>URL.createObjectURL(a)),(0,V.U)(a=>this.domSanitizer.bypassSecurityTrustUrl(a)),(0,S.b)(a=>It.set(e,a)),(0,st.K)(()=>(0,N.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):wt.has(e)?(0,N.of)(wt.get(e)):(0,Zt.D)(this.fetchImage(e)).pipe((0,at.w)(a=>this.createDataURL(a)),(0,S.b)(a=>wt.set(e,a)),(0,st.K)(()=>(0,N.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function na(n){return function(){var i=this,e=arguments;return new Promise(function(o,a){var r=n.apply(i,e);function g(l){_e(r,o,a,g,x,"next",l)}function x(l){_e(r,o,a,g,x,"throw",l)}g(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const o=new FileReader,a=(0,oa.R)(o,"load").pipe((0,V.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(o.result)));return o.readAsDataURL(e),a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ia.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function ra(n,i){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 sa=function(n){return[n,"detail"]};function la(n,i){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,ra,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,sa,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 ca(n,i){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 ua(n,i){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 pa(n,i){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 ga(n,i){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 da(n,i){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,ua,4,0,"nz-tag",28),t.YNc(7,pa,4,0,"nz-tag",29),t.YNc(8,ga,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 ma(n,i){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 ha(n,i){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,ma,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 fa(n,i){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 Ca(n,i){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 za(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(a){return t.CHM(e),t.oxw(2).settingsDialogVisible=a})("confirm",function(a){return t.CHM(e),t.oxw(2).changeTaskOptions(a)})("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 Ta(n,i){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,za,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function xa(n,i){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 Da(n,i){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 Ma(n,i){if(1&n&&(t.YNc(0,xa,2,1,"div",52),t.YNc(1,Da,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function va(n,i){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 Oa(n,i){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 ka=function(){return{padding:"0"}};function Ea(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,Oa,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,ka))("nzVisible",e.menuDrawerVisible)}}const Aa=function(n,i,e,o){return[n,i,e,o]},Pa=function(){return{padding:"0.5rem"}},ba=function(){return{size:"large"}};let ya=(()=>{class n{constructor(e,o,a,r,g,x,l){this.changeDetector=o,this.message=a,this.modal=r,this.settingService=g,this.taskManager=x,this.appTaskSettings=l,this.stopped=!1,this.destroyed=new f.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=C.cG,e.observe(ct[0]).pipe((0,O.R)(this.destroyed)).subscribe(A=>{this.useDrawer=A.matches,o.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===C.cG.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===C.cG.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!==C.cG.STOPPED?e&&this.data.task_status.running_status==C.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopTask(this.roomId,e).subscribe(o,a)})}):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==C.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(o,a)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){(0,ee.$R)(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,o])=>{this.taskOptions=e,this.globalSettings=o,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,Et.X)(3,300)).subscribe(o=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},o=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${o.message}`)})}cutStream(){this.data.task_status.running_status===C.cG.RECORDING&&this.taskManager.canCutStream(this.roomId).subscribe(e=>{e&&this.taskManager.cutStream(this.roomId).subscribe()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.Yg),t.Y36(t.sBO),t.Y36(yt.dD),t.Y36(j.Sf),t.Y36(bi.R),t.Y36(St),t.Y36(yi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("stopped",o.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"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,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,la,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ca,3,7,"ng-template",null,4,t.W1O),t.YNc(7,da,9,6,"ng-template",null,5,t.W1O),t.YNc(9,ha,12,7,"ng-template",null,6,t.W1O),t.YNc(11,fa,1,4,"ng-template",null,7,t.W1O),t.YNc(13,Ca,2,2,"ng-template",null,8,t.W1O),t.YNc(15,Ta,3,1,"ng-template",null,9,t.W1O),t.YNc(17,Ma,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,va,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,Ea,2,4,"nz-drawer",14)),2&e){const a=t.MAs(4),r=t.MAs(6),g=t.MAs(8),x=t.MAs(10),l=t.MAs(12),A=t.MAs(14),Z=t.MAs(16),L=t.MAs(18),q=t.MAs(23);t.Q6J("nzCover",a)("nzHoverable",!0)("nzActions",t.l5B(12,Aa,A,Z,l,L))("nzBodyStyle",t.DdM(17,Pa)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!o.data)("nzAvatar",t.DdM(18,ba)),t.xp6(1),t.Q6J("nzAvatar",r)("nzTitle",g)("nzDescription",x),t.xp6(19),t.Q6J("ngTemplateOutlet",q),t.xp6(3),t.Q6J("ngIf",o.useDrawer)}},directives:[m.bd,me,m.l7,rt.yS,ot.SY,_.O5,Si.i,Ii,nt.Dz,_.RF,_.n9,et,D.Ls,Ft.w,Dt.i,d.JJ,d.On,ea,X.cm,X.RR,_.tP,_t.wO,_t.r9,it.Vz,it.SQ],pipes:[_.Ov,aa],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 Sa(n,i){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Fa(n,i){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",i.$implicit)}function Za(n,i){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Fa,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 wa=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,o){return o.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,o){if(1&e&&(t.YNc(0,Sa,2,0,"div",0),t.YNc(1,Za,3,2,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",0===o.dataList.length)("ngIfElse",a)}},directives:[_.O5,Rt.p9,_.sg,ya],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 Ia=s(2643),Na=s(1406);function Ba(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function Ua(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function Ra(n,i){if(1&n&&(t.YNc(0,Ba,2,0,"ng-container",8),t.YNc(1,Ua,2,0,"ng-container",8)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function La(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function Ja(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Ra,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,La,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();t.xp6(1),t.Q6J("formGroup",o.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",o.pattern),t.xp6(4),t.Q6J("ngForOf",o.resultMessages)}}const Qa=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,qa=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let Wa=(()=>{class n{constructor(e,o,a){this.changeDetector=o,this.taskManager=a,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=qa,this.formGroup=e.group({input:["",[d.kI.required,d.kI.pattern(this.pattern)]]})}get inputControl(){return this.formGroup.get("input")}open(){this.setVisible(!0)}close(){this.resultMessages=[],this.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}reset(){this.pending=!1,this.formGroup.reset(),this.changeDetector.markForCheck()}handleCancel(){this.close()}handleConfirm(){this.pending=!0;const e=this.inputControl.value.trim();let o;o=e.startsWith("http")?[parseInt(Qa.exec(e)[1])]:new Set(e.split(/\s+/).map(a=>parseInt(a))),(0,Zt.D)(o).pipe((0,Na.b)(a=>this.taskManager.addTask(a)),(0,S.b)(a=>{this.resultMessages.push(a),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(a=>"success"===a.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.qu),t.Y36(t.sBO),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()}),t.YNc(1,Ja,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkLoading",o.pending)("nzOkDisabled",o.formGroup.invalid)("nzCancelDisabled",o.pending)("nzClosable",!o.pending)("nzMaskClosable",!o.pending)},directives:[j.du,j.Hf,d._Y,d.JL,W.Lr,d.sg,p.SK,W.Nx,p.t3,W.Fd,tt.Zp,d.Fj,d.Q7,d.JJ,d.u,d.c5,_.O5,_.sg,Le],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),Ka=(()=>{class n{transform(e,o=""){return console.debug("filter tasks by '%s'",o),[...this.filterByTerm(e,o)]}filterByTerm(e,o){return function*Ya(n,i){for(const e of n)i(e)&&(yield e)}(e,a=>""===(o=o.trim())||a.user_info.name.includes(o)||a.room_info.title.toString().includes(o)||a.room_info.area_name.toString().includes(o)||a.room_info.room_id.toString().includes(o)||a.room_info.short_room_id.toString().includes(o))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function Ga(n,i){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function $a(n,i){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const ue="app-tasks-selection",pe="app-tasks-reverse",ja=[{path:":id/detail",component:li},{path:"",component:(()=>{class n{constructor(e,o,a,r){this.changeDetector=e,this.notification=o,this.storage=a,this.taskService=r,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(ue);return null!==e?e:C.jf.ALL}retrieveReverse(){return"true"===this.storage.getData(pe)}storeSelection(e){this.storage.setData(ue,e)}storeReverse(e){this.storage.setData(pe,e.toString())}syncTaskData(){this.dataSubscription=(0,N.of)((0,N.of)(0),(0,te.F)(1e3)).pipe((0,ne.u)(),(0,at.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,st.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,Et.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(oe.zb),t.Y36(le.V),t.Y36(At.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(g){return o.onSelectionChanged(g)})("reverseChange",function(g){return o.onReverseChanged(g)})("filterChange",function(g){return o.filterTerm=g}),t.qZA(),t.YNc(1,Ga,1,2,"nz-spin",1),t.YNc(2,$a,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(a),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const a=t.MAs(3);t.Q6J("selection",o.selection)("reverse",o.reverse),t.xp6(1),t.Q6J("ngIf",o.loading)("ngIfElse",a)}},directives:[Pi,_.O5,Lt.W,wa,ht.ix,Ia.dQ,Ft.w,ot.SY,D.Ls,Wa],pipes:[Ka],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 Va=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[rt.Bz.forChild(ja)],rt.Bz]}),n})(),Ha=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,d.u5,d.UX,P.xu,R,p.Jb,m.vh,Nt,nt.Rt,D.PV,Nt,ot.cg,G,Dt.m,X.b1,ht.sL,j.Qp,W.U5,tt.o7,Bt.Wr,Ae,ft.aF,Ut.S,Rt.Xo,Lt.j,Je,it.BL,Mt.LV,hn,Y.HQ,Pn,uo,xo.forRoot({echarts:()=>s.e(45).then(s.bind(s,8045))}),Va,Do.m]]}),n})()},855:function(M){M.exports=function(){"use strict";var v=/^(b|B)$/,s={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"]}},_={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 P(t){var h,c,z,b,R,p,m,D,u,f,O,w,k,y,I,J,et,G,nt,Tt,$,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},T=[],H=0;if(isNaN(t))throw new TypeError("Invalid number");if(z=!0===E.bits,I=!0===E.unix,w=!0===E.pad,k=void 0!==E.round?E.round:I?1:2,m=void 0!==E.locale?E.locale:"",D=E.localeOptions||{},J=void 0!==E.separator?E.separator:"",et=void 0!==E.spacer?E.spacer:I?"":" ",nt=E.symbols||{},G=2===(c=E.base||2)&&E.standard||"jedec",O=E.output||"string",R=!0===E.fullform,p=E.fullforms instanceof Array?E.fullforms:[],h=void 0!==E.exponent?E.exponent:-1,Tt=d[E.roundingMethod]||Math.round,u=(f=Number(t))<0,b=c>2?1e3:1024,$=!1===isNaN(E.precision)?parseInt(E.precision,10):0,u&&(f=-f),(-1===h||isNaN(h))&&(h=Math.floor(Math.log(f)/Math.log(b)))<0&&(h=0),h>8&&($>0&&($+=8-h),h=8),"exponent"===O)return h;if(0===f)T[0]=0,y=T[1]=I?"":s[G][z?"bits":"bytes"][h];else{H=f/(2===c?Math.pow(2,10*h):Math.pow(1e3,h)),z&&(H*=8)>=b&&h<8&&(H/=b,h++);var ut=Math.pow(10,h>0?k:0);T[0]=Tt(H*ut)/ut,T[0]===b&&h<8&&void 0===E.exponent&&(T[0]=1,h++),y=T[1]=10===c&&1===h?z?"kb":"kB":s[G][z?"bits":"bytes"][h],I&&(T[1]="jedec"===G?T[1].charAt(0):h>0?T[1].replace(/B$/,""):T[1],v.test(T[1])&&(T[0]=Math.floor(T[0]),T[1]=""))}if(u&&(T[0]=-T[0]),$>0&&(T[0]=T[0].toPrecision($)),T[1]=nt[T[1]]||T[1],!0===m?T[0]=T[0].toLocaleString():m.length>0?T[0]=T[0].toLocaleString(m,D):J.length>0&&(T[0]=T[0].toString().replace(".",J)),w&&!1===Number.isInteger(T[0])&&k>0){var pt=J||".",gt=T[0].toString().split(pt),dt=gt[1]||"",mt=dt.length,xt=k-mt;T[0]="".concat(gt[0]).concat(pt).concat(dt.padEnd(mt+xt,"0"))}return R&&(T[1]=p[h]?p[h]:_[G][h]+(z?"bit":"byte")+(1===T[0]?"":"s")),"array"===O?T:"object"===O?{value:T[0],symbol:T[1],exponent:h,unit:y}:T.join(et)}return P.partial=function(t){return function(h){return P(h,t)}},P}()},1715:(M,v,s)=>{"use strict";s.d(v,{F:()=>t});var _=s(6498),d=s(353),P=s(4241);function t(c=0,z=d.P){return(!(0,P.k)(c)||c<0)&&(c=0),(!z||"function"!=typeof z.schedule)&&(z=d.P),new _.y(b=>(b.add(z.schedule(h,c,{subscriber:b,counter:0,period:c})),b))}function h(c){const{subscriber:z,counter:b,period:R}=c;z.next(b),this.schedule({subscriber:z,counter:b+1,period:R},R)}},1746:(M,v,s)=>{"use strict";s.d(v,{$R:()=>c});var _=s(3009),d=s(6688),P=s(3489),t=s(5430),h=s(1177);function c(...D){const u=D[D.length-1];return"function"==typeof u&&D.pop(),(0,_.n)(D,void 0).lift(new z(u))}class z{constructor(u){this.resultSelector=u}call(u,f){return f.subscribe(new b(u,this.resultSelector))}}class b extends P.L{constructor(u,f,O=Object.create(null)){super(u),this.resultSelector=f,this.iterators=[],this.active=0,this.resultSelector="function"==typeof f?f:void 0}_next(u){const f=this.iterators;(0,d.k)(u)?f.push(new p(u)):f.push("function"==typeof u[t.hZ]?new R(u[t.hZ]()):new m(this.destination,this,u))}_complete(){const u=this.iterators,f=u.length;if(this.unsubscribe(),0!==f){this.active=f;for(let O=0;Othis.index}hasCompleted(){return this.array.length===this.index}}class m extends h.Ds{constructor(u,f,O){super(u),this.parent=f,this.observable=O,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[t.hZ](){return this}next(){const u=this.buffer;return 0===u.length&&this.isComplete?{value:null,done:!0}:{value:u.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(u){this.buffer.push(u),this.parent.checkIterators()}subscribe(){return(0,h.ft)(this.observable,new h.IY(this))}}}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/183.ae1a1102b7d5cbdb.js b/src/blrec/data/webapp/183.ae1a1102b7d5cbdb.js deleted file mode 100644 index df2ae3d..0000000 --- a/src/blrec/data/webapp/183.ae1a1102b7d5cbdb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[183],{3692:(D,v,r)=>{"use strict";r.d(v,{f:()=>y});var _=r(2134),m=r(5e3);let y=(()=>{class t{transform(c,f){if("string"==typeof c)c=parseFloat(c);else if("number"!=typeof c||isNaN(c))return"N/A";return(f=Object.assign({bitrate:!1,precision:3,spacer:" "},f)).bitrate?(0,_.AX)(c,f.spacer,f.precision):(0,_.N4)(c,f.spacer,f.precision)}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=m.Yjl({name:"datarate",type:t,pure:!0}),t})()},3520:(D,v,r)=>{"use strict";r.d(v,{U:()=>y});const _={2e4:"4K",1e4:"\u539f\u753b",401:"\u84dd\u5149(\u675c\u6bd4)",400:"\u84dd\u5149",250:"\u8d85\u6e05",150:"\u9ad8\u6e05",80:"\u6d41\u7545"};var m=r(5e3);let y=(()=>{class t{transform(c){return _[c]}}return t.\u0275fac=function(c){return new(c||t)},t.\u0275pipe=m.Yjl({name:"quality",type:t,pure:!0}),t})()},5141:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{i:()=>InfoPanelComponent});var _angular_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5e3),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1715),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1746),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(534),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7221),src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7106),_shared_task_model__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2948),ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5278),_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(844),_angular_common__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(9808),_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(1755),_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3692),_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3520);function InfoPanelComponent_ul_3_ng_container_36_Template(D,v){1&D&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.ynx(0),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(1,", bluray"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.BQk())}function InfoPanelComponent_ul_3_li_38_Template(D,v){if(1&D&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(2,"\u6d41\u7f16\u7801\u5668"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(3,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&D){const r=_angular_core__WEBPACK_IMPORTED_MODULE_2__.oxw(2);_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Oqu(null==r.profile.streams[0]||null==r.profile.streams[0].tags?null:r.profile.streams[0].tags.encoder)}}const _c0=function(){return{bitrate:!0}};function InfoPanelComponent_ul_3_Template(D,v){if(1&D&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"ul",3),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(2,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(3,"\u89c6\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(4,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(5,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(7,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(9,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(10),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(11,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(12),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(13,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(14,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(15,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(16,"\u97f3\u9891\u4fe1\u606f"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(17,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(18,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(19),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(20,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(21),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(22,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(23),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(24,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(25),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(26,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(27,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(28,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(29,"\u683c\u5f0f\u753b\u8d28"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(30,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(31,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(32),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(33,"span"),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(34),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(35,"quality"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(36,InfoPanelComponent_ul_3_ng_container_36_Template,2,0,"ng-container",7),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(37,") "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(38,InfoPanelComponent_ul_3_li_38_Template,5,1,"li",8),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(39,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(40,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(41,"\u6d41\u4e3b\u673a\u540d"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(42,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(43),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(44,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(45,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(46,"\u4e0b\u8f7d\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__._UZ(47,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(48,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(49),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(50,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(51,"li",4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(52,"span",5),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(53,"\u5f55\u5236\u901f\u5ea6"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__._UZ(54,"app-wave-graph",9),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(55,"span",6),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(56),_angular_core__WEBPACK_IMPORTED_MODULE_2__.ALo(57,"datarate"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&D){const r=_angular_core__WEBPACK_IMPORTED_MODULE_2__.oxw();let _;_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[0]?null:r.profile.streams[0].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.AsE(" ",null==r.profile.streams[0]?null:r.profile.streams[0].width,"x",null==r.profile.streams[0]?null:r.profile.streams[0].height," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",r.fps," fps"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(13,19,1e3*r.metadata.videodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(32,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[1]?null:r.profile.streams[1].codec_name," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[1]?null:r.profile.streams[1].sample_rate," HZ"),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",null==r.profile.streams[1]?null:r.profile.streams[1].channel_layout," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(26,22,1e3*r.metadata.audiodatarate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(33,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(7),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",r.data.task_status.real_stream_format?r.data.task_status.real_stream_format:"N/A"," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.AsE(" ",r.data.task_status.real_quality_number?_angular_core__WEBPACK_IMPORTED_MODULE_2__.lcZ(35,25,r.data.task_status.real_quality_number):"N/A"," (",null!==(_=r.data.task_status.real_quality_number)&&void 0!==_?_:"N/A",""),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",r.isBlurayStreamQuality()),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",null==r.profile.streams[0]||null==r.profile.streams[0].tags?null:r.profile.streams[0].tags.encoder),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",r.data.task_status.stream_host," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(4),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("value",r.data.task_status.dl_rate),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.xi3(50,27,8*r.data.task_status.dl_rate,_angular_core__WEBPACK_IMPORTED_MODULE_2__.DdM(34,_c0))," "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("value",r.data.task_status.rec_rate),_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.hij(" ",_angular_core__WEBPACK_IMPORTED_MODULE_2__.lcZ(57,30,r.data.task_status.rec_rate)," ")}}let InfoPanelComponent=(()=>{class InfoPanelComponent{constructor(D,v,r){this.changeDetector=D,this.notification=v,this.taskService=r,this.metadata=null,this.close=new _angular_core__WEBPACK_IMPORTED_MODULE_2__.vpe,this.RunningStatus=_shared_task_model__WEBPACK_IMPORTED_MODULE_3__.cG}get fps(){var _a,_b;const avgFrameRate=null===(_b=null===(_a=this.profile)||void 0===_a?void 0:_a.streams[0])||void 0===_b?void 0:_b.avg_frame_rate;return avgFrameRate?eval(avgFrameRate).toFixed():"N/A"}ngOnInit(){this.syncData()}ngOnDestroy(){this.desyncData()}isBlurayStreamQuality(){return/_bluray/.test(this.data.task_status.stream_url)}closePanel(D){D.preventDefault(),D.stopPropagation(),this.close.emit()}syncData(){this.dataSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)((0,rxjs__WEBPACK_IMPORTED_MODULE_4__.of)(0),(0,rxjs__WEBPACK_IMPORTED_MODULE_5__.F)(1e3)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.u)(),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.w)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_8__.$R)(this.taskService.getStreamProfile(this.data.room_info.room_id),this.taskService.getMetadata(this.data.room_info.room_id))),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.K)(D=>{throw this.notification.error("\u83b7\u53d6\u6570\u636e\u51fa\u9519",D.message),D}),(0,src_app_shared_rx_operators__WEBPACK_IMPORTED_MODULE_10__.X)(3,1e3)).subscribe(([D,v])=>{this.profile=D,this.metadata=v,this.changeDetector.markForCheck()},D=>{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 D;null===(D=this.dataSubscription)||void 0===D||D.unsubscribe()}}return InfoPanelComponent.\u0275fac=function D(v){return new(v||InfoPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_2__.sBO),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(ng_zorro_antd_notification__WEBPACK_IMPORTED_MODULE_11__.zb),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Y36(_shared_services_task_service__WEBPACK_IMPORTED_MODULE_0__.M))},InfoPanelComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_2__.Xpm({type:InfoPanelComponent,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 D(v,r){1&v&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(0,"div",0),_angular_core__WEBPACK_IMPORTED_MODULE_2__.TgZ(1,"button",1),_angular_core__WEBPACK_IMPORTED_MODULE_2__.NdJ("click",function(m){return r.closePanel(m)}),_angular_core__WEBPACK_IMPORTED_MODULE_2__._uU(2," [x] "),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_2__.YNc(3,InfoPanelComponent_ul_3_Template,58,35,"ul",2),_angular_core__WEBPACK_IMPORTED_MODULE_2__.qZA()),2&v&&(_angular_core__WEBPACK_IMPORTED_MODULE_2__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_2__.Q6J("ngIf",r.data.task_status.running_status===r.RunningStatus.RECORDING&&r.profile&&r.profile.streams&&r.profile.format&&r.metadata))},directives:[_angular_common__WEBPACK_IMPORTED_MODULE_12__.O5,_wave_graph_wave_graph_component__WEBPACK_IMPORTED_MODULE_13__.w],pipes:[_shared_pipes_datarate_pipe__WEBPACK_IMPORTED_MODULE_14__.f,_shared_pipes_quality_pipe__WEBPACK_IMPORTED_MODULE_1__.U],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;height: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}),InfoPanelComponent})()},1755:(D,v,r)=>{"use strict";r.d(v,{w:()=>y});var _=r(1715),m=r(5e3);let y=(()=>{class t{constructor(c){this.changeDetector=c,this.value=0,this.width=200,this.height=16,this.stroke="white",this.data=[],this.points=[];for(let f=0;f<=this.width;f+=2)this.data.push(0),this.points.push({x:f,y:this.height})}get polylinePoints(){return this.points.map(c=>`${c.x},${c.y}`).join(" ")}ngOnInit(){this.subscription=(0,_.F)(1e3).subscribe(()=>{this.data.push(this.value||0),this.data.shift();let c=Math.max(...this.data);this.points=this.data.map((f,Z)=>({x:Math.min(2*Z,this.width),y:(1-f/(c||1))*this.height})),this.changeDetector.markForCheck()})}ngOnDestroy(){var c;null===(c=this.subscription)||void 0===c||c.unsubscribe()}}return t.\u0275fac=function(c){return new(c||t)(m.Y36(m.sBO))},t.\u0275cmp=m.Xpm({type:t,selectors:[["app-wave-graph"]],inputs:{value:"value",width:"width",height:"height",stroke:"stroke"},decls:2,vars:4,consts:[["fill","none"]],template:function(c,f){1&c&&(m.O4$(),m.TgZ(0,"svg"),m._UZ(1,"polyline",0),m.qZA()),2&c&&(m.uIk("width",f.width)("height",f.height),m.xp6(1),m.uIk("stroke",f.stroke)("points",f.polylinePoints))},styles:["[_nghost-%COMP%]{position:relative;top:2px}"],changeDetection:0}),t})()},844:(D,v,r)=>{"use strict";r.d(v,{M:()=>c});var _=r(2340),m=r(2948),y=r(5e3),t=r(520);const p=_.N.apiUrl;let c=(()=>{class f{constructor(g){this.http=g}getAllTaskData(g=m.jf.ALL){return this.http.get(p+"/api/v1/tasks/data",{params:{select:g}})}getTaskData(g){return this.http.get(p+`/api/v1/tasks/${g}/data`)}getVideoFileDetails(g){return this.http.get(p+`/api/v1/tasks/${g}/videos`)}getDanmakuFileDetails(g){return this.http.get(p+`/api/v1/tasks/${g}/danmakus`)}getTaskParam(g){return this.http.get(p+`/api/v1/tasks/${g}/param`)}getMetadata(g){return this.http.get(p+`/api/v1/tasks/${g}/metadata`)}getStreamProfile(g){return this.http.get(p+`/api/v1/tasks/${g}/profile`)}updateAllTaskInfos(){return this.http.post(p+"/api/v1/tasks/info",null)}updateTaskInfo(g){return this.http.post(p+`/api/v1/tasks/${g}/info`,null)}addTask(g){return this.http.post(p+`/api/v1/tasks/${g}`,null)}removeTask(g){return this.http.delete(p+`/api/v1/tasks/${g}`)}removeAllTasks(){return this.http.delete(p+"/api/v1/tasks")}startTask(g){return this.http.post(p+`/api/v1/tasks/${g}/start`,null)}startAllTasks(){return this.http.post(p+"/api/v1/tasks/start",null)}stopTask(g,h=!1,P=!1){return this.http.post(p+`/api/v1/tasks/${g}/stop`,{force:h,background:P})}stopAllTasks(g=!1,h=!1){return this.http.post(p+"/api/v1/tasks/stop",{force:g,background:h})}enableTaskMonitor(g){return this.http.post(p+`/api/v1/tasks/${g}/monitor/enable`,null)}enableAllMonitors(){return this.http.post(p+"/api/v1/tasks/monitor/enable",null)}disableTaskMonitor(g,h=!1){return this.http.post(p+`/api/v1/tasks/${g}/monitor/disable`,{background:h})}disableAllMonitors(g=!1){return this.http.post(p+"/api/v1/tasks/monitor/disable",{background:g})}enableTaskRecorder(g){return this.http.post(p+`/api/v1/tasks/${g}/recorder/enable`,null)}enableAllRecorders(){return this.http.post(p+"/api/v1/tasks/recorder/enable",null)}disableTaskRecorder(g,h=!1,P=!1){return this.http.post(p+`/api/v1/tasks/${g}/recorder/disable`,{force:h,background:P})}disableAllRecorders(g=!1,h=!1){return this.http.post(p+"/api/v1/tasks/recorder/disable",{force:g,background:h})}cutStream(g){return this.http.post(p+`/api/v1/tasks/${g}/cut`,null)}}return f.\u0275fac=function(g){return new(g||f)(y.LFG(t.eN))},f.\u0275prov=y.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()},2948:(D,v,r)=>{"use strict";r.d(v,{jf:()=>_,cG:()=>m,ii:()=>y,cS:()=>t});var _=(()=>{return(c=_||(_={})).ALL="all",c.PREPARING="preparing",c.LIVING="living",c.ROUNDING="rounding",c.MONITOR_ENABLED="monitor_enabled",c.MONITOR_DISABLED="monitor_disabled",c.RECORDER_ENABLED="recorder_enabled",c.RECORDER_DISABLED="recorder_disabled",c.STOPPED="stopped",c.WAITTING="waitting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",_;var c})(),m=(()=>{return(c=m||(m={})).STOPPED="stopped",c.WAITING="waiting",c.RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",m;var c})(),y=(()=>{return(c=y||(y={})).WAITING="waiting",c.REMUXING="remuxing",c.INJECTING="injecting",y;var c})(),t=(()=>{return(c=t||(t={})).RECORDING="recording",c.REMUXING="remuxing",c.INJECTING="injecting",c.COMPLETED="completed",c.MISSING="missing",c.BROKEN="broken",t;var c})()},3183:(D,v,r)=>{"use strict";r.r(v),r.d(v,{TasksModule:()=>qa});var _=r(9808),m=r(4182),y=r(5113),t=r(5e3);class p{constructor(i,e){this._document=e;const o=this._textarea=this._document.createElement("textarea"),a=o.style;a.position="fixed",a.top=a.opacity="0",a.left="-999em",o.setAttribute("aria-hidden","true"),o.value=i,this._document.body.appendChild(o)}copy(){const i=this._textarea;let e=!1;try{if(i){const o=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),o&&o.focus()}}catch(o){}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let c=(()=>{class n{constructor(e){this._document=e}copy(e){const o=this.beginCopy(e),a=o.copy();return o.destroy(),a}beginCopy(e){return new p(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(_.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({}),n})();var h=r(1894),P=r(7484),k=r(647),u=r(655),C=r(8929),O=r(7625),I=r(8693),A=r(1721),S=r(226);function N(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",1),t.NdJ("click",function(a){return t.CHM(e),t.oxw().closeTag(a)}),t.qZA()}}const J=["*"];let et=(()=>{class n{constructor(e,o,a,s){this.cdr=e,this.renderer=o,this.elementRef=a,this.directionality=s,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 C.xQ}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const e=this.elementRef.nativeElement,o=new RegExp(`(ant-tag-(?:${[...I.uf,...I.Bh].join("|")}))`,"g"),a=e.classList.toString(),s=[];let d=o.exec(a);for(;null!==d;)s.push(d[1]),d=o.exec(a);e.classList.remove(...s)}setPresetColor(){const e=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,I.o2)(this.nzColor)||(0,I.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,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){const{nzColor:o}=e;o&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:10,hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o.updateCheckedStatus()}),2&e&&(t.Udp("background-color",o.isPresetColor?"":o.nzColor),t.ekj("ant-tag-has-color",o.nzColor&&!o.isPresetColor)("ant-tag-checkable","checkable"===o.nzMode)("ant-tag-checkable-checked",o.nzChecked)("ant-tag-rtl","rtl"===o.dir))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:"nzChecked"},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[t.TTD],ngContentSelectors:J,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(e,o){1&e&&(t.F$t(),t.Hsn(0),t.YNc(1,N,1,0,"i",0)),2&e&&(t.xp6(1),t.Q6J("ngIf","closeable"===o.nzMode))},directives:[_.O5,k.Ls],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,A.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:[[S.vT,_.ez,m.u5,k.PV]]}),n})();var nt=r(6699);const j=["nzType","avatar"];function H(n,i){if(1&n&&(t.TgZ(0,"div",5),t._UZ(1,"nz-skeleton-element",6),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzSize",e.avatar.size||"default")("nzShape",e.avatar.shape||"circle")}}function ut(n,i){if(1&n&&t._UZ(0,"h3",7),2&n){const e=t.oxw(2);t.Udp("width",e.toCSSUnit(e.title.width))}}function pt(n,i){if(1&n&&t._UZ(0,"li"),2&n){const e=i.index,o=t.oxw(3);t.Udp("width",o.toCSSUnit(o.widthList[e]))}}function gt(n,i){if(1&n&&(t.TgZ(0,"ul",8),t.YNc(1,pt,1,2,"li",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.rowsList)}}function dt(n,i){if(1&n&&(t.ynx(0),t.YNc(1,H,2,2,"div",1),t.TgZ(2,"div",2),t.YNc(3,ut,1,2,"h3",3),t.YNc(4,gt,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 mt(n,i){1&n&&(t.ynx(0),t.Hsn(1),t.BQk())}const xt=["*"];let ge=(()=>{class n{constructor(){this.nzActive=!1,this.nzBlock=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-active",o.nzActive)("ant-skeleton-block",o.nzBlock)},inputs:{nzActive:"nzActive",nzType:"nzType",nzBlock:"nzBlock"}}),(0,u.gn)([(0,A.yF)()],n.prototype,"nzBlock",void 0),n})(),de=(()=>{class n{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(e){if(e.nzSize&&"number"==typeof this.nzSize){const o=`${this.nzSize}px`;this.styleMap={width:o,height:o,"line-height":o}}else this.styleMap={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[t.TTD],attrs:j,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(e,o){1&e&&t._UZ(0,"span",0),2&e&&(t.ekj("ant-skeleton-avatar-square","square"===o.nzShape)("ant-skeleton-avatar-circle","circle"===o.nzShape)("ant-skeleton-avatar-lg","large"===o.nzSize)("ant-skeleton-avatar-sm","small"===o.nzSize),t.Q6J("ngStyle",o.styleMap))},directives:[_.PC],encapsulation:2,changeDetection:0}),n})(),me=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[],o.addClass(a.nativeElement,"ant-skeleton")}toCSSUnit(e=""){return(0,A.WX)(e)}getTitleProps(){const e=!!this.nzAvatar,o=!!this.nzParagraph;let a="";return!e&&o?a="38%":e&&o&&(a="50%"),Object.assign({width:a},this.getProps(this.nzTitle))}getAvatarProps(){return Object.assign({shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){const e=!!this.nzAvatar,o=!!this.nzTitle,a={};return(!e||!o)&&(a.width="61%"),a.rows=!e&&o?3:2,Object.assign(Object.assign({},a),this.getProps(this.nzParagraph))}getProps(e){return e&&"object"==typeof e?e:{}}getWidthList(){const{width:e,rows:o}=this.paragraph;let a=[];return e&&Array.isArray(e)?a=e:e&&!Array.isArray(e)&&(a=[],a[o-1]=e),a}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(e){(e.nzTitle||e.nzAvatar||e.nzParagraph)&&this.updateProps()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(t.Qsj),t.Y36(t.SBq))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-skeleton"]],hostVars:6,hostBindings:function(e,o){2&e&&t.ekj("ant-skeleton-with-avatar",!!o.nzAvatar)("ant-skeleton-active",o.nzActive)("ant-skeleton-round",!!o.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[t.TTD],ngContentSelectors:xt,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,dt,5,3,"ng-container",0),t.YNc(1,mt,2,0,"ng-container",0)),2&e&&(t.Q6J("ngIf",o.nzLoading),t.xp6(1),t.Q6J("ngIf",!o.nzLoading))},directives:[de,_.O5,ge,_.sg],encapsulation:2,changeDetection:0}),n})(),Nt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez]]}),n})();var ot=r(404),Dt=r(6462),X=r(3677),ht=r(6042),$=r(7957),W=r(4546),tt=r(1047),Bt=r(6114),he=r(4832),fe=r(2845),Ce=r(6950),ze=r(5664),Q=r(969),Te=r(4170);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,ht.sL,fe.U8,Te.YI,k.PV,Q.T,Ce.e4,he.g,ot.cg,ze.rt]]}),n})();var ft=r(3868),Ut=r(5737),Rt=r(685),Lt=r(7525),Pe=r(8076),F=r(9439);function be(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",5),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzType",e.nzIconType||e.inferredIconType)("nzTheme",e.iconTheme)}}function ye(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzMessage)}}function Se(n,i){if(1&n&&(t.TgZ(0,"span",9),t.YNc(1,ye,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzMessage)}}function Ze(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Oqu(e.nzDescription)}}function we(n,i){if(1&n&&(t.TgZ(0,"span",11),t.YNc(1,Ze,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzDescription)}}function Fe(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Se,2,1,"span",7),t.YNc(2,we,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 Ie(n,i){1&n&&t._UZ(0,"i",15)}function Ne(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"span",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(2),t.Oqu(e.nzCloseText)}}function Be(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Ne,3,1,"ng-container",10),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzCloseText)}}function Ue(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).closeAlert()}),t.YNc(1,Ie,1,0,"ng-template",null,13,t.W1O),t.YNc(3,Be,2,1,"ng-container",14),t.qZA()}if(2&n){const e=t.MAs(2),o=t.oxw(2);t.xp6(3),t.Q6J("ngIf",o.nzCloseText)("ngIfElse",e)}}function Re(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.NdJ("@slideAlertMotion.done",function(){return t.CHM(e),t.oxw().onFadeAnimationDone()}),t.YNc(1,be,2,2,"ng-container",2),t.YNc(2,Fe,3,2,"div",3),t.YNc(3,Ue,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 Le=(()=>{class n{constructor(e,o,a){this.nzConfigService=e,this.cdr=o,this.directionality=a,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 C.xQ,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(e){const{nzShowIcon:o,nzDescription:a,nzType:s,nzBanner:d}=e;if(o&&(this.isShowIconSet=!0),s)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"}a&&(this.iconTheme=this.nzDescription?"outline":"fill"),d&&(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(F.jY),t.Y36(t.sBO),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-alert"]],inputs:{nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:"nzCloseable",nzShowIcon:"nzShowIcon",nzBanner:"nzBanner",nzNoAnimation:"nzNoAnimation"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],features:[t.TTD],decls:1,vars:1,consts:[["class","ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description",4,"ngIf"],[1,"ant-alert"],[4,"ngIf"],["class","ant-alert-content",4,"ngIf"],["type","button","tabindex","0","class","ant-alert-close-icon",3,"click",4,"ngIf"],["nz-icon","",1,"ant-alert-icon",3,"nzType","nzTheme"],[1,"ant-alert-content"],["class","ant-alert-message",4,"ngIf"],["class","ant-alert-description",4,"ngIf"],[1,"ant-alert-message"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["closeDefaultTemplate",""],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(e,o){1&e&&t.YNc(0,Re,4,23,"div",0),2&e&&t.Q6J("ngIf",!o.closed)},directives:[_.O5,k.Ls,Q.f],encapsulation:2,data:{animation:[Pe.Rq]},changeDetection:0}),(0,u.gn)([(0,F.oS)(),(0,A.yF)()],n.prototype,"nzCloseable",void 0),(0,u.gn)([(0,F.oS)(),(0,A.yF)()],n.prototype,"nzShowIcon",void 0),(0,u.gn)([(0,A.yF)()],n.prototype,"nzBanner",void 0),(0,u.gn)([(0,A.yF)()],n.prototype,"nzNoAnimation",void 0),n})(),Je=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,k.PV,Q.T]]}),n})();var it=r(4147),Mt=r(5197);function Qe(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"i",8),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("nzType",e.icon)}}function qe(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.hij(" ",e(o.nzPercent)," ")}}const We=function(n){return{$implicit:n}};function Ye(n,i){if(1&n&&t.YNc(0,qe,2,1,"ng-container",9),2&n){const e=t.oxw(3);t.Q6J("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",t.VKq(2,We,e.nzPercent))}}function Ke(n,i){if(1&n&&(t.TgZ(0,"span",5),t.YNc(1,Qe,2,1,"ng-container",6),t.YNc(2,Ye,1,4,"ng-template",null,7,t.W1O),t.qZA()),2&n){const e=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",("exception"===o.status||"success"===o.status)&&!o.nzFormat)("ngIfElse",e)}}function Ge(n,i){if(1&n&&t.YNc(0,Ke,4,2,"span",4),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzShowInfo)}}function je(n,i){if(1&n&&t._UZ(0,"div",17),2&n){const e=t.oxw(4);t.Udp("width",e.nzSuccessPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("height",e.strokeWidth,"px")}}function $e(n,i){if(1&n&&(t.TgZ(0,"div",13),t.TgZ(1,"div",14),t._UZ(2,"div",15),t.YNc(3,je,1,6,"div",16),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(2),t.Udp("width",e.nzPercent,"%")("border-radius","round"===e.nzStrokeLinecap?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),t.xp6(1),t.Q6J("ngIf",e.nzSuccessPercent||0===e.nzSuccessPercent)}}function Ve(n,i){}function He(n,i){if(1&n&&(t.ynx(0),t.YNc(1,$e,4,11,"div",11),t.YNc(2,Ve,0,0,"ng-template",12),t.BQk()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngIf",!e.isSteps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function Xe(n,i){1&n&&t._UZ(0,"div",20),2&n&&t.Q6J("ngStyle",i.$implicit)}function tn(n,i){}function en(n,i){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Xe,1,1,"div",19),t.YNc(2,tn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(2),o=t.MAs(1);t.xp6(1),t.Q6J("ngForOf",e.steps),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function nn(n,i){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,He,3,2,"ng-container",2),t.YNc(2,en,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 on(n,i){if(1&n&&(t.O4$(),t._UZ(0,"stop")),2&n){const e=i.$implicit;t.uIk("offset",e.offset)("stop-color",e.color)}}function an(n,i){if(1&n&&(t.O4$(),t.TgZ(0,"defs"),t.TgZ(1,"linearGradient",24),t.YNc(2,on,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 sn(n,i){if(1&n&&(t.O4$(),t._UZ(0,"path",26)),2&n){const e=i.$implicit,o=t.oxw(2);t.Q6J("ngStyle",e.strokePathStyle),t.uIk("d",o.pathString)("stroke-linecap",o.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",o.nzPercent?o.strokeWidth:0)}}function rn(n,i){1&n&&t.O4$()}function ln(n,i){if(1&n&&(t.TgZ(0,"div",14),t.O4$(),t.TgZ(1,"svg",21),t.YNc(2,an,3,2,"defs",2),t._UZ(3,"path",22),t.YNc(4,sn,1,5,"path",23),t.qZA(),t.YNc(5,rn,0,0,"ng-template",12),t.qZA()),2&n){const e=t.oxw(),o=t.MAs(1);t.Udp("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",.15*e.nzWidth+6,"px"),t.ekj("ant-progress-circle-gradient",e.isGradient),t.xp6(2),t.Q6J("ngIf",e.isGradient),t.xp6(1),t.Q6J("ngStyle",e.trailPathStyle),t.uIk("stroke-width",e.strokeWidth)("d",e.pathString),t.xp6(1),t.Q6J("ngForOf",e.progressCirclePath)("ngForTrackBy",e.trackByFn),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}const Qt=n=>{let i=[];return Object.keys(n).forEach(e=>{const o=n[e],a=function cn(n){return+n.replace("%","")}(e);isNaN(a)||i.push({key:a,value:o})}),i=i.sort((e,o)=>e.key-o.key),i};let pn=0;const qt="progress",gn=new Map([["success","check"],["exception","close"]]),dn=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),mn=n=>`${n}%`;let Wt=(()=>{class n{constructor(e,o,a){this.cdr=e,this.nzConfigService=o,this.directionality=a,this._nzModuleName=qt,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=pn++,this.progressCirclePath=[],this.trailPathStyle=null,this.dir="ltr",this.trackByFn=s=>`${s}`,this.cachedStatus="normal",this.inferredStatus="normal",this.destroy$=new C.xQ}get formatter(){return this.nzFormat||mn}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||("line"===this.nzType&&"small"!==this.nzSize?8:6)}get isCircleStyle(){return"circle"===this.nzType||"dashboard"===this.nzType}ngOnChanges(e){const{nzSteps:o,nzGapPosition:a,nzStrokeLinecap:s,nzStrokeColor:d,nzGapDegree:x,nzType:M,nzStatus:E,nzPercent:l,nzSuccessPercent:L,nzStrokeWidth:q}=e;E&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(l||L)&&(parseInt(this.nzPercent.toString(),10)>=100?((0,A.DX)(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||void 0===this.nzSuccessPercent)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(E||l||L||d)&&this.updateIcon(),d&&this.setStrokeColor(),(a||s||x||M||l||d||d)&&this.getCirclePaths(),(l||o||q)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){var e;this.nzConfigService.getConfigChangeEventForComponent(qt).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()}),null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateIcon(){const e=gn.get(this.status);this.icon=e?e+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){const e=Math.floor(this.nzSteps*(this.nzPercent/100)),o="small"===this.nzSize?2:14,a=[];for(let s=0;s{const K=2===e.length&&0===q;return{stroke:this.isGradient&&!K?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:K?dn.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(L||0)/100*(s-d)}px ${s}px`,strokeDashoffset:`-${d/2}px`}}}).reverse()}setStrokeColor(){const e=this.nzStrokeColor,o=this.isGradient=!!e&&"string"!=typeof e;o&&!this.isCircleStyle?this.lineGradient=(n=>{const{from:i="#1890ff",to:e="#1890ff",direction:o="to right"}=n,a=(0,u._T)(n,["from","to","direction"]);return 0!==Object.keys(a).length?`linear-gradient(${o}, ${Qt(a).map(({key:d,value:x})=>`${x} ${d}%`).join(", ")})`:`linear-gradient(${o}, ${i}, ${e})`})(e):o&&this.isCircleStyle?this.circleGradient=(n=>Qt(this.nzStrokeColor).map(({key:i,value:e})=>({offset:`${i}%`,color:e})))():(this.lineGradient=null,this.circleGradient=[])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(F.jY),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:"nzSuccessPercent",nzPercent:"nzPercent",nzStrokeWidth:"nzStrokeWidth",nzGapDegree:"nzGapDegree",nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:"nzSteps"},exportAs:["nzProgress"],features:[t.TTD],decls:5,vars:15,consts:[["progressInfoTemplate",""],[3,"ngClass"],[4,"ngIf"],["class","ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient",4,"ngIf"],["class","ant-progress-text",4,"ngIf"],[1,"ant-progress-text"],[4,"ngIf","ngIfElse"],["formatTemplate",""],["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-progress-steps-outer",4,"ngIf"],["class","ant-progress-outer",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],["class","ant-progress-success-bg",3,"width","border-radius","height",4,"ngIf"],[1,"ant-progress-success-bg"],[1,"ant-progress-steps-outer"],["class","ant-progress-steps-item",3,"ngStyle",4,"ngFor","ngForOf"],[1,"ant-progress-steps-item",3,"ngStyle"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail",3,"ngStyle"],["class","ant-progress-circle-path","fill-opacity","0",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],[4,"ngFor","ngForOf"],["fill-opacity","0",1,"ant-progress-circle-path",3,"ngStyle"]],template:function(e,o){1&e&&(t.YNc(0,Ge,1,1,"ng-template",null,0,t.W1O),t.TgZ(2,"div",1),t.YNc(3,nn,3,2,"div",2),t.YNc(4,ln,6,15,"div",3),t.qZA()),2&e&&(t.xp6(2),t.ekj("ant-progress-line","line"===o.nzType)("ant-progress-small","small"===o.nzSize)("ant-progress-show-info",o.nzShowInfo)("ant-progress-circle",o.isCircleStyle)("ant-progress-steps",o.isSteps)("ant-progress-rtl","rtl"===o.dir),t.Q6J("ngClass","ant-progress ant-progress-status-"+o.status),t.xp6(1),t.Q6J("ngIf","line"===o.nzType),t.xp6(1),t.Q6J("ngIf",o.isCircleStyle))},directives:[_.O5,k.Ls,Q.f,_.mk,_.tP,_.sg,_.PC],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,F.oS)()],n.prototype,"nzShowInfo",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzStrokeColor",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzSuccessPercent",void 0),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzPercent",void 0),(0,u.gn)([(0,F.oS)(),(0,A.Rn)()],n.prototype,"nzStrokeWidth",void 0),(0,u.gn)([(0,F.oS)(),(0,A.Rn)()],n.prototype,"nzGapDegree",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzGapPosition",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzStrokeLinecap",void 0),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzSteps",void 0),n})(),hn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,k.PV,Q.T]]}),n})();var Y=r(592),Yt=r(925);let fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();const Cn=function(n){return{$implicit:n}};function zn(n,i){if(1&n&&t.GkF(0,3),2&n){const e=t.oxw();t.Q6J("ngTemplateOutlet",e.nzValueTemplate)("ngTemplateOutletContext",t.VKq(2,Cn,e.nzValue))}}function Tn(n,i){if(1&n&&(t.TgZ(0,"span",6),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayInt)}}function xn(n,i){if(1&n&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.displayDecimal)}}function Dn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Tn,2,1,"span",4),t.YNc(2,xn,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 Mn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.nzTitle)}}function vn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzPrefix)}}function On(n,i){if(1&n&&(t.TgZ(0,"span",7),t.YNc(1,vn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzPrefix)}}function kn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.nzSuffix)}}function En(n,i){if(1&n&&(t.TgZ(0,"span",8),t.YNc(1,kn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzSuffix)}}let An=(()=>{class n{constructor(e){this.locale_id=e,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const e="number"==typeof this.nzValue?".":(0,_.dv)(this.locale_id,_.wE.Decimal),o=String(this.nzValue),[a,s]=o.split(e);this.displayInt=a,this.displayDecimal=s?`${e}${s}`:""}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.soG))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],features:[t.TTD],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(e,o){1&e&&(t.TgZ(0,"span",0),t.YNc(1,zn,1,4,"ng-container",1),t.YNc(2,Dn,3,2,"ng-container",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",!o.nzValueTemplate))},directives:[_.O5,_.tP],encapsulation:2,changeDetection:0}),n})(),Kt=(()=>{class n{constructor(e,o){this.cdr=e,this.directionality=o,this.nzValueStyle={},this.dir="ltr",this.destroy$=new C.xQ}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-statistic"]],inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatistic"],decls:7,vars:8,consts:[[1,"ant-statistic"],[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-content",3,"ngStyle"],["class","ant-statistic-content-prefix",4,"ngIf"],[3,"nzValue","nzValueTemplate"],["class","ant-statistic-content-suffix",4,"ngIf"],[1,"ant-statistic-content-prefix"],[1,"ant-statistic-content-suffix"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,Mn,2,1,"ng-container",2),t.qZA(),t.TgZ(3,"div",3),t.YNc(4,On,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"===o.dir),t.xp6(2),t.Q6J("nzStringTemplateOutlet",o.nzTitle),t.xp6(1),t.Q6J("ngStyle",o.nzValueStyle),t.xp6(1),t.Q6J("ngIf",o.nzPrefix),t.xp6(1),t.Q6J("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.xp6(1),t.Q6J("ngIf",o.nzSuffix))},directives:[An,Q.f,_.PC,_.O5],encapsulation:2,changeDetection:0}),n})(),Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,Yt.ud,Q.T,fn]]}),n})();var Gt=r(6787),bn=r(1059),at=r(7545),yn=r(7138),w=r(2994),Sn=r(6947),vt=r(4090);function Zn(n,i){1&n&&t.Hsn(0)}const wn=["*"];function Fn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzTitle)}}function In(n,i){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,Fn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzTitle)}}function Nn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.nzExtra)}}function Bn(n,i){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Nn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}function Un(n,i){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,In,2,1,"div",4),t.YNc(2,Bn,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 Rn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Ln(n,i){}function Jn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,Rn,2,1,"ng-container",7),t.qZA(),t.TgZ(5,"span",15),t.YNc(6,Ln,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title),t.xp6(2),t.Q6J("ngTemplateOutlet",e.content)}}function Qn(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function qn(n,i){if(1&n&&(t.TgZ(0,"td",14),t.YNc(1,Qn,2,1,"ng-container",7),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Wn(n,i){}function Yn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,qn,2,1,"td",17),t.TgZ(2,"td",18),t.YNc(3,Wn,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 Kn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Jn,7,5,"ng-container",2),t.YNc(2,Yn,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.nzBordered),t.xp6(1),t.Q6J("ngIf",e.nzBordered)}}function Gn(n,i){if(1&n&&(t.TgZ(0,"tr",10),t.YNc(1,Kn,3,2,"ng-container",11),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function jn(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Gn,2,1,"tr",9),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function $n(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function Vn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",14),t.YNc(4,$n,2,1,"ng-container",7),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit,o=t.oxw(4);t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(2),t.ekj("ant-descriptions-item-no-colon",!o.nzColon),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function Hn(n,i){}function Xn(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",12),t.TgZ(2,"div",13),t.TgZ(3,"span",15),t.YNc(4,Hn,0,0,"ng-template",16),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(3),t.Q6J("ngTemplateOutlet",e.content)}}function to(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,Vn,5,4,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,Xn,5,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function eo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,to,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function no(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function oo(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",19),t.YNc(2,no,2,1,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.title)}}function io(n,i){}function ao(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"td",18),t.YNc(2,io,0,0,"ng-template",16),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("colSpan",e.span),t.xp6(1),t.Q6J("ngTemplateOutlet",e.content)}}function so(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"tr",10),t.YNc(2,oo,3,2,"ng-container",11),t.qZA(),t.TgZ(3,"tr",10),t.YNc(4,ao,3,2,"ng-container",11),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(2),t.Q6J("ngForOf",e),t.xp6(2),t.Q6J("ngForOf",e)}}function ro(n,i){if(1&n&&(t.ynx(0),t.YNc(1,so,5,2,"ng-container",11),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.itemMatrix)}}function lo(n,i){if(1&n&&(t.ynx(0),t.YNc(1,eo,2,1,"ng-container",2),t.YNc(2,ro,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 Ot=(()=>{class n{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new C.xQ}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,7),2&e){let a;t.iGM(a=t.CRH())&&(o.content=a.first)}},inputs:{nzSpan:"nzSpan",nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],features:[t.TTD],ngContentSelectors:wn,decls:1,vars:0,template:function(e,o){1&e&&(t.F$t(),t.YNc(0,Zn,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),(0,u.gn)([(0,A.Rn)()],n.prototype,"nzSpan",void 0),n})();const _o={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let jt=(()=>{class n{constructor(e,o,a,s){this.nzConfigService=e,this.cdr=o,this.breakpointService=a,this.directionality=s,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=_o,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=vt.G_.md,this.destroy$=new C.xQ}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.pipe((0,O.R)(this.destroy$)).subscribe(o=>{this.dir=o})}ngOnChanges(e){e.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const e=this.items.changes.pipe((0,bn.O)(this.items),(0,O.R)(this.destroy$));(0,Gt.T)(e,e.pipe((0,at.w)(()=>(0,Gt.T)(...this.items.map(o=>o.inputChange$)).pipe((0,yn.e)(16)))),this.breakpointService.subscribe(vt.WV).pipe((0,w.b)(o=>this.breakpoint=o))).pipe((0,O.R)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let e=[],o=0;const a=this.realColumn=this.getColumn(),s=this.items.toArray(),d=s.length,x=[],M=()=>{x.push(e),e=[],o=0};for(let E=0;E=a?(o>a&&(0,Sn.ZK)(`"nzColumn" is ${a} but we have row length ${o}`),e.push({title:L,content:q,span:a-(o-K)}),M()):E===d-1?(e.push({title:L,content:q,span:a-(o-K)}),M()):e.push({title:L,content:q,span:K})}this.itemMatrix=x}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(F.jY),t.Y36(t.sBO),t.Y36(vt.r3),t.Y36(S.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-descriptions"]],contentQueries:function(e,o,a){if(1&e&&t.Suo(a,Ot,4),2&e){let s;t.iGM(s=t.CRH())&&(o.items=s)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(e,o){2&e&&t.ekj("ant-descriptions-bordered",o.nzBordered)("ant-descriptions-middle","middle"===o.nzSize)("ant-descriptions-small","small"===o.nzSize)("ant-descriptions-rtl","rtl"===o.dir)},inputs:{nzBordered:"nzBordered",nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:"nzColon"},exportAs:["nzDescriptions"],features:[t.TTD],decls:6,vars:3,consts:[["class","ant-descriptions-header",4,"ngIf"],[1,"ant-descriptions-view"],[4,"ngIf"],[1,"ant-descriptions-header"],["class","ant-descriptions-title",4,"ngIf"],["class","ant-descriptions-extra",4,"ngIf"],[1,"ant-descriptions-title"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-extra"],["class","ant-descriptions-row",4,"ngFor","ngForOf"],[1,"ant-descriptions-row"],[4,"ngFor","ngForOf"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],["class","ant-descriptions-item-label",4,"nzStringTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(e,o){1&e&&(t.YNc(0,Un,3,2,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"table"),t.TgZ(3,"tbody"),t.YNc(4,jn,2,1,"ng-container",2),t.YNc(5,lo,3,2,"ng-container",2),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("ngIf",o.nzTitle||o.nzExtra),t.xp6(4),t.Q6J("ngIf","horizontal"===o.nzLayout),t.xp6(1),t.Q6J("ngIf","vertical"===o.nzLayout))},directives:[_.O5,Q.f,_.sg,_.tP],encapsulation:2,changeDetection:0}),(0,u.gn)([(0,A.yF)(),(0,F.oS)()],n.prototype,"nzBordered",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzColumn",void 0),(0,u.gn)([(0,F.oS)()],n.prototype,"nzSize",void 0),(0,u.gn)([(0,F.oS)(),(0,A.yF)()],n.prototype,"nzColon",void 0),n})(),uo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[S.vT,_.ez,Q.T,Yt.ud]]}),n})();var B=r(1086),Ct=r(8896),$t=r(353),po=r(6498),go=r(3489);const Vt={leading:!0,trailing:!1};class Co{constructor(i,e,o,a){this.duration=i,this.scheduler=e,this.leading=o,this.trailing=a}call(i,e){return e.subscribe(new zo(i,this.duration,this.scheduler,this.leading,this.trailing))}}class zo extends go.L{constructor(i,e,o,a,s){super(i),this.duration=e,this.scheduler=o,this.leading=a,this.trailing=s,this._hasTrailingValue=!1,this._trailingValue=null}_next(i){this.throttled?this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(To,this.duration,{subscriber:this})),this.leading?this.destination.next(i):this.trailing&&(this._trailingValue=i,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const i=this.throttled;i&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),i.unsubscribe(),this.remove(i),this.throttled=null)}}function To(n){const{subscriber:i}=n;i.clearThrottle()}class kt{constructor(i){this.changes=i}static of(i){return new kt(i)}notEmpty(i){if(this.changes[i]){const e=this.changes[i].currentValue;if(null!=e)return(0,B.of)(e)}return Ct.E}has(i){return this.changes[i]?(0,B.of)(this.changes[i].currentValue):Ct.E}notFirst(i){return this.changes[i]&&!this.changes[i].isFirstChange()?(0,B.of)(this.changes[i].currentValue):Ct.E}notFirstAndEmpty(i){if(this.changes[i]&&!this.changes[i].isFirstChange()){const e=this.changes[i].currentValue;if(null!=e)return(0,B.of)(e)}return Ct.E}}const Ht=new t.OlP("NGX_ECHARTS_CONFIG");let Xt=(()=>{class n{constructor(e,o,a){this.el=o,this.ngZone=a,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 C.xQ,this.echarts=e.echarts}ngOnChanges(e){const o=kt.of(e);o.notFirstAndEmpty("options").subscribe(a=>this.onOptionsChange(a)),o.notFirstAndEmpty("merge").subscribe(a=>this.setOption(a)),o.has("loading").subscribe(a=>this.toggleLoading(!!a)),o.notFirst("theme").subscribe(()=>this.refreshChart())}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function fo(n,i=$t.P,e=Vt){return o=>o.lift(new Co(n,i,e.leading,e.trailing))}(100,$t.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,o){if(this.chart)try{this.chart.setOption(e,o)}catch(a){console.error(a),this.optionsError.emit(a)}}refreshChart(){return(0,u.mG)(this,void 0,void 0,function*(){this.dispose(),yield this.initChart()})}createChart(){const e=this.el.nativeElement;if(window&&window.getComputedStyle){const o=window.getComputedStyle(e,null).getPropertyValue("height");(!o||"0px"===o)&&(!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:a})=>a(e,this.theme,this.initOpts)))}initChart(){return(0,u.mG)(this,void 0,void 0,function*(){yield this.onOptionsChange(this.options),this.merge&&this.chart&&this.setOption(this.merge)})}onOptionsChange(e){return(0,u.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,at.w)(o=>new po.y(a=>(o.on(e,s=>this.ngZone.run(()=>a.next(s))),()=>{this.chart&&(this.chart.isDisposed()||o.off(e))}))))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ht),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})(),xo=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[{provide:Ht,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 Do=r(4466),st=r(2302),te=r(1715),ee=r(1746),ne=r(534),rt=r(7221),Et=r(7106),oe=r(5278),At=r(844),Mo=r(7512),vo=r(5545);let Oo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-user-info-detail"]],inputs:{loading:"loading",userInfo:"userInfo"},decls:12,vars:6,consts:[["nzTitle","\u4e3b\u64ad\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6635\u79f0"],["nzTitle","\u6027\u522b"],["nzTitle","UID"],["nzTitle","\u7b49\u7ea7"],["nzTitle","\u7b7e\u540d"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t._uU(7),t.qZA(),t.TgZ(8,"nz-descriptions-item",5),t._uU(9),t.qZA(),t.TgZ(10,"nz-descriptions-item",6),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.userInfo.name),t.xp6(2),t.Oqu(o.userInfo.gender),t.xp6(2),t.Oqu(o.userInfo.uid),t.xp6(2),t.Oqu(o.userInfo.level),t.xp6(2),t.hij(" ",o.userInfo.sign," "))},directives:[P.bd,jt,Ot],styles:[""],changeDetection:0}),n})();function ko(n,i){if(1&n&&(t.TgZ(0,"span",18),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",e.roomInfo.short_room_id," ")}}function Eo(n,i){1&n&&(t.ynx(0),t._uU(1,"\u95f2\u7f6e"),t.BQk())}function Ao(n,i){1&n&&(t.ynx(0),t._uU(1,"\u76f4\u64ad\u4e2d"),t.BQk())}function Po(n,i){1&n&&(t.ynx(0),t._uU(1,"\u8f6e\u64ad\u4e2d"),t.BQk())}function bo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"date"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.Dn7(2,1,1e3*e.roomInfo.live_start_time,"YYYY-MM-dd HH:mm:ss","+8")," ")}}function yo(n,i){if(1&n&&(t.TgZ(0,"nz-tag"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.hij(" ",e," ")}}function So(n,i){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e)}}let Zo=(()=>{class n{constructor(){this.loading=!0}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-room-info-detail"]],inputs:{loading:"loading",roomInfo:"roomInfo"},decls:24,vars:13,consts:[["nzTitle","\u76f4\u64ad\u95f4\u4fe1\u606f",3,"nzLoading"],["nzTitle",""],["nzTitle","\u6807\u9898"],["nzTitle","\u5206\u533a"],["nzTitle","\u623f\u95f4\u53f7"],[1,"room-id-wrapper"],["class","short-room-id",4,"ngIf"],[1,"real-room-id"],["nzTitle","\u72b6\u6001"],[3,"ngSwitch"],[4,"ngSwitchCase"],["nzTitle","\u5f00\u64ad\u65f6\u95f4"],[4,"ngIf"],["nzTitle","\u6807\u7b7e"],[1,"tags"],[4,"ngFor","ngForOf"],["nzTitle","\u7b80\u4ecb"],[1,"introduction"],[1,"short-room-id"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-descriptions",1),t.TgZ(2,"nz-descriptions-item",2),t._uU(3),t.qZA(),t.TgZ(4,"nz-descriptions-item",3),t._uU(5),t.qZA(),t.TgZ(6,"nz-descriptions-item",4),t.TgZ(7,"span",5),t.YNc(8,ko,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,Eo,2,0,"ng-container",10),t.YNc(14,Ao,2,0,"ng-container",10),t.YNc(15,Po,2,0,"ng-container",10),t.BQk(),t.qZA(),t.TgZ(16,"nz-descriptions-item",11),t.YNc(17,bo,3,5,"ng-container",12),t.qZA(),t.TgZ(18,"nz-descriptions-item",13),t.TgZ(19,"div",14),t.YNc(20,yo,2,1,"nz-tag",15),t.qZA(),t.qZA(),t.TgZ(21,"nz-descriptions-item",16),t.TgZ(22,"div",17),t.YNc(23,So,2,1,"p",15),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Q6J("nzLoading",o.loading),t.xp6(3),t.Oqu(o.roomInfo.title),t.xp6(2),t.AsE(" ",o.roomInfo.parent_area_name," - ",o.roomInfo.area_name," "),t.xp6(3),t.Q6J("ngIf",o.roomInfo.short_room_id),t.xp6(2),t.hij(" ",o.roomInfo.room_id," "),t.xp6(2),t.Q6J("ngSwitch",o.roomInfo.live_status),t.xp6(1),t.Q6J("ngSwitchCase",0),t.xp6(1),t.Q6J("ngSwitchCase",1),t.xp6(1),t.Q6J("ngSwitchCase",2),t.xp6(2),t.Q6J("ngIf",0!==o.roomInfo.live_start_time),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.tags.split(",")),t.xp6(3),t.Q6J("ngForOf",o.roomInfo.description.split("\n")))},directives:[P.bd,jt,Ot,_.O5,_.RF,_.n9,_.sg,et],pipes:[_.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 z=r(2948),lt=r(2134);let ie=(()=>{class n{transform(e){if(e<0)throw RangeError("the argument totalSeconds must be greater than or equal to 0");const o=Math.floor(e/3600),a=Math.floor(e/60%60),s=Math.floor(e%60);let d="";return o>0&&(d+=o+":"),d+=a<10?"0"+a:a,d+=":",d+=s<10?"0"+s:s,d}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"duration",type:n,pure:!0}),n})();var Pt=r(3692),wo=r(855);let zt=(()=>{class n{transform(e,o){return wo(e,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filesize",type:n,pure:!0}),n})();var ae=r(3520);function Fo(n,i){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 Io(n,i){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 No=function(){return{spacer:" "}};function Bo(n,i){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,No)))}}function Uo(n,i){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 Ro=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===z.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,lt.N4)(a.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:o=>(0,lt.N4)(o)}},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,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Fo,2,3,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",2),t.YNc(6,Io,2,3,"ng-template",null,4,t.W1O),t._UZ(8,"nz-statistic",2),t.YNc(9,Bo,2,5,"ng-template",null,5,t.W1O),t._UZ(11,"nz-statistic",2),t.YNc(12,Uo,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 a=t.MAs(4),s=t.MAs(7),d=t.MAs(10),x=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u5f55\u5236\u7528\u65f6")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u901f\u5ea6")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u603b\u8ba1")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u5f55\u5236\u753b\u8d28")("nzValueTemplate",x),t.xp6(3),t.Q6J("nzTitle","\u5f39\u5e55\u603b\u8ba1")("nzValue",t.xi3(15,14,o.taskStatus.danmu_total,"1.0-2")),t.xp6(2),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[P.bd,Kt,Xt],pipes:[ie,Pt.f,zt,ae.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 Lo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.stream_host)}}function Jo(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.taskStatus.real_stream_format)}}const Qo=function(){return{bitrate:!0}};function qo(n,i){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,Qo)))}}const Wo=function(){return{spacer:" "}};function Yo(n,i){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,Wo)))}}let Ko=(()=>{class n{constructor(e){this.changeDetector=e,this.loading=!0,this.initialChartOptions={},this.updatedChartOptions={},this.chartData=[],this.initChartOptions()}ngOnChanges(){this.taskStatus.running_status===z.cG.RECORDING&&this.updateChartOptions()}initChartOptions(){const e=Date.now();for(let o=59;o>=0;o--){const a=new Date(e-1e3*o);this.chartData.push({name:a.toLocaleString("zh-CN",{hour12:!1}),value:[a.toISOString(),0]})}this.initialChartOptions={title:{},tooltip:{trigger:"axis",formatter:o=>{const a=o[0];return`\n
\n
\n ${new Date(a.name).toLocaleTimeString("zh-CN",{hour12:!1})}\n
\n
${(0,lt.AX)(a.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(o){return(0,lt.AX)(o)}}},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,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"div",1),t._UZ(2,"nz-statistic",2),t.YNc(3,Lo,1,1,"ng-template",null,3,t.W1O),t._UZ(5,"nz-statistic",4),t.YNc(6,Jo,1,1,"ng-template",null,5,t.W1O),t._UZ(8,"nz-statistic",4),t.YNc(9,qo,2,5,"ng-template",null,6,t.W1O),t._UZ(11,"nz-statistic",4),t.YNc(12,Yo,2,5,"ng-template",null,7,t.W1O),t.qZA(),t._UZ(14,"div",8),t.qZA()),2&e){const a=t.MAs(4),s=t.MAs(7),d=t.MAs(10),x=t.MAs(13);t.Q6J("nzLoading",o.loading),t.xp6(2),t.Q6J("nzTitle","\u6d41\u4e3b\u673a")("nzValueTemplate",a),t.xp6(3),t.Q6J("nzTitle","\u6d41\u683c\u5f0f")("nzValueTemplate",s),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u901f\u5ea6")("nzValueTemplate",d),t.xp6(3),t.Q6J("nzTitle","\u4e0b\u8f7d\u603b\u8ba1")("nzValueTemplate",x),t.xp6(3),t.Q6J("loading",o.loading)("options",o.initialChartOptions)("merge",o.updatedChartOptions)}},directives:[P.bd,Kt,Xt],pipes:[Pt.f,zt],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})(),bt=(()=>{class n{transform(e){var o,a;return e?e.startsWith("/")?null!==(o=e.split("/").pop())&&void 0!==o?o:"":null!==(a=e.split("\\").pop())&&void 0!==a?a:"":""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filename",type:n,pure:!0}),n})(),se=(()=>{class n{transform(e){return e&&0!==e.total?Math.round(e.count/e.total*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 z.ii.INJECTING:return"\u66f4\u65b0 FLV \u5143\u6570\u636e";case z.ii.REMUXING:return"\u8f6c\u6362 FLV \u4e3a MP4";default:return"\u6587\u4ef6\u5904\u7406"}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-postprocessing-detail"]],inputs:{loading:"loading",taskStatus:"taskStatus"},decls:6,vars:9,consts:[[3,"nzTitle","nzLoading"],[3,"title"],["nzStatus","active",3,"nzPercent"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"filename"),t.qZA(),t._UZ(4,"nz-progress",2),t.ALo(5,"progress"),t.qZA()),2&e){let a;t.Q6J("nzTitle",o.title)("nzLoading",o.loading),t.xp6(1),t.Q6J("title",o.taskStatus.postprocessing_path),t.xp6(1),t.hij(" ",t.lcZ(3,5,null!==(a=o.taskStatus.postprocessing_path)&&void 0!==a?a:"")," "),t.xp6(2),t.Q6J("nzPercent",null===o.taskStatus.postprocessing_progress?0:t.lcZ(5,7,o.taskStatus.postprocessing_progress))}},directives:[P.bd,Wt],pipes:[bt,se],styles:["p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),n})();const jo=new Map([[z.cS.RECORDING,"\u5f55\u5236\u4e2d"],[z.cS.INJECTING,"\u5904\u7406\u4e2d"],[z.cS.REMUXING,"\u5904\u7406\u4e2d"],[z.cS.COMPLETED,"\u5df2\u5b8c\u6210"],[z.cS.MISSING,"\u4e0d\u5b58\u5728"],[z.cS.BROKEN,"\u5f55\u5236\u4e2d\u65ad"]]);let $o=(()=>{class n{transform(e){var o;return null!==(o=jo.get(e))&&void 0!==o?o:"\uff1f\uff1f\uff1f"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filestatus",type:n,pure:!0}),n})();function Vo(n,i){if(1&n&&(t.TgZ(0,"th",5),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.Q6J("nzSortOrder",e.sortOrder)("nzSortFn",e.sortFn)("nzSortDirections",e.sortDirections)("nzFilters",e.listOfFilter)("nzFilterFn",e.filterFn)("nzFilterMultiple",e.filterMultiple)("nzShowFilter",e.listOfFilter.length>0),t.xp6(1),t.hij(" ",e.name," ")}}function Ho(n,i){if(1&n&&(t.TgZ(0,"tr"),t.TgZ(1,"td",6),t._uU(2),t.ALo(3,"filename"),t.qZA(),t.TgZ(4,"td",6),t.ALo(5,"number"),t._uU(6),t.ALo(7,"filesize"),t.qZA(),t.TgZ(8,"td",6),t._uU(9),t.ALo(10,"filestatus"),t.qZA(),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.s9C("title",e.path),t.xp6(1),t.Oqu(t.lcZ(3,9,e.path)),t.xp6(2),t.s9C("title",t.lcZ(5,11,e.size)),t.xp6(2),t.Oqu(t.lcZ(7,13,e.size)),t.xp6(2),t.Gre("status ",e.status,""),t.s9C("title",e.status),t.xp6(1),t.hij(" ",t.lcZ(10,15,e.status)," ")}}const re=[z.cS.RECORDING,z.cS.INJECTING,z.cS.REMUXING,z.cS.COMPLETED,z.cS.MISSING];let Xo=(()=>{class n{constructor(){this.loading=!0,this.videoFileDetails=[],this.danmakuFileDetails=[],this.VideoFileStatus=z.cS,this.fileDetails=[],this.columns=[{name:"\u6587\u4ef6",sortOrder:"ascend",sortFn:(e,o)=>e.path.localeCompare(o.path),sortDirections:["ascend","descend"],filterMultiple:!1,listOfFilter:[{text:"\u89c6\u9891",value:"video"},{text:"\u5f39\u5e55",value:"danmaku"}],filterFn:(e,o)=>{switch(e){case"video":return o.path.endsWith(".flv")||o.path.endsWith(".mp4");case"danmaku":return o.path.endsWith(".xml");default:return!1}}},{name:"\u5927\u5c0f",sortOrder:null,sortFn:(e,o)=>e.size-o.size,sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[],filterFn:null},{name:"\u72b6\u6001",sortOrder:null,sortFn:(e,o)=>re.indexOf(e.status)-re.indexOf(o.status),sortDirections:["ascend","descend",null],filterMultiple:!0,listOfFilter:[{text:"\u5f55\u5236\u4e2d",value:[z.cS.RECORDING]},{text:"\u5904\u7406\u4e2d",value:[z.cS.INJECTING,z.cS.REMUXING]},{text:"\u5df2\u5b8c\u6210",value:[z.cS.COMPLETED]},{text:"\u4e0d\u5b58\u5728",value:[z.cS.MISSING]}],filterFn:(e,o)=>e.some(a=>a.some(s=>s===o.status))}]}ngOnChanges(){this.fileDetails=[...this.videoFileDetails,...this.danmakuFileDetails]}trackByPath(e,o){return o.path}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-file-detail"]],inputs:{loading:"loading",videoFileDetails:"videoFileDetails",danmakuFileDetails:"danmakuFileDetails"},features:[t.TTD],decls:8,vars:8,consts:[["nzTitle","\u6587\u4ef6\u8be6\u60c5",3,"nzLoading"],[3,"nzLoading","nzData","nzPageSize","nzHideOnSinglePage"],["fileDetailsTable",""],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzSortOrder","nzSortFn","nzSortDirections","nzFilters","nzFilterFn","nzFilterMultiple","nzShowFilter"],[3,"title"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-table",1,2),t.TgZ(3,"thead"),t.TgZ(4,"tr"),t.YNc(5,Vo,2,8,"th",3),t.qZA(),t.qZA(),t.TgZ(6,"tbody"),t.YNc(7,Ho,11,17,"tr",4),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(2);t.Q6J("nzLoading",o.loading),t.xp6(1),t.Q6J("nzLoading",o.loading)("nzData",o.fileDetails)("nzPageSize",8)("nzHideOnSinglePage",!0),t.xp6(4),t.Q6J("ngForOf",o.columns),t.xp6(2),t.Q6J("ngForOf",a.data)("ngForTrackBy",o.trackByPath)}},directives:[P.bd,Y.N8,Y.Om,Y.$Z,_.sg,Y.Uo,Y._C,Y.qD,Y.p0],pipes:[bt,_.JJ,zt,$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 ti(n,i){if(1&n&&t._UZ(0,"app-task-user-info-detail",6),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("userInfo",e.taskData.user_info)}}function ei(n,i){if(1&n&&t._UZ(0,"app-task-room-info-detail",7),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("roomInfo",e.taskData.room_info)}}function ni(n,i){if(1&n&&t._UZ(0,"app-task-recording-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function oi(n,i){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 ii(n,i){if(1&n&&t._UZ(0,"app-task-postprocessing-detail",8),2&n){const e=t.oxw(2);t.Q6J("loading",e.loading)("taskStatus",e.taskData.task_status)}}function ai(n,i){if(1&n&&(t.YNc(0,ti,1,2,"app-task-user-info-detail",2),t.YNc(1,ei,1,2,"app-task-room-info-detail",3),t.YNc(2,ni,1,2,"app-task-recording-detail",4),t.YNc(3,oi,1,2,"app-task-network-detail",4),t.YNc(4,ii,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 si=function(){return{"max-width":"unset"}},ri=function(){return{"row-gap":"1em"}};let li=(()=>{class n{constructor(e,o,a,s,d){this.route=e,this.router=o,this.changeDetector=a,this.notification=s,this.taskService=d,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,B.of)((0,B.of)(0),(0,te.F)(1e3)).pipe((0,ne.u)(),(0,at.w)(()=>(0,ee.$R)(this.taskService.getTaskData(this.roomId),this.taskService.getVideoFileDetails(this.roomId),this.taskService.getDanmakuFileDetails(this.roomId))),(0,rt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,Et.X)(10,3e3)).subscribe(([e,o,a])=>{this.loading=!1,this.taskData=e,this.videoFileDetails=o,this.danmakuFileDetails=a,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(st.gz),t.Y36(st.F0),t.Y36(t.sBO),t.Y36(oe.zb),t.Y36(At.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-detail"]],decls:2,vars:5,consts:[["pageTitle","\u4efb\u52a1\u8be6\u60c5",3,"loading","pageStyles","contentStyles"],["appSubPageContent",""],[3,"loading","userInfo",4,"ngIf"],[3,"loading","roomInfo",4,"ngIf"],[3,"loading","taskStatus",4,"ngIf"],[3,"loading","videoFileDetails","danmakuFileDetails"],[3,"loading","userInfo"],[3,"loading","roomInfo"],[3,"loading","taskStatus"]],template:function(e,o){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ai,6,8,"ng-template",1),t.qZA()),2&e&&t.Q6J("loading",o.loading)("pageStyles",t.DdM(3,si))("contentStyles",t.DdM(4,ri))},directives:[Mo.q,vo.Y,_.O5,Oo,Zo,Ro,Ko,Go,Xo],styles:[""],changeDetection:0}),n})();var le=r(2323),ci=r(13),_i=r(5778),V=r(4850);const ct=["(max-width: 534.98px)","(min-width: 535px) and (max-width: 1199.98px)","(min-width: 1200px)"];var yt=r(9727);let St=(()=>{class n{constructor(e,o){this.message=e,this.taskService=o}getAllTaskRoomIds(){return this.taskService.getAllTaskData().pipe((0,V.U)(e=>e.map(o=>o.room_info.room_id)))}updateTaskInfo(e){return this.taskService.updateTaskInfo(e).pipe((0,w.b)(()=>{this.message.success(`[${e}] \u6210\u529f\u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e`)},o=>{this.message.error(`[${e}] \u5237\u65b0\u4efb\u52a1\u7684\u6570\u636e\u51fa\u9519: ${o.message}`)}))}updateAllTaskInfos(){return this.taskService.updateAllTaskInfos().pipe((0,w.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,V.U)(o=>({type:"success",message:"\u6210\u529f\u6dfb\u52a0\u4efb\u52a1"})),(0,rt.K)(o=>{let a;return a=409==o.status?{type:"error",message:"\u4efb\u52a1\u5df2\u5b58\u5728\uff0c\u4e0d\u80fd\u91cd\u590d\u6dfb\u52a0\u3002"}:403==o.status?{type:"warning",message:"\u4efb\u52a1\u6570\u91cf\u8d85\u8fc7\u9650\u5236\uff0c\u4e0d\u80fd\u6dfb\u52a0\u4efb\u52a1\u3002"}:404==o.status?{type:"error",message:"\u76f4\u64ad\u95f4\u4e0d\u5b58\u5728"}:{type:"error",message:`\u6dfb\u52a0\u4efb\u52a1\u51fa\u9519: ${o.message}`},(0,B.of)(a)}),(0,V.U)(o=>(o.message=`${e}: ${o.message}`,o)),(0,w.b)(o=>{this.message[o.type](o.message)}))}removeTask(e){return this.taskService.removeTask(e).pipe((0,w.b)(()=>{this.message.success(`[${e}] \u4efb\u52a1\u5df2\u5220\u9664`)},o=>{this.message.error(`[${e}] \u5220\u9664\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}removeAllTasks(){const e=this.message.loading("\u6b63\u5728\u5220\u9664\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.removeAllTasks().pipe((0,w.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5220\u9664\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u5220\u9664\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}startTask(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u8fd0\u884c\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.startTask(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u8fd0\u884c\u4efb\u52a1`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u8fd0\u884c\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}startAllTasks(){const e=this.message.loading("\u6b63\u5728\u8fd0\u884c\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.startAllTasks().pipe((0,w.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u8fd0\u884c\u5168\u90e8\u4efb\u52a1")},o=>{this.message.remove(e),this.message.error(`\u8fd0\u884c\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${o.message}`)}))}stopTask(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u505c\u6b62\u4efb\u52a1...`,{nzDuration:0}).messageId;return this.taskService.stopTask(e,o).pipe((0,w.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u505c\u6b62\u4efb\u52a1`)},s=>{this.message.remove(a),this.message.error(`[${e}] \u505c\u6b62\u4efb\u52a1\u51fa\u9519: ${s.message}`)}))}stopAllTasks(e=!1){const o=this.message.loading("\u6b63\u5728\u505c\u6b62\u5168\u90e8\u4efb\u52a1...",{nzDuration:0}).messageId;return this.taskService.stopAllTasks(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u505c\u6b62\u5168\u90e8\u4efb\u52a1")},a=>{this.message.remove(o),this.message.error(`\u505c\u6b62\u5168\u90e8\u4efb\u52a1\u51fa\u9519: ${a.message}`)}))}enableRecorder(e){const o=this.message.loading(`[${e}] \u6b63\u5728\u5f00\u542f\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.enableTaskRecorder(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success(`[${e}] \u6210\u529f\u5f00\u542f\u5f55\u5236`)},a=>{this.message.remove(o),this.message.error(`[${e}] \u5f00\u542f\u5f55\u5236\u51fa\u9519: ${a.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,w.b)(()=>{this.message.remove(e),this.message.success("\u6210\u529f\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},o=>{this.message.remove(e),this.message.error(`\u5f00\u542f\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${o.message}`)}))}disableRecorder(e,o=!1){const a=this.message.loading(`[${e}] \u6b63\u5728\u5173\u95ed\u5f55\u5236...`,{nzDuration:0}).messageId;return this.taskService.disableTaskRecorder(e,o).pipe((0,w.b)(()=>{this.message.remove(a),this.message.success(`[${e}] \u6210\u529f\u5173\u95ed\u5f55\u5236`)},s=>{this.message.remove(a),this.message.error(`[${e}] \u5173\u95ed\u5f55\u5236\u51fa\u9519: ${s.message}`)}))}disableAllRecorders(e=!1){const o=this.message.loading("\u6b63\u5728\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236...",{nzDuration:0}).messageId;return this.taskService.disableAllRecorders(e).pipe((0,w.b)(()=>{this.message.remove(o),this.message.success("\u6210\u529f\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236")},a=>{this.message.remove(o),this.message.error(`\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\u51fa\u9519: ${a.message}`)}))}cutStream(e){return this.taskService.cutStream(e).pipe((0,w.b)(()=>{this.message.success(`[${e}] \u6587\u4ef6\u5207\u5272\u5df2\u89e6\u53d1`)},o=>{403==o.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: ${o.message}`)}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(yt.dD),t.LFG(At.M))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zt=r(2683),_t=r(4219);function ui(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(5),o=t.MAs(9),a=t.MAs(11),s=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",s)}}function pi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t._UZ(2,"nz-divider",13),t.GkF(3,8),t._UZ(4,"nz-divider",13),t.GkF(5,8),t._UZ(6,"nz-divider",13),t.GkF(7,8),t.BQk()),2&n){t.oxw();const e=t.MAs(7),o=t.MAs(9),a=t.MAs(11),s=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(2),t.Q6J("ngTemplateOutlet",o),t.xp6(2),t.Q6J("ngTemplateOutlet",a),t.xp6(2),t.Q6J("ngTemplateOutlet",s)}}function gi(n,i){if(1&n&&(t.ynx(0),t.GkF(1,8),t.GkF(2,8),t.BQk()),2&n){t.oxw();const e=t.MAs(9),o=t.MAs(20);t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngTemplateOutlet",o)}}function di(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"label",16),t._uU(2),t.qZA(),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzValue",e.value),t.xp6(1),t.Oqu(e.label)}}function mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.YNc(1,di,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 hi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-select",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().selection=a})("ngModelChange",function(a){return t.CHM(e),t.oxw().selectionChange.emit(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzOptions",e.selections)("ngModel",e.selection)}}function fi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"i",23),t.NdJ("click",function(){t.CHM(e),t.oxw(2);const a=t.MAs(2),s=t.oxw();return a.value="",s.onFilterInput("")}),t.qZA()}}function Ci(n,i){if(1&n&&t.YNc(0,fi,1,0,"i",22),2&n){t.oxw();const e=t.MAs(2);t.Q6J("ngIf",e.value)}}function zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-input-group",18),t.TgZ(1,"input",19,20),t.NdJ("input",function(){t.CHM(e);const a=t.MAs(2);return t.oxw().onFilterInput(a.value)}),t.qZA(),t.qZA(),t.YNc(3,Ci,1,1,"ng-template",null,21,t.W1O)}if(2&n){const e=t.MAs(4);t.Q6J("nzSuffix",e)}}function Ti(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().toggleReverse()}),t.TgZ(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"i",25),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.reverse?"\u5012\u5e8f":"\u6b63\u5e8f"),t.xp6(1),t.Q6J("nzType",e.reverse?"swap-left":"swap-right")("nzRotate",90)}}function xi(n,i){if(1&n&&(t.TgZ(0,"button",26),t._UZ(1,"i",27),t.qZA()),2&n){t.oxw();const e=t.MAs(15);t.Q6J("nzDropdownMenu",e)}}function Di(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"ul",28),t.TgZ(1,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().startAllTasks()}),t._uU(2,"\u5168\u90e8\u8fd0\u884c"),t.qZA(),t.TgZ(3,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks()}),t._uU(4,"\u5168\u90e8\u505c\u6b62"),t.qZA(),t.TgZ(5,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().stopAllTasks(!0)}),t._uU(6,"\u5168\u90e8\u5f3a\u5236\u505c\u6b62"),t.qZA(),t._UZ(7,"li",30),t.TgZ(8,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!1)}),t._uU(9,"\u5168\u90e8\u5173\u95ed\u5f55\u5236"),t.qZA(),t.TgZ(10,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().disableAllRecorders(!0)}),t._uU(11,"\u5168\u90e8\u5f3a\u5236\u5173\u95ed\u5f55\u5236"),t.qZA(),t._UZ(12,"li",30),t.TgZ(13,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeAllTasks()}),t._uU(14,"\u5168\u90e8\u5220\u9664"),t.qZA(),t.TgZ(15,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().updateAllTaskInfos()}),t._uU(16,"\u5168\u90e8\u5237\u65b0\u6570\u636e"),t.qZA(),t.TgZ(17,"li",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().copyAllTaskRoomIds()}),t._uU(18,"\u590d\u5236\u5168\u90e8\u623f\u95f4\u53f7"),t.qZA(),t.qZA()}}function Mi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().drawerVisible=!0}),t._UZ(1,"i",27),t.qZA()}}function vi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"div",35),t._UZ(2,"nz-divider",36),t.GkF(3,8),t._UZ(4,"nz-divider",37),t.TgZ(5,"div",38),t.GkF(6,8),t.qZA(),t.qZA(),t.BQk()),2&n){t.oxw(2);const e=t.MAs(5),o=t.MAs(11);t.xp6(3),t.Q6J("ngTemplateOutlet",e),t.xp6(3),t.Q6J("ngTemplateOutlet",o)}}function Oi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",39),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).menuDrawerVisible=!1}),t.GkF(2,8),t.qZA(),t.BQk()}if(2&n){t.oxw(2);const e=t.MAs(18);t.xp6(2),t.Q6J("ngTemplateOutlet",e)}}const ki=function(){return{padding:"0"}};function Ei(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",32),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().drawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().drawerVisible=!1}),t.YNc(1,vi,7,2,"ng-container",33),t.TgZ(2,"nz-drawer",34),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(3,Oi,3,1,"ng-container",33),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(),o=t.MAs(23);t.Q6J("nzTitle",o)("nzClosable",!1)("nzVisible",e.drawerVisible),t.xp6(2),t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(6,ki))("nzVisible",e.menuDrawerVisible)}}function Ai(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"div",40),t.TgZ(1,"button",31),t.NdJ("click",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!0}),t._UZ(2,"i",27),t.qZA(),t.qZA()}}let Pi=(()=>{class n{constructor(e,o,a,s,d,x){this.message=a,this.modal=s,this.clipboard=d,this.taskManager=x,this.selectionChange=new t.vpe,this.reverseChange=new t.vpe,this.filterChange=new t.vpe,this.destroyed=new C.xQ,this.useDrawer=!1,this.useSelector=!1,this.useRadioGroup=!0,this.drawerVisible=!1,this.menuDrawerVisible=!1,this.filterTerms=new C.xQ,this.selections=[{label:"\u5168\u90e8",value:z.jf.ALL},{label:"\u5f55\u5236\u4e2d",value:z.jf.RECORDING},{label:"\u5f55\u5236\u5f00",value:z.jf.RECORDER_ENABLED},{label:"\u5f55\u5236\u5173",value:z.jf.RECORDER_DISABLED},{label:"\u8fd0\u884c",value:z.jf.MONITOR_ENABLED},{label:"\u505c\u6b62",value:z.jf.MONITOR_DISABLED},{label:"\u76f4\u64ad",value:z.jf.LIVING},{label:"\u8f6e\u64ad",value:z.jf.ROUNDING},{label:"\u95f2\u7f6e",value:z.jf.PREPARING}],o.observe(ct).pipe((0,O.R)(this.destroyed)).subscribe(M=>{this.useDrawer=M.breakpoints[ct[0]],this.useSelector=M.breakpoints[ct[1]],this.useRadioGroup=M.breakpoints[ct[2]],e.markForCheck()})}ngOnInit(){this.filterTerms.pipe((0,ci.b)(300),(0,_i.x)()).subscribe(e=>{this.filterChange.emit(e)})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}onFilterInput(e){this.filterTerms.next(e)}toggleReverse(){this.reverse=!this.reverse,this.reverseChange.emit(this.reverse)}removeAllTasks(){this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u4efb\u52a1\u5c06\u88ab\u5f3a\u5236\u505c\u6b62\uff01\u4efb\u52a1\u5220\u9664\u540e\u5c06\u4e0d\u53ef\u6062\u590d\uff01",nzOnOk:()=>new Promise((e,o)=>{this.taskManager.removeAllTasks().subscribe(e,o)})})}startAllTasks(){this.taskManager.startAllTasks().subscribe()}stopAllTasks(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5168\u90e8\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopAllTasks(e).subscribe(o,a)})}):this.taskManager.stopAllTasks().subscribe()}disableAllRecorders(e=!1){e?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u5173\u95ed\u5168\u90e8\u4efb\u52a1\u7684\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableAllRecorders(e).subscribe(o,a)})}):this.taskManager.disableAllRecorders().subscribe()}updateAllTaskInfos(){this.taskManager.updateAllTaskInfos().subscribe()}copyAllTaskRoomIds(){this.taskManager.getAllTaskRoomIds().pipe((0,V.U)(e=>e.join(" ")),(0,w.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(y.Yg),t.Y36(yt.dD),t.Y36($.Sf),t.Y36(c),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-toolbar"]],inputs:{selection:"selection",reverse:"reverse"},outputs:{selectionChange:"selectionChange",reverseChange:"reverseChange",filterChange:"filterChange"},decls:24,vars:7,consts:[[1,"controls-wrapper"],[4,"ngIf"],["radioGroup",""],["selector",""],["filter",""],["reorderButton",""],["menuButton",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["drawerButton",""],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],["drawerHeader",""],["nzType","vertical"],["nzButtonStyle","solid",1,"radio-group",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["nz-radio-button","",3,"nzValue"],[1,"selector",3,"nzOptions","ngModel","ngModelChange"],[1,"filter",3,"nzSuffix"],["nz-input","","type","text","maxlength","18","placeholder","\u7528\u6807\u9898\u3001\u5206\u533a\u3001\u4e3b\u64ad\u540d\u3001\u623f\u95f4\u53f7\u7b5b\u9009",3,"input"],["filterInput",""],["inputClearTpl",""],["nz-icon","","class","filter-clear","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"filter-clear",3,"click"],["nz-button","","nzType","text","nzSize","default",1,"reverse-button",3,"click"],["nz-icon","",3,"nzType","nzRotate"],["nz-button","","nzType","text","nzSize","default","nz-dropdown","","nzPlacement","bottomRight",1,"more-actions-button",3,"nzDropdownMenu"],["nz-icon","","nzType","more"],["nz-menu","",1,"menu"],["nz-menu-item","",3,"click"],["nz-menu-divider",""],["nz-button","","nzType","text","nzSize","default",1,"more-actions-button",3,"click"],["nzPlacement","bottom","nzHeight","auto",3,"nzTitle","nzClosable","nzVisible","nzVisibleChange","nzOnClose"],[4,"nzDrawerContent"],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose"],[1,"drawer-content"],["nzText","\u7b5b\u9009"],["nzText","\u6392\u5e8f"],[1,"reorder-button-wrapper"],[1,"drawer-content",3,"click"],[1,"drawer-header"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0),t.YNc(1,ui,8,4,"ng-container",1),t.YNc(2,pi,8,4,"ng-container",1),t.YNc(3,gi,3,2,"ng-container",1),t.qZA(),t.YNc(4,mi,2,2,"ng-template",null,2,t.W1O),t.YNc(6,hi,1,2,"ng-template",null,3,t.W1O),t.YNc(8,zi,5,1,"ng-template",null,4,t.W1O),t.YNc(10,Ti,4,3,"ng-template",null,5,t.W1O),t.YNc(12,xi,2,1,"ng-template",null,6,t.W1O),t.TgZ(14,"nz-dropdown-menu",null,7),t.GkF(16,8),t.YNc(17,Di,19,0,"ng-template",null,9,t.W1O),t.qZA(),t.YNc(19,Mi,2,0,"ng-template",null,10,t.W1O),t.YNc(21,Ei,4,7,"nz-drawer",11),t.YNc(22,Ai,3,0,"ng-template",null,12,t.W1O)),2&e){const a=t.MAs(18);t.ekj("use-drawer",o.useDrawer),t.xp6(1),t.Q6J("ngIf",o.useRadioGroup),t.xp6(1),t.Q6J("ngIf",o.useSelector),t.xp6(1),t.Q6J("ngIf",o.useDrawer),t.xp6(13),t.Q6J("ngTemplateOutlet",a),t.xp6(5),t.Q6J("ngIf",o.useDrawer)}},directives:[_.O5,_.tP,Ut.g,ft.Dg,m.JJ,m.On,_.sg,ft.Of,ft.Bq,Mt.Vq,Zt.w,tt.gB,tt.ke,tt.Zp,k.Ls,ht.ix,X.wA,X.cm,X.RR,_t.wO,_t.r9,_t.YV,it.Vz,it.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 bi=r(5136);let yi=(()=>{class n{constructor(e){this.storage=e}getSettings(e){var o;const a=this.storage.getData(this.getStorageKey(e));return a&&null!==(o=JSON.parse(a))&&void 0!==o?o:{}}updateSettings(e,o){o=Object.assign(this.getSettings(e),o);const a=JSON.stringify(o);this.storage.setData(this.getStorageKey(e),a)}getStorageKey(e){return`app-tasks-${e}`}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(le.V))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Si=r(5141);const ce=function(){return{spacer:""}};function Zi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",3),t.TgZ(2,"span",4),t._UZ(3,"i"),t.qZA(),t.TgZ(4,"span",5),t._uU(5),t.ALo(6,"duration"),t.qZA(),t.TgZ(7,"span",6),t._uU(8),t.ALo(9,"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,ce))," "),t.xp6(3),t.hij(" ",t.xi3(12,11,e.status.rec_total,t.DdM(23,ce))," "),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 wi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",10),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u6dfb\u52a0\u5143\u6570\u636e\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),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 Fi(n,i){if(1&n&&(t.TgZ(0,"div",2),t.TgZ(1,"p",12),t.ALo(2,"filename"),t._uU(3),t.ALo(4,"filename"),t.qZA(),t._UZ(5,"nz-progress",11),t.ALo(6,"progress"),t.qZA()),2&n){const e=t.oxw();let o,a;t.xp6(1),t.MGl("nzTooltipTitle","\u6b63\u5728\u8f6c\u5c01\u88c5\uff1a",t.lcZ(2,7,null!==(o=e.status.postprocessing_path)&&void 0!==o?o:""),""),t.xp6(2),t.hij(" ",t.lcZ(4,9,null!==(a=e.status.postprocessing_path)&&void 0!==a?a:"")," "),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 Ii=(()=>{class n{constructor(){this.RunningStatus=z.cG}}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,o){1&e&&(t.ynx(0,0),t.YNc(1,Zi,20,24,"div",1),t.YNc(2,wi,7,13,"div",1),t.YNc(3,Fi,7,13,"div",1),t.BQk()),2&e&&(t.Q6J("ngSwitch",o.status.running_status),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.RECORDING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.INJECTING),t.xp6(1),t.Q6J("ngSwitchCase",o.RunningStatus.REMUXING))},directives:[_.RF,_.n9,ot.SY,Wt],pipes:[ie,Pt.f,zt,_.JJ,ae.U,bt,se],styles:[".status-bar[_ngcontent-%COMP%]{color:#fff;text-shadow:1px 1px 2px black;margin:0;padding:0 .5rem;background:rgba(0,0,0,.32)}.status-display[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.status-bar[_ngcontent-%COMP%]{display:flex;gap:1rem;font-size:1rem;line-height:1.8}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.status-bar.recording[_ngcontent-%COMP%] .status-indicator[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.5rem;color:red;background:red;animation:blinker 1s cubic-bezier(1,0,0,1) infinite}@keyframes blinker{0%{opacity:0}to{opacity:1}}.status-bar.injecting[_ngcontent-%COMP%], .status-bar.remuxing[_ngcontent-%COMP%], .status-bar[_ngcontent-%COMP%] .danmu-count[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.status-bar[_ngcontent-%COMP%] .quality[_ngcontent-%COMP%]{flex:none;margin-left:auto}nz-progress[_ngcontent-%COMP%]{display:flex}nz-progress[_ngcontent-%COMP%] .ant-progress-outer{display:flex}"],changeDetection:0}),n})();var R=r(3523),U=r(8737);function Ni(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function Bi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function Ui(n,i){if(1&n&&(t.YNc(0,Ni,2,0,"ng-container",66),t.YNc(1,Bi,2,0,"ng-container",66)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Ri(n,i){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 Li(n,i){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 Ji(n,i){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 Qi(n,i){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 qi(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Wi(n,i){1&n&&t.YNc(0,qi,2,0,"ng-container",66),2&n&&t.Q6J("ngIf",i.$implicit.hasError("required"))}function Yi(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"div",3),t.TgZ(3,"h2"),t._uU(4,"\u6587\u4ef6"),t.qZA(),t.TgZ(5,"nz-form-item",4),t.TgZ(6,"nz-form-label",5),t._uU(7,"\u8def\u5f84\u6a21\u677f"),t.qZA(),t.TgZ(8,"nz-form-control",6),t.TgZ(9,"input",7),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().model.output.pathTemplate=a}),t.qZA(),t.YNc(10,Ui,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(12,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.output.pathTemplate=a?s.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(a){return t.CHM(e),t.oxw().model.output.filesizeLimit=a}),t.qZA(),t.qZA(),t.TgZ(19,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.output.filesizeLimit=a?s.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(a){return t.CHM(e),t.oxw().model.output.durationLimit=a}),t.qZA(),t.qZA(),t.TgZ(26,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.output.durationLimit=a?s.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,Ri,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(a){return t.CHM(e),t.oxw().model.recorder.streamFormat=a}),t.qZA(),t.qZA(),t.TgZ(38,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.streamFormat=a?s.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,Li,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(a){return t.CHM(e),t.oxw().model.recorder.fmp4StreamTimeout=a}),t.qZA(),t.qZA(),t.TgZ(48,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.fmp4StreamTimeout=a?s.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(a){return t.CHM(e),t.oxw().model.recorder.qualityNumber=a}),t.qZA(),t.qZA(),t.TgZ(55,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.qualityNumber=a?s.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(a){return t.CHM(e),t.oxw().model.recorder.saveCover=a}),t.qZA(),t.qZA(),t.TgZ(62,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.saveCover=a?s.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,Ji,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(a){return t.CHM(e),t.oxw().model.recorder.coverSaveStrategy=a}),t.qZA(),t.qZA(),t.TgZ(71,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.coverSaveStrategy=a?s.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(a){return t.CHM(e),t.oxw().model.recorder.readTimeout=a}),t.qZA(),t.qZA(),t.TgZ(79,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.readTimeout=a?s.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(a){return t.CHM(e),t.oxw().model.recorder.disconnectionTimeout=a}),t.qZA(),t.qZA(),t.TgZ(86,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.bufferSize=a?s.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(a){return t.CHM(e),t.oxw().model.recorder.bufferSize=a}),t.qZA(),t.qZA(),t.TgZ(93,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.recorder.bufferSize=a?s.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(a){return t.CHM(e),t.oxw().model.danmaku.recordGiftSend=a}),t.qZA(),t.qZA(),t.TgZ(103,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordGiftSend=a?s.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(a){return t.CHM(e),t.oxw().model.danmaku.recordFreeGifts=a}),t.qZA(),t.qZA(),t.TgZ(110,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordFreeGifts=a?s.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(a){return t.CHM(e),t.oxw().model.danmaku.recordGuardBuy=a}),t.qZA(),t.qZA(),t.TgZ(117,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordGuardBuy=a?s.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(a){return t.CHM(e),t.oxw().model.danmaku.recordSuperChat=a}),t.qZA(),t.qZA(),t.TgZ(124,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.recordSuperChat=a?s.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(a){return t.CHM(e),t.oxw().model.danmaku.danmuUname=a}),t.qZA(),t.qZA(),t.TgZ(131,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.danmuUname=a?s.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(a){return t.CHM(e),t.oxw().model.danmaku.saveRawDanmaku=a}),t.qZA(),t.qZA(),t.TgZ(138,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.danmaku.saveRawDanmaku=a?s.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(a){return t.CHM(e),t.oxw().model.postprocessing.injectExtraMetadata=a}),t.qZA(),t.qZA(),t.TgZ(148,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.postprocessing.injectExtraMetadata=a?s.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(a){return t.CHM(e),t.oxw().model.postprocessing.remuxToMp4=a}),t.qZA(),t.qZA(),t.TgZ(155,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.postprocessing.remuxToMp4=a?s.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,Qi,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(a){return t.CHM(e),t.oxw().model.postprocessing.deleteSource=a}),t.qZA(),t.qZA(),t.TgZ(164,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.postprocessing.deleteSource=a?s.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(a){return t.CHM(e),t.oxw().model.header.userAgent=a}),t.qZA(),t.qZA(),t.YNc(175,Wi,1,1,"ng-template",null,8,t.W1O),t.TgZ(177,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.header.userAgent=a?s.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(a){return t.CHM(e),t.oxw().model.header.cookie=a}),t.qZA(),t.qZA(),t.TgZ(185,"label",9),t.NdJ("nzCheckedChange",function(a){t.CHM(e);const s=t.oxw();return s.options.header.cookie=a?s.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),o=t.MAs(35),a=t.MAs(44),s=t.MAs(68),d=t.MAs(78),x=t.MAs(161),M=t.MAs(174),E=t.MAs(184),l=t.oxw();t.xp6(8),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",l.pathTemplatePattern)("ngModel",l.model.output.pathTemplate)("disabled",null===l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzChecked",null!==l.options.output.pathTemplate),t.xp6(3),t.Q6J("nzTooltipTitle",l.splitFileTip),t.xp6(3),t.Q6J("ngModel",l.model.output.filesizeLimit)("disabled",null===l.options.output.filesizeLimit)("nzOptions",l.filesizeLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.output.filesizeLimit),t.xp6(3),t.Q6J("nzTooltipTitle",l.splitFileTip),t.xp6(3),t.Q6J("ngModel",l.model.output.durationLimit)("disabled",null===l.options.output.durationLimit)("nzOptions",l.durationLimitOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.output.durationLimit),t.xp6(6),t.Q6J("nzTooltipTitle",o),t.xp6(5),t.Q6J("ngModel",l.model.recorder.streamFormat)("disabled",null===l.options.recorder.streamFormat)("nzOptions",l.streamFormatOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.streamFormat),t.xp6(3),t.Q6J("nzTooltipTitle",a),t.xp6(5),t.Q6J("ngModel",l.model.recorder.fmp4StreamTimeout)("disabled",null===l.options.recorder.fmp4StreamTimeout)("nzOptions",l.fmp4StreamTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==l.options.recorder.fmp4StreamTimeout),t.xp6(6),t.Q6J("ngModel",l.model.recorder.qualityNumber)("disabled",null===l.options.recorder.qualityNumber)("nzOptions",l.qualityOptions),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.qualityNumber),t.xp6(6),t.Q6J("ngModel",l.model.recorder.saveCover)("disabled",null===l.options.recorder.saveCover),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.saveCover),t.xp6(3),t.Q6J("nzTooltipTitle",s),t.xp6(5),t.Q6J("ngModel",l.model.recorder.coverSaveStrategy)("disabled",null===l.options.recorder.coverSaveStrategy||!l.options.recorder.saveCover)("nzOptions",l.coverSaveStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.coverSaveStrategy),t.xp6(5),t.Q6J("nzValidateStatus",d.value>3?"warning":d),t.xp6(1),t.Q6J("ngModel",l.model.recorder.readTimeout)("disabled",null===l.options.recorder.readTimeout)("nzOptions",l.readTimeoutOptions),t.xp6(2),t.Q6J("nzChecked",null!==l.options.recorder.readTimeout),t.xp6(6),t.Q6J("ngModel",l.model.recorder.disconnectionTimeout)("disabled",null===l.options.recorder.disconnectionTimeout)("nzOptions",l.disconnectionTimeoutOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(6),t.Q6J("ngModel",l.model.recorder.bufferSize)("disabled",null===l.options.recorder.bufferSize)("nzOptions",l.bufferOptions)("nzOptionOverflowSize",6),t.xp6(1),t.Q6J("nzChecked",null!==l.options.recorder.bufferSize),t.xp6(9),t.Q6J("ngModel",l.model.danmaku.recordGiftSend)("disabled",null===l.options.danmaku.recordGiftSend),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGiftSend),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordFreeGifts)("disabled",null===l.options.danmaku.recordFreeGifts),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordFreeGifts),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordGuardBuy)("disabled",null===l.options.danmaku.recordGuardBuy),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordGuardBuy),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.recordSuperChat)("disabled",null===l.options.danmaku.recordSuperChat),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.recordSuperChat),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.danmuUname)("disabled",null===l.options.danmaku.danmuUname),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.danmuUname),t.xp6(6),t.Q6J("ngModel",l.model.danmaku.saveRawDanmaku)("disabled",null===l.options.danmaku.saveRawDanmaku),t.xp6(1),t.Q6J("nzChecked",null!==l.options.danmaku.saveRawDanmaku),t.xp6(9),t.Q6J("ngModel",l.model.postprocessing.injectExtraMetadata)("disabled",null===l.options.postprocessing.injectExtraMetadata||!!l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.injectExtraMetadata),t.xp6(6),t.Q6J("ngModel",l.model.postprocessing.remuxToMp4)("disabled",null===l.options.postprocessing.remuxToMp4),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.remuxToMp4),t.xp6(3),t.Q6J("nzTooltipTitle",x),t.xp6(5),t.Q6J("ngModel",l.model.postprocessing.deleteSource)("disabled",null===l.options.postprocessing.deleteSource||!l.options.postprocessing.remuxToMp4)("nzOptions",l.deleteStrategies),t.xp6(1),t.Q6J("nzChecked",null!==l.options.postprocessing.deleteSource),t.xp6(8),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",M.valid&&l.options.header.userAgent!==l.taskOptions.header.userAgent&&l.options.header.userAgent!==l.globalSettings.header.userAgent?"warning":M)("nzErrorTip",e),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.userAgent)("disabled",null===l.options.header.userAgent),t.xp6(4),t.Q6J("nzChecked",null!==l.options.header.userAgent),t.xp6(5),t.Q6J("nzWarningTip",l.warningTip)("nzValidateStatus",E.valid&&l.options.header.cookie!==l.taskOptions.header.cookie&&l.options.header.cookie!==l.globalSettings.header.cookie?"warning":E),t.xp6(1),t.Q6J("rows",3)("ngModel",l.model.header.cookie)("disabled",null===l.options.header.cookie),t.xp6(2),t.Q6J("nzChecked",null!==l.options.header.cookie)}}let Ki=(()=>{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=U.Uk,this.pathTemplatePattern=U._m,this.filesizeLimitOptions=(0,R.Z)(U.Pu),this.durationLimitOptions=(0,R.Z)(U.Fg),this.streamFormatOptions=(0,R.Z)(U.tp),this.fmp4StreamTimeoutOptions=(0,R.Z)(U.D4),this.qualityOptions=(0,R.Z)(U.O6),this.readTimeoutOptions=(0,R.Z)(U.D4),this.disconnectionTimeoutOptions=(0,R.Z)(U.$w),this.bufferOptions=(0,R.Z)(U.Rc),this.deleteStrategies=(0,R.Z)(U.rc),this.coverSaveStrategies=(0,R.Z)(U.J_)}ngOnChanges(){this.options=(0,R.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,lt.e5)(this.options,this.taskOptions)),this.close()}setupModel(){const e={};for(const o of Object.keys(this.options)){const d=this.globalSettings[o];Reflect.set(e,o,new Proxy(this.options[o],{get:(x,M)=>{var E;return null!==(E=Reflect.get(x,M))&&void 0!==E?E:Reflect.get(d,M)},set:(x,M,E)=>Reflect.set(x,M,E)}))}this.model=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-settings-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(m.F,5),2&e){let a;t.iGM(a=t.CRH())&&(o.ngForm=a.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,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()})("nzAfterOpen",function(){return o.afterOpen.emit()})("nzAfterClose",function(){return o.afterClose.emit()}),t.YNc(1,Yi,187,94,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkDisabled",null==o.ngForm||null==o.ngForm.form?null:o.ngForm.form.invalid)},directives:[$.du,$.Hf,m._Y,m.JL,m.F,W.Lr,m.Mq,h.SK,W.Nx,h.t3,W.iK,W.Fd,tt.Zp,m.Fj,m.Q7,m.c5,m.JJ,m.On,_.O5,Bt.Ie,Mt.Vq,Dt.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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 _e(n,i,e,o,a,s,d){try{var x=n[s](d),M=x.value}catch(E){return void e(E)}x.done?i(M):Promise.resolve(M).then(o,a)}var wt=r(5254),ji=r(3753),$i=r(2313);const Ft=new Map,It=new Map;let Vi=(()=>{class n{constructor(e){this.domSanitizer=e}transform(e,o="object"){return"object"===o?It.has(e)?(0,B.of)(It.get(e)):(0,wt.D)(this.fetchImage(e)).pipe((0,V.U)(a=>URL.createObjectURL(a)),(0,V.U)(a=>this.domSanitizer.bypassSecurityTrustUrl(a)),(0,w.b)(a=>It.set(e,a)),(0,rt.K)(()=>(0,B.of)(this.domSanitizer.bypassSecurityTrustUrl("")))):Ft.has(e)?(0,B.of)(Ft.get(e)):(0,wt.D)(this.fetchImage(e)).pipe((0,at.w)(a=>this.createDataURL(a)),(0,w.b)(a=>Ft.set(e,a)),(0,rt.K)(()=>(0,B.of)(this.domSanitizer.bypassSecurityTrustUrl(""))))}fetchImage(e){return function Gi(n){return function(){var i=this,e=arguments;return new Promise(function(o,a){var s=n.apply(i,e);function d(M){_e(s,o,a,d,x,"next",M)}function x(M){_e(s,o,a,d,x,"throw",M)}d(void 0)})}}(function*(){return yield(yield fetch(e,{referrer:""})).blob()})()}createDataURL(e){const o=new FileReader,a=(0,ji.R)(o,"load").pipe((0,V.U)(()=>this.domSanitizer.bypassSecurityTrustUrl(o.result)));return o.readAsDataURL(e),a}}return n.\u0275fac=function(e){return new(e||n)(t.Y36($i.H7,16))},n.\u0275pipe=t.Yjl({name:"dataurl",type:n,pure:!0}),n})();function Hi(n,i){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 Xi=function(n){return[n,"detail"]};function ta(n,i){if(1&n&&(t.TgZ(0,"a",15),t.TgZ(1,"div",16),t._UZ(2,"img",17),t.ALo(3,"async"),t.ALo(4,"dataurl"),t.TgZ(5,"h2",18),t._uU(6),t.qZA(),t.YNc(7,Hi,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,Xi,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 ea(n,i){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 na(n,i){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 oa(n,i){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 ia(n,i){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 aa(n,i){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,na,4,0,"nz-tag",28),t.YNc(7,oa,4,0,"nz-tag",29),t.YNc(8,ia,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 sa(n,i){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 ra(n,i){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,sa,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 la(n,i){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 ca(n,i){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 ua(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-task-settings-dialog",51),t.NdJ("visibleChange",function(a){return t.CHM(e),t.oxw(2).settingsDialogVisible=a})("confirm",function(a){return t.CHM(e),t.oxw(2).changeTaskOptions(a)})("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 pa(n,i){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,ua,2,3,"ng-container",50)}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.taskOptions&&e.globalSettings)}}function ga(n,i){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 da(n,i){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 ma(n,i){if(1&n&&(t.YNc(0,ga,2,1,"div",52),t.YNc(1,da,2,0,"div",53)),2&n){const e=t.oxw();t.Q6J("ngIf",!e.useDrawer),t.xp6(1),t.Q6J("ngIf",e.useDrawer)}}function ha(n,i){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 fa(n,i){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 Ca=function(){return{padding:"0"}};function za(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-drawer",59),t.NdJ("nzVisibleChange",function(a){return t.CHM(e),t.oxw().menuDrawerVisible=a})("nzOnClose",function(){return t.CHM(e),t.oxw().menuDrawerVisible=!1}),t.YNc(1,fa,3,1,"ng-container",60),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("nzClosable",!1)("nzBodyStyle",t.DdM(3,Ca))("nzVisible",e.menuDrawerVisible)}}const Ta=function(n,i,e,o){return[n,i,e,o]},xa=function(){return{padding:"0.5rem"}},Da=function(){return{size:"large"}};let Ma=(()=>{class n{constructor(e,o,a,s,d,x,M){this.changeDetector=o,this.message=a,this.modal=s,this.settingService=d,this.taskManager=x,this.appTaskSettings=M,this.stopped=!1,this.destroyed=new C.xQ,this.useDrawer=!1,this.menuDrawerVisible=!1,this.switchPending=!1,this.settingsDialogVisible=!1,this.RunningStatus=z.cG,e.observe(ct[0]).pipe((0,O.R)(this.destroyed)).subscribe(E=>{this.useDrawer=E.matches,o.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===z.cG.STOPPED}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}updateTaskInfo(){this.taskManager.updateTaskInfo(this.roomId).subscribe()}toggleRecorder(){this.toggleRecorderForbidden||this.switchPending||(this.switchPending=!0,this.data.task_status.recorder_enabled?this.taskManager.disableRecorder(this.roomId).subscribe(()=>this.switchPending=!1):this.taskManager.enableRecorder(this.roomId).subscribe(()=>this.switchPending=!1))}removeTask(){this.taskManager.removeTask(this.roomId).subscribe()}startTask(){this.data.task_status.running_status===z.cG.STOPPED?this.taskManager.startTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u8fd0\u884c\u4e2d\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}stopTask(e=!1){this.data.task_status.running_status!==z.cG.STOPPED?e&&this.data.task_status.running_status==z.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u4efb\u52a1\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.stopTask(this.roomId,e).subscribe(o,a)})}):this.taskManager.stopTask(this.roomId).subscribe():this.message.warning("\u4efb\u52a1\u5904\u4e8e\u505c\u6b62\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}disableRecorder(e=!1){this.data.task_status.recorder_enabled?e&&this.data.task_status.running_status==z.cG.RECORDING?this.modal.confirm({nzTitle:"\u786e\u5b9a\u8981\u5f3a\u5236\u505c\u6b62\u5f55\u5236\uff1f",nzContent:"\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\u4f1a\u88ab\u5f3a\u884c\u4e2d\u65ad\uff01\u786e\u5b9a\u8981\u653e\u5f03\u6b63\u5728\u5f55\u5236\u7684\u6587\u4ef6\uff1f",nzOnOk:()=>new Promise((o,a)=>{this.taskManager.disableRecorder(this.roomId,e).subscribe(o,a)})}):this.taskManager.disableRecorder(this.roomId).subscribe():this.message.warning("\u5f55\u5236\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u5ffd\u7565\u64cd\u4f5c\u3002")}openSettingsDialog(){(0,ee.$R)(this.settingService.getTaskOptions(this.roomId),this.settingService.getSettings(["output","header","danmaku","recorder","postprocessing"])).subscribe(([e,o])=>{this.taskOptions=e,this.globalSettings=o,this.settingsDialogVisible=!0,this.changeDetector.markForCheck()},e=>{this.message.error(`\u83b7\u53d6\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${e.message}`)})}cleanSettingsData(){delete this.taskOptions,delete this.globalSettings,this.changeDetector.markForCheck()}changeTaskOptions(e){this.settingService.changeTaskOptions(this.roomId,e).pipe((0,Et.X)(3,300)).subscribe(o=>{this.message.success("\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u6210\u529f")},o=>{this.message.error(`\u4fee\u6539\u4efb\u52a1\u8bbe\u7f6e\u51fa\u9519: ${o.message}`)})}cutStream(){this.data.task_status.running_status===z.cG.RECORDING&&this.taskManager.cutStream(this.roomId).subscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(y.Yg),t.Y36(t.sBO),t.Y36(yt.dD),t.Y36($.Sf),t.Y36(bi.R),t.Y36(St),t.Y36(yi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-item"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("stopped",o.stopped)},inputs:{data:"data"},features:[t.TTD],decls:25,vars:19,consts:[[3,"nzCover","nzHoverable","nzActions","nzBodyStyle"],[3,"nzActive","nzLoading","nzAvatar"],[3,"nzAvatar","nzTitle","nzDescription"],["coverTemplate",""],["avatarTemplate",""],["titleTemplate",""],["descTemplate",""],["actionSwitch",""],["actionDelete",""],["actionSetting",""],["actionMore",""],["dropdownMenu","nzDropdownMenu"],[3,"ngTemplateOutlet"],["menu",""],["nzPlacement","bottom","nzHeight","auto",3,"nzClosable","nzBodyStyle","nzVisible","nzVisibleChange","nzOnClose",4,"ngIf"],[3,"routerLink"],[1,"cover-wrapper"],["alt","\u76f4\u64ad\u95f4\u5c01\u9762",1,"cover",3,"src"],["nz-tooltip","","nzTooltipPlacement","bottomLeft",1,"title",3,"nzTooltipTitle"],[3,"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,o){if(1&e&&(t.TgZ(0,"nz-card",0),t.TgZ(1,"nz-skeleton",1),t._UZ(2,"nz-card-meta",2),t.qZA(),t.qZA(),t.YNc(3,ta,9,12,"ng-template",null,3,t.W1O),t.YNc(5,ea,3,7,"ng-template",null,4,t.W1O),t.YNc(7,aa,9,6,"ng-template",null,5,t.W1O),t.YNc(9,ra,12,7,"ng-template",null,6,t.W1O),t.YNc(11,la,1,4,"ng-template",null,7,t.W1O),t.YNc(13,ca,2,2,"ng-template",null,8,t.W1O),t.YNc(15,pa,3,1,"ng-template",null,9,t.W1O),t.YNc(17,ma,2,2,"ng-template",null,10,t.W1O),t.TgZ(19,"nz-dropdown-menu",null,11),t.GkF(21,12),t.YNc(22,ha,15,0,"ng-template",null,13,t.W1O),t.qZA(),t.YNc(24,za,2,4,"nz-drawer",14)),2&e){const a=t.MAs(4),s=t.MAs(6),d=t.MAs(8),x=t.MAs(10),M=t.MAs(12),E=t.MAs(14),l=t.MAs(16),L=t.MAs(18),q=t.MAs(23);t.Q6J("nzCover",a)("nzHoverable",!0)("nzActions",t.l5B(12,Ta,E,l,M,L))("nzBodyStyle",t.DdM(17,xa)),t.xp6(1),t.Q6J("nzActive",!0)("nzLoading",!o.data)("nzAvatar",t.DdM(18,Da)),t.xp6(1),t.Q6J("nzAvatar",s)("nzTitle",d)("nzDescription",x),t.xp6(19),t.Q6J("ngTemplateOutlet",q),t.xp6(3),t.Q6J("ngIf",o.useDrawer)}},directives:[P.bd,me,P.l7,st.yS,ot.SY,_.O5,Si.i,Ii,nt.Dz,_.RF,_.n9,et,k.Ls,Zt.w,Dt.i,m.JJ,m.On,Ki,X.cm,X.RR,_.tP,_t.wO,_t.r9,it.Vz,it.SQ],pipes:[_.Ov,Vi],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 va(n,i){1&n&&(t.TgZ(0,"div",2),t._UZ(1,"nz-empty"),t.qZA())}function Oa(n,i){1&n&&t._UZ(0,"app-task-item",6),2&n&&t.Q6J("data",i.$implicit)}function ka(n,i){if(1&n&&(t.TgZ(0,"div",3,4),t.YNc(2,Oa,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 Ea=(()=>{class n{constructor(){this.dataList=[]}trackByRoomId(e,o){return o.room_info.room_id}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-task-list"]],inputs:{dataList:"dataList"},decls:3,vars:2,consts:[["class","empty-container",4,"ngIf","ngIfElse"],["elseBlock",""],[1,"empty-container"],[1,"tasks-container"],["tasks",""],[3,"data",4,"ngFor","ngForOf","ngForTrackBy"],[3,"data"]],template:function(e,o){if(1&e&&(t.YNc(0,va,2,0,"div",0),t.YNc(1,ka,3,2,"ng-template",null,1,t.W1O)),2&e){const a=t.MAs(2);t.Q6J("ngIf",0===o.dataList.length)("ngIfElse",a)}},directives:[_.O5,Rt.p9,_.sg,Ma],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 Aa=r(2643),Pa=r(1406);function ba(n,i){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u76f4\u64ad\u95f4\u53f7\u6216 URL "),t.BQk())}function ya(n,i){1&n&&(t.ynx(0),t._uU(1," \u8f93\u5165\u6709\u9519\u8bef "),t.BQk())}function Sa(n,i){if(1&n&&(t.YNc(0,ba,2,0,"ng-container",8),t.YNc(1,ya,2,0,"ng-container",8)),2&n){const e=i.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Za(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-alert",9),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("nzType",e.type)("nzMessage",e.message)}}function wa(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"form",2),t.TgZ(2,"nz-form-item"),t.TgZ(3,"nz-form-control",3),t._UZ(4,"input",4),t.YNc(5,Sa,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",6),t.YNc(8,Za,2,2,"ng-container",7),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),o=t.oxw();t.xp6(1),t.Q6J("formGroup",o.formGroup),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",o.pattern),t.xp6(4),t.Q6J("ngForOf",o.resultMessages)}}const Fa=/^https?:\/\/live\.bilibili\.com\/(\d+).*$/,Ia=/^\s*(?:\d+(?:[ ]+\d+)*|https?:\/\/live\.bilibili\.com\/\d+.*)\s*$/;let Na=(()=>{class n{constructor(e,o,a){this.changeDetector=o,this.taskManager=a,this.visible=!1,this.visibleChange=new t.vpe,this.pending=!1,this.resultMessages=[],this.pattern=Ia,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 o;o=e.startsWith("http")?[parseInt(Fa.exec(e)[1])]:new Set(e.split(/\s+/).map(a=>parseInt(a))),(0,wt.D)(o).pipe((0,Pa.b)(a=>this.taskManager.addTask(a)),(0,w.b)(a=>{this.resultMessages.push(a),this.changeDetector.markForCheck()})).subscribe({complete:()=>{this.resultMessages.every(a=>"success"===a.type)?this.close():this.reset()}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(m.qu),t.Y36(t.sBO),t.Y36(St))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-task-dialog"]],inputs:{visible:"visible"},outputs:{visibleChange:"visibleChange"},decls:2,vars:6,consts:[["nzTitle","\u6dfb\u52a0\u4efb\u52a1","nzCentered","","nzOkText","\u6dfb\u52a0",3,"nzVisible","nzOkLoading","nzOkDisabled","nzCancelDisabled","nzClosable","nzMaskClosable","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["nz-form","",3,"formGroup"],["nzHasFeedback","",3,"nzErrorTip"],["nz-input","","required","","placeholder","\u76f4\u64ad\u95f4 URL \u6216\u623f\u95f4\u53f7\uff08\u652f\u6301\u591a\u4e2a\u623f\u95f4\u53f7\u7528\u7a7a\u683c\u9694\u5f00\uff09","formControlName","input",3,"pattern"],["errorTip",""],[1,"result-messages-container"],[4,"ngFor","ngForOf"],[4,"ngIf"],["nzShowIcon","",3,"nzType","nzMessage"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzOnOk",function(){return o.handleConfirm()})("nzOnCancel",function(){return o.handleCancel()}),t.YNc(1,wa,9,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",o.visible)("nzOkLoading",o.pending)("nzOkDisabled",o.formGroup.invalid)("nzCancelDisabled",o.pending)("nzClosable",!o.pending)("nzMaskClosable",!o.pending)},directives:[$.du,$.Hf,m._Y,m.JL,W.Lr,m.sg,h.SK,W.Nx,h.t3,W.Fd,tt.Zp,m.Fj,m.Q7,m.JJ,m.u,m.c5,_.O5,_.sg,Le],styles:[".result-messages-container[_ngcontent-%COMP%]{width:100%;max-height:200px;overflow-y:auto}"],changeDetection:0}),n})(),Ua=(()=>{class n{transform(e,o=""){return console.debug("filter tasks by '%s'",o),[...this.filterByTerm(e,o)]}filterByTerm(e,o){return function*Ba(n,i){for(const e of n)i(e)&&(yield e)}(e,a=>""===(o=o.trim())||a.user_info.name.includes(o)||a.room_info.title.toString().includes(o)||a.room_info.area_name.toString().includes(o)||a.room_info.room_id.toString().includes(o)||a.room_info.short_room_id.toString().includes(o))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"filterTasks",type:n,pure:!0}),n})();function Ra(n,i){if(1&n&&t._UZ(0,"nz-spin",6),2&n){const e=t.oxw();t.Q6J("nzSize","large")("nzSpinning",e.loading)}}function La(n,i){if(1&n&&(t._UZ(0,"app-task-list",7),t.ALo(1,"filterTasks")),2&n){const e=t.oxw();t.Q6J("dataList",t.xi3(1,1,e.dataList,e.filterTerm))}}const ue="app-tasks-selection",pe="app-tasks-reverse",Ja=[{path:":id/detail",component:li},{path:"",component:(()=>{class n{constructor(e,o,a,s){this.changeDetector=e,this.notification=o,this.storage=a,this.taskService=s,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(ue);return null!==e?e:z.jf.ALL}retrieveReverse(){return"true"===this.storage.getData(pe)}storeSelection(e){this.storage.setData(ue,e)}storeReverse(e){this.storage.setData(pe,e.toString())}syncTaskData(){this.dataSubscription=(0,B.of)((0,B.of)(0),(0,te.F)(1e3)).pipe((0,ne.u)(),(0,at.w)(()=>this.taskService.getAllTaskData(this.selection)),(0,rt.K)(e=>{throw this.notification.error("\u83b7\u53d6\u4efb\u52a1\u6570\u636e\u51fa\u9519",e.message),e}),(0,Et.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(oe.zb),t.Y36(le.V),t.Y36(At.M))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-tasks"]],decls:8,vars:4,consts:[[3,"selection","reverse","selectionChange","reverseChange","filterChange"],["class","spinner",3,"nzSize","nzSpinning",4,"ngIf","ngIfElse"],["elseBlock",""],["nz-button","","nzType","primary","nzSize","large","nzShape","circle","nz-tooltip","","nzTooltipTitle","\u6dfb\u52a0\u4efb\u52a1",1,"add-task-button",3,"click"],["nz-icon","","nzType","plus"],["addTaskDialog",""],[1,"spinner",3,"nzSize","nzSpinning"],[3,"dataList"]],template:function(e,o){if(1&e){const a=t.EpF();t.TgZ(0,"app-toolbar",0),t.NdJ("selectionChange",function(d){return o.onSelectionChanged(d)})("reverseChange",function(d){return o.onReverseChanged(d)})("filterChange",function(d){return o.filterTerm=d}),t.qZA(),t.YNc(1,Ra,1,2,"nz-spin",1),t.YNc(2,La,2,4,"ng-template",null,2,t.W1O),t.TgZ(4,"button",3),t.NdJ("click",function(){return t.CHM(a),t.MAs(7).open()}),t._UZ(5,"i",4),t.qZA(),t._UZ(6,"app-add-task-dialog",null,5)}if(2&e){const a=t.MAs(3);t.Q6J("selection",o.selection)("reverse",o.reverse),t.xp6(1),t.Q6J("ngIf",o.loading)("ngIfElse",a)}},directives:[Pi,_.O5,Lt.W,Ea,ht.ix,Aa.dQ,Zt.w,ot.SY,k.Ls,Na],pipes:[Ua],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 Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[st.Bz.forChild(Ja)],st.Bz]}),n})(),qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,m.u5,m.UX,y.xu,g,h.Jb,P.vh,Nt,nt.Rt,k.PV,Nt,ot.cg,G,Dt.m,X.b1,ht.sL,$.Qp,W.U5,tt.o7,Bt.Wr,Ae,ft.aF,Ut.S,Rt.Xo,Lt.j,Je,it.BL,Mt.LV,hn,Y.HQ,Pn,uo,xo.forRoot({echarts:()=>r.e(45).then(r.bind(r,8045))}),Qa,Do.m]]}),n})()},855:function(D){D.exports=function(){"use strict";var v=/^(b|B)$/,r={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"]}},_={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 y(t){var p,c,f,Z,g,h,P,k,u,C,O,I,A,S,N,J,et,G,nt,Tt,j,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},T=[],H=0;if(isNaN(t))throw new TypeError("Invalid number");if(f=!0===b.bits,N=!0===b.unix,I=!0===b.pad,A=void 0!==b.round?b.round:N?1:2,P=void 0!==b.locale?b.locale:"",k=b.localeOptions||{},J=void 0!==b.separator?b.separator:"",et=void 0!==b.spacer?b.spacer:N?"":" ",nt=b.symbols||{},G=2===(c=b.base||2)&&b.standard||"jedec",O=b.output||"string",g=!0===b.fullform,h=b.fullforms instanceof Array?b.fullforms:[],p=void 0!==b.exponent?b.exponent:-1,Tt=m[b.roundingMethod]||Math.round,u=(C=Number(t))<0,Z=c>2?1e3:1024,j=!1===isNaN(b.precision)?parseInt(b.precision,10):0,u&&(C=-C),(-1===p||isNaN(p))&&(p=Math.floor(Math.log(C)/Math.log(Z)))<0&&(p=0),p>8&&(j>0&&(j+=8-p),p=8),"exponent"===O)return p;if(0===C)T[0]=0,S=T[1]=N?"":r[G][f?"bits":"bytes"][p];else{H=C/(2===c?Math.pow(2,10*p):Math.pow(1e3,p)),f&&(H*=8)>=Z&&p<8&&(H/=Z,p++);var ut=Math.pow(10,p>0?A:0);T[0]=Tt(H*ut)/ut,T[0]===Z&&p<8&&void 0===b.exponent&&(T[0]=1,p++),S=T[1]=10===c&&1===p?f?"kb":"kB":r[G][f?"bits":"bytes"][p],N&&(T[1]="jedec"===G?T[1].charAt(0):p>0?T[1].replace(/B$/,""):T[1],v.test(T[1])&&(T[0]=Math.floor(T[0]),T[1]=""))}if(u&&(T[0]=-T[0]),j>0&&(T[0]=T[0].toPrecision(j)),T[1]=nt[T[1]]||T[1],!0===P?T[0]=T[0].toLocaleString():P.length>0?T[0]=T[0].toLocaleString(P,k):J.length>0&&(T[0]=T[0].toString().replace(".",J)),I&&!1===Number.isInteger(T[0])&&A>0){var pt=J||".",gt=T[0].toString().split(pt),dt=gt[1]||"",mt=dt.length,xt=A-mt;T[0]="".concat(gt[0]).concat(pt).concat(dt.padEnd(mt+xt,"0"))}return g&&(T[1]=h[p]?h[p]:_[G][p]+(f?"bit":"byte")+(1===T[0]?"":"s")),"array"===O?T:"object"===O?{value:T[0],symbol:T[1],exponent:p,unit:S}:T.join(et)}return y.partial=function(t){return function(p){return y(p,t)}},y}()},1715:(D,v,r)=>{"use strict";r.d(v,{F:()=>t});var _=r(6498),m=r(353),y=r(4241);function t(c=0,f=m.P){return(!(0,y.k)(c)||c<0)&&(c=0),(!f||"function"!=typeof f.schedule)&&(f=m.P),new _.y(Z=>(Z.add(f.schedule(p,c,{subscriber:Z,counter:0,period:c})),Z))}function p(c){const{subscriber:f,counter:Z,period:g}=c;f.next(Z),this.schedule({subscriber:f,counter:Z+1,period:g},g)}},1746:(D,v,r)=>{"use strict";r.d(v,{$R:()=>c});var _=r(3009),m=r(6688),y=r(3489),t=r(5430),p=r(1177);function c(...k){const u=k[k.length-1];return"function"==typeof u&&k.pop(),(0,_.n)(k,void 0).lift(new f(u))}class f{constructor(u){this.resultSelector=u}call(u,C){return C.subscribe(new Z(u,this.resultSelector))}}class Z extends y.L{constructor(u,C,O=Object.create(null)){super(u),this.resultSelector=C,this.iterators=[],this.active=0,this.resultSelector="function"==typeof C?C:void 0}_next(u){const C=this.iterators;(0,m.k)(u)?C.push(new h(u)):C.push("function"==typeof u[t.hZ]?new g(u[t.hZ]()):new P(this.destination,this,u))}_complete(){const u=this.iterators,C=u.length;if(this.unsubscribe(),0!==C){this.active=C;for(let O=0;Othis.index}hasCompleted(){return this.array.length===this.index}}class P extends p.Ds{constructor(u,C,O){super(u),this.parent=C,this.observable=O,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[t.hZ](){return this}next(){const u=this.buffer;return 0===u.length&&this.isComplete?{value:null,done:!0}:{value:u.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(u){this.buffer.push(u),this.parent.checkIterators()}subscribe(){return(0,p.ft)(this.observable,new p.IY(this))}}}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/202.ad802ed297fef2df.js b/src/blrec/data/webapp/202.ad802ed297fef2df.js new file mode 100644 index 0000000..178da8a --- /dev/null +++ b/src/blrec/data/webapp/202.ad802ed297fef2df.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[202],{2202:(Gr,Tt,l)=>{l.r(Tt),l.d(Tt,{SettingsModule:()=>Hr});var d=l(9808),a=l(4182),mt=l(7525),pe=l(1945),de=l(7484),c=l(4546),S=l(1047),N=l(6462),bt=l(6114),q=l(3868),t=l(5e3),pt=l(404),he=l(925),K=l(226);let Ce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[K.vT,d.ez,he.ud,pt.cg]]}),n})();var W=l(5197),x=l(7957),st=l(6042),R=l(647),Pt=l(6699),H=l(969),F=l(655),y=l(1721),et=l(8929),ze=l(8514),lt=l(1086),ve=l(6787),xe=l(591),Oe=l(2986),St=l(7545),nt=l(7625),wt=l(685),m=l(1894);const B=["*"];function De(n,o){1&n&&t.Hsn(0)}const Ne=["nz-list-item-actions",""];function Ee(n,o){}function Be(n,o){1&n&&t._UZ(0,"em",3)}function qe(n,o){if(1&n&&(t.TgZ(0,"li"),t.YNc(1,Ee,0,0,"ng-template",1),t.YNc(2,Be,1,0,"em",2),t.qZA()),2&n){const e=o.$implicit,i=o.last;t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngIf",!i)}}function Qe(n,o){}const Ft=function(n,o){return{$implicit:n,index:o}};function Ie(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Qe,0,0,"ng-template",9),t.BQk()),2&n){const e=o.$implicit,i=o.index,r=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,Ft,e,i))}}function Ve(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Ie,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function Je(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.nzHeader)}}function Le(n,o){if(1&n&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Je,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzHeader)}}function Ue(n,o){1&n&&t._UZ(0,"div"),2&n&&t.Udp("min-height",53,"px")}function Ye(n,o){}function We(n,o){if(1&n&&(t.TgZ(0,"div",13),t.YNc(1,Ye,0,0,"ng-template",9),t.qZA()),2&n){const e=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,Ft,e,i))}}function Re(n,o){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,We,2,12,"div",12),t.qZA()),2&n){const e=t.oxw();t.Q6J("nzGutter",e.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function He(n,o){if(1&n&&t._UZ(0,"nz-list-empty",14),2&n){const e=t.oxw();t.Q6J("nzNoResult",e.nzNoResult)}}function $e(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.nzFooter)}}function Ge(n,o){if(1&n&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,$e,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzFooter)}}function je(n,o){}function Xe(n,o){}function Ke(n,o){if(1&n&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,Xe,0,0,"ng-template",6),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzPagination)}}const tn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],en=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function nn(n,o){if(1&n&&t._UZ(0,"ul",6),2&n){const e=t.oxw(2);t.Q6J("nzActions",e.nzActions)}}function on(n,o){if(1&n&&(t.YNc(0,nn,1,1,"ul",5),t.Hsn(1)),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzActions&&e.nzActions.length>0)}}function rn(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.nzContent)}}function an(n,o){if(1&n&&(t.ynx(0),t.YNc(1,rn,2,1,"ng-container",8),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzContent)}}function sn(n,o){if(1&n&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,an,2,1,"ng-container",7)),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.nzContent)}}function ln(n,o){1&n&&t.Hsn(0,3)}function cn(n,o){}function gn(n,o){}function un(n,o){}function mn(n,o){}function pn(n,o){if(1&n&&(t.YNc(0,cn,0,0,"ng-template",9),t.YNc(1,gn,0,0,"ng-template",9),t.YNc(2,un,0,0,"ng-template",9),t.YNc(3,mn,0,0,"ng-template",9)),2&n){const e=t.oxw(),i=t.MAs(3),r=t.MAs(5),s=t.MAs(1);t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",r),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function dn(n,o){}function hn(n,o){}function fn(n,o){}function _n(n,o){if(1&n&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,fn,0,0,"ng-template",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra)}}function Cn(n,o){}function zn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,dn,0,0,"ng-template",9),t.YNc(3,hn,0,0,"ng-template",9),t.qZA(),t.YNc(4,_n,2,1,"nz-list-item-extra",7),t.YNc(5,Cn,0,0,"ng-template",9),t.BQk()),2&n){const e=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",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}const vn=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],xn=["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 ft=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),Zt=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item-action"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,5),2&e){let r;t.iGM(r=t.CRH())&&(i.templateRef=r.first)}},exportAs:["nzListItemAction"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,De,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),At=(()=>{class n{constructor(e,i){this.ngZone=e,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new et.xQ,this.inputActionChanges$=new et.xQ,this.contentChildrenChanges$=(0,ze.P)(()=>this.nzListItemActions?(0,lt.of)(null):this.ngZone.onStable.asObservable().pipe((0,Oe.q)(1),(0,St.w)(()=>this.contentChildrenChanges$))),(0,ve.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 n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(e,i,r){if(1&e&&t.Suo(r,Zt,4),2&e){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:Ne,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(e,i){1&e&&t.YNc(0,qe,3,2,"li",0),2&e&&t.Q6J("ngForOf",i.actions)},directives:[d.sg,d.tP,d.O5],encapsulation:2,changeDetection:0}),n})(),_t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&t._UZ(0,"nz-embed-empty",0),2&e&&t.Q6J("nzComponentName","list")("specificContent",i.nzNoResult)},directives:[wt.gB],encapsulation:2,changeDetection:0}),n})(),Ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),vt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),n})(),xt=(()=>{class n{constructor(e){this.directionality=e,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 xe.X(this.nzItemLayout),this.destroy$=new et.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.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(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(K.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(e,i,r){if(1&e&&(t.Suo(r,zt,5),t.Suo(r,vt,5),t.Suo(r,kt,5)),2&e){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(e,i){2&e&&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:en,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(e,i){if(1&e&&(t.F$t(tn),t.YNc(0,Ve,3,1,"ng-template",null,0,t.W1O),t.YNc(2,Le,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,Ue,1,2,"div",3),t.YNc(7,Re,2,2,"div",4),t.YNc(8,He,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,Ge,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,je,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,Ke,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&e){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:[Ct,mt.W,_t,zt,vt,d.sg,d.tP,d.O5,H.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,y.yF)()],n.prototype,"nzBordered",void 0),(0,F.gn)([(0,y.yF)()],n.prototype,"nzLoading",void 0),(0,F.gn)([(0,y.yF)()],n.prototype,"nzSplit",void 0),n})(),Dt=(()=>{class n{constructor(e,i,r,s){this.parentComp=r,this.cdr=s,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,i.addClass(e.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(e=>{this.itemLayout=e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(xt),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(e,i,r){if(1&e&&t.Suo(r,ft,5),2&e){let s;t.iGM(s=t.CRH())&&(i.listItemExtraDirective=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("ant-list-item-no-flex",i.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:xn,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(e,i){if(1&e&&(t.F$t(vn),t.YNc(0,on,2,1,"ng-template",null,0,t.W1O),t.YNc(2,sn,3,1,"ng-template",null,1,t.W1O),t.YNc(4,ln,1,0,"ng-template",null,2,t.W1O),t.YNc(6,pn,4,4,"ng-template",null,3,t.W1O),t.YNc(8,zn,6,4,"ng-container",4)),2&e){const r=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",r)}},directives:[At,ft,d.O5,H.f,d.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,y.yF)()],n.prototype,"nzNoFlex",void 0),n})(),Tn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[K.vT,d.ez,mt.j,m.Jb,Pt.Rt,H.T,wt.Xo]]}),n})();var ct=l(3677),bn=l(5737),Q=l(592),Pn=l(8076),$=l(9439),Nt=l(4832);const Et=["*"];function Sn(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzType",e||"right")("nzRotate",i.nzActive?90:0)}}function wn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Sn,2,2,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExpandedIcon)}}function Fn(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.nzHeader)}}function yn(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.nzExtra)}}function Zn(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,yn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}const Bt="collapse";let qt=(()=>{class n{constructor(e,i,r){this.nzConfigService=e,this.cdr=i,this.directionality=r,this._nzModuleName=Bt,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new et.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,nt.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,nt.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(e){this.listOfNzCollapsePanelComponent.push(e)}removePanel(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)}click(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==e).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36($.jY),t.Y36(t.sBO),t.Y36(K.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(e,i){2&e&&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:Et,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzAccordion",void 0),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzBordered",void 0),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzGhost",void 0),n})();const Qt="collapsePanel";let An=(()=>{class n{constructor(e,i,r,s){this.nzConfigService=e,this.cdr=i,this.nzCollapseComponent=r,this.noAnimation=s,this._nzModuleName=Qt,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new et.xQ,this.nzConfigService.getConfigChangeEventForComponent(Qt).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 n.\u0275fac=function(e){return new(e||n)(t.Y36($.jY),t.Y36(t.sBO),t.Y36(qt,1),t.Y36(Nt.P,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(e,i){2&e&&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:Et,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(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,wn,2,1,"div",1),t.YNc(2,Fn,2,1,"ng-container",2),t.YNc(3,Zn,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&e&&(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,H.f,R.Ls],encapsulation:2,data:{animation:[Pn.J_]},changeDetection:0}),(0,F.gn)([(0,y.yF)()],n.prototype,"nzActive",void 0),(0,F.gn)([(0,y.yF)()],n.prototype,"nzDisabled",void 0),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzShowArrow",void 0),n})(),kn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[K.vT,d.ez,R.PV,H.T,Nt.g]]}),n})();var Dn=l(4466),Z=l(7221),A=l(7106),E=l(2306),I=l(5278),k=l(5136);let It=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["output","logging","header","danmaku","recorder","postprocessing","space"]).pipe((0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var w=l(4850);let Vt=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["emailNotification"]).pipe((0,w.U)(r=>r.emailNotification),(0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Jt=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["serverchanNotification"]).pipe((0,w.U)(r=>r.serverchanNotification),(0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Lt=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["pushdeerNotification"]).pipe((0,w.U)(r=>r.pushdeerNotification),(0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ut=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["pushplusNotification"]).pipe((0,w.U)(r=>r.pushplusNotification),(0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Yt=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["telegramNotification"]).pipe((0,w.U)(r=>r.telegramNotification),(0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Wt=(()=>{class n{constructor(e,i,r){this.logger=e,this.notification=i,this.settingService=r}resolve(e,i){return this.settingService.getSettings(["webhooks"]).pipe((0,w.U)(r=>r.webhooks),(0,A.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 n.\u0275fac=function(e){return new(e||n)(t.LFG(E.Kf),t.LFG(I.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var f=l(2302),gt=l(2198),Rt=l(2014),Nn=l(7770),En=l(353),Ht=l(4704),v=l(2340);const z="RouterScrollService",$t="defaultViewport",Gt="customViewport";let Bn=(()=>{class n{constructor(e,i,r,s){this.router=e,this.activatedRoute=i,this.viewportScroller=r,this.logger=s,this.addQueue=[],this.addBeforeNavigationQueue=[],this.removeQueue=[],this.routeStrategies=[],this.scrollDefaultViewport=!0,this.customViewportToScroll=null,v.N.traceRouterScrolling&&this.logger.trace(`${z}:: constructor`),v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Subscribing to router events`);const g=this.router.events.pipe((0,gt.h)(u=>u instanceof f.OD||u instanceof f.m2),(0,Rt.R)((u,p)=>{var b,P;v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Updating the known scroll positions`);const U=Object.assign({},u.positions);return p instanceof f.OD&&this.scrollDefaultViewport&&(v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Storing the scroll position of the default viewport`),U[`${p.id}-${$t}`]=this.viewportScroller.getScrollPosition()),p instanceof f.OD&&this.customViewportToScroll&&(v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Storing the scroll position of the custom viewport`),U[`${p.id}-${Gt}`]=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===(b=this.activatedRoute.firstChild)||void 0===b?void 0:b.routeConfig)||void 0===P?void 0:P.data}}),(0,gt.h)(u=>!!u.trigger),(0,Nn.QV)(En.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(Y=>u.event.url.indexOf(Y.partialRoute)>-1),b=p&&p.behaviour===Ht.g.KEEP_POSITION||!1,P=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Ht.g.KEEP_POSITION||!1,U=b||P;if(u.event instanceof f.m2){this.processRemoveQueue(this.removeQueue);const Y=u.trigger&&"imperative"===u.trigger||!1,me=!U||Y;v.N.traceRouterScrolling&&(this.logger.trace(`${z}:: Existing strategy with keep position behavior? `,b),this.logger.trace(`${z}:: Route data with keep position behavior? `,P),this.logger.trace(`${z}:: Imperative trigger? `,Y),this.logger.debug(`${z}:: Should scroll? `,me)),me?(this.scrollDefaultViewport&&(v.N.traceRouterScrolling&&this.logger.debug(`${z}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(v.N.traceRouterScrolling&&this.logger.debug(`${z}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(v.N.traceRouterScrolling&&this.logger.debug(`${z}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${$t}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Gt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map($r=>$r.partialRoute),!0),this.processAddQueue(this.addQueue),this.addQueue=[],this.removeQueue=[],this.addBeforeNavigationQueue=[]}else this.processAddQueue(this.addBeforeNavigationQueue)})}addStrategyOnceBeforeNavigationForPartialRoute(e,i){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Adding a strategy once for before navigation towards [${e}]: `,i),this.addBeforeNavigationQueue.push({partialRoute:e,behaviour:i,onceBeforeNavigation:!0})}addStrategyForPartialRoute(e,i){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Adding a strategy for partial route: [${e}]`,i),this.addQueue.push({partialRoute:e,behaviour:i})}removeStrategyForPartialRoute(e){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Removing strategory for: [${e}]: `),this.removeQueue.push(e)}setCustomViewportToScroll(e){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Setting a custom viewport to scroll: `,e),this.customViewportToScroll=e}disableScrollDefaultViewport(){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Enabling scrolling the default viewport`),this.scrollDefaultViewport=!0}processAddQueue(e){for(const i of e)-1===this.routeStrategyPosition(i.partialRoute)&&this.routeStrategies.push(i)}processRemoveQueue(e,i=!1){for(const r of e){const s=this.routeStrategyPosition(r);!i&&s>-1&&this.routeStrategies[s].onceBeforeNavigation||s>-1&&this.routeStrategies.splice(s,1)}}routeStrategyPosition(e){return this.routeStrategies.map(i=>i.partialRoute).indexOf(e)}ngOnDestroy(){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(f.F0),t.LFG(f.gz),t.LFG(d.EM),t.LFG(E.Kf))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var V=l(4670),D=l(3523),qn=l(3496),Qn=l(1149),In=l(7242);const O=function Vn(n,o){var e={};return o=(0,In.Z)(o,3),(0,Qn.Z)(n,function(i,r,s){(0,qn.Z)(e,r,o(i,r,s))}),e};var ut=l(2994),Jn=l(4884),Ln=l(4116),jt=l(4825),Ot=l(4177),Un=l(8706),Yn=l(5202),Wn=l(1986),Rn=l(7583),jn=Object.prototype.hasOwnProperty;var Xt=l(1854),ti=l(2134),Mt=l(9727);function M(n){const o="result"in n;return O(n.diff,()=>o)}let T=(()=>{class n{constructor(e,i){this.message=e,this.settingService=i}syncSettings(e,i,r){return r.pipe((0,Rt.R)(([,s],g)=>[s,g,(0,ti.e5)(g,s)],[i,i,{}]),(0,gt.h)(([,,s])=>!function Xn(n){if(null==n)return!0;if((0,Un.Z)(n)&&((0,Ot.Z)(n)||"string"==typeof n||"function"==typeof n.splice||(0,Yn.Z)(n)||(0,Rn.Z)(n)||(0,jt.Z)(n)))return!n.length;var o=(0,Ln.Z)(n);if("[object Map]"==o||"[object Set]"==o)return!n.size;if((0,Wn.Z)(n))return!(0,Jn.Z)(n).length;for(var e in n)if(jn.call(n,e))return!1;return!0}(s)),(0,St.w)(([s,g,u])=>this.settingService.changeSettings({[e]:u}).pipe((0,A.X)(3,300),(0,ut.b)(p=>{console.assert((0,Xt.Z)(p[e],g),"result settings should equal current settings",{curr:g,result:p[e]})},p=>{this.message.error(`\u8bbe\u7f6e\u51fa\u9519: ${p.message}`)}),(0,w.U)(p=>({prev:s,curr:g,diff:u,result:p[e]})),(0,Z.K)(p=>(0,lt.of)({prev:s,curr:g,diff:u,error:p})))),(0,ut.b)(s=>console.debug(`${e} settings sync detail:`,s)))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Mt.dD),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=l(8737),J=(()=>{return(n=J||(J={}))[n.EACCES=13]="EACCES",n[n.ENOTDIR=20]="ENOTDIR",J;var n})(),ei=l(520);const ni=v.N.apiUrl;let Kt=(()=>{class n{constructor(e){this.http=e}validateDir(e){return this.http.post(ni+"/api/v1/validation/dir",{path:e})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ei.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ii(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function oi(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function ri(n,o){1&n&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function ai(n,o){1&n&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function si(n,o){if(1&n&&(t.YNc(0,ii,2,0,"ng-container",6),t.YNc(1,oi,2,0,"ng-container",6),t.YNc(2,ri,2,0,"ng-container",6),t.YNc(3,ai,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",e.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",e.hasError("failedToValidate"))}}function li(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,si,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}let ci=(()=>{class n{constructor(e,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,w.U)(g=>{switch(g.code){case J.ENOTDIR:return{error:!0,notADirectory:!0};case J.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,Z.K)(()=>(0,lt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Kt))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,li,7,2,"ng-container",1),t.qZA()),2&e&&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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var te=l(2643),it=l(2683);function gi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function ui(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function mi(n,o){if(1&n&&(t.YNc(0,gi,2,0,"ng-container",12),t.YNc(1,ui,2,0,"ng-container",12)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function pi(n,o){if(1&n&&(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&n){const e=o.$implicit;t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.desc)}}function di(n,o){if(1&n&&(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,mi,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,pi,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&n){const e=t.MAs(6),i=t.MAs(10),r=t.oxw();t.xp6(1),t.Q6J("formGroup",r.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),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 hi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.pathTemplateDefault),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let fi=(()=>{class n{constructor(e,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=e.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,di,22,8,"ng-container",1),t.YNc(2,hi,6,2,"ng-template",null,2,t.W1O),t.qZA()),2&e&&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,qt,An,Q.N8,Q.Om,Q.$Z,Q.Uo,Q._C,Q.p0,d.sg,st.ix,te.dQ,it.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),n})(),_i=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.splitFileTip=h.Uk,this.syncFailedWarningTip=h.yT,this.filesizeLimitOptions=(0,D.Z)(h.Pu),this.durationLimitOptions=(0,D.Z)(h.Fg),this.settingsForm=e.group({outDir:[""],pathTemplate:[""],filesizeLimit:[""],durationLimit:[""]})}get outDirControl(){return this.settingsForm.get("outDir")}get pathTemplateControl(){return this.settingsForm.get("pathTemplate")}get filesizeLimitControl(){return this.settingsForm.get("filesizeLimit")}get durationLimitControl(){return this.settingsForm.get("durationLimit")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e){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&e&&(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,ci,fi,W.Vq,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),L=(()=>{class n{constructor(){}get actionable(){var e;return(null===(e=this.directive)||void 0===e?void 0:e.valueAccessor)instanceof N.i}onClick(e){var i;e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),(null===(i=this.directive)||void 0===i?void 0:i.valueAccessor)instanceof N.i&&this.directive.control.setValue(!this.directive.control.value))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","appSwitchActionable",""]],contentQueries:function(e,i,r){if(1&e&&t.Suo(r,a.u,5),2&e){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("click",function(s){return i.onClick(s)}),2&e&&t.ekj("actionable",i.actionable)}}),n})();function Ci(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 zi(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 vi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",2),t._uU(2,"fmp4 \u6d41\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.YNc(3,zi,8,0,"ng-template",null,19,t.W1O),t.TgZ(5,"nz-form-control",4),t._UZ(6,"nz-select",20),t.qZA(),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.fmp4StreamTimeout?i.fmp4StreamTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.fmp4StreamTimeoutOptions)}}function xi(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u6807\u51c6\u6a21\u5f0f: \u5bf9\u4e0b\u8f7d\u7684\u6d41\u6570\u636e\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(2,"br"),t._uU(3," \u539f\u59cb\u6a21\u5f0f: \u76f4\u63a5\u4e0b\u8f7d\u6d41\u6570\u636e\uff0c\u6ca1\u6709\u8fdb\u884c\u89e3\u6790\u5904\u7406\uff0c\u4e0d\u652f\u6301\u81ea\u52a8\u5206\u5272\u6587\u4ef6\u7b49\u529f\u80fd\u3002 "),t._UZ(4,"br"),t.qZA())}function Oi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",2),t._uU(2,"\u5f55\u5236\u6a21\u5f0f"),t.qZA(),t.YNc(3,xi,5,0,"ng-template",null,21,t.W1O),t.TgZ(5,"nz-form-control",4),t._UZ(6,"nz-select",22),t.qZA(),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw();t.xp6(1),t.Q6J("nzTooltipTitle",e),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordingMode?i.recordingModeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.recordingModeOptions)}}function Mi(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 Ti(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",23),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 bi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",24),t._uU(2,"\u6570\u636e\u8bfb\u53d6\u8d85\u65f6"),t.qZA(),t.TgZ(3,"nz-form-control",4),t._UZ(4,"nz-select",25),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("nzWarningTip",e.syncStatus.readTimeout?"\u65e0\u7f1d\u62fc\u63a5\u4f1a\u5931\u6548\uff01":e.syncFailedWarningTip)("nzValidateStatus",e.syncStatus.readTimeout&&e.readTimeoutControl.value<=3?e.readTimeoutControl:"warning"),t.xp6(1),t.Q6J("nzOptions",e.readTimeoutOptions)}}function Pi(n,o){if(1&n&&(t.TgZ(0,"nz-form-item",1),t.TgZ(1,"nz-form-label",26),t._uU(2,"\u786c\u76d8\u5199\u5165\u7f13\u51b2"),t.qZA(),t.TgZ(3,"nz-form-control",4),t._UZ(4,"nz-select",27),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(3),t.Q6J("nzWarningTip",e.syncFailedWarningTip)("nzValidateStatus",e.syncStatus.bufferSize?e.bufferSizeControl:"warning"),t.xp6(1),t.Q6J("nzOptions",e.bufferOptions)}}let Si=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.streamFormatOptions=(0,D.Z)(h.tp),this.recordingModeOptions=(0,D.Z)(h.kV),this.fmp4StreamTimeoutOptions=(0,D.Z)(h.D4),this.qualityOptions=(0,D.Z)(h.O6),this.readTimeoutOptions=(0,D.Z)(h.D4),this.disconnectionTimeoutOptions=(0,D.Z)(h.$w),this.bufferOptions=(0,D.Z)(h.Rc),this.coverSaveStrategies=(0,D.Z)(h.J_),this.settingsForm=e.group({streamFormat:[""],recordingMode:[""],qualityNumber:[""],fmp4StreamTimeout:[""],readTimeout:[""],disconnectionTimeout:[""],bufferSize:[""],saveCover:[""],coverSaveStrategy:[""]})}get streamFormatControl(){return this.settingsForm.get("streamFormat")}get recordingModeControl(){return this.settingsForm.get("recordingMode")}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=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("recorder",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-recorder-settings"]],inputs:{settings:"settings"},features:[t.TTD],decls:35,vars:22,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"],["class","setting-item",4,"ngIf"],["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","\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"],["fmp4StreamTimeoutTip",""],["formControlName","fmp4StreamTimeout",3,"nzOptions"],["recordingModeTip",""],["formControlName","recordingMode",3,"nzOptions"],["nz-radio-button","",3,"nzValue"],["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","\u786c\u76d8\u5199\u5165\u7f13\u51b2\u8bbe\u7f6e\u5f97\u6bd4\u8f83\u5927\u53ef\u4ee5\u51cf\u5c11\u5bf9\u786c\u76d8\u7684\u5199\u5165\uff0c\u4f46\u9700\u8981\u5360\u7528\u66f4\u591a\u7684\u5185\u5b58\u3002",1,"setting-label"],["formControlName","bufferSize",3,"nzOptions"]],template:function(e,i){if(1&e&&(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,Ci,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.YNc(8,vi,7,4,"nz-form-item",6),t.YNc(9,Oi,7,4,"nz-form-item",6),t.TgZ(10,"nz-form-item",1),t.TgZ(11,"nz-form-label",7),t._uU(12,"\u753b\u8d28"),t.qZA(),t.TgZ(13,"nz-form-control",4),t._UZ(14,"nz-select",8),t.qZA(),t.qZA(),t.TgZ(15,"nz-form-item",9),t.TgZ(16,"nz-form-label",10),t._uU(17,"\u4fdd\u5b58\u5c01\u9762"),t.qZA(),t.TgZ(18,"nz-form-control",11),t._UZ(19,"nz-switch",12),t.qZA(),t.qZA(),t.TgZ(20,"nz-form-item",1),t.TgZ(21,"nz-form-label",2),t._uU(22,"\u5c01\u9762\u4fdd\u5b58\u7b56\u7565"),t.qZA(),t.YNc(23,Mi,8,0,"ng-template",null,13,t.W1O),t.TgZ(25,"nz-form-control",14),t.TgZ(26,"nz-radio-group",15),t.YNc(27,Ti,3,2,"ng-container",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(28,bi,5,3,"nz-form-item",6),t.TgZ(29,"nz-form-item",1),t.TgZ(30,"nz-form-label",17),t._uU(31,"\u65ad\u7f51\u7b49\u5f85\u65f6\u95f4"),t.qZA(),t.TgZ(32,"nz-form-control",4),t._UZ(33,"nz-select",18),t.qZA(),t.qZA(),t.YNc(34,Pi,5,3,"nz-form-item",6),t.qZA()),2&e){const r=t.MAs(5),s=t.MAs(24);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(1),t.Q6J("ngIf","fmp4"===i.streamFormatControl.value),t.xp6(1),t.Q6J("ngIf","fmp4"===i.streamFormatControl.value),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",s),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(1),t.Q6J("ngIf","flv"===i.streamFormatControl.value),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(1),t.Q6J("ngIf","flv"===i.streamFormatControl.value||"fmp4"===i.streamFormatControl.value&&"standard"===i.recordingModeControl.value)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,W.Vq,a.JJ,a.u,d.O5,L,N.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),wi=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({danmuUname:[""],recordGiftSend:[""],recordFreeGifts:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordFreeGiftsControl(){return this.settingsForm.get("recordFreeGifts")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("danmaku",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGiftSend?i.recordGiftSendControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordFreeGifts?i.recordFreeGiftsControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordGuardBuy?i.recordGuardBuyControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recordSuperChat?i.recordSuperChatControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.danmuUname?i.danmuUnameControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.saveRawDanmaku?i.saveRawDanmakuControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,N.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Fi(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 yi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",13),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)}}let Zi=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.deleteStrategies=h.rc,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({injectExtraMetadata:[""],remuxToMp4:[""],deleteSource:[""]})}get injectExtraMetadataControl(){return this.settingsForm.get("injectExtraMetadata")}get remuxToMp4Control(){return this.settingsForm.get("remuxToMp4")}get deleteSourceControl(){return this.settingsForm.get("deleteSource")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("postprocessing",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,"\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,Fi,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,yi,3,2,"ng-container",12),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const r=t.MAs(15);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.injectExtraMetadata?i.injectExtraMetadataControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",i.remuxToMp4Control.value),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.remuxToMp4?i.remuxToMp4Control:"warning"),t.xp6(3),t.Q6J("nzTooltipTitle",r),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.deleteSource?i.deleteSourceControl:"warning"),t.xp6(1),t.Q6J("nzDisabled",!i.remuxToMp4Control.value),t.xp6(1),t.Q6J("ngForOf",i.deleteStrategies)}},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,N.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Ai=(()=>{class n{constructor(e,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=e.group({recycleRecords:[""],checkInterval:[""],spaceThreshold:[""]})}get recycleRecordsControl(){return this.settingsForm.get("recycleRecords")}get checkIntervalControl(){return this.settingsForm.get("checkInterval")}get spaceThresholdControl(){return this.settingsForm.get("spaceThreshold")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("space",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.checkInterval?i.checkIntervalControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.intervalOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.spaceThreshold?i.spaceThresholdControl:"warning"),t.xp6(1),t.Q6J("nzOptions",i.thresholdOptions),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.recycleRecords?i.recycleRecordsControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,W.Vq,a.JJ,a.u,L,N.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function ki(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Di(n,o){1&n&&t.YNc(0,ki,2,0,"ng-container",6),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Ni(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,"textarea",4),t.YNc(5,Di,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=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",e),t.xp6(1),t.Q6J("rows",3)}}let Ei=(()=>{class n{constructor(e,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=e.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,Ni,7,5,"ng-container",1),t.qZA()),2&e&&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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Bi(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,"textarea",4),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",e.warningTip)("nzValidateStatus",e.control.valid&&e.control.value.trim()!==e.value?"warning":e.control),t.xp6(1),t.Q6J("rows",5)}}let qi=(()=>{class n{constructor(e,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=e.group({cookie:[""]})}get control(){return this.settingsForm.get("cookie")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,Bi,5,4,"ng-container",1),t.qZA()),2&e&&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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Qi=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({userAgent:["",[a.kI.required]],cookie:[""]})}get userAgentControl(){return this.settingsForm.get("userAgent")}get cookieControl(){return this.settingsForm.get("cookie")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("header",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e){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&e&&(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,Ei,qi],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var ee=l(7355);function Ii(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function Vi(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function Ji(n,o){1&n&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function Li(n,o){1&n&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function Ui(n,o){if(1&n&&(t.YNc(0,Ii,2,0,"ng-container",6),t.YNc(1,Vi,2,0,"ng-container",6),t.YNc(2,Ji,2,0,"ng-container",6),t.YNc(3,Li,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",e.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",e.hasError("failedToValidate"))}}function Yi(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,Ui,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}let Wi=(()=>{class n{constructor(e,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,w.U)(g=>{switch(g.code){case J.ENOTDIR:return{error:!0,notADirectory:!0};case J.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,Z.K)(()=>(0,lt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(Kt))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,Yi,7,2,"ng-container",1),t.qZA()),2&e&&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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Ri=(()=>{class n{constructor(e,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,ee.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,ee.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=e.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=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e){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&e&&(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,Wi,L,W.Vq,a.JJ,a.u],styles:[".settings-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.setting-item[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:1em 2em;border-top:1px solid rgba(0,0,0,.06)}.setting-item[_ngcontent-%COMP%]:first-child{border-top:none}.settings-page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.form-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:1.2em;border-bottom:1px solid rgba(0,0,0,.1)}.setting-item[_ngcontent-%COMP%]{gap:.5em}.setting-item.actionable[_ngcontent-%COMP%]{cursor:pointer}.setting-item.actionable[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]{outline:none;text-decoration:none;color:inherit;cursor:pointer;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Hi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,it.w,R.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),$i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,it.w,R.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();const Gi=["innerContent"];let ji=(()=>{class n{constructor(e,i,r,s){this.changeDetector=e,this.route=i,this.logger=r,this.routerScrollService=s}ngOnInit(){this.route.data.subscribe(e=>{this.settings=e.settings,this.changeDetector.markForCheck()})}ngAfterViewInit(){this.innerContent?this.routerScrollService.setCustomViewportToScroll(this.innerContent.nativeElement):this.logger.error("The content element could not be found!")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz),t.Y36(E.Kf),t.Y36(Bn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-settings"]],viewQuery:function(e,i){if(1&e&&t.Gf(Gi,5),2&e){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(e,i){1&e&&(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&e&&(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:[V.g,_i,Si,wi,Zi,Ai,Qi,Ri,Hi,$i],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}"]}),n})();var Xi=l(7298),Ki=l(1481),ne=l(3449),to=l(6667),ie=l(1999),eo=l(2168);const io=function no(n,o,e,i){if(!(0,ie.Z)(n))return n;for(var r=-1,s=(o=(0,ne.Z)(o,n)).length,g=s-1,u=n;null!=u&&++r0&&e(u)?o>1?ae(u,o-1,e,i,r):(0,co.Z)(r,u):i||(r[r.length]=u)}return r},ho=function po(n){return null!=n&&n.length?mo(n,1):[]},_o=function fo(n,o,e){switch(e.length){case 0:return n.call(o);case 1:return n.call(o,e[0]);case 2:return n.call(o,e[0],e[1]);case 3:return n.call(o,e[0],e[1],e[2])}return n.apply(o,e)};var se=Math.max;const xo=function vo(n){return function(){return n}};var le=l(2370),Oo=l(9940),So=Date.now;const yo=function wo(n){var o=0,e=0;return function(){var i=So(),r=16-(i-e);if(e=i,r>0){if(++o>=800)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}(le.Z?function(n,o){return(0,le.Z)(n,"toString",{configurable:!0,enumerable:!1,value:xo(o),writable:!0})}:Oo.Z),_=function Zo(n){return yo(function Co(n,o,e){return o=se(void 0===o?n.length-1:o,0),function(){for(var i=arguments,r=-1,s=se(i.length-o,0),g=Array(s);++r{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({enabled:[""]})}get enabledControl(){return this.settingsForm.get("enabled")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.enabled?i.enabledControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,N.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var ce=l(6422),ge=l(4843),ko=l(13),Do=l(5778),No=l(7079),Eo=l(214);function rt(n){return(0,ge.z)((0,gt.h)(()=>n.valid),(0,ko.b)(300),function Io(){return(0,ge.z)((0,w.U)(n=>(0,ce.Z)(n,(o,e,i)=>{o[i]=function qo(n){return"string"==typeof n||!(0,Ot.Z)(n)&&(0,Eo.Z)(n)&&"[object String]"==(0,No.Z)(n)}(e)?e.trim():e},{})))}(),(0,Do.x)(Xt.Z))}function Vo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Jo(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Lo(n,o){if(1&n&&(t.YNc(0,Vo,2,0,"ng-container",17),t.YNc(1,Jo,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}function Uo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Yo(n,o){1&n&&t.YNc(0,Uo,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Wo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function Ro(n,o){1&n&&t.YNc(0,Wo,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Ho(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function $o(n,o){1&n&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Go(n,o){if(1&n&&(t.YNc(0,Ho,2,0,"ng-container",17),t.YNc(1,$o,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function jo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Xo(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Ko(n,o){if(1&n&&(t.YNc(0,jo,2,0,"ng-container",17),t.YNc(1,Xo,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}let tr=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({srcAddr:["",[a.kI.required,a.kI.email]],dstAddr:["",[a.kI.required,a.kI.email]],authCode:["",[a.kI.required]],smtpHost:["",[a.kI.required]],smtpPort:["",[a.kI.required,a.kI.pattern(/\d+/)]]})}get srcAddrControl(){return this.settingsForm.get("srcAddr")}get dstAddrControl(){return this.settingsForm.get("dstAddr")}get authCodeControl(){return this.settingsForm.get("authCode")}get smtpHostControl(){return this.settingsForm.get("smtpHost")}get smtpPortControl(){return this.settingsForm.get("smtpPort")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(rt(this.settingsForm),(0,w.U)(e=>(0,ce.Z)(e,(i,r,s)=>{r="smtpPort"===s?parseInt(r):r,Reflect.set(i,s,r)},{})))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,Lo,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,Yo,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,Ro,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,Go,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,Ko,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),at=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({notifyBegan:[""],notifyEnded:[""],notifyError:[""],notifySpace:[""]})}get notifyBeganControl(){return this.settingsForm.get("notifyBegan")}get notifyEndedControl(){return this.settingsForm.get("notifyEnded")}get notifyErrorControl(){return this.settingsForm.get("notifyError")}get notifySpaceControl(){return this.settingsForm.get("notifySpace")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settingsForm.value,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyBegan?i.notifyBeganControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyEnded?i.notifyEndedControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifyError?i.notifyErrorControl:"warning"),t.xp6(5),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.notifySpace?i.notifySpaceControl:"warning"))},directives:[a._Y,a.JL,c.Lr,a.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,N.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),X=(()=>{class n{constructor(e,i,r){this.changeDetector=e,this.message=i,this.settingService=r}ngOnInit(){switch(this.keyOfSettings){case"emailNotification":this.messageTypes=["text","html"];break;case"serverchanNotification":this.messageTypes=["markdown"];break;case"pushdeerNotification":this.messageTypes=["markdown","text"];break;case"pushplusNotification":this.messageTypes=["markdown","text","html"];break;case"telegramNotification":this.messageTypes=["markdown","html"]}}ngOnChanges(e){this.updateCommonSettings()}changeBeganMessageTemplateSettings(e){this.changeMessageTemplateSettings({beganMessageType:e.messageType,beganMessageTitle:e.messageTitle,beganMessageContent:e.messageContent}).subscribe()}changeEndedMessageTemplateSettings(e){this.changeMessageTemplateSettings({endedMessageType:e.messageType,endedMessageTitle:e.messageTitle,endedMessageContent:e.messageContent}).subscribe()}changeSpaceMessageTemplateSettings(e){this.changeMessageTemplateSettings({spaceMessageType:e.messageType,spaceMessageTitle:e.messageTitle,spaceMessageContent:e.messageContent}).subscribe()}changeErrorMessageTemplateSettings(e){this.changeMessageTemplateSettings({errorMessageType:e.messageType,errorMessageTitle:e.messageTitle,errorMessageContent:e.messageContent}).subscribe()}changeMessageTemplateSettings(e){return this.settingService.changeSettings({[this.keyOfSettings]:e}).pipe((0,A.X)(3,300),(0,ut.b)(i=>{this.message.success("\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u6210\u529f"),this.settings=Object.assign(Object.assign({},this.settings),i[this.keyOfSettings]),this.updateCommonSettings(),this.changeDetector.markForCheck()},i=>{this.message.error(`\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}updateCommonSettings(){this.beganMessageTemplateSettings={messageType:this.settings.beganMessageType,messageTitle:this.settings.beganMessageTitle,messageContent:this.settings.beganMessageContent},this.endedMessageTemplateSettings={messageType:this.settings.endedMessageType,messageTitle:this.settings.endedMessageTitle,messageContent:this.settings.endedMessageContent},this.spaceMessageTemplateSettings={messageType:this.settings.spaceMessageType,messageTitle:this.settings.spaceMessageTitle,messageContent:this.settings.spaceMessageContent},this.errorMessageTemplateSettings={messageType:this.settings.errorMessageType,messageTitle:this.settings.errorMessageTitle,messageContent:this.settings.errorMessageContent}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Mt.dD),t.Y36(k.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:20,vars:12,consts:[[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"title","value","messageTypes","confirm"],["beganMessageTemplateEditDialog",""],["endedMessageTemplateEditDialog",""],["errorMessageTemplateEditDialog",""],["spaceMessageTemplateEditDialog",""]],template:function(e,i){if(1&e){const r=t.EpF();t.TgZ(0,"a",0),t.NdJ("click",function(){return t.CHM(r),t.MAs(4).open()}),t.TgZ(1,"span",1),t._uU(2,"\u5f00\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(3,"app-message-template-edit-dialog",2,3),t.NdJ("confirm",function(g){return i.changeBeganMessageTemplateSettings(g)}),t.qZA(),t.TgZ(5,"a",0),t.NdJ("click",function(){return t.CHM(r),t.MAs(9).open()}),t.TgZ(6,"span",1),t._uU(7,"\u4e0b\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(8,"app-message-template-edit-dialog",2,4),t.NdJ("confirm",function(g){return i.changeEndedMessageTemplateSettings(g)}),t.qZA(),t.TgZ(10,"a",0),t.NdJ("click",function(){return t.CHM(r),t.MAs(14).open()}),t.TgZ(11,"span",1),t._uU(12,"\u5f02\u5e38\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(13,"app-message-template-edit-dialog",2,5),t.NdJ("confirm",function(g){return i.changeErrorMessageTemplateSettings(g)}),t.qZA(),t.TgZ(15,"a",0),t.NdJ("click",function(){return t.CHM(r),t.MAs(19).open()}),t.TgZ(16,"span",1),t._uU(17,"\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(18,"app-message-template-edit-dialog",2,6),t.NdJ("confirm",function(g){return i.changeSpaceMessageTemplateSettings(g)}),t.qZA()}2&e&&(t.xp6(3),t.Q6J("title","\u4fee\u6539\u5f00\u64ad\u6d88\u606f\u6a21\u677f")("value",i.beganMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u4e0b\u64ad\u6d88\u606f\u6a21\u677f")("value",i.endedMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u5f02\u5e38\u6d88\u606f\u6a21\u677f")("value",i.errorMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f")("value",i.spaceMessageTemplateSettings)("messageTypes",i.messageTypes))},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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function er(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.emailSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let nr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.emailSettings=_(i,C.gP),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,er,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,V.g,ot,tr,at,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function ir(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function or(n,o){1&n&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function rr(n,o){if(1&n&&(t.YNc(0,ir,2,0,"ng-container",6),t.YNc(1,or,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ar=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({sendkey:["",[a.kI.required,a.kI.pattern(/^[a-zA-Z\d]+$/)]]})}get sendkeyControl(){return this.settingsForm.get("sendkey")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe(rt(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,rr,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function sr(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.serverchanSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let lr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.serverchanSettings=_(i,C.gq),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,sr,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,V.g,ot,ar,at,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function cr(n,o){1&n&&(t.ynx(0),t._uU(1," server \u65e0\u6548 "),t.BQk())}function gr(n,o){1&n&&t.YNc(0,cr,2,0,"ng-container",9),2&n&&t.Q6J("ngIf",o.$implicit.hasError("pattern"))}function ur(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 pushkey\uff01 "),t.BQk())}function mr(n,o){1&n&&(t.ynx(0),t._uU(1," pushkey \u65e0\u6548 "),t.BQk())}function pr(n,o){if(1&n&&(t.YNc(0,ur,2,0,"ng-container",9),t.YNc(1,mr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let dr=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({server:["",[a.kI.pattern(/^https?:\/\/.+/)]],pushkey:["",[a.kI.required,a.kI.pattern(/^PDU\d+T[a-zA-Z\d]{32}(,PDU\d+T[a-zA-Z\d]{32}){0,99}$/)]]})}get serverControl(){return this.settingsForm.get("server")}get pushkeyControl(){return this.settingsForm.get("pushkey")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushdeerNotification",this.settings,this.settingsForm.valueChanges.pipe(rt(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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 https://api2.pushdeer.com","nz-input","","formControlName","server"],["serverErrorTip",""],["nzFor","pushkey","nzNoColon","","nzRequired","",1,"setting-label"],["id","pushkey","type","text","placeholder","\u591a\u4e2a key \u7528 , \u9694\u5f00\uff0c\u5728\u7ebf\u7248\u6700\u591a 10 \u4e2a\uff0c\u81ea\u67b6\u7248\u9ed8\u8ba4\u6700\u591a 100 \u4e2a\u3002","required","","nz-input","","formControlName","pushkey"],["pushkeyErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(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,gr,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,pr,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function hr(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushdeerSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let fr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushdeerSettings=_(i,C.jK),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,hr,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,V.g,ot,dr,at,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function _r(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Cr(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function zr(n,o){if(1&n&&(t.YNc(0,_r,2,0,"ng-container",9),t.YNc(1,Cr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let vr=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[a.kI.required,a.kI.pattern(/^[a-z\d]{32}$/)]],topic:[""]})}get tokenControl(){return this.settingsForm.get("token")}get topicControl(){return this.settingsForm.get("topic")}ngOnChanges(){this.syncStatus=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe(rt(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,"topic"),t.qZA(),t.TgZ(11,"nz-form-control",7),t._UZ(12,"input",8),t.qZA(),t.qZA(),t.qZA()),2&e){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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function xr(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushplusSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Or=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushplusSettings=_(i,C.q1),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,xr,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,V.g,ot,vr,at,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Mr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function Tr(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function br(n,o){if(1&n&&(t.YNc(0,Mr,2,0,"ng-container",9),t.YNc(1,Tr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Pr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 chatid\uff01 "),t.BQk())}function Sr(n,o){1&n&&(t.ynx(0),t._uU(1," chatid \u65e0\u6548 "),t.BQk())}function wr(n,o){if(1&n&&(t.YNc(0,Pr,2,0,"ng-container",9),t.YNc(1,Sr,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let Fr=(()=>{class n{constructor(e,i,r){this.changeDetector=i,this.settingsSyncService=r,this.syncFailedWarningTip=h.yT,this.settingsForm=e.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=O(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("telegramNotification",this.settings,this.settingsForm.valueChanges.pipe(rt(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO),t.Y36(T))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,br,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,wr,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function yr(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.telegramSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Zr=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.telegramSettings=_(i,C.wA),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,yr,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,V.g,ot,Fr,at,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var ue=l(4219);function Ar(n,o){1&n&&t._UZ(0,"nz-list-empty")}function kr(n,o){if(1&n){const e=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(e).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(e).index;return t.oxw().remove.emit(s)}),t._uU(11,"\u5220\u9664"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=o.$implicit,i=t.MAs(6);t.xp6(2),t.Oqu(e.url),t.xp6(1),t.Q6J("nzDropdownMenu",i)}}let Dr=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,Ar,1,0,"nz-list-empty",7),t.YNc(10,kr,12,2,"nz-list-item",8),t.qZA()),2&e&&(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:[xt,Ct,st.ix,it.w,pt.SY,R.Ls,d.O5,_t,d.sg,Dt,ct.wA,ct.cm,ct.RR,ue.wO,ue.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}),n})();function Nr(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function Er(n,o){1&n&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function Br(n,o){if(1&n&&(t.YNc(0,Nr,2,0,"ng-container",27),t.YNc(1,Er,2,0,"ng-container",27)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function qr(n,o){if(1&n){const e=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,Br,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(e),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&n){const e=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",e),t.xp6(9),t.Q6J("nzChecked",i.allChecked)("nzIndeterminate",i.indeterminate)}}const Qr={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 Ir=(()=>{class n{constructor(e,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=e.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(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){void 0===this.settings&&(this.settings=Object.assign({},Qr)),this.settingsForm.setValue(this.settings),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}setAllChecked(e){this.indeterminate=!1,this.allChecked=e,this.checkboxControls.forEach(i=>i.setValue(e))}updateAllChecked(){const e=this.checkboxControls.map(i=>i.value);this.allChecked=e.every(i=>i),this.indeterminate=!this.allChecked&&e.some(i=>i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(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,qr,76,4,"ng-container",1),t.qZA()),2&e&&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,bt.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Vr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-page-section"),t.TgZ(1,"app-webhook-list",3),t.NdJ("add",function(){return t.CHM(e),t.oxw().addWebhook()})("edit",function(r){return t.CHM(e),t.oxw().editWebhook(r)})("remove",function(r){return t.CHM(e),t.oxw().removeWebhook(r)})("clear",function(){return t.CHM(e),t.oxw().clearWebhook()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("data",e.webhooks)("addable",e.canAdd)}}const Jr=[{path:"email-notification",component:nr,resolve:{settings:Vt}},{path:"serverchan-notification",component:lr,resolve:{settings:Jt}},{path:"pushdeer-notification",component:fr,resolve:{settings:Lt}},{path:"pushplus-notification",component:Or,resolve:{settings:Ut}},{path:"telegram-notification",component:Zr,resolve:{settings:Yt}},{path:"webhooks",component:(()=>{class n{constructor(e,i,r,s,g){this.changeDetector=e,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=e.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(e){const i=this.webhooks.filter((r,s)=>s!==e);this.changeSettings(i).subscribe(()=>this.reset())}editWebhook(e){this.editingIndex=e,this.editingSettings=Object.assign({},this.webhooks[e]),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((e,i)=>{this.changeSettings([]).subscribe(e,i)})})}onDialogCanceled(){this.reset()}onDialogConfirmed(e){let i;-1===this.editingIndex?i=[...this.webhooks,e]:(i=[...this.webhooks],i[this.editingIndex]=e),this.changeSettings(i).subscribe(()=>this.reset())}reset(){this.editingIndex=-1,delete this.editingSettings}changeSettings(e){return this.settingService.changeSettings({webhooks:e}).pipe((0,A.X)(3,300),(0,ut.b)(i=>{this.webhooks=i.webhooks,this.changeDetector.markForCheck()},i=>{this.message.error(`Webhook \u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}}return n.MAX_WEBHOOKS=50,n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz),t.Y36(Mt.dD),t.Y36(x.Sf),t.Y36(k.R))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Vr,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&e&&(t.xp6(2),t.Q6J("title",i.dialogTitle)("okButtonText",i.dialogOkButtonText)("settings",i.editingSettings)("visible",i.dialogVisible))},directives:[G.q,j.Y,V.g,Dr,Ir],styles:[""],changeDetection:0}),n})(),resolve:{settings:Wt}},{path:"",component:ji,resolve:{settings:It}}];let Lr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Jr)],f.Bz]}),n})();function Ur(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u8bed\u6cd5\u3001\u53d8\u91cf\u53c2\u8003 "),t.TgZ(2,"a",16),t._uU(3,"wiki"),t.qZA(),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u7a7a\u503c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u6d88\u606f\u6a21\u677f"),t.qZA())}function Yr(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ur,6,0,"ng-template",null,3,t.W1O),t.TgZ(3,"form",4),t.TgZ(4,"nz-form-item",5),t.TgZ(5,"nz-form-label",6),t._uU(6," \u6d88\u606f\u6807\u9898 "),t.qZA(),t.TgZ(7,"nz-form-control",7),t._UZ(8,"input",8),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",9),t.TgZ(10,"nz-form-label",10),t._uU(11," \u6d88\u606f\u7c7b\u578b "),t.qZA(),t.TgZ(12,"nz-form-control",11),t._UZ(13,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",13),t.TgZ(15,"nz-form-label",6),t._uU(16," \u6d88\u606f\u5185\u5bb9 "),t.qZA(),t.TgZ(17,"nz-form-control",14),t._UZ(18,"textarea",15),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(2),i=t.oxw();t.xp6(3),t.Q6J("nzLayout","vertical")("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(8),t.Q6J("nzOptions",i.MESSAGE_TYPE_OPTIONS),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(3),t.Q6J("rows",10)}}function Wr(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(1,"\u53d6\u6d88"),t.qZA(),t.TgZ(2,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(3," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("disabled",e.settingsForm.invalid)}}let Rr=(()=>{class n{constructor(e,i){this.changeDetector=i,this.messageTypes=[],this.title="\u4fee\u6539\u6d88\u606f\u6a21\u677f",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.MESSAGE_TYPE_OPTIONS=[],this.settingsForm=e.group({messageType:[""],messageTitle:[""],messageContent:[""]})}get messageTypeControl(){return this.settingsForm.get("messageType")}get messageTitleControl(){return this.settingsForm.get("messageTitle")}get messageContentControl(){return this.settingsForm.get("messageContent")}ngOnInit(){this.MESSAGE_TYPE_OPTIONS=Array.from(new Set(this.messageTypes)).map(e=>({label:e,value:e}))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.settingsForm.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-edit-dialog"]],inputs:{value:"value",messageTypes:"messageTypes",title:"title",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:4,vars:3,consts:[["nzCentered","",3,"nzTitle","nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["modalFooter",""],["messageTemplateTip",""],["nz-form","",3,"nzLayout","formGroup"],[1,"setting-item","input"],["nzFor","messageTitle","nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","input"],["type","text","nz-input","","formControlName","messageTitle"],[1,"setting-item","switch"],["nzFor","messageType","nzNoColon","",1,"setting-label"],[1,"setting-control","select"],["formControlName","messageType",3,"nzOptions"],[1,"setting-item","textarea"],[1,"setting-control","textarea"],["nz-input","","wrap","off","formControlName","messageContent",3,"rows"],["href","https://github.com/acgnhiki/blrec/wiki/MessageTemplate","_blank",""],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(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,Yr,19,6,"ng-container",1),t.YNc(2,Wr,4,1,"ng-template",null,2,t.W1O),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("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.JJ,a.u,W.Vq,st.ix,te.dQ,it.w],styles:["textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}"],changeDetection:0}),n})(),Hr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[It,Vt,Jt,Lt,Ut,Yt,Wt],imports:[[d.ez,Lr,a.u5,a.UX,mt.j,pe.KJ,de.vh,c.U5,S.o7,N.m,bt.Wr,q.aF,Ce,W.LV,x.Qp,st.sL,R.PV,Tn,ct.b1,pt.cg,bn.S,Q.HQ,kn,Dn.m]]}),n})();t.B6R(X,[Rr],[])}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/202.e15e5ae9f06639b8.js b/src/blrec/data/webapp/202.e15e5ae9f06639b8.js deleted file mode 100644 index 2b42d17..0000000 --- a/src/blrec/data/webapp/202.e15e5ae9f06639b8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[202],{2202:(Ya,bt,l)=>{l.r(bt),l.d(bt,{SettingsModule:()=>La});var d=l(9808),r=l(4182),mt=l(7525),pe=l(1945),de=l(7484),c=l(4546),S=l(1047),D=l(6462),Tt=l(6114),q=l(3868),t=l(5e3),pt=l(404),he=l(925),K=l(226);let Ce=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[K.vT,d.ez,he.ud,pt.cg]]}),n})();var W=l(5197),O=l(7957),st=l(6042),R=l(647),Pt=l(6699),H=l(969),F=l(655),y=l(1721),et=l(8929),ze=l(8514),lt=l(1086),ve=l(6787),Oe=l(591),xe=l(2986),St=l(7545),nt=l(7625),wt=l(685),m=l(1894);const B=["*"];function De(n,o){1&n&&t.Hsn(0)}const Ne=["nz-list-item-actions",""];function Ee(n,o){}function Be(n,o){1&n&&t._UZ(0,"em",3)}function qe(n,o){if(1&n&&(t.TgZ(0,"li"),t.YNc(1,Ee,0,0,"ng-template",1),t.YNc(2,Be,1,0,"em",2),t.qZA()),2&n){const e=o.$implicit,i=o.last;t.xp6(1),t.Q6J("ngTemplateOutlet",e),t.xp6(1),t.Q6J("ngIf",!i)}}function Ve(n,o){}const Ft=function(n,o){return{$implicit:n,index:o}};function Qe(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Ve,0,0,"ng-template",9),t.BQk()),2&n){const e=o.$implicit,i=o.index,a=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",t.WLB(2,Ft,e,i))}}function Ie(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Qe,2,5,"ng-container",8),t.Hsn(2,4),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function Je(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.nzHeader)}}function Le(n,o){if(1&n&&(t.TgZ(0,"nz-list-header"),t.YNc(1,Je,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzHeader)}}function Ue(n,o){1&n&&t._UZ(0,"div"),2&n&&t.Udp("min-height",53,"px")}function Ye(n,o){}function We(n,o){if(1&n&&(t.TgZ(0,"div",13),t.YNc(1,Ye,0,0,"ng-template",9),t.qZA()),2&n){const e=o.$implicit,i=o.index,a=t.oxw(2);t.Q6J("nzSpan",a.nzGrid.span||null)("nzXs",a.nzGrid.xs||null)("nzSm",a.nzGrid.sm||null)("nzMd",a.nzGrid.md||null)("nzLg",a.nzGrid.lg||null)("nzXl",a.nzGrid.xl||null)("nzXXl",a.nzGrid.xxl||null),t.xp6(1),t.Q6J("ngTemplateOutlet",a.nzRenderItem)("ngTemplateOutletContext",t.WLB(9,Ft,e,i))}}function Re(n,o){if(1&n&&(t.TgZ(0,"div",11),t.YNc(1,We,2,12,"div",12),t.qZA()),2&n){const e=t.oxw();t.Q6J("nzGutter",e.nzGrid.gutter||null),t.xp6(1),t.Q6J("ngForOf",e.nzDataSource)}}function He(n,o){if(1&n&&t._UZ(0,"nz-list-empty",14),2&n){const e=t.oxw();t.Q6J("nzNoResult",e.nzNoResult)}}function $e(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.nzFooter)}}function Ge(n,o){if(1&n&&(t.TgZ(0,"nz-list-footer"),t.YNc(1,$e,2,1,"ng-container",10),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzFooter)}}function je(n,o){}function Xe(n,o){}function Ke(n,o){if(1&n&&(t.TgZ(0,"nz-list-pagination"),t.YNc(1,Xe,0,0,"ng-template",6),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzPagination)}}const tn=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],en=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"];function nn(n,o){if(1&n&&t._UZ(0,"ul",6),2&n){const e=t.oxw(2);t.Q6J("nzActions",e.nzActions)}}function on(n,o){if(1&n&&(t.YNc(0,nn,1,1,"ul",5),t.Hsn(1)),2&n){const e=t.oxw();t.Q6J("ngIf",e.nzActions&&e.nzActions.length>0)}}function an(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.nzContent)}}function rn(n,o){if(1&n&&(t.ynx(0),t.YNc(1,an,2,1,"ng-container",8),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzContent)}}function sn(n,o){if(1&n&&(t.Hsn(0,1),t.Hsn(1,2),t.YNc(2,rn,2,1,"ng-container",7)),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.nzContent)}}function ln(n,o){1&n&&t.Hsn(0,3)}function cn(n,o){}function gn(n,o){}function un(n,o){}function mn(n,o){}function pn(n,o){if(1&n&&(t.YNc(0,cn,0,0,"ng-template",9),t.YNc(1,gn,0,0,"ng-template",9),t.YNc(2,un,0,0,"ng-template",9),t.YNc(3,mn,0,0,"ng-template",9)),2&n){const e=t.oxw(),i=t.MAs(3),a=t.MAs(5),s=t.MAs(1);t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function dn(n,o){}function hn(n,o){}function fn(n,o){}function _n(n,o){if(1&n&&(t.TgZ(0,"nz-list-item-extra"),t.YNc(1,fn,0,0,"ng-template",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.nzExtra)}}function Cn(n,o){}function zn(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"div",10),t.YNc(2,dn,0,0,"ng-template",9),t.YNc(3,hn,0,0,"ng-template",9),t.qZA(),t.YNc(4,_n,2,1,"nz-list-item-extra",7),t.YNc(5,Cn,0,0,"ng-template",9),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(3),a=t.MAs(1),s=t.MAs(5);t.xp6(2),t.Q6J("ngTemplateOutlet",i),t.xp6(1),t.Q6J("ngTemplateOutlet",a),t.xp6(1),t.Q6J("ngIf",e.nzExtra),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}const vn=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],On=["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 ft=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),Zt=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item-action"]],viewQuery:function(e,i){if(1&e&&t.Gf(t.Rgc,5),2&e){let a;t.iGM(a=t.CRH())&&(i.templateRef=a.first)}},exportAs:["nzListItemAction"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.YNc(0,De,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),At=(()=>{class n{constructor(e,i){this.ngZone=e,this.cdr=i,this.nzActions=[],this.actions=[],this.destroy$=new et.xQ,this.inputActionChanges$=new et.xQ,this.contentChildrenChanges$=(0,ze.P)(()=>this.nzListItemActions?(0,lt.of)(null):this.ngZone.onStable.asObservable().pipe((0,xe.q)(1),(0,St.w)(()=>this.contentChildrenChanges$))),(0,ve.T)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,nt.R)(this.destroy$)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(a=>a.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,Zt,4),2&e){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:Ne,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(e,i){1&e&&t.YNc(0,qe,3,2,"li",0),2&e&&t.Q6J("ngForOf",i.actions)},directives:[d.sg,d.tP,d.O5],encapsulation:2,changeDetection:0}),n})(),_t=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&t._UZ(0,"nz-embed-empty",0),2&e&&t.Q6J("nzComponentName","list")("specificContent",i.nzNoResult)},directives:[wt.gB],encapsulation:2,changeDetection:0}),n})(),Ct=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),vt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:B,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]}),n})(),Ot=(()=>{class n{constructor(e){this.directionality=e,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 Oe.X(this.nzItemLayout),this.destroy$=new et.xQ}get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}ngOnInit(){var e;this.dir=this.directionality.value,null===(e=this.directionality.change)||void 0===e||e.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(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(K.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,zt,5),t.Suo(a,vt,5),t.Suo(a,kt,5)),2&e){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(e,i){2&e&&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:en,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(e,i){if(1&e&&(t.F$t(tn),t.YNc(0,Ie,3,1,"ng-template",null,0,t.W1O),t.YNc(2,Le,2,1,"nz-list-header",1),t.Hsn(3),t.TgZ(4,"nz-spin",2),t.ynx(5),t.YNc(6,Ue,1,2,"div",3),t.YNc(7,Re,2,2,"div",4),t.YNc(8,He,1,1,"nz-list-empty",5),t.BQk(),t.qZA(),t.YNc(9,Ge,2,1,"nz-list-footer",1),t.Hsn(10,1),t.YNc(11,je,0,0,"ng-template",6),t.Hsn(12,2),t.YNc(13,Ke,2,1,"nz-list-pagination",1),t.Hsn(14,3)),2&e){const a=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",a),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:[Ct,mt.W,_t,zt,vt,d.sg,d.tP,d.O5,H.f,m.SK,m.t3],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,y.yF)()],n.prototype,"nzBordered",void 0),(0,F.gn)([(0,y.yF)()],n.prototype,"nzLoading",void 0),(0,F.gn)([(0,y.yF)()],n.prototype,"nzSplit",void 0),n})(),Dt=(()=>{class n{constructor(e,i,a,s){this.parentComp=a,this.cdr=s,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1,i.addClass(e.nativeElement,"ant-list-item")}get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(e=>{this.itemLayout=e,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Ot),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,ft,5),2&e){let s;t.iGM(s=t.CRH())&&(i.listItemExtraDirective=s.first)}},hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("ant-list-item-no-flex",i.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:"nzNoFlex"},exportAs:["nzListItem"],ngContentSelectors:On,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(e,i){if(1&e&&(t.F$t(vn),t.YNc(0,on,2,1,"ng-template",null,0,t.W1O),t.YNc(2,sn,3,1,"ng-template",null,1,t.W1O),t.YNc(4,ln,1,0,"ng-template",null,2,t.W1O),t.YNc(6,pn,4,4,"ng-template",null,3,t.W1O),t.YNc(8,zn,6,4,"ng-container",4)),2&e){const a=t.MAs(7);t.xp6(8),t.Q6J("ngIf",i.isVerticalAndExtra)("ngIfElse",a)}},directives:[At,ft,d.O5,H.f,d.tP],encapsulation:2,changeDetection:0}),(0,F.gn)([(0,y.yF)()],n.prototype,"nzNoFlex",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:[[K.vT,d.ez,mt.j,m.Jb,Pt.Rt,H.T,wt.Xo]]}),n})();var ct=l(3677),Tn=l(5737),V=l(592),Pn=l(8076),$=l(9439),Nt=l(4832);const Et=["*"];function Sn(n,o){if(1&n&&(t.ynx(0),t._UZ(1,"i",6),t.BQk()),2&n){const e=o.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("nzType",e||"right")("nzRotate",i.nzActive?90:0)}}function wn(n,o){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Sn,2,2,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExpandedIcon)}}function Fn(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.nzHeader)}}function yn(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.nzExtra)}}function Zn(n,o){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,yn,2,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",e.nzExtra)}}const Bt="collapse";let qt=(()=>{class n{constructor(e,i,a){this.nzConfigService=e,this.cdr=i,this.directionality=a,this._nzModuleName=Bt,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="left",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.destroy$=new et.xQ,this.nzConfigService.getConfigChangeEventForComponent(Bt).pipe((0,nt.R)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){var e;null===(e=this.directionality.change)||void 0===e||e.pipe((0,nt.R)(this.destroy$)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(e){this.listOfNzCollapsePanelComponent.push(e)}removePanel(e){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(e),1)}click(e){this.nzAccordion&&!e.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==e).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),e.nzActive=!e.nzActive,e.nzActiveChange.emit(e.nzActive)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36($.jY),t.Y36(t.sBO),t.Y36(K.Is,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(e,i){2&e&&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:Et,decls:1,vars:0,template:function(e,i){1&e&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0}),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzAccordion",void 0),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzBordered",void 0),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzGhost",void 0),n})();const Vt="collapsePanel";let An=(()=>{class n{constructor(e,i,a,s){this.nzConfigService=e,this.cdr=i,this.nzCollapseComponent=a,this.noAnimation=s,this._nzModuleName=Vt,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.vpe,this.destroy$=new et.xQ,this.nzConfigService.getConfigChangeEventForComponent(Vt).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 n.\u0275fac=function(e){return new(e||n)(t.Y36($.jY),t.Y36(t.sBO),t.Y36(qt,1),t.Y36(Nt.P,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-collapse-panel"]],hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(e,i){2&e&&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:Et,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(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("click",function(){return i.clickHeader()}),t.YNc(1,wn,2,1,"div",1),t.YNc(2,Fn,2,1,"ng-container",2),t.YNc(3,Zn,2,1,"div",3),t.qZA(),t.TgZ(4,"div",4),t.TgZ(5,"div",5),t.Hsn(6),t.qZA(),t.qZA()),2&e&&(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,H.f,R.Ls],encapsulation:2,data:{animation:[Pn.J_]},changeDetection:0}),(0,F.gn)([(0,y.yF)()],n.prototype,"nzActive",void 0),(0,F.gn)([(0,y.yF)()],n.prototype,"nzDisabled",void 0),(0,F.gn)([(0,$.oS)(),(0,y.yF)()],n.prototype,"nzShowArrow",void 0),n})(),kn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[K.vT,d.ez,R.PV,H.T,Nt.g]]}),n})();var Dn=l(4466),Z=l(7221),A=l(7106),N=l(2306),Q=l(5278),k=l(5136);let Qt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["output","logging","header","danmaku","recorder","postprocessing","space"]).pipe((0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get settings:",a),this.notification.error("\u83b7\u53d6\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var w=l(4850);let It=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["emailNotification"]).pipe((0,w.U)(a=>a.emailNotification),(0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get email notification settings:",a),this.notification.error("\u83b7\u53d6\u90ae\u4ef6\u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Jt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["serverchanNotification"]).pipe((0,w.U)(a=>a.serverchanNotification),(0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get ServerChan notification settings:",a),this.notification.error("\u83b7\u53d6 ServerChan \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Lt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["pushdeerNotification"]).pipe((0,w.U)(a=>a.pushdeerNotification),(0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get PushDeer notification settings:",a),this.notification.error("\u83b7\u53d6 pushdeer \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ut=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["pushplusNotification"]).pipe((0,w.U)(a=>a.pushplusNotification),(0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get pushplus notification settings:",a),this.notification.error("\u83b7\u53d6 pushplus \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Yt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["telegramNotification"]).pipe((0,w.U)(a=>a.telegramNotification),(0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get telegram notification settings:",a),this.notification.error("\u83b7\u53d6 telegram \u901a\u77e5\u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Wt=(()=>{class n{constructor(e,i,a){this.logger=e,this.notification=i,this.settingService=a}resolve(e,i){return this.settingService.getSettings(["webhooks"]).pipe((0,w.U)(a=>a.webhooks),(0,A.X)(3,300),(0,Z.K)(a=>{throw this.logger.error("Failed to get webhook settings:",a),this.notification.error("\u83b7\u53d6 Webhook \u8bbe\u7f6e\u51fa\u9519",a.message,{nzDuration:0}),a}))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(N.Kf),t.LFG(Q.zb),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})();var f=l(2302),gt=l(2198),Rt=l(2014),Nn=l(7770),En=l(353),Ht=l(4704),v=l(2340);const z="RouterScrollService",$t="defaultViewport",Gt="customViewport";let Bn=(()=>{class n{constructor(e,i,a,s){this.router=e,this.activatedRoute=i,this.viewportScroller=a,this.logger=s,this.addQueue=[],this.addBeforeNavigationQueue=[],this.removeQueue=[],this.routeStrategies=[],this.scrollDefaultViewport=!0,this.customViewportToScroll=null,v.N.traceRouterScrolling&&this.logger.trace(`${z}:: constructor`),v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Subscribing to router events`);const g=this.router.events.pipe((0,gt.h)(u=>u instanceof f.OD||u instanceof f.m2),(0,Rt.R)((u,p)=>{var T,P;v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Updating the known scroll positions`);const U=Object.assign({},u.positions);return p instanceof f.OD&&this.scrollDefaultViewport&&(v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Storing the scroll position of the default viewport`),U[`${p.id}-${$t}`]=this.viewportScroller.getScrollPosition()),p instanceof f.OD&&this.customViewportToScroll&&(v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Storing the scroll position of the custom viewport`),U[`${p.id}-${Gt}`]=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,gt.h)(u=>!!u.trigger),(0,Nn.QV)(En.z));this.scrollPositionRestorationSubscription=g.subscribe(u=>{const p=this.routeStrategies.find(Y=>u.event.url.indexOf(Y.partialRoute)>-1),T=p&&p.behaviour===Ht.g.KEEP_POSITION||!1,P=u.routeData&&u.routeData.scrollBehavior&&u.routeData.scrollBehavior===Ht.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,me=!U||Y;v.N.traceRouterScrolling&&(this.logger.trace(`${z}:: Existing strategy with keep position behavior? `,T),this.logger.trace(`${z}:: Route data with keep position behavior? `,P),this.logger.trace(`${z}:: Imperative trigger? `,Y),this.logger.debug(`${z}:: Should scroll? `,me)),me?(this.scrollDefaultViewport&&(v.N.traceRouterScrolling&&this.logger.debug(`${z}:: Scrolling the default viewport`),this.viewportScroller.scrollToPosition([0,0])),this.customViewportToScroll&&(v.N.traceRouterScrolling&&this.logger.debug(`${z}:: Scrolling a custom viewport: `,this.customViewportToScroll),this.customViewportToScroll.scrollTop=0)):(v.N.traceRouterScrolling&&this.logger.debug(`${z}:: Not scrolling`),this.scrollDefaultViewport&&this.viewportScroller.scrollToPosition(u.positions[`${u.idToRestore}-${$t}`]),this.customViewportToScroll&&(this.customViewportToScroll.scrollTop=u.positions[`${u.idToRestore}-${Gt}`])),this.processRemoveQueue(this.addBeforeNavigationQueue.map(Ua=>Ua.partialRoute),!0),this.processAddQueue(this.addQueue),this.addQueue=[],this.removeQueue=[],this.addBeforeNavigationQueue=[]}else this.processAddQueue(this.addBeforeNavigationQueue)})}addStrategyOnceBeforeNavigationForPartialRoute(e,i){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Adding a strategy once for before navigation towards [${e}]: `,i),this.addBeforeNavigationQueue.push({partialRoute:e,behaviour:i,onceBeforeNavigation:!0})}addStrategyForPartialRoute(e,i){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Adding a strategy for partial route: [${e}]`,i),this.addQueue.push({partialRoute:e,behaviour:i})}removeStrategyForPartialRoute(e){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Removing strategory for: [${e}]: `),this.removeQueue.push(e)}setCustomViewportToScroll(e){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Setting a custom viewport to scroll: `,e),this.customViewportToScroll=e}disableScrollDefaultViewport(){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Disabling scrolling the default viewport`),this.scrollDefaultViewport=!1}enableScrollDefaultViewPort(){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: Enabling scrolling the default viewport`),this.scrollDefaultViewport=!0}processAddQueue(e){for(const i of e)-1===this.routeStrategyPosition(i.partialRoute)&&this.routeStrategies.push(i)}processRemoveQueue(e,i=!1){for(const a of e){const s=this.routeStrategyPosition(a);!i&&s>-1&&this.routeStrategies[s].onceBeforeNavigation||s>-1&&this.routeStrategies.splice(s,1)}}routeStrategyPosition(e){return this.routeStrategies.map(i=>i.partialRoute).indexOf(e)}ngOnDestroy(){v.N.traceRouterScrolling&&this.logger.trace(`${z}:: ngOnDestroy`),this.scrollPositionRestorationSubscription&&this.scrollPositionRestorationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(f.F0),t.LFG(f.gz),t.LFG(d.EM),t.LFG(N.Kf))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var I=l(4670),E=l(3523),qn=l(3496),Vn=l(1149),Qn=l(7242);const x=function In(n,o){var e={};return o=(0,Qn.Z)(o,3),(0,Vn.Z)(n,function(i,a,s){(0,qn.Z)(e,a,o(i,a,s))}),e};var ut=l(2994),Jn=l(4884),Ln=l(4116),jt=l(4825),xt=l(4177),Un=l(8706),Yn=l(5202),Wn=l(1986),Rn=l(7583),jn=Object.prototype.hasOwnProperty;var Xt=l(1854),ti=l(2134),Mt=l(9727);function M(n){const o="result"in n;return x(n.diff,()=>o)}let b=(()=>{class n{constructor(e,i){this.message=e,this.settingService=i}syncSettings(e,i,a){return a.pipe((0,Rt.R)(([,s],g)=>[s,g,(0,ti.e5)(g,s)],[i,i,{}]),(0,gt.h)(([,,s])=>!function Xn(n){if(null==n)return!0;if((0,Un.Z)(n)&&((0,xt.Z)(n)||"string"==typeof n||"function"==typeof n.splice||(0,Yn.Z)(n)||(0,Rn.Z)(n)||(0,jt.Z)(n)))return!n.length;var o=(0,Ln.Z)(n);if("[object Map]"==o||"[object Set]"==o)return!n.size;if((0,Wn.Z)(n))return!(0,Jn.Z)(n).length;for(var e in n)if(jn.call(n,e))return!1;return!0}(s)),(0,St.w)(([s,g,u])=>this.settingService.changeSettings({[e]:u}).pipe((0,A.X)(3,300),(0,ut.b)(p=>{console.assert((0,Xt.Z)(p[e],g),"result settings should equal current settings",{curr:g,result:p[e]})},p=>{this.message.error(`\u8bbe\u7f6e\u51fa\u9519: ${p.message}`)}),(0,w.U)(p=>({prev:s,curr:g,diff:u,result:p[e]})),(0,Z.K)(p=>(0,lt.of)({prev:s,curr:g,diff:u,error:p})))),(0,ut.b)(s=>console.debug(`${e} settings sync detail:`,s)))}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(Mt.dD),t.LFG(k.R))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var h=l(8737),J=(()=>{return(n=J||(J={}))[n.EACCES=13]="EACCES",n[n.ENOTDIR=20]="ENOTDIR",J;var n})(),ei=l(520);const ni=v.N.apiUrl;let Kt=(()=>{class n{constructor(e){this.http=e}validateDir(e){return this.http.post(ni+"/api/v1/validation/dir",{path:e})}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ei.eN))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ii(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function oi(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function ai(n,o){1&n&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function ri(n,o){1&n&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function si(n,o){if(1&n&&(t.YNc(0,ii,2,0,"ng-container",6),t.YNc(1,oi,2,0,"ng-container",6),t.YNc(2,ai,2,0,"ng-container",6),t.YNc(3,ri,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",e.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",e.hasError("failedToValidate"))}}function li(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,si,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}let ci=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.validationService=a,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,w.U)(g=>{switch(g.code){case J.ENOTDIR:return{error:!0,notADirectory:!0};case J.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,Z.K)(()=>(0,lt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.group({outDir:["",[r.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(Kt))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,li,7,2,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var te=l(2643),it=l(2683);function gi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u8def\u5f84\u6a21\u677f "),t.BQk())}function ui(n,o){1&n&&(t.ynx(0),t._uU(1," \u8def\u5f84\u6a21\u677f\u6709\u9519\u8bef "),t.BQk())}function mi(n,o){if(1&n&&(t.YNc(0,gi,2,0,"ng-container",12),t.YNc(1,ui,2,0,"ng-container",12)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function pi(n,o){if(1&n&&(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&n){const e=o.$implicit;t.xp6(2),t.Oqu(e.name),t.xp6(2),t.Oqu(e.desc)}}function di(n,o){if(1&n&&(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,mi,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,pi,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&n){const e=t.MAs(6),i=t.MAs(10),a=t.oxw();t.xp6(1),t.Q6J("formGroup",a.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e),t.xp6(1),t.Q6J("pattern",a.pathTemplatePattern),t.xp6(5),t.Q6J("nzData",a.pathTemplateVariables)("nzPageSize",11)("nzShowPagination",!1)("nzSize","small"),t.xp6(9),t.Q6J("ngForOf",i.data)}}function hi(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().restoreDefault()}),t._uU(1," \u6062\u590d\u9ed8\u8ba4 "),t.qZA(),t.TgZ(2,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(3,"\u53d6\u6d88"),t.qZA(),t.TgZ(4,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(5," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",e.control.value.trim()===e.pathTemplateDefault),t.xp6(4),t.Q6J("disabled",e.control.invalid||e.control.value.trim()===e.value)}}let fi=(()=>{class n{constructor(e,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=e.group({pathTemplate:["",[r.kI.required,r.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.TgZ(0,"nz-modal",0),t.NdJ("nzVisibleChange",function(s){return i.visible=s})("nzOnOk",function(){return i.handleConfirm()})("nzOnCancel",function(){return i.handleCancel()}),t.YNc(1,di,22,8,"ng-container",1),t.YNc(2,hi,6,2,"ng-template",null,2,t.W1O),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.u,r.c5,d.O5,qt,An,V.N8,V.Om,V.$Z,V.Uo,V._C,V.p0,d.sg,st.ix,te.dQ,it.w],styles:[".footnote[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:0}"],changeDetection:0}),n})(),_i=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.splitFileTip=h.Uk,this.syncFailedWarningTip=h.yT,this.filesizeLimitOptions=(0,E.Z)(h.Pu),this.durationLimitOptions=(0,E.Z)(h.Fg),this.settingsForm=e.group({outDir:[""],pathTemplate:[""],filesizeLimit:[""],durationLimit:[""]})}get outDirControl(){return this.settingsForm.get("outDir")}get pathTemplateControl(){return this.settingsForm.get("pathTemplate")}get filesizeLimitControl(){return this.settingsForm.get("filesizeLimit")}get durationLimitControl(){return this.settingsForm.get("durationLimit")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("output",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),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(a),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&e&&(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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,ci,fi,W.Vq,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),L=(()=>{class n{constructor(){}get actionable(){var e;return(null===(e=this.directive)||void 0===e?void 0:e.valueAccessor)instanceof D.i}onClick(e){var i;e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),(null===(i=this.directive)||void 0===i?void 0:i.valueAccessor)instanceof D.i&&this.directive.control.setValue(!this.directive.control.value))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","appSwitchActionable",""]],contentQueries:function(e,i,a){if(1&e&&t.Suo(a,r.u,5),2&e){let s;t.iGM(s=t.CRH())&&(i.directive=s.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("click",function(s){return i.onClick(s)}),2&e&&t.ekj("actionable",i.actionable)}}),n})();function Ci(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 zi(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 vi(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 Oi(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",24),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)}}let xi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,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=e.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=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("recorder",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,Ci,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,zi,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,vi,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,Oi,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&e){const a=t.MAs(5),s=t.MAs(12),g=t.MAs(29);t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",a),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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,W.Vq,r.JJ,r.u,L,D.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Mi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({danmuUname:[""],recordGiftSend:[""],recordFreeGifts:[""],recordGuardBuy:[""],recordSuperChat:[""],saveRawDanmaku:[""]})}get danmuUnameControl(){return this.settingsForm.get("danmuUname")}get recordGiftSendControl(){return this.settingsForm.get("recordGiftSend")}get recordFreeGiftsControl(){return this.settingsForm.get("recordFreeGifts")}get recordGuardBuyControl(){return this.settingsForm.get("recordGuardBuy")}get recordSuperChatControl(){return this.settingsForm.get("recordSuperChat")}get saveRawDanmakuControl(){return this.settingsForm.get("saveRawDanmaku")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("danmaku",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,D.i,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function bi(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 Ti(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"label",13),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)}}let Pi=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.deleteStrategies=h.rc,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({injectExtraMetadata:[""],remuxToMp4:[""],deleteSource:[""]})}get injectExtraMetadataControl(){return this.settingsForm.get("injectExtraMetadata")}get remuxToMp4Control(){return this.settingsForm.get("remuxToMp4")}get deleteSourceControl(){return this.settingsForm.get("deleteSource")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("postprocessing",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,bi,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,Ti,3,2,"ng-container",12),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=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",a),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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,D.i,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Si=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,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=e.group({recycleRecords:[""],checkInterval:[""],spaceThreshold:[""]})}get recycleRecordsControl(){return this.settingsForm.get("recycleRecords")}get checkIntervalControl(){return this.settingsForm.get("checkInterval")}get spaceThresholdControl(){return this.settingsForm.get("spaceThreshold")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("space",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,W.Vq,r.JJ,r.u,L,D.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function wi(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 User Agent "),t.BQk())}function Fi(n,o){1&n&&t.YNc(0,wi,2,0,"ng-container",6),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function yi(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,"textarea",4),t.YNc(5,Fi,1,1,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=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",e),t.xp6(1),t.Q6J("rows",3)}}let Zi=(()=>{class n{constructor(e,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=e.group({userAgent:["",[r.kI.required]]})}get control(){return this.settingsForm.get("userAgent")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,yi,7,5,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Ai(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,"textarea",4),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.settingsForm),t.xp6(2),t.Q6J("nzWarningTip",e.warningTip)("nzValidateStatus",e.control.valid&&e.control.value.trim()!==e.value?"warning":e.control),t.xp6(1),t.Q6J("rows",5)}}let ki=(()=>{class n{constructor(e,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=e.group({cookie:[""]})}get control(){return this.settingsForm.get("cookie")}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,5,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,r.Fj,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Di=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({userAgent:["",[r.kI.required]],cookie:[""]})}get userAgentControl(){return this.settingsForm.get("userAgent")}get cookieControl(){return this.settingsForm.get("cookie")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("header",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),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(a),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&e&&(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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,Zi,ki],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var ee=l(7355);function Ni(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u4fdd\u5b58\u4f4d\u7f6e "),t.BQk())}function Ei(n,o){1&n&&(t.ynx(0),t._uU(1," \u4e0d\u662f\u4e00\u4e2a\u76ee\u5f55 "),t.BQk())}function Bi(n,o){1&n&&(t.ynx(0),t._uU(1," \u6ca1\u6709\u8bfb\u5199\u6743\u9650 "),t.BQk())}function qi(n,o){1&n&&(t.ynx(0),t._uU(1," \u672a\u80fd\u8fdb\u884c\u9a8c\u8bc1 "),t.BQk())}function Vi(n,o){if(1&n&&(t.YNc(0,Ni,2,0,"ng-container",6),t.YNc(1,Ei,2,0,"ng-container",6),t.YNc(2,Bi,2,0,"ng-container",6),t.YNc(3,qi,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("notADirectory")),t.xp6(1),t.Q6J("ngIf",e.hasError("noPermissions")),t.xp6(1),t.Q6J("ngIf",e.hasError("failedToValidate"))}}function Qi(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,Vi,4,4,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(6),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzErrorTip",e)}}let Ii=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.validationService=a,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,w.U)(g=>{switch(g.code){case J.ENOTDIR:return{error:!0,notADirectory:!0};case J.EACCES:return{error:!0,noPermissions:!0};default:return null}}),(0,Z.K)(()=>(0,lt.of)({error:!0,failedToValidate:!0}))),this.settingsForm=e.group({logDir:["",[r.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(e){this.visible=e,this.visibleChange.emit(e),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(Kt))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,Qi,7,2,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzVisible",i.visible)("nzOkDisabled",i.control.invalid||i.control.value.trim()===i.value)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Ji=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,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,ee.Z)(1,11).map(s=>({label:`${s} MB`,value:1048576*s})),this.backupOptions=(0,ee.Z)(1,31).map(s=>({label:s.toString(),value:s})),this.settingsForm=e.group({logDir:[""],consoleLogLevel:[""],maxBytes:[""],backupCount:[""]})}get logDirControl(){return this.settingsForm.get("logDir")}get consoleLogLevelControl(){return this.settingsForm.get("consoleLogLevel")}get maxBytesControl(){return this.settingsForm.get("maxBytes")}get backupCountControl(){return this.settingsForm.get("backupCount")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("logging",this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"form",0),t.TgZ(1,"nz-form-item",1),t.NdJ("click",function(){return t.CHM(a),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&e&&(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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,c.EF,Ii,L,W.Vq,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Li=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,it.w,R.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),Ui=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,it.w,R.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();const Yi=["innerContent"];let Wi=(()=>{class n{constructor(e,i,a,s){this.changeDetector=e,this.route=i,this.logger=a,this.routerScrollService=s}ngOnInit(){this.route.data.subscribe(e=>{this.settings=e.settings,this.changeDetector.markForCheck()})}ngAfterViewInit(){this.innerContent?this.routerScrollService.setCustomViewportToScroll(this.innerContent.nativeElement):this.logger.error("The content element could not be found!")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz),t.Y36(N.Kf),t.Y36(Bn))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-settings"]],viewQuery:function(e,i){if(1&e&&t.Gf(Yi,5),2&e){let a;t.iGM(a=t.CRH())&&(i.innerContent=a.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(e,i){1&e&&(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&e&&(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:[I.g,_i,xi,Mi,Pi,Si,Di,Ji,Li,Ui],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}"]}),n})();var Ri=l(7298),Hi=l(1481),ne=l(3449),$i=l(6667),ie=l(1999),Gi=l(2168);const Xi=function ji(n,o,e,i){if(!(0,ie.Z)(n))return n;for(var a=-1,s=(o=(0,ne.Z)(o,n)).length,g=s-1,u=n;null!=u&&++a0&&e(u)?o>1?re(u,o-1,e,i,a):(0,oo.Z)(a,u):i||(a[a.length]=u)}return a},co=function lo(n){return null!=n&&n.length?so(n,1):[]},uo=function go(n,o,e){switch(e.length){case 0:return n.call(o);case 1:return n.call(o,e[0]);case 2:return n.call(o,e[0],e[1]);case 3:return n.call(o,e[0],e[1],e[2])}return n.apply(o,e)};var se=Math.max;const fo=function ho(n){return function(){return n}};var le=l(2370),_o=l(9940),xo=Date.now;const To=function Mo(n){var o=0,e=0;return function(){var i=xo(),a=16-(i-e);if(e=i,a>0){if(++o>=800)return arguments[0]}else o=0;return n.apply(void 0,arguments)}}(le.Z?function(n,o){return(0,le.Z)(n,"toString",{configurable:!0,enumerable:!1,value:fo(o),writable:!0})}:_o.Z),_=function Po(n){return To(function mo(n,o,e){return o=se(void 0===o?n.length-1:o,0),function(){for(var i=arguments,a=-1,s=se(i.length-o,0),g=Array(s);++a{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({enabled:[""]})}get enabledControl(){return this.settingsForm.get("enabled")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settings,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.syncStatus.enabled?i.enabledControl:"warning"))},directives:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,D.i,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var ce=l(6422),ge=l(4843),wo=l(13),Fo=l(5778),yo=l(7079),Zo=l(214);function at(n){return(0,ge.z)((0,gt.h)(()=>n.valid),(0,wo.b)(300),function No(){return(0,ge.z)((0,w.U)(n=>(0,ce.Z)(n,(o,e,i)=>{o[i]=function ko(n){return"string"==typeof n||!(0,xt.Z)(n)&&(0,Zo.Z)(n)&&"[object String]"==(0,yo.Z)(n)}(e)?e.trim():e},{})))}(),(0,Fo.x)(Xt.Z))}function Eo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Bo(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function qo(n,o){if(1&n&&(t.YNc(0,Eo,2,0,"ng-container",17),t.YNc(1,Bo,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}function Vo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u6388\u6743\u7801\uff01 "),t.BQk())}function Qo(n,o){1&n&&t.YNc(0,Vo,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Io(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u4e3b\u673a\uff01 "),t.BQk())}function Jo(n,o){1&n&&t.YNc(0,Io,2,0,"ng-container",17),2&n&&t.Q6J("ngIf",o.$implicit.hasError("required"))}function Lo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 SMTP \u7aef\u53e3\uff01 "),t.BQk())}function Uo(n,o){1&n&&(t.ynx(0),t._uU(1," SMTP \u7aef\u53e3\u65e0\u6548\uff01 "),t.BQk())}function Yo(n,o){if(1&n&&(t.YNc(0,Lo,2,0,"ng-container",17),t.YNc(1,Uo,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Wo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740\uff01 "),t.BQk())}function Ro(n,o){1&n&&(t.ynx(0),t._uU(1," \u90ae\u7bb1\u5730\u5740\u65e0\u6548! "),t.BQk())}function Ho(n,o){if(1&n&&(t.YNc(0,Wo,2,0,"ng-container",17),t.YNc(1,Ro,2,0,"ng-container",17)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("email"))}}let $o=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({srcAddr:["",[r.kI.required,r.kI.email]],dstAddr:["",[r.kI.required,r.kI.email]],authCode:["",[r.kI.required]],smtpHost:["",[r.kI.required]],smtpPort:["",[r.kI.required,r.kI.pattern(/\d+/)]]})}get srcAddrControl(){return this.settingsForm.get("srcAddr")}get dstAddrControl(){return this.settingsForm.get("dstAddr")}get authCodeControl(){return this.settingsForm.get("authCode")}get smtpHostControl(){return this.settingsForm.get("smtpHost")}get smtpPortControl(){return this.settingsForm.get("smtpPort")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("emailNotification",this.settings,this.settingsForm.valueChanges.pipe(at(this.settingsForm),(0,w.U)(e=>(0,ce.Z)(e,(i,a,s)=>{a="smtpPort"===s?parseInt(a):a,Reflect.set(i,s,a)},{})))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,qo,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,Qo,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,Jo,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,Yo,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,Ho,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=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",a)("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",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.dstAddrControl.valid&&!i.syncStatus.dstAddr?"warning":i.dstAddrControl)}},directives:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.u,d.O5,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),rt=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({notifyBegan:[""],notifyEnded:[""],notifyError:[""],notifySpace:[""]})}get notifyBeganControl(){return this.settingsForm.get("notifyBegan")}get notifyEndedControl(){return this.settingsForm.get("notifyEnded")}get notifyErrorControl(){return this.settingsForm.get("notifyError")}get notifySpaceControl(){return this.settingsForm.get("notifySpace")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings(this.keyOfSettings,this.settingsForm.value,this.settingsForm.valueChanges).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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&e&&(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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,L,m.t3,c.iK,c.Fd,D.i,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})(),X=(()=>{class n{constructor(e,i,a){this.changeDetector=e,this.message=i,this.settingService=a}ngOnInit(){switch(this.keyOfSettings){case"emailNotification":this.messageTypes=["text","html"];break;case"serverchanNotification":this.messageTypes=["markdown"];break;case"pushdeerNotification":this.messageTypes=["markdown","text"];break;case"pushplusNotification":this.messageTypes=["markdown","text","html"];break;case"telegramNotification":this.messageTypes=["markdown","html"]}}ngOnChanges(e){this.updateCommonSettings()}changeBeganMessageTemplateSettings(e){this.changeMessageTemplateSettings({beganMessageType:e.messageType,beganMessageTitle:e.messageTitle,beganMessageContent:e.messageContent}).subscribe()}changeEndedMessageTemplateSettings(e){this.changeMessageTemplateSettings({endedMessageType:e.messageType,endedMessageTitle:e.messageTitle,endedMessageContent:e.messageContent}).subscribe()}changeSpaceMessageTemplateSettings(e){this.changeMessageTemplateSettings({spaceMessageType:e.messageType,spaceMessageTitle:e.messageTitle,spaceMessageContent:e.messageContent}).subscribe()}changeErrorMessageTemplateSettings(e){this.changeMessageTemplateSettings({errorMessageType:e.messageType,errorMessageTitle:e.messageTitle,errorMessageContent:e.messageContent}).subscribe()}changeMessageTemplateSettings(e){return this.settingService.changeSettings({[this.keyOfSettings]:e}).pipe((0,A.X)(3,300),(0,ut.b)(i=>{this.message.success("\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u6210\u529f"),this.settings=Object.assign(Object.assign({},this.settings),i[this.keyOfSettings]),this.updateCommonSettings(),this.changeDetector.markForCheck()},i=>{this.message.error(`\u4fee\u6539\u6d88\u606f\u6a21\u677f\u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}updateCommonSettings(){this.beganMessageTemplateSettings={messageType:this.settings.beganMessageType,messageTitle:this.settings.beganMessageTitle,messageContent:this.settings.beganMessageContent},this.endedMessageTemplateSettings={messageType:this.settings.endedMessageType,messageTitle:this.settings.endedMessageTitle,messageContent:this.settings.endedMessageContent},this.spaceMessageTemplateSettings={messageType:this.settings.spaceMessageType,messageTitle:this.settings.spaceMessageTitle,messageContent:this.settings.spaceMessageContent},this.errorMessageTemplateSettings={messageType:this.settings.errorMessageType,messageTitle:this.settings.errorMessageTitle,messageContent:this.settings.errorMessageContent}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(Mt.dD),t.Y36(k.R))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-settings"]],inputs:{settings:"settings",keyOfSettings:"keyOfSettings"},features:[t.TTD],decls:20,vars:12,consts:[[1,"setting-item","actionable",3,"click"],[1,"setting-label"],[3,"title","value","messageTypes","confirm"],["beganMessageTemplateEditDialog",""],["endedMessageTemplateEditDialog",""],["errorMessageTemplateEditDialog",""],["spaceMessageTemplateEditDialog",""]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(4).open()}),t.TgZ(1,"span",1),t._uU(2,"\u5f00\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(3,"app-message-template-edit-dialog",2,3),t.NdJ("confirm",function(g){return i.changeBeganMessageTemplateSettings(g)}),t.qZA(),t.TgZ(5,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(9).open()}),t.TgZ(6,"span",1),t._uU(7,"\u4e0b\u64ad\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(8,"app-message-template-edit-dialog",2,4),t.NdJ("confirm",function(g){return i.changeEndedMessageTemplateSettings(g)}),t.qZA(),t.TgZ(10,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(14).open()}),t.TgZ(11,"span",1),t._uU(12,"\u5f02\u5e38\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(13,"app-message-template-edit-dialog",2,5),t.NdJ("confirm",function(g){return i.changeErrorMessageTemplateSettings(g)}),t.qZA(),t.TgZ(15,"a",0),t.NdJ("click",function(){return t.CHM(a),t.MAs(19).open()}),t.TgZ(16,"span",1),t._uU(17,"\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f"),t.qZA(),t.qZA(),t.TgZ(18,"app-message-template-edit-dialog",2,6),t.NdJ("confirm",function(g){return i.changeSpaceMessageTemplateSettings(g)}),t.qZA()}2&e&&(t.xp6(3),t.Q6J("title","\u4fee\u6539\u5f00\u64ad\u6d88\u606f\u6a21\u677f")("value",i.beganMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u4e0b\u64ad\u6d88\u606f\u6a21\u677f")("value",i.endedMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u5f02\u5e38\u6d88\u606f\u6a21\u677f")("value",i.errorMessageTemplateSettings)("messageTypes",i.messageTypes),t.xp6(5),t.Q6J("title","\u4fee\u6539\u7a7a\u95f4\u4e0d\u8db3\u6d88\u606f\u6a21\u677f")("value",i.spaceMessageTemplateSettings)("messageTypes",i.messageTypes))},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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Go(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.emailSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let jo=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.emailSettings=_(i,C.gP),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Go,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,I.g,ot,$o,rt,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Xo(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 sendkey\uff01 "),t.BQk())}function Ko(n,o){1&n&&(t.ynx(0),t._uU(1," sendkey \u65e0\u6548 "),t.BQk())}function ta(n,o){if(1&n&&(t.YNc(0,Xo,2,0,"ng-container",6),t.YNc(1,Ko,2,0,"ng-container",6)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ea=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({sendkey:["",[r.kI.required,r.kI.pattern(/^[a-zA-Z\d]+$/)]]})}get sendkeyControl(){return this.settingsForm.get("sendkey")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("serverchanNotification",this.settings,this.settingsForm.valueChanges.pipe(at(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,ta,2,2,"ng-template",null,5,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("nzWarningTip",i.syncFailedWarningTip)("nzValidateStatus",i.sendkeyControl.valid&&!i.syncStatus.sendkey?"warning":i.sendkeyControl)}},directives:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function na(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.serverchanSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let ia=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.serverchanSettings=_(i,C.gq),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,na,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,I.g,ot,ea,rt,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function oa(n,o){1&n&&(t.ynx(0),t._uU(1," server \u65e0\u6548 "),t.BQk())}function aa(n,o){1&n&&t.YNc(0,oa,2,0,"ng-container",9),2&n&&t.Q6J("ngIf",o.$implicit.hasError("pattern"))}function ra(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 pushkey\uff01 "),t.BQk())}function sa(n,o){1&n&&(t.ynx(0),t._uU(1," pushkey \u65e0\u6548 "),t.BQk())}function la(n,o){if(1&n&&(t.YNc(0,ra,2,0,"ng-container",9),t.YNc(1,sa,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ca=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({server:["",[r.kI.pattern(/^https?:\/\/.+/)]],pushkey:["",[r.kI.required,r.kI.pattern(/^PDU\d+T[a-zA-Z\d]{32}(,PDU\d+T[a-zA-Z\d]{32}){0,99}$/)]]})}get serverControl(){return this.settingsForm.get("server")}get pushkeyControl(){return this.settingsForm.get("pushkey")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushdeerNotification",this.settings,this.settingsForm.valueChanges.pipe(at(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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 https://api2.pushdeer.com","nz-input","","formControlName","server"],["serverErrorTip",""],["nzFor","pushkey","nzNoColon","","nzRequired","",1,"setting-label"],["id","pushkey","type","text","placeholder","\u591a\u4e2a key \u7528 , \u9694\u5f00\uff0c\u5728\u7ebf\u7248\u6700\u591a 10 \u4e2a\uff0c\u81ea\u67b6\u7248\u9ed8\u8ba4\u6700\u591a 100 \u4e2a\u3002","required","","nz-input","","formControlName","pushkey"],["pushkeyErrorTip",""],[4,"ngIf"]],template:function(e,i){if(1&e&&(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,aa,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,la,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.JJ,r.u,d.O5,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function ga(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushdeerSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let ua=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushdeerSettings=_(i,C.jK),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,ga,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,I.g,ot,ca,rt,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function ma(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function pa(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function da(n,o){if(1&n&&(t.YNc(0,ma,2,0,"ng-container",9),t.YNc(1,pa,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ha=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[r.kI.required,r.kI.pattern(/^[a-z\d]{32}$/)]],topic:[""]})}get tokenControl(){return this.settingsForm.get("token")}get topicControl(){return this.settingsForm.get("topic")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("pushplusNotification",this.settings,this.settingsForm.valueChanges.pipe(at(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,da,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&e){const a=t.MAs(7);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function fa(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.pushplusSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let _a=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.pushplusSettings=_(i,C.q1),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,fa,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,I.g,ot,ha,rt,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Ca(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 token\uff01 "),t.BQk())}function za(n,o){1&n&&(t.ynx(0),t._uU(1," token \u65e0\u6548 "),t.BQk())}function va(n,o){if(1&n&&(t.YNc(0,Ca,2,0,"ng-container",9),t.YNc(1,za,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function Oa(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 chatid\uff01 "),t.BQk())}function xa(n,o){1&n&&(t.ynx(0),t._uU(1," chatid \u65e0\u6548 "),t.BQk())}function Ma(n,o){if(1&n&&(t.YNc(0,Oa,2,0,"ng-container",9),t.YNc(1,xa,2,0,"ng-container",9)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}let ba=(()=>{class n{constructor(e,i,a){this.changeDetector=i,this.settingsSyncService=a,this.syncFailedWarningTip=h.yT,this.settingsForm=e.group({token:["",[r.kI.required,r.kI.pattern(/^[0-9]{8,10}:[a-zA-Z0-9_-]{35}$/)]],chatid:["",[r.kI.required,r.kI.pattern(/^(-|[0-9]){0,}$/)]]})}get tokenControl(){return this.settingsForm.get("token")}get chatidControl(){return this.settingsForm.get("chatid")}ngOnChanges(){this.syncStatus=x(this.settings,()=>!0),this.settingsForm.setValue(this.settings)}ngOnInit(){this.settingsSyncService.syncSettings("telegramNotification",this.settings,this.settingsForm.valueChanges.pipe(at(this.settingsForm))).subscribe(e=>{this.syncStatus=Object.assign(Object.assign({},this.syncStatus),M(e)),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO),t.Y36(b))},n.\u0275cmp=t.Xpm({type:n,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(e,i){if(1&e&&(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,va,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,Ma,2,2,"ng-template",null,8,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(7),s=t.MAs(14);t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",a)("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:[r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Ta(n,o){if(1&n&&(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(),t.TgZ(6,"app-page-section",6),t._UZ(7,"app-message-template-settings",2),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("settings",e.notifierSettings),t.xp6(2),t.Q6J("settings",e.telegramSettings),t.xp6(2),t.Q6J("settings",e.notificationSettings),t.xp6(2),t.Q6J("settings",e.messageTemplateSettings)}}let Pa=(()=>{class n{constructor(e,i){this.changeDetector=e,this.route=i}ngOnInit(){this.route.data.subscribe(e=>{const i=e.settings;this.telegramSettings=_(i,C.wA),this.notifierSettings=_(i,C._1),this.notificationSettings=_(i,C.X),this.messageTemplateSettings=_(i,C.tI),this.changeDetector.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,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"],["name","\u6d88\u606f"]],template:function(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Ta,8,4,"ng-template",1),t.qZA())},directives:[G.q,j.Y,I.g,ot,ba,rt,X],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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();var ue=l(4219);function Sa(n,o){1&n&&t._UZ(0,"nz-list-empty")}function wa(n,o){if(1&n){const e=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(e).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(e).index;return t.oxw().remove.emit(s)}),t._uU(11,"\u5220\u9664"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=o.$implicit,i=t.MAs(6);t.xp6(2),t.Oqu(e.url),t.xp6(1),t.Q6J("nzDropdownMenu",i)}}let Fa=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(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,Sa,1,0,"nz-list-empty",7),t.YNc(10,wa,12,2,"nz-list-item",8),t.qZA()),2&e&&(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:[Ot,Ct,st.ix,it.w,pt.SY,R.Ls,d.O5,_t,d.sg,Dt,ct.wA,ct.cm,ct.RR,ue.wO,ue.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}),n})();function ya(n,o){1&n&&(t.ynx(0),t._uU(1," \u8bf7\u8f93\u5165 url\uff01 "),t.BQk())}function Za(n,o){1&n&&(t.ynx(0),t._uU(1," url \u65e0\u6548\uff01 "),t.BQk())}function Aa(n,o){if(1&n&&(t.YNc(0,ya,2,0,"ng-container",27),t.YNc(1,Za,2,0,"ng-container",27)),2&n){const e=o.$implicit;t.Q6J("ngIf",e.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hasError("pattern"))}}function ka(n,o){if(1&n){const e=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,Aa,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(a){return t.CHM(e),t.oxw().setAllChecked(a)}),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&n){const e=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("formGroup",i.settingsForm),t.xp6(4),t.Q6J("nzErrorTip",e),t.xp6(9),t.Q6J("nzChecked",i.allChecked)("nzIndeterminate",i.indeterminate)}}const Da={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 Na=(()=>{class n{constructor(e,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=e.group({url:["",[r.kI.required,r.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(([a])=>"url"!==a).map(([,a])=>a),this.checkboxControls.forEach(a=>a.valueChanges.subscribe(()=>this.updateAllChecked()))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.settingsForm.reset(),this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){void 0===this.settings&&(this.settings=Object.assign({},Da)),this.settingsForm.setValue(this.settings),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}setAllChecked(e){this.indeterminate=!1,this.allChecked=e,this.checkboxControls.forEach(i=>i.setValue(e))}updateAllChecked(){const e=this.checkboxControls.map(i=>i.value);this.allChecked=e.every(i=>i),this.indeterminate=!this.allChecked&&e.some(i=>i)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,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(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,ka,76,4,"ng-container",1),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("nzOkText",i.okButtonText)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.Q7,r.JJ,r.u,d.O5,Tt.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;height:60px}a.setting-item[_ngcontent-%COMP%]:hover{background-color:#2021241a}a.setting-item[_ngcontent-%COMP%]:not(:first-child){height:61px}.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}.setting-control.textarea[_ngcontent-%COMP%]::-webkit-scrollbar, .setting-value.textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}@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}),n})();function Ea(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"app-page-section"),t.TgZ(1,"app-webhook-list",3),t.NdJ("add",function(){return t.CHM(e),t.oxw().addWebhook()})("edit",function(a){return t.CHM(e),t.oxw().editWebhook(a)})("remove",function(a){return t.CHM(e),t.oxw().removeWebhook(a)})("clear",function(){return t.CHM(e),t.oxw().clearWebhook()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("data",e.webhooks)("addable",e.canAdd)}}const Ba=[{path:"email-notification",component:jo,resolve:{settings:It}},{path:"serverchan-notification",component:ia,resolve:{settings:Jt}},{path:"pushdeer-notification",component:ua,resolve:{settings:Lt}},{path:"pushplus-notification",component:_a,resolve:{settings:Ut}},{path:"telegram-notification",component:Pa,resolve:{settings:Yt}},{path:"webhooks",component:(()=>{class n{constructor(e,i,a,s,g){this.changeDetector=e,this.route=i,this.message=a,this.modal=s,this.settingService=g,this.dialogTitle="",this.dialogOkButtonText="",this.dialogVisible=!1,this.editingIndex=-1}get canAdd(){return this.webhooks.length{this.webhooks=e.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(e){const i=this.webhooks.filter((a,s)=>s!==e);this.changeSettings(i).subscribe(()=>this.reset())}editWebhook(e){this.editingIndex=e,this.editingSettings=Object.assign({},this.webhooks[e]),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((e,i)=>{this.changeSettings([]).subscribe(e,i)})})}onDialogCanceled(){this.reset()}onDialogConfirmed(e){let i;-1===this.editingIndex?i=[...this.webhooks,e]:(i=[...this.webhooks],i[this.editingIndex]=e),this.changeSettings(i).subscribe(()=>this.reset())}reset(){this.editingIndex=-1,delete this.editingSettings}changeSettings(e){return this.settingService.changeSettings({webhooks:e}).pipe((0,A.X)(3,300),(0,ut.b)(i=>{this.webhooks=i.webhooks,this.changeDetector.markForCheck()},i=>{this.message.error(`Webhook \u8bbe\u7f6e\u51fa\u9519: ${i.message}`)}))}}return n.MAX_WEBHOOKS=50,n.\u0275fac=function(e){return new(e||n)(t.Y36(t.sBO),t.Y36(f.gz),t.Y36(Mt.dD),t.Y36(O.Sf),t.Y36(k.R))},n.\u0275cmp=t.Xpm({type:n,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(e,i){1&e&&(t.TgZ(0,"app-sub-page",0),t.YNc(1,Ea,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&e&&(t.xp6(2),t.Q6J("title",i.dialogTitle)("okButtonText",i.dialogOkButtonText)("settings",i.editingSettings)("visible",i.dialogVisible))},directives:[G.q,j.Y,I.g,Fa,Na],styles:[""],changeDetection:0}),n})(),resolve:{settings:Wt}},{path:"",component:Wi,resolve:{settings:Qt}}];let qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Ba)],f.Bz]}),n})();function Va(n,o){1&n&&(t.TgZ(0,"p"),t._uU(1," \u8bed\u6cd5\u3001\u53d8\u91cf\u53c2\u8003 "),t.TgZ(2,"a",16),t._uU(3,"wiki"),t.qZA(),t.qZA(),t.TgZ(4,"p"),t._uU(5,"\u7a7a\u503c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u6d88\u606f\u6a21\u677f"),t.qZA())}function Qa(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Va,6,0,"ng-template",null,3,t.W1O),t.TgZ(3,"form",4),t.TgZ(4,"nz-form-item",5),t.TgZ(5,"nz-form-label",6),t._uU(6," \u6d88\u606f\u6807\u9898 "),t.qZA(),t.TgZ(7,"nz-form-control",7),t._UZ(8,"input",8),t.qZA(),t.qZA(),t.TgZ(9,"nz-form-item",9),t.TgZ(10,"nz-form-label",10),t._uU(11," \u6d88\u606f\u7c7b\u578b "),t.qZA(),t.TgZ(12,"nz-form-control",11),t._UZ(13,"nz-select",12),t.qZA(),t.qZA(),t.TgZ(14,"nz-form-item",13),t.TgZ(15,"nz-form-label",6),t._uU(16," \u6d88\u606f\u5185\u5bb9 "),t.qZA(),t.TgZ(17,"nz-form-control",14),t._UZ(18,"textarea",15),t.qZA(),t.qZA(),t.qZA(),t.BQk()),2&n){const e=t.MAs(2),i=t.oxw();t.xp6(3),t.Q6J("nzLayout","vertical")("formGroup",i.settingsForm),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(8),t.Q6J("nzOptions",i.MESSAGE_TYPE_OPTIONS),t.xp6(2),t.Q6J("nzTooltipTitle",e),t.xp6(3),t.Q6J("rows",10)}}function Ia(n,o){if(1&n){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleCancel()}),t._uU(1,"\u53d6\u6d88"),t.qZA(),t.TgZ(2,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().handleConfirm()}),t._uU(3," \u786e\u5b9a "),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("disabled",e.settingsForm.invalid)}}let Ja=(()=>{class n{constructor(e,i){this.changeDetector=i,this.messageTypes=[],this.title="\u4fee\u6539\u6d88\u606f\u6a21\u677f",this.visible=!1,this.visibleChange=new t.vpe,this.cancel=new t.vpe,this.confirm=new t.vpe,this.MESSAGE_TYPE_OPTIONS=[],this.settingsForm=e.group({messageType:[""],messageTitle:[""],messageContent:[""]})}get messageTypeControl(){return this.settingsForm.get("messageType")}get messageTitleControl(){return this.settingsForm.get("messageTitle")}get messageContentControl(){return this.settingsForm.get("messageContent")}ngOnInit(){this.MESSAGE_TYPE_OPTIONS=Array.from(new Set(this.messageTypes)).map(e=>({label:e,value:e}))}ngOnChanges(){this.setValue()}open(){this.setValue(),this.setVisible(!0)}close(){this.setVisible(!1)}setVisible(e){this.visible=e,this.visibleChange.emit(e),this.changeDetector.markForCheck()}setValue(){this.settingsForm.setValue(this.value),this.changeDetector.markForCheck()}handleCancel(){this.cancel.emit(),this.close()}handleConfirm(){this.confirm.emit(this.settingsForm.value),this.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(r.qu),t.Y36(t.sBO))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-message-template-edit-dialog"]],inputs:{value:"value",messageTypes:"messageTypes",title:"title",visible:"visible"},outputs:{visibleChange:"visibleChange",cancel:"cancel",confirm:"confirm"},features:[t.TTD],decls:4,vars:3,consts:[["nzCentered","",3,"nzTitle","nzVisible","nzOkDisabled","nzVisibleChange","nzOnOk","nzOnCancel"],[4,"nzModalContent"],["modalFooter",""],["messageTemplateTip",""],["nz-form","",3,"nzLayout","formGroup"],[1,"setting-item","input"],["nzFor","messageTitle","nzNoColon","",1,"setting-label",3,"nzTooltipTitle"],[1,"setting-control","input"],["type","text","nz-input","","formControlName","messageTitle"],[1,"setting-item","switch"],["nzFor","messageType","nzNoColon","",1,"setting-label"],[1,"setting-control","select"],["formControlName","messageType",3,"nzOptions"],[1,"setting-item","textarea"],[1,"setting-control","textarea"],["nz-input","","wrap","off","formControlName","messageContent",3,"rows"],["href","https://github.com/acgnhiki/blrec/wiki/MessageTemplate","_blank",""],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","default",3,"disabled","click"]],template:function(e,i){1&e&&(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,Qa,19,6,"ng-container",1),t.YNc(2,Ia,4,1,"ng-template",null,2,t.W1O),t.qZA()),2&e&&t.Q6J("nzTitle",i.title)("nzVisible",i.visible)("nzOkDisabled",i.settingsForm.invalid)},directives:[O.du,O.Hf,r._Y,r.JL,c.Lr,r.sg,m.SK,c.Nx,m.t3,c.iK,c.Fd,S.Zp,r.Fj,r.JJ,r.u,W.Vq,st.ix,te.dQ,it.w],styles:["textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}"],changeDetection:0}),n})(),La=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Qt,It,Jt,Lt,Ut,Yt,Wt],imports:[[d.ez,qa,r.u5,r.UX,mt.j,pe.KJ,de.vh,c.U5,S.o7,D.m,Tt.Wr,q.aF,Ce,W.LV,O.Qp,st.sL,R.PV,bn,ct.b1,pt.cg,Tn.S,V.HQ,kn,Dn.m]]}),n})();t.B6R(X,[Ja],[])}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/66.9faa0b5a6adf9602.js b/src/blrec/data/webapp/66.9faa0b5a6adf9602.js deleted file mode 100644 index a647fc0..0000000 --- a/src/blrec/data/webapp/66.9faa0b5a6adf9602.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkblrec=self.webpackChunkblrec||[]).push([[66],{8737:(ae,A,a)=>{a.d(A,{Uk:()=>o,yT:()=>h,_m:()=>e,ip:()=>D,Dr:()=>O,Pu:()=>E,Fg:()=>w,rc:()=>N,J_:()=>S,tp:()=>b,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\{\}]*?)+?)*$/,D="{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"}],E=[{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}))],N=[{label:"\u81ea\u52a8",value:i.zu.AUTO},{label:"\u8c28\u614e",value:i.zu.SAFE},{label:"\u4ece\u4e0d",value:i.zu.NEVER}],S=[{label:"\u9ed8\u8ba4",value:i._l.DEFAULT},{label:"\u53bb\u91cd",value:i._l.DEDUP}],b=[{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 D{constructor(E){this.http=E}getSettings(E=null,w=null){return this.http.get(h+"/api/v1/settings",{params:{include:null!=E?E:[],exclude:null!=w?w:[]}})}changeSettings(E){return this.http.patch(h+"/api/v1/settings",E)}getTaskOptions(E){return this.http.get(h+`/api/v1/settings/tasks/${E}`)}changeTaskOptions(E,w){return this.http.patch(h+`/api/v1/settings/tasks/${E}`,w)}}return D.\u0275fac=function(E){return new(E||D)(t.LFG(o.eN))},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},8760:(ae,A,a)=>{a.d(A,{_l:()=>i,zu:()=>t,gP:()=>o,gq:()=>h,jK:()=>e,q1:()=>D,wA:()=>O,_1:()=>E,X:()=>w,tI:()=>N});var i=(()=>{return(S=i||(i={})).DEFAULT="default",S.DEDUP="dedup",i;var S})(),t=(()=>{return(S=t||(t={})).AUTO="auto",S.SAFE="safe",S.NEVER="never",t;var S})();const o=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],h=["sendkey"],e=["server","pushkey"],D=["token","topic"],O=["token","chatid"],E=["enabled"],w=["notifyBegan","notifyEnded","notifyError","notifySpace"],N=["beganMessageType","beganMessageTitle","beganMessageContent","endedMessageType","endedMessageTitle","endedMessageContent","spaceMessageType","spaceMessageTitle","spaceMessageContent","errorMessageType","errorMessageTitle","errorMessageContent"]},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 D(N,S){if(1&N&&t._UZ(0,"nz-spin",2),2&N){const b=t.oxw();t.Q6J("nzSize","large")("nzSpinning",b.loading)}}function O(N,S){if(1&N&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&N){const b=t.oxw(2);t.Q6J("ngStyle",b.contentStyles),t.xp6(1),t.Q6J("ngTemplateOutlet",b.content.templateRef)}}function E(N,S){if(1&N&&(t.TgZ(0,"div",3),t._UZ(1,"nz-page-header",4),t.YNc(2,O,2,2,"div",5),t.qZA()),2&N){const b=t.oxw();t.Q6J("ngStyle",b.pageStyles),t.xp6(1),t.Q6J("nzTitle",b.pageTitle)("nzGhost",!1),t.xp6(1),t.Q6J("ngIf",b.content)}}let w=(()=>{class N{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return N.\u0275fac=function(b){return new(b||N)},N.\u0275cmp=t.Xpm({type:N,selectors:[["app-sub-page"]],contentQueries:function(b,P,L){if(1&b&&t.Suo(L,i.Y,5),2&b){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(b,P){if(1&b&&(t.YNc(0,D,1,2,"nz-spin",0),t.YNc(1,E,3,4,"ng-template",null,1,t.W1O)),2&b){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}),N})()},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:()=>D});var i=a(6422),t=a(1854),o=a(1999);function h(O,E){return function w(N,S){return(0,i.Z)(N,(b,P,L)=>{const V=Reflect.get(S,L);(0,t.Z)(P,V)||Reflect.set(b,L,(0,o.Z)(P)&&(0,o.Z)(V)?w(P,V):P)})}(O,E)}function e(O,E=" ",w=3){let N,S;if(O<=0)return"0"+E+"kbps";if(O<1e6)N=O/1e3,S="kbps";else if(O<1e9)N=O/1e6,S="Mbps";else if(O<1e12)N=O/1e9,S="Gbps";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);N=O/1e12,S="Tbps"}const b=w-Math.floor(Math.abs(Math.log10(N)))-1;return N.toFixed(b<0?0:b)+E+S}function D(O,E=" ",w=3){let N,S;if(O<=0)return"0"+E+"B/s";if(O<1e3)N=O,S="B/s";else if(O<1e6)N=O/1e3,S="KB/s";else if(O<1e9)N=O/1e6,S="MB/s";else if(O<1e12)N=O/1e9,S="GB/s";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);N=O/1e12,S="TB/s"}const b=w-Math.floor(Math.abs(Math.log10(N)))-1;return N.toFixed(b<0?0:b)+E+S}},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 N=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 D(ie){var he=this.has(ie)&&delete this.__data__[ie];return this.size-=he?1:0,he},y.prototype.get=function S(ie){var he=this.__data__;if(o){var $=he[ie];return"__lodash_hash_undefined__"===$?void 0:$}return N.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 N=a(9329),S=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 D(M){return this.__data__.get(M)},V.prototype.has=function E(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(!N.Z||y.length<199)return y.push([M,I]),this.size=++C.size,this;C=this.__data__=new S.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,D=null==o?0:o.length;++e{a.d(A,{Z:()=>S});var o=a(4825),h=a(4177),e=a(5202),D=a(6667),O=a(7583),w=Object.prototype.hasOwnProperty;const S=function N(b,P){var L=(0,h.Z)(b),V=!L&&(0,o.Z)(b),F=!L&&!V&&(0,e.Z)(b),M=!L&&!V&&!F&&(0,O.Z)(b),I=L||V||F||M,C=I?function i(b,P){for(var L=-1,V=Array(b);++L{a.d(A,{Z:()=>t});const t=function i(o,h){for(var e=-1,D=h.length,O=o.length;++e{a.d(A,{Z:()=>D});var i=a(3496),t=a(3093),h=Object.prototype.hasOwnProperty;const D=function e(O,E,w){var N=O[E];(!h.call(O,E)||!(0,t.Z)(N,w)||void 0===w&&!(E in O))&&(0,i.Z)(O,E,w)}},3496:(ae,A,a)=>{a.d(A,{Z:()=>o});var i=a(2370);const o=function t(h,e,D){"__proto__"==e&&i.Z?(0,i.Z)(h,e,{configurable:!0,enumerable:!0,value:D,writable:!0}):h[e]=D}},4792:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(1999),t=Object.create;const h=function(){function e(){}return function(D){if(!(0,i.Z)(D))return{};if(t)return t(D);e.prototype=D;var O=new e;return e.prototype=void 0,O}}()},1149:(ae,A,a)=>{a.d(A,{Z:()=>O});const h=function i(E){return function(w,N,S){for(var b=-1,P=Object(w),L=S(w),V=L.length;V--;){var F=L[E?V:++b];if(!1===N(P[F],F,P))break}return w}}();var e=a(1952);const O=function D(E,w){return E&&h(E,w,e.Z)}},7298:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(3449),t=a(2168);const h=function o(e,D){for(var O=0,E=(D=(0,i.Z)(D,e)).length;null!=e&&O{a.d(A,{Z:()=>h});var i=a(6623),t=a(4177);const h=function o(e,D,O){var E=D(e);return(0,t.Z)(e)?E:(0,i.Z)(E,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 D(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 N(M){return w.call(M)}(M)}},771:(ae,A,a)=>{a.d(A,{Z:()=>ft});var i=a(5343),t=a(3639);function E(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 E(W){return W==W&&!(0,O.Z)(W)};var N=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 S(W){for(var q=(0,N.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:()=>E});var i=a(1986);const h=(0,a(5820).Z)(Object.keys,Object);var D=Object.prototype.hasOwnProperty;const E=function O(w){if(!(0,i.Z)(w))return h(w);var N=[];for(var S in Object(w))D.call(w,S)&&"constructor"!=S&&N.push(S);return N}},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 D=e;var N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g;const P=function E(H){var J=D(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(N,function(pe,me,Ce,be){J.push(Ce?be.replace(S,"$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(D){return(0,i.Z)(D,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 E=a(1999),w=a(4407),S=/^\[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,E.Z)(Z)||function D(Z){return!!e&&e in Z}(Z))&&((0,i.Z)(Z)?F:S).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:()=>E});var o=a(3419),e=Object.prototype.propertyIsEnumerable,D=Object.getOwnPropertySymbols;const E=D?function(w){return null==w?[]:(w=Object(w),function i(w,N){for(var S=-1,b=null==w?0:w.length,P=0,L=[];++S{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"),S=(0,i.Z)(t.Z,"WeakMap");var b=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)(S),Q=b.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||S&&Q(new S)!=I)&&(Q=function(H){var J=(0,b.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,D){var O=typeof e;return!!(D=null==D?9007199254740991:D)&&("number"==O||"symbol"!=O&&t.test(e))&&e>-1&&e%1==0&&e{a.d(A,{Z:()=>D});var i=a(4177),t=a(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const D=function e(O,E){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!=E&&O in Object(E)}},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 D=e+"";return"0"==D&&1/e==-1/0?"-0":D}},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(D){}try{return e+""}catch(D){}}return""}},3523:(ae,A,a)=>{a.d(A,{Z:()=>_n});var i=a(5343),t=a(7585),o=a(1481),h=a(3496);const D=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:()=>b});const t=function i(P,L){return null!=P&&L in Object(P)};var o=a(3449),h=a(4825),e=a(4177),D=a(6667),O=a(8696),E=a(2168);const b=function S(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:()=>N});var i=a(7079),t=a(214);const e=function h(S){return(0,t.Z)(S)&&"[object Arguments]"==(0,i.Z)(S)};var D=Object.prototype,O=D.hasOwnProperty,E=D.propertyIsEnumerable;const N=e(function(){return arguments}())?e:function(S){return(0,t.Z)(S)&&O.call(S,"callee")&&!E.call(S,"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:()=>N});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 N=(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:()=>E});var i=a(7079),t=a(1999);const E=function O(w){if(!(0,t.Z)(w))return!1;var N=(0,i.Z)(w);return"[object Function]"==N||"[object GeneratorFunction]"==N||"[object AsyncFunction]"==N||"[object Proxy]"==N}},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(D){return"symbol"==typeof D||(0,t.Z)(D)&&"[object Symbol]"==(0,i.Z)(D)}},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(D){return(0,o.Z)(D)?(0,i.Z)(D):(0,t.Z)(D)}},7355:(ae,A,a)=>{a.d(A,{Z:()=>be});var i=Math.ceil,t=Math.max;var e=a(3093),D=a(8706),O=a(6667),E=a(1999);var S=/\s/;var L=/^\s+/;const F=function V(ne){return ne&&ne.slice(0,function b(ne){for(var ce=ne.length;ce--&&S.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,E.Z)(ne)){var ce="function"==typeof ne.valueOf?ne.valueOf():ne;ne=(0,E.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,E.Z)(Y))return!1;var re=typeof ce;return!!("number"==re?(0,D.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:()=>b});var i=a(7585),t=a(4792),o=a(1149),h=a(7242),e=a(5650),D=a(4177),O=a(5202),E=a(2089),w=a(1999),N=a(7583);const b=function S(P,L,V){var F=(0,D.Z)(P),M=F||(0,O.Z)(P)||(0,N.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,E.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),D=a(9808),O=a(647),E=a(226);const w=["textEl"];function N(I,C){if(1&I&&t._UZ(0,"i",3),2&I){const y=t.oxw();t.Q6J("nzType",y.nzIcon)}}function S(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 b(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,N,1,1,"i",0),t.YNc(1,S,1,3,"img",1),t.YNc(2,b,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:[D.O5,O.Ls,D.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:[[E.vT,D.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),D=a(1059),O=a(2198),E=a(9439),w=a(1721),N=a(647),S=a(226),b=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,D.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(E.jY),t.Y36(S.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,N.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:[b.O5,N.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,E.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(S.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:[[S.vT,b.ez,L.vG,N.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),D=a(9439),O=a(226),E=a(9808),w=a(969);function N($,se){1&$&&t.Hsn(0)}const S=["*"];function b($,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,b,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:S,decls:1,vars:0,template:function(_,x){1&_&&(t.F$t(),t.YNc(0,N,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:[E.sg,E.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(D.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:S,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,E.O5,w.f,E.tP,E.PC,E.sg],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,D.oS)(),(0,o.yF)()],$.prototype,"nzBordered",void 0),(0,i.gn)([(0,D.oS)(),(0,o.yF)()],$.prototype,"nzBorderless",void 0),(0,i.gn)([(0,o.yF)()],$.prototype,"nzLoading",void 0),(0,i.gn)([(0,D.oS)(),(0,o.yF)()],$.prototype,"nzHoverable",void 0),(0,i.gn)([(0,D.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:[E.O5,E.tP,w.f],encapsulation:2,changeDetection:0}),$})(),he=(()=>{class ${}return $.\u0275fac=function(_){return new(_||$)},$.\u0275mod=t.oAB({type:$}),$.\u0275inj=t.cJS({imports:[[E.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),D=a(7625),O=a(1721),E=a(5664),w=a(226),N=a(9808);const S=["*"],b=["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:S,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,D.R)(this.destroy$)).subscribe(T=>{T||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,D.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,D.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,D.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(E.tE),t.Y36(w.Is,8))},C.\u0275cmp=t.Xpm({type:C,selectors:[["","nz-checkbox",""]],viewQuery:function(T,f){if(1&T&&t.Gf(b,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:S,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,N.ez,o.u5,E.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,E){this.elementRef=O,this.renderer=E,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:()=>E,vG:()=>w});var i=a(925),t=a(5e3),o=a(6360);class h{constructor(S,b,P,L){this.triggerElement=S,this.ngZone=b,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 S=this.triggerElement,b=this.getWaveColor(S);S.setAttribute(this.waveAttributeName,"true"),!(Date.now(){S.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(S){return!!S&&"#ffffff"!==S&&"rgb(255, 255, 255)"!==S&&this.isNotGrey(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&"transparent"!==S}isNotGrey(S){const b=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(b&&b[1]&&b[2]&&b[3]&&b[1]===b[2]&&b[2]===b[3])}getWaveColor(S){const b=getComputedStyle(S);return b.getPropertyValue("border-top-color")||b.getPropertyValue("border-color")||b.getPropertyValue("background-color")}runTimeoutOutsideZone(S,b){this.ngZone.runOutsideAngular(()=>setTimeout(S,b))}}const e={disabled:!1},D=new t.OlP("nz-wave-global-options",{providedIn:"root",factory:function O(){return e}});let E=(()=>{class N{constructor(b,P,L,V,F){this.ngZone=b,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 b=!1;return this.config&&"boolean"==typeof this.config.disabled&&(b=this.config.disabled),"NoopAnimations"===this.animationType&&(b=!0),b}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 N.\u0275fac=function(b){return new(b||N)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(D,8),t.Y36(o.Qb,8),t.Y36(t.Lbi))},N.\u0275dir=t.lG2({type:N,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),N})(),w=(()=>{class N{}return N.\u0275fac=function(b){return new(b||N)},N.\u0275mod=t.oAB({type:N}),N.\u0275inj=t.cJS({imports:[[i.ud]]}),N})()},5737:(ae,A,a)=>{a.d(A,{g:()=>w,S:()=>N});var i=a(655),t=a(5e3),o=a(1721),h=a(9808),e=a(969),D=a(226);function O(S,b){if(1&S&&(t.ynx(0),t._uU(1),t.BQk()),2&S){const P=t.oxw(2);t.xp6(1),t.Oqu(P.nzText)}}function E(S,b){if(1&S&&(t.TgZ(0,"span",1),t.YNc(1,O,2,1,"ng-container",2),t.qZA()),2&S){const P=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",P.nzText)}}let w=(()=>{class S{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275cmp=t.Xpm({type:S,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,E,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)()],S.prototype,"nzDashed",void 0),(0,i.gn)([(0,o.yF)()],S.prototype,"nzPlain",void 0),S})(),N=(()=>{class S{}return S.\u0275fac=function(P){return new(P||S)},S.\u0275mod=t.oAB({type:S}),S.\u0275inj=t.cJS({imports:[[D.vT,h.ez,e.T]]}),S})()},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),D=a(591),O=a(6787),E=a(3753),w=a(8896),N=a(6053),S=a(7604),b=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 D.X(!1),this.nzTrigger$=new D.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,E.R)(u,"mouseenter").pipe((0,S.h)(!0)),(0,E.R)(u,"mouseleave").pipe((0,S.h)(!1))),le=(0,O.T)(this.nzDropdownMenu.mouseState$,v),ze=(0,E.R)(u,"click").pipe((0,b.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,S.h)(!1)),Qe=(0,O.T)(Ee,Fe,this.overlayClose$).pipe((0,L.h)(()=>!this.nzDisabled)),Ve=(0,O.T)(this.inputVisible$,Qe);(0,N.aj)([Ve,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,b.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 D.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),D=a(9439),O=a(4170),E=a(9808),w=a(969),N=a(226);function S(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 b(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,S,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,b,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,E.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(D.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,E.O5,E.RF,E.n9,E.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:[[N.vT,E.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),D=a(969),O=a(1894),E=a(647),w=a(404),N=a(4182),S=a(8929),b=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 S.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 S.xQ,this.inputChanges$=new S.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=b.w.EMPTY,this.validateString=null,this.destroyed$=new S.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 N.TO||u instanceof N.On?(this.validateControl=u,this.validateString=null,this.watchControl()):u instanceof N.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 N.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,N.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,E.Ls,h.mk,D.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 S.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,D.f,E.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,E.PV,w.cg,t.xu,o.ud,D.T],O.Jb]}),_})()},1894:(ae,A,a)=>{a.d(A,{t3:()=>b,Jb:()=>P,SK:()=>S});var i=a(5e3),t=a(5647),o=a(8929),h=a(7625),e=a(4090),D=a(5113),O=a(925),E=a(226),w=a(1721),N=a(9808);let S=(()=>{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(D.vx),i.Y36(i.R0b),i.Y36(O.t4),i.Y36(e.r3),i.Y36(E.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})(),b=(()=>{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(S,9),i.Y36(i.Qsj),i.Y36(E.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:[[E.vT,N.ez,D.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),D=a(7625),O=a(1059),E=a(7545),w=a(1709),N=a(4850),S=a(1721),b=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,D.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,D.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(b.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,S.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,D.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,D.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,E.w)(k=>(0,h.T)(v,...k.map(le=>le.disabled$))),(0,w.zg)(()=>v),(0,N.U)(k=>k.some(le=>le.disabled)),(0,D.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,S.yF)()],x.prototype,"nzSearch",void 0),(0,i.gn)([(0,S.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),D=a(8514),O=a(7625),E=a(2198),w=a(2986),N=a(1059),S=a(6947),b=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,b.ui)(d)&&(0,b.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,b.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,b.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,b.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,b.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,E.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,E.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,E.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,E.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,b.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,D.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,N.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,S.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,b.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,b.yF)()],s.prototype,"nzMask",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzMaskClosable",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCloseOnNavigation",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzVisible",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzClosable",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzOkLoading",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzOkDisabled",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCancelDisabled",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCancelLoading",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzKeyboard",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzNoAnimation",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCentered",void 0),(0,ce.gn)([(0,b.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),D=a(3753),O=a(7625),E=a(1721),w=a(226),N=a(5664),S=a(9808);const b=["*"],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:b,decls:1,vars:0,template:function(f,Z){1&f&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),(0,t.gn)([(0,E.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,D.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(N.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:b,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,E.yF)()],y.prototype,"nzDisabled",void 0),(0,t.gn)([(0,E.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,S.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),D=a(6787),O=a(3393),E=a(685),w=a(969),N=a(9808),S=a(647),b=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:[N.O5,N.tP,S.Ls,b.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:[E.gB,O.N7,De,Ke,N.O5,O.xd,O.x0,N.RF,N.n9,N.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,N.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,N.O5,S.Ls,b.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,N.RF,N.n9,N.O5,N.ED,N.sg,b.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:[N.O5,S.Ls,b.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:[N.O5,S.Ls,b.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,D.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,L.O)(!0),(0,F.w)(()=>(0,D.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,b.w,y.xu,me.P,N.O5,y.pI,ne.hQ,N.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,N.ez,ce.YI,T.u5,Ce.ud,y.U8,S.PV,w.T,E.Xo,ne.e4,me.g,b.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),D=a(3753),O=a(7625),E=a(9439),w=a(1721),N=a(5664),S=a(226),b=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,D.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,D.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(E.jY),o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(N.tE),o.Y36(S.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:[b.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,E.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:[[S.vT,P.ez,b.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),D=a(4182),O=a(6042),E=a(5577),w=a(6114),N=a(969),S=a(3677),b=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,D.JJ,D.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,D.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(S.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:[S.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,S.RR,ye.Of,w.Ie,O.ix,h.tP,h.O5,rt.w,L.Ls,V.wO,h.sg,V.r9,D.JJ,D.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(E.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,b.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:[N.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(E.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,D.u5,N.T,ye.aF,w.Wr,S.b1,O.sL,h.ez,t.ud,oe,E.y7,Oe.j,P.YI,L.PV,b.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/66.d61b8b935d3ed1ff.js b/src/blrec/data/webapp/66.d61b8b935d3ed1ff.js new file mode 100644 index 0000000..7668f19 --- /dev/null +++ b/src/blrec/data/webapp/66.d61b8b935d3ed1ff.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:()=>D,Dr:()=>O,Pu:()=>N,Fg:()=>w,rc:()=>I,J_:()=>S,tp:()=>b,kV:()=>P,O6:()=>L,D4:()=>V,$w:()=>F,Rc:()=>E});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\{\}]*?)+?)*$/,D="{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}))],I=[{label:"\u81ea\u52a8",value:i.zu.AUTO},{label:"\u8c28\u614e",value:i.zu.SAFE},{label:"\u4ece\u4e0d",value:i.zu.NEVER}],S=[{label:"\u9ed8\u8ba4",value:i._l.DEFAULT},{label:"\u53bb\u91cd",value:i._l.DEDUP}],b=[{label:"FLV",value:"flv"},{label:"HLS (fmp4)",value:"fmp4"}],P=[{label:"\u6807\u51c6",value:"standard"},{label:"\u539f\u59cb",value:"raw"}],L=[{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}],V=[{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}],F=[{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}],E=[{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 D{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 D.\u0275fac=function(N){return new(N||D)(t.LFG(o.eN))},D.\u0275prov=t.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})()},8760:(ae,A,a)=>{a.d(A,{_l:()=>i,zu:()=>t,gP:()=>o,gq:()=>h,jK:()=>e,q1:()=>D,wA:()=>O,_1:()=>N,X:()=>w,tI:()=>I});var i=(()=>{return(S=i||(i={})).DEFAULT="default",S.DEDUP="dedup",i;var S})(),t=(()=>{return(S=t||(t={})).AUTO="auto",S.SAFE="safe",S.NEVER="never",t;var S})();const o=["srcAddr","dstAddr","authCode","smtpHost","smtpPort"],h=["sendkey"],e=["server","pushkey"],D=["token","topic"],O=["token","chatid"],N=["enabled"],w=["notifyBegan","notifyEnded","notifyError","notifySpace"],I=["beganMessageType","beganMessageTitle","beganMessageContent","endedMessageType","endedMessageTitle","endedMessageContent","spaceMessageType","spaceMessageTitle","spaceMessageContent","errorMessageType","errorMessageTitle","errorMessageContent"]},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 D(I,S){if(1&I&&t._UZ(0,"nz-spin",2),2&I){const b=t.oxw();t.Q6J("nzSize","large")("nzSpinning",b.loading)}}function O(I,S){if(1&I&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&I){const b=t.oxw(2);t.Q6J("ngStyle",b.contentStyles),t.xp6(1),t.Q6J("ngTemplateOutlet",b.content.templateRef)}}function N(I,S){if(1&I&&(t.TgZ(0,"div",3),t._UZ(1,"nz-page-header",4),t.YNc(2,O,2,2,"div",5),t.qZA()),2&I){const b=t.oxw();t.Q6J("ngStyle",b.pageStyles),t.xp6(1),t.Q6J("nzTitle",b.pageTitle)("nzGhost",!1),t.xp6(1),t.Q6J("ngIf",b.content)}}let w=(()=>{class I{constructor(){this.pageTitle="",this.loading=!1,this.pageStyles={},this.contentStyles={}}}return I.\u0275fac=function(b){return new(b||I)},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-sub-page"]],contentQueries:function(b,P,L){if(1&b&&t.Suo(L,i.Y,5),2&b){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(b,P){if(1&b&&(t.YNc(0,D,1,2,"nz-spin",0),t.YNc(1,N,3,4,"ng-template",null,1,t.W1O)),2&b){const L=t.MAs(2);t.Q6J("ngIf",P.loading)("ngIfElse",L)}},directives:[o.O5,h.W,o.PC,e.$O,o.tP],styles:["[_nghost-%COMP%]{height:100%;width:100%;position:relative;display:block;margin:0;padding:1rem;background:#f1f1f1;overflow:auto}.sub-page[_ngcontent-%COMP%]{max-width:680px;margin:0 auto}.spinner[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%]{padding-top:0}.sub-page[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-top:3px;margin-bottom:1em}.sub-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}"],changeDetection:0}),I})()},5545:(ae,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:()=>D});var i=a(6422),t=a(1854),o=a(1999);function h(O,N){return function w(I,S){return(0,i.Z)(I,(b,P,L)=>{const V=Reflect.get(S,L);(0,t.Z)(P,V)||Reflect.set(b,L,(0,o.Z)(P)&&(0,o.Z)(V)?w(P,V):P)})}(O,N)}function e(O,N=" ",w=3){let I,S;if(O<=0)return"0"+N+"kbps";if(O<1e6)I=O/1e3,S="kbps";else if(O<1e9)I=O/1e6,S="Mbps";else if(O<1e12)I=O/1e9,S="Gbps";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);I=O/1e12,S="Tbps"}const b=w-Math.floor(Math.abs(Math.log10(I)))-1;return I.toFixed(b<0?0:b)+N+S}function D(O,N=" ",w=3){let I,S;if(O<=0)return"0"+N+"B/s";if(O<1e3)I=O,S="B/s";else if(O<1e6)I=O/1e3,S="KB/s";else if(O<1e9)I=O/1e6,S="MB/s";else if(O<1e12)I=O/1e9,S="GB/s";else{if(!(O<1e15))throw RangeError(`the rate argument ${O} out of range`);I=O/1e12,S="TB/s"}const b=w-Math.floor(Math.abs(Math.log10(I)))-1;return I.toFixed(b<0?0:b)+N+S}},2622:(ae,A,a)=>{a.d(A,{Z:()=>E});var o=a(3093);const e=function h(M,C){for(var y=M.length;y--;)if((0,o.Z)(M[y][0],C))return y;return-1};var O=Array.prototype.splice;function F(M){var C=-1,y=null==M?0:M.length;for(this.clear();++C-1},F.prototype.set=function L(M,C){var y=this.__data__,T=e(y,M);return T<0?(++this.size,y.push([M,C])):y[T][1]=C,this};const E=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 I=Object.prototype.hasOwnProperty;var L=Object.prototype.hasOwnProperty;function y(ie){var he=-1,$=null==ie?0:ie.length;for(this.clear();++he<$;){var se=ie[he];this.set(se[0],se[1])}}y.prototype.clear=function h(){this.__data__=o?o(null):{},this.size=0},y.prototype.delete=function D(ie){var he=this.has(ie)&&delete this.__data__[ie];return this.size-=he?1:0,he},y.prototype.get=function S(ie){var he=this.__data__;if(o){var $=he[ie];return"__lodash_hash_undefined__"===$?void 0:$}return I.call(he,ie)?he[ie]:void 0},y.prototype.has=function V(ie){var he=this.__data__;return o?void 0!==he[ie]:L.call(he,ie)},y.prototype.set=function M(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 I=a(9329),S=a(3639);function V(E){var M=this.__data__=new i.Z(E);this.size=M.size}V.prototype.clear=function t(){this.__data__=new i.Z,this.size=0},V.prototype.delete=function h(E){var M=this.__data__,C=M.delete(E);return this.size=M.size,C},V.prototype.get=function D(E){return this.__data__.get(E)},V.prototype.has=function N(E){return this.__data__.has(E)},V.prototype.set=function P(E,M){var C=this.__data__;if(C instanceof i.Z){var y=C.__data__;if(!I.Z||y.length<199)return y.push([E,M]),this.size=++C.size,this;C=this.__data__=new S.Z(y)}return C.set(E,M),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,D=null==o?0:o.length;++e{a.d(A,{Z:()=>S});var o=a(4825),h=a(4177),e=a(5202),D=a(6667),O=a(7583),w=Object.prototype.hasOwnProperty;const S=function I(b,P){var L=(0,h.Z)(b),V=!L&&(0,o.Z)(b),F=!L&&!V&&(0,e.Z)(b),E=!L&&!V&&!F&&(0,O.Z)(b),M=L||V||F||E,C=M?function i(b,P){for(var L=-1,V=Array(b);++L{a.d(A,{Z:()=>t});const t=function i(o,h){for(var e=-1,D=h.length,O=o.length;++e{a.d(A,{Z:()=>D});var i=a(3496),t=a(3093),h=Object.prototype.hasOwnProperty;const D=function e(O,N,w){var I=O[N];(!h.call(O,N)||!(0,t.Z)(I,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,D){"__proto__"==e&&i.Z?(0,i.Z)(h,e,{configurable:!0,enumerable:!0,value:D,writable:!0}):h[e]=D}},4792:(ae,A,a)=>{a.d(A,{Z:()=>h});var i=a(1999),t=Object.create;const h=function(){function e(){}return function(D){if(!(0,i.Z)(D))return{};if(t)return t(D);e.prototype=D;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,I,S){for(var b=-1,P=Object(w),L=S(w),V=L.length;V--;){var F=L[N?V:++b];if(!1===I(P[F],F,P))break}return w}}();var e=a(1952);const O=function D(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,D){for(var O=0,N=(D=(0,i.Z)(D,e)).length;null!=e&&O{a.d(A,{Z:()=>h});var i=a(6623),t=a(4177);const h=function o(e,D,O){var N=D(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(E){return null==E?void 0===E?"[object Undefined]":"[object Null]":L&&L in Object(E)?function D(E){var M=o.call(E,e),C=E[e];try{E[e]=void 0;var y=!0}catch(f){}var T=h.call(E);return y&&(M?E[e]=C:delete E[e]),T}(E):function I(E){return w.call(E)}(E)}},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 I=a(1952);const L=function P(W,q){return function(ge){return null!=ge&&ge[W]===q&&(void 0!==q||W in Object(ge))}},F=function V(W){var q=function S(W){for(var q=(0,I.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 E=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 M(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]):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 D=Object.prototype.hasOwnProperty;const N=function O(w){if(!(0,i.Z)(w))return h(w);var I=[];for(var S in Object(w))D.call(w,S)&&"constructor"!=S&&I.push(S);return I}},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 D=e;var I=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g;const P=function N(H){var J=D(H,function(me){return 500===pe.size&&pe.clear(),me}),pe=J.cache;return J}(function(H){var J=[];return 46===H.charCodeAt(0)&&J.push(""),H.replace(I,function(pe,me,Ce,be){J.push(Ce?be.replace(S,"$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(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(D){return(0,i.Z)(D,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),S=/^\[object .+?Constructor\]$/,F=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const M=function E(Z){return!(!(0,N.Z)(Z)||function D(Z){return!!e&&e in Z}(Z))&&((0,i.Z)(Z)?F:S).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 M(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,D=Object.getOwnPropertySymbols;const N=D?function(w){return null==w?[]:(w=Object(w),function i(w,I){for(var S=-1,b=null==w?0:w.length,P=0,L=[];++S{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"),S=(0,i.Z)(t.Z,"WeakMap");var b=a(7079),P=a(4407),L="[object Map]",F="[object Promise]",E="[object Set]",M="[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)(S),Q=b.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)!=E||S&&Q(new S)!=M)&&(Q=function(H){var J=(0,b.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 E;case K:return M}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,D){var O=typeof e;return!!(D=null==D?9007199254740991:D)&&("number"==O||"symbol"!=O&&t.test(e))&&e>-1&&e%1==0&&e{a.d(A,{Z:()=>D});var i=a(4177),t=a(6460),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/;const D=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 D=e+"";return"0"==D&&1/e==-1/0?"-0":D}},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(D){}try{return e+""}catch(D){}}return""}},3523:(ae,A,a)=>{a.d(A,{Z:()=>_n});var i=a(5343),t=a(7585),o=a(1481),h=a(3496);const D=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:()=>b});const t=function i(P,L){return null!=P&&L in Object(P)};var o=a(3449),h=a(4825),e=a(4177),D=a(6667),O=a(8696),N=a(2168);const b=function S(P,L){return null!=P&&function w(P,L,V){for(var F=-1,E=(L=(0,o.Z)(L,P)).length,M=!1;++F{a.d(A,{Z:()=>t});const t=function i(o){return o}},4825:(ae,A,a)=>{a.d(A,{Z:()=>I});var i=a(7079),t=a(214);const e=function h(S){return(0,t.Z)(S)&&"[object Arguments]"==(0,i.Z)(S)};var D=Object.prototype,O=D.hasOwnProperty,N=D.propertyIsEnumerable;const I=e(function(){return arguments}())?e:function(S){return(0,t.Z)(S)&&O.call(S,"callee")&&!N.call(S,"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:()=>I});var i=a(5946),h="object"==typeof exports&&exports&&!exports.nodeType&&exports,e=h&&"object"==typeof module&&module&&!module.nodeType&&module,O=e&&e.exports===h?i.Z.Buffer:void 0;const I=(O?O.isBuffer:void 0)||function t(){return!1}},1854:(ae,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 I=(0,i.Z)(w);return"[object Function]"==I||"[object GeneratorFunction]"==I||"[object AsyncFunction]"==I||"[object Proxy]"==I}},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(D){return"symbol"==typeof D||(0,t.Z)(D)&&"[object Symbol]"==(0,i.Z)(D)}},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(D){return(0,o.Z)(D)?(0,i.Z)(D):(0,t.Z)(D)}},7355:(ae,A,a)=>{a.d(A,{Z:()=>be});var i=Math.ceil,t=Math.max;var e=a(3093),D=a(8706),O=a(6667),N=a(1999);var S=/\s/;var L=/^\s+/;const F=function V(ne){return ne&&ne.slice(0,function b(ne){for(var ce=ne.length;ce--&&S.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,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,D.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:()=>b});var i=a(7585),t=a(4792),o=a(1149),h=a(7242),e=a(5650),D=a(4177),O=a(5202),N=a(2089),w=a(1999),I=a(7583);const b=function S(P,L,V){var F=(0,D.Z)(P),E=F||(0,O.Z)(P)||(0,I.Z)(P);if(L=(0,h.Z)(L,4),null==V){var M=P&&P.constructor;V=E?F?new M:[]:(0,w.Z)(P)&&(0,N.Z)(M)?(0,t.Z)((0,e.Z)(P)):{}}return(E?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:()=>E});var i=a(655),t=a(5e3),o=a(9439),h=a(1721),e=a(925),D=a(9808),O=a(647),N=a(226);const w=["textEl"];function I(M,C){if(1&M&&t._UZ(0,"i",3),2&M){const y=t.oxw();t.Q6J("nzType",y.nzIcon)}}function S(M,C){if(1&M){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&M){const y=t.oxw();t.Q6J("src",y.nzSrc,t.LSH),t.uIk("srcset",y.nzSrcSet,t.LSH)("alt",y.nzAlt)}}function b(M,C){if(1&M&&(t.TgZ(0,"span",5,6),t._uU(2),t.qZA()),2&M){const y=t.oxw();t.Q6J("ngStyle",y.textStyles),t.xp6(2),t.Oqu(y.nzText)}}let V=(()=>{class M{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 M.\u0275fac=function(y){return new(y||M)(t.Y36(o.jY),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(e.t4))},M.\u0275cmp=t.Xpm({type:M,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,I,1,1,"i",0),t.YNc(1,S,1,3,"img",1),t.YNc(2,b,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:[D.O5,O.Ls,D.PC],encapsulation:2,changeDetection:0}),(0,i.gn)([(0,o.oS)()],M.prototype,"nzShape",void 0),(0,i.gn)([(0,o.oS)()],M.prototype,"nzSize",void 0),(0,i.gn)([(0,o.oS)(),(0,h.Rn)()],M.prototype,"nzGap",void 0),M})(),E=(()=>{class M{}return M.\u0275fac=function(y){return new(y||M)},M.\u0275mod=t.oAB({type:M}),M.\u0275inj=t.cJS({imports:[[N.vT,D.ez,O.PV,e.ud]]}),M})()},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),D=a(1059),O=a(2198),N=a(9439),w=a(1721),I=a(647),S=a(226),b=a(9808),P=a(2683),L=a(2643);const V=["nz-button",""];function F(f,Z){1&f&&t._UZ(0,"i",1)}const E=["*"],M="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=M,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(M).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,D.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(S.Is,8))},f.\u0275cmp=t.Xpm({type:f,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(K,Q,te){if(1&K&&t.Suo(te,I.Ls,5,t.SBq),2&K){let H;t.iGM(H=t.CRH())&&(Q.nzIconDirectiveElement=H.first)}},hostAttrs:[1,"ant-btn"],hostVars:30,hostBindings:function(K,Q){2&K&&(t.uIk("tabindex",Q.disabled?-1:null===Q.tabIndex?null:Q.tabIndex)("disabled",Q.disabled||null),t.ekj("ant-btn-primary","primary"===Q.nzType)("ant-btn-dashed","dashed"===Q.nzType)("ant-btn-link","link"===Q.nzType)("ant-btn-text","text"===Q.nzType)("ant-btn-circle","circle"===Q.nzShape)("ant-btn-round","round"===Q.nzShape)("ant-btn-lg","large"===Q.nzSize)("ant-btn-sm","small"===Q.nzSize)("ant-btn-dangerous",Q.nzDanger)("ant-btn-loading",Q.nzLoading)("ant-btn-background-ghost",Q.nzGhost)("ant-btn-block",Q.nzBlock)("ant-input-search-button",Q.nzSearch)("ant-btn-rtl","rtl"===Q.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[t.TTD],attrs:V,ngContentSelectors: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,F,1,0,"i",0),t.Hsn(1)),2&K&&t.Q6J("ngIf",Q.nzLoading)},directives:[b.O5,I.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(S.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:[[S.vT,b.ez,L.vG,I.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),D=a(9439),O=a(226),N=a(9808),w=a(969);function I($,se){1&$&&t.Hsn(0)}const S=["*"];function b($,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,b,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 E($,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 M($,se){}function C($,se){if(1&$&&(t.ynx(0),t.YNc(1,M,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:S,decls:1,vars:0,template:function(_,x){1&_&&(t.F$t(),t.YNc(0,I,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),$})(),W=(()=>{class ${constructor(){this.listOfLoading=[["ant-col-22"],["ant-col-8","ant-col-15"],["ant-col-6","ant-col-18"],["ant-col-13","ant-col-9"],["ant-col-4","ant-col-3","ant-col-16"],["ant-col-8","ant-col-6","ant-col-8"]]}}return $.\u0275fac=function(_){return new(_||$)},$.\u0275cmp=t.Xpm({type:$,selectors:[["nz-card-loading"]],hostAttrs:[1,"ant-card-loading-content"],exportAs:["nzCardLoading"],decls:2,vars:1,consts:[[1,"ant-card-loading-content"],["class","ant-row","style","margin-left: -4px; margin-right: -4px;",4,"ngFor","ngForOf"],[1,"ant-row",2,"margin-left","-4px","margin-right","-4px"],["style","padding-left: 4px; padding-right: 4px;",3,"ngClass",4,"ngFor","ngForOf"],[2,"padding-left","4px","padding-right","4px",3,"ngClass"],[1,"ant-card-loading-block"]],template:function(_,x){1&_&&(t.TgZ(0,"div",0),t.YNc(1,P,2,1,"div",1),t.qZA()),2&_&&(t.xp6(1),t.Q6J("ngForOf",x.listOfLoading))},directives:[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(D.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:S,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,D.oS)(),(0,o.yF)()],$.prototype,"nzBordered",void 0),(0,i.gn)([(0,D.oS)(),(0,o.yF)()],$.prototype,"nzBorderless",void 0),(0,i.gn)([(0,o.yF)()],$.prototype,"nzLoading",void 0),(0,i.gn)([(0,D.oS)(),(0,o.yF)()],$.prototype,"nzHoverable",void 0),(0,i.gn)([(0,D.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:()=>M});var i=a(655),t=a(5e3),o=a(4182),h=a(8929),e=a(3753),D=a(7625),O=a(1721),N=a(5664),w=a(226),I=a(9808);const S=["*"],b=["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:S,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,D.R)(this.destroy$)).subscribe(T=>{T||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,D.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,D.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,D.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(b,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:S,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})(),M=(()=>{class C{}return C.\u0275fac=function(T){return new(T||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[w.vT,I.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(S,b,P,L){this.triggerElement=S,this.ngZone=b,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 S=this.triggerElement,b=this.getWaveColor(S);S.setAttribute(this.waveAttributeName,"true"),!(Date.now(){S.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(S){return!!S&&"#ffffff"!==S&&"rgb(255, 255, 255)"!==S&&this.isNotGrey(S)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(S)&&"transparent"!==S}isNotGrey(S){const b=S.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(b&&b[1]&&b[2]&&b[3]&&b[1]===b[2]&&b[2]===b[3])}getWaveColor(S){const b=getComputedStyle(S);return b.getPropertyValue("border-top-color")||b.getPropertyValue("border-color")||b.getPropertyValue("background-color")}runTimeoutOutsideZone(S,b){this.ngZone.runOutsideAngular(()=>setTimeout(S,b))}}const e={disabled:!1},D=new t.OlP("nz-wave-global-options",{providedIn:"root",factory:function O(){return e}});let N=(()=>{class I{constructor(b,P,L,V,F){this.ngZone=b,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 b=!1;return this.config&&"boolean"==typeof this.config.disabled&&(b=this.config.disabled),"NoopAnimations"===this.animationType&&(b=!0),b}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new h(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}}return I.\u0275fac=function(b){return new(b||I)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(D,8),t.Y36(o.Qb,8),t.Y36(t.Lbi))},I.\u0275dir=t.lG2({type:I,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),I})(),w=(()=>{class I{}return I.\u0275fac=function(b){return new(b||I)},I.\u0275mod=t.oAB({type:I}),I.\u0275inj=t.cJS({imports:[[i.ud]]}),I})()},5737:(ae,A,a)=>{a.d(A,{g:()=>w,S:()=>I});var i=a(655),t=a(5e3),o=a(1721),h=a(9808),e=a(969),D=a(226);function O(S,b){if(1&S&&(t.ynx(0),t._uU(1),t.BQk()),2&S){const P=t.oxw(2);t.xp6(1),t.Oqu(P.nzText)}}function N(S,b){if(1&S&&(t.TgZ(0,"span",1),t.YNc(1,O,2,1,"ng-container",2),t.qZA()),2&S){const P=t.oxw();t.xp6(1),t.Q6J("nzStringTemplateOutlet",P.nzText)}}let w=(()=>{class S{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}}return S.\u0275fac=function(P){return new(P||S)},S.\u0275cmp=t.Xpm({type:S,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)()],S.prototype,"nzDashed",void 0),(0,i.gn)([(0,o.yF)()],S.prototype,"nzPlain",void 0),S})(),I=(()=>{class S{}return S.\u0275fac=function(P){return new(P||S)},S.\u0275mod=t.oAB({type:S}),S.\u0275inj=t.cJS({imports:[[D.vT,h.ez,e.T]]}),S})()},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),D=a(591),O=a(6787),N=a(3753),w=a(8896),I=a(6053),S=a(7604),b=a(4850),P=a(7545),L=a(2198),V=a(7138),F=a(5778),E=a(7625),M=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 D.X(!1),this.nzTrigger$=new D.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,S.h)(!0)),(0,N.R)(u,"mouseleave").pipe((0,S.h)(!1))),le=(0,O.T)(this.nzDropdownMenu.mouseState$,v),ze=(0,N.R)(u,"click").pipe((0,b.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,S.h)(!1)),Qe=(0,O.T)(Ee,Fe,this.overlayClose$).pipe((0,L.h)(()=>!this.nzDisabled)),Ve=(0,O.T)(this.inputVisible$,Qe);(0,I.aj)([Ve,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,b.U)(([we,je])=>we||je),(0,V.e)(150),(0,F.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(M.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,M.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 D.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,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),D=a(9439),O=a(4170),N=a(9808),w=a(969),I=a(226);function S(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 b(Y,re){if(1&Y&&(t.ynx(0),t.YNc(1,S,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 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 M(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,b,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,M,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(D.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:[[I.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),D=a(969),O=a(1894),N=a(647),w=a(404),I=a(4182),S=a(8929),b=a(2654),P=a(7625),L=a(2198),V=a(4850),F=a(2994),E=a(1059),M=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 S.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 S.xQ,this.inputChanges$=new S.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=b.w.EMPTY,this.validateString=null,this.destroyed$=new S.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 I.TO||u instanceof I.On?(this.validateControl=u,this.validateString=null,this.watchControl()):u instanceof I.u?(this.validateControl=u.control,this.validateString=null,this.watchControl()):(this.validateString=u,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,E.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 I.oH?this.defaultValidateControl.control:this.defaultValidateControl)}}return _.\u0275fac=function(u){return new(u||_)(e.Y36(e.SBq),e.Y36(ne,9),e.Y36(e.sBO),e.Y36(e.Qsj),e.Y36(y.wi),e.Y36(re,8))},_.\u0275cmp=e.Xpm({type:_,selectors:[["nz-form-control"]],contentQueries:function(u,v,k){if(1&u&&e.Suo(k,I.a5,5),2&u){let le;e.iGM(le=e.CRH())&&(v.defaultValidateControl=le.first)}},inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:"nzDisableAutoTips",nzHasFeedback:"nzHasFeedback",nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],features:[e.TTD],ngContentSelectors:Z,decls:7,vars:3,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-children-icon"],["nz-icon","",3,"nzType",4,"ngIf"],["class","ant-form-item-explain ant-form-item-explain-connected",4,"ngIf"],["class","ant-form-item-extra",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-form-item-extra"],[4,"nzStringTemplateOutlet"]],template:function(u,v){1&u&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"span",2),e.YNc(4,K,1,1,"i",3),e.qZA(),e.qZA(),e.YNc(5,J,3,8,"div",4),e.YNc(6,me,2,1,"div",5)),2&u&&(e.xp6(4),e.Q6J("ngIf",v.nzHasFeedback&&v.iconType),e.xp6(1),e.Q6J("ngIf",v.innerTip),e.xp6(1),e.Q6J("ngIf",v.nzExtra))},directives:[h.O5,N.Ls,h.mk,D.f],encapsulation:2,data:{animation:[M.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 S.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,D.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,D.T],O.Jb]}),_})()},1894:(ae,A,a)=>{a.d(A,{t3:()=>b,Jb:()=>P,SK:()=>S});var i=a(5e3),t=a(5647),o=a(8929),h=a(7625),e=a(4090),D=a(5113),O=a(925),N=a(226),w=a(1721),I=a(9808);let S=(()=>{class L{constructor(F,E,M,C,y,T,f){this.elementRef=F,this.renderer=E,this.mediaMatcher=M,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],E=this.nzGutter||0;return(Array.isArray(E)?E:[E,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,E]=this.getGutter();this.actualGutter$.next([F,E]);const M=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,`-${y/2}px`)};M("margin-left",F),M("margin-right",F),M("margin-top",E),M("margin-bottom",E)}ngOnInit(){var F;this.dir=this.directionality.value,null===(F=this.directionality.change)||void 0===F||F.pipe((0,h.R)(this.destroy$)).subscribe(E=>{this.dir=E}),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(D.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,E){2&F&&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})(),b=(()=>{class L{constructor(F,E,M,C){this.elementRef=F,this.nzRowDirective=E,this.renderer=M,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 E in this.classMap)this.classMap.hasOwnProperty(E)&&this.renderer.removeClass(this.elementRef.nativeElement,E);this.classMap=Object.assign({},F);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(F){return"number"==typeof F?`${F} ${F} auto`:"string"==typeof F&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(F)?`0 0 ${F}`:F}generateClass(){const E={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(M=>{const C=M.replace("nz","").toLowerCase();if((0,w.DX)(this[M]))if("number"==typeof this[M]||"string"==typeof this[M])E[`ant-col-${C}-${this[M]}`]=!0;else{const y=this[M];["span","pull","push","offset","order"].forEach(f=>{E[`ant-col-${C}${"span"===f?"-":`-${f}-`}${y[f]}`]=y&&(0,w.DX)(y[f])})}}),E}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:E}=F;E&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,h.R)(this.destroy$)).subscribe(([F,E])=>{const M=(C,y)=>{null!==y&&this.renderer.setStyle(this.elementRef.nativeElement,C,y/2+"px")};M("padding-left",F),M("padding-right",F),M("padding-top",E),M("padding-bottom",E)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return L.\u0275fac=function(F){return new(F||L)(i.Y36(i.SBq),i.Y36(S,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,E){2&F&&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})(),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,I.ez,D.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),D=a(7625),O=a(1059),N=a(7545),w=a(1709),I=a(4850),S=a(1721),b=a(4182),P=a(226),L=a(5664),V=a(9808),F=a(647),E=a(969),M=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,D.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,D.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(b.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,S.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,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,D.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,D.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,I.U)(k=>k.some(le=>le.disabled)),(0,D.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,S.yF)()],x.prototype,"nzSearch",void 0),(0,i.gn)([(0,S.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,M.ud,E.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),D=a(8514),O=a(7625),N=a(2198),w=a(2986),I=a(1059),S=a(6947),b=a(1721),P=a(9808),L=a(6360),V=a(1777),F=a(5664),E=a(9439),M=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,b.ui)(d)&&(0,b.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,b.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,b.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,b.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(M.wi),o.Y36(o.SBq),o.Y36(F.qV),o.Y36(o.sBO),o.Y36(o.Qsj),o.Y36(i.Iu),o.Y36(E.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,b.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(M.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(E.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,b.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,D.P)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,I.O)(void 0)))}get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const r=this.parentModal;return r?r._afterAllClosed:this.afterAllClosedAtThisLevel}create(r){return this.open(r.nzContent,r)}closeAll(){this.closeModals(this.openModals)}confirm(r={},p="confirm"){return"nzFooter"in r&&(0,S.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,b.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,b.yF)()],s.prototype,"nzMask",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzMaskClosable",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCloseOnNavigation",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzVisible",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzClosable",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzOkLoading",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzOkDisabled",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCancelDisabled",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCancelLoading",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzKeyboard",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzNoAnimation",void 0),(0,ce.gn)([(0,b.yF)()],s.prototype,"nzCentered",void 0),(0,ce.gn)([(0,b.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,M.YI,f.sL,T.PV,ne,W.g,ne]]}),s})()},3868:(ae,A,a)=>{a.d(A,{Bq:()=>V,Of:()=>M,Dg:()=>E,aF:()=>C});var i=a(5e3),t=a(655),o=a(4182),h=a(5647),e=a(8929),D=a(3753),O=a(7625),N=a(1721),w=a(226),I=a(5664),S=a(9808);const b=["*"],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})(),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(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:b,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})(),M=(()=>{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,D.R)(this.elementRef.nativeElement,"click").pipe((0,O.R)(this.destroy$)).subscribe(f=>{f.stopPropagation(),f.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.nzRadioService&&this.nzRadioService.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}}return y.\u0275fac=function(f){return new(f||y)(i.Y36(i.R0b),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(I.tE),i.Y36(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:b,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,S.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),D=a(6787),O=a(3393),N=a(685),w=a(969),I=a(9808),S=a(647),b=a(2683),P=a(655),L=a(1059),V=a(7625),F=a(7545),E=a(4090),M=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:[I.O5,I.tP,S.Ls,b.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,I.O5,O.xd,O.x0,I.RF,I.n9,I.tP],encapsulation:2,changeDetection:0}),z})(),Ye=(()=>{class z{constructor(s,d){this.nzOptionGroupComponent=s,this.destroy$=d,this.changes=new t.xQ,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,L.O)(!0),(0,V.R)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(Pe,8),i.Y36(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,P.gn)([(0,M.yF)()],z.prototype,"nzDisabled",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzHide",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzCustomContent",void 0),z})(),Ge=(()=>{class z{constructor(s,d,r){this.elementRef=s,this.renderer=d,this.focusMonitor=r,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new i.vpe,this.isComposingChange=new i.vpe}setCompositionState(s){this.isComposingChange.next(s)}onValueChange(s){this.value=s,this.valueChange.next(s),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const s=this.mirrorElement.nativeElement,d=this.elementRef.nativeElement,r=this.inputElement.nativeElement;this.renderer.removeStyle(d,"width"),s.innerHTML=this.renderer.createText(`${r.value} `),this.renderer.setStyle(d,"width",`${s.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(s){const d=this.inputElement.nativeElement,{focusTrigger:r,showInput:p}=s;p&&(this.showInput?this.renderer.removeAttribute(d,"readonly"):this.renderer.setAttribute(d,"readonly","readonly")),r&&!0===r.currentValue&&!1===r.previousValue&&d.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}}return z.\u0275fac=function(s){return new(s||z)(i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(pe.tE))},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-search"]],viewQuery:function(s,d){if(1&s&&(i.Gf(k,7),i.Gf(le,5)),2&s){let r;i.iGM(r=i.CRH())&&(d.inputElement=r.first),i.iGM(r=i.CRH())&&(d.mirrorElement=r.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[i._Bn([{provide:T.ve,useValue:!1}]),i.TTD],decls:3,vars:7,consts:[["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModel","disabled","ngModelChange","compositionstart","compositionend"],["inputElement",""],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"],["mirrorElement",""]],template:function(s,d){1&s&&(i.TgZ(0,"input",0,1),i.NdJ("ngModelChange",function(p){return d.onValueChange(p)})("compositionstart",function(){return d.setCompositionState(!0)})("compositionend",function(){return d.setCompositionState(!1)}),i.qZA(),i.YNc(2,ze,2,0,"span",2)),2&s&&(i.Udp("opacity",d.showInput?null:0),i.Q6J("ngModel",d.value)("disabled",d.disabled),i.uIk("id",d.nzId)("autofocus",d.autofocus?"autofocus":null),i.xp6(2),i.Q6J("ngIf",d.mirrorSync))},directives:[T.Fj,T.JJ,T.On,I.O5],encapsulation:2,changeDetection:0}),z})(),it=(()=>{class z{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new i.vpe}onDelete(s){s.preventDefault(),s.stopPropagation(),this.disabled||this.delete.next(s)}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(s,d){2&s&&(i.uIk("title",d.label),i.ekj("ant-select-selection-item-disabled",d.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:5,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],["labelTemplate",""],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(s,d){1&s&&(i.YNc(0,Qe,4,2,"ng-container",0),i.YNc(1,we,2,2,"span",1)),2&s&&(i.Q6J("nzStringTemplateOutlet",d.contentTemplateOutlet)("nzStringTemplateOutletContext",i.VKq(3,je,d.contentTemplateOutletContext)),i.xp6(1),i.Q6J("ngIf",d.deletable&&!d.disabled))},directives:[w.f,I.O5,S.Ls,b.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,I.RF,I.n9,I.O5,I.ED,I.sg,b.w],encapsulation:2,changeDetection:0}),z})(),ot=(()=>{class z{constructor(){this.loading=!1,this.search=!1,this.suffixIcon=null}}return z.\u0275fac=function(s){return new(s||z)},z.\u0275cmp=i.Xpm({type:z,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(s,d){2&s&&i.ekj("ant-select-arrow-loading",d.loading)},inputs:{loading:"loading",search:"search",suffixIcon:"suffixIcon"},decls:3,vars:2,consts:[["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],["defaultArrow",""],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["suffixTemplate",""],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(s,d){if(1&s&&(i.YNc(0,X,1,0,"i",0),i.YNc(1,Me,3,2,"ng-template",null,1,i.W1O)),2&s){const r=i.MAs(2);i.Q6J("ngIf",d.loading)("ngIfElse",r)}},directives:[I.O5,S.Ls,b.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:[I.O5,S.Ls,b.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,D.T)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,L.O)(!0),(0,F.w)(()=>(0,D.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,b.w,y.xu,me.P,I.O5,y.pI,ne.hQ,I.PC],encapsulation:2,data:{animation:[f.mF]},changeDetection:0}),(0,P.gn)([(0,Z.oS)()],z.prototype,"nzSuffixIcon",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzAllowClear",void 0),(0,P.gn)([(0,Z.oS)(),(0,M.yF)()],z.prototype,"nzBorderless",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzShowSearch",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzLoading",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzAutoFocus",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzAutoClearSearchValue",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzServerSearch",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzDisabled",void 0),(0,P.gn)([(0,M.yF)()],z.prototype,"nzOpen",void 0),(0,P.gn)([(0,Z.oS)(),(0,M.yF)()],z.prototype,"nzBackdrop",void 0),z})(),xt=(()=>{class z{}return z.\u0275fac=function(s){return new(s||z)},z.\u0275mod=i.oAB({type:z}),z.\u0275inj=i.cJS({imports:[[be.vT,I.ez,ce.YI,T.u5,Ce.ud,y.U8,S.PV,w.T,N.Xo,ne.e4,me.g,b.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),D=a(3753),O=a(7625),N=a(9439),w=a(1721),I=a(5664),S=a(226),b=a(2643),P=a(9808),L=a(647),V=a(969);const F=["switchElement"];function E(Q,te){1&Q&&o._UZ(0,"i",8)}function M(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,M,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,D.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,D.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(I.tE),o.Y36(S.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,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:[b.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:[[S.vT,P.ez,b.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),D=a(4182),O=a(6042),N=a(5577),w=a(6114),I=a(969),S=a(3677),b=a(685),P=a(4170),L=a(647),V=a(4219),F=a(655),E=a(8929),M=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,D.JJ,D.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 M.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,D.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(S.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:[S.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 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(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,S.RR,ye.Of,w.Ie,O.ix,h.tP,h.O5,rt.w,L.Ls,V.wO,h.sg,V.r9,D.JJ,D.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 M.t(1),this.hasFixLeft$=new M.t(1),this.hasFixRight$=new M.t(1),this.hostWidth$=new M.t(1),this.columnCount$=new M.t(1),this.showEmpty$=new M.t(1),this.noResult$=new M.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 M.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 M.t(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,Ae.U)(n=>n.map(l=>parseInt(l,10)))),this.enableAutoMeasure$=new M.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,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 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(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 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,b.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:[I.f],encapsulation:2,changeDetection:0}),c})(),In=(()=>{class c{constructor(n,l,m,B,ee,_e,ve){this.elementRef=n,this.nzResizeObserver=l,this.nzConfigService=m,this.cdr=B,this.nzTableStyleService=ee,this.nzTableDataService=_e,this.directionality=ve,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Ie=>Ie,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new e.vpe,this.nzPageIndexChange=new e.vpe,this.nzQueryParams=new e.vpe,this.nzCurrentPageDataChange=new e.vpe,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new 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(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 E.xQ,this.listOfFixedColumns$=new M.t(1),this.listOfColumns$=new M.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,D.u5,I.T,ye.aF,w.Wr,S.b1,O.sL,h.ez,t.ud,oe,N.y7,Oe.j,P.YI,L.PV,b.Xo,o.Cl]]}),c})()}}]); \ No newline at end of file diff --git a/src/blrec/data/webapp/index.html b/src/blrec/data/webapp/index.html index 36f9956..229fbd0 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 2e84733..8634de9 100644 --- a/src/blrec/data/webapp/ngsw.json +++ b/src/blrec/data/webapp/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1655391613431, + "timestamp": 1659072298887, "index": "/index.html", "assetGroups": [ { @@ -13,16 +13,16 @@ "urls": [ "/103.5b5d2a6e5a8a7479.js", "/146.92e3b29c4c754544.js", - "/183.ae1a1102b7d5cbdb.js", - "/202.e15e5ae9f06639b8.js", + "/183.90c399afcab1b014.js", + "/202.ad802ed297fef2df.js", "/45.c90c3cea2bf1a66e.js", - "/66.9faa0b5a6adf9602.js", + "/66.d61b8b935d3ed1ff.js", "/common.858f777e9296e6f2.js", "/index.html", "/main.888c50197ddf8040.js", "/manifest.webmanifest", "/polyfills.4b08448aee19bb22.js", - "/runtime.0ce129f346263990.js", + "/runtime.c15d125b613d9f14.js", "/styles.2e152d608221c2ee.css" ], "patterns": [] @@ -1636,10 +1636,10 @@ "hashTable": { "/103.5b5d2a6e5a8a7479.js": "cc0240f217015b6d4ddcc14f31fcc42e1c1c282a", "/146.92e3b29c4c754544.js": "3824de681dd1f982ea69a065cdf54d7a1e781f4d", - "/183.ae1a1102b7d5cbdb.js": "6cb22d60b0a20214212e6050fbbf33926a4c1346", - "/202.e15e5ae9f06639b8.js": "62335dc98644969539760565ff9c3c472d304287", + "/183.90c399afcab1b014.js": "467a8b4c21dace3ae358507932287ca3596051e6", + "/202.ad802ed297fef2df.js": "c66deea0e3fde32c1132430aab75486efb881960", "/45.c90c3cea2bf1a66e.js": "e5bfb8cf3803593e6b8ea14c90b3d3cb6a066764", - "/66.9faa0b5a6adf9602.js": "c2f418ebb80f35402d9f24e5acaf8167c96f9eb3", + "/66.d61b8b935d3ed1ff.js": "6b81e8268d5a2d2596b0a7926985dd80fb06532a", "/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": "374ebd2a9b656c5ebcbc9f5a4402b345cd4c7c5c", + "/index.html": "feb36a563bdcb300ec006c8094686aaf87d27282", "/main.888c50197ddf8040.js": "f506b85641a4598b002c21bc49c9a36e0c058326", "/manifest.webmanifest": "62c1cb8c5ad2af551a956b97013ab55ce77dd586", "/polyfills.4b08448aee19bb22.js": "8e73f2d42cc13ca353cea5c886d930bd6da08d0d", - "/runtime.0ce129f346263990.js": "98698b10b3f873a761f1e1c7fb5a9bcd2f3830ee", + "/runtime.c15d125b613d9f14.js": "40d99ef24a3f99be0f7fb09de4947b23fbd7c682", "/styles.2e152d608221c2ee.css": "9830389a46daa5b4511e0dd343aad23ca9f9690f" }, "navigationUrls": [ diff --git a/src/blrec/data/webapp/runtime.0ce129f346263990.js b/src/blrec/data/webapp/runtime.0ce129f346263990.js deleted file mode 100644 index 0648d91..0000000 --- a/src/blrec/data/webapp/runtime.0ce129f346263990.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,o,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(p=>r.O[p](t[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:"9faa0b5a6adf9602",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",183:"ae1a1102b7d5cbdb",202:"e15e5ae9f06639b8",592:"858f777e9296e6f2"}[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(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=i=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(i))})(),r.p="",(()=>{var e={666:0};r.f.j=(o,f)=>{var n=r.o(e,o)?e[o]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=o){var a=new Promise((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),b=u&&u.target&&u.target.src;l.message="Loading chunk "+o+" failed.\n("+s+": "+b+")",l.name="ChunkLoadError",l.type=s,l.request=b,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(b=>0!==e[b])){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 f=m[e];if(void 0!==f)return f.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(p=>r.O[p](t[l]))?t.splice(l--,1):(c=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return r.d(f,{a:f}),f},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>(592===e?"common":e)+"."+{45:"c90c3cea2bf1a66e",66:"d61b8b935d3ed1ff",103:"5b5d2a6e5a8a7479",146:"92e3b29c4c754544",183:"90c399afcab1b014",202:"ad802ed297fef2df",592:"858f777e9296e6f2"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="blrec:";r.l=(t,i,o,n)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(b);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(p)),g)return g(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tu=f=>(void 0===e&&(e={createScriptURL:t=>t},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e.createScriptURL(f))})(),r.p="",(()=>{var e={666:0};r.f.j=(i,o)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)o.push(n[2]);else if(666!=i){var a=new Promise((u,s)=>n=e[i]=[u,s]);o.push(n[2]=a);var c=r.p+r.u(i),l=new Error;r.l(c,u=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var s=u&&("load"===u.type?"missing":u.type),b=u&&u.target&&u.target.src;l.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",l.name="ChunkLoadError",l.type=s,l.request=b,n[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var f=(i,o)=>{var l,d,[n,a,c]=o,u=0;if(n.some(b=>0!==e[b])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(c)var s=c(r)}for(i&&i(o);u None: + super().__init__() + self._playlist_dumper = playlist_dumper + self._metadata_provider = metadata_provider + self._metadata: Dict[str, Any] = {} + + def _do_enable(self) -> None: + self._file_opened_subscription = self._playlist_dumper.file_opened.subscribe( + self._on_playlist_file_opened + ) + logger.debug('Enabled metadata dumper') + + def _do_disable(self) -> None: + with suppress(Exception): + self._file_opened_subscription.dispose() + del self._file_opened_subscription + self._metadata.clear() + logger.debug('Disabled metadata dumper') + + def _on_playlist_file_opened(self, args: Tuple[str, int]) -> None: + playlist_path, _ = args + metadata = self._metadata_provider({}) + self._dump_metadata(playlist_path, metadata) + + def _dump_metadata(self, playlist_path: str, metadata: Dict[str, Any]) -> None: + path = record_metadata_path(playlist_path) + logger.debug(f"Dumping metadata to file: '{path}'") + + with open(path, 'wt', encoding='utf8') as file: + json.dump(metadata, file, ensure_ascii=False) diff --git a/src/blrec/hls/operators/__init__.py b/src/blrec/hls/operators/__init__.py new file mode 100644 index 0000000..841bdd8 --- /dev/null +++ b/src/blrec/hls/operators/__init__.py @@ -0,0 +1,20 @@ +from .playlist_dumper import PlaylistDumper +from .playlist_fetcher import PlaylistFetcher +from .playlist_resolver import PlaylistResolver +from .prober import Prober, StreamProfile +from .segment_dumper import SegmentDumper +from .segment_fetcher import InitSectionData, SegmentData, SegmentFetcher +from .segment_remuxer import SegmentRemuxer + +__all__ = ( + 'InitSectionData', + 'PlaylistDumper', + 'PlaylistFetcher', + 'PlaylistResolver', + 'Prober', + 'SegmentData', + 'SegmentDumper', + 'SegmentFetcher', + 'SegmentRemuxer', + 'StreamProfile', +) diff --git a/src/blrec/hls/operators/playlist_dumper.py b/src/blrec/hls/operators/playlist_dumper.py new file mode 100644 index 0000000..a5600b4 --- /dev/null +++ b/src/blrec/hls/operators/playlist_dumper.py @@ -0,0 +1,183 @@ +from __future__ import annotations + +import io +import logging +import os +from copy import deepcopy +from decimal import Decimal +from typing import Callable, Optional, Tuple + +import m3u8 +from reactivex import Observable, Subject, abc +from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable + +__all__ = ('PlaylistDumper',) + +logger = logging.getLogger(__name__) + + +class PlaylistDumper: + def __init__(self, path_provider: Callable[..., Tuple[str, int]]) -> None: + self._path_provider = path_provider + self._file_opened: Subject[Tuple[str, int]] = Subject() + self._file_closed: Subject[str] = Subject() + self._reset() + + def _reset(self) -> None: + self._path: str = '' + self._file: Optional[io.TextIOWrapper] = None + self._duration: Decimal = Decimal() + + @property + def path(self) -> str: + return self._path + + @property + def duration(self) -> float: + return float(self._duration) + + @property + def file_opened(self) -> Observable[Tuple[str, int]]: + return self._file_opened + + @property + def file_closed(self) -> Observable[str]: + return self._file_closed + + def __call__(self, source: Observable[m3u8.M3U8]) -> Observable[m3u8.Segment]: + return self._dump(source) + + def _open_file(self) -> None: + path, timestamp = self._path_provider() + root, ext = os.path.splitext(path) + os.makedirs(root, exist_ok=True) + self._path = os.path.join(root, 'index.m3u8') + self._file = open(self._path, 'wt', encoding='utf8') # type: ignore + logger.debug(f'Opened file: {self._path}') + self._file_opened.on_next((self._path, timestamp)) + + def _close_file(self) -> None: + if self._file is not None and not self._file.closed: + self._file.write('#EXT-X-ENDLIST') + self._file.close() + logger.debug(f'Closed file: {self._path}') + self._file_closed.on_next(self._path) + + def _name_of(self, uri: str) -> str: + name, ext = os.path.splitext(uri) + return name + + def _sequence_number_of(self, uri: str) -> int: + return int(self._name_of(uri)) + + def _replace_uri(self, segment: m3u8.Segment) -> m3u8.Segment: + copied_seg = deepcopy(segment) + if init_section := getattr(copied_seg, 'init_section', None): + init_section.uri = f'segments/{init_section.uri}' + uri = segment.uri + name = self._name_of(uri) + copied_seg.uri = 'segments/%s/%s' % (name[:-3], uri) + return copied_seg + + def _replace_all_uri(self, playlist: m3u8.M3U8) -> m3u8.M3U8: + copied_playlist = deepcopy(playlist) + copied_playlist.segments = m3u8.SegmentList( + self._replace_uri(s) for s in copied_playlist.segments + ) + return copied_playlist + + def _update_duration(self, segment: m3u8.Segment) -> None: + self._duration += Decimal(str(segment.duration)) + + def _dump(self, source: Observable[m3u8.M3U8]) -> Observable[m3u8.Segment]: + def subscribe( + observer: abc.ObserverBase[m3u8.Segment], + scheduler: Optional[abc.SchedulerBase] = None, + ) -> abc.DisposableBase: + disposed = False + subscription = SerialDisposable() + + last_segment: Optional[m3u8.Segment] = None + last_sequence_number: Optional[int] = None + first_playlist_dumped: bool = False + + self._close_file() + self._reset() + + def on_next(playlist: m3u8.M3U8) -> None: + nonlocal last_sequence_number, last_segment, first_playlist_dumped + + if playlist.is_endlist: + logger.debug('Playlist ended') + + try: + if not first_playlist_dumped: + self._close_file() + self._reset() + self._open_file() + assert self._file is not None + playlist.is_endlist = False + self._file.write(self._replace_all_uri(playlist).dumps()) + self._file.flush() + for seg in playlist.segments: + observer.on_next(seg) + self._update_duration(seg) + last_segment = seg + last_sequence_number = self._sequence_number_of(seg.uri) + first_playlist_dumped = True + logger.debug('The first playlist has been dumped') + return + + assert self._file is not None + for seg in playlist.segments: + num = self._sequence_number_of(seg.uri) + discontinuity = False + if last_sequence_number is not None: + if last_sequence_number >= num: + continue + if last_sequence_number + 1 != num: + logger.warning( + 'Segments discontinuous: ' + f'last sequence number: {last_sequence_number}, ' + f'current sequence number: {num}' + ) + discontinuity = True + new_seg = self._replace_uri(seg) + new_seg.discontinuity = discontinuity + new_last_seg = self._replace_uri(last_segment) + self._file.write(new_seg.dumps(new_last_seg) + '\n') + observer.on_next(seg) + self._update_duration(seg) + last_segment = seg + last_sequence_number = num + except Exception as e: + self._close_file() + self._reset() + observer.on_error(e) + + def on_completed() -> None: + self._close_file() + self._reset() + observer.on_completed() + + def on_error(e: Exception) -> None: + self._close_file() + self._reset() + observer.on_error(e) + + def dispose() -> None: + nonlocal disposed + nonlocal last_segment, last_sequence_number + disposed = True + last_segment = None + last_sequence_number = None + self._close_file() + self._reset() + + subscription.disposable = source.subscribe( + on_next, on_error, on_completed, scheduler=scheduler + ) + + return CompositeDisposable(subscription, Disposable(dispose)) + + return Observable(subscribe) diff --git a/src/blrec/core/operators/playlist_fetcher.py b/src/blrec/hls/operators/playlist_fetcher.py similarity index 97% rename from src/blrec/core/operators/playlist_fetcher.py rename to src/blrec/hls/operators/playlist_fetcher.py index 6bb3747..4efc6d6 100644 --- a/src/blrec/core/operators/playlist_fetcher.py +++ b/src/blrec/hls/operators/playlist_fetcher.py @@ -12,8 +12,8 @@ from reactivex import Observable, abc from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable from tenacity import retry, retry_if_exception_type, stop_after_delay, wait_exponential -from ...bili.live import Live -from ...utils.mixins import SupportDebugMixin +from blrec.bili.live import Live +from blrec.utils.mixins import SupportDebugMixin __all__ = ('PlaylistFetcher',) diff --git a/src/blrec/core/operators/playlist_resolver.py b/src/blrec/hls/operators/playlist_resolver.py similarity index 54% rename from src/blrec/core/operators/playlist_resolver.py rename to src/blrec/hls/operators/playlist_resolver.py index 5831197..a935b45 100644 --- a/src/blrec/core/operators/playlist_resolver.py +++ b/src/blrec/hls/operators/playlist_resolver.py @@ -1,7 +1,8 @@ from __future__ import annotations import logging -from typing import Final, Optional, Set +import os +from typing import Final, Optional import m3u8 import urllib3 @@ -17,11 +18,16 @@ logging.getLogger(urllib3.__name__).setLevel(logging.WARNING) class PlaylistResolver: - _MAX_LAST_SEG_URIS: Final[int] = 30 - def __call__(self, source: Observable[m3u8.M3U8]) -> Observable[m3u8.Segment]: return self._solve(source) + def _name_of(self, uri: str) -> str: + name, ext = os.path.splitext(uri) + return name + + def _sequence_number_of(self, uri: str) -> int: + return int(self._name_of(uri)) + def _solve(self, source: Observable[m3u8.M3U8]) -> Observable[m3u8.Segment]: def subscribe( observer: abc.ObserverBase[m3u8.Segment], @@ -30,35 +36,36 @@ class PlaylistResolver: disposed = False subscription = SerialDisposable() - last_seg_uris: OrderedSet[str] = OrderedSet() + last_sequence_number: Optional[int] = None def on_next(playlist: m3u8.M3U8) -> None: - curr_seg_uris: Set[str] = set() - - for seg in playlist.segments: - if disposed: - return - curr_seg_uris.add(seg.uri) - if seg.uri not in last_seg_uris: - observer.on_next(seg) - last_seg_uris.add(seg.uri) - if len(last_seg_uris) > self._MAX_LAST_SEG_URIS: - last_seg_uris.pop(0) - - if last_seg_uris and not curr_seg_uris.intersection(last_seg_uris): - logger.debug( - 'Segments broken!\n' - f'Last segments uris: {last_seg_uris}\n' - f'Current segments uris: {curr_seg_uris}' - ) + nonlocal last_sequence_number if playlist.is_endlist: logger.debug('Playlist ended') + for seg in playlist.segments: + uri = seg.uri + name = self._name_of(uri) + num = int(name) + if last_sequence_number is not None: + if last_sequence_number >= num: + continue + if last_sequence_number + 1 != num: + logger.warning( + 'Segments discontinuous: ' + f'last sequence number: {last_sequence_number}, ' + f'current sequence number: {num}' + ) + seg.discontinuity = True + observer.on_next(seg) + last_sequence_number = num + def dispose() -> None: nonlocal disposed + nonlocal last_sequence_number disposed = True - last_seg_uris.clear() + last_sequence_number = None subscription.disposable = source.subscribe( on_next, observer.on_error, observer.on_completed, scheduler=scheduler diff --git a/src/blrec/core/operators/hls_prober.py b/src/blrec/hls/operators/prober.py similarity index 96% rename from src/blrec/core/operators/hls_prober.py rename to src/blrec/hls/operators/prober.py index ccb5907..0157e04 100644 --- a/src/blrec/core/operators/hls_prober.py +++ b/src/blrec/hls/operators/prober.py @@ -7,16 +7,17 @@ from typing import List, Optional, Union from reactivex import Observable, Subject, abc from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable -from ...utils.ffprobe import StreamProfile, ffprobe +from blrec.utils.ffprobe import StreamProfile, ffprobe + from .segment_fetcher import InitSectionData, SegmentData -__all__ = ('HLSProber', 'StreamProfile') +__all__ = ('Prober', 'StreamProfile') logger = logging.getLogger(__name__) -class HLSProber: +class Prober: def __init__(self) -> None: self._profiles: Subject[StreamProfile] = Subject() diff --git a/src/blrec/hls/operators/segment_dumper.py b/src/blrec/hls/operators/segment_dumper.py new file mode 100644 index 0000000..0230707 --- /dev/null +++ b/src/blrec/hls/operators/segment_dumper.py @@ -0,0 +1,79 @@ +import logging +import os +from typing import Optional, Tuple, Union + +from reactivex import Observable, Subject, abc +from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable + +from blrec.hls.operators.segment_fetcher import InitSectionData, SegmentData + +from .playlist_dumper import PlaylistDumper + +__all__ = ('SegmentDumper',) + +logger = logging.getLogger(__name__) + + +class SegmentDumper: + def __init__(self, playlist_dumper: PlaylistDumper) -> None: + self._playlist_dumper = playlist_dumper + self._out_dir: str = '' + + def on_next(args: Tuple[str, int]) -> None: + path, timestamp = args + self._out_dir = os.path.dirname(path) + + self._playlist_dumper.file_opened.subscribe(on_next) + self._file_opened: Subject[Tuple[str, int]] = Subject() + self._file_closed: Subject[str] = Subject() + + @property + def file_opened(self) -> Observable[Tuple[str, int]]: + return self._file_opened + + @property + def file_closed(self) -> Observable[str]: + return self._file_closed + + def __call__( + self, source: Observable[Union[InitSectionData, SegmentData]] + ) -> Observable[Union[InitSectionData, SegmentData]]: + return self._dump(source) + + def _dump( + self, source: Observable[Union[InitSectionData, SegmentData]] + ) -> Observable[Union[InitSectionData, SegmentData]]: + def subscribe( + observer: abc.ObserverBase[Union[InitSectionData, SegmentData]], + scheduler: Optional[abc.SchedulerBase] = None, + ) -> abc.DisposableBase: + subscription = SerialDisposable() + + def on_next(item: Union[InitSectionData, SegmentData]) -> None: + if isinstance(item, InitSectionData): + uri = item.init_section.uri + path = os.path.join(self._out_dir, 'segments', uri) + else: + uri = item.segment.uri + name, ext = os.path.splitext(uri) + path = os.path.join(self._out_dir, 'segments', name[:-3], uri) + os.makedirs(os.path.dirname(path), exist_ok=True) + try: + with open(path, 'wb') as file: + file.write(item.payload) + except Exception as e: + logger.error(f'Failed to dump segmemt: {repr(e)}') + observer.on_error(e) + else: + observer.on_next(item) + + def dispose() -> None: + pass + + subscription.disposable = source.subscribe( + on_next, observer.on_error, observer.on_completed, scheduler=scheduler + ) + + return CompositeDisposable(subscription, Disposable(dispose)) + + return Observable(subscribe) diff --git a/src/blrec/core/operators/segment_fetcher.py b/src/blrec/hls/operators/segment_fetcher.py similarity index 64% rename from src/blrec/core/operators/segment_fetcher.py rename to src/blrec/hls/operators/segment_fetcher.py index d850703..8c89013 100644 --- a/src/blrec/core/operators/segment_fetcher.py +++ b/src/blrec/hls/operators/segment_fetcher.py @@ -12,7 +12,10 @@ from reactivex import Observable, abc from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable from tenacity import retry, retry_if_exception_type, stop_after_delay, wait_exponential -from ...bili.live import Live +from blrec.bili.live import Live +from blrec.utils.hash import cksum + +from ..exceptions import SegmentDataCorrupted __all__ = ('SegmentFetcher', 'InitSectionData', 'SegmentData') @@ -22,6 +25,7 @@ logger = logging.getLogger(__name__) @attr.s(auto_attribs=True, slots=True, frozen=True) class InitSectionData: + init_section: InitializationSection payload: bytes def __len__(self) -> int: @@ -30,6 +34,7 @@ class InitSectionData: @attr.s(auto_attribs=True, slots=True, frozen=True) class SegmentData: + segment: m3u8.Segment payload: bytes def __len__(self) -> int: @@ -56,30 +61,52 @@ class SegmentFetcher: disposed = False subscription = SerialDisposable() - init_section: Optional[InitializationSection] = None + last_segment: Optional[m3u8.Segment] = None def on_next(seg: m3u8.Segment) -> None: - nonlocal init_section + nonlocal last_segment url: str = '' + try: - if getattr(seg, 'init_section', None) and ( - not init_section or seg.init_section.uri != init_section.uri + if hasattr(seg, 'init_section') and ( + ( + last_segment is None + or seg.init_section != last_segment.init_section + or seg.discontinuity + ) ): url = seg.init_section.absolute_uri data = self._fetch_segment(url) - init_section = seg.init_section - observer.on_next(InitSectionData(payload=data)) + observer.on_next( + InitSectionData(init_section=seg.init_section, payload=data) + ) + last_segment = seg + url = seg.absolute_uri - data = self._fetch_segment(url) - observer.on_next(SegmentData(payload=data)) + crc32 = seg.title.split('|')[-1] + for _ in range(3): + data = self._fetch_segment(url) + crc32_of_data = cksum(data) + if crc32_of_data == crc32: + break + logger.debug( + 'Segment data corrupted: ' + f'correct crc32: {crc32}, ' + f'crc32 of segment data: {crc32_of_data}, ' + f'segment url: {url}' + ) + else: + raise SegmentDataCorrupted(crc32, crc32_of_data) except Exception as e: logger.warning(f'Failed to fetch segment {url}: {repr(e)}') + else: + observer.on_next(SegmentData(segment=seg, payload=data)) def dispose() -> None: nonlocal disposed - nonlocal init_section + nonlocal last_segment disposed = True - init_section = None + last_segment = None subscription.disposable = source.subscribe( on_next, observer.on_error, observer.on_completed, scheduler=scheduler diff --git a/src/blrec/core/operators/segment_remuxer.py b/src/blrec/hls/operators/segment_remuxer.py similarity index 98% rename from src/blrec/core/operators/segment_remuxer.py rename to src/blrec/hls/operators/segment_remuxer.py index 2e8b97c..0df8302 100644 --- a/src/blrec/core/operators/segment_remuxer.py +++ b/src/blrec/hls/operators/segment_remuxer.py @@ -8,8 +8,9 @@ import urllib3 from reactivex import Observable, abc from reactivex.disposable import CompositeDisposable, Disposable, SerialDisposable -from ...bili.live import Live -from ...utils.io import wait_for +from blrec.bili.live import Live +from blrec.utils.io import wait_for + from ..stream_remuxer import StreamRemuxer from .segment_fetcher import InitSectionData, SegmentData diff --git a/src/blrec/core/stream_remuxer.py b/src/blrec/hls/stream_remuxer.py similarity index 96% rename from src/blrec/core/stream_remuxer.py rename to src/blrec/hls/stream_remuxer.py index 0d0b866..a0f0035 100644 --- a/src/blrec/core/stream_remuxer.py +++ b/src/blrec/hls/stream_remuxer.py @@ -1,16 +1,16 @@ import errno import io import logging -from contextlib import suppress import os import re import shlex +from contextlib import suppress from subprocess import PIPE, CalledProcessError, Popen from threading import Condition, Thread from typing import Optional, cast -from ..utils.io import wait_for -from ..utils.mixins import StoppableMixin, SupportDebugMixin +from blrec.utils.io import wait_for +from blrec.utils.mixins import StoppableMixin, SupportDebugMixin logger = logging.getLogger(__name__) @@ -150,7 +150,7 @@ class StreamRemuxer(StoppableMixin, SupportDebugMixin): self._check_error(line) if not self._stopped and self._subprocess.returncode not in (0, 255): - # 255: Exiting normally, received signal 2. + # 255: Exiting standardly, received signal 2. raise CalledProcessError(self._subprocess.returncode, cmd=cmd) def _check_error(self, line: str) -> None: diff --git a/src/blrec/path/__init__.py b/src/blrec/path/__init__.py index d1489e3..40d3e13 100644 --- a/src/blrec/path/__init__.py +++ b/src/blrec/path/__init__.py @@ -1,20 +1,21 @@ from .helpers import ( - file_exists, + cover_path, create_file, danmaku_path, - cover_path, - raw_danmaku_path, - extra_metadata_path, escape_path, + extra_metadata_path, + file_exists, + raw_danmaku_path, + record_metadata_path, ) - __all__ = ( - 'file_exists', + 'cover_path', 'create_file', 'danmaku_path', - 'cover_path', - 'raw_danmaku_path', - 'extra_metadata_path', 'escape_path', + 'extra_metadata_path', + 'file_exists', + 'raw_danmaku_path', + 'record_metadata_path', ) diff --git a/src/blrec/path/helpers.py b/src/blrec/path/helpers.py index 65daf6a..f08c972 100644 --- a/src/blrec/path/helpers.py +++ b/src/blrec/path/helpers.py @@ -1,16 +1,17 @@ -import re import os +import re from pathlib import PurePath - __all__ = ( - 'file_exists', + 'cover_path', 'create_file', 'danmaku_path', - 'cover_path', - 'raw_danmaku_path', - 'extra_metadata_path', 'escape_path', + 'extra_metadata_path', + 'ffmpeg_metadata_path', + 'record_metadata_path', + 'file_exists', + 'raw_danmaku_path', ) @@ -40,5 +41,13 @@ def extra_metadata_path(video_path: str) -> str: return video_path + '.meta.json' +def record_metadata_path(video_path: str) -> str: + return str(PurePath(video_path).with_suffix('.meta.json')) + + +def ffmpeg_metadata_path(video_path: str) -> str: + return video_path + '.meta' + + def escape_path(path: str) -> str: return re.sub(r'[\\/:*?"<>|]', '', path) diff --git a/src/blrec/postprocess/ffmpeg_metadata.py b/src/blrec/postprocess/ffmpeg_metadata.py index 7524056..6b9d91b 100644 --- a/src/blrec/postprocess/ffmpeg_metadata.py +++ b/src/blrec/postprocess/ffmpeg_metadata.py @@ -1,25 +1,38 @@ +from __future__ import annotations + +import asyncio import json import logging -from typing import Iterable, cast +from decimal import Decimal +from typing import Iterable, List, Tuple, cast import aiofiles +import m3u8 -from ..flv.helpers import make_comment_for_joinpoints -from ..flv.operators import JoinPoint -from .helpers import get_extra_metadata, get_metadata +from blrec.flv.helpers import make_comment_for_joinpoints +from blrec.flv.operators import JoinPoint +from blrec.flv.utils import format_timestamp +from blrec.path.helpers import ffmpeg_metadata_path + +from .helpers import get_extra_metadata, get_metadata, get_record_metadata logger = logging.getLogger(__name__) -async def make_metadata_file(flv_path: str) -> str: - path = flv_path + '.meta' - async with aiofiles.open(path, 'wb') as f: - content = await _make_metadata_content(flv_path) - await f.write(content.encode(encoding='utf8')) +async def make_metadata_file(video_path: str) -> str: + path = ffmpeg_metadata_path(video_path) + async with aiofiles.open(path, 'wb') as file: + if video_path.endswith('.flv'): + content = await _make_metadata_content_for_flv(video_path) + elif video_path.endswith('.m3u8'): + content = await _make_metadata_content_for_m3u8(video_path) + else: + raise NotImplementedError(video_path) + await file.write(content.encode(encoding='utf8')) return path -async def _make_metadata_content(flv_path: str) -> str: +async def _make_metadata_content_for_flv(flv_path: str) -> str: metadata = await get_metadata(flv_path) try: extra_metadata = await get_extra_metadata(flv_path) @@ -37,7 +50,7 @@ async def _make_metadata_content(flv_path: str) -> str: cast(float, extra_metadata.get('duration') or metadata.get('duration')) * 1000 ) - chapters = _make_chapters(join_points, last_timestamp) + chapters = _make_chapters_for_flv(join_points, last_timestamp) comment = '\\\n'.join(comment.splitlines()) @@ -55,7 +68,9 @@ Comment={comment} """ -def _make_chapters(join_points: Iterable[JoinPoint], last_timestamp: int) -> str: +def _make_chapters_for_flv( + join_points: Iterable[JoinPoint], last_timestamp: int +) -> str: join_points = filter(lambda p: not p.seamless, join_points) timestamps = list(map(lambda p: p.timestamp, join_points)) if not timestamps: @@ -78,3 +93,72 @@ END={end} title=segment \\#{i} """ return result + + +async def _make_metadata_content_for_m3u8(playlist_path: str) -> str: + metadata = await get_record_metadata(playlist_path) + comment = cast(str, metadata.get('Comment', '')) + chapters = '' + + timestamps, duration = await _get_discontinuities(playlist_path) + if timestamps: + comment += '\n\n' + _make_comment_for_discontinuities(timestamps) + chapters = _make_chapters_for_m3u8(timestamps, duration) + + comment = '\\\n'.join(comment.splitlines()) + + # ref: https://ffmpeg.org/ffmpeg-formats.html#Metadata-1 + return f"""\ +;FFMETADATA1 +Title={metadata['Title']} +Artist={metadata['Artist']} +Date={metadata['Date']} +# Description may be truncated! +Description={json.dumps(metadata['description'], ensure_ascii=False)} +Comment={comment} + +{chapters} +""" + + +def _make_chapters_for_m3u8(timestamps: Iterable[int], duration: float) -> str: + timestamps = list(timestamps) + if not timestamps: + return '' + + timestamps.insert(0, 0) + timestamps.append(int(duration * 1000)) + + result = '' + for i in range(1, len(timestamps)): + start = timestamps[i - 1] + end = timestamps[i] + if end < start: + logger.warning(f'Chapter end time {end} before start {start}') + end = start + result += f"""\ +[CHAPTER] +TIMEBASE=1/1000 +START={start} +END={end} +title=segment \\#{i} +""" + return result + + +def _make_comment_for_discontinuities(timestamps: Iterable[int]) -> str: + return 'HLS片段不连续位置:\n' + '\n'.join( + ('时间戳:{}'.format(format_timestamp(ts)) for ts in timestamps) + ) + + +async def _get_discontinuities(playlist_path: str) -> Tuple[List[int], float]: + loop = asyncio.get_running_loop() + playlist = await loop.run_in_executor(None, m3u8.load, playlist_path) + duration = Decimal() + timestamps: List[int] = [] + for seg in playlist.segments: + if seg.discontinuity: + timestamps.append(int(duration * 1000)) + duration += Decimal(str(seg.duration)) + return timestamps, float(duration) diff --git a/src/blrec/postprocess/helpers.py b/src/blrec/postprocess/helpers.py index 2fe267d..ca25a64 100644 --- a/src/blrec/postprocess/helpers.py +++ b/src/blrec/postprocess/helpers.py @@ -1,31 +1,86 @@ import asyncio +import json +import logging +import os +import shutil +from pathlib import PurePath from typing import Any, Dict, Iterable, Literal -from ..flv.helpers import get_metadata as _get_metadata +import aiofiles + +from blrec.path.helpers import ( + cover_path, + danmaku_path, + raw_danmaku_path, + record_metadata_path, +) + from ..flv.helpers import get_extra_metadata as _get_extra_metadata +from ..flv.helpers import get_metadata as _get_metadata + +logger = logging.getLogger(__name__) async def discard_files( - paths: Iterable[str], - log_level: Literal['INFO', 'DEBUG'] = 'INFO', + paths: Iterable[str], log_level: Literal['INFO', 'DEBUG'] = 'INFO' ) -> None: for path in paths: await discard_file(path, log_level) -async def discard_file( - path: str, - log_level: Literal['INFO', 'DEBUG'] = 'INFO', -) -> None: +async def discard_file(path: str, log_level: Literal['INFO', 'DEBUG'] = 'INFO') -> None: from ..disk_space import delete_file + await delete_file(path, log_level) +async def discard_dir(path: str, log_level: Literal['INFO', 'DEBUG'] = 'INFO') -> None: + loop = asyncio.get_running_loop() + try: + await loop.run_in_executor(None, shutil.rmtree, path) + except Exception as e: + logger.error(f'Failed to delete {path!r}, due to: {repr(e)}') + else: + logger.log(logging.getLevelName(log_level), f'Deleted {path!r}') + + +async def copy_files_related(video_path: str) -> None: + loop = asyncio.get_running_loop() + dirname = os.path.dirname(video_path) + + for src_path in [ + danmaku_path(video_path), + raw_danmaku_path(video_path), + cover_path(video_path, ext='jpg'), + cover_path(video_path, ext='png'), + ]: + if not os.path.isfile(src_path): + continue + root, ext = os.path.splitext(src_path) + dst_path = PurePath(dirname).with_suffix(ext) + try: + await loop.run_in_executor(None, shutil.copy, src_path, dst_path) + except Exception as e: + logger.error(f"Failed to copy '{src_path}' to '{dst_path}': {repr(e)}") + else: + logger.info(f"Copied '{src_path}' to '{dst_path}'") + + async def get_metadata(flv_path: str) -> Dict[str, Any]: loop = asyncio.get_running_loop() return await loop.run_in_executor(None, _get_metadata, flv_path) +async def get_record_metadata(video_path: str) -> Dict[str, Any]: + if video_path.endswith('.m3u8'): + path = record_metadata_path(video_path) + else: + raise NotImplementedError(video_path) + async with aiofiles.open(path, 'rb') as file: + data = await file.read() + return json.loads(data) + + async def get_extra_metadata(flv_path: str) -> Dict[str, Any]: loop = asyncio.get_running_loop() return await loop.run_in_executor(None, _get_extra_metadata, flv_path) diff --git a/src/blrec/postprocess/postprocessor.py b/src/blrec/postprocess/postprocessor.py index 9fd5623..2b00086 100644 --- a/src/blrec/postprocess/postprocessor.py +++ b/src/blrec/postprocess/postprocessor.py @@ -2,9 +2,10 @@ from __future__ import annotations import asyncio import logging +import os from contextlib import suppress from pathlib import PurePath -from typing import Any, Awaitable, Dict, Final, Iterator, List, Optional, Union +from typing import Any, Awaitable, Dict, Final, Iterator, List, Optional, Tuple, Union from reactivex.scheduler import ThreadPoolScheduler @@ -19,7 +20,7 @@ from ..logging.room_id import aio_task_with_room_id from ..path import extra_metadata_path from ..utils.mixins import AsyncCooperationMixin, AsyncStoppableMixin, SupportDebugMixin from .ffmpeg_metadata import make_metadata_file -from .helpers import discard_file, get_extra_metadata +from .helpers import copy_files_related, discard_dir, discard_file, get_extra_metadata from .models import DeleteStrategy, PostprocessorStatus from .remux import RemuxingProgress, RemuxingResult, remux_video from .typing import Progress @@ -141,22 +142,44 @@ class Postprocessor( async with self._worker_semaphore: logger.debug(f'Postprocessing... {video_path}') - if not await self._is_vaild_flv_file(video_path): - logger.warning(f'The flv file may be invalid: {video_path}') - try: - if self.remux_to_mp4: - self._status = PostprocessorStatus.REMUXING - result_path = await self._remux_flv_to_mp4(video_path) - elif self.inject_extra_metadata: - self._status = PostprocessorStatus.INJECTING - result_path = await self._inject_extra_metadata(video_path) + if video_path.endswith('.flv'): + if not await self._is_vaild_flv_file(video_path): + logger.warning(f'The flv file may be invalid: {video_path}') + if self.remux_to_mp4: + self._status = PostprocessorStatus.REMUXING + ( + result_path, + remuxing_result, + ) = await self._remux_video_to_mp4(video_path) + if not self._debug: + await discard_file( + extra_metadata_path(video_path), 'DEBUG' + ) + if self._should_delete_source_files(remuxing_result): + await discard_file(video_path) + elif self.inject_extra_metadata: + self._status = PostprocessorStatus.INJECTING + result_path = await self._inject_extra_metadata(video_path) + else: + result_path = video_path + + elif video_path.endswith('.m3u8'): + if self.remux_to_mp4: + self._status = PostprocessorStatus.REMUXING + ( + result_path, + remuxing_result, + ) = await self._remux_video_to_mp4(video_path) + await copy_files_related(video_path) + if not self._debug: + if self._should_delete_source_files(remuxing_result): + await discard_dir(os.path.dirname(video_path)) + else: + result_path = video_path else: result_path = video_path - if not self._debug: - await discard_file(extra_metadata_path(video_path), 'DEBUG') - self._completed_files.append(result_path) await self._emit( 'video_postprocessing_completed', self, result_path @@ -191,33 +214,37 @@ class Postprocessor( logger.info(f"Successfully injected metadata for '{path}'") return path - async def _remux_flv_to_mp4(self, in_path: str) -> str: - out_path = str(PurePath(in_path).with_suffix('.mp4')) - logger.info(f"Remuxing '{in_path}' to '{out_path}' ...") + async def _remux_video_to_mp4(self, in_path: str) -> Tuple[str, RemuxingResult]: + if in_path.endswith('.flv'): + out_path = str(PurePath(in_path).with_suffix('.mp4')) + metadata_path = await make_metadata_file(in_path) + elif in_path.endswith('.m3u8'): + out_path = str(PurePath(in_path).parent.with_suffix('.mp4')) + metadata_path = await make_metadata_file(in_path) + else: + raise NotImplementedError(in_path) - metadata_path = await make_metadata_file(in_path) + logger.info(f"Remuxing '{in_path}' to '{out_path}' ...") remux_result = await self._remux_video(in_path, out_path, metadata_path) - if remux_result.is_successful(): - logger.info(f"Successfully remuxed '{in_path}' to '{out_path}'") - result_path = out_path + if remux_result.is_failed(): + logger.error(f"Failed to remux '{in_path}' to '{out_path}'") + result_path = in_path elif remux_result.is_warned(): logger.warning('Remuxing done, but ran into problems.') result_path = out_path - elif remux_result.is_failed: - logger.error(f"Failed to remux '{in_path}' to '{out_path}'") - result_path = in_path + elif remux_result.is_successful(): + logger.info(f"Successfully remuxed '{in_path}' to '{out_path}'") + result_path = out_path else: pass logger.debug(f'ffmpeg output:\n{remux_result.output}') - if not self._debug: + if not self._debug and in_path.endswith('.flv'): await discard_file(metadata_path, 'DEBUG') - if self._should_delete_source_files(remux_result): - await discard_file(in_path) - return result_path + return result_path, remux_result def _analyse_metadata(self, path: str) -> Awaitable[None]: future: asyncio.Future[None] = asyncio.Future() diff --git a/src/blrec/postprocess/remux.py b/src/blrec/postprocess/remux.py index 5054232..80427b0 100644 --- a/src/blrec/postprocess/remux.py +++ b/src/blrec/postprocess/remux.py @@ -19,8 +19,12 @@ class RemuxingProgress: total: int +_ERROR_PATTERN = re.compile(r'\b(error|missing|invalid|corrupt)\b', re.IGNORECASE) + + @attr.s(auto_attribs=True, slots=True, frozen=True) class RemuxingResult: + return_code: int output: str @@ -28,13 +32,20 @@ class RemuxingResult: return self.return_code == 0 def is_successful(self) -> bool: - return self.is_done() and not self.may_timestamps_incorrect() + return ( + self.is_done() + and not self.may_timestamps_incorrect() + and not self.has_errors() + ) def is_warned(self) -> bool: return self.is_done() and self.may_timestamps_incorrect() def is_failed(self) -> bool: - return not self.is_done() + return not self.is_done() or self.has_errors() + + def has_errors(self) -> bool: + return _ERROR_PATTERN.search(self.output) is not None def may_timestamps_incorrect(self) -> bool: return 'Non-monotonous DTS in output stream' in self.output @@ -49,8 +60,19 @@ def remux_video( remove_filler_data: bool = False, ) -> Observable[Union[RemuxingProgress, RemuxingResult]]: SIZE_PATTERN: Final = re.compile(r'size=\s*(?P\d+)(?P[a-zA-Z]?B)') - filesize = os.path.getsize(in_path) - filename = os.path.basename(in_path) + if in_path.endswith('.m3u8'): + total = 0 + for root, dirs, files in os.walk(os.path.dirname(in_path)): + for filename in files: + if not (filename.endswith('.m4s') or filename.endswith('.ts')): + continue + total += os.path.getsize(os.path.join(root, filename)) + postfix = os.path.join( + os.path.basename(os.path.dirname(in_path)), os.path.basename(in_path) + ) + else: + total = os.path.getsize(in_path) + postfix = os.path.basename(in_path) def parse_size(line: str) -> int: match = SIZE_PATTERN.search(line) @@ -75,7 +97,11 @@ def remux_video( def should_output_line(line: str) -> bool: line = line.strip() - return not (line.startswith('frame=') or line.startswith('Press [q]')) + return not ( + line.startswith('frame=') + or line.startswith('Press [q]') + or (line.startswith('[hls') and 'Opening' in line and 'for reading' in line) + ) def subscribe( observer: abc.ObserverBase[Union[RemuxingProgress, RemuxingResult]], @@ -92,11 +118,11 @@ def remux_video( with tqdm( desc='Remuxing', - total=filesize, + total=total, unit='B', unit_scale=True, unit_divisor=1024, - postfix=filename, + postfix=postfix, disable=not show_progress, ) as pbar: cmd = f'ffmpeg -i "{in_path}"' @@ -130,15 +156,15 @@ def remux_video( if line.startswith('frame='): size = parse_size(line) pbar.update(size - pbar.n) - progress = RemuxingProgress(size, filesize) + progress = RemuxingProgress(size, total) observer.on_next(progress) if should_output_line(line): out_lines.append(line) if not disposed and process.returncode == 0: - pbar.update(filesize) - progress = RemuxingProgress(filesize, filesize) + pbar.update(total) + progress = RemuxingProgress(total, total) observer.on_next(progress) except Exception as e: observer.on_error(e) diff --git a/src/blrec/setting/models.py b/src/blrec/setting/models.py index b5bb74d..7159e2a 100644 --- a/src/blrec/setting/models.py +++ b/src/blrec/setting/models.py @@ -11,15 +11,17 @@ from pydantic import BaseSettings, Field, PrivateAttr, validator from pydantic.networks import EmailStr, HttpUrl from typing_extensions import Annotated -from ..bili.typing import QualityNumber, StreamFormat -from ..core.cover_downloader import CoverSaveStrategy -from ..logging.typing import LOG_LEVEL -from ..postprocess import DeleteStrategy -from ..utils.string import camel_case +from blrec.bili.typing import QualityNumber, StreamFormat +from blrec.core.cover_downloader import CoverSaveStrategy +from blrec.logging.typing import LOG_LEVEL +from blrec.postprocess import DeleteStrategy +from blrec.utils.string import camel_case + from .typing import ( EmailMessageType, PushdeerMessageType, PushplusMessageType, + RecordingMode, ServerchanMessageType, TelegramMessageType, ) @@ -142,6 +144,7 @@ class DanmakuSettings(DanmakuOptions): class RecorderOptions(BaseModel): stream_format: Optional[StreamFormat] + recording_mode: Optional[RecordingMode] quality_number: Optional[QualityNumber] fmp4_stream_timeout: Optional[int] read_timeout: Optional[int] # seconds @@ -176,6 +179,7 @@ class RecorderOptions(BaseModel): class RecorderSettings(RecorderOptions): stream_format: StreamFormat = 'flv' + recording_mode: RecordingMode = 'standard' quality_number: QualityNumber = 20000 # 4K, the highest quality. fmp4_stream_timeout: int = 10 read_timeout: int = 3 diff --git a/src/blrec/setting/typing.py b/src/blrec/setting/typing.py index 8e76ba7..fddcf6e 100644 --- a/src/blrec/setting/typing.py +++ b/src/blrec/setting/typing.py @@ -1,5 +1,7 @@ from typing import AbstractSet, Literal, Union +RecordingMode = Literal['standard', 'raw'] + TextMessageType = Literal['text'] HtmlMessageType = Literal['html'] MarkdownMessageType = Literal['markdown'] diff --git a/src/blrec/task/models.py b/src/blrec/task/models.py index 7cc39be..5758906 100644 --- a/src/blrec/task/models.py +++ b/src/blrec/task/models.py @@ -1,14 +1,16 @@ from __future__ import annotations + from enum import Enum from typing import Optional 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 +from blrec.bili.models import RoomInfo, UserInfo +from blrec.bili.typing import QualityNumber, StreamFormat +from blrec.core.cover_downloader import CoverSaveStrategy +from blrec.postprocess import DeleteStrategy, PostprocessorStatus +from blrec.postprocess.typing import Progress +from blrec.setting.typing import RecordingMode class RunningStatus(str, Enum): @@ -60,6 +62,7 @@ class TaskParam: save_raw_danmaku: bool # RecorderSettings stream_format: StreamFormat + recording_mode: RecordingMode quality_number: QualityNumber fmp4_stream_timeout: int read_timeout: int diff --git a/src/blrec/task/task.py b/src/blrec/task/task.py index 57eb698..f948232 100644 --- a/src/blrec/task/task.py +++ b/src/blrec/task/task.py @@ -3,23 +3,25 @@ import os from pathlib import Path from typing import Iterator, Optional -from ..bili.danmaku_client import DanmakuClient -from ..bili.live import Live -from ..bili.live_monitor import LiveMonitor -from ..bili.models import RoomInfo, UserInfo -from ..bili.typing import QualityNumber, StreamFormat -from ..core import Recorder -from ..core.cover_downloader import CoverSaveStrategy -from ..event.event_submitters import ( +from blrec.bili.danmaku_client import DanmakuClient +from blrec.bili.live import Live +from blrec.bili.live_monitor import LiveMonitor +from blrec.bili.models import RoomInfo, UserInfo +from blrec.bili.typing import QualityNumber, StreamFormat +from blrec.core import Recorder +from blrec.core.cover_downloader import CoverSaveStrategy +from blrec.event.event_submitters import ( LiveEventSubmitter, PostprocessorEventSubmitter, RecorderEventSubmitter, ) -from ..flv.metadata_injection import InjectingProgress -from ..flv.operators import MetaData, StreamProfile -from ..logging.room_id import aio_task_with_room_id -from ..postprocess import DeleteStrategy, Postprocessor, PostprocessorStatus -from ..postprocess.remux import RemuxingProgress +from blrec.flv.metadata_injection import InjectingProgress +from blrec.flv.operators import MetaData, StreamProfile +from blrec.logging.room_id import aio_task_with_room_id +from blrec.postprocess import DeleteStrategy, Postprocessor, PostprocessorStatus +from blrec.postprocess.remux import RemuxingProgress +from blrec.setting.typing import RecordingMode + from .models import ( DanmakuFileDetail, DanmukuFileStatus, @@ -276,6 +278,14 @@ class RecordTask: def stream_format(self, value: StreamFormat) -> None: self._recorder.stream_format = value + @property + def recording_mode(self) -> RecordingMode: + return self._recorder.recording_mode + + @recording_mode.setter + def recording_mode(self, value: RecordingMode) -> None: + self._recorder.recording_mode = value + @property def quality_number(self) -> QualityNumber: return self._recorder.quality_number diff --git a/src/blrec/task/task_manager.py b/src/blrec/task/task_manager.py index 4fb6fc6..cf3860f 100644 --- a/src/blrec/task/task_manager.py +++ b/src/blrec/task/task_manager.py @@ -263,6 +263,7 @@ class RecordTaskManager: ) -> None: task = self._get_task(room_id) task.stream_format = settings.stream_format + task.recording_mode = settings.recording_mode task.quality_number = settings.quality_number task.fmp4_stream_timeout = settings.fmp4_stream_timeout task.read_timeout = settings.read_timeout @@ -306,6 +307,7 @@ class RecordTaskManager: cover_save_strategy=task.cover_save_strategy, save_raw_danmaku=task.save_raw_danmaku, stream_format=task.stream_format, + recording_mode=task.recording_mode, quality_number=task.quality_number, fmp4_stream_timeout=task.fmp4_stream_timeout, read_timeout=task.read_timeout, diff --git a/src/blrec/utils/ffprobe.py b/src/blrec/utils/ffprobe.py index 3297e74..5c6523d 100644 --- a/src/blrec/utils/ffprobe.py +++ b/src/blrec/utils/ffprobe.py @@ -5,7 +5,7 @@ from subprocess import PIPE, Popen from typing import Any, Dict, Optional from reactivex import Observable, abc -from reactivex.scheduler import NewThreadScheduler +from reactivex.scheduler import CurrentThreadScheduler __all__ = ('ffprobe', 'StreamProfile') @@ -17,7 +17,7 @@ def ffprobe(data: bytes) -> Observable[StreamProfile]: observer: abc.ObserverBase[StreamProfile], scheduler: Optional[abc.SchedulerBase] = None, ) -> abc.DisposableBase: - _scheduler = scheduler or NewThreadScheduler() + _scheduler = scheduler or CurrentThreadScheduler() def action(scheduler: abc.SchedulerBase, state: Optional[Any] = None) -> None: args = [ diff --git a/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html b/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html index 3a0dc5e..b41fd21 100644 --- a/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html +++ b/webapp/src/app/settings/post-processing-settings/post-processing-settings.component.html @@ -24,7 +24,7 @@ class="setting-label" nzNoColon nzTooltipTitle="调用 ffmpeg 进行转换,需要安装 ffmpeg 。" - >flv 转封装为 mp4转封装为 mp4 - + + + 录制模式 + +

+ 标准模式: 对下载的流数据进行解析处理,支持自动分割文件等功能。 +
+ 原始模式: 直接下载流数据,没有进行解析处理,不支持自动分割文件等功能。 +
+

+
+ + + + +
- + - + ; + readonly recordingModeOptions = cloneDeep(RECORDING_MODE_OPTIONS) as Mutable< + typeof RECORDING_MODE_OPTIONS + >; readonly fmp4StreamTimeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< typeof TIMEOUT_OPTIONS >; @@ -70,6 +74,7 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { ) { this.settingsForm = formBuilder.group({ streamFormat: [''], + recordingMode: [''], qualityNumber: [''], fmp4StreamTimeout: [''], readTimeout: [''], @@ -84,6 +89,10 @@ export class RecorderSettingsComponent implements OnInit, OnChanges { return this.settingsForm.get('streamFormat') as FormControl; } + get recordingModeControl() { + return this.settingsForm.get('recordingMode') as FormControl; + } + get qualityNumberControl() { return this.settingsForm.get('qualityNumber') as FormControl; } diff --git a/webapp/src/app/settings/shared/constants/form.ts b/webapp/src/app/settings/shared/constants/form.ts index d3af32c..6620b9e 100644 --- a/webapp/src/app/settings/shared/constants/form.ts +++ b/webapp/src/app/settings/shared/constants/form.ts @@ -63,6 +63,11 @@ export const STREAM_FORMAT_OPTIONS = [ { label: 'HLS (fmp4)', value: 'fmp4' }, ] as const; +export const RECORDING_MODE_OPTIONS = [ + { label: '标准', value: 'standard' }, + { label: '原始', value: 'raw' }, +] as const; + export const QUALITY_OPTIONS = [ { label: '4K', value: 20000 }, { label: '原画', value: 10000 }, diff --git a/webapp/src/app/settings/shared/setting.model.ts b/webapp/src/app/settings/shared/setting.model.ts index d8a9ceb..815144b 100644 --- a/webapp/src/app/settings/shared/setting.model.ts +++ b/webapp/src/app/settings/shared/setting.model.ts @@ -19,6 +19,7 @@ export interface DanmakuSettings { export type DanmakuOptions = Nullable; export type StreamFormat = 'flv' | 'ts' | 'fmp4'; +export type RecordingMode = 'standard' | 'raw'; export type QualityNumber = | 20000 // 4K @@ -36,6 +37,7 @@ export enum CoverSaveStrategy { export interface RecorderSettings { streamFormat: StreamFormat; + recordingMode: RecordingMode; qualityNumber: QualityNumber; fmp4StreamTimeout: number; readTimeout: number; 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 49829ce..dd117e7 100644 --- a/webapp/src/app/tasks/shared/services/task-manager.service.ts +++ b/webapp/src/app/tasks/shared/services/task-manager.service.ts @@ -285,6 +285,16 @@ export class TaskManagerService { ); } + canCutStream(roomId: number) { + return this.taskService.canCutStream(roomId).pipe( + tap((ableToCutStream) => { + if (!ableToCutStream) { + this.message.warning(`[${roomId}] 不支持文件切割~`); + } + }) + ); + } + cutStream(roomId: number) { return this.taskService.cutStream(roomId).pipe( tap( diff --git a/webapp/src/app/tasks/shared/services/task.service.ts b/webapp/src/app/tasks/shared/services/task.service.ts index 74c7da0..06169c7 100644 --- a/webapp/src/app/tasks/shared/services/task.service.ts +++ b/webapp/src/app/tasks/shared/services/task.service.ts @@ -2,6 +2,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; +import { map } from 'rxjs/operators'; import { environment } from 'src/environments/environment'; import { ResponseMessage } from '../../../shared/api.models'; @@ -163,6 +164,13 @@ export class TaskService { return this.http.post(url, { force, background }); } + canCutStream(roomId: number) { + const url = apiUrl + `/api/v1/tasks/${roomId}/cut`; + return this.http + .get<{ data: { result: boolean } }>(url) + .pipe(map((response) => response.data.result)); + } + cutStream(roomId: number) { const url = apiUrl + `/api/v1/tasks/${roomId}/cut`; return this.http.post(url, null); diff --git a/webapp/src/app/tasks/shared/task.model.ts b/webapp/src/app/tasks/shared/task.model.ts index 2bf0bf4..d55161d 100644 --- a/webapp/src/app/tasks/shared/task.model.ts +++ b/webapp/src/app/tasks/shared/task.model.ts @@ -3,6 +3,7 @@ import { DeleteStrategy, StreamFormat, QualityNumber, + RecordingMode, } from '../../settings/shared/setting.model'; export interface TaskData { @@ -116,6 +117,7 @@ export interface TaskParam { readonly save_raw_danmaku: boolean; readonly stream_format: StreamFormat; + readonly recording_mode: RecordingMode; readonly quality_number: QualityNumber; readonly read_timeout: number; readonly disconnection_timeout: number; diff --git a/webapp/src/app/tasks/task-item/task-item.component.ts b/webapp/src/app/tasks/task-item/task-item.component.ts index 390fb93..80289e5 100644 --- a/webapp/src/app/tasks/task-item/task-item.component.ts +++ b/webapp/src/app/tasks/task-item/task-item.component.ts @@ -226,7 +226,13 @@ export class TaskItemComponent implements OnChanges, OnDestroy { cutStream(): void { if (this.data.task_status.running_status === RunningStatus.RECORDING) { - this.taskManager.cutStream(this.roomId).subscribe(); + this.taskManager + .canCutStream(this.roomId) + .subscribe((ableToCutStream) => { + if (ableToCutStream) { + this.taskManager.cutStream(this.roomId).subscribe(); + } + }); } } } diff --git a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html index 44bb04e..69ed35a 100644 --- a/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html +++ b/webapp/src/app/tasks/task-settings-dialog/task-settings-dialog.component.html @@ -52,7 +52,17 @@ >覆盖全局设置 - + 覆盖全局设置 - + 覆盖全局设置 - + 覆盖全局设置 + + 录制模式 + +

+ 标准模式: 对下载的流数据进行解析处理,支持自动分割文件等功能。 +
+ 原始模式: + 直接下载流数据,没有进行解析处理,不支持自动分割文件等功能。 +
+

+
+ + + + + +
覆盖全局设置 - + 覆盖全局设置 - +

文件处理

- + flv 转封装为 mp4转封装为 mp4
; @@ -68,6 +69,9 @@ export class TaskSettingsDialogComponent implements OnChanges { readonly streamFormatOptions = cloneDeep(STREAM_FORMAT_OPTIONS) as Mutable< typeof STREAM_FORMAT_OPTIONS >; + readonly recordingModeOptions = cloneDeep(RECORDING_MODE_OPTIONS) as Mutable< + typeof RECORDING_MODE_OPTIONS + >; readonly fmp4StreamTimeoutOptions = cloneDeep(TIMEOUT_OPTIONS) as Mutable< typeof TIMEOUT_OPTIONS >;